Imported Upstream version 0.0~git20110724.48593f5
[deb_libnfs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libnfs 0.0.0.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # 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 ## -------------------- ##
16
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
34
35
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
73
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
82
83
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"
90
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
103
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
115
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='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186 else
187 as_have_required=no
188 fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209 fi
210 fi
211 done;;
212 esac
213 as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251 fi
252 exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270 { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279 return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287 set +e
288 as_fn_set_status $1
289 exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350 else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367 else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394 else
395 as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400 else
401 as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406 else
407 as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477 *)
478 ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484 else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517 else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='libnfs'
569 PACKAGE_TARNAME='libnfs'
570 PACKAGE_VERSION='0.0.0'
571 PACKAGE_STRING='libnfs 0.0.0'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 # Factoring default headers for most tests.
576 ac_includes_default="\
577 #include <stdio.h>
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
583 #endif
584 #ifdef STDC_HEADERS
585 # include <stdlib.h>
586 # include <stddef.h>
587 #else
588 # ifdef HAVE_STDLIB_H
589 # include <stdlib.h>
590 # endif
591 #endif
592 #ifdef HAVE_STRING_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 # include <memory.h>
595 # endif
596 # include <string.h>
597 #endif
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
600 #endif
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
603 #endif
604 #ifdef HAVE_STDINT_H
605 # include <stdint.h>
606 #endif
607 #ifdef HAVE_UNISTD_H
608 # include <unistd.h>
609 #endif"
610
611 ac_subst_vars='am__EXEEXT_FALSE
612 am__EXEEXT_TRUE
613 LTLIBOBJS
614 LIBOBJS
615 RPCGENFLAGS
616 MAYBE_EXAMPLES
617 HAVE_RPCGEN
618 CPP
619 OTOOL64
620 OTOOL
621 LIPO
622 NMEDIT
623 DSYMUTIL
624 MANIFEST_TOOL
625 RANLIB
626 ac_ct_AR
627 AR
628 DLLTOOL
629 OBJDUMP
630 LN_S
631 NM
632 ac_ct_DUMPBIN
633 DUMPBIN
634 LD
635 FGREP
636 EGREP
637 GREP
638 SED
639 LIBTOOL
640 am__fastdepCC_FALSE
641 am__fastdepCC_TRUE
642 CCDEPMODE
643 AMDEPBACKSLASH
644 AMDEP_FALSE
645 AMDEP_TRUE
646 am__quote
647 am__include
648 DEPDIR
649 OBJEXT
650 EXEEXT
651 ac_ct_CC
652 CPPFLAGS
653 LDFLAGS
654 CFLAGS
655 CC
656 host_os
657 host_vendor
658 host_cpu
659 host
660 build_os
661 build_vendor
662 build_cpu
663 build
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
669 AWK
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_alias
688 host_alias
689 build_alias
690 LIBS
691 ECHO_T
692 ECHO_N
693 ECHO_C
694 DEFS
695 mandir
696 localedir
697 libdir
698 psdir
699 pdfdir
700 dvidir
701 htmldir
702 infodir
703 docdir
704 oldincludedir
705 includedir
706 localstatedir
707 sharedstatedir
708 sysconfdir
709 datadir
710 datarootdir
711 libexecdir
712 sbindir
713 bindir
714 program_transform_name
715 prefix
716 exec_prefix
717 PACKAGE_URL
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files=''
726 ac_user_opts='
727 enable_option_checking
728 enable_dependency_tracking
729 enable_shared
730 enable_static
731 with_pic
732 enable_fast_install
733 with_gnu_ld
734 with_sysroot
735 enable_libtool_lock
736 enable_examples
737 enable_tirpc
738 '
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
742 CC
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP'
748
749
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 ac_unrecognized_opts=
754 ac_unrecognized_sep=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
771
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
797
798 ac_prev=
799 ac_dashdash=
800 for ac_option
801 do
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
807 fi
808
809 case $ac_option in
810 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *=) ac_optarg= ;;
812 *) ac_optarg=yes ;;
813 esac
814
815 # Accept the important Cygnus configure options, so we can diagnose typos.
816
817 case $ac_dashdash$ac_option in
818 --)
819 ac_dashdash=yes ;;
820
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
825
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
830
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
837
838 --config-cache | -C)
839 cache_file=config.cache ;;
840
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
845
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
852
853 -disable-* | --disable-*)
854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 as_fn_error $? "invalid feature name: $ac_useropt"
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
861 *"
862 "enable_$ac_useropt"
863 "*) ;;
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
866 esac
867 eval enable_$ac_useropt=no ;;
868
869 -docdir | --docdir | --docdi | --doc | --do)
870 ac_prev=docdir ;;
871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872 docdir=$ac_optarg ;;
873
874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875 ac_prev=dvidir ;;
876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877 dvidir=$ac_optarg ;;
878
879 -enable-* | --enable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888 "enable_$ac_useropt"
889 "*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=\$ac_optarg ;;
894
895 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
896 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
897 | --exec | --exe | --ex)
898 ac_prev=exec_prefix ;;
899 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
900 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
901 | --exec=* | --exe=* | --ex=*)
902 exec_prefix=$ac_optarg ;;
903
904 -gas | --gas | --ga | --g)
905 # Obsolete; use --with-gas.
906 with_gas=yes ;;
907
908 -help | --help | --hel | --he | -h)
909 ac_init_help=long ;;
910 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
911 ac_init_help=recursive ;;
912 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
913 ac_init_help=short ;;
914
915 -host | --host | --hos | --ho)
916 ac_prev=host_alias ;;
917 -host=* | --host=* | --hos=* | --ho=*)
918 host_alias=$ac_optarg ;;
919
920 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921 ac_prev=htmldir ;;
922 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923 | --ht=*)
924 htmldir=$ac_optarg ;;
925
926 -includedir | --includedir | --includedi | --included | --include \
927 | --includ | --inclu | --incl | --inc)
928 ac_prev=includedir ;;
929 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
930 | --includ=* | --inclu=* | --incl=* | --inc=*)
931 includedir=$ac_optarg ;;
932
933 -infodir | --infodir | --infodi | --infod | --info | --inf)
934 ac_prev=infodir ;;
935 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
936 infodir=$ac_optarg ;;
937
938 -libdir | --libdir | --libdi | --libd)
939 ac_prev=libdir ;;
940 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 libdir=$ac_optarg ;;
942
943 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
944 | --libexe | --libex | --libe)
945 ac_prev=libexecdir ;;
946 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
947 | --libexe=* | --libex=* | --libe=*)
948 libexecdir=$ac_optarg ;;
949
950 -localedir | --localedir | --localedi | --localed | --locale)
951 ac_prev=localedir ;;
952 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
953 localedir=$ac_optarg ;;
954
955 -localstatedir | --localstatedir | --localstatedi | --localstated \
956 | --localstate | --localstat | --localsta | --localst | --locals)
957 ac_prev=localstatedir ;;
958 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
959 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
960 localstatedir=$ac_optarg ;;
961
962 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963 ac_prev=mandir ;;
964 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
965 mandir=$ac_optarg ;;
966
967 -nfp | --nfp | --nf)
968 # Obsolete; use --without-fp.
969 with_fp=no ;;
970
971 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
972 | --no-cr | --no-c | -n)
973 no_create=yes ;;
974
975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 no_recursion=yes ;;
978
979 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
980 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
981 | --oldin | --oldi | --old | --ol | --o)
982 ac_prev=oldincludedir ;;
983 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
984 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
985 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
986 oldincludedir=$ac_optarg ;;
987
988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989 ac_prev=prefix ;;
990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 prefix=$ac_optarg ;;
992
993 -program-prefix | --program-prefix | --program-prefi | --program-pref \
994 | --program-pre | --program-pr | --program-p)
995 ac_prev=program_prefix ;;
996 -program-prefix=* | --program-prefix=* | --program-prefi=* \
997 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
998 program_prefix=$ac_optarg ;;
999
1000 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1001 | --program-suf | --program-su | --program-s)
1002 ac_prev=program_suffix ;;
1003 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1004 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1005 program_suffix=$ac_optarg ;;
1006
1007 -program-transform-name | --program-transform-name \
1008 | --program-transform-nam | --program-transform-na \
1009 | --program-transform-n | --program-transform- \
1010 | --program-transform | --program-transfor \
1011 | --program-transfo | --program-transf \
1012 | --program-trans | --program-tran \
1013 | --progr-tra | --program-tr | --program-t)
1014 ac_prev=program_transform_name ;;
1015 -program-transform-name=* | --program-transform-name=* \
1016 | --program-transform-nam=* | --program-transform-na=* \
1017 | --program-transform-n=* | --program-transform-=* \
1018 | --program-transform=* | --program-transfor=* \
1019 | --program-transfo=* | --program-transf=* \
1020 | --program-trans=* | --program-tran=* \
1021 | --progr-tra=* | --program-tr=* | --program-t=*)
1022 program_transform_name=$ac_optarg ;;
1023
1024 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025 ac_prev=pdfdir ;;
1026 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1027 pdfdir=$ac_optarg ;;
1028
1029 -psdir | --psdir | --psdi | --psd | --ps)
1030 ac_prev=psdir ;;
1031 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 psdir=$ac_optarg ;;
1033
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1036 silent=yes ;;
1037
1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 ac_prev=sbindir ;;
1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 | --sbi=* | --sb=*)
1042 sbindir=$ac_optarg ;;
1043
1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046 | --sharedst | --shareds | --shared | --share | --shar \
1047 | --sha | --sh)
1048 ac_prev=sharedstatedir ;;
1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 | --sha=* | --sh=*)
1053 sharedstatedir=$ac_optarg ;;
1054
1055 -site | --site | --sit)
1056 ac_prev=site ;;
1057 -site=* | --site=* | --sit=*)
1058 site=$ac_optarg ;;
1059
1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 ac_prev=srcdir ;;
1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063 srcdir=$ac_optarg ;;
1064
1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066 | --syscon | --sysco | --sysc | --sys | --sy)
1067 ac_prev=sysconfdir ;;
1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070 sysconfdir=$ac_optarg ;;
1071
1072 -target | --target | --targe | --targ | --tar | --ta | --t)
1073 ac_prev=target_alias ;;
1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075 target_alias=$ac_optarg ;;
1076
1077 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 verbose=yes ;;
1079
1080 -version | --version | --versio | --versi | --vers | -V)
1081 ac_init_version=: ;;
1082
1083 -with-* | --with-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error $? "invalid package name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092 "with_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval with_$ac_useropt=\$ac_optarg ;;
1098
1099 -without-* | --without-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=no ;;
1114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1132
1133 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1134 Try \`$0 --help' for more information"
1135 ;;
1136
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 case $ac_envvar in #(
1141 '' | [0-9]* | *[!_$as_cr_alnum]* )
1142 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1143 esac
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1146
1147 *)
1148 # FIXME: should be removed in autoconf 3.0.
1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1153 ;;
1154
1155 esac
1156 done
1157
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 as_fn_error $? "missing argument to $ac_option"
1161 fi
1162
1163 if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1165 no) ;;
1166 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168 esac
1169 fi
1170
1171 # Check all directory arguments for consistency.
1172 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1176 do
1177 eval ac_val=\$$ac_var
1178 # Remove trailing slashes.
1179 case $ac_val in
1180 */ )
1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\$ac_val;;
1183 esac
1184 # Be sure to have absolute directory names.
1185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
1189 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1190 done
1191
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1195 build=$build_alias
1196 host=$host_alias
1197 target=$target_alias
1198
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
1203 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1204 If a cross compiler is detected then cross compile mode will be used" >&2
1205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1207 fi
1208 fi
1209
1210 ac_tool_prefix=
1211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213 test "$silent" = yes && exec 6>/dev/null
1214
1215
1216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di=`ls -di .` &&
1218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219 as_fn_error $? "working directory cannot be determined"
1220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 as_fn_error $? "pwd does not report name of working directory"
1222
1223
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$as_myself" ||
1229 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$as_myself" : 'X\(//\)[^/]' \| \
1231 X"$as_myself" : 'X\(//\)$' \| \
1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233 $as_echo X"$as_myself" |
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\/\)$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\).*/{
1247 s//\1/
1248 q
1249 }
1250 s/.*/./; q'`
1251 srcdir=$ac_confdir
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 srcdir=..
1254 fi
1255 else
1256 ac_srcdir_defaulted=no
1257 fi
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1261 fi
1262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 ac_abs_confdir=`(
1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1265 pwd)`
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1269 fi
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1273 case $srcdir in
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 esac
1276 for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 done
1282
1283 #
1284 # Report the --help message.
1285 #
1286 if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
1290 \`configure' configures libnfs 0.0.0 to adapt to many kinds of systems.
1291
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE. See below for descriptions of some of the useful variables.
1296
1297 Defaults for the options are specified in brackets.
1298
1299 Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking ...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309
1310 Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 [PREFIX]
1315
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1320
1321 For better control, use the options below.
1322
1323 Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/libnfs]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
1343 _ACEOF
1344
1345 cat <<\_ACEOF
1346
1347 Program names:
1348 --program-prefix=PREFIX prepend PREFIX to installed program names
1349 --program-suffix=SUFFIX append SUFFIX to installed program names
1350 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1351
1352 System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355 _ACEOF
1356 fi
1357
1358 if test -n "$ac_init_help"; then
1359 case $ac_init_help in
1360 short | recursive ) echo "Configuration of libnfs 0.0.0:";;
1361 esac
1362 cat <<\_ACEOF
1363
1364 Optional Features:
1365 --disable-option-checking ignore unrecognized --enable/--with options
1366 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1367 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1368 --disable-dependency-tracking speeds up one-time build
1369 --enable-dependency-tracking do not reject slow dependency extractors
1370 --enable-shared[=PKGS] build shared libraries [default=yes]
1371 --enable-static[=PKGS] build static libraries [default=yes]
1372 --enable-fast-install[=PKGS]
1373 optimize for fast installation [default=yes]
1374 --disable-libtool-lock avoid locking (might break parallel builds)
1375 --enable-examples Build example programs
1376 --enable-tirpc enable use of TI-RPC [default=no]
1377
1378 Optional Packages:
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1381 --with-pic try to use only PIC/non-PIC objects [default=use
1382 both]
1383 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1384 --with-sysroot=DIR Search for dependent libraries within DIR
1385 (or the compiler's sysroot if not specified).
1386
1387 Some influential environment variables:
1388 CC C compiler command
1389 CFLAGS C compiler flags
1390 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1391 nonstandard directory <lib dir>
1392 LIBS libraries to pass to the linker, e.g. -l<library>
1393 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1394 you have headers in a nonstandard directory <include dir>
1395 CPP C preprocessor
1396
1397 Use these variables to override the choices made by `configure' or to help
1398 it to find libraries and programs with nonstandard names/locations.
1399
1400 Report bugs to the package provider.
1401 _ACEOF
1402 ac_status=$?
1403 fi
1404
1405 if test "$ac_init_help" = "recursive"; then
1406 # If there are subdirs, report their specific --help.
1407 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408 test -d "$ac_dir" ||
1409 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1410 continue
1411 ac_builddir=.
1412
1413 case "$ac_dir" in
1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 *)
1416 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1417 # A ".." for each directory in $ac_dir_suffix.
1418 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1419 case $ac_top_builddir_sub in
1420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422 esac ;;
1423 esac
1424 ac_abs_top_builddir=$ac_pwd
1425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426 # for backward compatibility:
1427 ac_top_builddir=$ac_top_build_prefix
1428
1429 case $srcdir in
1430 .) # We are building in place.
1431 ac_srcdir=.
1432 ac_top_srcdir=$ac_top_builddir_sub
1433 ac_abs_top_srcdir=$ac_pwd ;;
1434 [\\/]* | ?:[\\/]* ) # Absolute name.
1435 ac_srcdir=$srcdir$ac_dir_suffix;
1436 ac_top_srcdir=$srcdir
1437 ac_abs_top_srcdir=$srcdir ;;
1438 *) # Relative name.
1439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440 ac_top_srcdir=$ac_top_build_prefix$srcdir
1441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1442 esac
1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1444
1445 cd "$ac_dir" || { ac_status=$?; continue; }
1446 # Check for guested configure.
1447 if test -f "$ac_srcdir/configure.gnu"; then
1448 echo &&
1449 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450 elif test -f "$ac_srcdir/configure"; then
1451 echo &&
1452 $SHELL "$ac_srcdir/configure" --help=recursive
1453 else
1454 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455 fi || ac_status=$?
1456 cd "$ac_pwd" || { ac_status=$?; break; }
1457 done
1458 fi
1459
1460 test -n "$ac_init_help" && exit $ac_status
1461 if $ac_init_version; then
1462 cat <<\_ACEOF
1463 libnfs configure 0.0.0
1464 generated by GNU Autoconf 2.68
1465
1466 Copyright (C) 2010 Free Software Foundation, Inc.
1467 This configure script is free software; the Free Software Foundation
1468 gives unlimited permission to copy, distribute and modify it.
1469 _ACEOF
1470 exit
1471 fi
1472
1473 ## ------------------------ ##
1474 ## Autoconf initialization. ##
1475 ## ------------------------ ##
1476
1477 # ac_fn_c_try_compile LINENO
1478 # --------------------------
1479 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1480 ac_fn_c_try_compile ()
1481 {
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 rm -f conftest.$ac_objext
1484 if { { ac_try="$ac_compile"
1485 case "(($ac_try" in
1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1488 esac
1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 $as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_compile") 2>conftest.err
1492 ac_status=$?
1493 if test -s conftest.err; then
1494 grep -v '^ *+' conftest.err >conftest.er1
1495 cat conftest.er1 >&5
1496 mv -f conftest.er1 conftest.err
1497 fi
1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499 test $ac_status = 0; } && {
1500 test -z "$ac_c_werror_flag" ||
1501 test ! -s conftest.err
1502 } && test -s conftest.$ac_objext; then :
1503 ac_retval=0
1504 else
1505 $as_echo "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1507
1508 ac_retval=1
1509 fi
1510 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511 as_fn_set_status $ac_retval
1512
1513 } # ac_fn_c_try_compile
1514
1515 # ac_fn_c_try_link LINENO
1516 # -----------------------
1517 # Try to link conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_link ()
1519 {
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext conftest$ac_exeext
1522 if { { ac_try="$ac_link"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_link") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest$ac_exeext && {
1541 test "$cross_compiling" = yes ||
1542 $as_test_x conftest$ac_exeext
1543 }; then :
1544 ac_retval=0
1545 else
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1548
1549 ac_retval=1
1550 fi
1551 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1552 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1553 # interfere with the next link command; also delete a directory that is
1554 # left behind by Apple's compiler. We do this before executing the actions.
1555 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559 } # ac_fn_c_try_link
1560
1561 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1562 # -------------------------------------------------------
1563 # Tests whether HEADER exists and can be compiled using the include files in
1564 # INCLUDES, setting the cache variable VAR accordingly.
1565 ac_fn_c_check_header_compile ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1569 $as_echo_n "checking for $2... " >&6; }
1570 if eval \${$3+:} false; then :
1571 $as_echo_n "(cached) " >&6
1572 else
1573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h. */
1575 $4
1576 #include <$2>
1577 _ACEOF
1578 if ac_fn_c_try_compile "$LINENO"; then :
1579 eval "$3=yes"
1580 else
1581 eval "$3=no"
1582 fi
1583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1584 fi
1585 eval ac_res=\$$3
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587 $as_echo "$ac_res" >&6; }
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589
1590 } # ac_fn_c_check_header_compile
1591
1592 # ac_fn_c_try_cpp LINENO
1593 # ----------------------
1594 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_cpp ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 if { { ac_try="$ac_cpp conftest.$ac_ext"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } > conftest.i && {
1614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 }; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623 fi
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_cpp
1628
1629 # ac_fn_c_try_run LINENO
1630 # ----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1632 # that executables *can* be run.
1633 ac_fn_c_try_run ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_link"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>&5
1644 ac_status=$?
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1647 { { case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_try") 2>&5
1654 ac_status=$?
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; }; }; then :
1657 ac_retval=0
1658 else
1659 $as_echo "$as_me: program exited with status $ac_status" >&5
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=$ac_status
1664 fi
1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1668
1669 } # ac_fn_c_try_run
1670
1671 # ac_fn_c_check_func LINENO FUNC VAR
1672 # ----------------------------------
1673 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1674 ac_fn_c_check_func ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 $as_echo_n "checking for $2... " >&6; }
1679 if eval \${$3+:} false; then :
1680 $as_echo_n "(cached) " >&6
1681 else
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1684 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1686 #define $2 innocuous_$2
1687
1688 /* System header to define __stub macros and hopefully few prototypes,
1689 which can conflict with char $2 (); below.
1690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1691 <limits.h> exists even on freestanding compilers. */
1692
1693 #ifdef __STDC__
1694 # include <limits.h>
1695 #else
1696 # include <assert.h>
1697 #endif
1698
1699 #undef $2
1700
1701 /* Override any GCC internal prototype to avoid an error.
1702 Use char because int might match the return type of a GCC
1703 builtin and then its argument prototype would still apply. */
1704 #ifdef __cplusplus
1705 extern "C"
1706 #endif
1707 char $2 ();
1708 /* The GNU C library defines this for functions which it implements
1709 to always fail with ENOSYS. Some functions are actually named
1710 something starting with __ and the normal name is an alias. */
1711 #if defined __stub_$2 || defined __stub___$2
1712 choke me
1713 #endif
1714
1715 int
1716 main ()
1717 {
1718 return $2 ();
1719 ;
1720 return 0;
1721 }
1722 _ACEOF
1723 if ac_fn_c_try_link "$LINENO"; then :
1724 eval "$3=yes"
1725 else
1726 eval "$3=no"
1727 fi
1728 rm -f core conftest.err conftest.$ac_objext \
1729 conftest$ac_exeext conftest.$ac_ext
1730 fi
1731 eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736 } # ac_fn_c_check_func
1737
1738 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1739 # -------------------------------------------------------
1740 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1741 # the include files in INCLUDES and setting the cache variable VAR
1742 # accordingly.
1743 ac_fn_c_check_header_mongrel ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if eval \${$3+:} false; then :
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1751 fi
1752 eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 else
1756 # Is the header compilable?
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1758 $as_echo_n "checking $2 usability... " >&6; }
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1761 $4
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765 ac_header_compiler=yes
1766 else
1767 ac_header_compiler=no
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1771 $as_echo "$ac_header_compiler" >&6; }
1772
1773 # Is the header present?
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1775 $as_echo_n "checking $2 presence... " >&6; }
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_cpp "$LINENO"; then :
1781 ac_header_preproc=yes
1782 else
1783 ac_header_preproc=no
1784 fi
1785 rm -f conftest.err conftest.i conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1787 $as_echo "$ac_header_preproc" >&6; }
1788
1789 # So? What about this header?
1790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1791 yes:no: )
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1793 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1795 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 ;;
1797 no:yes:* )
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1799 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1801 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1803 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1805 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808 ;;
1809 esac
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \${$3+:} false; then :
1813 $as_echo_n "(cached) " >&6
1814 else
1815 eval "$3=\$ac_header_compiler"
1816 fi
1817 eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 fi
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823 } # ac_fn_c_check_header_mongrel
1824
1825 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1826 # ----------------------------------------------------
1827 # Tries to find if the field MEMBER exists in type AGGR, after including
1828 # INCLUDES, setting cache variable VAR accordingly.
1829 ac_fn_c_check_member ()
1830 {
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1833 $as_echo_n "checking for $2.$3... " >&6; }
1834 if eval \${$4+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 $5
1840 int
1841 main ()
1842 {
1843 static $2 ac_aggr;
1844 if (ac_aggr.$3)
1845 return 0;
1846 ;
1847 return 0;
1848 }
1849 _ACEOF
1850 if ac_fn_c_try_compile "$LINENO"; then :
1851 eval "$4=yes"
1852 else
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 $5
1856 int
1857 main ()
1858 {
1859 static $2 ac_aggr;
1860 if (sizeof ac_aggr.$3)
1861 return 0;
1862 ;
1863 return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867 eval "$4=yes"
1868 else
1869 eval "$4=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 fi
1875 eval ac_res=\$$4
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880 } # ac_fn_c_check_member
1881 cat >config.log <<_ACEOF
1882 This file contains any messages produced by compilers while
1883 running configure, to aid debugging if configure makes a mistake.
1884
1885 It was created by libnfs $as_me 0.0.0, which was
1886 generated by GNU Autoconf 2.68. Invocation command line was
1887
1888 $ $0 $@
1889
1890 _ACEOF
1891 exec 5>>config.log
1892 {
1893 cat <<_ASUNAME
1894 ## --------- ##
1895 ## Platform. ##
1896 ## --------- ##
1897
1898 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903
1904 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1906
1907 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1908 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1909 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1910 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1911 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1912 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1913 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1914
1915 _ASUNAME
1916
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
1922 $as_echo "PATH: $as_dir"
1923 done
1924 IFS=$as_save_IFS
1925
1926 } >&5
1927
1928 cat >&5 <<_ACEOF
1929
1930
1931 ## ----------- ##
1932 ## Core tests. ##
1933 ## ----------- ##
1934
1935 _ACEOF
1936
1937
1938 # Keep a trace of the command line.
1939 # Strip out --no-create and --no-recursion so they do not pile up.
1940 # Strip out --silent because we don't want to record it for future runs.
1941 # Also quote any args containing shell meta-characters.
1942 # Make two passes to allow for proper duplicate-argument suppression.
1943 ac_configure_args=
1944 ac_configure_args0=
1945 ac_configure_args1=
1946 ac_must_keep_next=false
1947 for ac_pass in 1 2
1948 do
1949 for ac_arg
1950 do
1951 case $ac_arg in
1952 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954 | -silent | --silent | --silen | --sile | --sil)
1955 continue ;;
1956 *\'*)
1957 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 esac
1959 case $ac_pass in
1960 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961 2)
1962 as_fn_append ac_configure_args1 " '$ac_arg'"
1963 if test $ac_must_keep_next = true; then
1964 ac_must_keep_next=false # Got value, back to normal.
1965 else
1966 case $ac_arg in
1967 *=* | --config-cache | -C | -disable-* | --disable-* \
1968 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970 | -with-* | --with-* | -without-* | --without-* | --x)
1971 case "$ac_configure_args0 " in
1972 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973 esac
1974 ;;
1975 -* ) ac_must_keep_next=true ;;
1976 esac
1977 fi
1978 as_fn_append ac_configure_args " '$ac_arg'"
1979 ;;
1980 esac
1981 done
1982 done
1983 { ac_configure_args0=; unset ac_configure_args0;}
1984 { ac_configure_args1=; unset ac_configure_args1;}
1985
1986 # When interrupted or exit'd, cleanup temporary files, and complete
1987 # config.log. We remove comments because anyway the quotes in there
1988 # would cause problems or look ugly.
1989 # WARNING: Use '\'' to represent an apostrophe within the trap.
1990 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991 trap 'exit_status=$?
1992 # Save into config.log some information that might help in debugging.
1993 {
1994 echo
1995
1996 $as_echo "## ---------------- ##
1997 ## Cache variables. ##
1998 ## ---------------- ##"
1999 echo
2000 # The following way of writing the cache mishandles newlines in values,
2001 (
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in #(
2005 *${as_nl}*)
2006 case $ac_var in #(
2007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 esac
2010 case $ac_var in #(
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2014 esac ;;
2015 esac
2016 done
2017 (set) 2>&1 |
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
2020 sed -n \
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 ;; #(
2024 *)
2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026 ;;
2027 esac |
2028 sort
2029 )
2030 echo
2031
2032 $as_echo "## ----------------- ##
2033 ## Output variables. ##
2034 ## ----------------- ##"
2035 echo
2036 for ac_var in $ac_subst_vars
2037 do
2038 eval ac_val=\$$ac_var
2039 case $ac_val in
2040 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 esac
2042 $as_echo "$ac_var='\''$ac_val'\''"
2043 done | sort
2044 echo
2045
2046 if test -n "$ac_subst_files"; then
2047 $as_echo "## ------------------- ##
2048 ## File substitutions. ##
2049 ## ------------------- ##"
2050 echo
2051 for ac_var in $ac_subst_files
2052 do
2053 eval ac_val=\$$ac_var
2054 case $ac_val in
2055 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2056 esac
2057 $as_echo "$ac_var='\''$ac_val'\''"
2058 done | sort
2059 echo
2060 fi
2061
2062 if test -s confdefs.h; then
2063 $as_echo "## ----------- ##
2064 ## confdefs.h. ##
2065 ## ----------- ##"
2066 echo
2067 cat confdefs.h
2068 echo
2069 fi
2070 test "$ac_signal" != 0 &&
2071 $as_echo "$as_me: caught signal $ac_signal"
2072 $as_echo "$as_me: exit $exit_status"
2073 } >&5
2074 rm -f core *.core core.conftest.* &&
2075 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076 exit $exit_status
2077 ' 0
2078 for ac_signal in 1 2 13 15; do
2079 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2080 done
2081 ac_signal=0
2082
2083 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2084 rm -f -r conftest* confdefs.h
2085
2086 $as_echo "/* confdefs.h */" > confdefs.h
2087
2088 # Predefined preprocessor variables.
2089
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_NAME "$PACKAGE_NAME"
2092 _ACEOF
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2096 _ACEOF
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2100 _ACEOF
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_STRING "$PACKAGE_STRING"
2104 _ACEOF
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_URL "$PACKAGE_URL"
2112 _ACEOF
2113
2114
2115 # Let the site file select an alternate cache file if it wants to.
2116 # Prefer an explicitly selected file to automatically selected ones.
2117 ac_site_file1=NONE
2118 ac_site_file2=NONE
2119 if test -n "$CONFIG_SITE"; then
2120 # We do not want a PATH search for config.site.
2121 case $CONFIG_SITE in #((
2122 -*) ac_site_file1=./$CONFIG_SITE;;
2123 */*) ac_site_file1=$CONFIG_SITE;;
2124 *) ac_site_file1=./$CONFIG_SITE;;
2125 esac
2126 elif test "x$prefix" != xNONE; then
2127 ac_site_file1=$prefix/share/config.site
2128 ac_site_file2=$prefix/etc/config.site
2129 else
2130 ac_site_file1=$ac_default_prefix/share/config.site
2131 ac_site_file2=$ac_default_prefix/etc/config.site
2132 fi
2133 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2134 do
2135 test "x$ac_site_file" = xNONE && continue
2136 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2138 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2139 sed 's/^/| /' "$ac_site_file" >&5
2140 . "$ac_site_file" \
2141 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 as_fn_error $? "failed to load site script $ac_site_file
2144 See \`config.log' for more details" "$LINENO" 5; }
2145 fi
2146 done
2147
2148 if test -r "$cache_file"; then
2149 # Some versions of bash will fail to source /dev/null (special files
2150 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2151 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2153 $as_echo "$as_me: loading cache $cache_file" >&6;}
2154 case $cache_file in
2155 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2156 *) . "./$cache_file";;
2157 esac
2158 fi
2159 else
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2161 $as_echo "$as_me: creating cache $cache_file" >&6;}
2162 >$cache_file
2163 fi
2164
2165 # Check that the precious variables saved in the cache have kept the same
2166 # value.
2167 ac_cache_corrupted=false
2168 for ac_var in $ac_precious_vars; do
2169 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170 eval ac_new_set=\$ac_env_${ac_var}_set
2171 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172 eval ac_new_val=\$ac_env_${ac_var}_value
2173 case $ac_old_set,$ac_new_set in
2174 set,)
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2177 ac_cache_corrupted=: ;;
2178 ,set)
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2181 ac_cache_corrupted=: ;;
2182 ,);;
2183 *)
2184 if test "x$ac_old_val" != "x$ac_new_val"; then
2185 # differences in whitespace do not lead to failure.
2186 ac_old_val_w=`echo x $ac_old_val`
2187 ac_new_val_w=`echo x $ac_new_val`
2188 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191 ac_cache_corrupted=:
2192 else
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195 eval $ac_var=\$ac_old_val
2196 fi
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2198 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2200 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2201 fi;;
2202 esac
2203 # Pass precious variables to config.status.
2204 if test "$ac_new_set" = set; then
2205 case $ac_new_val in
2206 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 *) ac_arg=$ac_var=$ac_new_val ;;
2208 esac
2209 case " $ac_configure_args " in
2210 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2211 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2212 esac
2213 fi
2214 done
2215 if $ac_cache_corrupted; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2220 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2221 fi
2222 ## -------------------- ##
2223 ## Main body of script. ##
2224 ## -------------------- ##
2225
2226 ac_ext=c
2227 ac_cpp='$CPP $CPPFLAGS'
2228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231
2232
2233 ac_config_headers="$ac_config_headers config.h"
2234
2235 am__api_version='1.11'
2236
2237 ac_aux_dir=
2238 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2239 if test -f "$ac_dir/install-sh"; then
2240 ac_aux_dir=$ac_dir
2241 ac_install_sh="$ac_aux_dir/install-sh -c"
2242 break
2243 elif test -f "$ac_dir/install.sh"; then
2244 ac_aux_dir=$ac_dir
2245 ac_install_sh="$ac_aux_dir/install.sh -c"
2246 break
2247 elif test -f "$ac_dir/shtool"; then
2248 ac_aux_dir=$ac_dir
2249 ac_install_sh="$ac_aux_dir/shtool install -c"
2250 break
2251 fi
2252 done
2253 if test -z "$ac_aux_dir"; then
2254 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2255 fi
2256
2257 # These three variables are undocumented and unsupported,
2258 # and are intended to be withdrawn in a future Autoconf release.
2259 # They can cause serious problems if a builder's source tree is in a directory
2260 # whose full name contains unusual characters.
2261 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2262 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2263 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2264
2265
2266 # Find a good install program. We prefer a C program (faster),
2267 # so one script is as good as another. But avoid the broken or
2268 # incompatible versions:
2269 # SysV /etc/install, /usr/sbin/install
2270 # SunOS /usr/etc/install
2271 # IRIX /sbin/install
2272 # AIX /bin/install
2273 # AmigaOS /C/install, which installs bootblocks on floppy discs
2274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2277 # OS/2's system install, which has a completely different semantic
2278 # ./install, which can be erroneously created by make from ./install.sh.
2279 # Reject install programs that cannot install multiple files.
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2281 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2282 if test -z "$INSTALL"; then
2283 if ${ac_cv_path_install+:} false; then :
2284 $as_echo_n "(cached) " >&6
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 # Account for people who put trailing slashes in PATH elements.
2292 case $as_dir/ in #((
2293 ./ | .// | /[cC]/* | \
2294 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2295 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2296 /usr/ucb/* ) ;;
2297 *)
2298 # OSF1 and SCO ODT 3.0 have their own names for install.
2299 # Don't use installbsd from OSF since it installs stuff as root
2300 # by default.
2301 for ac_prog in ginstall scoinst install; do
2302 for ac_exec_ext in '' $ac_executable_extensions; do
2303 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2304 if test $ac_prog = install &&
2305 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2306 # AIX install. It has an incompatible calling convention.
2307 :
2308 elif test $ac_prog = install &&
2309 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310 # program-specific install script used by HP pwplus--don't use.
2311 :
2312 else
2313 rm -rf conftest.one conftest.two conftest.dir
2314 echo one > conftest.one
2315 echo two > conftest.two
2316 mkdir conftest.dir
2317 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2318 test -s conftest.one && test -s conftest.two &&
2319 test -s conftest.dir/conftest.one &&
2320 test -s conftest.dir/conftest.two
2321 then
2322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2323 break 3
2324 fi
2325 fi
2326 fi
2327 done
2328 done
2329 ;;
2330 esac
2331
2332 done
2333 IFS=$as_save_IFS
2334
2335 rm -rf conftest.one conftest.two conftest.dir
2336
2337 fi
2338 if test "${ac_cv_path_install+set}" = set; then
2339 INSTALL=$ac_cv_path_install
2340 else
2341 # As a last resort, use the slow shell script. Don't cache a
2342 # value for INSTALL within a source directory, because that will
2343 # break other packages using the cache if that directory is
2344 # removed, or if the value is a relative name.
2345 INSTALL=$ac_install_sh
2346 fi
2347 fi
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2349 $as_echo "$INSTALL" >&6; }
2350
2351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2352 # It thinks the first close brace ends the variable substitution.
2353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2354
2355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2356
2357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2358
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2360 $as_echo_n "checking whether build environment is sane... " >&6; }
2361 # Just in case
2362 sleep 1
2363 echo timestamp > conftest.file
2364 # Reject unsafe characters in $srcdir or the absolute working directory
2365 # name. Accept space and tab only in the latter.
2366 am_lf='
2367 '
2368 case `pwd` in
2369 *[\\\"\#\$\&\'\`$am_lf]*)
2370 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2371 esac
2372 case $srcdir in
2373 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2374 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2375 esac
2376
2377 # Do `set' in a subshell so we don't clobber the current shell's
2378 # arguments. Must try -L first in case configure is actually a
2379 # symlink; some systems play weird games with the mod time of symlinks
2380 # (eg FreeBSD returns the mod time of the symlink's containing
2381 # directory).
2382 if (
2383 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2384 if test "$*" = "X"; then
2385 # -L didn't work.
2386 set X `ls -t "$srcdir/configure" conftest.file`
2387 fi
2388 rm -f conftest.file
2389 if test "$*" != "X $srcdir/configure conftest.file" \
2390 && test "$*" != "X conftest.file $srcdir/configure"; then
2391
2392 # If neither matched, then we have a broken ls. This can happen
2393 # if, for instance, CONFIG_SHELL is bash and it inherits a
2394 # broken ls alias from the environment. This has actually
2395 # happened. Such a system could not be considered "sane".
2396 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2397 alias in your environment" "$LINENO" 5
2398 fi
2399
2400 test "$2" = conftest.file
2401 )
2402 then
2403 # Ok.
2404 :
2405 else
2406 as_fn_error $? "newly created file is older than distributed files!
2407 Check your system clock" "$LINENO" 5
2408 fi
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2410 $as_echo "yes" >&6; }
2411 test "$program_prefix" != NONE &&
2412 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2413 # Use a double $ so make ignores it.
2414 test "$program_suffix" != NONE &&
2415 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2416 # Double any \ or $.
2417 # By default was `s,x,x', remove it if useless.
2418 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2419 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2420
2421 # expand $ac_aux_dir to an absolute path
2422 am_aux_dir=`cd $ac_aux_dir && pwd`
2423
2424 if test x"${MISSING+set}" != xset; then
2425 case $am_aux_dir in
2426 *\ * | *\ *)
2427 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2428 *)
2429 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2430 esac
2431 fi
2432 # Use eval to expand $SHELL
2433 if eval "$MISSING --run true"; then
2434 am_missing_run="$MISSING --run "
2435 else
2436 am_missing_run=
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2438 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2439 fi
2440
2441 if test x"${install_sh}" != xset; then
2442 case $am_aux_dir in
2443 *\ * | *\ *)
2444 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2445 *)
2446 install_sh="\${SHELL} $am_aux_dir/install-sh"
2447 esac
2448 fi
2449
2450 # Installed binaries are usually stripped using `strip' when the user
2451 # run `make install-strip'. However `strip' might not be the right
2452 # tool to use in cross-compilation environments, therefore Automake
2453 # will honor the `STRIP' environment variable to overrule this program.
2454 if test "$cross_compiling" != no; then
2455 if test -n "$ac_tool_prefix"; then
2456 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2457 set dummy ${ac_tool_prefix}strip; ac_word=$2
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459 $as_echo_n "checking for $ac_word... " >&6; }
2460 if ${ac_cv_prog_STRIP+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 if test -n "$STRIP"; then
2464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2476 fi
2477 done
2478 done
2479 IFS=$as_save_IFS
2480
2481 fi
2482 fi
2483 STRIP=$ac_cv_prog_STRIP
2484 if test -n "$STRIP"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2486 $as_echo "$STRIP" >&6; }
2487 else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489 $as_echo "no" >&6; }
2490 fi
2491
2492
2493 fi
2494 if test -z "$ac_cv_prog_STRIP"; then
2495 ac_ct_STRIP=$STRIP
2496 # Extract the first word of "strip", so it can be a program name with args.
2497 set dummy strip; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 if test -n "$ac_ct_STRIP"; then
2504 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_ac_ct_STRIP="strip"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517 done
2518 done
2519 IFS=$as_save_IFS
2520
2521 fi
2522 fi
2523 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2524 if test -n "$ac_ct_STRIP"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2526 $as_echo "$ac_ct_STRIP" >&6; }
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 fi
2531
2532 if test "x$ac_ct_STRIP" = x; then
2533 STRIP=":"
2534 else
2535 case $cross_compiling:$ac_tool_warned in
2536 yes:)
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539 ac_tool_warned=yes ;;
2540 esac
2541 STRIP=$ac_ct_STRIP
2542 fi
2543 else
2544 STRIP="$ac_cv_prog_STRIP"
2545 fi
2546
2547 fi
2548 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2549
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2551 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2552 if test -z "$MKDIR_P"; then
2553 if ${ac_cv_path_mkdir+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2558 do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_prog in mkdir gmkdir; do
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2564 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2565 'mkdir (GNU coreutils) '* | \
2566 'mkdir (coreutils) '* | \
2567 'mkdir (fileutils) '4.1*)
2568 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2569 break 3;;
2570 esac
2571 done
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 fi
2577
2578 test -d ./--version && rmdir ./--version
2579 if test "${ac_cv_path_mkdir+set}" = set; then
2580 MKDIR_P="$ac_cv_path_mkdir -p"
2581 else
2582 # As a last resort, use the slow shell script. Don't cache a
2583 # value for MKDIR_P within a source directory, because that will
2584 # break other packages using the cache if that directory is
2585 # removed, or if the value is a relative name.
2586 MKDIR_P="$ac_install_sh -d"
2587 fi
2588 fi
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2590 $as_echo "$MKDIR_P" >&6; }
2591
2592 mkdir_p="$MKDIR_P"
2593 case $mkdir_p in
2594 [\\/$]* | ?:[\\/]*) ;;
2595 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2596 esac
2597
2598 for ac_prog in gawk mawk nawk awk
2599 do
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_AWK+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 if test -n "$AWK"; then
2608 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_AWK="$ac_prog"
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 AWK=$ac_cv_prog_AWK
2628 if test -n "$AWK"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2630 $as_echo "$AWK" >&6; }
2631 else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636
2637 test -n "$AWK" && break
2638 done
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2641 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2642 set x ${MAKE-make}
2643 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2644 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 cat >conftest.make <<\_ACEOF
2648 SHELL = /bin/sh
2649 all:
2650 @echo '@@@%%%=$(MAKE)=@@@%%%'
2651 _ACEOF
2652 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2653 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2654 *@@@%%%=?*=@@@%%%*)
2655 eval ac_cv_prog_make_${ac_make}_set=yes;;
2656 *)
2657 eval ac_cv_prog_make_${ac_make}_set=no;;
2658 esac
2659 rm -f conftest.make
2660 fi
2661 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2664 SET_MAKE=
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 SET_MAKE="MAKE=${MAKE-make}"
2669 fi
2670
2671 rm -rf .tst 2>/dev/null
2672 mkdir .tst 2>/dev/null
2673 if test -d .tst; then
2674 am__leading_dot=.
2675 else
2676 am__leading_dot=_
2677 fi
2678 rmdir .tst 2>/dev/null
2679
2680 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2681 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2682 # is not polluted with repeated "-I."
2683 am__isrc=' -I$(srcdir)'
2684 # test to see if srcdir already configured
2685 if test -f $srcdir/config.status; then
2686 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2687 fi
2688 fi
2689
2690 # test whether we have cygpath
2691 if test -z "$CYGPATH_W"; then
2692 if (cygpath --version) >/dev/null 2>/dev/null; then
2693 CYGPATH_W='cygpath -w'
2694 else
2695 CYGPATH_W=echo
2696 fi
2697 fi
2698
2699
2700 # Define the identity of the package.
2701 PACKAGE='libnfs'
2702 VERSION='0.0.0'
2703
2704
2705 cat >>confdefs.h <<_ACEOF
2706 #define PACKAGE "$PACKAGE"
2707 _ACEOF
2708
2709
2710 cat >>confdefs.h <<_ACEOF
2711 #define VERSION "$VERSION"
2712 _ACEOF
2713
2714 # Some tools Automake needs.
2715
2716 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2717
2718
2719 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2720
2721
2722 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2723
2724
2725 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2726
2727
2728 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2729
2730 # We need awk for the "check" target. The system "awk" is bad on
2731 # some platforms.
2732 # Always define AMTAR for backward compatibility.
2733
2734 AMTAR=${AMTAR-"${am_missing_run}tar"}
2735
2736 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2737
2738
2739
2740
2741
2742 # Make sure we can run config.sub.
2743 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2744 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2745
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2747 $as_echo_n "checking build system type... " >&6; }
2748 if ${ac_cv_build+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 ac_build_alias=$build_alias
2752 test "x$ac_build_alias" = x &&
2753 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2754 test "x$ac_build_alias" = x &&
2755 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2756 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2757 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2758
2759 fi
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2761 $as_echo "$ac_cv_build" >&6; }
2762 case $ac_cv_build in
2763 *-*-*) ;;
2764 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2765 esac
2766 build=$ac_cv_build
2767 ac_save_IFS=$IFS; IFS='-'
2768 set x $ac_cv_build
2769 shift
2770 build_cpu=$1
2771 build_vendor=$2
2772 shift; shift
2773 # Remember, the first character of IFS is used to create $*,
2774 # except with old shells:
2775 build_os=$*
2776 IFS=$ac_save_IFS
2777 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2778
2779
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2781 $as_echo_n "checking host system type... " >&6; }
2782 if ${ac_cv_host+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test "x$host_alias" = x; then
2786 ac_cv_host=$ac_cv_build
2787 else
2788 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2789 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2790 fi
2791
2792 fi
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2794 $as_echo "$ac_cv_host" >&6; }
2795 case $ac_cv_host in
2796 *-*-*) ;;
2797 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2798 esac
2799 host=$ac_cv_host
2800 ac_save_IFS=$IFS; IFS='-'
2801 set x $ac_cv_host
2802 shift
2803 host_cpu=$1
2804 host_vendor=$2
2805 shift; shift
2806 # Remember, the first character of IFS is used to create $*,
2807 # except with old shells:
2808 host_os=$*
2809 IFS=$ac_save_IFS
2810 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2811
2812
2813
2814 # Work around stupid autoconf default cflags. pt 1
2815 SAVE_CFLAGS="x${CFLAGS}"
2816
2817 ac_ext=c
2818 ac_cpp='$CPP $CPPFLAGS'
2819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822 if test -n "$ac_tool_prefix"; then
2823 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2824 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if ${ac_cv_prog_CC+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if test -n "$CC"; then
2831 ac_cv_prog_CC="$CC" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2835 do
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2843 fi
2844 done
2845 done
2846 IFS=$as_save_IFS
2847
2848 fi
2849 fi
2850 CC=$ac_cv_prog_CC
2851 if test -n "$CC"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2853 $as_echo "$CC" >&6; }
2854 else
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2857 fi
2858
2859
2860 fi
2861 if test -z "$ac_cv_prog_CC"; then
2862 ac_ct_CC=$CC
2863 # Extract the first word of "gcc", so it can be a program name with args.
2864 set dummy gcc; ac_word=$2
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 $as_echo_n "checking for $ac_word... " >&6; }
2867 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 if test -n "$ac_ct_CC"; then
2871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_ac_ct_CC="gcc"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884 done
2885 done
2886 IFS=$as_save_IFS
2887
2888 fi
2889 fi
2890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2891 if test -n "$ac_ct_CC"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2893 $as_echo "$ac_ct_CC" >&6; }
2894 else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 fi
2898
2899 if test "x$ac_ct_CC" = x; then
2900 CC=""
2901 else
2902 case $cross_compiling:$ac_tool_warned in
2903 yes:)
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2906 ac_tool_warned=yes ;;
2907 esac
2908 CC=$ac_ct_CC
2909 fi
2910 else
2911 CC="$ac_cv_prog_CC"
2912 fi
2913
2914 if test -z "$CC"; then
2915 if test -n "$ac_tool_prefix"; then
2916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2917 set dummy ${ac_tool_prefix}cc; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_CC+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 ac_cv_prog_CC="${ac_tool_prefix}cc"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937 done
2938 done
2939 IFS=$as_save_IFS
2940
2941 fi
2942 fi
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946 $as_echo "$CC" >&6; }
2947 else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2950 fi
2951
2952
2953 fi
2954 fi
2955 if test -z "$CC"; then
2956 # Extract the first word of "cc", so it can be a program name with args.
2957 set dummy cc; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CC+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2965 else
2966 ac_prog_rejected=no
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2975 ac_prog_rejected=yes
2976 continue
2977 fi
2978 ac_cv_prog_CC="cc"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 break 2
2981 fi
2982 done
2983 done
2984 IFS=$as_save_IFS
2985
2986 if test $ac_prog_rejected = yes; then
2987 # We found a bogon in the path, so make sure we never use it.
2988 set dummy $ac_cv_prog_CC
2989 shift
2990 if test $# != 0; then
2991 # We chose a different compiler from the bogus one.
2992 # However, it has the same basename, so the bogon will be chosen
2993 # first if we set CC to just the basename; use the full file name.
2994 shift
2995 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2996 fi
2997 fi
2998 fi
2999 fi
3000 CC=$ac_cv_prog_CC
3001 if test -n "$CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009
3010 fi
3011 if test -z "$CC"; then
3012 if test -n "$ac_tool_prefix"; then
3013 for ac_prog in cl.exe
3014 do
3015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if ${ac_cv_prog_CC+:} false; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3027 do
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3035 fi
3036 done
3037 done
3038 IFS=$as_save_IFS
3039
3040 fi
3041 fi
3042 CC=$ac_cv_prog_CC
3043 if test -n "$CC"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3045 $as_echo "$CC" >&6; }
3046 else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3049 fi
3050
3051
3052 test -n "$CC" && break
3053 done
3054 fi
3055 if test -z "$CC"; then
3056 ac_ct_CC=$CC
3057 for ac_prog in cl.exe
3058 do
3059 # Extract the first word of "$ac_prog", so it can be a program name with args.
3060 set dummy $ac_prog; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$ac_ct_CC"; then
3067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_ac_ct_CC="$ac_prog"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3087 if test -n "$ac_ct_CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3089 $as_echo "$ac_ct_CC" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095
3096 test -n "$ac_ct_CC" && break
3097 done
3098
3099 if test "x$ac_ct_CC" = x; then
3100 CC=""
3101 else
3102 case $cross_compiling:$ac_tool_warned in
3103 yes:)
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3106 ac_tool_warned=yes ;;
3107 esac
3108 CC=$ac_ct_CC
3109 fi
3110 fi
3111
3112 fi
3113
3114
3115 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117 as_fn_error $? "no acceptable C compiler found in \$PATH
3118 See \`config.log' for more details" "$LINENO" 5; }
3119
3120 # Provide some information about the compiler.
3121 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3122 set X $ac_compile
3123 ac_compiler=$2
3124 for ac_option in --version -v -V -qversion; do
3125 { { ac_try="$ac_compiler $ac_option >&5"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131 $as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3133 ac_status=$?
3134 if test -s conftest.err; then
3135 sed '10a\
3136 ... rest of stderr output deleted ...
3137 10q' conftest.err >conftest.er1
3138 cat conftest.er1 >&5
3139 fi
3140 rm -f conftest.er1 conftest.err
3141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142 test $ac_status = 0; }
3143 done
3144
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3147
3148 int
3149 main ()
3150 {
3151
3152 ;
3153 return 0;
3154 }
3155 _ACEOF
3156 ac_clean_files_save=$ac_clean_files
3157 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3158 # Try to create an executable without -o first, disregard a.out.
3159 # It will help us diagnose broken compilers, and finding out an intuition
3160 # of exeext.
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3162 $as_echo_n "checking whether the C compiler works... " >&6; }
3163 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3164
3165 # The possible output files:
3166 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3167
3168 ac_rmfiles=
3169 for ac_file in $ac_files
3170 do
3171 case $ac_file in
3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3173 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3174 esac
3175 done
3176 rm -f $ac_rmfiles
3177
3178 if { { ac_try="$ac_link_default"
3179 case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_link_default") 2>&5
3186 ac_status=$?
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }; then :
3189 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3190 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3191 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3192 # so that the user can short-circuit this test for compilers unknown to
3193 # Autoconf.
3194 for ac_file in $ac_files ''
3195 do
3196 test -f "$ac_file" || continue
3197 case $ac_file in
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3199 ;;
3200 [ab].out )
3201 # We found the default executable, but exeext='' is most
3202 # certainly right.
3203 break;;
3204 *.* )
3205 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3206 then :; else
3207 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3208 fi
3209 # We set ac_cv_exeext here because the later test for it is not
3210 # safe: cross compilers may not add the suffix if given an `-o'
3211 # argument, so we may need to know it at that point already.
3212 # Even if this section looks crufty: it has the advantage of
3213 # actually working.
3214 break;;
3215 * )
3216 break;;
3217 esac
3218 done
3219 test "$ac_cv_exeext" = no && ac_cv_exeext=
3220
3221 else
3222 ac_file=''
3223 fi
3224 if test -z "$ac_file"; then :
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227 $as_echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232 as_fn_error 77 "C compiler cannot create executables
3233 See \`config.log' for more details" "$LINENO" 5; }
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236 $as_echo "yes" >&6; }
3237 fi
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3239 $as_echo_n "checking for C compiler default output file name... " >&6; }
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3241 $as_echo "$ac_file" >&6; }
3242 ac_exeext=$ac_cv_exeext
3243
3244 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3245 ac_clean_files=$ac_clean_files_save
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3247 $as_echo_n "checking for suffix of executables... " >&6; }
3248 if { { ac_try="$ac_link"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255 (eval "$ac_link") 2>&5
3256 ac_status=$?
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }; then :
3259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3260 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3261 # work properly (i.e., refer to `conftest.exe'), while it won't with
3262 # `rm'.
3263 for ac_file in conftest.exe conftest conftest.*; do
3264 test -f "$ac_file" || continue
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3268 break;;
3269 * ) break;;
3270 esac
3271 done
3272 else
3273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3276 See \`config.log' for more details" "$LINENO" 5; }
3277 fi
3278 rm -f conftest conftest$ac_cv_exeext
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3280 $as_echo "$ac_cv_exeext" >&6; }
3281
3282 rm -f conftest.$ac_ext
3283 EXEEXT=$ac_cv_exeext
3284 ac_exeext=$EXEEXT
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3287 #include <stdio.h>
3288 int
3289 main ()
3290 {
3291 FILE *f = fopen ("conftest.out", "w");
3292 return ferror (f) || fclose (f) != 0;
3293
3294 ;
3295 return 0;
3296 }
3297 _ACEOF
3298 ac_clean_files="$ac_clean_files conftest.out"
3299 # Check that the compiler produces executables we can run. If not, either
3300 # the compiler is broken, or we cross compile.
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3302 $as_echo_n "checking whether we are cross compiling... " >&6; }
3303 if test "$cross_compiling" != yes; then
3304 { { ac_try="$ac_link"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link") 2>&5
3312 ac_status=$?
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }
3315 if { ac_try='./conftest$ac_cv_exeext'
3316 { { case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_try") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; }; then
3326 cross_compiling=no
3327 else
3328 if test "$cross_compiling" = maybe; then
3329 cross_compiling=yes
3330 else
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error $? "cannot run C compiled programs.
3334 If you meant to cross compile, use \`--host'.
3335 See \`config.log' for more details" "$LINENO" 5; }
3336 fi
3337 fi
3338 fi
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3340 $as_echo "$cross_compiling" >&6; }
3341
3342 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3343 ac_clean_files=$ac_clean_files_save
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3345 $as_echo_n "checking for suffix of object files... " >&6; }
3346 if ${ac_cv_objext+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351
3352 int
3353 main ()
3354 {
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.o conftest.obj
3361 if { { ac_try="$ac_compile"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_compile") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; then :
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3376 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3377 break;;
3378 esac
3379 done
3380 else
3381 $as_echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error $? "cannot compute suffix of object files: cannot compile
3387 See \`config.log' for more details" "$LINENO" 5; }
3388 fi
3389 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3392 $as_echo "$ac_cv_objext" >&6; }
3393 OBJEXT=$ac_cv_objext
3394 ac_objext=$OBJEXT
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3396 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3397 if ${ac_cv_c_compiler_gnu+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3402
3403 int
3404 main ()
3405 {
3406 #ifndef __GNUC__
3407 choke me
3408 #endif
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_compiler_gnu=yes
3416 else
3417 ac_compiler_gnu=no
3418 fi
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3421
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3424 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3425 if test $ac_compiler_gnu = yes; then
3426 GCC=yes
3427 else
3428 GCC=
3429 fi
3430 ac_test_CFLAGS=${CFLAGS+set}
3431 ac_save_CFLAGS=$CFLAGS
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3433 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3434 if ${ac_cv_prog_cc_g+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 ac_save_c_werror_flag=$ac_c_werror_flag
3438 ac_c_werror_flag=yes
3439 ac_cv_prog_cc_g=no
3440 CFLAGS="-g"
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3443
3444 int
3445 main ()
3446 {
3447
3448 ;
3449 return 0;
3450 }
3451 _ACEOF
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453 ac_cv_prog_cc_g=yes
3454 else
3455 CFLAGS=""
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3458
3459 int
3460 main ()
3461 {
3462
3463 ;
3464 return 0;
3465 }
3466 _ACEOF
3467 if ac_fn_c_try_compile "$LINENO"; then :
3468
3469 else
3470 ac_c_werror_flag=$ac_save_c_werror_flag
3471 CFLAGS="-g"
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474
3475 int
3476 main ()
3477 {
3478
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484 ac_cv_prog_cc_g=yes
3485 fi
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 fi
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 ac_c_werror_flag=$ac_save_c_werror_flag
3492 fi
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3494 $as_echo "$ac_cv_prog_cc_g" >&6; }
3495 if test "$ac_test_CFLAGS" = set; then
3496 CFLAGS=$ac_save_CFLAGS
3497 elif test $ac_cv_prog_cc_g = yes; then
3498 if test "$GCC" = yes; then
3499 CFLAGS="-g -O2"
3500 else
3501 CFLAGS="-g"
3502 fi
3503 else
3504 if test "$GCC" = yes; then
3505 CFLAGS="-O2"
3506 else
3507 CFLAGS=
3508 fi
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3511 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3512 if ${ac_cv_prog_cc_c89+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 ac_cv_prog_cc_c89=no
3516 ac_save_CC=$CC
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519 #include <stdarg.h>
3520 #include <stdio.h>
3521 #include <sys/types.h>
3522 #include <sys/stat.h>
3523 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3524 struct buf { int x; };
3525 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3526 static char *e (p, i)
3527 char **p;
3528 int i;
3529 {
3530 return p[i];
3531 }
3532 static char *f (char * (*g) (char **, int), char **p, ...)
3533 {
3534 char *s;
3535 va_list v;
3536 va_start (v,p);
3537 s = g (p, va_arg (v,int));
3538 va_end (v);
3539 return s;
3540 }
3541
3542 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3543 function prototypes and stuff, but not '\xHH' hex character constants.
3544 These don't provoke an error unfortunately, instead are silently treated
3545 as 'x'. The following induces an error, until -std is added to get
3546 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3547 array size at least. It's necessary to write '\x00'==0 to get something
3548 that's true only with -std. */
3549 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3550
3551 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3552 inside strings and character constants. */
3553 #define FOO(x) 'x'
3554 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3555
3556 int test (int i, double x);
3557 struct s1 {int (*f) (int a);};
3558 struct s2 {int (*f) (double a);};
3559 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3560 int argc;
3561 char **argv;
3562 int
3563 main ()
3564 {
3565 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3566 ;
3567 return 0;
3568 }
3569 _ACEOF
3570 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3571 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3572 do
3573 CC="$ac_save_CC $ac_arg"
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_cv_prog_cc_c89=$ac_arg
3576 fi
3577 rm -f core conftest.err conftest.$ac_objext
3578 test "x$ac_cv_prog_cc_c89" != "xno" && break
3579 done
3580 rm -f conftest.$ac_ext
3581 CC=$ac_save_CC
3582
3583 fi
3584 # AC_CACHE_VAL
3585 case "x$ac_cv_prog_cc_c89" in
3586 x)
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3588 $as_echo "none needed" >&6; } ;;
3589 xno)
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3591 $as_echo "unsupported" >&6; } ;;
3592 *)
3593 CC="$CC $ac_cv_prog_cc_c89"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3595 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3596 esac
3597 if test "x$ac_cv_prog_cc_c89" != xno; then :
3598
3599 fi
3600
3601 ac_ext=c
3602 ac_cpp='$CPP $CPPFLAGS'
3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606 DEPDIR="${am__leading_dot}deps"
3607
3608 ac_config_commands="$ac_config_commands depfiles"
3609
3610
3611 am_make=${MAKE-make}
3612 cat > confinc << 'END'
3613 am__doit:
3614 @echo this is the am__doit target
3615 .PHONY: am__doit
3616 END
3617 # If we don't find an include directive, just comment out the code.
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3619 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3620 am__include="#"
3621 am__quote=
3622 _am_result=none
3623 # First try GNU make style include.
3624 echo "include confinc" > confmf
3625 # Ignore all kinds of additional output from `make'.
3626 case `$am_make -s -f confmf 2> /dev/null` in #(
3627 *the\ am__doit\ target*)
3628 am__include=include
3629 am__quote=
3630 _am_result=GNU
3631 ;;
3632 esac
3633 # Now try BSD make style include.
3634 if test "$am__include" = "#"; then
3635 echo '.include "confinc"' > confmf
3636 case `$am_make -s -f confmf 2> /dev/null` in #(
3637 *the\ am__doit\ target*)
3638 am__include=.include
3639 am__quote="\""
3640 _am_result=BSD
3641 ;;
3642 esac
3643 fi
3644
3645
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3647 $as_echo "$_am_result" >&6; }
3648 rm -f confinc confmf
3649
3650 # Check whether --enable-dependency-tracking was given.
3651 if test "${enable_dependency_tracking+set}" = set; then :
3652 enableval=$enable_dependency_tracking;
3653 fi
3654
3655 if test "x$enable_dependency_tracking" != xno; then
3656 am_depcomp="$ac_aux_dir/depcomp"
3657 AMDEPBACKSLASH='\'
3658 fi
3659 if test "x$enable_dependency_tracking" != xno; then
3660 AMDEP_TRUE=
3661 AMDEP_FALSE='#'
3662 else
3663 AMDEP_TRUE='#'
3664 AMDEP_FALSE=
3665 fi
3666
3667
3668
3669 depcc="$CC" am_compiler_list=
3670
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3672 $as_echo_n "checking dependency style of $depcc... " >&6; }
3673 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3677 # We make a subdir and do the tests there. Otherwise we can end up
3678 # making bogus files that we don't know about and never remove. For
3679 # instance it was reported that on HP-UX the gcc test will end up
3680 # making a dummy file named `D' -- because `-MD' means `put the output
3681 # in D'.
3682 mkdir conftest.dir
3683 # Copy depcomp to subdir because otherwise we won't find it if we're
3684 # using a relative directory.
3685 cp "$am_depcomp" conftest.dir
3686 cd conftest.dir
3687 # We will build objects and dependencies in a subdirectory because
3688 # it helps to detect inapplicable dependency modes. For instance
3689 # both Tru64's cc and ICC support -MD to output dependencies as a
3690 # side effect of compilation, but ICC will put the dependencies in
3691 # the current directory while Tru64 will put them in the object
3692 # directory.
3693 mkdir sub
3694
3695 am_cv_CC_dependencies_compiler_type=none
3696 if test "$am_compiler_list" = ""; then
3697 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3698 fi
3699 am__universal=false
3700 case " $depcc " in #(
3701 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3702 esac
3703
3704 for depmode in $am_compiler_list; do
3705 # Setup a source with many dependencies, because some compilers
3706 # like to wrap large dependency lists on column 80 (with \), and
3707 # we should not choose a depcomp mode which is confused by this.
3708 #
3709 # We need to recreate these files for each test, as the compiler may
3710 # overwrite some of them when testing with obscure command lines.
3711 # This happens at least with the AIX C compiler.
3712 : > sub/conftest.c
3713 for i in 1 2 3 4 5 6; do
3714 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3715 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3716 # Solaris 8's {/usr,}/bin/sh.
3717 touch sub/conftst$i.h
3718 done
3719 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3720
3721 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3722 # mode. It turns out that the SunPro C++ compiler does not properly
3723 # handle `-M -o', and we need to detect this. Also, some Intel
3724 # versions had trouble with output in subdirs
3725 am__obj=sub/conftest.${OBJEXT-o}
3726 am__minus_obj="-o $am__obj"
3727 case $depmode in
3728 gcc)
3729 # This depmode causes a compiler race in universal mode.
3730 test "$am__universal" = false || continue
3731 ;;
3732 nosideeffect)
3733 # after this tag, mechanisms are not by side-effect, so they'll
3734 # only be used when explicitly requested
3735 if test "x$enable_dependency_tracking" = xyes; then
3736 continue
3737 else
3738 break
3739 fi
3740 ;;
3741 msvisualcpp | msvcmsys)
3742 # This compiler won't grok `-c -o', but also, the minuso test has
3743 # not run yet. These depmodes are late enough in the game, and
3744 # so weak that their functioning should not be impacted.
3745 am__obj=conftest.${OBJEXT-o}
3746 am__minus_obj=
3747 ;;
3748 none) break ;;
3749 esac
3750 if depmode=$depmode \
3751 source=sub/conftest.c object=$am__obj \
3752 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3753 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3754 >/dev/null 2>conftest.err &&
3755 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3756 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3757 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3758 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3759 # icc doesn't choke on unknown options, it will just issue warnings
3760 # or remarks (even with -Werror). So we grep stderr for any message
3761 # that says an option was ignored or not supported.
3762 # When given -MP, icc 7.0 and 7.1 complain thusly:
3763 # icc: Command line warning: ignoring option '-M'; no argument required
3764 # The diagnosis changed in icc 8.0:
3765 # icc: Command line remark: option '-MP' not supported
3766 if (grep 'ignoring option' conftest.err ||
3767 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3768 am_cv_CC_dependencies_compiler_type=$depmode
3769 break
3770 fi
3771 fi
3772 done
3773
3774 cd ..
3775 rm -rf conftest.dir
3776 else
3777 am_cv_CC_dependencies_compiler_type=none
3778 fi
3779
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3782 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3783 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3784
3785 if
3786 test "x$enable_dependency_tracking" != xno \
3787 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3788 am__fastdepCC_TRUE=
3789 am__fastdepCC_FALSE='#'
3790 else
3791 am__fastdepCC_TRUE='#'
3792 am__fastdepCC_FALSE=
3793 fi
3794
3795
3796 case `pwd` in
3797 *\ * | *\ *)
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3799 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3800 esac
3801
3802
3803
3804 macro_version='2.4'
3805 macro_revision='1.3293'
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819 ltmain="$ac_aux_dir/ltmain.sh"
3820
3821 # Backslashify metacharacters that are still active within
3822 # double-quoted strings.
3823 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3824
3825 # Same as above, but do not quote variable references.
3826 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3827
3828 # Sed substitution to delay expansion of an escaped shell variable in a
3829 # double_quote_subst'ed string.
3830 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3831
3832 # Sed substitution to delay expansion of an escaped single quote.
3833 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3834
3835 # Sed substitution to avoid accidental globbing in evaled expressions
3836 no_glob_subst='s/\*/\\\*/g'
3837
3838 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3839 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3840 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3841
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3843 $as_echo_n "checking how to print strings... " >&6; }
3844 # Test print first, because it will be a builtin if present.
3845 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3846 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3847 ECHO='print -r --'
3848 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3849 ECHO='printf %s\n'
3850 else
3851 # Use this function as a fallback that always works.
3852 func_fallback_echo ()
3853 {
3854 eval 'cat <<_LTECHO_EOF
3855 $1
3856 _LTECHO_EOF'
3857 }
3858 ECHO='func_fallback_echo'
3859 fi
3860
3861 # func_echo_all arg...
3862 # Invoke $ECHO with all args, space-separated.
3863 func_echo_all ()
3864 {
3865 $ECHO ""
3866 }
3867
3868 case "$ECHO" in
3869 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3870 $as_echo "printf" >&6; } ;;
3871 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3872 $as_echo "print -r" >&6; } ;;
3873 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3874 $as_echo "cat" >&6; } ;;
3875 esac
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3891 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3892 if ${ac_cv_path_SED+:} false; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3896 for ac_i in 1 2 3 4 5 6 7; do
3897 ac_script="$ac_script$as_nl$ac_script"
3898 done
3899 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3900 { ac_script=; unset ac_script;}
3901 if test -z "$SED"; then
3902 ac_path_SED_found=false
3903 # Loop through the user's path and test for each of PROGNAME-LIST
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_prog in sed gsed; do
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3912 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3913 # Check for GNU ac_path_SED and select it if it is found.
3914 # Check for GNU $ac_path_SED
3915 case `"$ac_path_SED" --version 2>&1` in
3916 *GNU*)
3917 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3918 *)
3919 ac_count=0
3920 $as_echo_n 0123456789 >"conftest.in"
3921 while :
3922 do
3923 cat "conftest.in" "conftest.in" >"conftest.tmp"
3924 mv "conftest.tmp" "conftest.in"
3925 cp "conftest.in" "conftest.nl"
3926 $as_echo '' >> "conftest.nl"
3927 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929 as_fn_arith $ac_count + 1 && ac_count=$as_val
3930 if test $ac_count -gt ${ac_path_SED_max-0}; then
3931 # Best one so far, save it but keep looking for a better one
3932 ac_cv_path_SED="$ac_path_SED"
3933 ac_path_SED_max=$ac_count
3934 fi
3935 # 10*(2^10) chars as input seems more than enough
3936 test $ac_count -gt 10 && break
3937 done
3938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939 esac
3940
3941 $ac_path_SED_found && break 3
3942 done
3943 done
3944 done
3945 IFS=$as_save_IFS
3946 if test -z "$ac_cv_path_SED"; then
3947 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3948 fi
3949 else
3950 ac_cv_path_SED=$SED
3951 fi
3952
3953 fi
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3955 $as_echo "$ac_cv_path_SED" >&6; }
3956 SED="$ac_cv_path_SED"
3957 rm -f conftest.sed
3958
3959 test -z "$SED" && SED=sed
3960 Xsed="$SED -e 1s/^X//"
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3973 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3974 if ${ac_cv_path_GREP+:} false; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 if test -z "$GREP"; then
3978 ac_path_GREP_found=false
3979 # Loop through the user's path and test for each of PROGNAME-LIST
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3982 do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_prog in grep ggrep; do
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3988 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3989 # Check for GNU ac_path_GREP and select it if it is found.
3990 # Check for GNU $ac_path_GREP
3991 case `"$ac_path_GREP" --version 2>&1` in
3992 *GNU*)
3993 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3994 *)
3995 ac_count=0
3996 $as_echo_n 0123456789 >"conftest.in"
3997 while :
3998 do
3999 cat "conftest.in" "conftest.in" >"conftest.tmp"
4000 mv "conftest.tmp" "conftest.in"
4001 cp "conftest.in" "conftest.nl"
4002 $as_echo 'GREP' >> "conftest.nl"
4003 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4005 as_fn_arith $ac_count + 1 && ac_count=$as_val
4006 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4007 # Best one so far, save it but keep looking for a better one
4008 ac_cv_path_GREP="$ac_path_GREP"
4009 ac_path_GREP_max=$ac_count
4010 fi
4011 # 10*(2^10) chars as input seems more than enough
4012 test $ac_count -gt 10 && break
4013 done
4014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4015 esac
4016
4017 $ac_path_GREP_found && break 3
4018 done
4019 done
4020 done
4021 IFS=$as_save_IFS
4022 if test -z "$ac_cv_path_GREP"; then
4023 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4024 fi
4025 else
4026 ac_cv_path_GREP=$GREP
4027 fi
4028
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4031 $as_echo "$ac_cv_path_GREP" >&6; }
4032 GREP="$ac_cv_path_GREP"
4033
4034
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4036 $as_echo_n "checking for egrep... " >&6; }
4037 if ${ac_cv_path_EGREP+:} false; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4041 then ac_cv_path_EGREP="$GREP -E"
4042 else
4043 if test -z "$EGREP"; then
4044 ac_path_EGREP_found=false
4045 # Loop through the user's path and test for each of PROGNAME-LIST
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4048 do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_prog in egrep; do
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4054 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4055 # Check for GNU ac_path_EGREP and select it if it is found.
4056 # Check for GNU $ac_path_EGREP
4057 case `"$ac_path_EGREP" --version 2>&1` in
4058 *GNU*)
4059 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4060 *)
4061 ac_count=0
4062 $as_echo_n 0123456789 >"conftest.in"
4063 while :
4064 do
4065 cat "conftest.in" "conftest.in" >"conftest.tmp"
4066 mv "conftest.tmp" "conftest.in"
4067 cp "conftest.in" "conftest.nl"
4068 $as_echo 'EGREP' >> "conftest.nl"
4069 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4070 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4071 as_fn_arith $ac_count + 1 && ac_count=$as_val
4072 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4073 # Best one so far, save it but keep looking for a better one
4074 ac_cv_path_EGREP="$ac_path_EGREP"
4075 ac_path_EGREP_max=$ac_count
4076 fi
4077 # 10*(2^10) chars as input seems more than enough
4078 test $ac_count -gt 10 && break
4079 done
4080 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4081 esac
4082
4083 $ac_path_EGREP_found && break 3
4084 done
4085 done
4086 done
4087 IFS=$as_save_IFS
4088 if test -z "$ac_cv_path_EGREP"; then
4089 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4090 fi
4091 else
4092 ac_cv_path_EGREP=$EGREP
4093 fi
4094
4095 fi
4096 fi
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4098 $as_echo "$ac_cv_path_EGREP" >&6; }
4099 EGREP="$ac_cv_path_EGREP"
4100
4101
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4103 $as_echo_n "checking for fgrep... " >&6; }
4104 if ${ac_cv_path_FGREP+:} false; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4108 then ac_cv_path_FGREP="$GREP -F"
4109 else
4110 if test -z "$FGREP"; then
4111 ac_path_FGREP_found=false
4112 # Loop through the user's path and test for each of PROGNAME-LIST
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4115 do
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 for ac_prog in fgrep; do
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4121 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4122 # Check for GNU ac_path_FGREP and select it if it is found.
4123 # Check for GNU $ac_path_FGREP
4124 case `"$ac_path_FGREP" --version 2>&1` in
4125 *GNU*)
4126 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4127 *)
4128 ac_count=0
4129 $as_echo_n 0123456789 >"conftest.in"
4130 while :
4131 do
4132 cat "conftest.in" "conftest.in" >"conftest.tmp"
4133 mv "conftest.tmp" "conftest.in"
4134 cp "conftest.in" "conftest.nl"
4135 $as_echo 'FGREP' >> "conftest.nl"
4136 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4137 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4138 as_fn_arith $ac_count + 1 && ac_count=$as_val
4139 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4140 # Best one so far, save it but keep looking for a better one
4141 ac_cv_path_FGREP="$ac_path_FGREP"
4142 ac_path_FGREP_max=$ac_count
4143 fi
4144 # 10*(2^10) chars as input seems more than enough
4145 test $ac_count -gt 10 && break
4146 done
4147 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4148 esac
4149
4150 $ac_path_FGREP_found && break 3
4151 done
4152 done
4153 done
4154 IFS=$as_save_IFS
4155 if test -z "$ac_cv_path_FGREP"; then
4156 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4157 fi
4158 else
4159 ac_cv_path_FGREP=$FGREP
4160 fi
4161
4162 fi
4163 fi
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4165 $as_echo "$ac_cv_path_FGREP" >&6; }
4166 FGREP="$ac_cv_path_FGREP"
4167
4168
4169 test -z "$GREP" && GREP=grep
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189 # Check whether --with-gnu-ld was given.
4190 if test "${with_gnu_ld+set}" = set; then :
4191 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4192 else
4193 with_gnu_ld=no
4194 fi
4195
4196 ac_prog=ld
4197 if test "$GCC" = yes; then
4198 # Check if gcc -print-prog-name=ld gives a path.
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4200 $as_echo_n "checking for ld used by $CC... " >&6; }
4201 case $host in
4202 *-*-mingw*)
4203 # gcc leaves a trailing carriage return which upsets mingw
4204 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4205 *)
4206 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4207 esac
4208 case $ac_prog in
4209 # Accept absolute paths.
4210 [\\/]* | ?:[\\/]*)
4211 re_direlt='/[^/][^/]*/\.\./'
4212 # Canonicalize the pathname of ld
4213 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4214 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4215 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4216 done
4217 test -z "$LD" && LD="$ac_prog"
4218 ;;
4219 "")
4220 # If it fails, then pretend we aren't using GCC.
4221 ac_prog=ld
4222 ;;
4223 *)
4224 # If it is relative, then search for the first ld in PATH.
4225 with_gnu_ld=unknown
4226 ;;
4227 esac
4228 elif test "$with_gnu_ld" = yes; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4230 $as_echo_n "checking for GNU ld... " >&6; }
4231 else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4233 $as_echo_n "checking for non-GNU ld... " >&6; }
4234 fi
4235 if ${lt_cv_path_LD+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 if test -z "$LD"; then
4239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4240 for ac_dir in $PATH; do
4241 IFS="$lt_save_ifs"
4242 test -z "$ac_dir" && ac_dir=.
4243 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4244 lt_cv_path_LD="$ac_dir/$ac_prog"
4245 # Check to see if the program is GNU ld. I'd rather use --version,
4246 # but apparently some variants of GNU ld only accept -v.
4247 # Break only if it was the GNU/non-GNU ld that we prefer.
4248 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4249 *GNU* | *'with BFD'*)
4250 test "$with_gnu_ld" != no && break
4251 ;;
4252 *)
4253 test "$with_gnu_ld" != yes && break
4254 ;;
4255 esac
4256 fi
4257 done
4258 IFS="$lt_save_ifs"
4259 else
4260 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4261 fi
4262 fi
4263
4264 LD="$lt_cv_path_LD"
4265 if test -n "$LD"; then
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4267 $as_echo "$LD" >&6; }
4268 else
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4270 $as_echo "no" >&6; }
4271 fi
4272 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4274 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4275 if ${lt_cv_prog_gnu_ld+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4279 case `$LD -v 2>&1 </dev/null` in
4280 *GNU* | *'with BFD'*)
4281 lt_cv_prog_gnu_ld=yes
4282 ;;
4283 *)
4284 lt_cv_prog_gnu_ld=no
4285 ;;
4286 esac
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4289 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4290 with_gnu_ld=$lt_cv_prog_gnu_ld
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4301 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4302 if ${lt_cv_path_NM+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 if test -n "$NM"; then
4306 # Let the user override the test.
4307 lt_cv_path_NM="$NM"
4308 else
4309 lt_nm_to_check="${ac_tool_prefix}nm"
4310 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4311 lt_nm_to_check="$lt_nm_to_check nm"
4312 fi
4313 for lt_tmp_nm in $lt_nm_to_check; do
4314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4315 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4316 IFS="$lt_save_ifs"
4317 test -z "$ac_dir" && ac_dir=.
4318 tmp_nm="$ac_dir/$lt_tmp_nm"
4319 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4320 # Check to see if the nm accepts a BSD-compat flag.
4321 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4322 # nm: unknown option "B" ignored
4323 # Tru64's nm complains that /dev/null is an invalid object file
4324 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4325 */dev/null* | *'Invalid file or object type'*)
4326 lt_cv_path_NM="$tmp_nm -B"
4327 break
4328 ;;
4329 *)
4330 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4331 */dev/null*)
4332 lt_cv_path_NM="$tmp_nm -p"
4333 break
4334 ;;
4335 *)
4336 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4337 continue # so that we can try to find one that supports BSD flags
4338 ;;
4339 esac
4340 ;;
4341 esac
4342 fi
4343 done
4344 IFS="$lt_save_ifs"
4345 done
4346 : ${lt_cv_path_NM=no}
4347 fi
4348 fi
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4350 $as_echo "$lt_cv_path_NM" >&6; }
4351 if test "$lt_cv_path_NM" != "no"; then
4352 NM="$lt_cv_path_NM"
4353 else
4354 # Didn't find any BSD compatible name lister, look for dumpbin.
4355 if test -n "$DUMPBIN"; then :
4356 # Let the user override the test.
4357 else
4358 if test -n "$ac_tool_prefix"; then
4359 for ac_prog in dumpbin "link -dump"
4360 do
4361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if ${ac_cv_prog_DUMPBIN+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 if test -n "$DUMPBIN"; then
4369 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4370 else
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH
4373 do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4381 fi
4382 done
4383 done
4384 IFS=$as_save_IFS
4385
4386 fi
4387 fi
4388 DUMPBIN=$ac_cv_prog_DUMPBIN
4389 if test -n "$DUMPBIN"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4391 $as_echo "$DUMPBIN" >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4395 fi
4396
4397
4398 test -n "$DUMPBIN" && break
4399 done
4400 fi
4401 if test -z "$DUMPBIN"; then
4402 ac_ct_DUMPBIN=$DUMPBIN
4403 for ac_prog in dumpbin "link -dump"
4404 do
4405 # Extract the first word of "$ac_prog", so it can be a program name with args.
4406 set dummy $ac_prog; ac_word=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 if test -n "$ac_ct_DUMPBIN"; then
4413 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4417 do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4425 fi
4426 done
4427 done
4428 IFS=$as_save_IFS
4429
4430 fi
4431 fi
4432 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4433 if test -n "$ac_ct_DUMPBIN"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4435 $as_echo "$ac_ct_DUMPBIN" >&6; }
4436 else
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 $as_echo "no" >&6; }
4439 fi
4440
4441
4442 test -n "$ac_ct_DUMPBIN" && break
4443 done
4444
4445 if test "x$ac_ct_DUMPBIN" = x; then
4446 DUMPBIN=":"
4447 else
4448 case $cross_compiling:$ac_tool_warned in
4449 yes:)
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452 ac_tool_warned=yes ;;
4453 esac
4454 DUMPBIN=$ac_ct_DUMPBIN
4455 fi
4456 fi
4457
4458 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4459 *COFF*)
4460 DUMPBIN="$DUMPBIN -symbols"
4461 ;;
4462 *)
4463 DUMPBIN=:
4464 ;;
4465 esac
4466 fi
4467
4468 if test "$DUMPBIN" != ":"; then
4469 NM="$DUMPBIN"
4470 fi
4471 fi
4472 test -z "$NM" && NM=nm
4473
4474
4475
4476
4477
4478
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4480 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4481 if ${lt_cv_nm_interface+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 lt_cv_nm_interface="BSD nm"
4485 echo "int some_variable = 0;" > conftest.$ac_ext
4486 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4487 (eval "$ac_compile" 2>conftest.err)
4488 cat conftest.err >&5
4489 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4490 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4491 cat conftest.err >&5
4492 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4493 cat conftest.out >&5
4494 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4495 lt_cv_nm_interface="MS dumpbin"
4496 fi
4497 rm -f conftest*
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4500 $as_echo "$lt_cv_nm_interface" >&6; }
4501
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4503 $as_echo_n "checking whether ln -s works... " >&6; }
4504 LN_S=$as_ln_s
4505 if test "$LN_S" = "ln -s"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507 $as_echo "yes" >&6; }
4508 else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4510 $as_echo "no, using $LN_S" >&6; }
4511 fi
4512
4513 # find the maximum length of command line arguments
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4515 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4516 if ${lt_cv_sys_max_cmd_len+:} false; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 i=0
4520 teststring="ABCD"
4521
4522 case $build_os in
4523 msdosdjgpp*)
4524 # On DJGPP, this test can blow up pretty badly due to problems in libc
4525 # (any single argument exceeding 2000 bytes causes a buffer overrun
4526 # during glob expansion). Even if it were fixed, the result of this
4527 # check would be larger than it should be.
4528 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4529 ;;
4530
4531 gnu*)
4532 # Under GNU Hurd, this test is not required because there is
4533 # no limit to the length of command line arguments.
4534 # Libtool will interpret -1 as no limit whatsoever
4535 lt_cv_sys_max_cmd_len=-1;
4536 ;;
4537
4538 cygwin* | mingw* | cegcc*)
4539 # On Win9x/ME, this test blows up -- it succeeds, but takes
4540 # about 5 minutes as the teststring grows exponentially.
4541 # Worse, since 9x/ME are not pre-emptively multitasking,
4542 # you end up with a "frozen" computer, even though with patience
4543 # the test eventually succeeds (with a max line length of 256k).
4544 # Instead, let's just punt: use the minimum linelength reported by
4545 # all of the supported platforms: 8192 (on NT/2K/XP).
4546 lt_cv_sys_max_cmd_len=8192;
4547 ;;
4548
4549 mint*)
4550 # On MiNT this can take a long time and run out of memory.
4551 lt_cv_sys_max_cmd_len=8192;
4552 ;;
4553
4554 amigaos*)
4555 # On AmigaOS with pdksh, this test takes hours, literally.
4556 # So we just punt and use a minimum line length of 8192.
4557 lt_cv_sys_max_cmd_len=8192;
4558 ;;
4559
4560 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4561 # This has been around since 386BSD, at least. Likely further.
4562 if test -x /sbin/sysctl; then
4563 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4564 elif test -x /usr/sbin/sysctl; then
4565 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4566 else
4567 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4568 fi
4569 # And add a safety zone
4570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4572 ;;
4573
4574 interix*)
4575 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4576 lt_cv_sys_max_cmd_len=196608
4577 ;;
4578
4579 osf*)
4580 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4581 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4582 # nice to cause kernel panics so lets avoid the loop below.
4583 # First set a reasonable default.
4584 lt_cv_sys_max_cmd_len=16384
4585 #
4586 if test -x /sbin/sysconfig; then
4587 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4588 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4589 esac
4590 fi
4591 ;;
4592 sco3.2v5*)
4593 lt_cv_sys_max_cmd_len=102400
4594 ;;
4595 sysv5* | sco5v6* | sysv4.2uw2*)
4596 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4597 if test -n "$kargmax"; then
4598 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4599 else
4600 lt_cv_sys_max_cmd_len=32768
4601 fi
4602 ;;
4603 *)
4604 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4605 if test -n "$lt_cv_sys_max_cmd_len"; then
4606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4608 else
4609 # Make teststring a little bigger before we do anything with it.
4610 # a 1K string should be a reasonable start.
4611 for i in 1 2 3 4 5 6 7 8 ; do
4612 teststring=$teststring$teststring
4613 done
4614 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4615 # If test is not a shell built-in, we'll probably end up computing a
4616 # maximum length that is only half of the actual maximum length, but
4617 # we can't tell.
4618 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4619 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4620 test $i != 17 # 1/2 MB should be enough
4621 do
4622 i=`expr $i + 1`
4623 teststring=$teststring$teststring
4624 done
4625 # Only check the string length outside the loop.
4626 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4627 teststring=
4628 # Add a significant safety factor because C++ compilers can tack on
4629 # massive amounts of additional arguments before passing them to the
4630 # linker. It appears as though 1/2 is a usable value.
4631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4632 fi
4633 ;;
4634 esac
4635
4636 fi
4637
4638 if test -n $lt_cv_sys_max_cmd_len ; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4640 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4641 else
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4643 $as_echo "none" >&6; }
4644 fi
4645 max_cmd_len=$lt_cv_sys_max_cmd_len
4646
4647
4648
4649
4650
4651
4652 : ${CP="cp -f"}
4653 : ${MV="mv -f"}
4654 : ${RM="rm -f"}
4655
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4657 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4658 # Try some XSI features
4659 xsi_shell=no
4660 ( _lt_dummy="a/b/c"
4661 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4662 = c,a/b,b/c, \
4663 && eval 'test $(( 1 + 1 )) -eq 2 \
4664 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4665 && xsi_shell=yes
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4667 $as_echo "$xsi_shell" >&6; }
4668
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4671 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4672 lt_shell_append=no
4673 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4674 >/dev/null 2>&1 \
4675 && lt_shell_append=yes
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4677 $as_echo "$lt_shell_append" >&6; }
4678
4679
4680 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4681 lt_unset=unset
4682 else
4683 lt_unset=false
4684 fi
4685
4686
4687
4688
4689
4690 # test EBCDIC or ASCII
4691 case `echo X|tr X '\101'` in
4692 A) # ASCII based system
4693 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4694 lt_SP2NL='tr \040 \012'
4695 lt_NL2SP='tr \015\012 \040\040'
4696 ;;
4697 *) # EBCDIC based system
4698 lt_SP2NL='tr \100 \n'
4699 lt_NL2SP='tr \r\n \100\100'
4700 ;;
4701 esac
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4712 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4713 if ${lt_cv_to_host_file_cmd+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 case $host in
4717 *-*-mingw* )
4718 case $build in
4719 *-*-mingw* ) # actually msys
4720 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4721 ;;
4722 *-*-cygwin* )
4723 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4724 ;;
4725 * ) # otherwise, assume *nix
4726 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4727 ;;
4728 esac
4729 ;;
4730 *-*-cygwin* )
4731 case $build in
4732 *-*-mingw* ) # actually msys
4733 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4734 ;;
4735 *-*-cygwin* )
4736 lt_cv_to_host_file_cmd=func_convert_file_noop
4737 ;;
4738 * ) # otherwise, assume *nix
4739 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4740 ;;
4741 esac
4742 ;;
4743 * ) # unhandled hosts (and "normal" native builds)
4744 lt_cv_to_host_file_cmd=func_convert_file_noop
4745 ;;
4746 esac
4747
4748 fi
4749
4750 to_host_file_cmd=$lt_cv_to_host_file_cmd
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4752 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4753
4754
4755
4756
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4759 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4760 if ${lt_cv_to_tool_file_cmd+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 #assume ordinary cross tools, or native build.
4764 lt_cv_to_tool_file_cmd=func_convert_file_noop
4765 case $host in
4766 *-*-mingw* )
4767 case $build in
4768 *-*-mingw* ) # actually msys
4769 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4770 ;;
4771 esac
4772 ;;
4773 esac
4774
4775 fi
4776
4777 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4779 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4780
4781
4782
4783
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4786 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4787 if ${lt_cv_ld_reload_flag+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 lt_cv_ld_reload_flag='-r'
4791 fi
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4793 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4794 reload_flag=$lt_cv_ld_reload_flag
4795 case $reload_flag in
4796 "" | " "*) ;;
4797 *) reload_flag=" $reload_flag" ;;
4798 esac
4799 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4800 case $host_os in
4801 cygwin* | mingw* | pw32* | cegcc*)
4802 if test "$GCC" != yes; then
4803 reload_cmds=false
4804 fi
4805 ;;
4806 darwin*)
4807 if test "$GCC" = yes; then
4808 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4809 else
4810 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4811 fi
4812 ;;
4813 esac
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823 if test -n "$ac_tool_prefix"; then
4824 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4825 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if ${ac_cv_prog_OBJDUMP+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 if test -n "$OBJDUMP"; then
4832 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4844 fi
4845 done
4846 done
4847 IFS=$as_save_IFS
4848
4849 fi
4850 fi
4851 OBJDUMP=$ac_cv_prog_OBJDUMP
4852 if test -n "$OBJDUMP"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4854 $as_echo "$OBJDUMP" >&6; }
4855 else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4858 fi
4859
4860
4861 fi
4862 if test -z "$ac_cv_prog_OBJDUMP"; then
4863 ac_ct_OBJDUMP=$OBJDUMP
4864 # Extract the first word of "objdump", so it can be a program name with args.
4865 set dummy objdump; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 if test -n "$ac_ct_OBJDUMP"; then
4872 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885 done
4886 done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4892 if test -n "$ac_ct_OBJDUMP"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4894 $as_echo "$ac_ct_OBJDUMP" >&6; }
4895 else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4898 fi
4899
4900 if test "x$ac_ct_OBJDUMP" = x; then
4901 OBJDUMP="false"
4902 else
4903 case $cross_compiling:$ac_tool_warned in
4904 yes:)
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned=yes ;;
4908 esac
4909 OBJDUMP=$ac_ct_OBJDUMP
4910 fi
4911 else
4912 OBJDUMP="$ac_cv_prog_OBJDUMP"
4913 fi
4914
4915 test -z "$OBJDUMP" && OBJDUMP=objdump
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4926 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4927 if ${lt_cv_deplibs_check_method+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 lt_cv_file_magic_cmd='$MAGIC_CMD'
4931 lt_cv_file_magic_test_file=
4932 lt_cv_deplibs_check_method='unknown'
4933 # Need to set the preceding variable on all platforms that support
4934 # interlibrary dependencies.
4935 # 'none' -- dependencies not supported.
4936 # `unknown' -- same as none, but documents that we really don't know.
4937 # 'pass_all' -- all dependencies passed with no checks.
4938 # 'test_compile' -- check by making test program.
4939 # 'file_magic [[regex]]' -- check by looking for files in library path
4940 # which responds to the $file_magic_cmd with a given extended regex.
4941 # If you have `file' or equivalent on your system and you're not sure
4942 # whether `pass_all' will *always* work, you probably want this one.
4943
4944 case $host_os in
4945 aix[4-9]*)
4946 lt_cv_deplibs_check_method=pass_all
4947 ;;
4948
4949 beos*)
4950 lt_cv_deplibs_check_method=pass_all
4951 ;;
4952
4953 bsdi[45]*)
4954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4955 lt_cv_file_magic_cmd='/usr/bin/file -L'
4956 lt_cv_file_magic_test_file=/shlib/libc.so
4957 ;;
4958
4959 cygwin*)
4960 # func_win32_libid is a shell function defined in ltmain.sh
4961 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4962 lt_cv_file_magic_cmd='func_win32_libid'
4963 ;;
4964
4965 mingw* | pw32*)
4966 # Base MSYS/MinGW do not provide the 'file' command needed by
4967 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4968 # unless we find 'file', for example because we are cross-compiling.
4969 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4970 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4971 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4972 lt_cv_file_magic_cmd='func_win32_libid'
4973 else
4974 # Keep this pattern in sync with the one in func_win32_libid.
4975 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4976 lt_cv_file_magic_cmd='$OBJDUMP -f'
4977 fi
4978 ;;
4979
4980 cegcc*)
4981 # use the weaker test based on 'objdump'. See mingw*.
4982 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4983 lt_cv_file_magic_cmd='$OBJDUMP -f'
4984 ;;
4985
4986 darwin* | rhapsody*)
4987 lt_cv_deplibs_check_method=pass_all
4988 ;;
4989
4990 freebsd* | dragonfly*)
4991 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4992 case $host_cpu in
4993 i*86 )
4994 # Not sure whether the presence of OpenBSD here was a mistake.
4995 # Let's accept both of them until this is cleared up.
4996 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4997 lt_cv_file_magic_cmd=/usr/bin/file
4998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4999 ;;
5000 esac
5001 else
5002 lt_cv_deplibs_check_method=pass_all
5003 fi
5004 ;;
5005
5006 gnu*)
5007 lt_cv_deplibs_check_method=pass_all
5008 ;;
5009
5010 haiku*)
5011 lt_cv_deplibs_check_method=pass_all
5012 ;;
5013
5014 hpux10.20* | hpux11*)
5015 lt_cv_file_magic_cmd=/usr/bin/file
5016 case $host_cpu in
5017 ia64*)
5018 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5019 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5020 ;;
5021 hppa*64*)
5022 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]'
5023 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5024 ;;
5025 *)
5026 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5027 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5028 ;;
5029 esac
5030 ;;
5031
5032 interix[3-9]*)
5033 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5035 ;;
5036
5037 irix5* | irix6* | nonstopux*)
5038 case $LD in
5039 *-32|*"-32 ") libmagic=32-bit;;
5040 *-n32|*"-n32 ") libmagic=N32;;
5041 *-64|*"-64 ") libmagic=64-bit;;
5042 *) libmagic=never-match;;
5043 esac
5044 lt_cv_deplibs_check_method=pass_all
5045 ;;
5046
5047 # This must be Linux ELF.
5048 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5049 lt_cv_deplibs_check_method=pass_all
5050 ;;
5051
5052 netbsd* | netbsdelf*-gnu)
5053 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5055 else
5056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5057 fi
5058 ;;
5059
5060 newos6*)
5061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5062 lt_cv_file_magic_cmd=/usr/bin/file
5063 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5064 ;;
5065
5066 *nto* | *qnx*)
5067 lt_cv_deplibs_check_method=pass_all
5068 ;;
5069
5070 openbsd*)
5071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5073 else
5074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5075 fi
5076 ;;
5077
5078 osf3* | osf4* | osf5*)
5079 lt_cv_deplibs_check_method=pass_all
5080 ;;
5081
5082 rdos*)
5083 lt_cv_deplibs_check_method=pass_all
5084 ;;
5085
5086 solaris*)
5087 lt_cv_deplibs_check_method=pass_all
5088 ;;
5089
5090 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
5093
5094 sysv4 | sysv4.3*)
5095 case $host_vendor in
5096 motorola)
5097 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]'
5098 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5099 ;;
5100 ncr)
5101 lt_cv_deplibs_check_method=pass_all
5102 ;;
5103 sequent)
5104 lt_cv_file_magic_cmd='/bin/file'
5105 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5106 ;;
5107 sni)
5108 lt_cv_file_magic_cmd='/bin/file'
5109 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5110 lt_cv_file_magic_test_file=/lib/libc.so
5111 ;;
5112 siemens)
5113 lt_cv_deplibs_check_method=pass_all
5114 ;;
5115 pc)
5116 lt_cv_deplibs_check_method=pass_all
5117 ;;
5118 esac
5119 ;;
5120
5121 tpf*)
5122 lt_cv_deplibs_check_method=pass_all
5123 ;;
5124 esac
5125
5126 fi
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5128 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5129
5130 file_magic_glob=
5131 want_nocaseglob=no
5132 if test "$build" = "$host"; then
5133 case $host_os in
5134 mingw* | pw32*)
5135 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5136 want_nocaseglob=yes
5137 else
5138 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5139 fi
5140 ;;
5141 esac
5142 fi
5143
5144 file_magic_cmd=$lt_cv_file_magic_cmd
5145 deplibs_check_method=$lt_cv_deplibs_check_method
5146 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if ${ac_cv_prog_DLLTOOL+:} false; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 if test -n "$DLLTOOL"; then
5178 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195 fi
5196 fi
5197 DLLTOOL=$ac_cv_prog_DLLTOOL
5198 if test -n "$DLLTOOL"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5200 $as_echo "$DLLTOOL" >&6; }
5201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204 fi
5205
5206
5207 fi
5208 if test -z "$ac_cv_prog_DLLTOOL"; then
5209 ac_ct_DLLTOOL=$DLLTOOL
5210 # Extract the first word of "dlltool", so it can be a program name with args.
5211 set dummy dlltool; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if test -n "$ac_ct_DLLTOOL"; then
5218 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5238 if test -n "$ac_ct_DLLTOOL"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5240 $as_echo "$ac_ct_DLLTOOL" >&6; }
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245
5246 if test "x$ac_ct_DLLTOOL" = x; then
5247 DLLTOOL="false"
5248 else
5249 case $cross_compiling:$ac_tool_warned in
5250 yes:)
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5253 ac_tool_warned=yes ;;
5254 esac
5255 DLLTOOL=$ac_ct_DLLTOOL
5256 fi
5257 else
5258 DLLTOOL="$ac_cv_prog_DLLTOOL"
5259 fi
5260
5261 test -z "$DLLTOOL" && DLLTOOL=dlltool
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5273 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5274 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 lt_cv_sharedlib_from_linklib_cmd='unknown'
5278
5279 case $host_os in
5280 cygwin* | mingw* | pw32* | cegcc*)
5281 # two different shell functions defined in ltmain.sh
5282 # decide which to use based on capabilities of $DLLTOOL
5283 case `$DLLTOOL --help 2>&1` in
5284 *--identify-strict*)
5285 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5286 ;;
5287 *)
5288 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5289 ;;
5290 esac
5291 ;;
5292 *)
5293 # fallback: assume linklib IS sharedlib
5294 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5295 ;;
5296 esac
5297
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5300 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5301 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5302 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5303
5304
5305
5306
5307
5308
5309
5310
5311 if test -n "$ac_tool_prefix"; then
5312 for ac_prog in ar
5313 do
5314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if ${ac_cv_prog_AR+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 if test -n "$AR"; then
5322 ac_cv_prog_AR="$AR" # Let the user override the test.
5323 else
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5326 do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5334 fi
5335 done
5336 done
5337 IFS=$as_save_IFS
5338
5339 fi
5340 fi
5341 AR=$ac_cv_prog_AR
5342 if test -n "$AR"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5344 $as_echo "$AR" >&6; }
5345 else
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 $as_echo "no" >&6; }
5348 fi
5349
5350
5351 test -n "$AR" && break
5352 done
5353 fi
5354 if test -z "$AR"; then
5355 ac_ct_AR=$AR
5356 for ac_prog in ar
5357 do
5358 # Extract the first word of "$ac_prog", so it can be a program name with args.
5359 set dummy $ac_prog; ac_word=$2
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361 $as_echo_n "checking for $ac_word... " >&6; }
5362 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 if test -n "$ac_ct_AR"; then
5366 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5367 else
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5370 do
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375 ac_cv_prog_ac_ct_AR="$ac_prog"
5376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 break 2
5378 fi
5379 done
5380 done
5381 IFS=$as_save_IFS
5382
5383 fi
5384 fi
5385 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5386 if test -n "$ac_ct_AR"; then
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5388 $as_echo "$ac_ct_AR" >&6; }
5389 else
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5392 fi
5393
5394
5395 test -n "$ac_ct_AR" && break
5396 done
5397
5398 if test "x$ac_ct_AR" = x; then
5399 AR="false"
5400 else
5401 case $cross_compiling:$ac_tool_warned in
5402 yes:)
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5405 ac_tool_warned=yes ;;
5406 esac
5407 AR=$ac_ct_AR
5408 fi
5409 fi
5410
5411 : ${AR=ar}
5412 : ${AR_FLAGS=cru}
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5425 $as_echo_n "checking for archiver @FILE support... " >&6; }
5426 if ${lt_cv_ar_at_file+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 lt_cv_ar_at_file=no
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5432
5433 int
5434 main ()
5435 {
5436
5437 ;
5438 return 0;
5439 }
5440 _ACEOF
5441 if ac_fn_c_try_compile "$LINENO"; then :
5442 echo conftest.$ac_objext > conftest.lst
5443 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5445 (eval $lt_ar_try) 2>&5
5446 ac_status=$?
5447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5448 test $ac_status = 0; }
5449 if test "$ac_status" -eq 0; then
5450 # Ensure the archiver fails upon bogus file names.
5451 rm -f conftest.$ac_objext libconftest.a
5452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5453 (eval $lt_ar_try) 2>&5
5454 ac_status=$?
5455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5456 test $ac_status = 0; }
5457 if test "$ac_status" -ne 0; then
5458 lt_cv_ar_at_file=@
5459 fi
5460 fi
5461 rm -f conftest.* libconftest.a
5462
5463 fi
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465
5466 fi
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5468 $as_echo "$lt_cv_ar_at_file" >&6; }
5469
5470 if test "x$lt_cv_ar_at_file" = xno; then
5471 archiver_list_spec=
5472 else
5473 archiver_list_spec=$lt_cv_ar_at_file
5474 fi
5475
5476
5477
5478
5479
5480
5481
5482 if test -n "$ac_tool_prefix"; then
5483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5484 set dummy ${ac_tool_prefix}strip; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if ${ac_cv_prog_STRIP+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 if test -n "$STRIP"; then
5491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5500 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504 done
5505 done
5506 IFS=$as_save_IFS
5507
5508 fi
5509 fi
5510 STRIP=$ac_cv_prog_STRIP
5511 if test -n "$STRIP"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5513 $as_echo "$STRIP" >&6; }
5514 else
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5517 fi
5518
5519
5520 fi
5521 if test -z "$ac_cv_prog_STRIP"; then
5522 ac_ct_STRIP=$STRIP
5523 # Extract the first word of "strip", so it can be a program name with args.
5524 set dummy strip; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if test -n "$ac_ct_STRIP"; then
5531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5532 else
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540 ac_cv_prog_ac_ct_STRIP="strip"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5543 fi
5544 done
5545 done
5546 IFS=$as_save_IFS
5547
5548 fi
5549 fi
5550 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5551 if test -n "$ac_ct_STRIP"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5553 $as_echo "$ac_ct_STRIP" >&6; }
5554 else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558
5559 if test "x$ac_ct_STRIP" = x; then
5560 STRIP=":"
5561 else
5562 case $cross_compiling:$ac_tool_warned in
5563 yes:)
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5566 ac_tool_warned=yes ;;
5567 esac
5568 STRIP=$ac_ct_STRIP
5569 fi
5570 else
5571 STRIP="$ac_cv_prog_STRIP"
5572 fi
5573
5574 test -z "$STRIP" && STRIP=:
5575
5576
5577
5578
5579
5580
5581 if test -n "$ac_tool_prefix"; then
5582 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5583 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if ${ac_cv_prog_RANLIB+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 if test -n "$RANLIB"; then
5590 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5591 else
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5594 do
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 break 2
5602 fi
5603 done
5604 done
5605 IFS=$as_save_IFS
5606
5607 fi
5608 fi
5609 RANLIB=$ac_cv_prog_RANLIB
5610 if test -n "$RANLIB"; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5612 $as_echo "$RANLIB" >&6; }
5613 else
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5616 fi
5617
5618
5619 fi
5620 if test -z "$ac_cv_prog_RANLIB"; then
5621 ac_ct_RANLIB=$RANLIB
5622 # Extract the first word of "ranlib", so it can be a program name with args.
5623 set dummy ranlib; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 if test -n "$ac_ct_RANLIB"; then
5630 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5639 ac_cv_prog_ac_ct_RANLIB="ranlib"
5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 break 2
5642 fi
5643 done
5644 done
5645 IFS=$as_save_IFS
5646
5647 fi
5648 fi
5649 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5650 if test -n "$ac_ct_RANLIB"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5652 $as_echo "$ac_ct_RANLIB" >&6; }
5653 else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5656 fi
5657
5658 if test "x$ac_ct_RANLIB" = x; then
5659 RANLIB=":"
5660 else
5661 case $cross_compiling:$ac_tool_warned in
5662 yes:)
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5665 ac_tool_warned=yes ;;
5666 esac
5667 RANLIB=$ac_ct_RANLIB
5668 fi
5669 else
5670 RANLIB="$ac_cv_prog_RANLIB"
5671 fi
5672
5673 test -z "$RANLIB" && RANLIB=:
5674
5675
5676
5677
5678
5679
5680 # Determine commands to create old-style static archives.
5681 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5682 old_postinstall_cmds='chmod 644 $oldlib'
5683 old_postuninstall_cmds=
5684
5685 if test -n "$RANLIB"; then
5686 case $host_os in
5687 openbsd*)
5688 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5689 ;;
5690 *)
5691 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5692 ;;
5693 esac
5694 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5695 fi
5696
5697 case $host_os in
5698 darwin*)
5699 lock_old_archive_extraction=yes ;;
5700 *)
5701 lock_old_archive_extraction=no ;;
5702 esac
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742 # If no C compiler was specified, use CC.
5743 LTCC=${LTCC-"$CC"}
5744
5745 # If no C compiler flags were specified, use CFLAGS.
5746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5747
5748 # Allow CC to be a program name with arguments.
5749 compiler=$CC
5750
5751
5752 # Check for command to grab the raw symbol name followed by C symbol from nm.
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5754 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5755 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758
5759 # These are sane defaults that work on at least a few old systems.
5760 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5761
5762 # Character class describing NM global symbol codes.
5763 symcode='[BCDEGRST]'
5764
5765 # Regexp to match symbols that can be accessed directly from C.
5766 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5767
5768 # Define system-specific variables.
5769 case $host_os in
5770 aix*)
5771 symcode='[BCDT]'
5772 ;;
5773 cygwin* | mingw* | pw32* | cegcc*)
5774 symcode='[ABCDGISTW]'
5775 ;;
5776 hpux*)
5777 if test "$host_cpu" = ia64; then
5778 symcode='[ABCDEGRST]'
5779 fi
5780 ;;
5781 irix* | nonstopux*)
5782 symcode='[BCDEGRST]'
5783 ;;
5784 osf*)
5785 symcode='[BCDEGQRST]'
5786 ;;
5787 solaris*)
5788 symcode='[BDRT]'
5789 ;;
5790 sco3.2v5*)
5791 symcode='[DT]'
5792 ;;
5793 sysv4.2uw2*)
5794 symcode='[DT]'
5795 ;;
5796 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5797 symcode='[ABDT]'
5798 ;;
5799 sysv4)
5800 symcode='[DFNSTU]'
5801 ;;
5802 esac
5803
5804 # If we're using GNU nm, then use its standard symbol codes.
5805 case `$NM -V 2>&1` in
5806 *GNU* | *'with BFD'*)
5807 symcode='[ABCDGIRSTW]' ;;
5808 esac
5809
5810 # Transform an extracted symbol line into a proper C declaration.
5811 # Some systems (esp. on ia64) link data and code symbols differently,
5812 # so use this general approach.
5813 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5814
5815 # Transform an extracted symbol line into symbol name and symbol address
5816 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5817 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'"
5818
5819 # Handle CRLF in mingw tool chain
5820 opt_cr=
5821 case $build_os in
5822 mingw*)
5823 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5824 ;;
5825 esac
5826
5827 # Try without a prefix underscore, then with it.
5828 for ac_symprfx in "" "_"; do
5829
5830 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5831 symxfrm="\\1 $ac_symprfx\\2 \\2"
5832
5833 # Write the raw and C identifiers.
5834 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5835 # Fake it for dumpbin and say T for any non-static function
5836 # and D for any global variable.
5837 # Also find C++ and __fastcall symbols from MSVC++,
5838 # which start with @ or ?.
5839 lt_cv_sys_global_symbol_pipe="$AWK '"\
5840 " {last_section=section; section=\$ 3};"\
5841 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5842 " \$ 0!~/External *\|/{next};"\
5843 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5844 " {if(hide[section]) next};"\
5845 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5846 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5847 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5848 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5849 " ' prfx=^$ac_symprfx"
5850 else
5851 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5852 fi
5853 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5854
5855 # Check to see that the pipe works correctly.
5856 pipe_works=no
5857
5858 rm -f conftest*
5859 cat > conftest.$ac_ext <<_LT_EOF
5860 #ifdef __cplusplus
5861 extern "C" {
5862 #endif
5863 char nm_test_var;
5864 void nm_test_func(void);
5865 void nm_test_func(void){}
5866 #ifdef __cplusplus
5867 }
5868 #endif
5869 int main(){nm_test_var='a';nm_test_func();return(0);}
5870 _LT_EOF
5871
5872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5873 (eval $ac_compile) 2>&5
5874 ac_status=$?
5875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5876 test $ac_status = 0; }; then
5877 # Now try to grab the symbols.
5878 nlist=conftest.nm
5879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5880 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5881 ac_status=$?
5882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5883 test $ac_status = 0; } && test -s "$nlist"; then
5884 # Try sorting and uniquifying the output.
5885 if sort "$nlist" | uniq > "$nlist"T; then
5886 mv -f "$nlist"T "$nlist"
5887 else
5888 rm -f "$nlist"T
5889 fi
5890
5891 # Make sure that we snagged all the symbols we need.
5892 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5893 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5894 cat <<_LT_EOF > conftest.$ac_ext
5895 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5896 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5897 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5898 relocations are performed -- see ld's documentation on pseudo-relocs. */
5899 # define LT_DLSYM_CONST
5900 #elif defined(__osf__)
5901 /* This system does not cope well with relocations in const data. */
5902 # define LT_DLSYM_CONST
5903 #else
5904 # define LT_DLSYM_CONST const
5905 #endif
5906
5907 #ifdef __cplusplus
5908 extern "C" {
5909 #endif
5910
5911 _LT_EOF
5912 # Now generate the symbol file.
5913 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5914
5915 cat <<_LT_EOF >> conftest.$ac_ext
5916
5917 /* The mapping between symbol names and symbols. */
5918 LT_DLSYM_CONST struct {
5919 const char *name;
5920 void *address;
5921 }
5922 lt__PROGRAM__LTX_preloaded_symbols[] =
5923 {
5924 { "@PROGRAM@", (void *) 0 },
5925 _LT_EOF
5926 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5927 cat <<\_LT_EOF >> conftest.$ac_ext
5928 {0, (void *) 0}
5929 };
5930
5931 /* This works around a problem in FreeBSD linker */
5932 #ifdef FREEBSD_WORKAROUND
5933 static const void *lt_preloaded_setup() {
5934 return lt__PROGRAM__LTX_preloaded_symbols;
5935 }
5936 #endif
5937
5938 #ifdef __cplusplus
5939 }
5940 #endif
5941 _LT_EOF
5942 # Now try linking the two files.
5943 mv conftest.$ac_objext conftstm.$ac_objext
5944 lt_globsym_save_LIBS=$LIBS
5945 lt_globsym_save_CFLAGS=$CFLAGS
5946 LIBS="conftstm.$ac_objext"
5947 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5949 (eval $ac_link) 2>&5
5950 ac_status=$?
5951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5952 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5953 pipe_works=yes
5954 fi
5955 LIBS=$lt_globsym_save_LIBS
5956 CFLAGS=$lt_globsym_save_CFLAGS
5957 else
5958 echo "cannot find nm_test_func in $nlist" >&5
5959 fi
5960 else
5961 echo "cannot find nm_test_var in $nlist" >&5
5962 fi
5963 else
5964 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5965 fi
5966 else
5967 echo "$progname: failed program was:" >&5
5968 cat conftest.$ac_ext >&5
5969 fi
5970 rm -rf conftest* conftst*
5971
5972 # Do not use the global_symbol_pipe unless it works.
5973 if test "$pipe_works" = yes; then
5974 break
5975 else
5976 lt_cv_sys_global_symbol_pipe=
5977 fi
5978 done
5979
5980 fi
5981
5982 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5983 lt_cv_sys_global_symbol_to_cdecl=
5984 fi
5985 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5987 $as_echo "failed" >&6; }
5988 else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5990 $as_echo "ok" >&6; }
5991 fi
5992
5993 # Response file support.
5994 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5995 nm_file_list_spec='@'
5996 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5997 nm_file_list_spec='@'
5998 fi
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6027 $as_echo_n "checking for sysroot... " >&6; }
6028
6029 # Check whether --with-sysroot was given.
6030 if test "${with_sysroot+set}" = set; then :
6031 withval=$with_sysroot;
6032 else
6033 with_sysroot=no
6034 fi
6035
6036
6037 lt_sysroot=
6038 case ${with_sysroot} in #(
6039 yes)
6040 if test "$GCC" = yes; then
6041 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6042 fi
6043 ;; #(
6044 /*)
6045 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6046 ;; #(
6047 no|'')
6048 ;; #(
6049 *)
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6051 $as_echo "${with_sysroot}" >&6; }
6052 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6053 ;;
6054 esac
6055
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6057 $as_echo "${lt_sysroot:-no}" >&6; }
6058
6059
6060
6061
6062
6063 # Check whether --enable-libtool-lock was given.
6064 if test "${enable_libtool_lock+set}" = set; then :
6065 enableval=$enable_libtool_lock;
6066 fi
6067
6068 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6069
6070 # Some flags need to be propagated to the compiler or linker for good
6071 # libtool support.
6072 case $host in
6073 ia64-*-hpux*)
6074 # Find out which ABI we are using.
6075 echo 'int i;' > conftest.$ac_ext
6076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6077 (eval $ac_compile) 2>&5
6078 ac_status=$?
6079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6080 test $ac_status = 0; }; then
6081 case `/usr/bin/file conftest.$ac_objext` in
6082 *ELF-32*)
6083 HPUX_IA64_MODE="32"
6084 ;;
6085 *ELF-64*)
6086 HPUX_IA64_MODE="64"
6087 ;;
6088 esac
6089 fi
6090 rm -rf conftest*
6091 ;;
6092 *-*-irix6*)
6093 # Find out which ABI we are using.
6094 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6096 (eval $ac_compile) 2>&5
6097 ac_status=$?
6098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6099 test $ac_status = 0; }; then
6100 if test "$lt_cv_prog_gnu_ld" = yes; then
6101 case `/usr/bin/file conftest.$ac_objext` in
6102 *32-bit*)
6103 LD="${LD-ld} -melf32bsmip"
6104 ;;
6105 *N32*)
6106 LD="${LD-ld} -melf32bmipn32"
6107 ;;
6108 *64-bit*)
6109 LD="${LD-ld} -melf64bmip"
6110 ;;
6111 esac
6112 else
6113 case `/usr/bin/file conftest.$ac_objext` in
6114 *32-bit*)
6115 LD="${LD-ld} -32"
6116 ;;
6117 *N32*)
6118 LD="${LD-ld} -n32"
6119 ;;
6120 *64-bit*)
6121 LD="${LD-ld} -64"
6122 ;;
6123 esac
6124 fi
6125 fi
6126 rm -rf conftest*
6127 ;;
6128
6129 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6130 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6131 # Find out which ABI we are using.
6132 echo 'int i;' > conftest.$ac_ext
6133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6134 (eval $ac_compile) 2>&5
6135 ac_status=$?
6136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6137 test $ac_status = 0; }; then
6138 case `/usr/bin/file conftest.o` in
6139 *32-bit*)
6140 case $host in
6141 x86_64-*kfreebsd*-gnu)
6142 LD="${LD-ld} -m elf_i386_fbsd"
6143 ;;
6144 x86_64-*linux*)
6145 LD="${LD-ld} -m elf_i386"
6146 ;;
6147 ppc64-*linux*|powerpc64-*linux*)
6148 LD="${LD-ld} -m elf32ppclinux"
6149 ;;
6150 s390x-*linux*)
6151 LD="${LD-ld} -m elf_s390"
6152 ;;
6153 sparc64-*linux*)
6154 LD="${LD-ld} -m elf32_sparc"
6155 ;;
6156 esac
6157 ;;
6158 *64-bit*)
6159 case $host in
6160 x86_64-*kfreebsd*-gnu)
6161 LD="${LD-ld} -m elf_x86_64_fbsd"
6162 ;;
6163 x86_64-*linux*)
6164 LD="${LD-ld} -m elf_x86_64"
6165 ;;
6166 ppc*-*linux*|powerpc*-*linux*)
6167 LD="${LD-ld} -m elf64ppc"
6168 ;;
6169 s390*-*linux*|s390*-*tpf*)
6170 LD="${LD-ld} -m elf64_s390"
6171 ;;
6172 sparc*-*linux*)
6173 LD="${LD-ld} -m elf64_sparc"
6174 ;;
6175 esac
6176 ;;
6177 esac
6178 fi
6179 rm -rf conftest*
6180 ;;
6181
6182 *-*-sco3.2v5*)
6183 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6184 SAVE_CFLAGS="$CFLAGS"
6185 CFLAGS="$CFLAGS -belf"
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6187 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6188 if ${lt_cv_cc_needs_belf+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 ac_ext=c
6192 ac_cpp='$CPP $CPPFLAGS'
6193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6196
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199
6200 int
6201 main ()
6202 {
6203
6204 ;
6205 return 0;
6206 }
6207 _ACEOF
6208 if ac_fn_c_try_link "$LINENO"; then :
6209 lt_cv_cc_needs_belf=yes
6210 else
6211 lt_cv_cc_needs_belf=no
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext \
6214 conftest$ac_exeext conftest.$ac_ext
6215 ac_ext=c
6216 ac_cpp='$CPP $CPPFLAGS'
6217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6220
6221 fi
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6223 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6224 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6225 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6226 CFLAGS="$SAVE_CFLAGS"
6227 fi
6228 ;;
6229 sparc*-*solaris*)
6230 # Find out which ABI we are using.
6231 echo 'int i;' > conftest.$ac_ext
6232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6233 (eval $ac_compile) 2>&5
6234 ac_status=$?
6235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6236 test $ac_status = 0; }; then
6237 case `/usr/bin/file conftest.o` in
6238 *64-bit*)
6239 case $lt_cv_prog_gnu_ld in
6240 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6241 *)
6242 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6243 LD="${LD-ld} -64"
6244 fi
6245 ;;
6246 esac
6247 ;;
6248 esac
6249 fi
6250 rm -rf conftest*
6251 ;;
6252 esac
6253
6254 need_locks="$enable_libtool_lock"
6255
6256 if test -n "$ac_tool_prefix"; then
6257 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6258 set dummy ${ac_tool_prefix}mt; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6262 $as_echo_n "(cached) " >&6
6263 else
6264 if test -n "$MANIFEST_TOOL"; then
6265 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6269 do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278 done
6279 done
6280 IFS=$as_save_IFS
6281
6282 fi
6283 fi
6284 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6285 if test -n "$MANIFEST_TOOL"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6287 $as_echo "$MANIFEST_TOOL" >&6; }
6288 else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6291 fi
6292
6293
6294 fi
6295 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6296 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6297 # Extract the first word of "mt", so it can be a program name with args.
6298 set dummy mt; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 if test -n "$ac_ct_MANIFEST_TOOL"; then
6305 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 break 2
6317 fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6325 if test -n "$ac_ct_MANIFEST_TOOL"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6327 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6328 else
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6331 fi
6332
6333 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6334 MANIFEST_TOOL=":"
6335 else
6336 case $cross_compiling:$ac_tool_warned in
6337 yes:)
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6340 ac_tool_warned=yes ;;
6341 esac
6342 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6343 fi
6344 else
6345 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6346 fi
6347
6348 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6350 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6351 if ${lt_cv_path_mainfest_tool+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 lt_cv_path_mainfest_tool=no
6355 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6356 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6357 cat conftest.err >&5
6358 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6359 lt_cv_path_mainfest_tool=yes
6360 fi
6361 rm -f conftest*
6362 fi
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6364 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6365 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6366 MANIFEST_TOOL=:
6367 fi
6368
6369
6370
6371
6372
6373
6374 case $host_os in
6375 rhapsody* | darwin*)
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6378 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$DSYMUTIL"; then
6385 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398 done
6399 done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6405 if test -n "$DSYMUTIL"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6407 $as_echo "$DSYMUTIL" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413
6414 fi
6415 if test -z "$ac_cv_prog_DSYMUTIL"; then
6416 ac_ct_DSYMUTIL=$DSYMUTIL
6417 # Extract the first word of "dsymutil", so it can be a program name with args.
6418 set dummy dsymutil; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 if test -n "$ac_ct_DSYMUTIL"; then
6425 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442 fi
6443 fi
6444 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6445 if test -n "$ac_ct_DSYMUTIL"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6447 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6448 else
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6451 fi
6452
6453 if test "x$ac_ct_DSYMUTIL" = x; then
6454 DSYMUTIL=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462 DSYMUTIL=$ac_ct_DSYMUTIL
6463 fi
6464 else
6465 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6466 fi
6467
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6470 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if ${ac_cv_prog_NMEDIT+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 if test -n "$NMEDIT"; then
6477 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490 done
6491 done
6492 IFS=$as_save_IFS
6493
6494 fi
6495 fi
6496 NMEDIT=$ac_cv_prog_NMEDIT
6497 if test -n "$NMEDIT"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6499 $as_echo "$NMEDIT" >&6; }
6500 else
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 $as_echo "no" >&6; }
6503 fi
6504
6505
6506 fi
6507 if test -z "$ac_cv_prog_NMEDIT"; then
6508 ac_ct_NMEDIT=$NMEDIT
6509 # Extract the first word of "nmedit", so it can be a program name with args.
6510 set dummy nmedit; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 if test -n "$ac_ct_NMEDIT"; then
6517 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6537 if test -n "$ac_ct_NMEDIT"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6539 $as_echo "$ac_ct_NMEDIT" >&6; }
6540 else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542 $as_echo "no" >&6; }
6543 fi
6544
6545 if test "x$ac_ct_NMEDIT" = x; then
6546 NMEDIT=":"
6547 else
6548 case $cross_compiling:$ac_tool_warned in
6549 yes:)
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552 ac_tool_warned=yes ;;
6553 esac
6554 NMEDIT=$ac_ct_NMEDIT
6555 fi
6556 else
6557 NMEDIT="$ac_cv_prog_NMEDIT"
6558 fi
6559
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if ${ac_cv_prog_LIPO+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 if test -n "$LIPO"; then
6569 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 LIPO=$ac_cv_prog_LIPO
6589 if test -n "$LIPO"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6591 $as_echo "$LIPO" >&6; }
6592 else
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597
6598 fi
6599 if test -z "$ac_cv_prog_LIPO"; then
6600 ac_ct_LIPO=$LIPO
6601 # Extract the first word of "lipo", so it can be a program name with args.
6602 set dummy lipo; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 if test -n "$ac_ct_LIPO"; then
6609 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_ac_ct_LIPO="lipo"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6629 if test -n "$ac_ct_LIPO"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6631 $as_echo "$ac_ct_LIPO" >&6; }
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637 if test "x$ac_ct_LIPO" = x; then
6638 LIPO=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646 LIPO=$ac_ct_LIPO
6647 fi
6648 else
6649 LIPO="$ac_cv_prog_LIPO"
6650 fi
6651
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}otool; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_OTOOL+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 if test -n "$OTOOL"; then
6661 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 OTOOL=$ac_cv_prog_OTOOL
6681 if test -n "$OTOOL"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6683 $as_echo "$OTOOL" >&6; }
6684 else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689
6690 fi
6691 if test -z "$ac_cv_prog_OTOOL"; then
6692 ac_ct_OTOOL=$OTOOL
6693 # Extract the first word of "otool", so it can be a program name with args.
6694 set dummy otool; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 if test -n "$ac_ct_OTOOL"; then
6701 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_ac_ct_OTOOL="otool"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714 done
6715 done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6721 if test -n "$ac_ct_OTOOL"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6723 $as_echo "$ac_ct_OTOOL" >&6; }
6724 else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728
6729 if test "x$ac_ct_OTOOL" = x; then
6730 OTOOL=":"
6731 else
6732 case $cross_compiling:$ac_tool_warned in
6733 yes:)
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736 ac_tool_warned=yes ;;
6737 esac
6738 OTOOL=$ac_ct_OTOOL
6739 fi
6740 else
6741 OTOOL="$ac_cv_prog_OTOOL"
6742 fi
6743
6744 if test -n "$ac_tool_prefix"; then
6745 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6746 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_prog_OTOOL64+:} false; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 if test -n "$OTOOL64"; then
6753 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 break 2
6765 fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770 fi
6771 fi
6772 OTOOL64=$ac_cv_prog_OTOOL64
6773 if test -n "$OTOOL64"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6775 $as_echo "$OTOOL64" >&6; }
6776 else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6779 fi
6780
6781
6782 fi
6783 if test -z "$ac_cv_prog_OTOOL64"; then
6784 ac_ct_OTOOL64=$OTOOL64
6785 # Extract the first word of "otool64", so it can be a program name with args.
6786 set dummy otool64; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 if test -n "$ac_ct_OTOOL64"; then
6793 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_prog_ac_ct_OTOOL64="otool64"
6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6813 if test -n "$ac_ct_OTOOL64"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6815 $as_echo "$ac_ct_OTOOL64" >&6; }
6816 else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6819 fi
6820
6821 if test "x$ac_ct_OTOOL64" = x; then
6822 OTOOL64=":"
6823 else
6824 case $cross_compiling:$ac_tool_warned in
6825 yes:)
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828 ac_tool_warned=yes ;;
6829 esac
6830 OTOOL64=$ac_ct_OTOOL64
6831 fi
6832 else
6833 OTOOL64="$ac_cv_prog_OTOOL64"
6834 fi
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6863 $as_echo_n "checking for -single_module linker flag... " >&6; }
6864 if ${lt_cv_apple_cc_single_mod+:} false; then :
6865 $as_echo_n "(cached) " >&6
6866 else
6867 lt_cv_apple_cc_single_mod=no
6868 if test -z "${LT_MULTI_MODULE}"; then
6869 # By default we will add the -single_module flag. You can override
6870 # by either setting the environment variable LT_MULTI_MODULE
6871 # non-empty at configure time, or by adding -multi_module to the
6872 # link flags.
6873 rm -rf libconftest.dylib*
6874 echo "int foo(void){return 1;}" > conftest.c
6875 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6876 -dynamiclib -Wl,-single_module conftest.c" >&5
6877 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6878 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6879 _lt_result=$?
6880 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6881 lt_cv_apple_cc_single_mod=yes
6882 else
6883 cat conftest.err >&5
6884 fi
6885 rm -rf libconftest.dylib*
6886 rm -f conftest.*
6887 fi
6888 fi
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6890 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6892 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6893 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 lt_cv_ld_exported_symbols_list=no
6897 save_LDFLAGS=$LDFLAGS
6898 echo "_main" > conftest.sym
6899 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902
6903 int
6904 main ()
6905 {
6906
6907 ;
6908 return 0;
6909 }
6910 _ACEOF
6911 if ac_fn_c_try_link "$LINENO"; then :
6912 lt_cv_ld_exported_symbols_list=yes
6913 else
6914 lt_cv_ld_exported_symbols_list=no
6915 fi
6916 rm -f core conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6918 LDFLAGS="$save_LDFLAGS"
6919
6920 fi
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6922 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6924 $as_echo_n "checking for -force_load linker flag... " >&6; }
6925 if ${lt_cv_ld_force_load+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 lt_cv_ld_force_load=no
6929 cat > conftest.c << _LT_EOF
6930 int forced_loaded() { return 2;}
6931 _LT_EOF
6932 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6933 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6934 echo "$AR cru libconftest.a conftest.o" >&5
6935 $AR cru libconftest.a conftest.o 2>&5
6936 echo "$RANLIB libconftest.a" >&5
6937 $RANLIB libconftest.a 2>&5
6938 cat > conftest.c << _LT_EOF
6939 int main() { return 0;}
6940 _LT_EOF
6941 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6942 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6943 _lt_result=$?
6944 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6945 lt_cv_ld_force_load=yes
6946 else
6947 cat conftest.err >&5
6948 fi
6949 rm -f conftest.err libconftest.a conftest conftest.c
6950 rm -rf conftest.dSYM
6951
6952 fi
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6954 $as_echo "$lt_cv_ld_force_load" >&6; }
6955 case $host_os in
6956 rhapsody* | darwin1.[012])
6957 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6958 darwin1.*)
6959 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6960 darwin*) # darwin 5.x on
6961 # if running on 10.5 or later, the deployment target defaults
6962 # to the OS version, if on x86, and 10.4, the deployment
6963 # target defaults to 10.4. Don't you love it?
6964 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6965 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6966 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6967 10.[012]*)
6968 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6969 10.*)
6970 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6971 esac
6972 ;;
6973 esac
6974 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6975 _lt_dar_single_mod='$single_module'
6976 fi
6977 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6978 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6979 else
6980 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6981 fi
6982 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6983 _lt_dsymutil='~$DSYMUTIL $lib || :'
6984 else
6985 _lt_dsymutil=
6986 fi
6987 ;;
6988 esac
6989
6990 ac_ext=c
6991 ac_cpp='$CPP $CPPFLAGS'
6992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6996 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6997 # On Suns, sometimes $CPP names a directory.
6998 if test -n "$CPP" && test -d "$CPP"; then
6999 CPP=
7000 fi
7001 if test -z "$CPP"; then
7002 if ${ac_cv_prog_CPP+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 # Double quotes because CPP needs to be expanded
7006 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7007 do
7008 ac_preproc_ok=false
7009 for ac_c_preproc_warn_flag in '' yes
7010 do
7011 # Use a header file that comes with gcc, so configuring glibc
7012 # with a fresh cross-compiler works.
7013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7014 # <limits.h> exists even on freestanding compilers.
7015 # On the NeXT, cc -E runs the code through the compiler's parser,
7016 # not just through cpp. "Syntax error" is here to catch this case.
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019 #ifdef __STDC__
7020 # include <limits.h>
7021 #else
7022 # include <assert.h>
7023 #endif
7024 Syntax error
7025 _ACEOF
7026 if ac_fn_c_try_cpp "$LINENO"; then :
7027
7028 else
7029 # Broken: fails on valid input.
7030 continue
7031 fi
7032 rm -f conftest.err conftest.i conftest.$ac_ext
7033
7034 # OK, works on sane cases. Now check whether nonexistent headers
7035 # can be detected and how.
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 #include <ac_nonexistent.h>
7039 _ACEOF
7040 if ac_fn_c_try_cpp "$LINENO"; then :
7041 # Broken: success on invalid input.
7042 continue
7043 else
7044 # Passes both tests.
7045 ac_preproc_ok=:
7046 break
7047 fi
7048 rm -f conftest.err conftest.i conftest.$ac_ext
7049
7050 done
7051 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7052 rm -f conftest.i conftest.err conftest.$ac_ext
7053 if $ac_preproc_ok; then :
7054 break
7055 fi
7056
7057 done
7058 ac_cv_prog_CPP=$CPP
7059
7060 fi
7061 CPP=$ac_cv_prog_CPP
7062 else
7063 ac_cv_prog_CPP=$CPP
7064 fi
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7066 $as_echo "$CPP" >&6; }
7067 ac_preproc_ok=false
7068 for ac_c_preproc_warn_flag in '' yes
7069 do
7070 # Use a header file that comes with gcc, so configuring glibc
7071 # with a fresh cross-compiler works.
7072 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7073 # <limits.h> exists even on freestanding compilers.
7074 # On the NeXT, cc -E runs the code through the compiler's parser,
7075 # not just through cpp. "Syntax error" is here to catch this case.
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7078 #ifdef __STDC__
7079 # include <limits.h>
7080 #else
7081 # include <assert.h>
7082 #endif
7083 Syntax error
7084 _ACEOF
7085 if ac_fn_c_try_cpp "$LINENO"; then :
7086
7087 else
7088 # Broken: fails on valid input.
7089 continue
7090 fi
7091 rm -f conftest.err conftest.i conftest.$ac_ext
7092
7093 # OK, works on sane cases. Now check whether nonexistent headers
7094 # can be detected and how.
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 #include <ac_nonexistent.h>
7098 _ACEOF
7099 if ac_fn_c_try_cpp "$LINENO"; then :
7100 # Broken: success on invalid input.
7101 continue
7102 else
7103 # Passes both tests.
7104 ac_preproc_ok=:
7105 break
7106 fi
7107 rm -f conftest.err conftest.i conftest.$ac_ext
7108
7109 done
7110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7111 rm -f conftest.i conftest.err conftest.$ac_ext
7112 if $ac_preproc_ok; then :
7113
7114 else
7115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7117 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7118 See \`config.log' for more details" "$LINENO" 5; }
7119 fi
7120
7121 ac_ext=c
7122 ac_cpp='$CPP $CPPFLAGS'
7123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7126
7127
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7129 $as_echo_n "checking for ANSI C header files... " >&6; }
7130 if ${ac_cv_header_stdc+:} false; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135 #include <stdlib.h>
7136 #include <stdarg.h>
7137 #include <string.h>
7138 #include <float.h>
7139
7140 int
7141 main ()
7142 {
7143
7144 ;
7145 return 0;
7146 }
7147 _ACEOF
7148 if ac_fn_c_try_compile "$LINENO"; then :
7149 ac_cv_header_stdc=yes
7150 else
7151 ac_cv_header_stdc=no
7152 fi
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154
7155 if test $ac_cv_header_stdc = yes; then
7156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7159 #include <string.h>
7160
7161 _ACEOF
7162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7163 $EGREP "memchr" >/dev/null 2>&1; then :
7164
7165 else
7166 ac_cv_header_stdc=no
7167 fi
7168 rm -f conftest*
7169
7170 fi
7171
7172 if test $ac_cv_header_stdc = yes; then
7173 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176 #include <stdlib.h>
7177
7178 _ACEOF
7179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180 $EGREP "free" >/dev/null 2>&1; then :
7181
7182 else
7183 ac_cv_header_stdc=no
7184 fi
7185 rm -f conftest*
7186
7187 fi
7188
7189 if test $ac_cv_header_stdc = yes; then
7190 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7191 if test "$cross_compiling" = yes; then :
7192 :
7193 else
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7196 #include <ctype.h>
7197 #include <stdlib.h>
7198 #if ((' ' & 0x0FF) == 0x020)
7199 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7200 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7201 #else
7202 # define ISLOWER(c) \
7203 (('a' <= (c) && (c) <= 'i') \
7204 || ('j' <= (c) && (c) <= 'r') \
7205 || ('s' <= (c) && (c) <= 'z'))
7206 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7207 #endif
7208
7209 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7210 int
7211 main ()
7212 {
7213 int i;
7214 for (i = 0; i < 256; i++)
7215 if (XOR (islower (i), ISLOWER (i))
7216 || toupper (i) != TOUPPER (i))
7217 return 2;
7218 return 0;
7219 }
7220 _ACEOF
7221 if ac_fn_c_try_run "$LINENO"; then :
7222
7223 else
7224 ac_cv_header_stdc=no
7225 fi
7226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7227 conftest.$ac_objext conftest.beam conftest.$ac_ext
7228 fi
7229
7230 fi
7231 fi
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7233 $as_echo "$ac_cv_header_stdc" >&6; }
7234 if test $ac_cv_header_stdc = yes; then
7235
7236 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7237
7238 fi
7239
7240 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7241 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7242 inttypes.h stdint.h unistd.h
7243 do :
7244 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7245 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7246 "
7247 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7248 cat >>confdefs.h <<_ACEOF
7249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7250 _ACEOF
7251
7252 fi
7253
7254 done
7255
7256
7257 for ac_header in dlfcn.h
7258 do :
7259 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7260 "
7261 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7262 cat >>confdefs.h <<_ACEOF
7263 #define HAVE_DLFCN_H 1
7264 _ACEOF
7265
7266 fi
7267
7268 done
7269
7270
7271
7272
7273
7274 # Set options
7275
7276
7277
7278 enable_dlopen=no
7279
7280
7281 enable_win32_dll=no
7282
7283
7284 # Check whether --enable-shared was given.
7285 if test "${enable_shared+set}" = set; then :
7286 enableval=$enable_shared; p=${PACKAGE-default}
7287 case $enableval in
7288 yes) enable_shared=yes ;;
7289 no) enable_shared=no ;;
7290 *)
7291 enable_shared=no
7292 # Look at the argument we got. We use all the common list separators.
7293 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7294 for pkg in $enableval; do
7295 IFS="$lt_save_ifs"
7296 if test "X$pkg" = "X$p"; then
7297 enable_shared=yes
7298 fi
7299 done
7300 IFS="$lt_save_ifs"
7301 ;;
7302 esac
7303 else
7304 enable_shared=yes
7305 fi
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315 # Check whether --enable-static was given.
7316 if test "${enable_static+set}" = set; then :
7317 enableval=$enable_static; p=${PACKAGE-default}
7318 case $enableval in
7319 yes) enable_static=yes ;;
7320 no) enable_static=no ;;
7321 *)
7322 enable_static=no
7323 # Look at the argument we got. We use all the common list separators.
7324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7325 for pkg in $enableval; do
7326 IFS="$lt_save_ifs"
7327 if test "X$pkg" = "X$p"; then
7328 enable_static=yes
7329 fi
7330 done
7331 IFS="$lt_save_ifs"
7332 ;;
7333 esac
7334 else
7335 enable_static=yes
7336 fi
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347 # Check whether --with-pic was given.
7348 if test "${with_pic+set}" = set; then :
7349 withval=$with_pic; pic_mode="$withval"
7350 else
7351 pic_mode=default
7352 fi
7353
7354
7355 test -z "$pic_mode" && pic_mode=default
7356
7357
7358
7359
7360
7361
7362
7363 # Check whether --enable-fast-install was given.
7364 if test "${enable_fast_install+set}" = set; then :
7365 enableval=$enable_fast_install; p=${PACKAGE-default}
7366 case $enableval in
7367 yes) enable_fast_install=yes ;;
7368 no) enable_fast_install=no ;;
7369 *)
7370 enable_fast_install=no
7371 # Look at the argument we got. We use all the common list separators.
7372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7373 for pkg in $enableval; do
7374 IFS="$lt_save_ifs"
7375 if test "X$pkg" = "X$p"; then
7376 enable_fast_install=yes
7377 fi
7378 done
7379 IFS="$lt_save_ifs"
7380 ;;
7381 esac
7382 else
7383 enable_fast_install=yes
7384 fi
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396 # This can be used to rebuild libtool when needed
7397 LIBTOOL_DEPS="$ltmain"
7398
7399 # Always use our own libtool.
7400 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427 test -z "$LN_S" && LN_S="ln -s"
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442 if test -n "${ZSH_VERSION+set}" ; then
7443 setopt NO_GLOB_SUBST
7444 fi
7445
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7447 $as_echo_n "checking for objdir... " >&6; }
7448 if ${lt_cv_objdir+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 rm -f .libs 2>/dev/null
7452 mkdir .libs 2>/dev/null
7453 if test -d .libs; then
7454 lt_cv_objdir=.libs
7455 else
7456 # MS-DOS does not allow filenames that begin with a dot.
7457 lt_cv_objdir=_libs
7458 fi
7459 rmdir .libs 2>/dev/null
7460 fi
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7462 $as_echo "$lt_cv_objdir" >&6; }
7463 objdir=$lt_cv_objdir
7464
7465
7466
7467
7468
7469 cat >>confdefs.h <<_ACEOF
7470 #define LT_OBJDIR "$lt_cv_objdir/"
7471 _ACEOF
7472
7473
7474
7475
7476 case $host_os in
7477 aix3*)
7478 # AIX sometimes has problems with the GCC collect2 program. For some
7479 # reason, if we set the COLLECT_NAMES environment variable, the problems
7480 # vanish in a puff of smoke.
7481 if test "X${COLLECT_NAMES+set}" != Xset; then
7482 COLLECT_NAMES=
7483 export COLLECT_NAMES
7484 fi
7485 ;;
7486 esac
7487
7488 # Global variables:
7489 ofile=libtool
7490 can_build_shared=yes
7491
7492 # All known linkers require a `.a' archive for static linking (except MSVC,
7493 # which needs '.lib').
7494 libext=a
7495
7496 with_gnu_ld="$lt_cv_prog_gnu_ld"
7497
7498 old_CC="$CC"
7499 old_CFLAGS="$CFLAGS"
7500
7501 # Set sane defaults for various variables
7502 test -z "$CC" && CC=cc
7503 test -z "$LTCC" && LTCC=$CC
7504 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7505 test -z "$LD" && LD=ld
7506 test -z "$ac_objext" && ac_objext=o
7507
7508 for cc_temp in $compiler""; do
7509 case $cc_temp in
7510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7512 \-*) ;;
7513 *) break;;
7514 esac
7515 done
7516 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7517
7518
7519 # Only perform the check for file, if the check method requires it
7520 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7521 case $deplibs_check_method in
7522 file_magic*)
7523 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7525 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7526 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 case $MAGIC_CMD in
7530 [\\/*] | ?:[\\/]*)
7531 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7532 ;;
7533 *)
7534 lt_save_MAGIC_CMD="$MAGIC_CMD"
7535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7537 for ac_dir in $ac_dummy; do
7538 IFS="$lt_save_ifs"
7539 test -z "$ac_dir" && ac_dir=.
7540 if test -f $ac_dir/${ac_tool_prefix}file; then
7541 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7542 if test -n "$file_magic_test_file"; then
7543 case $deplibs_check_method in
7544 "file_magic "*)
7545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7548 $EGREP "$file_magic_regex" > /dev/null; then
7549 :
7550 else
7551 cat <<_LT_EOF 1>&2
7552
7553 *** Warning: the command libtool uses to detect shared libraries,
7554 *** $file_magic_cmd, produces output that libtool cannot recognize.
7555 *** The result is that libtool may fail to recognize shared libraries
7556 *** as such. This will affect the creation of libtool libraries that
7557 *** depend on shared libraries, but programs linked with such libtool
7558 *** libraries will work regardless of this problem. Nevertheless, you
7559 *** may want to report the problem to your system manager and/or to
7560 *** bug-libtool@gnu.org
7561
7562 _LT_EOF
7563 fi ;;
7564 esac
7565 fi
7566 break
7567 fi
7568 done
7569 IFS="$lt_save_ifs"
7570 MAGIC_CMD="$lt_save_MAGIC_CMD"
7571 ;;
7572 esac
7573 fi
7574
7575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7576 if test -n "$MAGIC_CMD"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7578 $as_echo "$MAGIC_CMD" >&6; }
7579 else
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7582 fi
7583
7584
7585
7586
7587
7588 if test -z "$lt_cv_path_MAGIC_CMD"; then
7589 if test -n "$ac_tool_prefix"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7591 $as_echo_n "checking for file... " >&6; }
7592 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 case $MAGIC_CMD in
7596 [\\/*] | ?:[\\/]*)
7597 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7598 ;;
7599 *)
7600 lt_save_MAGIC_CMD="$MAGIC_CMD"
7601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7602 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7603 for ac_dir in $ac_dummy; do
7604 IFS="$lt_save_ifs"
7605 test -z "$ac_dir" && ac_dir=.
7606 if test -f $ac_dir/file; then
7607 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7608 if test -n "$file_magic_test_file"; then
7609 case $deplibs_check_method in
7610 "file_magic "*)
7611 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7612 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7613 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7614 $EGREP "$file_magic_regex" > /dev/null; then
7615 :
7616 else
7617 cat <<_LT_EOF 1>&2
7618
7619 *** Warning: the command libtool uses to detect shared libraries,
7620 *** $file_magic_cmd, produces output that libtool cannot recognize.
7621 *** The result is that libtool may fail to recognize shared libraries
7622 *** as such. This will affect the creation of libtool libraries that
7623 *** depend on shared libraries, but programs linked with such libtool
7624 *** libraries will work regardless of this problem. Nevertheless, you
7625 *** may want to report the problem to your system manager and/or to
7626 *** bug-libtool@gnu.org
7627
7628 _LT_EOF
7629 fi ;;
7630 esac
7631 fi
7632 break
7633 fi
7634 done
7635 IFS="$lt_save_ifs"
7636 MAGIC_CMD="$lt_save_MAGIC_CMD"
7637 ;;
7638 esac
7639 fi
7640
7641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7642 if test -n "$MAGIC_CMD"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7644 $as_echo "$MAGIC_CMD" >&6; }
7645 else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7648 fi
7649
7650
7651 else
7652 MAGIC_CMD=:
7653 fi
7654 fi
7655
7656 fi
7657 ;;
7658 esac
7659
7660 # Use C for the default configuration in the libtool script
7661
7662 lt_save_CC="$CC"
7663 ac_ext=c
7664 ac_cpp='$CPP $CPPFLAGS'
7665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7668
7669
7670 # Source file extension for C test sources.
7671 ac_ext=c
7672
7673 # Object file extension for compiled C test sources.
7674 objext=o
7675 objext=$objext
7676
7677 # Code to be used in simple compile tests
7678 lt_simple_compile_test_code="int some_variable = 0;"
7679
7680 # Code to be used in simple link tests
7681 lt_simple_link_test_code='int main(){return(0);}'
7682
7683
7684
7685
7686
7687
7688
7689 # If no C compiler was specified, use CC.
7690 LTCC=${LTCC-"$CC"}
7691
7692 # If no C compiler flags were specified, use CFLAGS.
7693 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7694
7695 # Allow CC to be a program name with arguments.
7696 compiler=$CC
7697
7698 # Save the default compiler, since it gets overwritten when the other
7699 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7700 compiler_DEFAULT=$CC
7701
7702 # save warnings/boilerplate of simple test code
7703 ac_outfile=conftest.$ac_objext
7704 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7705 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7706 _lt_compiler_boilerplate=`cat conftest.err`
7707 $RM conftest*
7708
7709 ac_outfile=conftest.$ac_objext
7710 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7711 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7712 _lt_linker_boilerplate=`cat conftest.err`
7713 $RM -r conftest*
7714
7715
7716 if test -n "$compiler"; then
7717
7718 lt_prog_compiler_no_builtin_flag=
7719
7720 if test "$GCC" = yes; then
7721 case $cc_basename in
7722 nvcc*)
7723 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7724 *)
7725 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7726 esac
7727
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7729 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7730 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 lt_cv_prog_compiler_rtti_exceptions=no
7734 ac_outfile=conftest.$ac_objext
7735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7736 lt_compiler_flag="-fno-rtti -fno-exceptions"
7737 # Insert the option either (1) after the last *FLAGS variable, or
7738 # (2) before a word containing "conftest.", or (3) at the end.
7739 # Note that $ac_compile itself does not contain backslashes and begins
7740 # with a dollar sign (not a hyphen), so the echo should work correctly.
7741 # The option is referenced via a variable to avoid confusing sed.
7742 lt_compile=`echo "$ac_compile" | $SED \
7743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7745 -e 's:$: $lt_compiler_flag:'`
7746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7747 (eval "$lt_compile" 2>conftest.err)
7748 ac_status=$?
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 if (exit $ac_status) && test -s "$ac_outfile"; then
7752 # The compiler can only warn and ignore the option if not recognized
7753 # So say no if there are warnings other than the usual output.
7754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7757 lt_cv_prog_compiler_rtti_exceptions=yes
7758 fi
7759 fi
7760 $RM conftest*
7761
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7764 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7765
7766 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7767 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7768 else
7769 :
7770 fi
7771
7772 fi
7773
7774
7775
7776
7777
7778
7779 lt_prog_compiler_wl=
7780 lt_prog_compiler_pic=
7781 lt_prog_compiler_static=
7782
7783
7784 if test "$GCC" = yes; then
7785 lt_prog_compiler_wl='-Wl,'
7786 lt_prog_compiler_static='-static'
7787
7788 case $host_os in
7789 aix*)
7790 # All AIX code is PIC.
7791 if test "$host_cpu" = ia64; then
7792 # AIX 5 now supports IA64 processor
7793 lt_prog_compiler_static='-Bstatic'
7794 fi
7795 ;;
7796
7797 amigaos*)
7798 case $host_cpu in
7799 powerpc)
7800 # see comment about AmigaOS4 .so support
7801 lt_prog_compiler_pic='-fPIC'
7802 ;;
7803 m68k)
7804 # FIXME: we need at least 68020 code to build shared libraries, but
7805 # adding the `-m68020' flag to GCC prevents building anything better,
7806 # like `-m68040'.
7807 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7808 ;;
7809 esac
7810 ;;
7811
7812 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7813 # PIC is the default for these OSes.
7814 ;;
7815
7816 mingw* | cygwin* | pw32* | os2* | cegcc*)
7817 # This hack is so that the source file can tell whether it is being
7818 # built for inclusion in a dll (and should export symbols for example).
7819 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7820 # (--disable-auto-import) libraries
7821 lt_prog_compiler_pic='-DDLL_EXPORT'
7822 ;;
7823
7824 darwin* | rhapsody*)
7825 # PIC is the default on this platform
7826 # Common symbols not allowed in MH_DYLIB files
7827 lt_prog_compiler_pic='-fno-common'
7828 ;;
7829
7830 haiku*)
7831 # PIC is the default for Haiku.
7832 # The "-static" flag exists, but is broken.
7833 lt_prog_compiler_static=
7834 ;;
7835
7836 hpux*)
7837 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7838 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7839 # sets the default TLS model and affects inlining.
7840 case $host_cpu in
7841 hppa*64*)
7842 # +Z the default
7843 ;;
7844 *)
7845 lt_prog_compiler_pic='-fPIC'
7846 ;;
7847 esac
7848 ;;
7849
7850 interix[3-9]*)
7851 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7852 # Instead, we relocate shared libraries at runtime.
7853 ;;
7854
7855 msdosdjgpp*)
7856 # Just because we use GCC doesn't mean we suddenly get shared libraries
7857 # on systems that don't support them.
7858 lt_prog_compiler_can_build_shared=no
7859 enable_shared=no
7860 ;;
7861
7862 *nto* | *qnx*)
7863 # QNX uses GNU C++, but need to define -shared option too, otherwise
7864 # it will coredump.
7865 lt_prog_compiler_pic='-fPIC -shared'
7866 ;;
7867
7868 sysv4*MP*)
7869 if test -d /usr/nec; then
7870 lt_prog_compiler_pic=-Kconform_pic
7871 fi
7872 ;;
7873
7874 *)
7875 lt_prog_compiler_pic='-fPIC'
7876 ;;
7877 esac
7878
7879 case $cc_basename in
7880 nvcc*) # Cuda Compiler Driver 2.2
7881 lt_prog_compiler_wl='-Xlinker '
7882 lt_prog_compiler_pic='-Xcompiler -fPIC'
7883 ;;
7884 esac
7885 else
7886 # PORTME Check for flag to pass linker flags through the system compiler.
7887 case $host_os in
7888 aix*)
7889 lt_prog_compiler_wl='-Wl,'
7890 if test "$host_cpu" = ia64; then
7891 # AIX 5 now supports IA64 processor
7892 lt_prog_compiler_static='-Bstatic'
7893 else
7894 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7895 fi
7896 ;;
7897
7898 mingw* | cygwin* | pw32* | os2* | cegcc*)
7899 # This hack is so that the source file can tell whether it is being
7900 # built for inclusion in a dll (and should export symbols for example).
7901 lt_prog_compiler_pic='-DDLL_EXPORT'
7902 ;;
7903
7904 hpux9* | hpux10* | hpux11*)
7905 lt_prog_compiler_wl='-Wl,'
7906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7907 # not for PA HP-UX.
7908 case $host_cpu in
7909 hppa*64*|ia64*)
7910 # +Z the default
7911 ;;
7912 *)
7913 lt_prog_compiler_pic='+Z'
7914 ;;
7915 esac
7916 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7917 lt_prog_compiler_static='${wl}-a ${wl}archive'
7918 ;;
7919
7920 irix5* | irix6* | nonstopux*)
7921 lt_prog_compiler_wl='-Wl,'
7922 # PIC (with -KPIC) is the default.
7923 lt_prog_compiler_static='-non_shared'
7924 ;;
7925
7926 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7927 case $cc_basename in
7928 # old Intel for x86_64 which still supported -KPIC.
7929 ecc*)
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_pic='-KPIC'
7932 lt_prog_compiler_static='-static'
7933 ;;
7934 # icc used to be incompatible with GCC.
7935 # ICC 10 doesn't accept -KPIC any more.
7936 icc* | ifort*)
7937 lt_prog_compiler_wl='-Wl,'
7938 lt_prog_compiler_pic='-fPIC'
7939 lt_prog_compiler_static='-static'
7940 ;;
7941 # Lahey Fortran 8.1.
7942 lf95*)
7943 lt_prog_compiler_wl='-Wl,'
7944 lt_prog_compiler_pic='--shared'
7945 lt_prog_compiler_static='--static'
7946 ;;
7947 nagfor*)
7948 # NAG Fortran compiler
7949 lt_prog_compiler_wl='-Wl,-Wl,,'
7950 lt_prog_compiler_pic='-PIC'
7951 lt_prog_compiler_static='-Bstatic'
7952 ;;
7953 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7954 # Portland Group compilers (*not* the Pentium gcc compiler,
7955 # which looks to be a dead project)
7956 lt_prog_compiler_wl='-Wl,'
7957 lt_prog_compiler_pic='-fpic'
7958 lt_prog_compiler_static='-Bstatic'
7959 ;;
7960 ccc*)
7961 lt_prog_compiler_wl='-Wl,'
7962 # All Alpha code is PIC.
7963 lt_prog_compiler_static='-non_shared'
7964 ;;
7965 xl* | bgxl* | bgf* | mpixl*)
7966 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7967 lt_prog_compiler_wl='-Wl,'
7968 lt_prog_compiler_pic='-qpic'
7969 lt_prog_compiler_static='-qstaticlink'
7970 ;;
7971 *)
7972 case `$CC -V 2>&1 | sed 5q` in
7973 *Sun\ F* | *Sun*Fortran*)
7974 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7975 lt_prog_compiler_pic='-KPIC'
7976 lt_prog_compiler_static='-Bstatic'
7977 lt_prog_compiler_wl=''
7978 ;;
7979 *Sun\ C*)
7980 # Sun C 5.9
7981 lt_prog_compiler_pic='-KPIC'
7982 lt_prog_compiler_static='-Bstatic'
7983 lt_prog_compiler_wl='-Wl,'
7984 ;;
7985 esac
7986 ;;
7987 esac
7988 ;;
7989
7990 newsos6)
7991 lt_prog_compiler_pic='-KPIC'
7992 lt_prog_compiler_static='-Bstatic'
7993 ;;
7994
7995 *nto* | *qnx*)
7996 # QNX uses GNU C++, but need to define -shared option too, otherwise
7997 # it will coredump.
7998 lt_prog_compiler_pic='-fPIC -shared'
7999 ;;
8000
8001 osf3* | osf4* | osf5*)
8002 lt_prog_compiler_wl='-Wl,'
8003 # All OSF/1 code is PIC.
8004 lt_prog_compiler_static='-non_shared'
8005 ;;
8006
8007 rdos*)
8008 lt_prog_compiler_static='-non_shared'
8009 ;;
8010
8011 solaris*)
8012 lt_prog_compiler_pic='-KPIC'
8013 lt_prog_compiler_static='-Bstatic'
8014 case $cc_basename in
8015 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8016 lt_prog_compiler_wl='-Qoption ld ';;
8017 *)
8018 lt_prog_compiler_wl='-Wl,';;
8019 esac
8020 ;;
8021
8022 sunos4*)
8023 lt_prog_compiler_wl='-Qoption ld '
8024 lt_prog_compiler_pic='-PIC'
8025 lt_prog_compiler_static='-Bstatic'
8026 ;;
8027
8028 sysv4 | sysv4.2uw2* | sysv4.3*)
8029 lt_prog_compiler_wl='-Wl,'
8030 lt_prog_compiler_pic='-KPIC'
8031 lt_prog_compiler_static='-Bstatic'
8032 ;;
8033
8034 sysv4*MP*)
8035 if test -d /usr/nec ;then
8036 lt_prog_compiler_pic='-Kconform_pic'
8037 lt_prog_compiler_static='-Bstatic'
8038 fi
8039 ;;
8040
8041 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8042 lt_prog_compiler_wl='-Wl,'
8043 lt_prog_compiler_pic='-KPIC'
8044 lt_prog_compiler_static='-Bstatic'
8045 ;;
8046
8047 unicos*)
8048 lt_prog_compiler_wl='-Wl,'
8049 lt_prog_compiler_can_build_shared=no
8050 ;;
8051
8052 uts4*)
8053 lt_prog_compiler_pic='-pic'
8054 lt_prog_compiler_static='-Bstatic'
8055 ;;
8056
8057 *)
8058 lt_prog_compiler_can_build_shared=no
8059 ;;
8060 esac
8061 fi
8062
8063 case $host_os in
8064 # For platforms which do not support PIC, -DPIC is meaningless:
8065 *djgpp*)
8066 lt_prog_compiler_pic=
8067 ;;
8068 *)
8069 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8070 ;;
8071 esac
8072
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8074 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8075 if ${lt_cv_prog_compiler_pic+:} false; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8079 fi
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8081 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8082 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8083
8084 #
8085 # Check to make sure the PIC flag actually works.
8086 #
8087 if test -n "$lt_prog_compiler_pic"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8089 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8090 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 lt_cv_prog_compiler_pic_works=no
8094 ac_outfile=conftest.$ac_objext
8095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8096 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8097 # Insert the option either (1) after the last *FLAGS variable, or
8098 # (2) before a word containing "conftest.", or (3) at the end.
8099 # Note that $ac_compile itself does not contain backslashes and begins
8100 # with a dollar sign (not a hyphen), so the echo should work correctly.
8101 # The option is referenced via a variable to avoid confusing sed.
8102 lt_compile=`echo "$ac_compile" | $SED \
8103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8105 -e 's:$: $lt_compiler_flag:'`
8106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8107 (eval "$lt_compile" 2>conftest.err)
8108 ac_status=$?
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 if (exit $ac_status) && test -s "$ac_outfile"; then
8112 # The compiler can only warn and ignore the option if not recognized
8113 # So say no if there are warnings other than the usual output.
8114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8116 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8117 lt_cv_prog_compiler_pic_works=yes
8118 fi
8119 fi
8120 $RM conftest*
8121
8122 fi
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8124 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8125
8126 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8127 case $lt_prog_compiler_pic in
8128 "" | " "*) ;;
8129 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8130 esac
8131 else
8132 lt_prog_compiler_pic=
8133 lt_prog_compiler_can_build_shared=no
8134 fi
8135
8136 fi
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148 #
8149 # Check to make sure the static flag actually works.
8150 #
8151 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8153 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8154 if ${lt_cv_prog_compiler_static_works+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 lt_cv_prog_compiler_static_works=no
8158 save_LDFLAGS="$LDFLAGS"
8159 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8160 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8161 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8162 # The linker can only warn and ignore the option if not recognized
8163 # So say no if there are warnings
8164 if test -s conftest.err; then
8165 # Append any errors to the config.log.
8166 cat conftest.err 1>&5
8167 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8169 if diff conftest.exp conftest.er2 >/dev/null; then
8170 lt_cv_prog_compiler_static_works=yes
8171 fi
8172 else
8173 lt_cv_prog_compiler_static_works=yes
8174 fi
8175 fi
8176 $RM -r conftest*
8177 LDFLAGS="$save_LDFLAGS"
8178
8179 fi
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8181 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8182
8183 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8184 :
8185 else
8186 lt_prog_compiler_static=
8187 fi
8188
8189
8190
8191
8192
8193
8194
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8196 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8197 if ${lt_cv_prog_compiler_c_o+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 lt_cv_prog_compiler_c_o=no
8201 $RM -r conftest 2>/dev/null
8202 mkdir conftest
8203 cd conftest
8204 mkdir out
8205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8206
8207 lt_compiler_flag="-o out/conftest2.$ac_objext"
8208 # Insert the option either (1) after the last *FLAGS variable, or
8209 # (2) before a word containing "conftest.", or (3) at the end.
8210 # Note that $ac_compile itself does not contain backslashes and begins
8211 # with a dollar sign (not a hyphen), so the echo should work correctly.
8212 lt_compile=`echo "$ac_compile" | $SED \
8213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8215 -e 's:$: $lt_compiler_flag:'`
8216 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8217 (eval "$lt_compile" 2>out/conftest.err)
8218 ac_status=$?
8219 cat out/conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8222 then
8223 # The compiler can only warn and ignore the option if not recognized
8224 # So say no if there are warnings
8225 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8226 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8227 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8228 lt_cv_prog_compiler_c_o=yes
8229 fi
8230 fi
8231 chmod u+w . 2>&5
8232 $RM conftest*
8233 # SGI C++ compiler will create directory out/ii_files/ for
8234 # template instantiation
8235 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8236 $RM out/* && rmdir out
8237 cd ..
8238 $RM -r conftest
8239 $RM conftest*
8240
8241 fi
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8243 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8244
8245
8246
8247
8248
8249
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8251 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8252 if ${lt_cv_prog_compiler_c_o+:} false; then :
8253 $as_echo_n "(cached) " >&6
8254 else
8255 lt_cv_prog_compiler_c_o=no
8256 $RM -r conftest 2>/dev/null
8257 mkdir conftest
8258 cd conftest
8259 mkdir out
8260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8261
8262 lt_compiler_flag="-o out/conftest2.$ac_objext"
8263 # Insert the option either (1) after the last *FLAGS variable, or
8264 # (2) before a word containing "conftest.", or (3) at the end.
8265 # Note that $ac_compile itself does not contain backslashes and begins
8266 # with a dollar sign (not a hyphen), so the echo should work correctly.
8267 lt_compile=`echo "$ac_compile" | $SED \
8268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8270 -e 's:$: $lt_compiler_flag:'`
8271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8272 (eval "$lt_compile" 2>out/conftest.err)
8273 ac_status=$?
8274 cat out/conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8277 then
8278 # The compiler can only warn and ignore the option if not recognized
8279 # So say no if there are warnings
8280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8283 lt_cv_prog_compiler_c_o=yes
8284 fi
8285 fi
8286 chmod u+w . 2>&5
8287 $RM conftest*
8288 # SGI C++ compiler will create directory out/ii_files/ for
8289 # template instantiation
8290 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8291 $RM out/* && rmdir out
8292 cd ..
8293 $RM -r conftest
8294 $RM conftest*
8295
8296 fi
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8298 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8299
8300
8301
8302
8303 hard_links="nottested"
8304 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8305 # do not overwrite the value of need_locks provided by the user
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8307 $as_echo_n "checking if we can lock with hard links... " >&6; }
8308 hard_links=yes
8309 $RM conftest*
8310 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8311 touch conftest.a
8312 ln conftest.a conftest.b 2>&5 || hard_links=no
8313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8315 $as_echo "$hard_links" >&6; }
8316 if test "$hard_links" = no; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8318 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8319 need_locks=warn
8320 fi
8321 else
8322 need_locks=no
8323 fi
8324
8325
8326
8327
8328
8329
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8331 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8332
8333 runpath_var=
8334 allow_undefined_flag=
8335 always_export_symbols=no
8336 archive_cmds=
8337 archive_expsym_cmds=
8338 compiler_needs_object=no
8339 enable_shared_with_static_runtimes=no
8340 export_dynamic_flag_spec=
8341 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8342 hardcode_automatic=no
8343 hardcode_direct=no
8344 hardcode_direct_absolute=no
8345 hardcode_libdir_flag_spec=
8346 hardcode_libdir_flag_spec_ld=
8347 hardcode_libdir_separator=
8348 hardcode_minus_L=no
8349 hardcode_shlibpath_var=unsupported
8350 inherit_rpath=no
8351 link_all_deplibs=unknown
8352 module_cmds=
8353 module_expsym_cmds=
8354 old_archive_from_new_cmds=
8355 old_archive_from_expsyms_cmds=
8356 thread_safe_flag_spec=
8357 whole_archive_flag_spec=
8358 # include_expsyms should be a list of space-separated symbols to be *always*
8359 # included in the symbol list
8360 include_expsyms=
8361 # exclude_expsyms can be an extended regexp of symbols to exclude
8362 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8363 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8364 # as well as any symbol that contains `d'.
8365 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8366 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8367 # platforms (ab)use it in PIC code, but their linkers get confused if
8368 # the symbol is explicitly referenced. Since portable code cannot
8369 # rely on this symbol name, it's probably fine to never include it in
8370 # preloaded symbol tables.
8371 # Exclude shared library initialization/finalization symbols.
8372 extract_expsyms_cmds=
8373
8374 case $host_os in
8375 cygwin* | mingw* | pw32* | cegcc*)
8376 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8377 # When not using gcc, we currently assume that we are using
8378 # Microsoft Visual C++.
8379 if test "$GCC" != yes; then
8380 with_gnu_ld=no
8381 fi
8382 ;;
8383 interix*)
8384 # we just hope/assume this is gcc and not c89 (= MSVC++)
8385 with_gnu_ld=yes
8386 ;;
8387 openbsd*)
8388 with_gnu_ld=no
8389 ;;
8390 linux* | k*bsd*-gnu | gnu*)
8391 link_all_deplibs=no
8392 ;;
8393 esac
8394
8395 ld_shlibs=yes
8396
8397 # On some targets, GNU ld is compatible enough with the native linker
8398 # that we're better off using the native interface for both.
8399 lt_use_gnu_ld_interface=no
8400 if test "$with_gnu_ld" = yes; then
8401 case $host_os in
8402 aix*)
8403 # The AIX port of GNU ld has always aspired to compatibility
8404 # with the native linker. However, as the warning in the GNU ld
8405 # block says, versions before 2.19.5* couldn't really create working
8406 # shared libraries, regardless of the interface used.
8407 case `$LD -v 2>&1` in
8408 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8409 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8410 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8411 *)
8412 lt_use_gnu_ld_interface=yes
8413 ;;
8414 esac
8415 ;;
8416 *)
8417 lt_use_gnu_ld_interface=yes
8418 ;;
8419 esac
8420 fi
8421
8422 if test "$lt_use_gnu_ld_interface" = yes; then
8423 # If archive_cmds runs LD, not CC, wlarc should be empty
8424 wlarc='${wl}'
8425
8426 # Set some defaults for GNU ld with shared library support. These
8427 # are reset later if shared libraries are not supported. Putting them
8428 # here allows them to be overridden if necessary.
8429 runpath_var=LD_RUN_PATH
8430 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8431 export_dynamic_flag_spec='${wl}--export-dynamic'
8432 # ancient GNU ld didn't support --whole-archive et. al.
8433 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8434 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8435 else
8436 whole_archive_flag_spec=
8437 fi
8438 supports_anon_versioning=no
8439 case `$LD -v 2>&1` in
8440 *GNU\ gold*) supports_anon_versioning=yes ;;
8441 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8442 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8443 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8444 *\ 2.11.*) ;; # other 2.11 versions
8445 *) supports_anon_versioning=yes ;;
8446 esac
8447
8448 # See if GNU ld supports shared libraries.
8449 case $host_os in
8450 aix[3-9]*)
8451 # On AIX/PPC, the GNU linker is very broken
8452 if test "$host_cpu" != ia64; then
8453 ld_shlibs=no
8454 cat <<_LT_EOF 1>&2
8455
8456 *** Warning: the GNU linker, at least up to release 2.19, is reported
8457 *** to be unable to reliably create shared libraries on AIX.
8458 *** Therefore, libtool is disabling shared libraries support. If you
8459 *** really care for shared libraries, you may want to install binutils
8460 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8461 *** You will then need to restart the configuration process.
8462
8463 _LT_EOF
8464 fi
8465 ;;
8466
8467 amigaos*)
8468 case $host_cpu in
8469 powerpc)
8470 # see comment about AmigaOS4 .so support
8471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8472 archive_expsym_cmds=''
8473 ;;
8474 m68k)
8475 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)'
8476 hardcode_libdir_flag_spec='-L$libdir'
8477 hardcode_minus_L=yes
8478 ;;
8479 esac
8480 ;;
8481
8482 beos*)
8483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8484 allow_undefined_flag=unsupported
8485 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8486 # support --undefined. This deserves some investigation. FIXME
8487 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8488 else
8489 ld_shlibs=no
8490 fi
8491 ;;
8492
8493 cygwin* | mingw* | pw32* | cegcc*)
8494 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8495 # as there is no search path for DLLs.
8496 hardcode_libdir_flag_spec='-L$libdir'
8497 export_dynamic_flag_spec='${wl}--export-all-symbols'
8498 allow_undefined_flag=unsupported
8499 always_export_symbols=no
8500 enable_shared_with_static_runtimes=yes
8501 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'
8502 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8503
8504 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8506 # If the export-symbols file already is a .def file (1st line
8507 # is EXPORTS), use it as is; otherwise, prepend...
8508 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8509 cp $export_symbols $output_objdir/$soname.def;
8510 else
8511 echo EXPORTS > $output_objdir/$soname.def;
8512 cat $export_symbols >> $output_objdir/$soname.def;
8513 fi~
8514 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8515 else
8516 ld_shlibs=no
8517 fi
8518 ;;
8519
8520 haiku*)
8521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8522 link_all_deplibs=yes
8523 ;;
8524
8525 interix[3-9]*)
8526 hardcode_direct=no
8527 hardcode_shlibpath_var=no
8528 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8529 export_dynamic_flag_spec='${wl}-E'
8530 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8531 # Instead, shared libraries are loaded at an image base (0x10000000 by
8532 # default) and relocated if they conflict, which is a slow very memory
8533 # consuming and fragmenting process. To avoid this, we pick a random,
8534 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8535 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8536 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8537 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'
8538 ;;
8539
8540 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8541 tmp_diet=no
8542 if test "$host_os" = linux-dietlibc; then
8543 case $cc_basename in
8544 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8545 esac
8546 fi
8547 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8548 && test "$tmp_diet" = no
8549 then
8550 tmp_addflag=' $pic_flag'
8551 tmp_sharedflag='-shared'
8552 case $cc_basename,$host_cpu in
8553 pgcc*) # Portland Group C compiler
8554 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'
8555 tmp_addflag=' $pic_flag'
8556 ;;
8557 pgf77* | pgf90* | pgf95* | pgfortran*)
8558 # Portland Group f77 and f90 compilers
8559 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'
8560 tmp_addflag=' $pic_flag -Mnomain' ;;
8561 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8562 tmp_addflag=' -i_dynamic' ;;
8563 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8564 tmp_addflag=' -i_dynamic -nofor_main' ;;
8565 ifc* | ifort*) # Intel Fortran compiler
8566 tmp_addflag=' -nofor_main' ;;
8567 lf95*) # Lahey Fortran 8.1
8568 whole_archive_flag_spec=
8569 tmp_sharedflag='--shared' ;;
8570 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8571 tmp_sharedflag='-qmkshrobj'
8572 tmp_addflag= ;;
8573 nvcc*) # Cuda Compiler Driver 2.2
8574 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'
8575 compiler_needs_object=yes
8576 ;;
8577 esac
8578 case `$CC -V 2>&1 | sed 5q` in
8579 *Sun\ C*) # Sun C 5.9
8580 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'
8581 compiler_needs_object=yes
8582 tmp_sharedflag='-G' ;;
8583 *Sun\ F*) # Sun Fortran 8.3
8584 tmp_sharedflag='-G' ;;
8585 esac
8586 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8587
8588 if test "x$supports_anon_versioning" = xyes; then
8589 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8590 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8591 echo "local: *; };" >> $output_objdir/$libname.ver~
8592 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8593 fi
8594
8595 case $cc_basename in
8596 xlf* | bgf* | bgxlf* | mpixlf*)
8597 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8598 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8599 hardcode_libdir_flag_spec=
8600 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8601 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8602 if test "x$supports_anon_versioning" = xyes; then
8603 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8604 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8605 echo "local: *; };" >> $output_objdir/$libname.ver~
8606 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8607 fi
8608 ;;
8609 esac
8610 else
8611 ld_shlibs=no
8612 fi
8613 ;;
8614
8615 netbsd* | netbsdelf*-gnu)
8616 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8617 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8618 wlarc=
8619 else
8620 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8621 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8622 fi
8623 ;;
8624
8625 solaris*)
8626 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8627 ld_shlibs=no
8628 cat <<_LT_EOF 1>&2
8629
8630 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8631 *** create shared libraries on Solaris systems. Therefore, libtool
8632 *** is disabling shared libraries support. We urge you to upgrade GNU
8633 *** binutils to release 2.9.1 or newer. Another option is to modify
8634 *** your PATH or compiler configuration so that the native linker is
8635 *** used, and then restart.
8636
8637 _LT_EOF
8638 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8639 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8640 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8641 else
8642 ld_shlibs=no
8643 fi
8644 ;;
8645
8646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8647 case `$LD -v 2>&1` in
8648 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8649 ld_shlibs=no
8650 cat <<_LT_EOF 1>&2
8651
8652 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8653 *** reliably create shared libraries on SCO systems. Therefore, libtool
8654 *** is disabling shared libraries support. We urge you to upgrade GNU
8655 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8656 *** your PATH or compiler configuration so that the native linker is
8657 *** used, and then restart.
8658
8659 _LT_EOF
8660 ;;
8661 *)
8662 # For security reasons, it is highly recommended that you always
8663 # use absolute paths for naming shared libraries, and exclude the
8664 # DT_RUNPATH tag from executables and libraries. But doing so
8665 # requires that you compile everything twice, which is a pain.
8666 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8670 else
8671 ld_shlibs=no
8672 fi
8673 ;;
8674 esac
8675 ;;
8676
8677 sunos4*)
8678 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8679 wlarc=
8680 hardcode_direct=yes
8681 hardcode_shlibpath_var=no
8682 ;;
8683
8684 *)
8685 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8686 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8688 else
8689 ld_shlibs=no
8690 fi
8691 ;;
8692 esac
8693
8694 if test "$ld_shlibs" = no; then
8695 runpath_var=
8696 hardcode_libdir_flag_spec=
8697 export_dynamic_flag_spec=
8698 whole_archive_flag_spec=
8699 fi
8700 else
8701 # PORTME fill in a description of your system's linker (not GNU ld)
8702 case $host_os in
8703 aix3*)
8704 allow_undefined_flag=unsupported
8705 always_export_symbols=yes
8706 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'
8707 # Note: this linker hardcodes the directories in LIBPATH if there
8708 # are no directories specified by -L.
8709 hardcode_minus_L=yes
8710 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8711 # Neither direct hardcoding nor static linking is supported with a
8712 # broken collect2.
8713 hardcode_direct=unsupported
8714 fi
8715 ;;
8716
8717 aix[4-9]*)
8718 if test "$host_cpu" = ia64; then
8719 # On IA64, the linker does run time linking by default, so we don't
8720 # have to do anything special.
8721 aix_use_runtimelinking=no
8722 exp_sym_flag='-Bexport'
8723 no_entry_flag=""
8724 else
8725 # If we're using GNU nm, then we don't want the "-C" option.
8726 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8727 # Also, AIX nm treats weak defined symbols like other global
8728 # defined symbols, whereas GNU nm marks them as "W".
8729 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8730 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'
8731 else
8732 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'
8733 fi
8734 aix_use_runtimelinking=no
8735
8736 # Test if we are trying to use run time linking or normal
8737 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8738 # need to do runtime linking.
8739 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8740 for ld_flag in $LDFLAGS; do
8741 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8742 aix_use_runtimelinking=yes
8743 break
8744 fi
8745 done
8746 ;;
8747 esac
8748
8749 exp_sym_flag='-bexport'
8750 no_entry_flag='-bnoentry'
8751 fi
8752
8753 # When large executables or shared objects are built, AIX ld can
8754 # have problems creating the table of contents. If linking a library
8755 # or program results in "error TOC overflow" add -mminimal-toc to
8756 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8757 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8758
8759 archive_cmds=''
8760 hardcode_direct=yes
8761 hardcode_direct_absolute=yes
8762 hardcode_libdir_separator=':'
8763 link_all_deplibs=yes
8764 file_list_spec='${wl}-f,'
8765
8766 if test "$GCC" = yes; then
8767 case $host_os in aix4.[012]|aix4.[012].*)
8768 # We only want to do this on AIX 4.2 and lower, the check
8769 # below for broken collect2 doesn't work under 4.3+
8770 collect2name=`${CC} -print-prog-name=collect2`
8771 if test -f "$collect2name" &&
8772 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8773 then
8774 # We have reworked collect2
8775 :
8776 else
8777 # We have old collect2
8778 hardcode_direct=unsupported
8779 # It fails to find uninstalled libraries when the uninstalled
8780 # path is not listed in the libpath. Setting hardcode_minus_L
8781 # to unsupported forces relinking
8782 hardcode_minus_L=yes
8783 hardcode_libdir_flag_spec='-L$libdir'
8784 hardcode_libdir_separator=
8785 fi
8786 ;;
8787 esac
8788 shared_flag='-shared'
8789 if test "$aix_use_runtimelinking" = yes; then
8790 shared_flag="$shared_flag "'${wl}-G'
8791 fi
8792 link_all_deplibs=no
8793 else
8794 # not using gcc
8795 if test "$host_cpu" = ia64; then
8796 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8797 # chokes on -Wl,-G. The following line is correct:
8798 shared_flag='-G'
8799 else
8800 if test "$aix_use_runtimelinking" = yes; then
8801 shared_flag='${wl}-G'
8802 else
8803 shared_flag='${wl}-bM:SRE'
8804 fi
8805 fi
8806 fi
8807
8808 export_dynamic_flag_spec='${wl}-bexpall'
8809 # It seems that -bexpall does not export symbols beginning with
8810 # underscore (_), so it is better to generate a list of symbols to export.
8811 always_export_symbols=yes
8812 if test "$aix_use_runtimelinking" = yes; then
8813 # Warning - without using the other runtime loading flags (-brtl),
8814 # -berok will link without error, but may produce a broken library.
8815 allow_undefined_flag='-berok'
8816 # Determine the default libpath from the value encoded in an
8817 # empty executable.
8818 if test "${lt_cv_aix_libpath+set}" = set; then
8819 aix_libpath=$lt_cv_aix_libpath
8820 else
8821 if ${lt_cv_aix_libpath_+:} false; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826
8827 int
8828 main ()
8829 {
8830
8831 ;
8832 return 0;
8833 }
8834 _ACEOF
8835 if ac_fn_c_try_link "$LINENO"; then :
8836
8837 lt_aix_libpath_sed='
8838 /Import File Strings/,/^$/ {
8839 /^0/ {
8840 s/^0 *\([^ ]*\) *$/\1/
8841 p
8842 }
8843 }'
8844 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8845 # Check for a 64-bit object if we didn't find anything.
8846 if test -z "$lt_cv_aix_libpath_"; then
8847 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8848 fi
8849 fi
8850 rm -f core conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
8852 if test -z "$lt_cv_aix_libpath_"; then
8853 lt_cv_aix_libpath_="/usr/lib:/lib"
8854 fi
8855
8856 fi
8857
8858 aix_libpath=$lt_cv_aix_libpath_
8859 fi
8860
8861 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8862 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"
8863 else
8864 if test "$host_cpu" = ia64; then
8865 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8866 allow_undefined_flag="-z nodefs"
8867 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"
8868 else
8869 # Determine the default libpath from the value encoded in an
8870 # empty executable.
8871 if test "${lt_cv_aix_libpath+set}" = set; then
8872 aix_libpath=$lt_cv_aix_libpath
8873 else
8874 if ${lt_cv_aix_libpath_+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h. */
8879
8880 int
8881 main ()
8882 {
8883
8884 ;
8885 return 0;
8886 }
8887 _ACEOF
8888 if ac_fn_c_try_link "$LINENO"; then :
8889
8890 lt_aix_libpath_sed='
8891 /Import File Strings/,/^$/ {
8892 /^0/ {
8893 s/^0 *\([^ ]*\) *$/\1/
8894 p
8895 }
8896 }'
8897 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8898 # Check for a 64-bit object if we didn't find anything.
8899 if test -z "$lt_cv_aix_libpath_"; then
8900 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8901 fi
8902 fi
8903 rm -f core conftest.err conftest.$ac_objext \
8904 conftest$ac_exeext conftest.$ac_ext
8905 if test -z "$lt_cv_aix_libpath_"; then
8906 lt_cv_aix_libpath_="/usr/lib:/lib"
8907 fi
8908
8909 fi
8910
8911 aix_libpath=$lt_cv_aix_libpath_
8912 fi
8913
8914 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8915 # Warning - without using the other run time loading flags,
8916 # -berok will link without error, but may produce a broken library.
8917 no_undefined_flag=' ${wl}-bernotok'
8918 allow_undefined_flag=' ${wl}-berok'
8919 if test "$with_gnu_ld" = yes; then
8920 # We only use this code for GNU lds that support --whole-archive.
8921 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8922 else
8923 # Exported symbols can be pulled into shared objects from archives
8924 whole_archive_flag_spec='$convenience'
8925 fi
8926 archive_cmds_need_lc=yes
8927 # This is similar to how AIX traditionally builds its shared libraries.
8928 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'
8929 fi
8930 fi
8931 ;;
8932
8933 amigaos*)
8934 case $host_cpu in
8935 powerpc)
8936 # see comment about AmigaOS4 .so support
8937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938 archive_expsym_cmds=''
8939 ;;
8940 m68k)
8941 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)'
8942 hardcode_libdir_flag_spec='-L$libdir'
8943 hardcode_minus_L=yes
8944 ;;
8945 esac
8946 ;;
8947
8948 bsdi[45]*)
8949 export_dynamic_flag_spec=-rdynamic
8950 ;;
8951
8952 cygwin* | mingw* | pw32* | cegcc*)
8953 # When not using gcc, we currently assume that we are using
8954 # Microsoft Visual C++.
8955 # hardcode_libdir_flag_spec is actually meaningless, as there is
8956 # no search path for DLLs.
8957 case $cc_basename in
8958 cl*)
8959 # Native MSVC
8960 hardcode_libdir_flag_spec=' '
8961 allow_undefined_flag=unsupported
8962 always_export_symbols=yes
8963 file_list_spec='@'
8964 # Tell ltmain to make .lib files, not .a files.
8965 libext=lib
8966 # Tell ltmain to make .dll files, not .so files.
8967 shrext_cmds=".dll"
8968 # FIXME: Setting linknames here is a bad hack.
8969 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8970 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8971 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8972 else
8973 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8974 fi~
8975 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8976 linknames='
8977 # The linker will not automatically build a static lib if we build a DLL.
8978 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8979 enable_shared_with_static_runtimes=yes
8980 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8981 # Don't use ranlib
8982 old_postinstall_cmds='chmod 644 $oldlib'
8983 postlink_cmds='lt_outputfile="@OUTPUT@"~
8984 lt_tool_outputfile="@TOOL_OUTPUT@"~
8985 case $lt_outputfile in
8986 *.exe|*.EXE) ;;
8987 *)
8988 lt_outputfile="$lt_outputfile.exe"
8989 lt_tool_outputfile="$lt_tool_outputfile.exe"
8990 ;;
8991 esac~
8992 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8993 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8994 $RM "$lt_outputfile.manifest";
8995 fi'
8996 ;;
8997 *)
8998 # Assume MSVC wrapper
8999 hardcode_libdir_flag_spec=' '
9000 allow_undefined_flag=unsupported
9001 # Tell ltmain to make .lib files, not .a files.
9002 libext=lib
9003 # Tell ltmain to make .dll files, not .so files.
9004 shrext_cmds=".dll"
9005 # FIXME: Setting linknames here is a bad hack.
9006 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9007 # The linker will automatically build a .lib file if we build a DLL.
9008 old_archive_from_new_cmds='true'
9009 # FIXME: Should let the user specify the lib program.
9010 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9011 enable_shared_with_static_runtimes=yes
9012 ;;
9013 esac
9014 ;;
9015
9016 darwin* | rhapsody*)
9017
9018
9019 archive_cmds_need_lc=no
9020 hardcode_direct=no
9021 hardcode_automatic=yes
9022 hardcode_shlibpath_var=unsupported
9023 if test "$lt_cv_ld_force_load" = "yes"; then
9024 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\"`'
9025 else
9026 whole_archive_flag_spec=''
9027 fi
9028 link_all_deplibs=yes
9029 allow_undefined_flag="$_lt_dar_allow_undefined"
9030 case $cc_basename in
9031 ifort*) _lt_dar_can_shared=yes ;;
9032 *) _lt_dar_can_shared=$GCC ;;
9033 esac
9034 if test "$_lt_dar_can_shared" = "yes"; then
9035 output_verbose_link_cmd=func_echo_all
9036 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9037 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9038 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}"
9039 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}"
9040
9041 else
9042 ld_shlibs=no
9043 fi
9044
9045 ;;
9046
9047 dgux*)
9048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9049 hardcode_libdir_flag_spec='-L$libdir'
9050 hardcode_shlibpath_var=no
9051 ;;
9052
9053 freebsd1*)
9054 ld_shlibs=no
9055 ;;
9056
9057 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9058 # support. Future versions do this automatically, but an explicit c++rt0.o
9059 # does not break anything, and helps significantly (at the cost of a little
9060 # extra space).
9061 freebsd2.2*)
9062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9063 hardcode_libdir_flag_spec='-R$libdir'
9064 hardcode_direct=yes
9065 hardcode_shlibpath_var=no
9066 ;;
9067
9068 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9069 freebsd2*)
9070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9071 hardcode_direct=yes
9072 hardcode_minus_L=yes
9073 hardcode_shlibpath_var=no
9074 ;;
9075
9076 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9077 freebsd* | dragonfly*)
9078 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9079 hardcode_libdir_flag_spec='-R$libdir'
9080 hardcode_direct=yes
9081 hardcode_shlibpath_var=no
9082 ;;
9083
9084 hpux9*)
9085 if test "$GCC" = yes; then
9086 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'
9087 else
9088 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'
9089 fi
9090 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9091 hardcode_libdir_separator=:
9092 hardcode_direct=yes
9093
9094 # hardcode_minus_L: Not really in the search PATH,
9095 # but as the default location of the library.
9096 hardcode_minus_L=yes
9097 export_dynamic_flag_spec='${wl}-E'
9098 ;;
9099
9100 hpux10*)
9101 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9102 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9103 else
9104 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9105 fi
9106 if test "$with_gnu_ld" = no; then
9107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9108 hardcode_libdir_flag_spec_ld='+b $libdir'
9109 hardcode_libdir_separator=:
9110 hardcode_direct=yes
9111 hardcode_direct_absolute=yes
9112 export_dynamic_flag_spec='${wl}-E'
9113 # hardcode_minus_L: Not really in the search PATH,
9114 # but as the default location of the library.
9115 hardcode_minus_L=yes
9116 fi
9117 ;;
9118
9119 hpux11*)
9120 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9121 case $host_cpu in
9122 hppa*64*)
9123 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9124 ;;
9125 ia64*)
9126 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9127 ;;
9128 *)
9129 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9130 ;;
9131 esac
9132 else
9133 case $host_cpu in
9134 hppa*64*)
9135 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9136 ;;
9137 ia64*)
9138 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9139 ;;
9140 *)
9141
9142 # Older versions of the 11.00 compiler do not understand -b yet
9143 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9145 $as_echo_n "checking if $CC understands -b... " >&6; }
9146 if ${lt_cv_prog_compiler__b+:} false; then :
9147 $as_echo_n "(cached) " >&6
9148 else
9149 lt_cv_prog_compiler__b=no
9150 save_LDFLAGS="$LDFLAGS"
9151 LDFLAGS="$LDFLAGS -b"
9152 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9153 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9154 # The linker can only warn and ignore the option if not recognized
9155 # So say no if there are warnings
9156 if test -s conftest.err; then
9157 # Append any errors to the config.log.
9158 cat conftest.err 1>&5
9159 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9161 if diff conftest.exp conftest.er2 >/dev/null; then
9162 lt_cv_prog_compiler__b=yes
9163 fi
9164 else
9165 lt_cv_prog_compiler__b=yes
9166 fi
9167 fi
9168 $RM -r conftest*
9169 LDFLAGS="$save_LDFLAGS"
9170
9171 fi
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9173 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9174
9175 if test x"$lt_cv_prog_compiler__b" = xyes; then
9176 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9177 else
9178 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9179 fi
9180
9181 ;;
9182 esac
9183 fi
9184 if test "$with_gnu_ld" = no; then
9185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9186 hardcode_libdir_separator=:
9187
9188 case $host_cpu in
9189 hppa*64*|ia64*)
9190 hardcode_direct=no
9191 hardcode_shlibpath_var=no
9192 ;;
9193 *)
9194 hardcode_direct=yes
9195 hardcode_direct_absolute=yes
9196 export_dynamic_flag_spec='${wl}-E'
9197
9198 # hardcode_minus_L: Not really in the search PATH,
9199 # but as the default location of the library.
9200 hardcode_minus_L=yes
9201 ;;
9202 esac
9203 fi
9204 ;;
9205
9206 irix5* | irix6* | nonstopux*)
9207 if test "$GCC" = yes; then
9208 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'
9209 # Try to use the -exported_symbol ld option, if it does not
9210 # work, assume that -exports_file does not work either and
9211 # implicitly export all symbols.
9212 # This should be the same for all languages, so no per-tag cache variable.
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9214 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9215 if ${lt_cv_irix_exported_symbol+:} false; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 save_LDFLAGS="$LDFLAGS"
9219 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 int foo (void) { return 0; }
9223 _ACEOF
9224 if ac_fn_c_try_link "$LINENO"; then :
9225 lt_cv_irix_exported_symbol=yes
9226 else
9227 lt_cv_irix_exported_symbol=no
9228 fi
9229 rm -f core conftest.err conftest.$ac_objext \
9230 conftest$ac_exeext conftest.$ac_ext
9231 LDFLAGS="$save_LDFLAGS"
9232 fi
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9234 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9235 if test "$lt_cv_irix_exported_symbol" = yes; then
9236 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'
9237 fi
9238 else
9239 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'
9240 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'
9241 fi
9242 archive_cmds_need_lc='no'
9243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9244 hardcode_libdir_separator=:
9245 inherit_rpath=yes
9246 link_all_deplibs=yes
9247 ;;
9248
9249 netbsd* | netbsdelf*-gnu)
9250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9252 else
9253 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9254 fi
9255 hardcode_libdir_flag_spec='-R$libdir'
9256 hardcode_direct=yes
9257 hardcode_shlibpath_var=no
9258 ;;
9259
9260 newsos6)
9261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262 hardcode_direct=yes
9263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9264 hardcode_libdir_separator=:
9265 hardcode_shlibpath_var=no
9266 ;;
9267
9268 *nto* | *qnx*)
9269 ;;
9270
9271 openbsd*)
9272 if test -f /usr/libexec/ld.so; then
9273 hardcode_direct=yes
9274 hardcode_shlibpath_var=no
9275 hardcode_direct_absolute=yes
9276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9278 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9280 export_dynamic_flag_spec='${wl}-E'
9281 else
9282 case $host_os in
9283 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9285 hardcode_libdir_flag_spec='-R$libdir'
9286 ;;
9287 *)
9288 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9289 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9290 ;;
9291 esac
9292 fi
9293 else
9294 ld_shlibs=no
9295 fi
9296 ;;
9297
9298 os2*)
9299 hardcode_libdir_flag_spec='-L$libdir'
9300 hardcode_minus_L=yes
9301 allow_undefined_flag=unsupported
9302 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'
9303 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9304 ;;
9305
9306 osf3*)
9307 if test "$GCC" = yes; then
9308 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9309 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'
9310 else
9311 allow_undefined_flag=' -expect_unresolved \*'
9312 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'
9313 fi
9314 archive_cmds_need_lc='no'
9315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9316 hardcode_libdir_separator=:
9317 ;;
9318
9319 osf4* | osf5*) # as osf3* with the addition of -msym flag
9320 if test "$GCC" = yes; then
9321 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9322 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'
9323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9324 else
9325 allow_undefined_flag=' -expect_unresolved \*'
9326 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'
9327 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~
9328 $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'
9329
9330 # Both c and cxx compiler support -rpath directly
9331 hardcode_libdir_flag_spec='-rpath $libdir'
9332 fi
9333 archive_cmds_need_lc='no'
9334 hardcode_libdir_separator=:
9335 ;;
9336
9337 solaris*)
9338 no_undefined_flag=' -z defs'
9339 if test "$GCC" = yes; then
9340 wlarc='${wl}'
9341 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9343 $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'
9344 else
9345 case `$CC -V 2>&1` in
9346 *"Compilers 5.0"*)
9347 wlarc=''
9348 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9350 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9351 ;;
9352 *)
9353 wlarc='${wl}'
9354 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9356 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9357 ;;
9358 esac
9359 fi
9360 hardcode_libdir_flag_spec='-R$libdir'
9361 hardcode_shlibpath_var=no
9362 case $host_os in
9363 solaris2.[0-5] | solaris2.[0-5].*) ;;
9364 *)
9365 # The compiler driver will combine and reorder linker options,
9366 # but understands `-z linker_flag'. GCC discards it without `$wl',
9367 # but is careful enough not to reorder.
9368 # Supported since Solaris 2.6 (maybe 2.5.1?)
9369 if test "$GCC" = yes; then
9370 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9371 else
9372 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9373 fi
9374 ;;
9375 esac
9376 link_all_deplibs=yes
9377 ;;
9378
9379 sunos4*)
9380 if test "x$host_vendor" = xsequent; then
9381 # Use $CC to link under sequent, because it throws in some extra .o
9382 # files that make .init and .fini sections work.
9383 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9384 else
9385 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9386 fi
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_direct=yes
9389 hardcode_minus_L=yes
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 sysv4)
9394 case $host_vendor in
9395 sni)
9396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397 hardcode_direct=yes # is this really true???
9398 ;;
9399 siemens)
9400 ## LD is ld it makes a PLAMLIB
9401 ## CC just makes a GrossModule.
9402 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9403 reload_cmds='$CC -r -o $output$reload_objs'
9404 hardcode_direct=no
9405 ;;
9406 motorola)
9407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9409 ;;
9410 esac
9411 runpath_var='LD_RUN_PATH'
9412 hardcode_shlibpath_var=no
9413 ;;
9414
9415 sysv4.3*)
9416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_shlibpath_var=no
9418 export_dynamic_flag_spec='-Bexport'
9419 ;;
9420
9421 sysv4*MP*)
9422 if test -d /usr/nec; then
9423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9424 hardcode_shlibpath_var=no
9425 runpath_var=LD_RUN_PATH
9426 hardcode_runpath_var=yes
9427 ld_shlibs=yes
9428 fi
9429 ;;
9430
9431 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9432 no_undefined_flag='${wl}-z,text'
9433 archive_cmds_need_lc=no
9434 hardcode_shlibpath_var=no
9435 runpath_var='LD_RUN_PATH'
9436
9437 if test "$GCC" = yes; then
9438 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 else
9441 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9443 fi
9444 ;;
9445
9446 sysv5* | sco3.2v5* | sco5v6*)
9447 # Note: We can NOT use -z defs as we might desire, because we do not
9448 # link with -lc, and that would cause any symbols used from libc to
9449 # always be unresolved, which means just about no library would
9450 # ever link correctly. If we're not using GNU ld we use -z text
9451 # though, which does catch some bad symbols but isn't as heavy-handed
9452 # as -z defs.
9453 no_undefined_flag='${wl}-z,text'
9454 allow_undefined_flag='${wl}-z,nodefs'
9455 archive_cmds_need_lc=no
9456 hardcode_shlibpath_var=no
9457 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9458 hardcode_libdir_separator=':'
9459 link_all_deplibs=yes
9460 export_dynamic_flag_spec='${wl}-Bexport'
9461 runpath_var='LD_RUN_PATH'
9462
9463 if test "$GCC" = yes; then
9464 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 else
9467 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9469 fi
9470 ;;
9471
9472 uts4*)
9473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474 hardcode_libdir_flag_spec='-L$libdir'
9475 hardcode_shlibpath_var=no
9476 ;;
9477
9478 *)
9479 ld_shlibs=no
9480 ;;
9481 esac
9482
9483 if test x$host_vendor = xsni; then
9484 case $host in
9485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9486 export_dynamic_flag_spec='${wl}-Blargedynsym'
9487 ;;
9488 esac
9489 fi
9490 fi
9491
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9493 $as_echo "$ld_shlibs" >&6; }
9494 test "$ld_shlibs" = no && can_build_shared=no
9495
9496 with_gnu_ld=$with_gnu_ld
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512 #
9513 # Do we need to explicitly link libc?
9514 #
9515 case "x$archive_cmds_need_lc" in
9516 x|xyes)
9517 # Assume -lc should be added
9518 archive_cmds_need_lc=yes
9519
9520 if test "$enable_shared" = yes && test "$GCC" = yes; then
9521 case $archive_cmds in
9522 *'~'*)
9523 # FIXME: we may have to deal with multi-command sequences.
9524 ;;
9525 '$CC '*)
9526 # Test whether the compiler implicitly links with -lc since on some
9527 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9528 # to ld, don't add -lc before -lgcc.
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9530 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9531 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 $RM conftest*
9535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9536
9537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9538 (eval $ac_compile) 2>&5
9539 ac_status=$?
9540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9541 test $ac_status = 0; } 2>conftest.err; then
9542 soname=conftest
9543 lib=conftest
9544 libobjs=conftest.$ac_objext
9545 deplibs=
9546 wl=$lt_prog_compiler_wl
9547 pic_flag=$lt_prog_compiler_pic
9548 compiler_flags=-v
9549 linker_flags=-v
9550 verstring=
9551 output_objdir=.
9552 libname=conftest
9553 lt_save_allow_undefined_flag=$allow_undefined_flag
9554 allow_undefined_flag=
9555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9556 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9557 ac_status=$?
9558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9559 test $ac_status = 0; }
9560 then
9561 lt_cv_archive_cmds_need_lc=no
9562 else
9563 lt_cv_archive_cmds_need_lc=yes
9564 fi
9565 allow_undefined_flag=$lt_save_allow_undefined_flag
9566 else
9567 cat conftest.err 1>&5
9568 fi
9569 $RM conftest*
9570
9571 fi
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9573 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9574 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9575 ;;
9576 esac
9577 fi
9578 ;;
9579 esac
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9738 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9739
9740 if test "$GCC" = yes; then
9741 case $host_os in
9742 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9743 *) lt_awk_arg="/^libraries:/" ;;
9744 esac
9745 case $host_os in
9746 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9747 *) lt_sed_strip_eq="s,=/,/,g" ;;
9748 esac
9749 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9750 case $lt_search_path_spec in
9751 *\;*)
9752 # if the path contains ";" then we assume it to be the separator
9753 # otherwise default to the standard path separator (i.e. ":") - it is
9754 # assumed that no part of a normal pathname contains ";" but that should
9755 # okay in the real world where ";" in dirpaths is itself problematic.
9756 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9757 ;;
9758 *)
9759 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9760 ;;
9761 esac
9762 # Ok, now we have the path, separated by spaces, we can step through it
9763 # and add multilib dir if necessary.
9764 lt_tmp_lt_search_path_spec=
9765 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9766 for lt_sys_path in $lt_search_path_spec; do
9767 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9768 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9769 else
9770 test -d "$lt_sys_path" && \
9771 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9772 fi
9773 done
9774 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9775 BEGIN {RS=" "; FS="/|\n";} {
9776 lt_foo="";
9777 lt_count=0;
9778 for (lt_i = NF; lt_i > 0; lt_i--) {
9779 if ($lt_i != "" && $lt_i != ".") {
9780 if ($lt_i == "..") {
9781 lt_count++;
9782 } else {
9783 if (lt_count == 0) {
9784 lt_foo="/" $lt_i lt_foo;
9785 } else {
9786 lt_count--;
9787 }
9788 }
9789 }
9790 }
9791 if (lt_foo != "") { lt_freq[lt_foo]++; }
9792 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9793 }'`
9794 # AWK program above erroneously prepends '/' to C:/dos/paths
9795 # for these hosts.
9796 case $host_os in
9797 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9798 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9799 esac
9800 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9801 else
9802 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9803 fi
9804 library_names_spec=
9805 libname_spec='lib$name'
9806 soname_spec=
9807 shrext_cmds=".so"
9808 postinstall_cmds=
9809 postuninstall_cmds=
9810 finish_cmds=
9811 finish_eval=
9812 shlibpath_var=
9813 shlibpath_overrides_runpath=unknown
9814 version_type=none
9815 dynamic_linker="$host_os ld.so"
9816 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9817 need_lib_prefix=unknown
9818 hardcode_into_libs=no
9819
9820 # when you set need_version to no, make sure it does not cause -set_version
9821 # flags to be left without arguments
9822 need_version=unknown
9823
9824 case $host_os in
9825 aix3*)
9826 version_type=linux
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9828 shlibpath_var=LIBPATH
9829
9830 # AIX 3 has no versioning support, so we append a major version to the name.
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 ;;
9833
9834 aix[4-9]*)
9835 version_type=linux
9836 need_lib_prefix=no
9837 need_version=no
9838 hardcode_into_libs=yes
9839 if test "$host_cpu" = ia64; then
9840 # AIX 5 supports IA64
9841 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9842 shlibpath_var=LD_LIBRARY_PATH
9843 else
9844 # With GCC up to 2.95.x, collect2 would create an import file
9845 # for dependence libraries. The import file would start with
9846 # the line `#! .'. This would cause the generated library to
9847 # depend on `.', always an invalid library. This was fixed in
9848 # development snapshots of GCC prior to 3.0.
9849 case $host_os in
9850 aix4 | aix4.[01] | aix4.[01].*)
9851 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9852 echo ' yes '
9853 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9854 :
9855 else
9856 can_build_shared=no
9857 fi
9858 ;;
9859 esac
9860 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9861 # soname into executable. Probably we can add versioning support to
9862 # collect2, so additional links can be useful in future.
9863 if test "$aix_use_runtimelinking" = yes; then
9864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9865 # instead of lib<name>.a to let people know that these are not
9866 # typical AIX shared libraries.
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9868 else
9869 # We preserve .a as extension for shared libraries through AIX4.2
9870 # and later when we are not doing run time linking.
9871 library_names_spec='${libname}${release}.a $libname.a'
9872 soname_spec='${libname}${release}${shared_ext}$major'
9873 fi
9874 shlibpath_var=LIBPATH
9875 fi
9876 ;;
9877
9878 amigaos*)
9879 case $host_cpu in
9880 powerpc)
9881 # Since July 2007 AmigaOS4 officially supports .so libraries.
9882 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9884 ;;
9885 m68k)
9886 library_names_spec='$libname.ixlibrary $libname.a'
9887 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9888 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'
9889 ;;
9890 esac
9891 ;;
9892
9893 beos*)
9894 library_names_spec='${libname}${shared_ext}'
9895 dynamic_linker="$host_os ld.so"
9896 shlibpath_var=LIBRARY_PATH
9897 ;;
9898
9899 bsdi[45]*)
9900 version_type=linux
9901 need_version=no
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903 soname_spec='${libname}${release}${shared_ext}$major'
9904 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9907 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9908 # the default ld.so.conf also contains /usr/contrib/lib and
9909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9910 # libtool to hard-code these into programs
9911 ;;
9912
9913 cygwin* | mingw* | pw32* | cegcc*)
9914 version_type=windows
9915 shrext_cmds=".dll"
9916 need_version=no
9917 need_lib_prefix=no
9918
9919 case $GCC,$cc_basename in
9920 yes,*)
9921 # gcc
9922 library_names_spec='$libname.dll.a'
9923 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9924 postinstall_cmds='base_file=`basename \${file}`~
9925 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9926 dldir=$destdir/`dirname \$dlpath`~
9927 test -d \$dldir || mkdir -p \$dldir~
9928 $install_prog $dir/$dlname \$dldir/$dlname~
9929 chmod a+x \$dldir/$dlname~
9930 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9931 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9932 fi'
9933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9934 dlpath=$dir/\$dldll~
9935 $RM \$dlpath'
9936 shlibpath_overrides_runpath=yes
9937
9938 case $host_os in
9939 cygwin*)
9940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9941 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9942
9943 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9944 ;;
9945 mingw* | cegcc*)
9946 # MinGW DLLs use traditional 'lib' prefix
9947 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9948 ;;
9949 pw32*)
9950 # pw32 DLLs use 'pw' prefix rather than 'lib'
9951 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9952 ;;
9953 esac
9954 dynamic_linker='Win32 ld.exe'
9955 ;;
9956
9957 *,cl*)
9958 # Native MSVC
9959 libname_spec='$name'
9960 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9961 library_names_spec='${libname}.dll.lib'
9962
9963 case $build_os in
9964 mingw*)
9965 sys_lib_search_path_spec=
9966 lt_save_ifs=$IFS
9967 IFS=';'
9968 for lt_path in $LIB
9969 do
9970 IFS=$lt_save_ifs
9971 # Let DOS variable expansion print the short 8.3 style file name.
9972 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9973 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9974 done
9975 IFS=$lt_save_ifs
9976 # Convert to MSYS style.
9977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9978 ;;
9979 cygwin*)
9980 # Convert to unix form, then to dos form, then back to unix form
9981 # but this time dos style (no spaces!) so that the unix form looks
9982 # like /cygdrive/c/PROGRA~1:/cygdr...
9983 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9984 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9985 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9986 ;;
9987 *)
9988 sys_lib_search_path_spec="$LIB"
9989 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9990 # It is most probably a Windows format PATH.
9991 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9992 else
9993 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9994 fi
9995 # FIXME: find the short name or the path components, as spaces are
9996 # common. (e.g. "Program Files" -> "PROGRA~1")
9997 ;;
9998 esac
9999
10000 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10001 postinstall_cmds='base_file=`basename \${file}`~
10002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10003 dldir=$destdir/`dirname \$dlpath`~
10004 test -d \$dldir || mkdir -p \$dldir~
10005 $install_prog $dir/$dlname \$dldir/$dlname'
10006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10007 dlpath=$dir/\$dldll~
10008 $RM \$dlpath'
10009 shlibpath_overrides_runpath=yes
10010 dynamic_linker='Win32 link.exe'
10011 ;;
10012
10013 *)
10014 # Assume MSVC wrapper
10015 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10016 dynamic_linker='Win32 ld.exe'
10017 ;;
10018 esac
10019 # FIXME: first we should search . and the directory the executable is in
10020 shlibpath_var=PATH
10021 ;;
10022
10023 darwin* | rhapsody*)
10024 dynamic_linker="$host_os dyld"
10025 version_type=darwin
10026 need_lib_prefix=no
10027 need_version=no
10028 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10029 soname_spec='${libname}${release}${major}$shared_ext'
10030 shlibpath_overrides_runpath=yes
10031 shlibpath_var=DYLD_LIBRARY_PATH
10032 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10033
10034 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10035 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10036 ;;
10037
10038 dgux*)
10039 version_type=linux
10040 need_lib_prefix=no
10041 need_version=no
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 ;;
10046
10047 freebsd1*)
10048 dynamic_linker=no
10049 ;;
10050
10051 freebsd* | dragonfly*)
10052 # DragonFly does not have aout. When/if they implement a new
10053 # versioning mechanism, adjust this.
10054 if test -x /usr/bin/objformat; then
10055 objformat=`/usr/bin/objformat`
10056 else
10057 case $host_os in
10058 freebsd[123]*) objformat=aout ;;
10059 *) objformat=elf ;;
10060 esac
10061 fi
10062 version_type=freebsd-$objformat
10063 case $version_type in
10064 freebsd-elf*)
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10066 need_version=no
10067 need_lib_prefix=no
10068 ;;
10069 freebsd-*)
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10071 need_version=yes
10072 ;;
10073 esac
10074 shlibpath_var=LD_LIBRARY_PATH
10075 case $host_os in
10076 freebsd2*)
10077 shlibpath_overrides_runpath=yes
10078 ;;
10079 freebsd3.[01]* | freebsdelf3.[01]*)
10080 shlibpath_overrides_runpath=yes
10081 hardcode_into_libs=yes
10082 ;;
10083 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10084 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10085 shlibpath_overrides_runpath=no
10086 hardcode_into_libs=yes
10087 ;;
10088 *) # from 4.6 on, and DragonFly
10089 shlibpath_overrides_runpath=yes
10090 hardcode_into_libs=yes
10091 ;;
10092 esac
10093 ;;
10094
10095 gnu*)
10096 version_type=linux
10097 need_lib_prefix=no
10098 need_version=no
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10100 soname_spec='${libname}${release}${shared_ext}$major'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 shlibpath_overrides_runpath=no
10103 hardcode_into_libs=yes
10104 ;;
10105
10106 haiku*)
10107 version_type=linux
10108 need_lib_prefix=no
10109 need_version=no
10110 dynamic_linker="$host_os runtime_loader"
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 shlibpath_var=LIBRARY_PATH
10114 shlibpath_overrides_runpath=yes
10115 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10116 hardcode_into_libs=yes
10117 ;;
10118
10119 hpux9* | hpux10* | hpux11*)
10120 # Give a soname corresponding to the major version so that dld.sl refuses to
10121 # link against other versions.
10122 version_type=sunos
10123 need_lib_prefix=no
10124 need_version=no
10125 case $host_cpu in
10126 ia64*)
10127 shrext_cmds='.so'
10128 hardcode_into_libs=yes
10129 dynamic_linker="$host_os dld.so"
10130 shlibpath_var=LD_LIBRARY_PATH
10131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 if test "X$HPUX_IA64_MODE" = X32; then
10135 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10136 else
10137 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10138 fi
10139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10140 ;;
10141 hppa*64*)
10142 shrext_cmds='.sl'
10143 hardcode_into_libs=yes
10144 dynamic_linker="$host_os dld.sl"
10145 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 soname_spec='${libname}${release}${shared_ext}$major'
10149 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10151 ;;
10152 *)
10153 shrext_cmds='.sl'
10154 dynamic_linker="$host_os dld.sl"
10155 shlibpath_var=SHLIB_PATH
10156 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 ;;
10160 esac
10161 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10162 postinstall_cmds='chmod 555 $lib'
10163 # or fails outright, so override atomically:
10164 install_override_mode=555
10165 ;;
10166
10167 interix[3-9]*)
10168 version_type=linux
10169 need_lib_prefix=no
10170 need_version=no
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10174 shlibpath_var=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath=no
10176 hardcode_into_libs=yes
10177 ;;
10178
10179 irix5* | irix6* | nonstopux*)
10180 case $host_os in
10181 nonstopux*) version_type=nonstopux ;;
10182 *)
10183 if test "$lt_cv_prog_gnu_ld" = yes; then
10184 version_type=linux
10185 else
10186 version_type=irix
10187 fi ;;
10188 esac
10189 need_lib_prefix=no
10190 need_version=no
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10193 case $host_os in
10194 irix5* | nonstopux*)
10195 libsuff= shlibsuff=
10196 ;;
10197 *)
10198 case $LD in # libtool.m4 will add one of these switches to LD
10199 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10200 libsuff= shlibsuff= libmagic=32-bit;;
10201 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10202 libsuff=32 shlibsuff=N32 libmagic=N32;;
10203 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10204 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10205 *) libsuff= shlibsuff= libmagic=never-match;;
10206 esac
10207 ;;
10208 esac
10209 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10210 shlibpath_overrides_runpath=no
10211 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10212 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10213 hardcode_into_libs=yes
10214 ;;
10215
10216 # No shared lib support for Linux oldld, aout, or coff.
10217 linux*oldld* | linux*aout* | linux*coff*)
10218 dynamic_linker=no
10219 ;;
10220
10221 # This must be Linux ELF.
10222 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10223 version_type=linux
10224 need_lib_prefix=no
10225 need_version=no
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227 soname_spec='${libname}${release}${shared_ext}$major'
10228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=no
10231
10232 # Some binutils ld are patched to set DT_RUNPATH
10233 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10234 $as_echo_n "(cached) " >&6
10235 else
10236 lt_cv_shlibpath_overrides_runpath=no
10237 save_LDFLAGS=$LDFLAGS
10238 save_libdir=$libdir
10239 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10240 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10243
10244 int
10245 main ()
10246 {
10247
10248 ;
10249 return 0;
10250 }
10251 _ACEOF
10252 if ac_fn_c_try_link "$LINENO"; then :
10253 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10254 lt_cv_shlibpath_overrides_runpath=yes
10255 fi
10256 fi
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 LDFLAGS=$save_LDFLAGS
10260 libdir=$save_libdir
10261
10262 fi
10263
10264 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10265
10266 # This implies no fast_install, which is unacceptable.
10267 # Some rework will be needed to allow for fast_install
10268 # before this can be enabled.
10269 hardcode_into_libs=yes
10270
10271 # Append ld.so.conf contents to the search path
10272 if test -f /etc/ld.so.conf; then
10273 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' ' '`
10274 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10275 fi
10276
10277 # We used to test for /lib/ld.so.1 and disable shared libraries on
10278 # powerpc, because MkLinux only supported shared libraries with the
10279 # GNU dynamic linker. Since this was broken with cross compilers,
10280 # most powerpc-linux boxes support dynamic linking these days and
10281 # people can always --disable-shared, the test was removed, and we
10282 # assume the GNU/Linux dynamic linker is in use.
10283 dynamic_linker='GNU/Linux ld.so'
10284 ;;
10285
10286 netbsdelf*-gnu)
10287 version_type=linux
10288 need_lib_prefix=no
10289 need_version=no
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 shlibpath_overrides_runpath=no
10294 hardcode_into_libs=yes
10295 dynamic_linker='NetBSD ld.elf_so'
10296 ;;
10297
10298 netbsd*)
10299 version_type=sunos
10300 need_lib_prefix=no
10301 need_version=no
10302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10305 dynamic_linker='NetBSD (a.out) ld.so'
10306 else
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 dynamic_linker='NetBSD ld.elf_so'
10310 fi
10311 shlibpath_var=LD_LIBRARY_PATH
10312 shlibpath_overrides_runpath=yes
10313 hardcode_into_libs=yes
10314 ;;
10315
10316 newsos6)
10317 version_type=linux
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319 shlibpath_var=LD_LIBRARY_PATH
10320 shlibpath_overrides_runpath=yes
10321 ;;
10322
10323 *nto* | *qnx*)
10324 version_type=qnx
10325 need_lib_prefix=no
10326 need_version=no
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328 soname_spec='${libname}${release}${shared_ext}$major'
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=no
10331 hardcode_into_libs=yes
10332 dynamic_linker='ldqnx.so'
10333 ;;
10334
10335 openbsd*)
10336 version_type=sunos
10337 sys_lib_dlsearch_path_spec="/usr/lib"
10338 need_lib_prefix=no
10339 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10340 case $host_os in
10341 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10342 *) need_version=no ;;
10343 esac
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10346 shlibpath_var=LD_LIBRARY_PATH
10347 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10348 case $host_os in
10349 openbsd2.[89] | openbsd2.[89].*)
10350 shlibpath_overrides_runpath=no
10351 ;;
10352 *)
10353 shlibpath_overrides_runpath=yes
10354 ;;
10355 esac
10356 else
10357 shlibpath_overrides_runpath=yes
10358 fi
10359 ;;
10360
10361 os2*)
10362 libname_spec='$name'
10363 shrext_cmds=".dll"
10364 need_lib_prefix=no
10365 library_names_spec='$libname${shared_ext} $libname.a'
10366 dynamic_linker='OS/2 ld.exe'
10367 shlibpath_var=LIBPATH
10368 ;;
10369
10370 osf3* | osf4* | osf5*)
10371 version_type=osf
10372 need_lib_prefix=no
10373 need_version=no
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10378 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10379 ;;
10380
10381 rdos*)
10382 dynamic_linker=no
10383 ;;
10384
10385 solaris*)
10386 version_type=linux
10387 need_lib_prefix=no
10388 need_version=no
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 shlibpath_overrides_runpath=yes
10393 hardcode_into_libs=yes
10394 # ldd complains unless libraries are executable
10395 postinstall_cmds='chmod +x $lib'
10396 ;;
10397
10398 sunos4*)
10399 version_type=sunos
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10401 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 shlibpath_overrides_runpath=yes
10404 if test "$with_gnu_ld" = yes; then
10405 need_lib_prefix=no
10406 fi
10407 need_version=yes
10408 ;;
10409
10410 sysv4 | sysv4.3*)
10411 version_type=linux
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10413 soname_spec='${libname}${release}${shared_ext}$major'
10414 shlibpath_var=LD_LIBRARY_PATH
10415 case $host_vendor in
10416 sni)
10417 shlibpath_overrides_runpath=no
10418 need_lib_prefix=no
10419 runpath_var=LD_RUN_PATH
10420 ;;
10421 siemens)
10422 need_lib_prefix=no
10423 ;;
10424 motorola)
10425 need_lib_prefix=no
10426 need_version=no
10427 shlibpath_overrides_runpath=no
10428 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10429 ;;
10430 esac
10431 ;;
10432
10433 sysv4*MP*)
10434 if test -d /usr/nec ;then
10435 version_type=linux
10436 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10437 soname_spec='$libname${shared_ext}.$major'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 fi
10440 ;;
10441
10442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10443 version_type=freebsd-elf
10444 need_lib_prefix=no
10445 need_version=no
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10447 soname_spec='${libname}${release}${shared_ext}$major'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=yes
10450 hardcode_into_libs=yes
10451 if test "$with_gnu_ld" = yes; then
10452 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10453 else
10454 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10455 case $host_os in
10456 sco3.2v5*)
10457 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10458 ;;
10459 esac
10460 fi
10461 sys_lib_dlsearch_path_spec='/usr/lib'
10462 ;;
10463
10464 tpf*)
10465 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10466 version_type=linux
10467 need_lib_prefix=no
10468 need_version=no
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470 shlibpath_var=LD_LIBRARY_PATH
10471 shlibpath_overrides_runpath=no
10472 hardcode_into_libs=yes
10473 ;;
10474
10475 uts4*)
10476 version_type=linux
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 shlibpath_var=LD_LIBRARY_PATH
10480 ;;
10481
10482 *)
10483 dynamic_linker=no
10484 ;;
10485 esac
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10487 $as_echo "$dynamic_linker" >&6; }
10488 test "$dynamic_linker" = no && can_build_shared=no
10489
10490 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10491 if test "$GCC" = yes; then
10492 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10493 fi
10494
10495 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10496 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10497 fi
10498 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10499 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10500 fi
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10594 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10595 hardcode_action=
10596 if test -n "$hardcode_libdir_flag_spec" ||
10597 test -n "$runpath_var" ||
10598 test "X$hardcode_automatic" = "Xyes" ; then
10599
10600 # We can hardcode non-existent directories.
10601 if test "$hardcode_direct" != no &&
10602 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10603 # have to relink, otherwise we might link with an installed library
10604 # when we should be linking with a yet-to-be-installed one
10605 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10606 test "$hardcode_minus_L" != no; then
10607 # Linking always hardcodes the temporary library directory.
10608 hardcode_action=relink
10609 else
10610 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10611 hardcode_action=immediate
10612 fi
10613 else
10614 # We cannot hardcode anything, or else we can only hardcode existing
10615 # directories.
10616 hardcode_action=unsupported
10617 fi
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10619 $as_echo "$hardcode_action" >&6; }
10620
10621 if test "$hardcode_action" = relink ||
10622 test "$inherit_rpath" = yes; then
10623 # Fast installation is not supported
10624 enable_fast_install=no
10625 elif test "$shlibpath_overrides_runpath" = yes ||
10626 test "$enable_shared" = no; then
10627 # Fast installation is not necessary
10628 enable_fast_install=needless
10629 fi
10630
10631
10632
10633
10634
10635
10636 if test "x$enable_dlopen" != xyes; then
10637 enable_dlopen=unknown
10638 enable_dlopen_self=unknown
10639 enable_dlopen_self_static=unknown
10640 else
10641 lt_cv_dlopen=no
10642 lt_cv_dlopen_libs=
10643
10644 case $host_os in
10645 beos*)
10646 lt_cv_dlopen="load_add_on"
10647 lt_cv_dlopen_libs=
10648 lt_cv_dlopen_self=yes
10649 ;;
10650
10651 mingw* | pw32* | cegcc*)
10652 lt_cv_dlopen="LoadLibrary"
10653 lt_cv_dlopen_libs=
10654 ;;
10655
10656 cygwin*)
10657 lt_cv_dlopen="dlopen"
10658 lt_cv_dlopen_libs=
10659 ;;
10660
10661 darwin*)
10662 # if libdl is installed we need to link against it
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10664 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10665 if ${ac_cv_lib_dl_dlopen+:} false; then :
10666 $as_echo_n "(cached) " >&6
10667 else
10668 ac_check_lib_save_LIBS=$LIBS
10669 LIBS="-ldl $LIBS"
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672
10673 /* Override any GCC internal prototype to avoid an error.
10674 Use char because int might match the return type of a GCC
10675 builtin and then its argument prototype would still apply. */
10676 #ifdef __cplusplus
10677 extern "C"
10678 #endif
10679 char dlopen ();
10680 int
10681 main ()
10682 {
10683 return dlopen ();
10684 ;
10685 return 0;
10686 }
10687 _ACEOF
10688 if ac_fn_c_try_link "$LINENO"; then :
10689 ac_cv_lib_dl_dlopen=yes
10690 else
10691 ac_cv_lib_dl_dlopen=no
10692 fi
10693 rm -f core conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_check_lib_save_LIBS
10696 fi
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10698 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10699 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10701 else
10702
10703 lt_cv_dlopen="dyld"
10704 lt_cv_dlopen_libs=
10705 lt_cv_dlopen_self=yes
10706
10707 fi
10708
10709 ;;
10710
10711 *)
10712 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10713 if test "x$ac_cv_func_shl_load" = xyes; then :
10714 lt_cv_dlopen="shl_load"
10715 else
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10717 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10718 if ${ac_cv_lib_dld_shl_load+:} false; then :
10719 $as_echo_n "(cached) " >&6
10720 else
10721 ac_check_lib_save_LIBS=$LIBS
10722 LIBS="-ldld $LIBS"
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10725
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10729 #ifdef __cplusplus
10730 extern "C"
10731 #endif
10732 char shl_load ();
10733 int
10734 main ()
10735 {
10736 return shl_load ();
10737 ;
10738 return 0;
10739 }
10740 _ACEOF
10741 if ac_fn_c_try_link "$LINENO"; then :
10742 ac_cv_lib_dld_shl_load=yes
10743 else
10744 ac_cv_lib_dld_shl_load=no
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS
10749 fi
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10751 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10752 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10753 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10754 else
10755 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10756 if test "x$ac_cv_func_dlopen" = xyes; then :
10757 lt_cv_dlopen="dlopen"
10758 else
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10760 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10761 if ${ac_cv_lib_dl_dlopen+:} false; then :
10762 $as_echo_n "(cached) " >&6
10763 else
10764 ac_check_lib_save_LIBS=$LIBS
10765 LIBS="-ldl $LIBS"
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10768
10769 /* Override any GCC internal prototype to avoid an error.
10770 Use char because int might match the return type of a GCC
10771 builtin and then its argument prototype would still apply. */
10772 #ifdef __cplusplus
10773 extern "C"
10774 #endif
10775 char dlopen ();
10776 int
10777 main ()
10778 {
10779 return dlopen ();
10780 ;
10781 return 0;
10782 }
10783 _ACEOF
10784 if ac_fn_c_try_link "$LINENO"; then :
10785 ac_cv_lib_dl_dlopen=yes
10786 else
10787 ac_cv_lib_dl_dlopen=no
10788 fi
10789 rm -f core conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 LIBS=$ac_check_lib_save_LIBS
10792 fi
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10794 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10795 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10796 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10797 else
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10799 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10800 if ${ac_cv_lib_svld_dlopen+:} false; then :
10801 $as_echo_n "(cached) " >&6
10802 else
10803 ac_check_lib_save_LIBS=$LIBS
10804 LIBS="-lsvld $LIBS"
10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10807
10808 /* Override any GCC internal prototype to avoid an error.
10809 Use char because int might match the return type of a GCC
10810 builtin and then its argument prototype would still apply. */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 char dlopen ();
10815 int
10816 main ()
10817 {
10818 return dlopen ();
10819 ;
10820 return 0;
10821 }
10822 _ACEOF
10823 if ac_fn_c_try_link "$LINENO"; then :
10824 ac_cv_lib_svld_dlopen=yes
10825 else
10826 ac_cv_lib_svld_dlopen=no
10827 fi
10828 rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830 LIBS=$ac_check_lib_save_LIBS
10831 fi
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10833 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10834 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10835 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10836 else
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10838 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10839 if ${ac_cv_lib_dld_dld_link+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 ac_check_lib_save_LIBS=$LIBS
10843 LIBS="-ldld $LIBS"
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10846
10847 /* Override any GCC internal prototype to avoid an error.
10848 Use char because int might match the return type of a GCC
10849 builtin and then its argument prototype would still apply. */
10850 #ifdef __cplusplus
10851 extern "C"
10852 #endif
10853 char dld_link ();
10854 int
10855 main ()
10856 {
10857 return dld_link ();
10858 ;
10859 return 0;
10860 }
10861 _ACEOF
10862 if ac_fn_c_try_link "$LINENO"; then :
10863 ac_cv_lib_dld_dld_link=yes
10864 else
10865 ac_cv_lib_dld_dld_link=no
10866 fi
10867 rm -f core conftest.err conftest.$ac_objext \
10868 conftest$ac_exeext conftest.$ac_ext
10869 LIBS=$ac_check_lib_save_LIBS
10870 fi
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10872 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10873 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10874 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10875 fi
10876
10877
10878 fi
10879
10880
10881 fi
10882
10883
10884 fi
10885
10886
10887 fi
10888
10889
10890 fi
10891
10892 ;;
10893 esac
10894
10895 if test "x$lt_cv_dlopen" != xno; then
10896 enable_dlopen=yes
10897 else
10898 enable_dlopen=no
10899 fi
10900
10901 case $lt_cv_dlopen in
10902 dlopen)
10903 save_CPPFLAGS="$CPPFLAGS"
10904 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10905
10906 save_LDFLAGS="$LDFLAGS"
10907 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10908
10909 save_LIBS="$LIBS"
10910 LIBS="$lt_cv_dlopen_libs $LIBS"
10911
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10913 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10914 if ${lt_cv_dlopen_self+:} false; then :
10915 $as_echo_n "(cached) " >&6
10916 else
10917 if test "$cross_compiling" = yes; then :
10918 lt_cv_dlopen_self=cross
10919 else
10920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10921 lt_status=$lt_dlunknown
10922 cat > conftest.$ac_ext <<_LT_EOF
10923 #line $LINENO "configure"
10924 #include "confdefs.h"
10925
10926 #if HAVE_DLFCN_H
10927 #include <dlfcn.h>
10928 #endif
10929
10930 #include <stdio.h>
10931
10932 #ifdef RTLD_GLOBAL
10933 # define LT_DLGLOBAL RTLD_GLOBAL
10934 #else
10935 # ifdef DL_GLOBAL
10936 # define LT_DLGLOBAL DL_GLOBAL
10937 # else
10938 # define LT_DLGLOBAL 0
10939 # endif
10940 #endif
10941
10942 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10943 find out it does not work in some platform. */
10944 #ifndef LT_DLLAZY_OR_NOW
10945 # ifdef RTLD_LAZY
10946 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10947 # else
10948 # ifdef DL_LAZY
10949 # define LT_DLLAZY_OR_NOW DL_LAZY
10950 # else
10951 # ifdef RTLD_NOW
10952 # define LT_DLLAZY_OR_NOW RTLD_NOW
10953 # else
10954 # ifdef DL_NOW
10955 # define LT_DLLAZY_OR_NOW DL_NOW
10956 # else
10957 # define LT_DLLAZY_OR_NOW 0
10958 # endif
10959 # endif
10960 # endif
10961 # endif
10962 #endif
10963
10964 /* When -fvisbility=hidden is used, assume the code has been annotated
10965 correspondingly for the symbols needed. */
10966 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10967 int fnord () __attribute__((visibility("default")));
10968 #endif
10969
10970 int fnord () { return 42; }
10971 int main ()
10972 {
10973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10974 int status = $lt_dlunknown;
10975
10976 if (self)
10977 {
10978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10979 else
10980 {
10981 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10982 else puts (dlerror ());
10983 }
10984 /* dlclose (self); */
10985 }
10986 else
10987 puts (dlerror ());
10988
10989 return status;
10990 }
10991 _LT_EOF
10992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10993 (eval $ac_link) 2>&5
10994 ac_status=$?
10995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10996 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10997 (./conftest; exit; ) >&5 2>/dev/null
10998 lt_status=$?
10999 case x$lt_status in
11000 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11001 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11002 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11003 esac
11004 else :
11005 # compilation failed
11006 lt_cv_dlopen_self=no
11007 fi
11008 fi
11009 rm -fr conftest*
11010
11011
11012 fi
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11014 $as_echo "$lt_cv_dlopen_self" >&6; }
11015
11016 if test "x$lt_cv_dlopen_self" = xyes; then
11017 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11019 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11020 if ${lt_cv_dlopen_self_static+:} false; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 if test "$cross_compiling" = yes; then :
11024 lt_cv_dlopen_self_static=cross
11025 else
11026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11027 lt_status=$lt_dlunknown
11028 cat > conftest.$ac_ext <<_LT_EOF
11029 #line $LINENO "configure"
11030 #include "confdefs.h"
11031
11032 #if HAVE_DLFCN_H
11033 #include <dlfcn.h>
11034 #endif
11035
11036 #include <stdio.h>
11037
11038 #ifdef RTLD_GLOBAL
11039 # define LT_DLGLOBAL RTLD_GLOBAL
11040 #else
11041 # ifdef DL_GLOBAL
11042 # define LT_DLGLOBAL DL_GLOBAL
11043 # else
11044 # define LT_DLGLOBAL 0
11045 # endif
11046 #endif
11047
11048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11049 find out it does not work in some platform. */
11050 #ifndef LT_DLLAZY_OR_NOW
11051 # ifdef RTLD_LAZY
11052 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11053 # else
11054 # ifdef DL_LAZY
11055 # define LT_DLLAZY_OR_NOW DL_LAZY
11056 # else
11057 # ifdef RTLD_NOW
11058 # define LT_DLLAZY_OR_NOW RTLD_NOW
11059 # else
11060 # ifdef DL_NOW
11061 # define LT_DLLAZY_OR_NOW DL_NOW
11062 # else
11063 # define LT_DLLAZY_OR_NOW 0
11064 # endif
11065 # endif
11066 # endif
11067 # endif
11068 #endif
11069
11070 /* When -fvisbility=hidden is used, assume the code has been annotated
11071 correspondingly for the symbols needed. */
11072 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11073 int fnord () __attribute__((visibility("default")));
11074 #endif
11075
11076 int fnord () { return 42; }
11077 int main ()
11078 {
11079 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11080 int status = $lt_dlunknown;
11081
11082 if (self)
11083 {
11084 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11085 else
11086 {
11087 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11088 else puts (dlerror ());
11089 }
11090 /* dlclose (self); */
11091 }
11092 else
11093 puts (dlerror ());
11094
11095 return status;
11096 }
11097 _LT_EOF
11098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11099 (eval $ac_link) 2>&5
11100 ac_status=$?
11101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11102 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11103 (./conftest; exit; ) >&5 2>/dev/null
11104 lt_status=$?
11105 case x$lt_status in
11106 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11107 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11108 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11109 esac
11110 else :
11111 # compilation failed
11112 lt_cv_dlopen_self_static=no
11113 fi
11114 fi
11115 rm -fr conftest*
11116
11117
11118 fi
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11120 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11121 fi
11122
11123 CPPFLAGS="$save_CPPFLAGS"
11124 LDFLAGS="$save_LDFLAGS"
11125 LIBS="$save_LIBS"
11126 ;;
11127 esac
11128
11129 case $lt_cv_dlopen_self in
11130 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11131 *) enable_dlopen_self=unknown ;;
11132 esac
11133
11134 case $lt_cv_dlopen_self_static in
11135 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11136 *) enable_dlopen_self_static=unknown ;;
11137 esac
11138 fi
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156 striplib=
11157 old_striplib=
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11159 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11160 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11161 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11162 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11164 $as_echo "yes" >&6; }
11165 else
11166 # FIXME - insert some real tests, host_os isn't really good enough
11167 case $host_os in
11168 darwin*)
11169 if test -n "$STRIP" ; then
11170 striplib="$STRIP -x"
11171 old_striplib="$STRIP -S"
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11173 $as_echo "yes" >&6; }
11174 else
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176 $as_echo "no" >&6; }
11177 fi
11178 ;;
11179 *)
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11182 ;;
11183 esac
11184 fi
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197 # Report which library types will actually be built
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11199 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11201 $as_echo "$can_build_shared" >&6; }
11202
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11204 $as_echo_n "checking whether to build shared libraries... " >&6; }
11205 test "$can_build_shared" = "no" && enable_shared=no
11206
11207 # On AIX, shared libraries and static libraries use the same namespace, and
11208 # are all built from PIC.
11209 case $host_os in
11210 aix3*)
11211 test "$enable_shared" = yes && enable_static=no
11212 if test -n "$RANLIB"; then
11213 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11214 postinstall_cmds='$RANLIB $lib'
11215 fi
11216 ;;
11217
11218 aix[4-9]*)
11219 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11220 test "$enable_shared" = yes && enable_static=no
11221 fi
11222 ;;
11223 esac
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11225 $as_echo "$enable_shared" >&6; }
11226
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11228 $as_echo_n "checking whether to build static libraries... " >&6; }
11229 # Make sure either enable_shared or enable_static is yes.
11230 test "$enable_shared" = yes || enable_static=yes
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11232 $as_echo "$enable_static" >&6; }
11233
11234
11235
11236
11237 fi
11238 ac_ext=c
11239 ac_cpp='$CPP $CPPFLAGS'
11240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11243
11244 CC="$lt_save_CC"
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258 ac_config_commands="$ac_config_commands libtool"
11259
11260
11261
11262
11263 # Only expand once:
11264
11265
11266
11267 if test "x$CC" != xcc; then
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11269 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11272 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11273 fi
11274 set dummy $CC; ac_cc=`$as_echo "$2" |
11275 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11276 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281
11282 int
11283 main ()
11284 {
11285
11286 ;
11287 return 0;
11288 }
11289 _ACEOF
11290 # Make sure it works both with $CC and with simple cc.
11291 # We do the test twice because some compilers refuse to overwrite an
11292 # existing .o file with -o, though they will create one.
11293 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11294 rm -f conftest2.*
11295 if { { case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11298 esac
11299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11300 $as_echo "$ac_try_echo"; } >&5
11301 (eval "$ac_try") 2>&5
11302 ac_status=$?
11303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11304 test $ac_status = 0; } &&
11305 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11308 esac
11309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11310 $as_echo "$ac_try_echo"; } >&5
11311 (eval "$ac_try") 2>&5
11312 ac_status=$?
11313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11314 test $ac_status = 0; };
11315 then
11316 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11317 if test "x$CC" != xcc; then
11318 # Test first that cc exists at all.
11319 if { ac_try='cc -c conftest.$ac_ext >&5'
11320 { { case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11323 esac
11324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11325 $as_echo "$ac_try_echo"; } >&5
11326 (eval "$ac_try") 2>&5
11327 ac_status=$?
11328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11329 test $ac_status = 0; }; }; then
11330 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11331 rm -f conftest2.*
11332 if { { case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335 esac
11336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11337 $as_echo "$ac_try_echo"; } >&5
11338 (eval "$ac_try") 2>&5
11339 ac_status=$?
11340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11341 test $ac_status = 0; } &&
11342 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11345 esac
11346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11347 $as_echo "$ac_try_echo"; } >&5
11348 (eval "$ac_try") 2>&5
11349 ac_status=$?
11350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11351 test $ac_status = 0; };
11352 then
11353 # cc works too.
11354 :
11355 else
11356 # cc exists but doesn't like -o.
11357 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11358 fi
11359 fi
11360 fi
11361 else
11362 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11363 fi
11364 rm -f core conftest*
11365
11366 fi
11367 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11369 $as_echo "yes" >&6; }
11370 else
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11373
11374 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11375
11376 fi
11377
11378 # FIXME: we rely on the cache variable name because
11379 # there is no other way.
11380 set dummy $CC
11381 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11382 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11383 if test "$am_t" != yes; then
11384 # Losing compiler, so override with the script.
11385 # FIXME: It is wrong to rewrite CC.
11386 # But if we don't then we get into trouble of one sort or another.
11387 # A longer-term fix would be to have automake use am__CC in this case,
11388 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11389 CC="$am_aux_dir/compile $CC"
11390 fi
11391
11392
11393
11394 # Work around stupid autoconf default cflags. pt 2
11395 if test "$SAVE_CFLAGS" = "x"; then
11396 CFLAGS=""
11397 fi
11398
11399 # Extract the first word of "rpcgen", so it can be a program name with args.
11400 set dummy rpcgen; ac_word=$2
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11402 $as_echo_n "checking for $ac_word... " >&6; }
11403 if ${ac_cv_prog_HAVE_RPCGEN+:} false; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 if test -n "$HAVE_RPCGEN"; then
11407 ac_cv_prog_HAVE_RPCGEN="$HAVE_RPCGEN" # Let the user override the test.
11408 else
11409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in $PATH
11411 do
11412 IFS=$as_save_IFS
11413 test -z "$as_dir" && as_dir=.
11414 for ac_exec_ext in '' $ac_executable_extensions; do
11415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11416 ac_cv_prog_HAVE_RPCGEN="yes"
11417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418 break 2
11419 fi
11420 done
11421 done
11422 IFS=$as_save_IFS
11423
11424 test -z "$ac_cv_prog_HAVE_RPCGEN" && ac_cv_prog_HAVE_RPCGEN="no"
11425 fi
11426 fi
11427 HAVE_RPCGEN=$ac_cv_prog_HAVE_RPCGEN
11428 if test -n "$HAVE_RPCGEN"; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPCGEN" >&5
11430 $as_echo "$HAVE_RPCGEN" >&6; }
11431 else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11434 fi
11435
11436
11437 if test x$HAVE_RPCGEN != xyes; then
11438 as_fn_error $? "Can not find required program" "$LINENO" 5
11439 fi
11440
11441 #option: examples
11442 # Check whether --enable-examples was given.
11443 if test "${enable_examples+set}" = set; then :
11444 enableval=$enable_examples; ENABLE_EXAMPLES=$enableval
11445 else
11446 ENABLE_EXAMPLES="no"
11447 fi
11448
11449
11450 if test x$ENABLE_EXAMPLES = xyes; then
11451 MAYBE_EXAMPLES="examples"
11452 fi
11453
11454
11455 # Check whether --enable-tirpc was given.
11456 if test "${enable_tirpc+set}" = set; then :
11457 enableval=$enable_tirpc; enable_tirpc=$enableval
11458 else
11459 enable_tirpc='no'
11460 fi
11461
11462
11463 case $host in
11464 *darwin*)
11465 RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
11466 ;;
11467 *cygwin*)
11468 RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
11469 ;;
11470 *solaris*)
11471 for ac_header in sys/filio.h
11472 do :
11473 ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
11474 if test "x$ac_cv_header_sys_filio_h" = xyes; then :
11475 cat >>confdefs.h <<_ACEOF
11476 #define HAVE_SYS_FILIO_H 1
11477 _ACEOF
11478
11479 fi
11480
11481 done
11482
11483 if test x$ENABLE_EXAMPLES = xyes; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
11485 $as_echo_n "checking for main in -lsocket... " >&6; }
11486 if ${ac_cv_lib_socket_main+:} false; then :
11487 $as_echo_n "(cached) " >&6
11488 else
11489 ac_check_lib_save_LIBS=$LIBS
11490 LIBS="-lsocket $LIBS"
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11493
11494
11495 int
11496 main ()
11497 {
11498 return main ();
11499 ;
11500 return 0;
11501 }
11502 _ACEOF
11503 if ac_fn_c_try_link "$LINENO"; then :
11504 ac_cv_lib_socket_main=yes
11505 else
11506 ac_cv_lib_socket_main=no
11507 fi
11508 rm -f core conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11511 fi
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
11513 $as_echo "$ac_cv_lib_socket_main" >&6; }
11514 if test "x$ac_cv_lib_socket_main" = xyes; then :
11515 cat >>confdefs.h <<_ACEOF
11516 #define HAVE_LIBSOCKET 1
11517 _ACEOF
11518
11519 LIBS="-lsocket $LIBS"
11520
11521 else
11522 as_fn_error $? "Can not find required library" "$LINENO" 5
11523 fi
11524
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
11526 $as_echo_n "checking for main in -lnsl... " >&6; }
11527 if ${ac_cv_lib_nsl_main+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 ac_check_lib_save_LIBS=$LIBS
11531 LIBS="-lnsl $LIBS"
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11534
11535
11536 int
11537 main ()
11538 {
11539 return main ();
11540 ;
11541 return 0;
11542 }
11543 _ACEOF
11544 if ac_fn_c_try_link "$LINENO"; then :
11545 ac_cv_lib_nsl_main=yes
11546 else
11547 ac_cv_lib_nsl_main=no
11548 fi
11549 rm -f core conftest.err conftest.$ac_objext \
11550 conftest$ac_exeext conftest.$ac_ext
11551 LIBS=$ac_check_lib_save_LIBS
11552 fi
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
11554 $as_echo "$ac_cv_lib_nsl_main" >&6; }
11555 if test "x$ac_cv_lib_nsl_main" = xyes; then :
11556 cat >>confdefs.h <<_ACEOF
11557 #define HAVE_LIBNSL 1
11558 _ACEOF
11559
11560 LIBS="-lnsl $LIBS"
11561
11562 else
11563 as_fn_error $? "Can not find required library" "$LINENO" 5
11564 fi
11565
11566 fi
11567 ;;
11568 *)
11569 ;;
11570 esac
11571
11572
11573
11574 # check for SA_LEN
11575 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
11576 #include <sys/types.h>
11577 #include <sys/socket.h>
11578
11579 "
11580 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11581
11582 $as_echo "#define HAVE_SOCKADDR_LEN 1" >>confdefs.h
11583
11584 fi
11585
11586
11587 echo "Use TI-RPC: $enable_tirpc"
11588 if test "$enable_tirpc" = "yes"; then
11589 CFLAGS="${CFLAGS} -I /usr/include/tirpc"
11590 LDFLAGS="${LDFLAGS} -ltirpc"
11591 fi
11592
11593 #output
11594 ac_config_files="$ac_config_files Makefile include/Makefile lib/Makefile mount/Makefile nfs/Makefile portmap/Makefile rquota/Makefile examples/Makefile"
11595
11596
11597 cat >confcache <<\_ACEOF
11598 # This file is a shell script that caches the results of configure
11599 # tests run on this system so they can be shared between configure
11600 # scripts and configure runs, see configure's option --config-cache.
11601 # It is not useful on other systems. If it contains results you don't
11602 # want to keep, you may remove or edit it.
11603 #
11604 # config.status only pays attention to the cache file if you give it
11605 # the --recheck option to rerun configure.
11606 #
11607 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11608 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11609 # following values.
11610
11611 _ACEOF
11612
11613 # The following way of writing the cache mishandles newlines in values,
11614 # but we know of no workaround that is simple, portable, and efficient.
11615 # So, we kill variables containing newlines.
11616 # Ultrix sh set writes to stderr and can't be redirected directly,
11617 # and sets the high bit in the cache file unless we assign to the vars.
11618 (
11619 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11620 eval ac_val=\$$ac_var
11621 case $ac_val in #(
11622 *${as_nl}*)
11623 case $ac_var in #(
11624 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11625 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11626 esac
11627 case $ac_var in #(
11628 _ | IFS | as_nl) ;; #(
11629 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11630 *) { eval $ac_var=; unset $ac_var;} ;;
11631 esac ;;
11632 esac
11633 done
11634
11635 (set) 2>&1 |
11636 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11637 *${as_nl}ac_space=\ *)
11638 # `set' does not quote correctly, so add quotes: double-quote
11639 # substitution turns \\\\ into \\, and sed turns \\ into \.
11640 sed -n \
11641 "s/'/'\\\\''/g;
11642 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11643 ;; #(
11644 *)
11645 # `set' quotes correctly as required by POSIX, so do not add quotes.
11646 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11647 ;;
11648 esac |
11649 sort
11650 ) |
11651 sed '
11652 /^ac_cv_env_/b end
11653 t clear
11654 :clear
11655 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11656 t end
11657 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11658 :end' >>confcache
11659 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11660 if test -w "$cache_file"; then
11661 if test "x$cache_file" != "x/dev/null"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11663 $as_echo "$as_me: updating cache $cache_file" >&6;}
11664 if test ! -f "$cache_file" || test -h "$cache_file"; then
11665 cat confcache >"$cache_file"
11666 else
11667 case $cache_file in #(
11668 */* | ?:*)
11669 mv -f confcache "$cache_file"$$ &&
11670 mv -f "$cache_file"$$ "$cache_file" ;; #(
11671 *)
11672 mv -f confcache "$cache_file" ;;
11673 esac
11674 fi
11675 fi
11676 else
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11678 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11679 fi
11680 fi
11681 rm -f confcache
11682
11683 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11684 # Let make expand exec_prefix.
11685 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11686
11687 DEFS=-DHAVE_CONFIG_H
11688
11689 ac_libobjs=
11690 ac_ltlibobjs=
11691 U=
11692 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11693 # 1. Remove the extension, and $U if already installed.
11694 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11695 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11696 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11697 # will be set to the directory where LIBOBJS objects are built.
11698 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11699 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11700 done
11701 LIBOBJS=$ac_libobjs
11702
11703 LTLIBOBJS=$ac_ltlibobjs
11704
11705
11706 if test -n "$EXEEXT"; then
11707 am__EXEEXT_TRUE=
11708 am__EXEEXT_FALSE='#'
11709 else
11710 am__EXEEXT_TRUE='#'
11711 am__EXEEXT_FALSE=
11712 fi
11713
11714 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11715 as_fn_error $? "conditional \"AMDEP\" was never defined.
11716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11717 fi
11718 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11719 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11721 fi
11722
11723 : "${CONFIG_STATUS=./config.status}"
11724 ac_write_fail=0
11725 ac_clean_files_save=$ac_clean_files
11726 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11728 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11729 as_write_fail=0
11730 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11731 #! $SHELL
11732 # Generated by $as_me.
11733 # Run this file to recreate the current configuration.
11734 # Compiler output produced by configure, useful for debugging
11735 # configure, is in config.log if it exists.
11736
11737 debug=false
11738 ac_cs_recheck=false
11739 ac_cs_silent=false
11740
11741 SHELL=\${CONFIG_SHELL-$SHELL}
11742 export SHELL
11743 _ASEOF
11744 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11745 ## -------------------- ##
11746 ## M4sh Initialization. ##
11747 ## -------------------- ##
11748
11749 # Be more Bourne compatible
11750 DUALCASE=1; export DUALCASE # for MKS sh
11751 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11752 emulate sh
11753 NULLCMD=:
11754 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11755 # is contrary to our usage. Disable this feature.
11756 alias -g '${1+"$@"}'='"$@"'
11757 setopt NO_GLOB_SUBST
11758 else
11759 case `(set -o) 2>/dev/null` in #(
11760 *posix*) :
11761 set -o posix ;; #(
11762 *) :
11763 ;;
11764 esac
11765 fi
11766
11767
11768 as_nl='
11769 '
11770 export as_nl
11771 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11772 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11773 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11774 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11775 # Prefer a ksh shell builtin over an external printf program on Solaris,
11776 # but without wasting forks for bash or zsh.
11777 if test -z "$BASH_VERSION$ZSH_VERSION" \
11778 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11779 as_echo='print -r --'
11780 as_echo_n='print -rn --'
11781 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11782 as_echo='printf %s\n'
11783 as_echo_n='printf %s'
11784 else
11785 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11786 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11787 as_echo_n='/usr/ucb/echo -n'
11788 else
11789 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11790 as_echo_n_body='eval
11791 arg=$1;
11792 case $arg in #(
11793 *"$as_nl"*)
11794 expr "X$arg" : "X\\(.*\\)$as_nl";
11795 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11796 esac;
11797 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11798 '
11799 export as_echo_n_body
11800 as_echo_n='sh -c $as_echo_n_body as_echo'
11801 fi
11802 export as_echo_body
11803 as_echo='sh -c $as_echo_body as_echo'
11804 fi
11805
11806 # The user is always right.
11807 if test "${PATH_SEPARATOR+set}" != set; then
11808 PATH_SEPARATOR=:
11809 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11810 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11811 PATH_SEPARATOR=';'
11812 }
11813 fi
11814
11815
11816 # IFS
11817 # We need space, tab and new line, in precisely that order. Quoting is
11818 # there to prevent editors from complaining about space-tab.
11819 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11820 # splitting by setting IFS to empty value.)
11821 IFS=" "" $as_nl"
11822
11823 # Find who we are. Look in the path if we contain no directory separator.
11824 as_myself=
11825 case $0 in #((
11826 *[\\/]* ) as_myself=$0 ;;
11827 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11829 do
11830 IFS=$as_save_IFS
11831 test -z "$as_dir" && as_dir=.
11832 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11833 done
11834 IFS=$as_save_IFS
11835
11836 ;;
11837 esac
11838 # We did not find ourselves, most probably we were run as `sh COMMAND'
11839 # in which case we are not to be found in the path.
11840 if test "x$as_myself" = x; then
11841 as_myself=$0
11842 fi
11843 if test ! -f "$as_myself"; then
11844 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11845 exit 1
11846 fi
11847
11848 # Unset variables that we do not need and which cause bugs (e.g. in
11849 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11850 # suppresses any "Segmentation fault" message there. '((' could
11851 # trigger a bug in pdksh 5.2.14.
11852 for as_var in BASH_ENV ENV MAIL MAILPATH
11853 do eval test x\${$as_var+set} = xset \
11854 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11855 done
11856 PS1='$ '
11857 PS2='> '
11858 PS4='+ '
11859
11860 # NLS nuisances.
11861 LC_ALL=C
11862 export LC_ALL
11863 LANGUAGE=C
11864 export LANGUAGE
11865
11866 # CDPATH.
11867 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11868
11869
11870 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11871 # ----------------------------------------
11872 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11873 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11874 # script with STATUS, using 1 if that was 0.
11875 as_fn_error ()
11876 {
11877 as_status=$1; test $as_status -eq 0 && as_status=1
11878 if test "$4"; then
11879 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11880 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11881 fi
11882 $as_echo "$as_me: error: $2" >&2
11883 as_fn_exit $as_status
11884 } # as_fn_error
11885
11886
11887 # as_fn_set_status STATUS
11888 # -----------------------
11889 # Set $? to STATUS, without forking.
11890 as_fn_set_status ()
11891 {
11892 return $1
11893 } # as_fn_set_status
11894
11895 # as_fn_exit STATUS
11896 # -----------------
11897 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11898 as_fn_exit ()
11899 {
11900 set +e
11901 as_fn_set_status $1
11902 exit $1
11903 } # as_fn_exit
11904
11905 # as_fn_unset VAR
11906 # ---------------
11907 # Portably unset VAR.
11908 as_fn_unset ()
11909 {
11910 { eval $1=; unset $1;}
11911 }
11912 as_unset=as_fn_unset
11913 # as_fn_append VAR VALUE
11914 # ----------------------
11915 # Append the text in VALUE to the end of the definition contained in VAR. Take
11916 # advantage of any shell optimizations that allow amortized linear growth over
11917 # repeated appends, instead of the typical quadratic growth present in naive
11918 # implementations.
11919 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11920 eval 'as_fn_append ()
11921 {
11922 eval $1+=\$2
11923 }'
11924 else
11925 as_fn_append ()
11926 {
11927 eval $1=\$$1\$2
11928 }
11929 fi # as_fn_append
11930
11931 # as_fn_arith ARG...
11932 # ------------------
11933 # Perform arithmetic evaluation on the ARGs, and store the result in the
11934 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11935 # must be portable across $(()) and expr.
11936 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11937 eval 'as_fn_arith ()
11938 {
11939 as_val=$(( $* ))
11940 }'
11941 else
11942 as_fn_arith ()
11943 {
11944 as_val=`expr "$@" || test $? -eq 1`
11945 }
11946 fi # as_fn_arith
11947
11948
11949 if expr a : '\(a\)' >/dev/null 2>&1 &&
11950 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11951 as_expr=expr
11952 else
11953 as_expr=false
11954 fi
11955
11956 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11957 as_basename=basename
11958 else
11959 as_basename=false
11960 fi
11961
11962 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11963 as_dirname=dirname
11964 else
11965 as_dirname=false
11966 fi
11967
11968 as_me=`$as_basename -- "$0" ||
11969 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11970 X"$0" : 'X\(//\)$' \| \
11971 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11972 $as_echo X/"$0" |
11973 sed '/^.*\/\([^/][^/]*\)\/*$/{
11974 s//\1/
11975 q
11976 }
11977 /^X\/\(\/\/\)$/{
11978 s//\1/
11979 q
11980 }
11981 /^X\/\(\/\).*/{
11982 s//\1/
11983 q
11984 }
11985 s/.*/./; q'`
11986
11987 # Avoid depending upon Character Ranges.
11988 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11989 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11990 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11991 as_cr_digits='0123456789'
11992 as_cr_alnum=$as_cr_Letters$as_cr_digits
11993
11994 ECHO_C= ECHO_N= ECHO_T=
11995 case `echo -n x` in #(((((
11996 -n*)
11997 case `echo 'xy\c'` in
11998 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11999 xy) ECHO_C='\c';;
12000 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12001 ECHO_T=' ';;
12002 esac;;
12003 *)
12004 ECHO_N='-n';;
12005 esac
12006
12007 rm -f conf$$ conf$$.exe conf$$.file
12008 if test -d conf$$.dir; then
12009 rm -f conf$$.dir/conf$$.file
12010 else
12011 rm -f conf$$.dir
12012 mkdir conf$$.dir 2>/dev/null
12013 fi
12014 if (echo >conf$$.file) 2>/dev/null; then
12015 if ln -s conf$$.file conf$$ 2>/dev/null; then
12016 as_ln_s='ln -s'
12017 # ... but there are two gotchas:
12018 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12019 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12020 # In both cases, we have to default to `cp -p'.
12021 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12022 as_ln_s='cp -p'
12023 elif ln conf$$.file conf$$ 2>/dev/null; then
12024 as_ln_s=ln
12025 else
12026 as_ln_s='cp -p'
12027 fi
12028 else
12029 as_ln_s='cp -p'
12030 fi
12031 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12032 rmdir conf$$.dir 2>/dev/null
12033
12034
12035 # as_fn_mkdir_p
12036 # -------------
12037 # Create "$as_dir" as a directory, including parents if necessary.
12038 as_fn_mkdir_p ()
12039 {
12040
12041 case $as_dir in #(
12042 -*) as_dir=./$as_dir;;
12043 esac
12044 test -d "$as_dir" || eval $as_mkdir_p || {
12045 as_dirs=
12046 while :; do
12047 case $as_dir in #(
12048 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12049 *) as_qdir=$as_dir;;
12050 esac
12051 as_dirs="'$as_qdir' $as_dirs"
12052 as_dir=`$as_dirname -- "$as_dir" ||
12053 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12054 X"$as_dir" : 'X\(//\)[^/]' \| \
12055 X"$as_dir" : 'X\(//\)$' \| \
12056 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12057 $as_echo X"$as_dir" |
12058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12059 s//\1/
12060 q
12061 }
12062 /^X\(\/\/\)[^/].*/{
12063 s//\1/
12064 q
12065 }
12066 /^X\(\/\/\)$/{
12067 s//\1/
12068 q
12069 }
12070 /^X\(\/\).*/{
12071 s//\1/
12072 q
12073 }
12074 s/.*/./; q'`
12075 test -d "$as_dir" && break
12076 done
12077 test -z "$as_dirs" || eval "mkdir $as_dirs"
12078 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12079
12080
12081 } # as_fn_mkdir_p
12082 if mkdir -p . 2>/dev/null; then
12083 as_mkdir_p='mkdir -p "$as_dir"'
12084 else
12085 test -d ./-p && rmdir ./-p
12086 as_mkdir_p=false
12087 fi
12088
12089 if test -x / >/dev/null 2>&1; then
12090 as_test_x='test -x'
12091 else
12092 if ls -dL / >/dev/null 2>&1; then
12093 as_ls_L_option=L
12094 else
12095 as_ls_L_option=
12096 fi
12097 as_test_x='
12098 eval sh -c '\''
12099 if test -d "$1"; then
12100 test -d "$1/.";
12101 else
12102 case $1 in #(
12103 -*)set "./$1";;
12104 esac;
12105 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12106 ???[sx]*):;;*)false;;esac;fi
12107 '\'' sh
12108 '
12109 fi
12110 as_executable_p=$as_test_x
12111
12112 # Sed expression to map a string onto a valid CPP name.
12113 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12114
12115 # Sed expression to map a string onto a valid variable name.
12116 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12117
12118
12119 exec 6>&1
12120 ## ----------------------------------- ##
12121 ## Main body of $CONFIG_STATUS script. ##
12122 ## ----------------------------------- ##
12123 _ASEOF
12124 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12125
12126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12127 # Save the log message, to keep $0 and so on meaningful, and to
12128 # report actual input values of CONFIG_FILES etc. instead of their
12129 # values after options handling.
12130 ac_log="
12131 This file was extended by libnfs $as_me 0.0.0, which was
12132 generated by GNU Autoconf 2.68. Invocation command line was
12133
12134 CONFIG_FILES = $CONFIG_FILES
12135 CONFIG_HEADERS = $CONFIG_HEADERS
12136 CONFIG_LINKS = $CONFIG_LINKS
12137 CONFIG_COMMANDS = $CONFIG_COMMANDS
12138 $ $0 $@
12139
12140 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12141 "
12142
12143 _ACEOF
12144
12145 case $ac_config_files in *"
12146 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12147 esac
12148
12149 case $ac_config_headers in *"
12150 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12151 esac
12152
12153
12154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12155 # Files that config.status was made for.
12156 config_files="$ac_config_files"
12157 config_headers="$ac_config_headers"
12158 config_commands="$ac_config_commands"
12159
12160 _ACEOF
12161
12162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12163 ac_cs_usage="\
12164 \`$as_me' instantiates files and other configuration actions
12165 from templates according to the current configuration. Unless the files
12166 and actions are specified as TAGs, all are instantiated by default.
12167
12168 Usage: $0 [OPTION]... [TAG]...
12169
12170 -h, --help print this help, then exit
12171 -V, --version print version number and configuration settings, then exit
12172 --config print configuration, then exit
12173 -q, --quiet, --silent
12174 do not print progress messages
12175 -d, --debug don't remove temporary files
12176 --recheck update $as_me by reconfiguring in the same conditions
12177 --file=FILE[:TEMPLATE]
12178 instantiate the configuration file FILE
12179 --header=FILE[:TEMPLATE]
12180 instantiate the configuration header FILE
12181
12182 Configuration files:
12183 $config_files
12184
12185 Configuration headers:
12186 $config_headers
12187
12188 Configuration commands:
12189 $config_commands
12190
12191 Report bugs to the package provider."
12192
12193 _ACEOF
12194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12195 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12196 ac_cs_version="\\
12197 libnfs config.status 0.0.0
12198 configured by $0, generated by GNU Autoconf 2.68,
12199 with options \\"\$ac_cs_config\\"
12200
12201 Copyright (C) 2010 Free Software Foundation, Inc.
12202 This config.status script is free software; the Free Software Foundation
12203 gives unlimited permission to copy, distribute and modify it."
12204
12205 ac_pwd='$ac_pwd'
12206 srcdir='$srcdir'
12207 INSTALL='$INSTALL'
12208 MKDIR_P='$MKDIR_P'
12209 AWK='$AWK'
12210 test -n "\$AWK" || AWK=awk
12211 _ACEOF
12212
12213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12214 # The default lists apply if the user does not specify any file.
12215 ac_need_defaults=:
12216 while test $# != 0
12217 do
12218 case $1 in
12219 --*=?*)
12220 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12221 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12222 ac_shift=:
12223 ;;
12224 --*=)
12225 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12226 ac_optarg=
12227 ac_shift=:
12228 ;;
12229 *)
12230 ac_option=$1
12231 ac_optarg=$2
12232 ac_shift=shift
12233 ;;
12234 esac
12235
12236 case $ac_option in
12237 # Handling of the options.
12238 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12239 ac_cs_recheck=: ;;
12240 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12241 $as_echo "$ac_cs_version"; exit ;;
12242 --config | --confi | --conf | --con | --co | --c )
12243 $as_echo "$ac_cs_config"; exit ;;
12244 --debug | --debu | --deb | --de | --d | -d )
12245 debug=: ;;
12246 --file | --fil | --fi | --f )
12247 $ac_shift
12248 case $ac_optarg in
12249 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12250 '') as_fn_error $? "missing file argument" ;;
12251 esac
12252 as_fn_append CONFIG_FILES " '$ac_optarg'"
12253 ac_need_defaults=false;;
12254 --header | --heade | --head | --hea )
12255 $ac_shift
12256 case $ac_optarg in
12257 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12258 esac
12259 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12260 ac_need_defaults=false;;
12261 --he | --h)
12262 # Conflict between --help and --header
12263 as_fn_error $? "ambiguous option: \`$1'
12264 Try \`$0 --help' for more information.";;
12265 --help | --hel | -h )
12266 $as_echo "$ac_cs_usage"; exit ;;
12267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12268 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12269 ac_cs_silent=: ;;
12270
12271 # This is an error.
12272 -*) as_fn_error $? "unrecognized option: \`$1'
12273 Try \`$0 --help' for more information." ;;
12274
12275 *) as_fn_append ac_config_targets " $1"
12276 ac_need_defaults=false ;;
12277
12278 esac
12279 shift
12280 done
12281
12282 ac_configure_extra_args=
12283
12284 if $ac_cs_silent; then
12285 exec 6>/dev/null
12286 ac_configure_extra_args="$ac_configure_extra_args --silent"
12287 fi
12288
12289 _ACEOF
12290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12291 if \$ac_cs_recheck; then
12292 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12293 shift
12294 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12295 CONFIG_SHELL='$SHELL'
12296 export CONFIG_SHELL
12297 exec "\$@"
12298 fi
12299
12300 _ACEOF
12301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12302 exec 5>>config.log
12303 {
12304 echo
12305 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12306 ## Running $as_me. ##
12307 _ASBOX
12308 $as_echo "$ac_log"
12309 } >&5
12310
12311 _ACEOF
12312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12313 #
12314 # INIT-COMMANDS
12315 #
12316 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12317
12318
12319 # The HP-UX ksh and POSIX shell print the target directory to stdout
12320 # if CDPATH is set.
12321 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12322
12323 sed_quote_subst='$sed_quote_subst'
12324 double_quote_subst='$double_quote_subst'
12325 delay_variable_subst='$delay_variable_subst'
12326 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12327 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12328 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12329 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12330 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12331 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12332 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12333 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12334 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12335 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12336 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12337 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12338 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12339 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12340 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12341 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12342 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12343 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12344 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12345 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12346 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12347 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12348 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12349 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12350 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12351 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12352 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12353 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12354 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12355 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12356 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12357 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12358 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12359 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12360 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12361 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12362 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12363 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12364 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12365 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12366 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12367 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12368 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12369 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12370 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12371 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12372 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12373 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12374 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12375 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12376 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12377 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12378 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12379 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12380 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12381 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"`'
12382 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12383 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12384 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12385 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12386 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12387 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12388 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12389 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12390 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12391 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12392 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12393 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12394 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12395 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12396 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12397 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12398 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12399 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12400 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12401 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12402 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12403 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12404 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12405 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12406 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12407 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12408 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12409 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12410 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12411 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12412 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12413 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12414 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12415 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12416 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12417 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12418 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12419 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12420 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12421 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12422 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12423 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12424 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12425 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12426 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12427 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12428 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12429 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12430 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12431 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12432 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12433 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12434 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12435 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12436 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12437 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12438 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12439 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12440 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12441 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12442 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12443 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12444 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12445 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12446 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12447 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12448 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12449 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12450 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12451 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12452 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12453 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12454 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12455 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12456
12457 LTCC='$LTCC'
12458 LTCFLAGS='$LTCFLAGS'
12459 compiler='$compiler_DEFAULT'
12460
12461 # A function that is used when there is no print builtin or printf.
12462 func_fallback_echo ()
12463 {
12464 eval 'cat <<_LTECHO_EOF
12465 \$1
12466 _LTECHO_EOF'
12467 }
12468
12469 # Quote evaled strings.
12470 for var in SHELL \
12471 ECHO \
12472 SED \
12473 GREP \
12474 EGREP \
12475 FGREP \
12476 LD \
12477 NM \
12478 LN_S \
12479 lt_SP2NL \
12480 lt_NL2SP \
12481 reload_flag \
12482 OBJDUMP \
12483 deplibs_check_method \
12484 file_magic_cmd \
12485 file_magic_glob \
12486 want_nocaseglob \
12487 DLLTOOL \
12488 sharedlib_from_linklib_cmd \
12489 AR \
12490 AR_FLAGS \
12491 archiver_list_spec \
12492 STRIP \
12493 RANLIB \
12494 CC \
12495 CFLAGS \
12496 compiler \
12497 lt_cv_sys_global_symbol_pipe \
12498 lt_cv_sys_global_symbol_to_cdecl \
12499 lt_cv_sys_global_symbol_to_c_name_address \
12500 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12501 nm_file_list_spec \
12502 lt_prog_compiler_no_builtin_flag \
12503 lt_prog_compiler_pic \
12504 lt_prog_compiler_wl \
12505 lt_prog_compiler_static \
12506 lt_cv_prog_compiler_c_o \
12507 need_locks \
12508 MANIFEST_TOOL \
12509 DSYMUTIL \
12510 NMEDIT \
12511 LIPO \
12512 OTOOL \
12513 OTOOL64 \
12514 shrext_cmds \
12515 export_dynamic_flag_spec \
12516 whole_archive_flag_spec \
12517 compiler_needs_object \
12518 with_gnu_ld \
12519 allow_undefined_flag \
12520 no_undefined_flag \
12521 hardcode_libdir_flag_spec \
12522 hardcode_libdir_flag_spec_ld \
12523 hardcode_libdir_separator \
12524 exclude_expsyms \
12525 include_expsyms \
12526 file_list_spec \
12527 variables_saved_for_relink \
12528 libname_spec \
12529 library_names_spec \
12530 soname_spec \
12531 install_override_mode \
12532 finish_eval \
12533 old_striplib \
12534 striplib; do
12535 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12536 *[\\\\\\\`\\"\\\$]*)
12537 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12538 ;;
12539 *)
12540 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12541 ;;
12542 esac
12543 done
12544
12545 # Double-quote double-evaled strings.
12546 for var in reload_cmds \
12547 old_postinstall_cmds \
12548 old_postuninstall_cmds \
12549 old_archive_cmds \
12550 extract_expsyms_cmds \
12551 old_archive_from_new_cmds \
12552 old_archive_from_expsyms_cmds \
12553 archive_cmds \
12554 archive_expsym_cmds \
12555 module_cmds \
12556 module_expsym_cmds \
12557 export_symbols_cmds \
12558 prelink_cmds \
12559 postlink_cmds \
12560 postinstall_cmds \
12561 postuninstall_cmds \
12562 finish_cmds \
12563 sys_lib_search_path_spec \
12564 sys_lib_dlsearch_path_spec; do
12565 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12566 *[\\\\\\\`\\"\\\$]*)
12567 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12568 ;;
12569 *)
12570 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12571 ;;
12572 esac
12573 done
12574
12575 ac_aux_dir='$ac_aux_dir'
12576 xsi_shell='$xsi_shell'
12577 lt_shell_append='$lt_shell_append'
12578
12579 # See if we are running on zsh, and set the options which allow our
12580 # commands through without removal of \ escapes INIT.
12581 if test -n "\${ZSH_VERSION+set}" ; then
12582 setopt NO_GLOB_SUBST
12583 fi
12584
12585
12586 PACKAGE='$PACKAGE'
12587 VERSION='$VERSION'
12588 TIMESTAMP='$TIMESTAMP'
12589 RM='$RM'
12590 ofile='$ofile'
12591
12592
12593
12594
12595 _ACEOF
12596
12597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12598
12599 # Handling of arguments.
12600 for ac_config_target in $ac_config_targets
12601 do
12602 case $ac_config_target in
12603 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12604 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12605 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12606 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12607 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12608 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12609 "mount/Makefile") CONFIG_FILES="$CONFIG_FILES mount/Makefile" ;;
12610 "nfs/Makefile") CONFIG_FILES="$CONFIG_FILES nfs/Makefile" ;;
12611 "portmap/Makefile") CONFIG_FILES="$CONFIG_FILES portmap/Makefile" ;;
12612 "rquota/Makefile") CONFIG_FILES="$CONFIG_FILES rquota/Makefile" ;;
12613 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
12614
12615 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12616 esac
12617 done
12618
12619
12620 # If the user did not use the arguments to specify the items to instantiate,
12621 # then the envvar interface is used. Set only those that are not.
12622 # We use the long form for the default assignment because of an extremely
12623 # bizarre bug on SunOS 4.1.3.
12624 if $ac_need_defaults; then
12625 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12626 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12627 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12628 fi
12629
12630 # Have a temporary directory for convenience. Make it in the build tree
12631 # simply because there is no reason against having it here, and in addition,
12632 # creating and moving files from /tmp can sometimes cause problems.
12633 # Hook for its removal unless debugging.
12634 # Note that there is a small window in which the directory will not be cleaned:
12635 # after its creation but before its name has been assigned to `$tmp'.
12636 $debug ||
12637 {
12638 tmp= ac_tmp=
12639 trap 'exit_status=$?
12640 : "${ac_tmp:=$tmp}"
12641 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12642 ' 0
12643 trap 'as_fn_exit 1' 1 2 13 15
12644 }
12645 # Create a (secure) tmp directory for tmp files.
12646
12647 {
12648 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12649 test -d "$tmp"
12650 } ||
12651 {
12652 tmp=./conf$$-$RANDOM
12653 (umask 077 && mkdir "$tmp")
12654 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12655 ac_tmp=$tmp
12656
12657 # Set up the scripts for CONFIG_FILES section.
12658 # No need to generate them if there are no CONFIG_FILES.
12659 # This happens for instance with `./config.status config.h'.
12660 if test -n "$CONFIG_FILES"; then
12661
12662
12663 ac_cr=`echo X | tr X '\015'`
12664 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12665 # But we know of no other shell where ac_cr would be empty at this
12666 # point, so we can use a bashism as a fallback.
12667 if test "x$ac_cr" = x; then
12668 eval ac_cr=\$\'\\r\'
12669 fi
12670 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12671 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12672 ac_cs_awk_cr='\\r'
12673 else
12674 ac_cs_awk_cr=$ac_cr
12675 fi
12676
12677 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12678 _ACEOF
12679
12680
12681 {
12682 echo "cat >conf$$subs.awk <<_ACEOF" &&
12683 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12684 echo "_ACEOF"
12685 } >conf$$subs.sh ||
12686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12687 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12688 ac_delim='%!_!# '
12689 for ac_last_try in false false false false false :; do
12690 . ./conf$$subs.sh ||
12691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12692
12693 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12694 if test $ac_delim_n = $ac_delim_num; then
12695 break
12696 elif $ac_last_try; then
12697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12698 else
12699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12700 fi
12701 done
12702 rm -f conf$$subs.sh
12703
12704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12705 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12706 _ACEOF
12707 sed -n '
12708 h
12709 s/^/S["/; s/!.*/"]=/
12710 p
12711 g
12712 s/^[^!]*!//
12713 :repl
12714 t repl
12715 s/'"$ac_delim"'$//
12716 t delim
12717 :nl
12718 h
12719 s/\(.\{148\}\)..*/\1/
12720 t more1
12721 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12722 p
12723 n
12724 b repl
12725 :more1
12726 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12727 p
12728 g
12729 s/.\{148\}//
12730 t nl
12731 :delim
12732 h
12733 s/\(.\{148\}\)..*/\1/
12734 t more2
12735 s/["\\]/\\&/g; s/^/"/; s/$/"/
12736 p
12737 b
12738 :more2
12739 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12740 p
12741 g
12742 s/.\{148\}//
12743 t delim
12744 ' <conf$$subs.awk | sed '
12745 /^[^""]/{
12746 N
12747 s/\n//
12748 }
12749 ' >>$CONFIG_STATUS || ac_write_fail=1
12750 rm -f conf$$subs.awk
12751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12752 _ACAWK
12753 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12754 for (key in S) S_is_set[key] = 1
12755 FS = "\a"
12756
12757 }
12758 {
12759 line = $ 0
12760 nfields = split(line, field, "@")
12761 substed = 0
12762 len = length(field[1])
12763 for (i = 2; i < nfields; i++) {
12764 key = field[i]
12765 keylen = length(key)
12766 if (S_is_set[key]) {
12767 value = S[key]
12768 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12769 len += length(value) + length(field[++i])
12770 substed = 1
12771 } else
12772 len += 1 + keylen
12773 }
12774
12775 print line
12776 }
12777
12778 _ACAWK
12779 _ACEOF
12780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12781 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12782 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12783 else
12784 cat
12785 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12786 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12787 _ACEOF
12788
12789 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12790 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12791 # trailing colons and then remove the whole line if VPATH becomes empty
12792 # (actually we leave an empty line to preserve line numbers).
12793 if test "x$srcdir" = x.; then
12794 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12795 h
12796 s///
12797 s/^/:/
12798 s/[ ]*$/:/
12799 s/:\$(srcdir):/:/g
12800 s/:\${srcdir}:/:/g
12801 s/:@srcdir@:/:/g
12802 s/^:*//
12803 s/:*$//
12804 x
12805 s/\(=[ ]*\).*/\1/
12806 G
12807 s/\n//
12808 s/^[^=]*=[ ]*$//
12809 }'
12810 fi
12811
12812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12813 fi # test -n "$CONFIG_FILES"
12814
12815 # Set up the scripts for CONFIG_HEADERS section.
12816 # No need to generate them if there are no CONFIG_HEADERS.
12817 # This happens for instance with `./config.status Makefile'.
12818 if test -n "$CONFIG_HEADERS"; then
12819 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12820 BEGIN {
12821 _ACEOF
12822
12823 # Transform confdefs.h into an awk script `defines.awk', embedded as
12824 # here-document in config.status, that substitutes the proper values into
12825 # config.h.in to produce config.h.
12826
12827 # Create a delimiter string that does not exist in confdefs.h, to ease
12828 # handling of long lines.
12829 ac_delim='%!_!# '
12830 for ac_last_try in false false :; do
12831 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12832 if test -z "$ac_tt"; then
12833 break
12834 elif $ac_last_try; then
12835 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12836 else
12837 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12838 fi
12839 done
12840
12841 # For the awk script, D is an array of macro values keyed by name,
12842 # likewise P contains macro parameters if any. Preserve backslash
12843 # newline sequences.
12844
12845 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12846 sed -n '
12847 s/.\{148\}/&'"$ac_delim"'/g
12848 t rset
12849 :rset
12850 s/^[ ]*#[ ]*define[ ][ ]*/ /
12851 t def
12852 d
12853 :def
12854 s/\\$//
12855 t bsnl
12856 s/["\\]/\\&/g
12857 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12858 D["\1"]=" \3"/p
12859 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12860 d
12861 :bsnl
12862 s/["\\]/\\&/g
12863 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12864 D["\1"]=" \3\\\\\\n"\\/p
12865 t cont
12866 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12867 t cont
12868 d
12869 :cont
12870 n
12871 s/.\{148\}/&'"$ac_delim"'/g
12872 t clear
12873 :clear
12874 s/\\$//
12875 t bsnlc
12876 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12877 d
12878 :bsnlc
12879 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12880 b cont
12881 ' <confdefs.h | sed '
12882 s/'"$ac_delim"'/"\\\
12883 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12884
12885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12886 for (key in D) D_is_set[key] = 1
12887 FS = "\a"
12888 }
12889 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12890 line = \$ 0
12891 split(line, arg, " ")
12892 if (arg[1] == "#") {
12893 defundef = arg[2]
12894 mac1 = arg[3]
12895 } else {
12896 defundef = substr(arg[1], 2)
12897 mac1 = arg[2]
12898 }
12899 split(mac1, mac2, "(") #)
12900 macro = mac2[1]
12901 prefix = substr(line, 1, index(line, defundef) - 1)
12902 if (D_is_set[macro]) {
12903 # Preserve the white space surrounding the "#".
12904 print prefix "define", macro P[macro] D[macro]
12905 next
12906 } else {
12907 # Replace #undef with comments. This is necessary, for example,
12908 # in the case of _POSIX_SOURCE, which is predefined and required
12909 # on some systems where configure will not decide to define it.
12910 if (defundef == "undef") {
12911 print "/*", prefix defundef, macro, "*/"
12912 next
12913 }
12914 }
12915 }
12916 { print }
12917 _ACAWK
12918 _ACEOF
12919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12920 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12921 fi # test -n "$CONFIG_HEADERS"
12922
12923
12924 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12925 shift
12926 for ac_tag
12927 do
12928 case $ac_tag in
12929 :[FHLC]) ac_mode=$ac_tag; continue;;
12930 esac
12931 case $ac_mode$ac_tag in
12932 :[FHL]*:*);;
12933 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12934 :[FH]-) ac_tag=-:-;;
12935 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12936 esac
12937 ac_save_IFS=$IFS
12938 IFS=:
12939 set x $ac_tag
12940 IFS=$ac_save_IFS
12941 shift
12942 ac_file=$1
12943 shift
12944
12945 case $ac_mode in
12946 :L) ac_source=$1;;
12947 :[FH])
12948 ac_file_inputs=
12949 for ac_f
12950 do
12951 case $ac_f in
12952 -) ac_f="$ac_tmp/stdin";;
12953 *) # Look for the file first in the build tree, then in the source tree
12954 # (if the path is not absolute). The absolute path cannot be DOS-style,
12955 # because $ac_f cannot contain `:'.
12956 test -f "$ac_f" ||
12957 case $ac_f in
12958 [\\/$]*) false;;
12959 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12960 esac ||
12961 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12962 esac
12963 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12964 as_fn_append ac_file_inputs " '$ac_f'"
12965 done
12966
12967 # Let's still pretend it is `configure' which instantiates (i.e., don't
12968 # use $as_me), people would be surprised to read:
12969 # /* config.h. Generated by config.status. */
12970 configure_input='Generated from '`
12971 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12972 `' by configure.'
12973 if test x"$ac_file" != x-; then
12974 configure_input="$ac_file. $configure_input"
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12976 $as_echo "$as_me: creating $ac_file" >&6;}
12977 fi
12978 # Neutralize special characters interpreted by sed in replacement strings.
12979 case $configure_input in #(
12980 *\&* | *\|* | *\\* )
12981 ac_sed_conf_input=`$as_echo "$configure_input" |
12982 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12983 *) ac_sed_conf_input=$configure_input;;
12984 esac
12985
12986 case $ac_tag in
12987 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12988 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12989 esac
12990 ;;
12991 esac
12992
12993 ac_dir=`$as_dirname -- "$ac_file" ||
12994 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12995 X"$ac_file" : 'X\(//\)[^/]' \| \
12996 X"$ac_file" : 'X\(//\)$' \| \
12997 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12998 $as_echo X"$ac_file" |
12999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13000 s//\1/
13001 q
13002 }
13003 /^X\(\/\/\)[^/].*/{
13004 s//\1/
13005 q
13006 }
13007 /^X\(\/\/\)$/{
13008 s//\1/
13009 q
13010 }
13011 /^X\(\/\).*/{
13012 s//\1/
13013 q
13014 }
13015 s/.*/./; q'`
13016 as_dir="$ac_dir"; as_fn_mkdir_p
13017 ac_builddir=.
13018
13019 case "$ac_dir" in
13020 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13021 *)
13022 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13023 # A ".." for each directory in $ac_dir_suffix.
13024 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13025 case $ac_top_builddir_sub in
13026 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13027 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13028 esac ;;
13029 esac
13030 ac_abs_top_builddir=$ac_pwd
13031 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13032 # for backward compatibility:
13033 ac_top_builddir=$ac_top_build_prefix
13034
13035 case $srcdir in
13036 .) # We are building in place.
13037 ac_srcdir=.
13038 ac_top_srcdir=$ac_top_builddir_sub
13039 ac_abs_top_srcdir=$ac_pwd ;;
13040 [\\/]* | ?:[\\/]* ) # Absolute name.
13041 ac_srcdir=$srcdir$ac_dir_suffix;
13042 ac_top_srcdir=$srcdir
13043 ac_abs_top_srcdir=$srcdir ;;
13044 *) # Relative name.
13045 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13046 ac_top_srcdir=$ac_top_build_prefix$srcdir
13047 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13048 esac
13049 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13050
13051
13052 case $ac_mode in
13053 :F)
13054 #
13055 # CONFIG_FILE
13056 #
13057
13058 case $INSTALL in
13059 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13060 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13061 esac
13062 ac_MKDIR_P=$MKDIR_P
13063 case $MKDIR_P in
13064 [\\/$]* | ?:[\\/]* ) ;;
13065 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13066 esac
13067 _ACEOF
13068
13069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13070 # If the template does not know about datarootdir, expand it.
13071 # FIXME: This hack should be removed a few years after 2.60.
13072 ac_datarootdir_hack=; ac_datarootdir_seen=
13073 ac_sed_dataroot='
13074 /datarootdir/ {
13075 p
13076 q
13077 }
13078 /@datadir@/p
13079 /@docdir@/p
13080 /@infodir@/p
13081 /@localedir@/p
13082 /@mandir@/p'
13083 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13084 *datarootdir*) ac_datarootdir_seen=yes;;
13085 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13087 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13088 _ACEOF
13089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13090 ac_datarootdir_hack='
13091 s&@datadir@&$datadir&g
13092 s&@docdir@&$docdir&g
13093 s&@infodir@&$infodir&g
13094 s&@localedir@&$localedir&g
13095 s&@mandir@&$mandir&g
13096 s&\\\${datarootdir}&$datarootdir&g' ;;
13097 esac
13098 _ACEOF
13099
13100 # Neutralize VPATH when `$srcdir' = `.'.
13101 # Shell code in configure.ac might set extrasub.
13102 # FIXME: do we really want to maintain this feature?
13103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13104 ac_sed_extra="$ac_vpsub
13105 $extrasub
13106 _ACEOF
13107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13108 :t
13109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13110 s|@configure_input@|$ac_sed_conf_input|;t t
13111 s&@top_builddir@&$ac_top_builddir_sub&;t t
13112 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13113 s&@srcdir@&$ac_srcdir&;t t
13114 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13115 s&@top_srcdir@&$ac_top_srcdir&;t t
13116 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13117 s&@builddir@&$ac_builddir&;t t
13118 s&@abs_builddir@&$ac_abs_builddir&;t t
13119 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13120 s&@INSTALL@&$ac_INSTALL&;t t
13121 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13122 $ac_datarootdir_hack
13123 "
13124 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13125 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13126
13127 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13128 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13129 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13130 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13132 which seems to be undefined. Please make sure it is defined" >&5
13133 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13134 which seems to be undefined. Please make sure it is defined" >&2;}
13135
13136 rm -f "$ac_tmp/stdin"
13137 case $ac_file in
13138 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13139 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13140 esac \
13141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13142 ;;
13143 :H)
13144 #
13145 # CONFIG_HEADER
13146 #
13147 if test x"$ac_file" != x-; then
13148 {
13149 $as_echo "/* $configure_input */" \
13150 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13151 } >"$ac_tmp/config.h" \
13152 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13153 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13155 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13156 else
13157 rm -f "$ac_file"
13158 mv "$ac_tmp/config.h" "$ac_file" \
13159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13160 fi
13161 else
13162 $as_echo "/* $configure_input */" \
13163 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13164 || as_fn_error $? "could not create -" "$LINENO" 5
13165 fi
13166 # Compute "$ac_file"'s index in $config_headers.
13167 _am_arg="$ac_file"
13168 _am_stamp_count=1
13169 for _am_header in $config_headers :; do
13170 case $_am_header in
13171 $_am_arg | $_am_arg:* )
13172 break ;;
13173 * )
13174 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13175 esac
13176 done
13177 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13178 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13179 X"$_am_arg" : 'X\(//\)[^/]' \| \
13180 X"$_am_arg" : 'X\(//\)$' \| \
13181 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13182 $as_echo X"$_am_arg" |
13183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13184 s//\1/
13185 q
13186 }
13187 /^X\(\/\/\)[^/].*/{
13188 s//\1/
13189 q
13190 }
13191 /^X\(\/\/\)$/{
13192 s//\1/
13193 q
13194 }
13195 /^X\(\/\).*/{
13196 s//\1/
13197 q
13198 }
13199 s/.*/./; q'`/stamp-h$_am_stamp_count
13200 ;;
13201
13202 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13203 $as_echo "$as_me: executing $ac_file commands" >&6;}
13204 ;;
13205 esac
13206
13207
13208 case $ac_file$ac_mode in
13209 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13210 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13211 # are listed without --file. Let's play safe and only enable the eval
13212 # if we detect the quoting.
13213 case $CONFIG_FILES in
13214 *\'*) eval set x "$CONFIG_FILES" ;;
13215 *) set x $CONFIG_FILES ;;
13216 esac
13217 shift
13218 for mf
13219 do
13220 # Strip MF so we end up with the name of the file.
13221 mf=`echo "$mf" | sed -e 's/:.*$//'`
13222 # Check whether this is an Automake generated Makefile or not.
13223 # We used to match only the files named `Makefile.in', but
13224 # some people rename them; so instead we look at the file content.
13225 # Grep'ing the first line is not enough: some people post-process
13226 # each Makefile.in and add a new line on top of each file to say so.
13227 # Grep'ing the whole file is not good either: AIX grep has a line
13228 # limit of 2048, but all sed's we know have understand at least 4000.
13229 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13230 dirpart=`$as_dirname -- "$mf" ||
13231 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13232 X"$mf" : 'X\(//\)[^/]' \| \
13233 X"$mf" : 'X\(//\)$' \| \
13234 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13235 $as_echo X"$mf" |
13236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13237 s//\1/
13238 q
13239 }
13240 /^X\(\/\/\)[^/].*/{
13241 s//\1/
13242 q
13243 }
13244 /^X\(\/\/\)$/{
13245 s//\1/
13246 q
13247 }
13248 /^X\(\/\).*/{
13249 s//\1/
13250 q
13251 }
13252 s/.*/./; q'`
13253 else
13254 continue
13255 fi
13256 # Extract the definition of DEPDIR, am__include, and am__quote
13257 # from the Makefile without running `make'.
13258 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13259 test -z "$DEPDIR" && continue
13260 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13261 test -z "am__include" && continue
13262 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13263 # When using ansi2knr, U may be empty or an underscore; expand it
13264 U=`sed -n 's/^U = //p' < "$mf"`
13265 # Find all dependency output files, they are included files with
13266 # $(DEPDIR) in their names. We invoke sed twice because it is the
13267 # simplest approach to changing $(DEPDIR) to its actual value in the
13268 # expansion.
13269 for file in `sed -n "
13270 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13271 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13272 # Make sure the directory exists.
13273 test -f "$dirpart/$file" && continue
13274 fdir=`$as_dirname -- "$file" ||
13275 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13276 X"$file" : 'X\(//\)[^/]' \| \
13277 X"$file" : 'X\(//\)$' \| \
13278 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13279 $as_echo X"$file" |
13280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13281 s//\1/
13282 q
13283 }
13284 /^X\(\/\/\)[^/].*/{
13285 s//\1/
13286 q
13287 }
13288 /^X\(\/\/\)$/{
13289 s//\1/
13290 q
13291 }
13292 /^X\(\/\).*/{
13293 s//\1/
13294 q
13295 }
13296 s/.*/./; q'`
13297 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13298 # echo "creating $dirpart/$file"
13299 echo '# dummy' > "$dirpart/$file"
13300 done
13301 done
13302 }
13303 ;;
13304 "libtool":C)
13305
13306 # See if we are running on zsh, and set the options which allow our
13307 # commands through without removal of \ escapes.
13308 if test -n "${ZSH_VERSION+set}" ; then
13309 setopt NO_GLOB_SUBST
13310 fi
13311
13312 cfgfile="${ofile}T"
13313 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13314 $RM "$cfgfile"
13315
13316 cat <<_LT_EOF >> "$cfgfile"
13317 #! $SHELL
13318
13319 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13320 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13321 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13322 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13323 #
13324 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13325 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13326 # Inc.
13327 # Written by Gordon Matzigkeit, 1996
13328 #
13329 # This file is part of GNU Libtool.
13330 #
13331 # GNU Libtool is free software; you can redistribute it and/or
13332 # modify it under the terms of the GNU General Public License as
13333 # published by the Free Software Foundation; either version 2 of
13334 # the License, or (at your option) any later version.
13335 #
13336 # As a special exception to the GNU General Public License,
13337 # if you distribute this file as part of a program or library that
13338 # is built using GNU Libtool, you may include this file under the
13339 # same distribution terms that you use for the rest of that program.
13340 #
13341 # GNU Libtool is distributed in the hope that it will be useful,
13342 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13343 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13344 # GNU General Public License for more details.
13345 #
13346 # You should have received a copy of the GNU General Public License
13347 # along with GNU Libtool; see the file COPYING. If not, a copy
13348 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13349 # obtained by writing to the Free Software Foundation, Inc.,
13350 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13351
13352
13353 # The names of the tagged configurations supported by this script.
13354 available_tags=""
13355
13356 # ### BEGIN LIBTOOL CONFIG
13357
13358 # Which release of libtool.m4 was used?
13359 macro_version=$macro_version
13360 macro_revision=$macro_revision
13361
13362 # Whether or not to build shared libraries.
13363 build_libtool_libs=$enable_shared
13364
13365 # Whether or not to build static libraries.
13366 build_old_libs=$enable_static
13367
13368 # What type of objects to build.
13369 pic_mode=$pic_mode
13370
13371 # Whether or not to optimize for fast installation.
13372 fast_install=$enable_fast_install
13373
13374 # Shell to use when invoking shell scripts.
13375 SHELL=$lt_SHELL
13376
13377 # An echo program that protects backslashes.
13378 ECHO=$lt_ECHO
13379
13380 # The host system.
13381 host_alias=$host_alias
13382 host=$host
13383 host_os=$host_os
13384
13385 # The build system.
13386 build_alias=$build_alias
13387 build=$build
13388 build_os=$build_os
13389
13390 # A sed program that does not truncate output.
13391 SED=$lt_SED
13392
13393 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13394 Xsed="\$SED -e 1s/^X//"
13395
13396 # A grep program that handles long lines.
13397 GREP=$lt_GREP
13398
13399 # An ERE matcher.
13400 EGREP=$lt_EGREP
13401
13402 # A literal string matcher.
13403 FGREP=$lt_FGREP
13404
13405 # A BSD- or MS-compatible name lister.
13406 NM=$lt_NM
13407
13408 # Whether we need soft or hard links.
13409 LN_S=$lt_LN_S
13410
13411 # What is the maximum length of a command?
13412 max_cmd_len=$max_cmd_len
13413
13414 # Object file suffix (normally "o").
13415 objext=$ac_objext
13416
13417 # Executable file suffix (normally "").
13418 exeext=$exeext
13419
13420 # whether the shell understands "unset".
13421 lt_unset=$lt_unset
13422
13423 # turn spaces into newlines.
13424 SP2NL=$lt_lt_SP2NL
13425
13426 # turn newlines into spaces.
13427 NL2SP=$lt_lt_NL2SP
13428
13429 # convert \$build file names to \$host format.
13430 to_host_file_cmd=$lt_cv_to_host_file_cmd
13431
13432 # convert \$build files to toolchain format.
13433 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13434
13435 # An object symbol dumper.
13436 OBJDUMP=$lt_OBJDUMP
13437
13438 # Method to check whether dependent libraries are shared objects.
13439 deplibs_check_method=$lt_deplibs_check_method
13440
13441 # Command to use when deplibs_check_method = "file_magic".
13442 file_magic_cmd=$lt_file_magic_cmd
13443
13444 # How to find potential files when deplibs_check_method = "file_magic".
13445 file_magic_glob=$lt_file_magic_glob
13446
13447 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13448 want_nocaseglob=$lt_want_nocaseglob
13449
13450 # DLL creation program.
13451 DLLTOOL=$lt_DLLTOOL
13452
13453 # Command to associate shared and link libraries.
13454 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13455
13456 # The archiver.
13457 AR=$lt_AR
13458
13459 # Flags to create an archive.
13460 AR_FLAGS=$lt_AR_FLAGS
13461
13462 # How to feed a file listing to the archiver.
13463 archiver_list_spec=$lt_archiver_list_spec
13464
13465 # A symbol stripping program.
13466 STRIP=$lt_STRIP
13467
13468 # Commands used to install an old-style archive.
13469 RANLIB=$lt_RANLIB
13470 old_postinstall_cmds=$lt_old_postinstall_cmds
13471 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13472
13473 # Whether to use a lock for old archive extraction.
13474 lock_old_archive_extraction=$lock_old_archive_extraction
13475
13476 # A C compiler.
13477 LTCC=$lt_CC
13478
13479 # LTCC compiler flags.
13480 LTCFLAGS=$lt_CFLAGS
13481
13482 # Take the output of nm and produce a listing of raw symbols and C names.
13483 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13484
13485 # Transform the output of nm in a proper C declaration.
13486 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13487
13488 # Transform the output of nm in a C name address pair.
13489 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13490
13491 # Transform the output of nm in a C name address pair when lib prefix is needed.
13492 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13493
13494 # Specify filename containing input files for \$NM.
13495 nm_file_list_spec=$lt_nm_file_list_spec
13496
13497 # The root where to search for dependent libraries,and in which our libraries should be installed.
13498 lt_sysroot=$lt_sysroot
13499
13500 # The name of the directory that contains temporary libtool files.
13501 objdir=$objdir
13502
13503 # Used to examine libraries when file_magic_cmd begins with "file".
13504 MAGIC_CMD=$MAGIC_CMD
13505
13506 # Must we lock files when doing compilation?
13507 need_locks=$lt_need_locks
13508
13509 # Manifest tool.
13510 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13511
13512 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13513 DSYMUTIL=$lt_DSYMUTIL
13514
13515 # Tool to change global to local symbols on Mac OS X.
13516 NMEDIT=$lt_NMEDIT
13517
13518 # Tool to manipulate fat objects and archives on Mac OS X.
13519 LIPO=$lt_LIPO
13520
13521 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13522 OTOOL=$lt_OTOOL
13523
13524 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13525 OTOOL64=$lt_OTOOL64
13526
13527 # Old archive suffix (normally "a").
13528 libext=$libext
13529
13530 # Shared library suffix (normally ".so").
13531 shrext_cmds=$lt_shrext_cmds
13532
13533 # The commands to extract the exported symbol list from a shared archive.
13534 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13535
13536 # Variables whose values should be saved in libtool wrapper scripts and
13537 # restored at link time.
13538 variables_saved_for_relink=$lt_variables_saved_for_relink
13539
13540 # Do we need the "lib" prefix for modules?
13541 need_lib_prefix=$need_lib_prefix
13542
13543 # Do we need a version for libraries?
13544 need_version=$need_version
13545
13546 # Library versioning type.
13547 version_type=$version_type
13548
13549 # Shared library runtime path variable.
13550 runpath_var=$runpath_var
13551
13552 # Shared library path variable.
13553 shlibpath_var=$shlibpath_var
13554
13555 # Is shlibpath searched before the hard-coded library search path?
13556 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13557
13558 # Format of library name prefix.
13559 libname_spec=$lt_libname_spec
13560
13561 # List of archive names. First name is the real one, the rest are links.
13562 # The last name is the one that the linker finds with -lNAME
13563 library_names_spec=$lt_library_names_spec
13564
13565 # The coded name of the library, if different from the real name.
13566 soname_spec=$lt_soname_spec
13567
13568 # Permission mode override for installation of shared libraries.
13569 install_override_mode=$lt_install_override_mode
13570
13571 # Command to use after installation of a shared archive.
13572 postinstall_cmds=$lt_postinstall_cmds
13573
13574 # Command to use after uninstallation of a shared archive.
13575 postuninstall_cmds=$lt_postuninstall_cmds
13576
13577 # Commands used to finish a libtool library installation in a directory.
13578 finish_cmds=$lt_finish_cmds
13579
13580 # As "finish_cmds", except a single script fragment to be evaled but
13581 # not shown.
13582 finish_eval=$lt_finish_eval
13583
13584 # Whether we should hardcode library paths into libraries.
13585 hardcode_into_libs=$hardcode_into_libs
13586
13587 # Compile-time system search path for libraries.
13588 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13589
13590 # Run-time system search path for libraries.
13591 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13592
13593 # Whether dlopen is supported.
13594 dlopen_support=$enable_dlopen
13595
13596 # Whether dlopen of programs is supported.
13597 dlopen_self=$enable_dlopen_self
13598
13599 # Whether dlopen of statically linked programs is supported.
13600 dlopen_self_static=$enable_dlopen_self_static
13601
13602 # Commands to strip libraries.
13603 old_striplib=$lt_old_striplib
13604 striplib=$lt_striplib
13605
13606
13607 # The linker used to build libraries.
13608 LD=$lt_LD
13609
13610 # How to create reloadable object files.
13611 reload_flag=$lt_reload_flag
13612 reload_cmds=$lt_reload_cmds
13613
13614 # Commands used to build an old-style archive.
13615 old_archive_cmds=$lt_old_archive_cmds
13616
13617 # A language specific compiler.
13618 CC=$lt_compiler
13619
13620 # Is the compiler the GNU compiler?
13621 with_gcc=$GCC
13622
13623 # Compiler flag to turn off builtin functions.
13624 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13625
13626 # Additional compiler flags for building library objects.
13627 pic_flag=$lt_lt_prog_compiler_pic
13628
13629 # How to pass a linker flag through the compiler.
13630 wl=$lt_lt_prog_compiler_wl
13631
13632 # Compiler flag to prevent dynamic linking.
13633 link_static_flag=$lt_lt_prog_compiler_static
13634
13635 # Does compiler simultaneously support -c and -o options?
13636 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13637
13638 # Whether or not to add -lc for building shared libraries.
13639 build_libtool_need_lc=$archive_cmds_need_lc
13640
13641 # Whether or not to disallow shared libs when runtime libs are static.
13642 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13643
13644 # Compiler flag to allow reflexive dlopens.
13645 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13646
13647 # Compiler flag to generate shared objects directly from archives.
13648 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13649
13650 # Whether the compiler copes with passing no objects directly.
13651 compiler_needs_object=$lt_compiler_needs_object
13652
13653 # Create an old-style archive from a shared archive.
13654 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13655
13656 # Create a temporary old-style archive to link instead of a shared archive.
13657 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13658
13659 # Commands used to build a shared archive.
13660 archive_cmds=$lt_archive_cmds
13661 archive_expsym_cmds=$lt_archive_expsym_cmds
13662
13663 # Commands used to build a loadable module if different from building
13664 # a shared archive.
13665 module_cmds=$lt_module_cmds
13666 module_expsym_cmds=$lt_module_expsym_cmds
13667
13668 # Whether we are building with GNU ld or not.
13669 with_gnu_ld=$lt_with_gnu_ld
13670
13671 # Flag that allows shared libraries with undefined symbols to be built.
13672 allow_undefined_flag=$lt_allow_undefined_flag
13673
13674 # Flag that enforces no undefined symbols.
13675 no_undefined_flag=$lt_no_undefined_flag
13676
13677 # Flag to hardcode \$libdir into a binary during linking.
13678 # This must work even if \$libdir does not exist
13679 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13680
13681 # If ld is used when linking, flag to hardcode \$libdir into a binary
13682 # during linking. This must work even if \$libdir does not exist.
13683 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13684
13685 # Whether we need a single "-rpath" flag with a separated argument.
13686 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13687
13688 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13689 # DIR into the resulting binary.
13690 hardcode_direct=$hardcode_direct
13691
13692 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13693 # DIR into the resulting binary and the resulting library dependency is
13694 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13695 # library is relocated.
13696 hardcode_direct_absolute=$hardcode_direct_absolute
13697
13698 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13699 # into the resulting binary.
13700 hardcode_minus_L=$hardcode_minus_L
13701
13702 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13703 # into the resulting binary.
13704 hardcode_shlibpath_var=$hardcode_shlibpath_var
13705
13706 # Set to "yes" if building a shared library automatically hardcodes DIR
13707 # into the library and all subsequent libraries and executables linked
13708 # against it.
13709 hardcode_automatic=$hardcode_automatic
13710
13711 # Set to yes if linker adds runtime paths of dependent libraries
13712 # to runtime path list.
13713 inherit_rpath=$inherit_rpath
13714
13715 # Whether libtool must link a program against all its dependency libraries.
13716 link_all_deplibs=$link_all_deplibs
13717
13718 # Set to "yes" if exported symbols are required.
13719 always_export_symbols=$always_export_symbols
13720
13721 # The commands to list exported symbols.
13722 export_symbols_cmds=$lt_export_symbols_cmds
13723
13724 # Symbols that should not be listed in the preloaded symbols.
13725 exclude_expsyms=$lt_exclude_expsyms
13726
13727 # Symbols that must always be exported.
13728 include_expsyms=$lt_include_expsyms
13729
13730 # Commands necessary for linking programs (against libraries) with templates.
13731 prelink_cmds=$lt_prelink_cmds
13732
13733 # Commands necessary for finishing linking programs.
13734 postlink_cmds=$lt_postlink_cmds
13735
13736 # Specify filename containing input files.
13737 file_list_spec=$lt_file_list_spec
13738
13739 # How to hardcode a shared library path into an executable.
13740 hardcode_action=$hardcode_action
13741
13742 # ### END LIBTOOL CONFIG
13743
13744 _LT_EOF
13745
13746 case $host_os in
13747 aix3*)
13748 cat <<\_LT_EOF >> "$cfgfile"
13749 # AIX sometimes has problems with the GCC collect2 program. For some
13750 # reason, if we set the COLLECT_NAMES environment variable, the problems
13751 # vanish in a puff of smoke.
13752 if test "X${COLLECT_NAMES+set}" != Xset; then
13753 COLLECT_NAMES=
13754 export COLLECT_NAMES
13755 fi
13756 _LT_EOF
13757 ;;
13758 esac
13759
13760
13761 ltmain="$ac_aux_dir/ltmain.sh"
13762
13763
13764 # We use sed instead of cat because bash on DJGPP gets confused if
13765 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13766 # text mode, it properly converts lines to CR/LF. This bash problem
13767 # is reportedly fixed, but why not run on old versions too?
13768 sed '$q' "$ltmain" >> "$cfgfile" \
13769 || (rm -f "$cfgfile"; exit 1)
13770
13771 if test x"$xsi_shell" = xyes; then
13772 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13773 func_dirname ()\
13774 {\
13775 \ case ${1} in\
13776 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13777 \ * ) func_dirname_result="${3}" ;;\
13778 \ esac\
13779 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13780 && mv -f "$cfgfile.tmp" "$cfgfile" \
13781 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13782 test 0 -eq $? || _lt_function_replace_fail=:
13783
13784
13785 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13786 func_basename ()\
13787 {\
13788 \ func_basename_result="${1##*/}"\
13789 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13790 && mv -f "$cfgfile.tmp" "$cfgfile" \
13791 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13792 test 0 -eq $? || _lt_function_replace_fail=:
13793
13794
13795 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13796 func_dirname_and_basename ()\
13797 {\
13798 \ case ${1} in\
13799 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13800 \ * ) func_dirname_result="${3}" ;;\
13801 \ esac\
13802 \ func_basename_result="${1##*/}"\
13803 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13804 && mv -f "$cfgfile.tmp" "$cfgfile" \
13805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13806 test 0 -eq $? || _lt_function_replace_fail=:
13807
13808
13809 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13810 func_stripname ()\
13811 {\
13812 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13813 \ # positional parameters, so assign one to ordinary parameter first.\
13814 \ func_stripname_result=${3}\
13815 \ func_stripname_result=${func_stripname_result#"${1}"}\
13816 \ func_stripname_result=${func_stripname_result%"${2}"}\
13817 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13818 && mv -f "$cfgfile.tmp" "$cfgfile" \
13819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13820 test 0 -eq $? || _lt_function_replace_fail=:
13821
13822
13823 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13824 func_split_long_opt ()\
13825 {\
13826 \ func_split_long_opt_name=${1%%=*}\
13827 \ func_split_long_opt_arg=${1#*=}\
13828 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13829 && mv -f "$cfgfile.tmp" "$cfgfile" \
13830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13831 test 0 -eq $? || _lt_function_replace_fail=:
13832
13833
13834 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13835 func_split_short_opt ()\
13836 {\
13837 \ func_split_short_opt_arg=${1#??}\
13838 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13839 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13840 && mv -f "$cfgfile.tmp" "$cfgfile" \
13841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13842 test 0 -eq $? || _lt_function_replace_fail=:
13843
13844
13845 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13846 func_lo2o ()\
13847 {\
13848 \ case ${1} in\
13849 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13850 \ *) func_lo2o_result=${1} ;;\
13851 \ esac\
13852 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13853 && mv -f "$cfgfile.tmp" "$cfgfile" \
13854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13855 test 0 -eq $? || _lt_function_replace_fail=:
13856
13857
13858 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13859 func_xform ()\
13860 {\
13861 func_xform_result=${1%.*}.lo\
13862 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13863 && mv -f "$cfgfile.tmp" "$cfgfile" \
13864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13865 test 0 -eq $? || _lt_function_replace_fail=:
13866
13867
13868 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13869 func_arith ()\
13870 {\
13871 func_arith_result=$(( $* ))\
13872 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13873 && mv -f "$cfgfile.tmp" "$cfgfile" \
13874 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13875 test 0 -eq $? || _lt_function_replace_fail=:
13876
13877
13878 sed -e '/^func_len ()$/,/^} # func_len /c\
13879 func_len ()\
13880 {\
13881 func_len_result=${#1}\
13882 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13883 && mv -f "$cfgfile.tmp" "$cfgfile" \
13884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13885 test 0 -eq $? || _lt_function_replace_fail=:
13886
13887 fi
13888
13889 if test x"$lt_shell_append" = xyes; then
13890 sed -e '/^func_append ()$/,/^} # func_append /c\
13891 func_append ()\
13892 {\
13893 eval "${1}+=\\${2}"\
13894 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13895 && mv -f "$cfgfile.tmp" "$cfgfile" \
13896 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13897 test 0 -eq $? || _lt_function_replace_fail=:
13898
13899
13900 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13901 func_append_quoted ()\
13902 {\
13903 \ func_quote_for_eval "${2}"\
13904 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13905 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13906 && mv -f "$cfgfile.tmp" "$cfgfile" \
13907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13908 test 0 -eq $? || _lt_function_replace_fail=:
13909
13910
13911 # Save a `func_append' function call where possible by direct use of '+='
13912 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13913 && mv -f "$cfgfile.tmp" "$cfgfile" \
13914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13915 test 0 -eq $? || _lt_function_replace_fail=:
13916 else
13917 # Save a `func_append' function call even when '+=' is not available
13918 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13919 && mv -f "$cfgfile.tmp" "$cfgfile" \
13920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13921 test 0 -eq $? || _lt_function_replace_fail=:
13922 fi
13923
13924 if test x"$_lt_function_replace_fail" = x":"; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13926 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13927 fi
13928
13929
13930 mv -f "$cfgfile" "$ofile" ||
13931 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13932 chmod +x "$ofile"
13933
13934 ;;
13935
13936 esac
13937 done # for ac_tag
13938
13939
13940 as_fn_exit 0
13941 _ACEOF
13942 ac_clean_files=$ac_clean_files_save
13943
13944 test $ac_write_fail = 0 ||
13945 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13946
13947
13948 # configure is writing to config.log, and then calls config.status.
13949 # config.status does its own redirection, appending to config.log.
13950 # Unfortunately, on DOS this fails, as config.log is still kept open
13951 # by configure, so config.status won't be able to write to it; its
13952 # output is simply discarded. So we exec the FD to /dev/null,
13953 # effectively closing config.log, so it can be properly (re)opened and
13954 # appended to by config.status. When coming back to configure, we
13955 # need to make the FD available again.
13956 if test "$no_create" != yes; then
13957 ac_cs_success=:
13958 ac_config_status_args=
13959 test "$silent" = yes &&
13960 ac_config_status_args="$ac_config_status_args --quiet"
13961 exec 5>/dev/null
13962 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13963 exec 5>>config.log
13964 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13965 # would make configure fail if this is the last instruction.
13966 $ac_cs_success || as_fn_exit 1
13967 fi
13968 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13970 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13971 fi
13972