Imported Upstream version 1.3.0
[deb_libnfs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libnfs 1.3.0.
4 #
5 # Report bugs to <ronniesahlberg@gmail.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
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 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: ronniesahlberg@gmail.com about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libnfs'
592 PACKAGE_TARNAME='libnfs'
593 PACKAGE_VERSION='1.3.0'
594 PACKAGE_STRING='libnfs 1.3.0'
595 PACKAGE_BUGREPORT='ronniesahlberg@gmail.com'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 LIBNFS_PC_REQ_PRIVATE
639 TIRPC_LIBS
640 TIRPC_CFLAGS
641 RPCGENFLAGS
642 MAYBE_EXAMPLES
643 HAVE_RPCGEN
644 PKG_CONFIG_LIBDIR
645 PKG_CONFIG_PATH
646 PKG_CONFIG
647 CPP
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
656 AR
657 DLLTOOL
658 OBJDUMP
659 LN_S
660 NM
661 ac_ct_DUMPBIN
662 DUMPBIN
663 LD
664 FGREP
665 EGREP
666 GREP
667 SED
668 LIBTOOL
669 am__fastdepCC_FALSE
670 am__fastdepCC_TRUE
671 CCDEPMODE
672 am__nodep
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__quote
677 am__include
678 DEPDIR
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_dependency_tracking
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 with_gnu_ld
764 with_sysroot
765 enable_libtool_lock
766 enable_examples
767 enable_tirpc
768 '
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CPP
778 PKG_CONFIG
779 PKG_CONFIG_PATH
780 PKG_CONFIG_LIBDIR
781 TIRPC_CFLAGS
782 TIRPC_LIBS'
783
784
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 ac_unrecognized_opts=
789 ac_unrecognized_sep=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
792 cache_file=/dev/null
793 exec_prefix=NONE
794 no_create=
795 no_recursion=
796 prefix=NONE
797 program_prefix=NONE
798 program_suffix=NONE
799 program_transform_name=s,x,x,
800 silent=
801 site=
802 srcdir=
803 verbose=
804 x_includes=NONE
805 x_libraries=NONE
806
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
825 htmldir='${docdir}'
826 dvidir='${docdir}'
827 pdfdir='${docdir}'
828 psdir='${docdir}'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
832
833 ac_prev=
834 ac_dashdash=
835 for ac_option
836 do
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
840 ac_prev=
841 continue
842 fi
843
844 case $ac_option in
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *=) ac_optarg= ;;
847 *) ac_optarg=yes ;;
848 esac
849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
860
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
875
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
880
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
913
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
1133
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
1149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 ;;
1189
1190 esac
1191 done
1192
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $? "missing argument to $ac_option"
1196 fi
1197
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1204 fi
1205
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1211 do
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
1220 case $ac_val in
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 esac
1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
1284 srcdir=$ac_confdir
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 srcdir=..
1287 fi
1288 else
1289 ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures libnfs 1.3.0 to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/libnfs]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1377
1378 cat <<\_ACEOF
1379
1380 Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384
1385 System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of libnfs 1.3.0:";;
1394 esac
1395 cat <<\_ACEOF
1396
1397 Optional Features:
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --disable-dependency-tracking speeds up one-time build
1402 --enable-dependency-tracking do not reject slow dependency extractors
1403 --enable-shared[=PKGS] build shared libraries [default=yes]
1404 --enable-static[=PKGS] build static libraries [default=yes]
1405 --enable-fast-install[=PKGS]
1406 optimize for fast installation [default=yes]
1407 --disable-libtool-lock avoid locking (might break parallel builds)
1408 --enable-examples Build example programs
1409 --enable-tirpc enable use of TI-RPC [default=no]
1410
1411 Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1415 both]
1416 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1417 --with-sysroot=DIR Search for dependent libraries within DIR
1418 (or the compiler's sysroot if not specified).
1419
1420 Some influential environment variables:
1421 CC C compiler command
1422 CFLAGS C compiler flags
1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1424 nonstandard directory <lib dir>
1425 LIBS libraries to pass to the linker, e.g. -l<library>
1426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427 you have headers in a nonstandard directory <include dir>
1428 CPP C preprocessor
1429 PKG_CONFIG path to pkg-config utility
1430 PKG_CONFIG_PATH
1431 directories to add to pkg-config's search path
1432 PKG_CONFIG_LIBDIR
1433 path overriding pkg-config's built-in search path
1434 TIRPC_CFLAGS
1435 C compiler flags for TIRPC, overriding pkg-config
1436 TIRPC_LIBS linker flags for TIRPC, overriding pkg-config
1437
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1440
1441 Report bugs to <ronniesahlberg@gmail.com>.
1442 _ACEOF
1443 ac_status=$?
1444 fi
1445
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" ||
1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451 continue
1452 ac_builddir=.
1453
1454 case "$ac_dir" in
1455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *)
1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 esac ;;
1464 esac
1465 ac_abs_top_builddir=$ac_pwd
1466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467 # for backward compatibility:
1468 ac_top_builddir=$ac_top_build_prefix
1469
1470 case $srcdir in
1471 .) # We are building in place.
1472 ac_srcdir=.
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
1476 ac_srcdir=$srcdir$ac_dir_suffix;
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1479 *) # Relative name.
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483 esac
1484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure" --help=recursive
1494 else
1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496 fi || ac_status=$?
1497 cd "$ac_pwd" || { ac_status=$?; break; }
1498 done
1499 fi
1500
1501 test -n "$ac_init_help" && exit $ac_status
1502 if $ac_init_version; then
1503 cat <<\_ACEOF
1504 libnfs configure 1.3.0
1505 generated by GNU Autoconf 2.69
1506
1507 Copyright (C) 2012 Free Software Foundation, Inc.
1508 This configure script is free software; the Free Software Foundation
1509 gives unlimited permission to copy, distribute and modify it.
1510 _ACEOF
1511 exit
1512 fi
1513
1514 ## ------------------------ ##
1515 ## Autoconf initialization. ##
1516 ## ------------------------ ##
1517
1518 # ac_fn_c_try_compile LINENO
1519 # --------------------------
1520 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_compile ()
1522 {
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1526 case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1538 fi
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; 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 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552 as_fn_set_status $ac_retval
1553
1554 } # ac_fn_c_try_compile
1555
1556 # ac_fn_c_try_link LINENO
1557 # -----------------------
1558 # Try to link conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_link ()
1560 {
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext conftest$ac_exeext
1563 if { { ac_try="$ac_link"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_link") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest$ac_exeext && {
1582 test "$cross_compiling" = yes ||
1583 test -x conftest$ac_exeext
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591 fi
1592 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1593 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1594 # interfere with the next link command; also delete a directory that is
1595 # left behind by Apple's compiler. We do this before executing the actions.
1596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1599
1600 } # ac_fn_c_try_link
1601
1602 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1603 # -------------------------------------------------------
1604 # Tests whether HEADER exists and can be compiled using the include files in
1605 # INCLUDES, setting the cache variable VAR accordingly.
1606 ac_fn_c_check_header_compile ()
1607 {
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610 $as_echo_n "checking for $2... " >&6; }
1611 if eval \${$3+:} false; then :
1612 $as_echo_n "(cached) " >&6
1613 else
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1616 $4
1617 #include <$2>
1618 _ACEOF
1619 if ac_fn_c_try_compile "$LINENO"; then :
1620 eval "$3=yes"
1621 else
1622 eval "$3=no"
1623 fi
1624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625 fi
1626 eval ac_res=\$$3
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628 $as_echo "$ac_res" >&6; }
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630
1631 } # ac_fn_c_check_header_compile
1632
1633 # ac_fn_c_try_cpp LINENO
1634 # ----------------------
1635 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_cpp ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_cpp conftest.$ac_ext"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } > conftest.i && {
1655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664 fi
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_cpp
1669
1670 # ac_fn_c_try_run LINENO
1671 # ----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673 # that executables *can* be run.
1674 ac_fn_c_try_run ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=$ac_status
1705 fi
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_run
1711
1712 # ac_fn_c_check_func LINENO FUNC VAR
1713 # ----------------------------------
1714 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1715 ac_fn_c_check_func ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if eval \${$3+:} false; then :
1721 $as_echo_n "(cached) " >&6
1722 else
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1727 #define $2 innocuous_$2
1728
1729 /* System header to define __stub macros and hopefully few prototypes,
1730 which can conflict with char $2 (); below.
1731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732 <limits.h> exists even on freestanding compilers. */
1733
1734 #ifdef __STDC__
1735 # include <limits.h>
1736 #else
1737 # include <assert.h>
1738 #endif
1739
1740 #undef $2
1741
1742 /* Override any GCC internal prototype to avoid an error.
1743 Use char because int might match the return type of a GCC
1744 builtin and then its argument prototype would still apply. */
1745 #ifdef __cplusplus
1746 extern "C"
1747 #endif
1748 char $2 ();
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined __stub_$2 || defined __stub___$2
1753 choke me
1754 #endif
1755
1756 int
1757 main ()
1758 {
1759 return $2 ();
1760 ;
1761 return 0;
1762 }
1763 _ACEOF
1764 if ac_fn_c_try_link "$LINENO"; then :
1765 eval "$3=yes"
1766 else
1767 eval "$3=no"
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext \
1770 conftest$ac_exeext conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_func
1778
1779 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782 # the include files in INCLUDES and setting the cache variable VAR
1783 # accordingly.
1784 ac_fn_c_check_header_mongrel ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if eval \${$3+:} false; then :
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1792 fi
1793 eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 else
1797 # Is the header compilable?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799 $as_echo_n "checking $2 usability... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 $4
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_header_compiler=yes
1807 else
1808 ac_header_compiler=no
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812 $as_echo "$ac_header_compiler" >&6; }
1813
1814 # Is the header present?
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816 $as_echo_n "checking $2 presence... " >&6; }
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_cpp "$LINENO"; then :
1822 ac_header_preproc=yes
1823 else
1824 ac_header_preproc=no
1825 fi
1826 rm -f conftest.err conftest.i conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828 $as_echo "$ac_header_preproc" >&6; }
1829
1830 # So? What about this header?
1831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1832 yes:no: )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837 ;;
1838 no:yes:* )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1842 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1846 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 ( $as_echo "## --------------------------------------- ##
1850 ## Report this to ronniesahlberg@gmail.com ##
1851 ## --------------------------------------- ##"
1852 ) | sed "s/^/$as_me: WARNING: /" >&2
1853 ;;
1854 esac
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859 else
1860 eval "$3=\$ac_header_compiler"
1861 fi
1862 eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 fi
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868 } # ac_fn_c_check_header_mongrel
1869
1870 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1871 # ----------------------------------------------------
1872 # Tries to find if the field MEMBER exists in type AGGR, after including
1873 # INCLUDES, setting cache variable VAR accordingly.
1874 ac_fn_c_check_member ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1878 $as_echo_n "checking for $2.$3... " >&6; }
1879 if eval \${$4+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 $5
1885 int
1886 main ()
1887 {
1888 static $2 ac_aggr;
1889 if (ac_aggr.$3)
1890 return 0;
1891 ;
1892 return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_compile "$LINENO"; then :
1896 eval "$4=yes"
1897 else
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 $5
1901 int
1902 main ()
1903 {
1904 static $2 ac_aggr;
1905 if (sizeof ac_aggr.$3)
1906 return 0;
1907 ;
1908 return 0;
1909 }
1910 _ACEOF
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912 eval "$4=yes"
1913 else
1914 eval "$4=no"
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 fi
1920 eval ac_res=\$$4
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924
1925 } # ac_fn_c_check_member
1926 cat >config.log <<_ACEOF
1927 This file contains any messages produced by compilers while
1928 running configure, to aid debugging if configure makes a mistake.
1929
1930 It was created by libnfs $as_me 1.3.0, which was
1931 generated by GNU Autoconf 2.69. Invocation command line was
1932
1933 $ $0 $@
1934
1935 _ACEOF
1936 exec 5>>config.log
1937 {
1938 cat <<_ASUNAME
1939 ## --------- ##
1940 ## Platform. ##
1941 ## --------- ##
1942
1943 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1944 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1945 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1946 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1947 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1948
1949 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1950 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1951
1952 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1953 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1954 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1955 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1956 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1957 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1958 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1959
1960 _ASUNAME
1961
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 $as_echo "PATH: $as_dir"
1968 done
1969 IFS=$as_save_IFS
1970
1971 } >&5
1972
1973 cat >&5 <<_ACEOF
1974
1975
1976 ## ----------- ##
1977 ## Core tests. ##
1978 ## ----------- ##
1979
1980 _ACEOF
1981
1982
1983 # Keep a trace of the command line.
1984 # Strip out --no-create and --no-recursion so they do not pile up.
1985 # Strip out --silent because we don't want to record it for future runs.
1986 # Also quote any args containing shell meta-characters.
1987 # Make two passes to allow for proper duplicate-argument suppression.
1988 ac_configure_args=
1989 ac_configure_args0=
1990 ac_configure_args1=
1991 ac_must_keep_next=false
1992 for ac_pass in 1 2
1993 do
1994 for ac_arg
1995 do
1996 case $ac_arg in
1997 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1999 | -silent | --silent | --silen | --sile | --sil)
2000 continue ;;
2001 *\'*)
2002 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2003 esac
2004 case $ac_pass in
2005 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2006 2)
2007 as_fn_append ac_configure_args1 " '$ac_arg'"
2008 if test $ac_must_keep_next = true; then
2009 ac_must_keep_next=false # Got value, back to normal.
2010 else
2011 case $ac_arg in
2012 *=* | --config-cache | -C | -disable-* | --disable-* \
2013 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2014 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2015 | -with-* | --with-* | -without-* | --without-* | --x)
2016 case "$ac_configure_args0 " in
2017 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2018 esac
2019 ;;
2020 -* ) ac_must_keep_next=true ;;
2021 esac
2022 fi
2023 as_fn_append ac_configure_args " '$ac_arg'"
2024 ;;
2025 esac
2026 done
2027 done
2028 { ac_configure_args0=; unset ac_configure_args0;}
2029 { ac_configure_args1=; unset ac_configure_args1;}
2030
2031 # When interrupted or exit'd, cleanup temporary files, and complete
2032 # config.log. We remove comments because anyway the quotes in there
2033 # would cause problems or look ugly.
2034 # WARNING: Use '\'' to represent an apostrophe within the trap.
2035 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2036 trap 'exit_status=$?
2037 # Save into config.log some information that might help in debugging.
2038 {
2039 echo
2040
2041 $as_echo "## ---------------- ##
2042 ## Cache variables. ##
2043 ## ---------------- ##"
2044 echo
2045 # The following way of writing the cache mishandles newlines in values,
2046 (
2047 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2048 eval ac_val=\$$ac_var
2049 case $ac_val in #(
2050 *${as_nl}*)
2051 case $ac_var in #(
2052 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2053 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2054 esac
2055 case $ac_var in #(
2056 _ | IFS | as_nl) ;; #(
2057 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2058 *) { eval $ac_var=; unset $ac_var;} ;;
2059 esac ;;
2060 esac
2061 done
2062 (set) 2>&1 |
2063 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2064 *${as_nl}ac_space=\ *)
2065 sed -n \
2066 "s/'\''/'\''\\\\'\'''\''/g;
2067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2068 ;; #(
2069 *)
2070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2071 ;;
2072 esac |
2073 sort
2074 )
2075 echo
2076
2077 $as_echo "## ----------------- ##
2078 ## Output variables. ##
2079 ## ----------------- ##"
2080 echo
2081 for ac_var in $ac_subst_vars
2082 do
2083 eval ac_val=\$$ac_var
2084 case $ac_val in
2085 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2086 esac
2087 $as_echo "$ac_var='\''$ac_val'\''"
2088 done | sort
2089 echo
2090
2091 if test -n "$ac_subst_files"; then
2092 $as_echo "## ------------------- ##
2093 ## File substitutions. ##
2094 ## ------------------- ##"
2095 echo
2096 for ac_var in $ac_subst_files
2097 do
2098 eval ac_val=\$$ac_var
2099 case $ac_val in
2100 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2101 esac
2102 $as_echo "$ac_var='\''$ac_val'\''"
2103 done | sort
2104 echo
2105 fi
2106
2107 if test -s confdefs.h; then
2108 $as_echo "## ----------- ##
2109 ## confdefs.h. ##
2110 ## ----------- ##"
2111 echo
2112 cat confdefs.h
2113 echo
2114 fi
2115 test "$ac_signal" != 0 &&
2116 $as_echo "$as_me: caught signal $ac_signal"
2117 $as_echo "$as_me: exit $exit_status"
2118 } >&5
2119 rm -f core *.core core.conftest.* &&
2120 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2121 exit $exit_status
2122 ' 0
2123 for ac_signal in 1 2 13 15; do
2124 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2125 done
2126 ac_signal=0
2127
2128 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2129 rm -f -r conftest* confdefs.h
2130
2131 $as_echo "/* confdefs.h */" > confdefs.h
2132
2133 # Predefined preprocessor variables.
2134
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_NAME "$PACKAGE_NAME"
2137 _ACEOF
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2141 _ACEOF
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2145 _ACEOF
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_STRING "$PACKAGE_STRING"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_URL "$PACKAGE_URL"
2157 _ACEOF
2158
2159
2160 # Let the site file select an alternate cache file if it wants to.
2161 # Prefer an explicitly selected file to automatically selected ones.
2162 ac_site_file1=NONE
2163 ac_site_file2=NONE
2164 if test -n "$CONFIG_SITE"; then
2165 # We do not want a PATH search for config.site.
2166 case $CONFIG_SITE in #((
2167 -*) ac_site_file1=./$CONFIG_SITE;;
2168 */*) ac_site_file1=$CONFIG_SITE;;
2169 *) ac_site_file1=./$CONFIG_SITE;;
2170 esac
2171 elif test "x$prefix" != xNONE; then
2172 ac_site_file1=$prefix/share/config.site
2173 ac_site_file2=$prefix/etc/config.site
2174 else
2175 ac_site_file1=$ac_default_prefix/share/config.site
2176 ac_site_file2=$ac_default_prefix/etc/config.site
2177 fi
2178 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2179 do
2180 test "x$ac_site_file" = xNONE && continue
2181 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2183 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2184 sed 's/^/| /' "$ac_site_file" >&5
2185 . "$ac_site_file" \
2186 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2188 as_fn_error $? "failed to load site script $ac_site_file
2189 See \`config.log' for more details" "$LINENO" 5; }
2190 fi
2191 done
2192
2193 if test -r "$cache_file"; then
2194 # Some versions of bash will fail to source /dev/null (special files
2195 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2196 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2198 $as_echo "$as_me: loading cache $cache_file" >&6;}
2199 case $cache_file in
2200 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2201 *) . "./$cache_file";;
2202 esac
2203 fi
2204 else
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2206 $as_echo "$as_me: creating cache $cache_file" >&6;}
2207 >$cache_file
2208 fi
2209
2210 # Check that the precious variables saved in the cache have kept the same
2211 # value.
2212 ac_cache_corrupted=false
2213 for ac_var in $ac_precious_vars; do
2214 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2215 eval ac_new_set=\$ac_env_${ac_var}_set
2216 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2217 eval ac_new_val=\$ac_env_${ac_var}_value
2218 case $ac_old_set,$ac_new_set in
2219 set,)
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2221 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2222 ac_cache_corrupted=: ;;
2223 ,set)
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2225 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2226 ac_cache_corrupted=: ;;
2227 ,);;
2228 *)
2229 if test "x$ac_old_val" != "x$ac_new_val"; then
2230 # differences in whitespace do not lead to failure.
2231 ac_old_val_w=`echo x $ac_old_val`
2232 ac_new_val_w=`echo x $ac_new_val`
2233 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2235 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2236 ac_cache_corrupted=:
2237 else
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2239 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2240 eval $ac_var=\$ac_old_val
2241 fi
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2243 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2245 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2246 fi;;
2247 esac
2248 # Pass precious variables to config.status.
2249 if test "$ac_new_set" = set; then
2250 case $ac_new_val in
2251 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2252 *) ac_arg=$ac_var=$ac_new_val ;;
2253 esac
2254 case " $ac_configure_args " in
2255 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2256 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2257 esac
2258 fi
2259 done
2260 if $ac_cache_corrupted; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2264 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2265 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2266 fi
2267 ## -------------------- ##
2268 ## Main body of script. ##
2269 ## -------------------- ##
2270
2271 ac_ext=c
2272 ac_cpp='$CPP $CPPFLAGS'
2273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2276
2277
2278 ac_config_headers="$ac_config_headers config.h"
2279
2280 am__api_version='1.11'
2281
2282 ac_aux_dir=
2283 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2284 if test -f "$ac_dir/install-sh"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/install-sh -c"
2287 break
2288 elif test -f "$ac_dir/install.sh"; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/install.sh -c"
2291 break
2292 elif test -f "$ac_dir/shtool"; then
2293 ac_aux_dir=$ac_dir
2294 ac_install_sh="$ac_aux_dir/shtool install -c"
2295 break
2296 fi
2297 done
2298 if test -z "$ac_aux_dir"; then
2299 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2300 fi
2301
2302 # These three variables are undocumented and unsupported,
2303 # and are intended to be withdrawn in a future Autoconf release.
2304 # They can cause serious problems if a builder's source tree is in a directory
2305 # whose full name contains unusual characters.
2306 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2307 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2308 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2309
2310
2311 # Find a good install program. We prefer a C program (faster),
2312 # so one script is as good as another. But avoid the broken or
2313 # incompatible versions:
2314 # SysV /etc/install, /usr/sbin/install
2315 # SunOS /usr/etc/install
2316 # IRIX /sbin/install
2317 # AIX /bin/install
2318 # AmigaOS /C/install, which installs bootblocks on floppy discs
2319 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2320 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2321 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2322 # OS/2's system install, which has a completely different semantic
2323 # ./install, which can be erroneously created by make from ./install.sh.
2324 # Reject install programs that cannot install multiple files.
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2326 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2327 if test -z "$INSTALL"; then
2328 if ${ac_cv_path_install+:} false; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2333 do
2334 IFS=$as_save_IFS
2335 test -z "$as_dir" && as_dir=.
2336 # Account for people who put trailing slashes in PATH elements.
2337 case $as_dir/ in #((
2338 ./ | .// | /[cC]/* | \
2339 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2340 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2341 /usr/ucb/* ) ;;
2342 *)
2343 # OSF1 and SCO ODT 3.0 have their own names for install.
2344 # Don't use installbsd from OSF since it installs stuff as root
2345 # by default.
2346 for ac_prog in ginstall scoinst install; do
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2349 if test $ac_prog = install &&
2350 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2351 # AIX install. It has an incompatible calling convention.
2352 :
2353 elif test $ac_prog = install &&
2354 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2355 # program-specific install script used by HP pwplus--don't use.
2356 :
2357 else
2358 rm -rf conftest.one conftest.two conftest.dir
2359 echo one > conftest.one
2360 echo two > conftest.two
2361 mkdir conftest.dir
2362 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2363 test -s conftest.one && test -s conftest.two &&
2364 test -s conftest.dir/conftest.one &&
2365 test -s conftest.dir/conftest.two
2366 then
2367 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2368 break 3
2369 fi
2370 fi
2371 fi
2372 done
2373 done
2374 ;;
2375 esac
2376
2377 done
2378 IFS=$as_save_IFS
2379
2380 rm -rf conftest.one conftest.two conftest.dir
2381
2382 fi
2383 if test "${ac_cv_path_install+set}" = set; then
2384 INSTALL=$ac_cv_path_install
2385 else
2386 # As a last resort, use the slow shell script. Don't cache a
2387 # value for INSTALL within a source directory, because that will
2388 # break other packages using the cache if that directory is
2389 # removed, or if the value is a relative name.
2390 INSTALL=$ac_install_sh
2391 fi
2392 fi
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2394 $as_echo "$INSTALL" >&6; }
2395
2396 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2397 # It thinks the first close brace ends the variable substitution.
2398 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2399
2400 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2401
2402 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2403
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2405 $as_echo_n "checking whether build environment is sane... " >&6; }
2406 # Just in case
2407 sleep 1
2408 echo timestamp > conftest.file
2409 # Reject unsafe characters in $srcdir or the absolute working directory
2410 # name. Accept space and tab only in the latter.
2411 am_lf='
2412 '
2413 case `pwd` in
2414 *[\\\"\#\$\&\'\`$am_lf]*)
2415 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2416 esac
2417 case $srcdir in
2418 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2419 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2420 esac
2421
2422 # Do `set' in a subshell so we don't clobber the current shell's
2423 # arguments. Must try -L first in case configure is actually a
2424 # symlink; some systems play weird games with the mod time of symlinks
2425 # (eg FreeBSD returns the mod time of the symlink's containing
2426 # directory).
2427 if (
2428 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2429 if test "$*" = "X"; then
2430 # -L didn't work.
2431 set X `ls -t "$srcdir/configure" conftest.file`
2432 fi
2433 rm -f conftest.file
2434 if test "$*" != "X $srcdir/configure conftest.file" \
2435 && test "$*" != "X conftest.file $srcdir/configure"; then
2436
2437 # If neither matched, then we have a broken ls. This can happen
2438 # if, for instance, CONFIG_SHELL is bash and it inherits a
2439 # broken ls alias from the environment. This has actually
2440 # happened. Such a system could not be considered "sane".
2441 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2442 alias in your environment" "$LINENO" 5
2443 fi
2444
2445 test "$2" = conftest.file
2446 )
2447 then
2448 # Ok.
2449 :
2450 else
2451 as_fn_error $? "newly created file is older than distributed files!
2452 Check your system clock" "$LINENO" 5
2453 fi
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2455 $as_echo "yes" >&6; }
2456 test "$program_prefix" != NONE &&
2457 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2458 # Use a double $ so make ignores it.
2459 test "$program_suffix" != NONE &&
2460 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2461 # Double any \ or $.
2462 # By default was `s,x,x', remove it if useless.
2463 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2464 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2465
2466 # expand $ac_aux_dir to an absolute path
2467 am_aux_dir=`cd $ac_aux_dir && pwd`
2468
2469 if test x"${MISSING+set}" != xset; then
2470 case $am_aux_dir in
2471 *\ * | *\ *)
2472 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2473 *)
2474 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2475 esac
2476 fi
2477 # Use eval to expand $SHELL
2478 if eval "$MISSING --run true"; then
2479 am_missing_run="$MISSING --run "
2480 else
2481 am_missing_run=
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2483 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2484 fi
2485
2486 if test x"${install_sh}" != xset; then
2487 case $am_aux_dir in
2488 *\ * | *\ *)
2489 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2490 *)
2491 install_sh="\${SHELL} $am_aux_dir/install-sh"
2492 esac
2493 fi
2494
2495 # Installed binaries are usually stripped using `strip' when the user
2496 # run `make install-strip'. However `strip' might not be the right
2497 # tool to use in cross-compilation environments, therefore Automake
2498 # will honor the `STRIP' environment variable to overrule this program.
2499 if test "$cross_compiling" != no; then
2500 if test -n "$ac_tool_prefix"; then
2501 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2502 set dummy ${ac_tool_prefix}strip; ac_word=$2
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2504 $as_echo_n "checking for $ac_word... " >&6; }
2505 if ${ac_cv_prog_STRIP+:} false; then :
2506 $as_echo_n "(cached) " >&6
2507 else
2508 if test -n "$STRIP"; then
2509 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2518 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 break 2
2521 fi
2522 done
2523 done
2524 IFS=$as_save_IFS
2525
2526 fi
2527 fi
2528 STRIP=$ac_cv_prog_STRIP
2529 if test -n "$STRIP"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2531 $as_echo "$STRIP" >&6; }
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534 $as_echo "no" >&6; }
2535 fi
2536
2537
2538 fi
2539 if test -z "$ac_cv_prog_STRIP"; then
2540 ac_ct_STRIP=$STRIP
2541 # Extract the first word of "strip", so it can be a program name with args.
2542 set dummy strip; ac_word=$2
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2544 $as_echo_n "checking for $ac_word... " >&6; }
2545 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 if test -n "$ac_ct_STRIP"; then
2549 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2558 ac_cv_prog_ac_ct_STRIP="strip"
2559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2561 fi
2562 done
2563 done
2564 IFS=$as_save_IFS
2565
2566 fi
2567 fi
2568 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2569 if test -n "$ac_ct_STRIP"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2571 $as_echo "$ac_ct_STRIP" >&6; }
2572 else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2574 $as_echo "no" >&6; }
2575 fi
2576
2577 if test "x$ac_ct_STRIP" = x; then
2578 STRIP=":"
2579 else
2580 case $cross_compiling:$ac_tool_warned in
2581 yes:)
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2584 ac_tool_warned=yes ;;
2585 esac
2586 STRIP=$ac_ct_STRIP
2587 fi
2588 else
2589 STRIP="$ac_cv_prog_STRIP"
2590 fi
2591
2592 fi
2593 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2594
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2596 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2597 if test -z "$MKDIR_P"; then
2598 if ${ac_cv_path_mkdir+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2603 do
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for ac_prog in mkdir gmkdir; do
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2609 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2610 'mkdir (GNU coreutils) '* | \
2611 'mkdir (coreutils) '* | \
2612 'mkdir (fileutils) '4.1*)
2613 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2614 break 3;;
2615 esac
2616 done
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622
2623 test -d ./--version && rmdir ./--version
2624 if test "${ac_cv_path_mkdir+set}" = set; then
2625 MKDIR_P="$ac_cv_path_mkdir -p"
2626 else
2627 # As a last resort, use the slow shell script. Don't cache a
2628 # value for MKDIR_P within a source directory, because that will
2629 # break other packages using the cache if that directory is
2630 # removed, or if the value is a relative name.
2631 MKDIR_P="$ac_install_sh -d"
2632 fi
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2635 $as_echo "$MKDIR_P" >&6; }
2636
2637 mkdir_p="$MKDIR_P"
2638 case $mkdir_p in
2639 [\\/$]* | ?:[\\/]*) ;;
2640 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2641 esac
2642
2643 for ac_prog in gawk mawk nawk awk
2644 do
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646 set dummy $ac_prog; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if ${ac_cv_prog_AWK+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if test -n "$AWK"; then
2653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2662 ac_cv_prog_AWK="$ac_prog"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666 done
2667 done
2668 IFS=$as_save_IFS
2669
2670 fi
2671 fi
2672 AWK=$ac_cv_prog_AWK
2673 if test -n "$AWK"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2675 $as_echo "$AWK" >&6; }
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 fi
2680
2681
2682 test -n "$AWK" && break
2683 done
2684
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2686 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2687 set x ${MAKE-make}
2688 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2689 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 cat >conftest.make <<\_ACEOF
2693 SHELL = /bin/sh
2694 all:
2695 @echo '@@@%%%=$(MAKE)=@@@%%%'
2696 _ACEOF
2697 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2698 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2699 *@@@%%%=?*=@@@%%%*)
2700 eval ac_cv_prog_make_${ac_make}_set=yes;;
2701 *)
2702 eval ac_cv_prog_make_${ac_make}_set=no;;
2703 esac
2704 rm -f conftest.make
2705 fi
2706 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708 $as_echo "yes" >&6; }
2709 SET_MAKE=
2710 else
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2713 SET_MAKE="MAKE=${MAKE-make}"
2714 fi
2715
2716 rm -rf .tst 2>/dev/null
2717 mkdir .tst 2>/dev/null
2718 if test -d .tst; then
2719 am__leading_dot=.
2720 else
2721 am__leading_dot=_
2722 fi
2723 rmdir .tst 2>/dev/null
2724
2725 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2726 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2727 # is not polluted with repeated "-I."
2728 am__isrc=' -I$(srcdir)'
2729 # test to see if srcdir already configured
2730 if test -f $srcdir/config.status; then
2731 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2732 fi
2733 fi
2734
2735 # test whether we have cygpath
2736 if test -z "$CYGPATH_W"; then
2737 if (cygpath --version) >/dev/null 2>/dev/null; then
2738 CYGPATH_W='cygpath -w'
2739 else
2740 CYGPATH_W=echo
2741 fi
2742 fi
2743
2744
2745 # Define the identity of the package.
2746 PACKAGE='libnfs'
2747 VERSION='1.3.0'
2748
2749
2750 cat >>confdefs.h <<_ACEOF
2751 #define PACKAGE "$PACKAGE"
2752 _ACEOF
2753
2754
2755 cat >>confdefs.h <<_ACEOF
2756 #define VERSION "$VERSION"
2757 _ACEOF
2758
2759 # Some tools Automake needs.
2760
2761 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2762
2763
2764 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2765
2766
2767 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2768
2769
2770 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2771
2772
2773 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2774
2775 # We need awk for the "check" target. The system "awk" is bad on
2776 # some platforms.
2777 # Always define AMTAR for backward compatibility. Yes, it's still used
2778 # in the wild :-( We should find a proper way to deprecate it ...
2779 AMTAR='$${TAR-tar}'
2780
2781 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2782
2783
2784
2785
2786
2787 # Make sure we can run config.sub.
2788 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2789 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2790
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2792 $as_echo_n "checking build system type... " >&6; }
2793 if ${ac_cv_build+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 ac_build_alias=$build_alias
2797 test "x$ac_build_alias" = x &&
2798 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2799 test "x$ac_build_alias" = x &&
2800 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2801 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2802 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2803
2804 fi
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2806 $as_echo "$ac_cv_build" >&6; }
2807 case $ac_cv_build in
2808 *-*-*) ;;
2809 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2810 esac
2811 build=$ac_cv_build
2812 ac_save_IFS=$IFS; IFS='-'
2813 set x $ac_cv_build
2814 shift
2815 build_cpu=$1
2816 build_vendor=$2
2817 shift; shift
2818 # Remember, the first character of IFS is used to create $*,
2819 # except with old shells:
2820 build_os=$*
2821 IFS=$ac_save_IFS
2822 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2823
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2826 $as_echo_n "checking host system type... " >&6; }
2827 if ${ac_cv_host+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if test "x$host_alias" = x; then
2831 ac_cv_host=$ac_cv_build
2832 else
2833 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2834 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2835 fi
2836
2837 fi
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2839 $as_echo "$ac_cv_host" >&6; }
2840 case $ac_cv_host in
2841 *-*-*) ;;
2842 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2843 esac
2844 host=$ac_cv_host
2845 ac_save_IFS=$IFS; IFS='-'
2846 set x $ac_cv_host
2847 shift
2848 host_cpu=$1
2849 host_vendor=$2
2850 shift; shift
2851 # Remember, the first character of IFS is used to create $*,
2852 # except with old shells:
2853 host_os=$*
2854 IFS=$ac_save_IFS
2855 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2856
2857
2858
2859 # Work around stupid autoconf default cflags. pt 1
2860 SAVE_CFLAGS="x${CFLAGS}"
2861
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 if test -n "$ac_tool_prefix"; then
2868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2869 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_CC+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889 done
2890 done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 CC=$ac_cv_prog_CC
2896 if test -n "$CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2899 else
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904
2905 fi
2906 if test -z "$ac_cv_prog_CC"; then
2907 ac_ct_CC=$CC
2908 # Extract the first word of "gcc", so it can be a program name with args.
2909 set dummy gcc; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$ac_ct_CC"; then
2916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_ac_ct_CC="gcc"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936 if test -n "$ac_ct_CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2938 $as_echo "$ac_ct_CC" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944 if test "x$ac_ct_CC" = x; then
2945 CC=""
2946 else
2947 case $cross_compiling:$ac_tool_warned in
2948 yes:)
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2951 ac_tool_warned=yes ;;
2952 esac
2953 CC=$ac_ct_CC
2954 fi
2955 else
2956 CC="$ac_cv_prog_CC"
2957 fi
2958
2959 if test -z "$CC"; then
2960 if test -n "$ac_tool_prefix"; then
2961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2962 set dummy ${ac_tool_prefix}cc; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_CC+:} false; then :
2966 $as_echo_n "(cached) " >&6
2967 else
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2978 ac_cv_prog_CC="${ac_tool_prefix}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 fi
2987 fi
2988 CC=$ac_cv_prog_CC
2989 if test -n "$CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2992 else
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2995 fi
2996
2997
2998 fi
2999 fi
3000 if test -z "$CC"; then
3001 # Extract the first word of "cc", so it can be a program name with args.
3002 set dummy cc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_CC+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011 ac_prog_rejected=no
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3020 ac_prog_rejected=yes
3021 continue
3022 fi
3023 ac_cv_prog_CC="cc"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 if test $ac_prog_rejected = yes; then
3032 # We found a bogon in the path, so make sure we never use it.
3033 set dummy $ac_cv_prog_CC
3034 shift
3035 if test $# != 0; then
3036 # We chose a different compiler from the bogus one.
3037 # However, it has the same basename, so the bogon will be chosen
3038 # first if we set CC to just the basename; use the full file name.
3039 shift
3040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3041 fi
3042 fi
3043 fi
3044 fi
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3049 else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055 fi
3056 if test -z "$CC"; then
3057 if test -n "$ac_tool_prefix"; then
3058 for ac_prog in cl.exe
3059 do
3060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CC+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081 done
3082 done
3083 IFS=$as_save_IFS
3084
3085 fi
3086 fi
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 fi
3095
3096
3097 test -n "$CC" && break
3098 done
3099 fi
3100 if test -z "$CC"; then
3101 ac_ct_CC=$CC
3102 for ac_prog in cl.exe
3103 do
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3109 $as_echo_n "(cached) " >&6
3110 else
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_CC="$ac_prog"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132 if test -n "$ac_ct_CC"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3134 $as_echo "$ac_ct_CC" >&6; }
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 fi
3139
3140
3141 test -n "$ac_ct_CC" && break
3142 done
3143
3144 if test "x$ac_ct_CC" = x; then
3145 CC=""
3146 else
3147 case $cross_compiling:$ac_tool_warned in
3148 yes:)
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3151 ac_tool_warned=yes ;;
3152 esac
3153 CC=$ac_ct_CC
3154 fi
3155 fi
3156
3157 fi
3158
3159
3160 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 as_fn_error $? "no acceptable C compiler found in \$PATH
3163 See \`config.log' for more details" "$LINENO" 5; }
3164
3165 # Provide some information about the compiler.
3166 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3167 set X $ac_compile
3168 ac_compiler=$2
3169 for ac_option in --version -v -V -qversion; do
3170 { { ac_try="$ac_compiler $ac_option >&5"
3171 case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 $as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3178 ac_status=$?
3179 if test -s conftest.err; then
3180 sed '10a\
3181 ... rest of stderr output deleted ...
3182 10q' conftest.err >conftest.er1
3183 cat conftest.er1 >&5
3184 fi
3185 rm -f conftest.er1 conftest.err
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }
3188 done
3189
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3192
3193 int
3194 main ()
3195 {
3196
3197 ;
3198 return 0;
3199 }
3200 _ACEOF
3201 ac_clean_files_save=$ac_clean_files
3202 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3203 # Try to create an executable without -o first, disregard a.out.
3204 # It will help us diagnose broken compilers, and finding out an intuition
3205 # of exeext.
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3207 $as_echo_n "checking whether the C compiler works... " >&6; }
3208 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3209
3210 # The possible output files:
3211 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3212
3213 ac_rmfiles=
3214 for ac_file in $ac_files
3215 do
3216 case $ac_file in
3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3218 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3219 esac
3220 done
3221 rm -f $ac_rmfiles
3222
3223 if { { ac_try="$ac_link_default"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_link_default") 2>&5
3231 ac_status=$?
3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }; then :
3234 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3235 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3236 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3237 # so that the user can short-circuit this test for compilers unknown to
3238 # Autoconf.
3239 for ac_file in $ac_files ''
3240 do
3241 test -f "$ac_file" || continue
3242 case $ac_file in
3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3244 ;;
3245 [ab].out )
3246 # We found the default executable, but exeext='' is most
3247 # certainly right.
3248 break;;
3249 *.* )
3250 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3251 then :; else
3252 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3253 fi
3254 # We set ac_cv_exeext here because the later test for it is not
3255 # safe: cross compilers may not add the suffix if given an `-o'
3256 # argument, so we may need to know it at that point already.
3257 # Even if this section looks crufty: it has the advantage of
3258 # actually working.
3259 break;;
3260 * )
3261 break;;
3262 esac
3263 done
3264 test "$ac_cv_exeext" = no && ac_cv_exeext=
3265
3266 else
3267 ac_file=''
3268 fi
3269 if test -z "$ac_file"; then :
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error 77 "C compiler cannot create executables
3278 See \`config.log' for more details" "$LINENO" 5; }
3279 else
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281 $as_echo "yes" >&6; }
3282 fi
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3284 $as_echo_n "checking for C compiler default output file name... " >&6; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3286 $as_echo "$ac_file" >&6; }
3287 ac_exeext=$ac_cv_exeext
3288
3289 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3290 ac_clean_files=$ac_clean_files_save
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3292 $as_echo_n "checking for suffix of executables... " >&6; }
3293 if { { ac_try="$ac_link"
3294 case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297 esac
3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299 $as_echo "$ac_try_echo"; } >&5
3300 (eval "$ac_link") 2>&5
3301 ac_status=$?
3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }; then :
3304 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3305 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3306 # work properly (i.e., refer to `conftest.exe'), while it won't with
3307 # `rm'.
3308 for ac_file in conftest.exe conftest conftest.*; do
3309 test -f "$ac_file" || continue
3310 case $ac_file in
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313 break;;
3314 * ) break;;
3315 esac
3316 done
3317 else
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3321 See \`config.log' for more details" "$LINENO" 5; }
3322 fi
3323 rm -f conftest conftest$ac_cv_exeext
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3325 $as_echo "$ac_cv_exeext" >&6; }
3326
3327 rm -f conftest.$ac_ext
3328 EXEEXT=$ac_cv_exeext
3329 ac_exeext=$EXEEXT
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3332 #include <stdio.h>
3333 int
3334 main ()
3335 {
3336 FILE *f = fopen ("conftest.out", "w");
3337 return ferror (f) || fclose (f) != 0;
3338
3339 ;
3340 return 0;
3341 }
3342 _ACEOF
3343 ac_clean_files="$ac_clean_files conftest.out"
3344 # Check that the compiler produces executables we can run. If not, either
3345 # the compiler is broken, or we cross compile.
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3347 $as_echo_n "checking whether we are cross compiling... " >&6; }
3348 if test "$cross_compiling" != yes; then
3349 { { ac_try="$ac_link"
3350 case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353 esac
3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355 $as_echo "$ac_try_echo"; } >&5
3356 (eval "$ac_link") 2>&5
3357 ac_status=$?
3358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359 test $ac_status = 0; }
3360 if { ac_try='./conftest$ac_cv_exeext'
3361 { { case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366 $as_echo "$ac_try_echo"; } >&5
3367 (eval "$ac_try") 2>&5
3368 ac_status=$?
3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370 test $ac_status = 0; }; }; then
3371 cross_compiling=no
3372 else
3373 if test "$cross_compiling" = maybe; then
3374 cross_compiling=yes
3375 else
3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error $? "cannot run C compiled programs.
3379 If you meant to cross compile, use \`--host'.
3380 See \`config.log' for more details" "$LINENO" 5; }
3381 fi
3382 fi
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3385 $as_echo "$cross_compiling" >&6; }
3386
3387 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3388 ac_clean_files=$ac_clean_files_save
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3390 $as_echo_n "checking for suffix of object files... " >&6; }
3391 if ${ac_cv_objext+:} false; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3396
3397 int
3398 main ()
3399 {
3400
3401 ;
3402 return 0;
3403 }
3404 _ACEOF
3405 rm -f conftest.o conftest.obj
3406 if { { ac_try="$ac_compile"
3407 case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3410 esac
3411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412 $as_echo "$ac_try_echo"; } >&5
3413 (eval "$ac_compile") 2>&5
3414 ac_status=$?
3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416 test $ac_status = 0; }; then :
3417 for ac_file in conftest.o conftest.obj conftest.*; do
3418 test -f "$ac_file" || continue;
3419 case $ac_file in
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3421 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3422 break;;
3423 esac
3424 done
3425 else
3426 $as_echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "cannot compute suffix of object files: cannot compile
3432 See \`config.log' for more details" "$LINENO" 5; }
3433 fi
3434 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3437 $as_echo "$ac_cv_objext" >&6; }
3438 OBJEXT=$ac_cv_objext
3439 ac_objext=$OBJEXT
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3441 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3442 if ${ac_cv_c_compiler_gnu+:} false; then :
3443 $as_echo_n "(cached) " >&6
3444 else
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3447
3448 int
3449 main ()
3450 {
3451 #ifndef __GNUC__
3452 choke me
3453 #endif
3454
3455 ;
3456 return 0;
3457 }
3458 _ACEOF
3459 if ac_fn_c_try_compile "$LINENO"; then :
3460 ac_compiler_gnu=yes
3461 else
3462 ac_compiler_gnu=no
3463 fi
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3466
3467 fi
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3469 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3470 if test $ac_compiler_gnu = yes; then
3471 GCC=yes
3472 else
3473 GCC=
3474 fi
3475 ac_test_CFLAGS=${CFLAGS+set}
3476 ac_save_CFLAGS=$CFLAGS
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3478 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3479 if ${ac_cv_prog_cc_g+:} false; then :
3480 $as_echo_n "(cached) " >&6
3481 else
3482 ac_save_c_werror_flag=$ac_c_werror_flag
3483 ac_c_werror_flag=yes
3484 ac_cv_prog_cc_g=no
3485 CFLAGS="-g"
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3488
3489 int
3490 main ()
3491 {
3492
3493 ;
3494 return 0;
3495 }
3496 _ACEOF
3497 if ac_fn_c_try_compile "$LINENO"; then :
3498 ac_cv_prog_cc_g=yes
3499 else
3500 CFLAGS=""
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3503
3504 int
3505 main ()
3506 {
3507
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513
3514 else
3515 ac_c_werror_flag=$ac_save_c_werror_flag
3516 CFLAGS="-g"
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519
3520 int
3521 main ()
3522 {
3523
3524 ;
3525 return 0;
3526 }
3527 _ACEOF
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_cv_prog_cc_g=yes
3530 fi
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 fi
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 ac_c_werror_flag=$ac_save_c_werror_flag
3537 fi
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3539 $as_echo "$ac_cv_prog_cc_g" >&6; }
3540 if test "$ac_test_CFLAGS" = set; then
3541 CFLAGS=$ac_save_CFLAGS
3542 elif test $ac_cv_prog_cc_g = yes; then
3543 if test "$GCC" = yes; then
3544 CFLAGS="-g -O2"
3545 else
3546 CFLAGS="-g"
3547 fi
3548 else
3549 if test "$GCC" = yes; then
3550 CFLAGS="-O2"
3551 else
3552 CFLAGS=
3553 fi
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3556 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3557 if ${ac_cv_prog_cc_c89+:} false; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 ac_cv_prog_cc_c89=no
3561 ac_save_CC=$CC
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3564 #include <stdarg.h>
3565 #include <stdio.h>
3566 struct stat;
3567 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3568 struct buf { int x; };
3569 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3570 static char *e (p, i)
3571 char **p;
3572 int i;
3573 {
3574 return p[i];
3575 }
3576 static char *f (char * (*g) (char **, int), char **p, ...)
3577 {
3578 char *s;
3579 va_list v;
3580 va_start (v,p);
3581 s = g (p, va_arg (v,int));
3582 va_end (v);
3583 return s;
3584 }
3585
3586 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3587 function prototypes and stuff, but not '\xHH' hex character constants.
3588 These don't provoke an error unfortunately, instead are silently treated
3589 as 'x'. The following induces an error, until -std is added to get
3590 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3591 array size at least. It's necessary to write '\x00'==0 to get something
3592 that's true only with -std. */
3593 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3594
3595 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3596 inside strings and character constants. */
3597 #define FOO(x) 'x'
3598 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3599
3600 int test (int i, double x);
3601 struct s1 {int (*f) (int a);};
3602 struct s2 {int (*f) (double a);};
3603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3604 int argc;
3605 char **argv;
3606 int
3607 main ()
3608 {
3609 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3615 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3616 do
3617 CC="$ac_save_CC $ac_arg"
3618 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_cv_prog_cc_c89=$ac_arg
3620 fi
3621 rm -f core conftest.err conftest.$ac_objext
3622 test "x$ac_cv_prog_cc_c89" != "xno" && break
3623 done
3624 rm -f conftest.$ac_ext
3625 CC=$ac_save_CC
3626
3627 fi
3628 # AC_CACHE_VAL
3629 case "x$ac_cv_prog_cc_c89" in
3630 x)
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3632 $as_echo "none needed" >&6; } ;;
3633 xno)
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3635 $as_echo "unsupported" >&6; } ;;
3636 *)
3637 CC="$CC $ac_cv_prog_cc_c89"
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3639 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3640 esac
3641 if test "x$ac_cv_prog_cc_c89" != xno; then :
3642
3643 fi
3644
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 DEPDIR="${am__leading_dot}deps"
3651
3652 ac_config_commands="$ac_config_commands depfiles"
3653
3654
3655 am_make=${MAKE-make}
3656 cat > confinc << 'END'
3657 am__doit:
3658 @echo this is the am__doit target
3659 .PHONY: am__doit
3660 END
3661 # If we don't find an include directive, just comment out the code.
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3663 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3664 am__include="#"
3665 am__quote=
3666 _am_result=none
3667 # First try GNU make style include.
3668 echo "include confinc" > confmf
3669 # Ignore all kinds of additional output from `make'.
3670 case `$am_make -s -f confmf 2> /dev/null` in #(
3671 *the\ am__doit\ target*)
3672 am__include=include
3673 am__quote=
3674 _am_result=GNU
3675 ;;
3676 esac
3677 # Now try BSD make style include.
3678 if test "$am__include" = "#"; then
3679 echo '.include "confinc"' > confmf
3680 case `$am_make -s -f confmf 2> /dev/null` in #(
3681 *the\ am__doit\ target*)
3682 am__include=.include
3683 am__quote="\""
3684 _am_result=BSD
3685 ;;
3686 esac
3687 fi
3688
3689
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3691 $as_echo "$_am_result" >&6; }
3692 rm -f confinc confmf
3693
3694 # Check whether --enable-dependency-tracking was given.
3695 if test "${enable_dependency_tracking+set}" = set; then :
3696 enableval=$enable_dependency_tracking;
3697 fi
3698
3699 if test "x$enable_dependency_tracking" != xno; then
3700 am_depcomp="$ac_aux_dir/depcomp"
3701 AMDEPBACKSLASH='\'
3702 am__nodep='_no'
3703 fi
3704 if test "x$enable_dependency_tracking" != xno; then
3705 AMDEP_TRUE=
3706 AMDEP_FALSE='#'
3707 else
3708 AMDEP_TRUE='#'
3709 AMDEP_FALSE=
3710 fi
3711
3712
3713
3714 depcc="$CC" am_compiler_list=
3715
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3717 $as_echo_n "checking dependency style of $depcc... " >&6; }
3718 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3722 # We make a subdir and do the tests there. Otherwise we can end up
3723 # making bogus files that we don't know about and never remove. For
3724 # instance it was reported that on HP-UX the gcc test will end up
3725 # making a dummy file named `D' -- because `-MD' means `put the output
3726 # in D'.
3727 rm -rf conftest.dir
3728 mkdir conftest.dir
3729 # Copy depcomp to subdir because otherwise we won't find it if we're
3730 # using a relative directory.
3731 cp "$am_depcomp" conftest.dir
3732 cd conftest.dir
3733 # We will build objects and dependencies in a subdirectory because
3734 # it helps to detect inapplicable dependency modes. For instance
3735 # both Tru64's cc and ICC support -MD to output dependencies as a
3736 # side effect of compilation, but ICC will put the dependencies in
3737 # the current directory while Tru64 will put them in the object
3738 # directory.
3739 mkdir sub
3740
3741 am_cv_CC_dependencies_compiler_type=none
3742 if test "$am_compiler_list" = ""; then
3743 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3744 fi
3745 am__universal=false
3746 case " $depcc " in #(
3747 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3748 esac
3749
3750 for depmode in $am_compiler_list; do
3751 # Setup a source with many dependencies, because some compilers
3752 # like to wrap large dependency lists on column 80 (with \), and
3753 # we should not choose a depcomp mode which is confused by this.
3754 #
3755 # We need to recreate these files for each test, as the compiler may
3756 # overwrite some of them when testing with obscure command lines.
3757 # This happens at least with the AIX C compiler.
3758 : > sub/conftest.c
3759 for i in 1 2 3 4 5 6; do
3760 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3761 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3762 # Solaris 8's {/usr,}/bin/sh.
3763 touch sub/conftst$i.h
3764 done
3765 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3766
3767 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3768 # mode. It turns out that the SunPro C++ compiler does not properly
3769 # handle `-M -o', and we need to detect this. Also, some Intel
3770 # versions had trouble with output in subdirs
3771 am__obj=sub/conftest.${OBJEXT-o}
3772 am__minus_obj="-o $am__obj"
3773 case $depmode in
3774 gcc)
3775 # This depmode causes a compiler race in universal mode.
3776 test "$am__universal" = false || continue
3777 ;;
3778 nosideeffect)
3779 # after this tag, mechanisms are not by side-effect, so they'll
3780 # only be used when explicitly requested
3781 if test "x$enable_dependency_tracking" = xyes; then
3782 continue
3783 else
3784 break
3785 fi
3786 ;;
3787 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3788 # This compiler won't grok `-c -o', but also, the minuso test has
3789 # not run yet. These depmodes are late enough in the game, and
3790 # so weak that their functioning should not be impacted.
3791 am__obj=conftest.${OBJEXT-o}
3792 am__minus_obj=
3793 ;;
3794 none) break ;;
3795 esac
3796 if depmode=$depmode \
3797 source=sub/conftest.c object=$am__obj \
3798 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3799 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3800 >/dev/null 2>conftest.err &&
3801 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3802 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3803 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3804 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3805 # icc doesn't choke on unknown options, it will just issue warnings
3806 # or remarks (even with -Werror). So we grep stderr for any message
3807 # that says an option was ignored or not supported.
3808 # When given -MP, icc 7.0 and 7.1 complain thusly:
3809 # icc: Command line warning: ignoring option '-M'; no argument required
3810 # The diagnosis changed in icc 8.0:
3811 # icc: Command line remark: option '-MP' not supported
3812 if (grep 'ignoring option' conftest.err ||
3813 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3814 am_cv_CC_dependencies_compiler_type=$depmode
3815 break
3816 fi
3817 fi
3818 done
3819
3820 cd ..
3821 rm -rf conftest.dir
3822 else
3823 am_cv_CC_dependencies_compiler_type=none
3824 fi
3825
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3828 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3829 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3830
3831 if
3832 test "x$enable_dependency_tracking" != xno \
3833 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3834 am__fastdepCC_TRUE=
3835 am__fastdepCC_FALSE='#'
3836 else
3837 am__fastdepCC_TRUE='#'
3838 am__fastdepCC_FALSE=
3839 fi
3840
3841
3842 case `pwd` in
3843 *\ * | *\ *)
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3845 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3846 esac
3847
3848
3849
3850 macro_version='2.4.2'
3851 macro_revision='1.3337'
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865 ltmain="$ac_aux_dir/ltmain.sh"
3866
3867 # Backslashify metacharacters that are still active within
3868 # double-quoted strings.
3869 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3870
3871 # Same as above, but do not quote variable references.
3872 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3873
3874 # Sed substitution to delay expansion of an escaped shell variable in a
3875 # double_quote_subst'ed string.
3876 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3877
3878 # Sed substitution to delay expansion of an escaped single quote.
3879 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3880
3881 # Sed substitution to avoid accidental globbing in evaled expressions
3882 no_glob_subst='s/\*/\\\*/g'
3883
3884 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3885 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3886 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3887
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3889 $as_echo_n "checking how to print strings... " >&6; }
3890 # Test print first, because it will be a builtin if present.
3891 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3892 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3893 ECHO='print -r --'
3894 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3895 ECHO='printf %s\n'
3896 else
3897 # Use this function as a fallback that always works.
3898 func_fallback_echo ()
3899 {
3900 eval 'cat <<_LTECHO_EOF
3901 $1
3902 _LTECHO_EOF'
3903 }
3904 ECHO='func_fallback_echo'
3905 fi
3906
3907 # func_echo_all arg...
3908 # Invoke $ECHO with all args, space-separated.
3909 func_echo_all ()
3910 {
3911 $ECHO ""
3912 }
3913
3914 case "$ECHO" in
3915 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3916 $as_echo "printf" >&6; } ;;
3917 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3918 $as_echo "print -r" >&6; } ;;
3919 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3920 $as_echo "cat" >&6; } ;;
3921 esac
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3937 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3938 if ${ac_cv_path_SED+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3942 for ac_i in 1 2 3 4 5 6 7; do
3943 ac_script="$ac_script$as_nl$ac_script"
3944 done
3945 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3946 { ac_script=; unset ac_script;}
3947 if test -z "$SED"; then
3948 ac_path_SED_found=false
3949 # Loop through the user's path and test for each of PROGNAME-LIST
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_prog in sed gsed; do
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3958 as_fn_executable_p "$ac_path_SED" || continue
3959 # Check for GNU ac_path_SED and select it if it is found.
3960 # Check for GNU $ac_path_SED
3961 case `"$ac_path_SED" --version 2>&1` in
3962 *GNU*)
3963 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3964 *)
3965 ac_count=0
3966 $as_echo_n 0123456789 >"conftest.in"
3967 while :
3968 do
3969 cat "conftest.in" "conftest.in" >"conftest.tmp"
3970 mv "conftest.tmp" "conftest.in"
3971 cp "conftest.in" "conftest.nl"
3972 $as_echo '' >> "conftest.nl"
3973 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3975 as_fn_arith $ac_count + 1 && ac_count=$as_val
3976 if test $ac_count -gt ${ac_path_SED_max-0}; then
3977 # Best one so far, save it but keep looking for a better one
3978 ac_cv_path_SED="$ac_path_SED"
3979 ac_path_SED_max=$ac_count
3980 fi
3981 # 10*(2^10) chars as input seems more than enough
3982 test $ac_count -gt 10 && break
3983 done
3984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3985 esac
3986
3987 $ac_path_SED_found && break 3
3988 done
3989 done
3990 done
3991 IFS=$as_save_IFS
3992 if test -z "$ac_cv_path_SED"; then
3993 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3994 fi
3995 else
3996 ac_cv_path_SED=$SED
3997 fi
3998
3999 fi
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4001 $as_echo "$ac_cv_path_SED" >&6; }
4002 SED="$ac_cv_path_SED"
4003 rm -f conftest.sed
4004
4005 test -z "$SED" && SED=sed
4006 Xsed="$SED -e 1s/^X//"
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4019 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4020 if ${ac_cv_path_GREP+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 if test -z "$GREP"; then
4024 ac_path_GREP_found=false
4025 # Loop through the user's path and test for each of PROGNAME-LIST
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4028 do
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_prog in grep ggrep; do
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4034 as_fn_executable_p "$ac_path_GREP" || continue
4035 # Check for GNU ac_path_GREP and select it if it is found.
4036 # Check for GNU $ac_path_GREP
4037 case `"$ac_path_GREP" --version 2>&1` in
4038 *GNU*)
4039 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4040 *)
4041 ac_count=0
4042 $as_echo_n 0123456789 >"conftest.in"
4043 while :
4044 do
4045 cat "conftest.in" "conftest.in" >"conftest.tmp"
4046 mv "conftest.tmp" "conftest.in"
4047 cp "conftest.in" "conftest.nl"
4048 $as_echo 'GREP' >> "conftest.nl"
4049 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051 as_fn_arith $ac_count + 1 && ac_count=$as_val
4052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4053 # Best one so far, save it but keep looking for a better one
4054 ac_cv_path_GREP="$ac_path_GREP"
4055 ac_path_GREP_max=$ac_count
4056 fi
4057 # 10*(2^10) chars as input seems more than enough
4058 test $ac_count -gt 10 && break
4059 done
4060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4061 esac
4062
4063 $ac_path_GREP_found && break 3
4064 done
4065 done
4066 done
4067 IFS=$as_save_IFS
4068 if test -z "$ac_cv_path_GREP"; then
4069 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4070 fi
4071 else
4072 ac_cv_path_GREP=$GREP
4073 fi
4074
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4077 $as_echo "$ac_cv_path_GREP" >&6; }
4078 GREP="$ac_cv_path_GREP"
4079
4080
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4082 $as_echo_n "checking for egrep... " >&6; }
4083 if ${ac_cv_path_EGREP+:} false; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4087 then ac_cv_path_EGREP="$GREP -E"
4088 else
4089 if test -z "$EGREP"; then
4090 ac_path_EGREP_found=false
4091 # Loop through the user's path and test for each of PROGNAME-LIST
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4094 do
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_prog in egrep; do
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4100 as_fn_executable_p "$ac_path_EGREP" || continue
4101 # Check for GNU ac_path_EGREP and select it if it is found.
4102 # Check for GNU $ac_path_EGREP
4103 case `"$ac_path_EGREP" --version 2>&1` in
4104 *GNU*)
4105 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4106 *)
4107 ac_count=0
4108 $as_echo_n 0123456789 >"conftest.in"
4109 while :
4110 do
4111 cat "conftest.in" "conftest.in" >"conftest.tmp"
4112 mv "conftest.tmp" "conftest.in"
4113 cp "conftest.in" "conftest.nl"
4114 $as_echo 'EGREP' >> "conftest.nl"
4115 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4117 as_fn_arith $ac_count + 1 && ac_count=$as_val
4118 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4119 # Best one so far, save it but keep looking for a better one
4120 ac_cv_path_EGREP="$ac_path_EGREP"
4121 ac_path_EGREP_max=$ac_count
4122 fi
4123 # 10*(2^10) chars as input seems more than enough
4124 test $ac_count -gt 10 && break
4125 done
4126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4127 esac
4128
4129 $ac_path_EGREP_found && break 3
4130 done
4131 done
4132 done
4133 IFS=$as_save_IFS
4134 if test -z "$ac_cv_path_EGREP"; then
4135 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4136 fi
4137 else
4138 ac_cv_path_EGREP=$EGREP
4139 fi
4140
4141 fi
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4144 $as_echo "$ac_cv_path_EGREP" >&6; }
4145 EGREP="$ac_cv_path_EGREP"
4146
4147
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4149 $as_echo_n "checking for fgrep... " >&6; }
4150 if ${ac_cv_path_FGREP+:} false; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4154 then ac_cv_path_FGREP="$GREP -F"
4155 else
4156 if test -z "$FGREP"; then
4157 ac_path_FGREP_found=false
4158 # Loop through the user's path and test for each of PROGNAME-LIST
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4161 do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_prog in fgrep; do
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4167 as_fn_executable_p "$ac_path_FGREP" || continue
4168 # Check for GNU ac_path_FGREP and select it if it is found.
4169 # Check for GNU $ac_path_FGREP
4170 case `"$ac_path_FGREP" --version 2>&1` in
4171 *GNU*)
4172 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4173 *)
4174 ac_count=0
4175 $as_echo_n 0123456789 >"conftest.in"
4176 while :
4177 do
4178 cat "conftest.in" "conftest.in" >"conftest.tmp"
4179 mv "conftest.tmp" "conftest.in"
4180 cp "conftest.in" "conftest.nl"
4181 $as_echo 'FGREP' >> "conftest.nl"
4182 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4184 as_fn_arith $ac_count + 1 && ac_count=$as_val
4185 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4186 # Best one so far, save it but keep looking for a better one
4187 ac_cv_path_FGREP="$ac_path_FGREP"
4188 ac_path_FGREP_max=$ac_count
4189 fi
4190 # 10*(2^10) chars as input seems more than enough
4191 test $ac_count -gt 10 && break
4192 done
4193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4194 esac
4195
4196 $ac_path_FGREP_found && break 3
4197 done
4198 done
4199 done
4200 IFS=$as_save_IFS
4201 if test -z "$ac_cv_path_FGREP"; then
4202 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4203 fi
4204 else
4205 ac_cv_path_FGREP=$FGREP
4206 fi
4207
4208 fi
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4211 $as_echo "$ac_cv_path_FGREP" >&6; }
4212 FGREP="$ac_cv_path_FGREP"
4213
4214
4215 test -z "$GREP" && GREP=grep
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235 # Check whether --with-gnu-ld was given.
4236 if test "${with_gnu_ld+set}" = set; then :
4237 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4238 else
4239 with_gnu_ld=no
4240 fi
4241
4242 ac_prog=ld
4243 if test "$GCC" = yes; then
4244 # Check if gcc -print-prog-name=ld gives a path.
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4246 $as_echo_n "checking for ld used by $CC... " >&6; }
4247 case $host in
4248 *-*-mingw*)
4249 # gcc leaves a trailing carriage return which upsets mingw
4250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4251 *)
4252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4253 esac
4254 case $ac_prog in
4255 # Accept absolute paths.
4256 [\\/]* | ?:[\\/]*)
4257 re_direlt='/[^/][^/]*/\.\./'
4258 # Canonicalize the pathname of ld
4259 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4260 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4261 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4262 done
4263 test -z "$LD" && LD="$ac_prog"
4264 ;;
4265 "")
4266 # If it fails, then pretend we aren't using GCC.
4267 ac_prog=ld
4268 ;;
4269 *)
4270 # If it is relative, then search for the first ld in PATH.
4271 with_gnu_ld=unknown
4272 ;;
4273 esac
4274 elif test "$with_gnu_ld" = yes; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4276 $as_echo_n "checking for GNU ld... " >&6; }
4277 else
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4279 $as_echo_n "checking for non-GNU ld... " >&6; }
4280 fi
4281 if ${lt_cv_path_LD+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 if test -z "$LD"; then
4285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4286 for ac_dir in $PATH; do
4287 IFS="$lt_save_ifs"
4288 test -z "$ac_dir" && ac_dir=.
4289 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4290 lt_cv_path_LD="$ac_dir/$ac_prog"
4291 # Check to see if the program is GNU ld. I'd rather use --version,
4292 # but apparently some variants of GNU ld only accept -v.
4293 # Break only if it was the GNU/non-GNU ld that we prefer.
4294 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4295 *GNU* | *'with BFD'*)
4296 test "$with_gnu_ld" != no && break
4297 ;;
4298 *)
4299 test "$with_gnu_ld" != yes && break
4300 ;;
4301 esac
4302 fi
4303 done
4304 IFS="$lt_save_ifs"
4305 else
4306 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4307 fi
4308 fi
4309
4310 LD="$lt_cv_path_LD"
4311 if test -n "$LD"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4313 $as_echo "$LD" >&6; }
4314 else
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4317 fi
4318 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4320 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4321 if ${lt_cv_prog_gnu_ld+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4325 case `$LD -v 2>&1 </dev/null` in
4326 *GNU* | *'with BFD'*)
4327 lt_cv_prog_gnu_ld=yes
4328 ;;
4329 *)
4330 lt_cv_prog_gnu_ld=no
4331 ;;
4332 esac
4333 fi
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4335 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4336 with_gnu_ld=$lt_cv_prog_gnu_ld
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4347 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4348 if ${lt_cv_path_NM+:} false; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 if test -n "$NM"; then
4352 # Let the user override the test.
4353 lt_cv_path_NM="$NM"
4354 else
4355 lt_nm_to_check="${ac_tool_prefix}nm"
4356 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4357 lt_nm_to_check="$lt_nm_to_check nm"
4358 fi
4359 for lt_tmp_nm in $lt_nm_to_check; do
4360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4361 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4362 IFS="$lt_save_ifs"
4363 test -z "$ac_dir" && ac_dir=.
4364 tmp_nm="$ac_dir/$lt_tmp_nm"
4365 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4366 # Check to see if the nm accepts a BSD-compat flag.
4367 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4368 # nm: unknown option "B" ignored
4369 # Tru64's nm complains that /dev/null is an invalid object file
4370 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4371 */dev/null* | *'Invalid file or object type'*)
4372 lt_cv_path_NM="$tmp_nm -B"
4373 break
4374 ;;
4375 *)
4376 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4377 */dev/null*)
4378 lt_cv_path_NM="$tmp_nm -p"
4379 break
4380 ;;
4381 *)
4382 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4383 continue # so that we can try to find one that supports BSD flags
4384 ;;
4385 esac
4386 ;;
4387 esac
4388 fi
4389 done
4390 IFS="$lt_save_ifs"
4391 done
4392 : ${lt_cv_path_NM=no}
4393 fi
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4396 $as_echo "$lt_cv_path_NM" >&6; }
4397 if test "$lt_cv_path_NM" != "no"; then
4398 NM="$lt_cv_path_NM"
4399 else
4400 # Didn't find any BSD compatible name lister, look for dumpbin.
4401 if test -n "$DUMPBIN"; then :
4402 # Let the user override the test.
4403 else
4404 if test -n "$ac_tool_prefix"; then
4405 for ac_prog in dumpbin "link -dump"
4406 do
4407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410 $as_echo_n "checking for $ac_word... " >&6; }
4411 if ${ac_cv_prog_DUMPBIN+:} false; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 if test -n "$DUMPBIN"; then
4415 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4427 fi
4428 done
4429 done
4430 IFS=$as_save_IFS
4431
4432 fi
4433 fi
4434 DUMPBIN=$ac_cv_prog_DUMPBIN
4435 if test -n "$DUMPBIN"; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4437 $as_echo "$DUMPBIN" >&6; }
4438 else
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 $as_echo "no" >&6; }
4441 fi
4442
4443
4444 test -n "$DUMPBIN" && break
4445 done
4446 fi
4447 if test -z "$DUMPBIN"; then
4448 ac_ct_DUMPBIN=$DUMPBIN
4449 for ac_prog in dumpbin "link -dump"
4450 do
4451 # Extract the first word of "$ac_prog", so it can be a program name with args.
4452 set dummy $ac_prog; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 if test -n "$ac_ct_DUMPBIN"; then
4459 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4471 fi
4472 done
4473 done
4474 IFS=$as_save_IFS
4475
4476 fi
4477 fi
4478 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4479 if test -n "$ac_ct_DUMPBIN"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4481 $as_echo "$ac_ct_DUMPBIN" >&6; }
4482 else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4485 fi
4486
4487
4488 test -n "$ac_ct_DUMPBIN" && break
4489 done
4490
4491 if test "x$ac_ct_DUMPBIN" = x; then
4492 DUMPBIN=":"
4493 else
4494 case $cross_compiling:$ac_tool_warned in
4495 yes:)
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4498 ac_tool_warned=yes ;;
4499 esac
4500 DUMPBIN=$ac_ct_DUMPBIN
4501 fi
4502 fi
4503
4504 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4505 *COFF*)
4506 DUMPBIN="$DUMPBIN -symbols"
4507 ;;
4508 *)
4509 DUMPBIN=:
4510 ;;
4511 esac
4512 fi
4513
4514 if test "$DUMPBIN" != ":"; then
4515 NM="$DUMPBIN"
4516 fi
4517 fi
4518 test -z "$NM" && NM=nm
4519
4520
4521
4522
4523
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4526 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4527 if ${lt_cv_nm_interface+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 lt_cv_nm_interface="BSD nm"
4531 echo "int some_variable = 0;" > conftest.$ac_ext
4532 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4533 (eval "$ac_compile" 2>conftest.err)
4534 cat conftest.err >&5
4535 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4536 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4537 cat conftest.err >&5
4538 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4539 cat conftest.out >&5
4540 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4541 lt_cv_nm_interface="MS dumpbin"
4542 fi
4543 rm -f conftest*
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4546 $as_echo "$lt_cv_nm_interface" >&6; }
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4549 $as_echo_n "checking whether ln -s works... " >&6; }
4550 LN_S=$as_ln_s
4551 if test "$LN_S" = "ln -s"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 $as_echo "yes" >&6; }
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4556 $as_echo "no, using $LN_S" >&6; }
4557 fi
4558
4559 # find the maximum length of command line arguments
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4561 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4562 if ${lt_cv_sys_max_cmd_len+:} false; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 i=0
4566 teststring="ABCD"
4567
4568 case $build_os in
4569 msdosdjgpp*)
4570 # On DJGPP, this test can blow up pretty badly due to problems in libc
4571 # (any single argument exceeding 2000 bytes causes a buffer overrun
4572 # during glob expansion). Even if it were fixed, the result of this
4573 # check would be larger than it should be.
4574 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4575 ;;
4576
4577 gnu*)
4578 # Under GNU Hurd, this test is not required because there is
4579 # no limit to the length of command line arguments.
4580 # Libtool will interpret -1 as no limit whatsoever
4581 lt_cv_sys_max_cmd_len=-1;
4582 ;;
4583
4584 cygwin* | mingw* | cegcc*)
4585 # On Win9x/ME, this test blows up -- it succeeds, but takes
4586 # about 5 minutes as the teststring grows exponentially.
4587 # Worse, since 9x/ME are not pre-emptively multitasking,
4588 # you end up with a "frozen" computer, even though with patience
4589 # the test eventually succeeds (with a max line length of 256k).
4590 # Instead, let's just punt: use the minimum linelength reported by
4591 # all of the supported platforms: 8192 (on NT/2K/XP).
4592 lt_cv_sys_max_cmd_len=8192;
4593 ;;
4594
4595 mint*)
4596 # On MiNT this can take a long time and run out of memory.
4597 lt_cv_sys_max_cmd_len=8192;
4598 ;;
4599
4600 amigaos*)
4601 # On AmigaOS with pdksh, this test takes hours, literally.
4602 # So we just punt and use a minimum line length of 8192.
4603 lt_cv_sys_max_cmd_len=8192;
4604 ;;
4605
4606 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4607 # This has been around since 386BSD, at least. Likely further.
4608 if test -x /sbin/sysctl; then
4609 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4610 elif test -x /usr/sbin/sysctl; then
4611 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4612 else
4613 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4614 fi
4615 # And add a safety zone
4616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4618 ;;
4619
4620 interix*)
4621 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4622 lt_cv_sys_max_cmd_len=196608
4623 ;;
4624
4625 os2*)
4626 # The test takes a long time on OS/2.
4627 lt_cv_sys_max_cmd_len=8192
4628 ;;
4629
4630 osf*)
4631 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4632 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4633 # nice to cause kernel panics so lets avoid the loop below.
4634 # First set a reasonable default.
4635 lt_cv_sys_max_cmd_len=16384
4636 #
4637 if test -x /sbin/sysconfig; then
4638 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4639 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4640 esac
4641 fi
4642 ;;
4643 sco3.2v5*)
4644 lt_cv_sys_max_cmd_len=102400
4645 ;;
4646 sysv5* | sco5v6* | sysv4.2uw2*)
4647 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4648 if test -n "$kargmax"; then
4649 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4650 else
4651 lt_cv_sys_max_cmd_len=32768
4652 fi
4653 ;;
4654 *)
4655 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4656 if test -n "$lt_cv_sys_max_cmd_len"; then
4657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4659 else
4660 # Make teststring a little bigger before we do anything with it.
4661 # a 1K string should be a reasonable start.
4662 for i in 1 2 3 4 5 6 7 8 ; do
4663 teststring=$teststring$teststring
4664 done
4665 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4666 # If test is not a shell built-in, we'll probably end up computing a
4667 # maximum length that is only half of the actual maximum length, but
4668 # we can't tell.
4669 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4670 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4671 test $i != 17 # 1/2 MB should be enough
4672 do
4673 i=`expr $i + 1`
4674 teststring=$teststring$teststring
4675 done
4676 # Only check the string length outside the loop.
4677 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4678 teststring=
4679 # Add a significant safety factor because C++ compilers can tack on
4680 # massive amounts of additional arguments before passing them to the
4681 # linker. It appears as though 1/2 is a usable value.
4682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4683 fi
4684 ;;
4685 esac
4686
4687 fi
4688
4689 if test -n $lt_cv_sys_max_cmd_len ; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4691 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4692 else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4694 $as_echo "none" >&6; }
4695 fi
4696 max_cmd_len=$lt_cv_sys_max_cmd_len
4697
4698
4699
4700
4701
4702
4703 : ${CP="cp -f"}
4704 : ${MV="mv -f"}
4705 : ${RM="rm -f"}
4706
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4708 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4709 # Try some XSI features
4710 xsi_shell=no
4711 ( _lt_dummy="a/b/c"
4712 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4713 = c,a/b,b/c, \
4714 && eval 'test $(( 1 + 1 )) -eq 2 \
4715 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4716 && xsi_shell=yes
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4718 $as_echo "$xsi_shell" >&6; }
4719
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4722 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4723 lt_shell_append=no
4724 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4725 >/dev/null 2>&1 \
4726 && lt_shell_append=yes
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4728 $as_echo "$lt_shell_append" >&6; }
4729
4730
4731 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4732 lt_unset=unset
4733 else
4734 lt_unset=false
4735 fi
4736
4737
4738
4739
4740
4741 # test EBCDIC or ASCII
4742 case `echo X|tr X '\101'` in
4743 A) # ASCII based system
4744 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4745 lt_SP2NL='tr \040 \012'
4746 lt_NL2SP='tr \015\012 \040\040'
4747 ;;
4748 *) # EBCDIC based system
4749 lt_SP2NL='tr \100 \n'
4750 lt_NL2SP='tr \r\n \100\100'
4751 ;;
4752 esac
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4763 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4764 if ${lt_cv_to_host_file_cmd+:} false; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 case $host in
4768 *-*-mingw* )
4769 case $build in
4770 *-*-mingw* ) # actually msys
4771 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4772 ;;
4773 *-*-cygwin* )
4774 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4775 ;;
4776 * ) # otherwise, assume *nix
4777 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4778 ;;
4779 esac
4780 ;;
4781 *-*-cygwin* )
4782 case $build in
4783 *-*-mingw* ) # actually msys
4784 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4785 ;;
4786 *-*-cygwin* )
4787 lt_cv_to_host_file_cmd=func_convert_file_noop
4788 ;;
4789 * ) # otherwise, assume *nix
4790 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4791 ;;
4792 esac
4793 ;;
4794 * ) # unhandled hosts (and "normal" native builds)
4795 lt_cv_to_host_file_cmd=func_convert_file_noop
4796 ;;
4797 esac
4798
4799 fi
4800
4801 to_host_file_cmd=$lt_cv_to_host_file_cmd
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4803 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4804
4805
4806
4807
4808
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4810 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4811 if ${lt_cv_to_tool_file_cmd+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 #assume ordinary cross tools, or native build.
4815 lt_cv_to_tool_file_cmd=func_convert_file_noop
4816 case $host in
4817 *-*-mingw* )
4818 case $build in
4819 *-*-mingw* ) # actually msys
4820 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4821 ;;
4822 esac
4823 ;;
4824 esac
4825
4826 fi
4827
4828 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4830 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4831
4832
4833
4834
4835
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4837 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4838 if ${lt_cv_ld_reload_flag+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 lt_cv_ld_reload_flag='-r'
4842 fi
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4844 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4845 reload_flag=$lt_cv_ld_reload_flag
4846 case $reload_flag in
4847 "" | " "*) ;;
4848 *) reload_flag=" $reload_flag" ;;
4849 esac
4850 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4851 case $host_os in
4852 cygwin* | mingw* | pw32* | cegcc*)
4853 if test "$GCC" != yes; then
4854 reload_cmds=false
4855 fi
4856 ;;
4857 darwin*)
4858 if test "$GCC" = yes; then
4859 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4860 else
4861 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4862 fi
4863 ;;
4864 esac
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874 if test -n "$ac_tool_prefix"; then
4875 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4876 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if ${ac_cv_prog_OBJDUMP+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 if test -n "$OBJDUMP"; then
4883 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4895 fi
4896 done
4897 done
4898 IFS=$as_save_IFS
4899
4900 fi
4901 fi
4902 OBJDUMP=$ac_cv_prog_OBJDUMP
4903 if test -n "$OBJDUMP"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4905 $as_echo "$OBJDUMP" >&6; }
4906 else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4909 fi
4910
4911
4912 fi
4913 if test -z "$ac_cv_prog_OBJDUMP"; then
4914 ac_ct_OBJDUMP=$OBJDUMP
4915 # Extract the first word of "objdump", so it can be a program name with args.
4916 set dummy objdump; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -n "$ac_ct_OBJDUMP"; then
4923 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4927 do
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4932 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4935 fi
4936 done
4937 done
4938 IFS=$as_save_IFS
4939
4940 fi
4941 fi
4942 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4943 if test -n "$ac_ct_OBJDUMP"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4945 $as_echo "$ac_ct_OBJDUMP" >&6; }
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4949 fi
4950
4951 if test "x$ac_ct_OBJDUMP" = x; then
4952 OBJDUMP="false"
4953 else
4954 case $cross_compiling:$ac_tool_warned in
4955 yes:)
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4958 ac_tool_warned=yes ;;
4959 esac
4960 OBJDUMP=$ac_ct_OBJDUMP
4961 fi
4962 else
4963 OBJDUMP="$ac_cv_prog_OBJDUMP"
4964 fi
4965
4966 test -z "$OBJDUMP" && OBJDUMP=objdump
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4977 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4978 if ${lt_cv_deplibs_check_method+:} false; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 lt_cv_file_magic_cmd='$MAGIC_CMD'
4982 lt_cv_file_magic_test_file=
4983 lt_cv_deplibs_check_method='unknown'
4984 # Need to set the preceding variable on all platforms that support
4985 # interlibrary dependencies.
4986 # 'none' -- dependencies not supported.
4987 # `unknown' -- same as none, but documents that we really don't know.
4988 # 'pass_all' -- all dependencies passed with no checks.
4989 # 'test_compile' -- check by making test program.
4990 # 'file_magic [[regex]]' -- check by looking for files in library path
4991 # which responds to the $file_magic_cmd with a given extended regex.
4992 # If you have `file' or equivalent on your system and you're not sure
4993 # whether `pass_all' will *always* work, you probably want this one.
4994
4995 case $host_os in
4996 aix[4-9]*)
4997 lt_cv_deplibs_check_method=pass_all
4998 ;;
4999
5000 beos*)
5001 lt_cv_deplibs_check_method=pass_all
5002 ;;
5003
5004 bsdi[45]*)
5005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5006 lt_cv_file_magic_cmd='/usr/bin/file -L'
5007 lt_cv_file_magic_test_file=/shlib/libc.so
5008 ;;
5009
5010 cygwin*)
5011 # func_win32_libid is a shell function defined in ltmain.sh
5012 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5013 lt_cv_file_magic_cmd='func_win32_libid'
5014 ;;
5015
5016 mingw* | pw32*)
5017 # Base MSYS/MinGW do not provide the 'file' command needed by
5018 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5019 # unless we find 'file', for example because we are cross-compiling.
5020 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5021 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5022 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5023 lt_cv_file_magic_cmd='func_win32_libid'
5024 else
5025 # Keep this pattern in sync with the one in func_win32_libid.
5026 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5027 lt_cv_file_magic_cmd='$OBJDUMP -f'
5028 fi
5029 ;;
5030
5031 cegcc*)
5032 # use the weaker test based on 'objdump'. See mingw*.
5033 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5034 lt_cv_file_magic_cmd='$OBJDUMP -f'
5035 ;;
5036
5037 darwin* | rhapsody*)
5038 lt_cv_deplibs_check_method=pass_all
5039 ;;
5040
5041 freebsd* | dragonfly*)
5042 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5043 case $host_cpu in
5044 i*86 )
5045 # Not sure whether the presence of OpenBSD here was a mistake.
5046 # Let's accept both of them until this is cleared up.
5047 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5048 lt_cv_file_magic_cmd=/usr/bin/file
5049 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5050 ;;
5051 esac
5052 else
5053 lt_cv_deplibs_check_method=pass_all
5054 fi
5055 ;;
5056
5057 gnu*)
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
5060
5061 haiku*)
5062 lt_cv_deplibs_check_method=pass_all
5063 ;;
5064
5065 hpux10.20* | hpux11*)
5066 lt_cv_file_magic_cmd=/usr/bin/file
5067 case $host_cpu in
5068 ia64*)
5069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5070 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5071 ;;
5072 hppa*64*)
5073 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]'
5074 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5075 ;;
5076 *)
5077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5078 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5079 ;;
5080 esac
5081 ;;
5082
5083 interix[3-9]*)
5084 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5086 ;;
5087
5088 irix5* | irix6* | nonstopux*)
5089 case $LD in
5090 *-32|*"-32 ") libmagic=32-bit;;
5091 *-n32|*"-n32 ") libmagic=N32;;
5092 *-64|*"-64 ") libmagic=64-bit;;
5093 *) libmagic=never-match;;
5094 esac
5095 lt_cv_deplibs_check_method=pass_all
5096 ;;
5097
5098 # This must be glibc/ELF.
5099 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5100 lt_cv_deplibs_check_method=pass_all
5101 ;;
5102
5103 netbsd* | netbsdelf*-gnu)
5104 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5106 else
5107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5108 fi
5109 ;;
5110
5111 newos6*)
5112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5113 lt_cv_file_magic_cmd=/usr/bin/file
5114 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5115 ;;
5116
5117 *nto* | *qnx*)
5118 lt_cv_deplibs_check_method=pass_all
5119 ;;
5120
5121 openbsd*)
5122 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5124 else
5125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5126 fi
5127 ;;
5128
5129 osf3* | osf4* | osf5*)
5130 lt_cv_deplibs_check_method=pass_all
5131 ;;
5132
5133 rdos*)
5134 lt_cv_deplibs_check_method=pass_all
5135 ;;
5136
5137 solaris*)
5138 lt_cv_deplibs_check_method=pass_all
5139 ;;
5140
5141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5142 lt_cv_deplibs_check_method=pass_all
5143 ;;
5144
5145 sysv4 | sysv4.3*)
5146 case $host_vendor in
5147 motorola)
5148 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]'
5149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5150 ;;
5151 ncr)
5152 lt_cv_deplibs_check_method=pass_all
5153 ;;
5154 sequent)
5155 lt_cv_file_magic_cmd='/bin/file'
5156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5157 ;;
5158 sni)
5159 lt_cv_file_magic_cmd='/bin/file'
5160 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5161 lt_cv_file_magic_test_file=/lib/libc.so
5162 ;;
5163 siemens)
5164 lt_cv_deplibs_check_method=pass_all
5165 ;;
5166 pc)
5167 lt_cv_deplibs_check_method=pass_all
5168 ;;
5169 esac
5170 ;;
5171
5172 tpf*)
5173 lt_cv_deplibs_check_method=pass_all
5174 ;;
5175 esac
5176
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5179 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5180
5181 file_magic_glob=
5182 want_nocaseglob=no
5183 if test "$build" = "$host"; then
5184 case $host_os in
5185 mingw* | pw32*)
5186 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5187 want_nocaseglob=yes
5188 else
5189 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5190 fi
5191 ;;
5192 esac
5193 fi
5194
5195 file_magic_cmd=$lt_cv_file_magic_cmd
5196 deplibs_check_method=$lt_cv_deplibs_check_method
5197 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220 if test -n "$ac_tool_prefix"; then
5221 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5222 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_DLLTOOL+:} false; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 if test -n "$DLLTOOL"; then
5229 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242 done
5243 done
5244 IFS=$as_save_IFS
5245
5246 fi
5247 fi
5248 DLLTOOL=$ac_cv_prog_DLLTOOL
5249 if test -n "$DLLTOOL"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5251 $as_echo "$DLLTOOL" >&6; }
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256
5257
5258 fi
5259 if test -z "$ac_cv_prog_DLLTOOL"; then
5260 ac_ct_DLLTOOL=$DLLTOOL
5261 # Extract the first word of "dlltool", so it can be a program name with args.
5262 set dummy dlltool; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 if test -n "$ac_ct_DLLTOOL"; then
5269 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282 done
5283 done
5284 IFS=$as_save_IFS
5285
5286 fi
5287 fi
5288 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5289 if test -n "$ac_ct_DLLTOOL"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5291 $as_echo "$ac_ct_DLLTOOL" >&6; }
5292 else
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 fi
5296
5297 if test "x$ac_ct_DLLTOOL" = x; then
5298 DLLTOOL="false"
5299 else
5300 case $cross_compiling:$ac_tool_warned in
5301 yes:)
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304 ac_tool_warned=yes ;;
5305 esac
5306 DLLTOOL=$ac_ct_DLLTOOL
5307 fi
5308 else
5309 DLLTOOL="$ac_cv_prog_DLLTOOL"
5310 fi
5311
5312 test -z "$DLLTOOL" && DLLTOOL=dlltool
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5324 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5325 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 lt_cv_sharedlib_from_linklib_cmd='unknown'
5329
5330 case $host_os in
5331 cygwin* | mingw* | pw32* | cegcc*)
5332 # two different shell functions defined in ltmain.sh
5333 # decide which to use based on capabilities of $DLLTOOL
5334 case `$DLLTOOL --help 2>&1` in
5335 *--identify-strict*)
5336 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5337 ;;
5338 *)
5339 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5340 ;;
5341 esac
5342 ;;
5343 *)
5344 # fallback: assume linklib IS sharedlib
5345 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5346 ;;
5347 esac
5348
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5351 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5352 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5353 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5354
5355
5356
5357
5358
5359
5360
5361
5362 if test -n "$ac_tool_prefix"; then
5363 for ac_prog in ar
5364 do
5365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_AR+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -n "$AR"; then
5373 ac_cv_prog_AR="$AR" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5385 fi
5386 done
5387 done
5388 IFS=$as_save_IFS
5389
5390 fi
5391 fi
5392 AR=$ac_cv_prog_AR
5393 if test -n "$AR"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5395 $as_echo "$AR" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400
5401
5402 test -n "$AR" && break
5403 done
5404 fi
5405 if test -z "$AR"; then
5406 ac_ct_AR=$AR
5407 for ac_prog in ar
5408 do
5409 # Extract the first word of "$ac_prog", so it can be a program name with args.
5410 set dummy $ac_prog; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 if test -n "$ac_ct_AR"; then
5417 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5421 do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_prog_ac_ct_AR="$ac_prog"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5429 fi
5430 done
5431 done
5432 IFS=$as_save_IFS
5433
5434 fi
5435 fi
5436 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5437 if test -n "$ac_ct_AR"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5439 $as_echo "$ac_ct_AR" >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5443 fi
5444
5445
5446 test -n "$ac_ct_AR" && break
5447 done
5448
5449 if test "x$ac_ct_AR" = x; then
5450 AR="false"
5451 else
5452 case $cross_compiling:$ac_tool_warned in
5453 yes:)
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5456 ac_tool_warned=yes ;;
5457 esac
5458 AR=$ac_ct_AR
5459 fi
5460 fi
5461
5462 : ${AR=ar}
5463 : ${AR_FLAGS=cru}
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5476 $as_echo_n "checking for archiver @FILE support... " >&6; }
5477 if ${lt_cv_ar_at_file+:} false; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 lt_cv_ar_at_file=no
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5483
5484 int
5485 main ()
5486 {
5487
5488 ;
5489 return 0;
5490 }
5491 _ACEOF
5492 if ac_fn_c_try_compile "$LINENO"; then :
5493 echo conftest.$ac_objext > conftest.lst
5494 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5496 (eval $lt_ar_try) 2>&5
5497 ac_status=$?
5498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5499 test $ac_status = 0; }
5500 if test "$ac_status" -eq 0; then
5501 # Ensure the archiver fails upon bogus file names.
5502 rm -f conftest.$ac_objext libconftest.a
5503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5504 (eval $lt_ar_try) 2>&5
5505 ac_status=$?
5506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5507 test $ac_status = 0; }
5508 if test "$ac_status" -ne 0; then
5509 lt_cv_ar_at_file=@
5510 fi
5511 fi
5512 rm -f conftest.* libconftest.a
5513
5514 fi
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516
5517 fi
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5519 $as_echo "$lt_cv_ar_at_file" >&6; }
5520
5521 if test "x$lt_cv_ar_at_file" = xno; then
5522 archiver_list_spec=
5523 else
5524 archiver_list_spec=$lt_cv_ar_at_file
5525 fi
5526
5527
5528
5529
5530
5531
5532
5533 if test -n "$ac_tool_prefix"; then
5534 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5535 set dummy ${ac_tool_prefix}strip; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if ${ac_cv_prog_STRIP+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if test -n "$STRIP"; then
5542 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555 done
5556 done
5557 IFS=$as_save_IFS
5558
5559 fi
5560 fi
5561 STRIP=$ac_cv_prog_STRIP
5562 if test -n "$STRIP"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5564 $as_echo "$STRIP" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5568 fi
5569
5570
5571 fi
5572 if test -z "$ac_cv_prog_STRIP"; then
5573 ac_ct_STRIP=$STRIP
5574 # Extract the first word of "strip", so it can be a program name with args.
5575 set dummy strip; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$ac_ct_STRIP"; then
5582 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_ac_ct_STRIP="strip"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5594 fi
5595 done
5596 done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5602 if test -n "$ac_ct_STRIP"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5604 $as_echo "$ac_ct_STRIP" >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609
5610 if test "x$ac_ct_STRIP" = x; then
5611 STRIP=":"
5612 else
5613 case $cross_compiling:$ac_tool_warned in
5614 yes:)
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5617 ac_tool_warned=yes ;;
5618 esac
5619 STRIP=$ac_ct_STRIP
5620 fi
5621 else
5622 STRIP="$ac_cv_prog_STRIP"
5623 fi
5624
5625 test -z "$STRIP" && STRIP=:
5626
5627
5628
5629
5630
5631
5632 if test -n "$ac_tool_prefix"; then
5633 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5634 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_RANLIB+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -n "$RANLIB"; then
5641 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 RANLIB=$ac_cv_prog_RANLIB
5661 if test -n "$RANLIB"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5663 $as_echo "$RANLIB" >&6; }
5664 else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670 fi
5671 if test -z "$ac_cv_prog_RANLIB"; then
5672 ac_ct_RANLIB=$RANLIB
5673 # Extract the first word of "ranlib", so it can be a program name with args.
5674 set dummy ranlib; ac_word=$2
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 if test -n "$ac_ct_RANLIB"; then
5681 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5682 else
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690 ac_cv_prog_ac_ct_RANLIB="ranlib"
5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694 done
5695 done
5696 IFS=$as_save_IFS
5697
5698 fi
5699 fi
5700 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5701 if test -n "$ac_ct_RANLIB"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5703 $as_echo "$ac_ct_RANLIB" >&6; }
5704 else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5707 fi
5708
5709 if test "x$ac_ct_RANLIB" = x; then
5710 RANLIB=":"
5711 else
5712 case $cross_compiling:$ac_tool_warned in
5713 yes:)
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5716 ac_tool_warned=yes ;;
5717 esac
5718 RANLIB=$ac_ct_RANLIB
5719 fi
5720 else
5721 RANLIB="$ac_cv_prog_RANLIB"
5722 fi
5723
5724 test -z "$RANLIB" && RANLIB=:
5725
5726
5727
5728
5729
5730
5731 # Determine commands to create old-style static archives.
5732 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5733 old_postinstall_cmds='chmod 644 $oldlib'
5734 old_postuninstall_cmds=
5735
5736 if test -n "$RANLIB"; then
5737 case $host_os in
5738 openbsd*)
5739 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5740 ;;
5741 *)
5742 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5743 ;;
5744 esac
5745 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5746 fi
5747
5748 case $host_os in
5749 darwin*)
5750 lock_old_archive_extraction=yes ;;
5751 *)
5752 lock_old_archive_extraction=no ;;
5753 esac
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793 # If no C compiler was specified, use CC.
5794 LTCC=${LTCC-"$CC"}
5795
5796 # If no C compiler flags were specified, use CFLAGS.
5797 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5798
5799 # Allow CC to be a program name with arguments.
5800 compiler=$CC
5801
5802
5803 # Check for command to grab the raw symbol name followed by C symbol from nm.
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5805 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5806 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809
5810 # These are sane defaults that work on at least a few old systems.
5811 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5812
5813 # Character class describing NM global symbol codes.
5814 symcode='[BCDEGRST]'
5815
5816 # Regexp to match symbols that can be accessed directly from C.
5817 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5818
5819 # Define system-specific variables.
5820 case $host_os in
5821 aix*)
5822 symcode='[BCDT]'
5823 ;;
5824 cygwin* | mingw* | pw32* | cegcc*)
5825 symcode='[ABCDGISTW]'
5826 ;;
5827 hpux*)
5828 if test "$host_cpu" = ia64; then
5829 symcode='[ABCDEGRST]'
5830 fi
5831 ;;
5832 irix* | nonstopux*)
5833 symcode='[BCDEGRST]'
5834 ;;
5835 osf*)
5836 symcode='[BCDEGQRST]'
5837 ;;
5838 solaris*)
5839 symcode='[BDRT]'
5840 ;;
5841 sco3.2v5*)
5842 symcode='[DT]'
5843 ;;
5844 sysv4.2uw2*)
5845 symcode='[DT]'
5846 ;;
5847 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5848 symcode='[ABDT]'
5849 ;;
5850 sysv4)
5851 symcode='[DFNSTU]'
5852 ;;
5853 esac
5854
5855 # If we're using GNU nm, then use its standard symbol codes.
5856 case `$NM -V 2>&1` in
5857 *GNU* | *'with BFD'*)
5858 symcode='[ABCDGIRSTW]' ;;
5859 esac
5860
5861 # Transform an extracted symbol line into a proper C declaration.
5862 # Some systems (esp. on ia64) link data and code symbols differently,
5863 # so use this general approach.
5864 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5865
5866 # Transform an extracted symbol line into symbol name and symbol address
5867 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5868 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'"
5869
5870 # Handle CRLF in mingw tool chain
5871 opt_cr=
5872 case $build_os in
5873 mingw*)
5874 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5875 ;;
5876 esac
5877
5878 # Try without a prefix underscore, then with it.
5879 for ac_symprfx in "" "_"; do
5880
5881 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5882 symxfrm="\\1 $ac_symprfx\\2 \\2"
5883
5884 # Write the raw and C identifiers.
5885 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5886 # Fake it for dumpbin and say T for any non-static function
5887 # and D for any global variable.
5888 # Also find C++ and __fastcall symbols from MSVC++,
5889 # which start with @ or ?.
5890 lt_cv_sys_global_symbol_pipe="$AWK '"\
5891 " {last_section=section; section=\$ 3};"\
5892 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5893 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5894 " \$ 0!~/External *\|/{next};"\
5895 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5896 " {if(hide[section]) next};"\
5897 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5898 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5899 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5900 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5901 " ' prfx=^$ac_symprfx"
5902 else
5903 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5904 fi
5905 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5906
5907 # Check to see that the pipe works correctly.
5908 pipe_works=no
5909
5910 rm -f conftest*
5911 cat > conftest.$ac_ext <<_LT_EOF
5912 #ifdef __cplusplus
5913 extern "C" {
5914 #endif
5915 char nm_test_var;
5916 void nm_test_func(void);
5917 void nm_test_func(void){}
5918 #ifdef __cplusplus
5919 }
5920 #endif
5921 int main(){nm_test_var='a';nm_test_func();return(0);}
5922 _LT_EOF
5923
5924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5925 (eval $ac_compile) 2>&5
5926 ac_status=$?
5927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5928 test $ac_status = 0; }; then
5929 # Now try to grab the symbols.
5930 nlist=conftest.nm
5931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5932 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5933 ac_status=$?
5934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5935 test $ac_status = 0; } && test -s "$nlist"; then
5936 # Try sorting and uniquifying the output.
5937 if sort "$nlist" | uniq > "$nlist"T; then
5938 mv -f "$nlist"T "$nlist"
5939 else
5940 rm -f "$nlist"T
5941 fi
5942
5943 # Make sure that we snagged all the symbols we need.
5944 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5945 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5946 cat <<_LT_EOF > conftest.$ac_ext
5947 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5948 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5949 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5950 relocations are performed -- see ld's documentation on pseudo-relocs. */
5951 # define LT_DLSYM_CONST
5952 #elif defined(__osf__)
5953 /* This system does not cope well with relocations in const data. */
5954 # define LT_DLSYM_CONST
5955 #else
5956 # define LT_DLSYM_CONST const
5957 #endif
5958
5959 #ifdef __cplusplus
5960 extern "C" {
5961 #endif
5962
5963 _LT_EOF
5964 # Now generate the symbol file.
5965 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5966
5967 cat <<_LT_EOF >> conftest.$ac_ext
5968
5969 /* The mapping between symbol names and symbols. */
5970 LT_DLSYM_CONST struct {
5971 const char *name;
5972 void *address;
5973 }
5974 lt__PROGRAM__LTX_preloaded_symbols[] =
5975 {
5976 { "@PROGRAM@", (void *) 0 },
5977 _LT_EOF
5978 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5979 cat <<\_LT_EOF >> conftest.$ac_ext
5980 {0, (void *) 0}
5981 };
5982
5983 /* This works around a problem in FreeBSD linker */
5984 #ifdef FREEBSD_WORKAROUND
5985 static const void *lt_preloaded_setup() {
5986 return lt__PROGRAM__LTX_preloaded_symbols;
5987 }
5988 #endif
5989
5990 #ifdef __cplusplus
5991 }
5992 #endif
5993 _LT_EOF
5994 # Now try linking the two files.
5995 mv conftest.$ac_objext conftstm.$ac_objext
5996 lt_globsym_save_LIBS=$LIBS
5997 lt_globsym_save_CFLAGS=$CFLAGS
5998 LIBS="conftstm.$ac_objext"
5999 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6001 (eval $ac_link) 2>&5
6002 ac_status=$?
6003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6005 pipe_works=yes
6006 fi
6007 LIBS=$lt_globsym_save_LIBS
6008 CFLAGS=$lt_globsym_save_CFLAGS
6009 else
6010 echo "cannot find nm_test_func in $nlist" >&5
6011 fi
6012 else
6013 echo "cannot find nm_test_var in $nlist" >&5
6014 fi
6015 else
6016 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6017 fi
6018 else
6019 echo "$progname: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6021 fi
6022 rm -rf conftest* conftst*
6023
6024 # Do not use the global_symbol_pipe unless it works.
6025 if test "$pipe_works" = yes; then
6026 break
6027 else
6028 lt_cv_sys_global_symbol_pipe=
6029 fi
6030 done
6031
6032 fi
6033
6034 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6035 lt_cv_sys_global_symbol_to_cdecl=
6036 fi
6037 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6039 $as_echo "failed" >&6; }
6040 else
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6042 $as_echo "ok" >&6; }
6043 fi
6044
6045 # Response file support.
6046 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6047 nm_file_list_spec='@'
6048 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6049 nm_file_list_spec='@'
6050 fi
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6079 $as_echo_n "checking for sysroot... " >&6; }
6080
6081 # Check whether --with-sysroot was given.
6082 if test "${with_sysroot+set}" = set; then :
6083 withval=$with_sysroot;
6084 else
6085 with_sysroot=no
6086 fi
6087
6088
6089 lt_sysroot=
6090 case ${with_sysroot} in #(
6091 yes)
6092 if test "$GCC" = yes; then
6093 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6094 fi
6095 ;; #(
6096 /*)
6097 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6098 ;; #(
6099 no|'')
6100 ;; #(
6101 *)
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6103 $as_echo "${with_sysroot}" >&6; }
6104 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6105 ;;
6106 esac
6107
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6109 $as_echo "${lt_sysroot:-no}" >&6; }
6110
6111
6112
6113
6114
6115 # Check whether --enable-libtool-lock was given.
6116 if test "${enable_libtool_lock+set}" = set; then :
6117 enableval=$enable_libtool_lock;
6118 fi
6119
6120 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6121
6122 # Some flags need to be propagated to the compiler or linker for good
6123 # libtool support.
6124 case $host in
6125 ia64-*-hpux*)
6126 # Find out which ABI we are using.
6127 echo 'int i;' > conftest.$ac_ext
6128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6129 (eval $ac_compile) 2>&5
6130 ac_status=$?
6131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6132 test $ac_status = 0; }; then
6133 case `/usr/bin/file conftest.$ac_objext` in
6134 *ELF-32*)
6135 HPUX_IA64_MODE="32"
6136 ;;
6137 *ELF-64*)
6138 HPUX_IA64_MODE="64"
6139 ;;
6140 esac
6141 fi
6142 rm -rf conftest*
6143 ;;
6144 *-*-irix6*)
6145 # Find out which ABI we are using.
6146 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6148 (eval $ac_compile) 2>&5
6149 ac_status=$?
6150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6151 test $ac_status = 0; }; then
6152 if test "$lt_cv_prog_gnu_ld" = yes; then
6153 case `/usr/bin/file conftest.$ac_objext` in
6154 *32-bit*)
6155 LD="${LD-ld} -melf32bsmip"
6156 ;;
6157 *N32*)
6158 LD="${LD-ld} -melf32bmipn32"
6159 ;;
6160 *64-bit*)
6161 LD="${LD-ld} -melf64bmip"
6162 ;;
6163 esac
6164 else
6165 case `/usr/bin/file conftest.$ac_objext` in
6166 *32-bit*)
6167 LD="${LD-ld} -32"
6168 ;;
6169 *N32*)
6170 LD="${LD-ld} -n32"
6171 ;;
6172 *64-bit*)
6173 LD="${LD-ld} -64"
6174 ;;
6175 esac
6176 fi
6177 fi
6178 rm -rf conftest*
6179 ;;
6180
6181 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6182 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6183 # Find out which ABI we are using.
6184 echo 'int i;' > conftest.$ac_ext
6185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6186 (eval $ac_compile) 2>&5
6187 ac_status=$?
6188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6189 test $ac_status = 0; }; then
6190 case `/usr/bin/file conftest.o` in
6191 *32-bit*)
6192 case $host in
6193 x86_64-*kfreebsd*-gnu)
6194 LD="${LD-ld} -m elf_i386_fbsd"
6195 ;;
6196 x86_64-*linux*)
6197 LD="${LD-ld} -m elf_i386"
6198 ;;
6199 ppc64-*linux*|powerpc64-*linux*)
6200 LD="${LD-ld} -m elf32ppclinux"
6201 ;;
6202 s390x-*linux*)
6203 LD="${LD-ld} -m elf_s390"
6204 ;;
6205 sparc64-*linux*)
6206 LD="${LD-ld} -m elf32_sparc"
6207 ;;
6208 esac
6209 ;;
6210 *64-bit*)
6211 case $host in
6212 x86_64-*kfreebsd*-gnu)
6213 LD="${LD-ld} -m elf_x86_64_fbsd"
6214 ;;
6215 x86_64-*linux*)
6216 LD="${LD-ld} -m elf_x86_64"
6217 ;;
6218 ppc*-*linux*|powerpc*-*linux*)
6219 LD="${LD-ld} -m elf64ppc"
6220 ;;
6221 s390*-*linux*|s390*-*tpf*)
6222 LD="${LD-ld} -m elf64_s390"
6223 ;;
6224 sparc*-*linux*)
6225 LD="${LD-ld} -m elf64_sparc"
6226 ;;
6227 esac
6228 ;;
6229 esac
6230 fi
6231 rm -rf conftest*
6232 ;;
6233
6234 *-*-sco3.2v5*)
6235 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6236 SAVE_CFLAGS="$CFLAGS"
6237 CFLAGS="$CFLAGS -belf"
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6239 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6240 if ${lt_cv_cc_needs_belf+:} false; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 ac_ext=c
6244 ac_cpp='$CPP $CPPFLAGS'
6245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6248
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6251
6252 int
6253 main ()
6254 {
6255
6256 ;
6257 return 0;
6258 }
6259 _ACEOF
6260 if ac_fn_c_try_link "$LINENO"; then :
6261 lt_cv_cc_needs_belf=yes
6262 else
6263 lt_cv_cc_needs_belf=no
6264 fi
6265 rm -f core conftest.err conftest.$ac_objext \
6266 conftest$ac_exeext conftest.$ac_ext
6267 ac_ext=c
6268 ac_cpp='$CPP $CPPFLAGS'
6269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6272
6273 fi
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6275 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6276 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6277 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6278 CFLAGS="$SAVE_CFLAGS"
6279 fi
6280 ;;
6281 *-*solaris*)
6282 # Find out which ABI we are using.
6283 echo 'int i;' > conftest.$ac_ext
6284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6285 (eval $ac_compile) 2>&5
6286 ac_status=$?
6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288 test $ac_status = 0; }; then
6289 case `/usr/bin/file conftest.o` in
6290 *64-bit*)
6291 case $lt_cv_prog_gnu_ld in
6292 yes*)
6293 case $host in
6294 i?86-*-solaris*)
6295 LD="${LD-ld} -m elf_x86_64"
6296 ;;
6297 sparc*-*-solaris*)
6298 LD="${LD-ld} -m elf64_sparc"
6299 ;;
6300 esac
6301 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6302 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6303 LD="${LD-ld}_sol2"
6304 fi
6305 ;;
6306 *)
6307 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6308 LD="${LD-ld} -64"
6309 fi
6310 ;;
6311 esac
6312 ;;
6313 esac
6314 fi
6315 rm -rf conftest*
6316 ;;
6317 esac
6318
6319 need_locks="$enable_libtool_lock"
6320
6321 if test -n "$ac_tool_prefix"; then
6322 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6323 set dummy ${ac_tool_prefix}mt; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 if test -n "$MANIFEST_TOOL"; then
6330 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6339 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6342 fi
6343 done
6344 done
6345 IFS=$as_save_IFS
6346
6347 fi
6348 fi
6349 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6350 if test -n "$MANIFEST_TOOL"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6352 $as_echo "$MANIFEST_TOOL" >&6; }
6353 else
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6356 fi
6357
6358
6359 fi
6360 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6361 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6362 # Extract the first word of "mt", so it can be a program name with args.
6363 set dummy mt; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 if test -n "$ac_ct_MANIFEST_TOOL"; then
6370 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6379 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 break 2
6382 fi
6383 done
6384 done
6385 IFS=$as_save_IFS
6386
6387 fi
6388 fi
6389 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6390 if test -n "$ac_ct_MANIFEST_TOOL"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6392 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6393 else
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6396 fi
6397
6398 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6399 MANIFEST_TOOL=":"
6400 else
6401 case $cross_compiling:$ac_tool_warned in
6402 yes:)
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405 ac_tool_warned=yes ;;
6406 esac
6407 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6408 fi
6409 else
6410 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6411 fi
6412
6413 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6415 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6416 if ${lt_cv_path_mainfest_tool+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 lt_cv_path_mainfest_tool=no
6420 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6421 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6422 cat conftest.err >&5
6423 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6424 lt_cv_path_mainfest_tool=yes
6425 fi
6426 rm -f conftest*
6427 fi
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6429 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6430 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6431 MANIFEST_TOOL=:
6432 fi
6433
6434
6435
6436
6437
6438
6439 case $host_os in
6440 rhapsody* | darwin*)
6441 if test -n "$ac_tool_prefix"; then
6442 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6443 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 if test -n "$DSYMUTIL"; then
6450 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6462 fi
6463 done
6464 done
6465 IFS=$as_save_IFS
6466
6467 fi
6468 fi
6469 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6470 if test -n "$DSYMUTIL"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6472 $as_echo "$DSYMUTIL" >&6; }
6473 else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6476 fi
6477
6478
6479 fi
6480 if test -z "$ac_cv_prog_DSYMUTIL"; then
6481 ac_ct_DSYMUTIL=$DSYMUTIL
6482 # Extract the first word of "dsymutil", so it can be a program name with args.
6483 set dummy dsymutil; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 if test -n "$ac_ct_DSYMUTIL"; then
6490 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503 done
6504 done
6505 IFS=$as_save_IFS
6506
6507 fi
6508 fi
6509 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6510 if test -n "$ac_ct_DSYMUTIL"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6512 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6513 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6516 fi
6517
6518 if test "x$ac_ct_DSYMUTIL" = x; then
6519 DSYMUTIL=":"
6520 else
6521 case $cross_compiling:$ac_tool_warned in
6522 yes:)
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525 ac_tool_warned=yes ;;
6526 esac
6527 DSYMUTIL=$ac_ct_DSYMUTIL
6528 fi
6529 else
6530 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6531 fi
6532
6533 if test -n "$ac_tool_prefix"; then
6534 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6535 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_NMEDIT+:} false; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 if test -n "$NMEDIT"; then
6542 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6554 fi
6555 done
6556 done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 NMEDIT=$ac_cv_prog_NMEDIT
6562 if test -n "$NMEDIT"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6564 $as_echo "$NMEDIT" >&6; }
6565 else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6568 fi
6569
6570
6571 fi
6572 if test -z "$ac_cv_prog_NMEDIT"; then
6573 ac_ct_NMEDIT=$NMEDIT
6574 # Extract the first word of "nmedit", so it can be a program name with args.
6575 set dummy nmedit; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 if test -n "$ac_ct_NMEDIT"; then
6582 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6594 fi
6595 done
6596 done
6597 IFS=$as_save_IFS
6598
6599 fi
6600 fi
6601 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6602 if test -n "$ac_ct_NMEDIT"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6604 $as_echo "$ac_ct_NMEDIT" >&6; }
6605 else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6608 fi
6609
6610 if test "x$ac_ct_NMEDIT" = x; then
6611 NMEDIT=":"
6612 else
6613 case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619 NMEDIT=$ac_ct_NMEDIT
6620 fi
6621 else
6622 NMEDIT="$ac_cv_prog_NMEDIT"
6623 fi
6624
6625 if test -n "$ac_tool_prefix"; then
6626 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6627 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if ${ac_cv_prog_LIPO+:} false; then :
6631 $as_echo_n "(cached) " >&6
6632 else
6633 if test -n "$LIPO"; then
6634 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6643 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6646 fi
6647 done
6648 done
6649 IFS=$as_save_IFS
6650
6651 fi
6652 fi
6653 LIPO=$ac_cv_prog_LIPO
6654 if test -n "$LIPO"; then
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6656 $as_echo "$LIPO" >&6; }
6657 else
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 $as_echo "no" >&6; }
6660 fi
6661
6662
6663 fi
6664 if test -z "$ac_cv_prog_LIPO"; then
6665 ac_ct_LIPO=$LIPO
6666 # Extract the first word of "lipo", so it can be a program name with args.
6667 set dummy lipo; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 if test -n "$ac_ct_LIPO"; then
6674 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683 ac_cv_prog_ac_ct_LIPO="lipo"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6694 if test -n "$ac_ct_LIPO"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6696 $as_echo "$ac_ct_LIPO" >&6; }
6697 else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701
6702 if test "x$ac_ct_LIPO" = x; then
6703 LIPO=":"
6704 else
6705 case $cross_compiling:$ac_tool_warned in
6706 yes:)
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6709 ac_tool_warned=yes ;;
6710 esac
6711 LIPO=$ac_ct_LIPO
6712 fi
6713 else
6714 LIPO="$ac_cv_prog_LIPO"
6715 fi
6716
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}otool; ac_word=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if ${ac_cv_prog_OTOOL+:} false; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725 if test -n "$OTOOL"; then
6726 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 OTOOL=$ac_cv_prog_OTOOL
6746 if test -n "$OTOOL"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6748 $as_echo "$OTOOL" >&6; }
6749 else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 $as_echo "no" >&6; }
6752 fi
6753
6754
6755 fi
6756 if test -z "$ac_cv_prog_OTOOL"; then
6757 ac_ct_OTOOL=$OTOOL
6758 # Extract the first word of "otool", so it can be a program name with args.
6759 set dummy otool; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 if test -n "$ac_ct_OTOOL"; then
6766 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_ac_ct_OTOOL="otool"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6786 if test -n "$ac_ct_OTOOL"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6788 $as_echo "$ac_ct_OTOOL" >&6; }
6789 else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 fi
6793
6794 if test "x$ac_ct_OTOOL" = x; then
6795 OTOOL=":"
6796 else
6797 case $cross_compiling:$ac_tool_warned in
6798 yes:)
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6801 ac_tool_warned=yes ;;
6802 esac
6803 OTOOL=$ac_ct_OTOOL
6804 fi
6805 else
6806 OTOOL="$ac_cv_prog_OTOOL"
6807 fi
6808
6809 if test -n "$ac_tool_prefix"; then
6810 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6811 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if ${ac_cv_prog_OTOOL64+:} false; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 if test -n "$OTOOL64"; then
6818 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6827 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6830 fi
6831 done
6832 done
6833 IFS=$as_save_IFS
6834
6835 fi
6836 fi
6837 OTOOL64=$ac_cv_prog_OTOOL64
6838 if test -n "$OTOOL64"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6840 $as_echo "$OTOOL64" >&6; }
6841 else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843 $as_echo "no" >&6; }
6844 fi
6845
6846
6847 fi
6848 if test -z "$ac_cv_prog_OTOOL64"; then
6849 ac_ct_OTOOL64=$OTOOL64
6850 # Extract the first word of "otool64", so it can be a program name with args.
6851 set dummy otool64; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 if test -n "$ac_ct_OTOOL64"; then
6858 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867 ac_cv_prog_ac_ct_OTOOL64="otool64"
6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6874
6875 fi
6876 fi
6877 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6878 if test -n "$ac_ct_OTOOL64"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6880 $as_echo "$ac_ct_OTOOL64" >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6884 fi
6885
6886 if test "x$ac_ct_OTOOL64" = x; then
6887 OTOOL64=":"
6888 else
6889 case $cross_compiling:$ac_tool_warned in
6890 yes:)
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893 ac_tool_warned=yes ;;
6894 esac
6895 OTOOL64=$ac_ct_OTOOL64
6896 fi
6897 else
6898 OTOOL64="$ac_cv_prog_OTOOL64"
6899 fi
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6928 $as_echo_n "checking for -single_module linker flag... " >&6; }
6929 if ${lt_cv_apple_cc_single_mod+:} false; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6932 lt_cv_apple_cc_single_mod=no
6933 if test -z "${LT_MULTI_MODULE}"; then
6934 # By default we will add the -single_module flag. You can override
6935 # by either setting the environment variable LT_MULTI_MODULE
6936 # non-empty at configure time, or by adding -multi_module to the
6937 # link flags.
6938 rm -rf libconftest.dylib*
6939 echo "int foo(void){return 1;}" > conftest.c
6940 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6941 -dynamiclib -Wl,-single_module conftest.c" >&5
6942 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6943 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6944 _lt_result=$?
6945 # If there is a non-empty error log, and "single_module"
6946 # appears in it, assume the flag caused a linker warning
6947 if test -s conftest.err && $GREP single_module conftest.err; then
6948 cat conftest.err >&5
6949 # Otherwise, if the output was created with a 0 exit code from
6950 # the compiler, it worked.
6951 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6952 lt_cv_apple_cc_single_mod=yes
6953 else
6954 cat conftest.err >&5
6955 fi
6956 rm -rf libconftest.dylib*
6957 rm -f conftest.*
6958 fi
6959 fi
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6961 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6962
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6964 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6965 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 lt_cv_ld_exported_symbols_list=no
6969 save_LDFLAGS=$LDFLAGS
6970 echo "_main" > conftest.sym
6971 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974
6975 int
6976 main ()
6977 {
6978
6979 ;
6980 return 0;
6981 }
6982 _ACEOF
6983 if ac_fn_c_try_link "$LINENO"; then :
6984 lt_cv_ld_exported_symbols_list=yes
6985 else
6986 lt_cv_ld_exported_symbols_list=no
6987 fi
6988 rm -f core conftest.err conftest.$ac_objext \
6989 conftest$ac_exeext conftest.$ac_ext
6990 LDFLAGS="$save_LDFLAGS"
6991
6992 fi
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6994 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6995
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6997 $as_echo_n "checking for -force_load linker flag... " >&6; }
6998 if ${lt_cv_ld_force_load+:} false; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 lt_cv_ld_force_load=no
7002 cat > conftest.c << _LT_EOF
7003 int forced_loaded() { return 2;}
7004 _LT_EOF
7005 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7006 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7007 echo "$AR cru libconftest.a conftest.o" >&5
7008 $AR cru libconftest.a conftest.o 2>&5
7009 echo "$RANLIB libconftest.a" >&5
7010 $RANLIB libconftest.a 2>&5
7011 cat > conftest.c << _LT_EOF
7012 int main() { return 0;}
7013 _LT_EOF
7014 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7015 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7016 _lt_result=$?
7017 if test -s conftest.err && $GREP force_load conftest.err; then
7018 cat conftest.err >&5
7019 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7020 lt_cv_ld_force_load=yes
7021 else
7022 cat conftest.err >&5
7023 fi
7024 rm -f conftest.err libconftest.a conftest conftest.c
7025 rm -rf conftest.dSYM
7026
7027 fi
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7029 $as_echo "$lt_cv_ld_force_load" >&6; }
7030 case $host_os in
7031 rhapsody* | darwin1.[012])
7032 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7033 darwin1.*)
7034 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7035 darwin*) # darwin 5.x on
7036 # if running on 10.5 or later, the deployment target defaults
7037 # to the OS version, if on x86, and 10.4, the deployment
7038 # target defaults to 10.4. Don't you love it?
7039 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7040 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7041 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7042 10.[012]*)
7043 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7044 10.*)
7045 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7046 esac
7047 ;;
7048 esac
7049 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7050 _lt_dar_single_mod='$single_module'
7051 fi
7052 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7053 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7054 else
7055 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7056 fi
7057 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7058 _lt_dsymutil='~$DSYMUTIL $lib || :'
7059 else
7060 _lt_dsymutil=
7061 fi
7062 ;;
7063 esac
7064
7065 ac_ext=c
7066 ac_cpp='$CPP $CPPFLAGS'
7067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7072 # On Suns, sometimes $CPP names a directory.
7073 if test -n "$CPP" && test -d "$CPP"; then
7074 CPP=
7075 fi
7076 if test -z "$CPP"; then
7077 if ${ac_cv_prog_CPP+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 # Double quotes because CPP needs to be expanded
7081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7082 do
7083 ac_preproc_ok=false
7084 for ac_c_preproc_warn_flag in '' yes
7085 do
7086 # Use a header file that comes with gcc, so configuring glibc
7087 # with a fresh cross-compiler works.
7088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7089 # <limits.h> exists even on freestanding compilers.
7090 # On the NeXT, cc -E runs the code through the compiler's parser,
7091 # not just through cpp. "Syntax error" is here to catch this case.
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094 #ifdef __STDC__
7095 # include <limits.h>
7096 #else
7097 # include <assert.h>
7098 #endif
7099 Syntax error
7100 _ACEOF
7101 if ac_fn_c_try_cpp "$LINENO"; then :
7102
7103 else
7104 # Broken: fails on valid input.
7105 continue
7106 fi
7107 rm -f conftest.err conftest.i conftest.$ac_ext
7108
7109 # OK, works on sane cases. Now check whether nonexistent headers
7110 # can be detected and how.
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113 #include <ac_nonexistent.h>
7114 _ACEOF
7115 if ac_fn_c_try_cpp "$LINENO"; then :
7116 # Broken: success on invalid input.
7117 continue
7118 else
7119 # Passes both tests.
7120 ac_preproc_ok=:
7121 break
7122 fi
7123 rm -f conftest.err conftest.i conftest.$ac_ext
7124
7125 done
7126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7127 rm -f conftest.i conftest.err conftest.$ac_ext
7128 if $ac_preproc_ok; then :
7129 break
7130 fi
7131
7132 done
7133 ac_cv_prog_CPP=$CPP
7134
7135 fi
7136 CPP=$ac_cv_prog_CPP
7137 else
7138 ac_cv_prog_CPP=$CPP
7139 fi
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7141 $as_echo "$CPP" >&6; }
7142 ac_preproc_ok=false
7143 for ac_c_preproc_warn_flag in '' yes
7144 do
7145 # Use a header file that comes with gcc, so configuring glibc
7146 # with a fresh cross-compiler works.
7147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7148 # <limits.h> exists even on freestanding compilers.
7149 # On the NeXT, cc -E runs the code through the compiler's parser,
7150 # not just through cpp. "Syntax error" is here to catch this case.
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7153 #ifdef __STDC__
7154 # include <limits.h>
7155 #else
7156 # include <assert.h>
7157 #endif
7158 Syntax error
7159 _ACEOF
7160 if ac_fn_c_try_cpp "$LINENO"; then :
7161
7162 else
7163 # Broken: fails on valid input.
7164 continue
7165 fi
7166 rm -f conftest.err conftest.i conftest.$ac_ext
7167
7168 # OK, works on sane cases. Now check whether nonexistent headers
7169 # can be detected and how.
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 #include <ac_nonexistent.h>
7173 _ACEOF
7174 if ac_fn_c_try_cpp "$LINENO"; then :
7175 # Broken: success on invalid input.
7176 continue
7177 else
7178 # Passes both tests.
7179 ac_preproc_ok=:
7180 break
7181 fi
7182 rm -f conftest.err conftest.i conftest.$ac_ext
7183
7184 done
7185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7186 rm -f conftest.i conftest.err conftest.$ac_ext
7187 if $ac_preproc_ok; then :
7188
7189 else
7190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7192 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7193 See \`config.log' for more details" "$LINENO" 5; }
7194 fi
7195
7196 ac_ext=c
7197 ac_cpp='$CPP $CPPFLAGS'
7198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7201
7202
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7204 $as_echo_n "checking for ANSI C header files... " >&6; }
7205 if ${ac_cv_header_stdc+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7210 #include <stdlib.h>
7211 #include <stdarg.h>
7212 #include <string.h>
7213 #include <float.h>
7214
7215 int
7216 main ()
7217 {
7218
7219 ;
7220 return 0;
7221 }
7222 _ACEOF
7223 if ac_fn_c_try_compile "$LINENO"; then :
7224 ac_cv_header_stdc=yes
7225 else
7226 ac_cv_header_stdc=no
7227 fi
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229
7230 if test $ac_cv_header_stdc = yes; then
7231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7234 #include <string.h>
7235
7236 _ACEOF
7237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7238 $EGREP "memchr" >/dev/null 2>&1; then :
7239
7240 else
7241 ac_cv_header_stdc=no
7242 fi
7243 rm -f conftest*
7244
7245 fi
7246
7247 if test $ac_cv_header_stdc = yes; then
7248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 #include <stdlib.h>
7252
7253 _ACEOF
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255 $EGREP "free" >/dev/null 2>&1; then :
7256
7257 else
7258 ac_cv_header_stdc=no
7259 fi
7260 rm -f conftest*
7261
7262 fi
7263
7264 if test $ac_cv_header_stdc = yes; then
7265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7266 if test "$cross_compiling" = yes; then :
7267 :
7268 else
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271 #include <ctype.h>
7272 #include <stdlib.h>
7273 #if ((' ' & 0x0FF) == 0x020)
7274 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7275 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7276 #else
7277 # define ISLOWER(c) \
7278 (('a' <= (c) && (c) <= 'i') \
7279 || ('j' <= (c) && (c) <= 'r') \
7280 || ('s' <= (c) && (c) <= 'z'))
7281 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7282 #endif
7283
7284 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7285 int
7286 main ()
7287 {
7288 int i;
7289 for (i = 0; i < 256; i++)
7290 if (XOR (islower (i), ISLOWER (i))
7291 || toupper (i) != TOUPPER (i))
7292 return 2;
7293 return 0;
7294 }
7295 _ACEOF
7296 if ac_fn_c_try_run "$LINENO"; then :
7297
7298 else
7299 ac_cv_header_stdc=no
7300 fi
7301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7302 conftest.$ac_objext conftest.beam conftest.$ac_ext
7303 fi
7304
7305 fi
7306 fi
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7308 $as_echo "$ac_cv_header_stdc" >&6; }
7309 if test $ac_cv_header_stdc = yes; then
7310
7311 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7312
7313 fi
7314
7315 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7316 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7317 inttypes.h stdint.h unistd.h
7318 do :
7319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7320 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7321 "
7322 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7323 cat >>confdefs.h <<_ACEOF
7324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7325 _ACEOF
7326
7327 fi
7328
7329 done
7330
7331
7332 for ac_header in dlfcn.h
7333 do :
7334 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7335 "
7336 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7337 cat >>confdefs.h <<_ACEOF
7338 #define HAVE_DLFCN_H 1
7339 _ACEOF
7340
7341 fi
7342
7343 done
7344
7345
7346
7347
7348
7349 # Set options
7350
7351
7352
7353 enable_dlopen=no
7354
7355
7356 enable_win32_dll=no
7357
7358
7359 # Check whether --enable-shared was given.
7360 if test "${enable_shared+set}" = set; then :
7361 enableval=$enable_shared; p=${PACKAGE-default}
7362 case $enableval in
7363 yes) enable_shared=yes ;;
7364 no) enable_shared=no ;;
7365 *)
7366 enable_shared=no
7367 # Look at the argument we got. We use all the common list separators.
7368 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7369 for pkg in $enableval; do
7370 IFS="$lt_save_ifs"
7371 if test "X$pkg" = "X$p"; then
7372 enable_shared=yes
7373 fi
7374 done
7375 IFS="$lt_save_ifs"
7376 ;;
7377 esac
7378 else
7379 enable_shared=yes
7380 fi
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390 # Check whether --enable-static was given.
7391 if test "${enable_static+set}" = set; then :
7392 enableval=$enable_static; p=${PACKAGE-default}
7393 case $enableval in
7394 yes) enable_static=yes ;;
7395 no) enable_static=no ;;
7396 *)
7397 enable_static=no
7398 # Look at the argument we got. We use all the common list separators.
7399 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7400 for pkg in $enableval; do
7401 IFS="$lt_save_ifs"
7402 if test "X$pkg" = "X$p"; then
7403 enable_static=yes
7404 fi
7405 done
7406 IFS="$lt_save_ifs"
7407 ;;
7408 esac
7409 else
7410 enable_static=yes
7411 fi
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422 # Check whether --with-pic was given.
7423 if test "${with_pic+set}" = set; then :
7424 withval=$with_pic; lt_p=${PACKAGE-default}
7425 case $withval in
7426 yes|no) pic_mode=$withval ;;
7427 *)
7428 pic_mode=default
7429 # Look at the argument we got. We use all the common list separators.
7430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7431 for lt_pkg in $withval; do
7432 IFS="$lt_save_ifs"
7433 if test "X$lt_pkg" = "X$lt_p"; then
7434 pic_mode=yes
7435 fi
7436 done
7437 IFS="$lt_save_ifs"
7438 ;;
7439 esac
7440 else
7441 pic_mode=default
7442 fi
7443
7444
7445 test -z "$pic_mode" && pic_mode=default
7446
7447
7448
7449
7450
7451
7452
7453 # Check whether --enable-fast-install was given.
7454 if test "${enable_fast_install+set}" = set; then :
7455 enableval=$enable_fast_install; p=${PACKAGE-default}
7456 case $enableval in
7457 yes) enable_fast_install=yes ;;
7458 no) enable_fast_install=no ;;
7459 *)
7460 enable_fast_install=no
7461 # Look at the argument we got. We use all the common list separators.
7462 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7463 for pkg in $enableval; do
7464 IFS="$lt_save_ifs"
7465 if test "X$pkg" = "X$p"; then
7466 enable_fast_install=yes
7467 fi
7468 done
7469 IFS="$lt_save_ifs"
7470 ;;
7471 esac
7472 else
7473 enable_fast_install=yes
7474 fi
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486 # This can be used to rebuild libtool when needed
7487 LIBTOOL_DEPS="$ltmain"
7488
7489 # Always use our own libtool.
7490 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521 test -z "$LN_S" && LN_S="ln -s"
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536 if test -n "${ZSH_VERSION+set}" ; then
7537 setopt NO_GLOB_SUBST
7538 fi
7539
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7541 $as_echo_n "checking for objdir... " >&6; }
7542 if ${lt_cv_objdir+:} false; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 rm -f .libs 2>/dev/null
7546 mkdir .libs 2>/dev/null
7547 if test -d .libs; then
7548 lt_cv_objdir=.libs
7549 else
7550 # MS-DOS does not allow filenames that begin with a dot.
7551 lt_cv_objdir=_libs
7552 fi
7553 rmdir .libs 2>/dev/null
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7556 $as_echo "$lt_cv_objdir" >&6; }
7557 objdir=$lt_cv_objdir
7558
7559
7560
7561
7562
7563 cat >>confdefs.h <<_ACEOF
7564 #define LT_OBJDIR "$lt_cv_objdir/"
7565 _ACEOF
7566
7567
7568
7569
7570 case $host_os in
7571 aix3*)
7572 # AIX sometimes has problems with the GCC collect2 program. For some
7573 # reason, if we set the COLLECT_NAMES environment variable, the problems
7574 # vanish in a puff of smoke.
7575 if test "X${COLLECT_NAMES+set}" != Xset; then
7576 COLLECT_NAMES=
7577 export COLLECT_NAMES
7578 fi
7579 ;;
7580 esac
7581
7582 # Global variables:
7583 ofile=libtool
7584 can_build_shared=yes
7585
7586 # All known linkers require a `.a' archive for static linking (except MSVC,
7587 # which needs '.lib').
7588 libext=a
7589
7590 with_gnu_ld="$lt_cv_prog_gnu_ld"
7591
7592 old_CC="$CC"
7593 old_CFLAGS="$CFLAGS"
7594
7595 # Set sane defaults for various variables
7596 test -z "$CC" && CC=cc
7597 test -z "$LTCC" && LTCC=$CC
7598 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7599 test -z "$LD" && LD=ld
7600 test -z "$ac_objext" && ac_objext=o
7601
7602 for cc_temp in $compiler""; do
7603 case $cc_temp in
7604 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7605 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7606 \-*) ;;
7607 *) break;;
7608 esac
7609 done
7610 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7611
7612
7613 # Only perform the check for file, if the check method requires it
7614 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7615 case $deplibs_check_method in
7616 file_magic*)
7617 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7619 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7620 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 case $MAGIC_CMD in
7624 [\\/*] | ?:[\\/]*)
7625 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7626 ;;
7627 *)
7628 lt_save_MAGIC_CMD="$MAGIC_CMD"
7629 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7630 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7631 for ac_dir in $ac_dummy; do
7632 IFS="$lt_save_ifs"
7633 test -z "$ac_dir" && ac_dir=.
7634 if test -f $ac_dir/${ac_tool_prefix}file; then
7635 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7636 if test -n "$file_magic_test_file"; then
7637 case $deplibs_check_method in
7638 "file_magic "*)
7639 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7641 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7642 $EGREP "$file_magic_regex" > /dev/null; then
7643 :
7644 else
7645 cat <<_LT_EOF 1>&2
7646
7647 *** Warning: the command libtool uses to detect shared libraries,
7648 *** $file_magic_cmd, produces output that libtool cannot recognize.
7649 *** The result is that libtool may fail to recognize shared libraries
7650 *** as such. This will affect the creation of libtool libraries that
7651 *** depend on shared libraries, but programs linked with such libtool
7652 *** libraries will work regardless of this problem. Nevertheless, you
7653 *** may want to report the problem to your system manager and/or to
7654 *** bug-libtool@gnu.org
7655
7656 _LT_EOF
7657 fi ;;
7658 esac
7659 fi
7660 break
7661 fi
7662 done
7663 IFS="$lt_save_ifs"
7664 MAGIC_CMD="$lt_save_MAGIC_CMD"
7665 ;;
7666 esac
7667 fi
7668
7669 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7670 if test -n "$MAGIC_CMD"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7672 $as_echo "$MAGIC_CMD" >&6; }
7673 else
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7676 fi
7677
7678
7679
7680
7681
7682 if test -z "$lt_cv_path_MAGIC_CMD"; then
7683 if test -n "$ac_tool_prefix"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7685 $as_echo_n "checking for file... " >&6; }
7686 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 case $MAGIC_CMD in
7690 [\\/*] | ?:[\\/]*)
7691 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7692 ;;
7693 *)
7694 lt_save_MAGIC_CMD="$MAGIC_CMD"
7695 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7696 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7697 for ac_dir in $ac_dummy; do
7698 IFS="$lt_save_ifs"
7699 test -z "$ac_dir" && ac_dir=.
7700 if test -f $ac_dir/file; then
7701 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7702 if test -n "$file_magic_test_file"; then
7703 case $deplibs_check_method in
7704 "file_magic "*)
7705 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7707 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7708 $EGREP "$file_magic_regex" > /dev/null; then
7709 :
7710 else
7711 cat <<_LT_EOF 1>&2
7712
7713 *** Warning: the command libtool uses to detect shared libraries,
7714 *** $file_magic_cmd, produces output that libtool cannot recognize.
7715 *** The result is that libtool may fail to recognize shared libraries
7716 *** as such. This will affect the creation of libtool libraries that
7717 *** depend on shared libraries, but programs linked with such libtool
7718 *** libraries will work regardless of this problem. Nevertheless, you
7719 *** may want to report the problem to your system manager and/or to
7720 *** bug-libtool@gnu.org
7721
7722 _LT_EOF
7723 fi ;;
7724 esac
7725 fi
7726 break
7727 fi
7728 done
7729 IFS="$lt_save_ifs"
7730 MAGIC_CMD="$lt_save_MAGIC_CMD"
7731 ;;
7732 esac
7733 fi
7734
7735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7736 if test -n "$MAGIC_CMD"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7738 $as_echo "$MAGIC_CMD" >&6; }
7739 else
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742 fi
7743
7744
7745 else
7746 MAGIC_CMD=:
7747 fi
7748 fi
7749
7750 fi
7751 ;;
7752 esac
7753
7754 # Use C for the default configuration in the libtool script
7755
7756 lt_save_CC="$CC"
7757 ac_ext=c
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
7763
7764 # Source file extension for C test sources.
7765 ac_ext=c
7766
7767 # Object file extension for compiled C test sources.
7768 objext=o
7769 objext=$objext
7770
7771 # Code to be used in simple compile tests
7772 lt_simple_compile_test_code="int some_variable = 0;"
7773
7774 # Code to be used in simple link tests
7775 lt_simple_link_test_code='int main(){return(0);}'
7776
7777
7778
7779
7780
7781
7782
7783 # If no C compiler was specified, use CC.
7784 LTCC=${LTCC-"$CC"}
7785
7786 # If no C compiler flags were specified, use CFLAGS.
7787 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7788
7789 # Allow CC to be a program name with arguments.
7790 compiler=$CC
7791
7792 # Save the default compiler, since it gets overwritten when the other
7793 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7794 compiler_DEFAULT=$CC
7795
7796 # save warnings/boilerplate of simple test code
7797 ac_outfile=conftest.$ac_objext
7798 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7799 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7800 _lt_compiler_boilerplate=`cat conftest.err`
7801 $RM conftest*
7802
7803 ac_outfile=conftest.$ac_objext
7804 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7805 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7806 _lt_linker_boilerplate=`cat conftest.err`
7807 $RM -r conftest*
7808
7809
7810 if test -n "$compiler"; then
7811
7812 lt_prog_compiler_no_builtin_flag=
7813
7814 if test "$GCC" = yes; then
7815 case $cc_basename in
7816 nvcc*)
7817 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7818 *)
7819 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7820 esac
7821
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7823 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7824 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 lt_cv_prog_compiler_rtti_exceptions=no
7828 ac_outfile=conftest.$ac_objext
7829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7830 lt_compiler_flag="-fno-rtti -fno-exceptions"
7831 # Insert the option either (1) after the last *FLAGS variable, or
7832 # (2) before a word containing "conftest.", or (3) at the end.
7833 # Note that $ac_compile itself does not contain backslashes and begins
7834 # with a dollar sign (not a hyphen), so the echo should work correctly.
7835 # The option is referenced via a variable to avoid confusing sed.
7836 lt_compile=`echo "$ac_compile" | $SED \
7837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7839 -e 's:$: $lt_compiler_flag:'`
7840 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7841 (eval "$lt_compile" 2>conftest.err)
7842 ac_status=$?
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 if (exit $ac_status) && test -s "$ac_outfile"; then
7846 # The compiler can only warn and ignore the option if not recognized
7847 # So say no if there are warnings other than the usual output.
7848 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7849 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7850 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7851 lt_cv_prog_compiler_rtti_exceptions=yes
7852 fi
7853 fi
7854 $RM conftest*
7855
7856 fi
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7858 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7859
7860 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7861 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7862 else
7863 :
7864 fi
7865
7866 fi
7867
7868
7869
7870
7871
7872
7873 lt_prog_compiler_wl=
7874 lt_prog_compiler_pic=
7875 lt_prog_compiler_static=
7876
7877
7878 if test "$GCC" = yes; then
7879 lt_prog_compiler_wl='-Wl,'
7880 lt_prog_compiler_static='-static'
7881
7882 case $host_os in
7883 aix*)
7884 # All AIX code is PIC.
7885 if test "$host_cpu" = ia64; then
7886 # AIX 5 now supports IA64 processor
7887 lt_prog_compiler_static='-Bstatic'
7888 fi
7889 ;;
7890
7891 amigaos*)
7892 case $host_cpu in
7893 powerpc)
7894 # see comment about AmigaOS4 .so support
7895 lt_prog_compiler_pic='-fPIC'
7896 ;;
7897 m68k)
7898 # FIXME: we need at least 68020 code to build shared libraries, but
7899 # adding the `-m68020' flag to GCC prevents building anything better,
7900 # like `-m68040'.
7901 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7902 ;;
7903 esac
7904 ;;
7905
7906 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7907 # PIC is the default for these OSes.
7908 ;;
7909
7910 mingw* | cygwin* | pw32* | os2* | cegcc*)
7911 # This hack is so that the source file can tell whether it is being
7912 # built for inclusion in a dll (and should export symbols for example).
7913 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7914 # (--disable-auto-import) libraries
7915 lt_prog_compiler_pic='-DDLL_EXPORT'
7916 ;;
7917
7918 darwin* | rhapsody*)
7919 # PIC is the default on this platform
7920 # Common symbols not allowed in MH_DYLIB files
7921 lt_prog_compiler_pic='-fno-common'
7922 ;;
7923
7924 haiku*)
7925 # PIC is the default for Haiku.
7926 # The "-static" flag exists, but is broken.
7927 lt_prog_compiler_static=
7928 ;;
7929
7930 hpux*)
7931 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7932 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7933 # sets the default TLS model and affects inlining.
7934 case $host_cpu in
7935 hppa*64*)
7936 # +Z the default
7937 ;;
7938 *)
7939 lt_prog_compiler_pic='-fPIC'
7940 ;;
7941 esac
7942 ;;
7943
7944 interix[3-9]*)
7945 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7946 # Instead, we relocate shared libraries at runtime.
7947 ;;
7948
7949 msdosdjgpp*)
7950 # Just because we use GCC doesn't mean we suddenly get shared libraries
7951 # on systems that don't support them.
7952 lt_prog_compiler_can_build_shared=no
7953 enable_shared=no
7954 ;;
7955
7956 *nto* | *qnx*)
7957 # QNX uses GNU C++, but need to define -shared option too, otherwise
7958 # it will coredump.
7959 lt_prog_compiler_pic='-fPIC -shared'
7960 ;;
7961
7962 sysv4*MP*)
7963 if test -d /usr/nec; then
7964 lt_prog_compiler_pic=-Kconform_pic
7965 fi
7966 ;;
7967
7968 *)
7969 lt_prog_compiler_pic='-fPIC'
7970 ;;
7971 esac
7972
7973 case $cc_basename in
7974 nvcc*) # Cuda Compiler Driver 2.2
7975 lt_prog_compiler_wl='-Xlinker '
7976 if test -n "$lt_prog_compiler_pic"; then
7977 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7978 fi
7979 ;;
7980 esac
7981 else
7982 # PORTME Check for flag to pass linker flags through the system compiler.
7983 case $host_os in
7984 aix*)
7985 lt_prog_compiler_wl='-Wl,'
7986 if test "$host_cpu" = ia64; then
7987 # AIX 5 now supports IA64 processor
7988 lt_prog_compiler_static='-Bstatic'
7989 else
7990 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7991 fi
7992 ;;
7993
7994 mingw* | cygwin* | pw32* | os2* | cegcc*)
7995 # This hack is so that the source file can tell whether it is being
7996 # built for inclusion in a dll (and should export symbols for example).
7997 lt_prog_compiler_pic='-DDLL_EXPORT'
7998 ;;
7999
8000 hpux9* | hpux10* | hpux11*)
8001 lt_prog_compiler_wl='-Wl,'
8002 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8003 # not for PA HP-UX.
8004 case $host_cpu in
8005 hppa*64*|ia64*)
8006 # +Z the default
8007 ;;
8008 *)
8009 lt_prog_compiler_pic='+Z'
8010 ;;
8011 esac
8012 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8013 lt_prog_compiler_static='${wl}-a ${wl}archive'
8014 ;;
8015
8016 irix5* | irix6* | nonstopux*)
8017 lt_prog_compiler_wl='-Wl,'
8018 # PIC (with -KPIC) is the default.
8019 lt_prog_compiler_static='-non_shared'
8020 ;;
8021
8022 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8023 case $cc_basename in
8024 # old Intel for x86_64 which still supported -KPIC.
8025 ecc*)
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_pic='-KPIC'
8028 lt_prog_compiler_static='-static'
8029 ;;
8030 # icc used to be incompatible with GCC.
8031 # ICC 10 doesn't accept -KPIC any more.
8032 icc* | ifort*)
8033 lt_prog_compiler_wl='-Wl,'
8034 lt_prog_compiler_pic='-fPIC'
8035 lt_prog_compiler_static='-static'
8036 ;;
8037 # Lahey Fortran 8.1.
8038 lf95*)
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='--shared'
8041 lt_prog_compiler_static='--static'
8042 ;;
8043 nagfor*)
8044 # NAG Fortran compiler
8045 lt_prog_compiler_wl='-Wl,-Wl,,'
8046 lt_prog_compiler_pic='-PIC'
8047 lt_prog_compiler_static='-Bstatic'
8048 ;;
8049 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8050 # Portland Group compilers (*not* the Pentium gcc compiler,
8051 # which looks to be a dead project)
8052 lt_prog_compiler_wl='-Wl,'
8053 lt_prog_compiler_pic='-fpic'
8054 lt_prog_compiler_static='-Bstatic'
8055 ;;
8056 ccc*)
8057 lt_prog_compiler_wl='-Wl,'
8058 # All Alpha code is PIC.
8059 lt_prog_compiler_static='-non_shared'
8060 ;;
8061 xl* | bgxl* | bgf* | mpixl*)
8062 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_pic='-qpic'
8065 lt_prog_compiler_static='-qstaticlink'
8066 ;;
8067 *)
8068 case `$CC -V 2>&1 | sed 5q` in
8069 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8070 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8071 lt_prog_compiler_pic='-KPIC'
8072 lt_prog_compiler_static='-Bstatic'
8073 lt_prog_compiler_wl=''
8074 ;;
8075 *Sun\ F* | *Sun*Fortran*)
8076 lt_prog_compiler_pic='-KPIC'
8077 lt_prog_compiler_static='-Bstatic'
8078 lt_prog_compiler_wl='-Qoption ld '
8079 ;;
8080 *Sun\ C*)
8081 # Sun C 5.9
8082 lt_prog_compiler_pic='-KPIC'
8083 lt_prog_compiler_static='-Bstatic'
8084 lt_prog_compiler_wl='-Wl,'
8085 ;;
8086 *Intel*\ [CF]*Compiler*)
8087 lt_prog_compiler_wl='-Wl,'
8088 lt_prog_compiler_pic='-fPIC'
8089 lt_prog_compiler_static='-static'
8090 ;;
8091 *Portland\ Group*)
8092 lt_prog_compiler_wl='-Wl,'
8093 lt_prog_compiler_pic='-fpic'
8094 lt_prog_compiler_static='-Bstatic'
8095 ;;
8096 esac
8097 ;;
8098 esac
8099 ;;
8100
8101 newsos6)
8102 lt_prog_compiler_pic='-KPIC'
8103 lt_prog_compiler_static='-Bstatic'
8104 ;;
8105
8106 *nto* | *qnx*)
8107 # QNX uses GNU C++, but need to define -shared option too, otherwise
8108 # it will coredump.
8109 lt_prog_compiler_pic='-fPIC -shared'
8110 ;;
8111
8112 osf3* | osf4* | osf5*)
8113 lt_prog_compiler_wl='-Wl,'
8114 # All OSF/1 code is PIC.
8115 lt_prog_compiler_static='-non_shared'
8116 ;;
8117
8118 rdos*)
8119 lt_prog_compiler_static='-non_shared'
8120 ;;
8121
8122 solaris*)
8123 lt_prog_compiler_pic='-KPIC'
8124 lt_prog_compiler_static='-Bstatic'
8125 case $cc_basename in
8126 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8127 lt_prog_compiler_wl='-Qoption ld ';;
8128 *)
8129 lt_prog_compiler_wl='-Wl,';;
8130 esac
8131 ;;
8132
8133 sunos4*)
8134 lt_prog_compiler_wl='-Qoption ld '
8135 lt_prog_compiler_pic='-PIC'
8136 lt_prog_compiler_static='-Bstatic'
8137 ;;
8138
8139 sysv4 | sysv4.2uw2* | sysv4.3*)
8140 lt_prog_compiler_wl='-Wl,'
8141 lt_prog_compiler_pic='-KPIC'
8142 lt_prog_compiler_static='-Bstatic'
8143 ;;
8144
8145 sysv4*MP*)
8146 if test -d /usr/nec ;then
8147 lt_prog_compiler_pic='-Kconform_pic'
8148 lt_prog_compiler_static='-Bstatic'
8149 fi
8150 ;;
8151
8152 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8153 lt_prog_compiler_wl='-Wl,'
8154 lt_prog_compiler_pic='-KPIC'
8155 lt_prog_compiler_static='-Bstatic'
8156 ;;
8157
8158 unicos*)
8159 lt_prog_compiler_wl='-Wl,'
8160 lt_prog_compiler_can_build_shared=no
8161 ;;
8162
8163 uts4*)
8164 lt_prog_compiler_pic='-pic'
8165 lt_prog_compiler_static='-Bstatic'
8166 ;;
8167
8168 *)
8169 lt_prog_compiler_can_build_shared=no
8170 ;;
8171 esac
8172 fi
8173
8174 case $host_os in
8175 # For platforms which do not support PIC, -DPIC is meaningless:
8176 *djgpp*)
8177 lt_prog_compiler_pic=
8178 ;;
8179 *)
8180 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8181 ;;
8182 esac
8183
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8185 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8186 if ${lt_cv_prog_compiler_pic+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8190 fi
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8192 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8193 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8194
8195 #
8196 # Check to make sure the PIC flag actually works.
8197 #
8198 if test -n "$lt_prog_compiler_pic"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8200 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8201 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 lt_cv_prog_compiler_pic_works=no
8205 ac_outfile=conftest.$ac_objext
8206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8207 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
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 # The option is referenced via a variable to avoid confusing sed.
8213 lt_compile=`echo "$ac_compile" | $SED \
8214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8216 -e 's:$: $lt_compiler_flag:'`
8217 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8218 (eval "$lt_compile" 2>conftest.err)
8219 ac_status=$?
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 if (exit $ac_status) && test -s "$ac_outfile"; then
8223 # The compiler can only warn and ignore the option if not recognized
8224 # So say no if there are warnings other than the usual output.
8225 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8227 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8228 lt_cv_prog_compiler_pic_works=yes
8229 fi
8230 fi
8231 $RM conftest*
8232
8233 fi
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8235 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8236
8237 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8238 case $lt_prog_compiler_pic in
8239 "" | " "*) ;;
8240 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8241 esac
8242 else
8243 lt_prog_compiler_pic=
8244 lt_prog_compiler_can_build_shared=no
8245 fi
8246
8247 fi
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259 #
8260 # Check to make sure the static flag actually works.
8261 #
8262 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8264 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8265 if ${lt_cv_prog_compiler_static_works+:} false; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 lt_cv_prog_compiler_static_works=no
8269 save_LDFLAGS="$LDFLAGS"
8270 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8271 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8272 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8273 # The linker can only warn and ignore the option if not recognized
8274 # So say no if there are warnings
8275 if test -s conftest.err; then
8276 # Append any errors to the config.log.
8277 cat conftest.err 1>&5
8278 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8280 if diff conftest.exp conftest.er2 >/dev/null; then
8281 lt_cv_prog_compiler_static_works=yes
8282 fi
8283 else
8284 lt_cv_prog_compiler_static_works=yes
8285 fi
8286 fi
8287 $RM -r conftest*
8288 LDFLAGS="$save_LDFLAGS"
8289
8290 fi
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8292 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8293
8294 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8295 :
8296 else
8297 lt_prog_compiler_static=
8298 fi
8299
8300
8301
8302
8303
8304
8305
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8307 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8308 if ${lt_cv_prog_compiler_c_o+:} false; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 lt_cv_prog_compiler_c_o=no
8312 $RM -r conftest 2>/dev/null
8313 mkdir conftest
8314 cd conftest
8315 mkdir out
8316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8317
8318 lt_compiler_flag="-o out/conftest2.$ac_objext"
8319 # Insert the option either (1) after the last *FLAGS variable, or
8320 # (2) before a word containing "conftest.", or (3) at the end.
8321 # Note that $ac_compile itself does not contain backslashes and begins
8322 # with a dollar sign (not a hyphen), so the echo should work correctly.
8323 lt_compile=`echo "$ac_compile" | $SED \
8324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8326 -e 's:$: $lt_compiler_flag:'`
8327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8328 (eval "$lt_compile" 2>out/conftest.err)
8329 ac_status=$?
8330 cat out/conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8333 then
8334 # The compiler can only warn and ignore the option if not recognized
8335 # So say no if there are warnings
8336 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8337 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8338 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8339 lt_cv_prog_compiler_c_o=yes
8340 fi
8341 fi
8342 chmod u+w . 2>&5
8343 $RM conftest*
8344 # SGI C++ compiler will create directory out/ii_files/ for
8345 # template instantiation
8346 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8347 $RM out/* && rmdir out
8348 cd ..
8349 $RM -r conftest
8350 $RM conftest*
8351
8352 fi
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8354 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8355
8356
8357
8358
8359
8360
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8362 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8363 if ${lt_cv_prog_compiler_c_o+:} false; then :
8364 $as_echo_n "(cached) " >&6
8365 else
8366 lt_cv_prog_compiler_c_o=no
8367 $RM -r conftest 2>/dev/null
8368 mkdir conftest
8369 cd conftest
8370 mkdir out
8371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8372
8373 lt_compiler_flag="-o out/conftest2.$ac_objext"
8374 # Insert the option either (1) after the last *FLAGS variable, or
8375 # (2) before a word containing "conftest.", or (3) at the end.
8376 # Note that $ac_compile itself does not contain backslashes and begins
8377 # with a dollar sign (not a hyphen), so the echo should work correctly.
8378 lt_compile=`echo "$ac_compile" | $SED \
8379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8381 -e 's:$: $lt_compiler_flag:'`
8382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8383 (eval "$lt_compile" 2>out/conftest.err)
8384 ac_status=$?
8385 cat out/conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8388 then
8389 # The compiler can only warn and ignore the option if not recognized
8390 # So say no if there are warnings
8391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8392 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8393 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8394 lt_cv_prog_compiler_c_o=yes
8395 fi
8396 fi
8397 chmod u+w . 2>&5
8398 $RM conftest*
8399 # SGI C++ compiler will create directory out/ii_files/ for
8400 # template instantiation
8401 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8402 $RM out/* && rmdir out
8403 cd ..
8404 $RM -r conftest
8405 $RM conftest*
8406
8407 fi
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8409 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8410
8411
8412
8413
8414 hard_links="nottested"
8415 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8416 # do not overwrite the value of need_locks provided by the user
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8418 $as_echo_n "checking if we can lock with hard links... " >&6; }
8419 hard_links=yes
8420 $RM conftest*
8421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8422 touch conftest.a
8423 ln conftest.a conftest.b 2>&5 || hard_links=no
8424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8426 $as_echo "$hard_links" >&6; }
8427 if test "$hard_links" = no; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8429 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8430 need_locks=warn
8431 fi
8432 else
8433 need_locks=no
8434 fi
8435
8436
8437
8438
8439
8440
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8442 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8443
8444 runpath_var=
8445 allow_undefined_flag=
8446 always_export_symbols=no
8447 archive_cmds=
8448 archive_expsym_cmds=
8449 compiler_needs_object=no
8450 enable_shared_with_static_runtimes=no
8451 export_dynamic_flag_spec=
8452 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8453 hardcode_automatic=no
8454 hardcode_direct=no
8455 hardcode_direct_absolute=no
8456 hardcode_libdir_flag_spec=
8457 hardcode_libdir_separator=
8458 hardcode_minus_L=no
8459 hardcode_shlibpath_var=unsupported
8460 inherit_rpath=no
8461 link_all_deplibs=unknown
8462 module_cmds=
8463 module_expsym_cmds=
8464 old_archive_from_new_cmds=
8465 old_archive_from_expsyms_cmds=
8466 thread_safe_flag_spec=
8467 whole_archive_flag_spec=
8468 # include_expsyms should be a list of space-separated symbols to be *always*
8469 # included in the symbol list
8470 include_expsyms=
8471 # exclude_expsyms can be an extended regexp of symbols to exclude
8472 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8473 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8474 # as well as any symbol that contains `d'.
8475 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8476 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8477 # platforms (ab)use it in PIC code, but their linkers get confused if
8478 # the symbol is explicitly referenced. Since portable code cannot
8479 # rely on this symbol name, it's probably fine to never include it in
8480 # preloaded symbol tables.
8481 # Exclude shared library initialization/finalization symbols.
8482 extract_expsyms_cmds=
8483
8484 case $host_os in
8485 cygwin* | mingw* | pw32* | cegcc*)
8486 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8487 # When not using gcc, we currently assume that we are using
8488 # Microsoft Visual C++.
8489 if test "$GCC" != yes; then
8490 with_gnu_ld=no
8491 fi
8492 ;;
8493 interix*)
8494 # we just hope/assume this is gcc and not c89 (= MSVC++)
8495 with_gnu_ld=yes
8496 ;;
8497 openbsd*)
8498 with_gnu_ld=no
8499 ;;
8500 linux* | k*bsd*-gnu | gnu*)
8501 link_all_deplibs=no
8502 ;;
8503 esac
8504
8505 ld_shlibs=yes
8506
8507 # On some targets, GNU ld is compatible enough with the native linker
8508 # that we're better off using the native interface for both.
8509 lt_use_gnu_ld_interface=no
8510 if test "$with_gnu_ld" = yes; then
8511 case $host_os in
8512 aix*)
8513 # The AIX port of GNU ld has always aspired to compatibility
8514 # with the native linker. However, as the warning in the GNU ld
8515 # block says, versions before 2.19.5* couldn't really create working
8516 # shared libraries, regardless of the interface used.
8517 case `$LD -v 2>&1` in
8518 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8519 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8520 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8521 *)
8522 lt_use_gnu_ld_interface=yes
8523 ;;
8524 esac
8525 ;;
8526 *)
8527 lt_use_gnu_ld_interface=yes
8528 ;;
8529 esac
8530 fi
8531
8532 if test "$lt_use_gnu_ld_interface" = yes; then
8533 # If archive_cmds runs LD, not CC, wlarc should be empty
8534 wlarc='${wl}'
8535
8536 # Set some defaults for GNU ld with shared library support. These
8537 # are reset later if shared libraries are not supported. Putting them
8538 # here allows them to be overridden if necessary.
8539 runpath_var=LD_RUN_PATH
8540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8541 export_dynamic_flag_spec='${wl}--export-dynamic'
8542 # ancient GNU ld didn't support --whole-archive et. al.
8543 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8544 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8545 else
8546 whole_archive_flag_spec=
8547 fi
8548 supports_anon_versioning=no
8549 case `$LD -v 2>&1` in
8550 *GNU\ gold*) supports_anon_versioning=yes ;;
8551 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8552 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8553 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8554 *\ 2.11.*) ;; # other 2.11 versions
8555 *) supports_anon_versioning=yes ;;
8556 esac
8557
8558 # See if GNU ld supports shared libraries.
8559 case $host_os in
8560 aix[3-9]*)
8561 # On AIX/PPC, the GNU linker is very broken
8562 if test "$host_cpu" != ia64; then
8563 ld_shlibs=no
8564 cat <<_LT_EOF 1>&2
8565
8566 *** Warning: the GNU linker, at least up to release 2.19, is reported
8567 *** to be unable to reliably create shared libraries on AIX.
8568 *** Therefore, libtool is disabling shared libraries support. If you
8569 *** really care for shared libraries, you may want to install binutils
8570 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8571 *** You will then need to restart the configuration process.
8572
8573 _LT_EOF
8574 fi
8575 ;;
8576
8577 amigaos*)
8578 case $host_cpu in
8579 powerpc)
8580 # see comment about AmigaOS4 .so support
8581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8582 archive_expsym_cmds=''
8583 ;;
8584 m68k)
8585 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)'
8586 hardcode_libdir_flag_spec='-L$libdir'
8587 hardcode_minus_L=yes
8588 ;;
8589 esac
8590 ;;
8591
8592 beos*)
8593 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8594 allow_undefined_flag=unsupported
8595 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8596 # support --undefined. This deserves some investigation. FIXME
8597 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8598 else
8599 ld_shlibs=no
8600 fi
8601 ;;
8602
8603 cygwin* | mingw* | pw32* | cegcc*)
8604 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8605 # as there is no search path for DLLs.
8606 hardcode_libdir_flag_spec='-L$libdir'
8607 export_dynamic_flag_spec='${wl}--export-all-symbols'
8608 allow_undefined_flag=unsupported
8609 always_export_symbols=no
8610 enable_shared_with_static_runtimes=yes
8611 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'
8612 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8613
8614 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8616 # If the export-symbols file already is a .def file (1st line
8617 # is EXPORTS), use it as is; otherwise, prepend...
8618 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8619 cp $export_symbols $output_objdir/$soname.def;
8620 else
8621 echo EXPORTS > $output_objdir/$soname.def;
8622 cat $export_symbols >> $output_objdir/$soname.def;
8623 fi~
8624 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8625 else
8626 ld_shlibs=no
8627 fi
8628 ;;
8629
8630 haiku*)
8631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8632 link_all_deplibs=yes
8633 ;;
8634
8635 interix[3-9]*)
8636 hardcode_direct=no
8637 hardcode_shlibpath_var=no
8638 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8639 export_dynamic_flag_spec='${wl}-E'
8640 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8641 # Instead, shared libraries are loaded at an image base (0x10000000 by
8642 # default) and relocated if they conflict, which is a slow very memory
8643 # consuming and fragmenting process. To avoid this, we pick a random,
8644 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8645 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8646 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8647 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'
8648 ;;
8649
8650 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8651 tmp_diet=no
8652 if test "$host_os" = linux-dietlibc; then
8653 case $cc_basename in
8654 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8655 esac
8656 fi
8657 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8658 && test "$tmp_diet" = no
8659 then
8660 tmp_addflag=' $pic_flag'
8661 tmp_sharedflag='-shared'
8662 case $cc_basename,$host_cpu in
8663 pgcc*) # Portland Group C compiler
8664 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'
8665 tmp_addflag=' $pic_flag'
8666 ;;
8667 pgf77* | pgf90* | pgf95* | pgfortran*)
8668 # Portland Group f77 and f90 compilers
8669 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'
8670 tmp_addflag=' $pic_flag -Mnomain' ;;
8671 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8672 tmp_addflag=' -i_dynamic' ;;
8673 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8674 tmp_addflag=' -i_dynamic -nofor_main' ;;
8675 ifc* | ifort*) # Intel Fortran compiler
8676 tmp_addflag=' -nofor_main' ;;
8677 lf95*) # Lahey Fortran 8.1
8678 whole_archive_flag_spec=
8679 tmp_sharedflag='--shared' ;;
8680 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8681 tmp_sharedflag='-qmkshrobj'
8682 tmp_addflag= ;;
8683 nvcc*) # Cuda Compiler Driver 2.2
8684 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'
8685 compiler_needs_object=yes
8686 ;;
8687 esac
8688 case `$CC -V 2>&1 | sed 5q` in
8689 *Sun\ C*) # Sun C 5.9
8690 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'
8691 compiler_needs_object=yes
8692 tmp_sharedflag='-G' ;;
8693 *Sun\ F*) # Sun Fortran 8.3
8694 tmp_sharedflag='-G' ;;
8695 esac
8696 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8697
8698 if test "x$supports_anon_versioning" = xyes; then
8699 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8701 echo "local: *; };" >> $output_objdir/$libname.ver~
8702 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8703 fi
8704
8705 case $cc_basename in
8706 xlf* | bgf* | bgxlf* | mpixlf*)
8707 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8708 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8710 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8711 if test "x$supports_anon_versioning" = xyes; then
8712 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8713 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8714 echo "local: *; };" >> $output_objdir/$libname.ver~
8715 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8716 fi
8717 ;;
8718 esac
8719 else
8720 ld_shlibs=no
8721 fi
8722 ;;
8723
8724 netbsd* | netbsdelf*-gnu)
8725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8726 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8727 wlarc=
8728 else
8729 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8730 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8731 fi
8732 ;;
8733
8734 solaris*)
8735 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8736 ld_shlibs=no
8737 cat <<_LT_EOF 1>&2
8738
8739 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8740 *** create shared libraries on Solaris systems. Therefore, libtool
8741 *** is disabling shared libraries support. We urge you to upgrade GNU
8742 *** binutils to release 2.9.1 or newer. Another option is to modify
8743 *** your PATH or compiler configuration so that the native linker is
8744 *** used, and then restart.
8745
8746 _LT_EOF
8747 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8748 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8749 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8750 else
8751 ld_shlibs=no
8752 fi
8753 ;;
8754
8755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8756 case `$LD -v 2>&1` in
8757 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8758 ld_shlibs=no
8759 cat <<_LT_EOF 1>&2
8760
8761 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8762 *** reliably create shared libraries on SCO systems. Therefore, libtool
8763 *** is disabling shared libraries support. We urge you to upgrade GNU
8764 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8765 *** your PATH or compiler configuration so that the native linker is
8766 *** used, and then restart.
8767
8768 _LT_EOF
8769 ;;
8770 *)
8771 # For security reasons, it is highly recommended that you always
8772 # use absolute paths for naming shared libraries, and exclude the
8773 # DT_RUNPATH tag from executables and libraries. But doing so
8774 # requires that you compile everything twice, which is a pain.
8775 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8779 else
8780 ld_shlibs=no
8781 fi
8782 ;;
8783 esac
8784 ;;
8785
8786 sunos4*)
8787 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8788 wlarc=
8789 hardcode_direct=yes
8790 hardcode_shlibpath_var=no
8791 ;;
8792
8793 *)
8794 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8795 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8796 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8797 else
8798 ld_shlibs=no
8799 fi
8800 ;;
8801 esac
8802
8803 if test "$ld_shlibs" = no; then
8804 runpath_var=
8805 hardcode_libdir_flag_spec=
8806 export_dynamic_flag_spec=
8807 whole_archive_flag_spec=
8808 fi
8809 else
8810 # PORTME fill in a description of your system's linker (not GNU ld)
8811 case $host_os in
8812 aix3*)
8813 allow_undefined_flag=unsupported
8814 always_export_symbols=yes
8815 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'
8816 # Note: this linker hardcodes the directories in LIBPATH if there
8817 # are no directories specified by -L.
8818 hardcode_minus_L=yes
8819 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8820 # Neither direct hardcoding nor static linking is supported with a
8821 # broken collect2.
8822 hardcode_direct=unsupported
8823 fi
8824 ;;
8825
8826 aix[4-9]*)
8827 if test "$host_cpu" = ia64; then
8828 # On IA64, the linker does run time linking by default, so we don't
8829 # have to do anything special.
8830 aix_use_runtimelinking=no
8831 exp_sym_flag='-Bexport'
8832 no_entry_flag=""
8833 else
8834 # If we're using GNU nm, then we don't want the "-C" option.
8835 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8836 # Also, AIX nm treats weak defined symbols like other global
8837 # defined symbols, whereas GNU nm marks them as "W".
8838 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8839 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'
8840 else
8841 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'
8842 fi
8843 aix_use_runtimelinking=no
8844
8845 # Test if we are trying to use run time linking or normal
8846 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8847 # need to do runtime linking.
8848 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8849 for ld_flag in $LDFLAGS; do
8850 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8851 aix_use_runtimelinking=yes
8852 break
8853 fi
8854 done
8855 ;;
8856 esac
8857
8858 exp_sym_flag='-bexport'
8859 no_entry_flag='-bnoentry'
8860 fi
8861
8862 # When large executables or shared objects are built, AIX ld can
8863 # have problems creating the table of contents. If linking a library
8864 # or program results in "error TOC overflow" add -mminimal-toc to
8865 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8866 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8867
8868 archive_cmds=''
8869 hardcode_direct=yes
8870 hardcode_direct_absolute=yes
8871 hardcode_libdir_separator=':'
8872 link_all_deplibs=yes
8873 file_list_spec='${wl}-f,'
8874
8875 if test "$GCC" = yes; then
8876 case $host_os in aix4.[012]|aix4.[012].*)
8877 # We only want to do this on AIX 4.2 and lower, the check
8878 # below for broken collect2 doesn't work under 4.3+
8879 collect2name=`${CC} -print-prog-name=collect2`
8880 if test -f "$collect2name" &&
8881 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8882 then
8883 # We have reworked collect2
8884 :
8885 else
8886 # We have old collect2
8887 hardcode_direct=unsupported
8888 # It fails to find uninstalled libraries when the uninstalled
8889 # path is not listed in the libpath. Setting hardcode_minus_L
8890 # to unsupported forces relinking
8891 hardcode_minus_L=yes
8892 hardcode_libdir_flag_spec='-L$libdir'
8893 hardcode_libdir_separator=
8894 fi
8895 ;;
8896 esac
8897 shared_flag='-shared'
8898 if test "$aix_use_runtimelinking" = yes; then
8899 shared_flag="$shared_flag "'${wl}-G'
8900 fi
8901 link_all_deplibs=no
8902 else
8903 # not using gcc
8904 if test "$host_cpu" = ia64; then
8905 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8906 # chokes on -Wl,-G. The following line is correct:
8907 shared_flag='-G'
8908 else
8909 if test "$aix_use_runtimelinking" = yes; then
8910 shared_flag='${wl}-G'
8911 else
8912 shared_flag='${wl}-bM:SRE'
8913 fi
8914 fi
8915 fi
8916
8917 export_dynamic_flag_spec='${wl}-bexpall'
8918 # It seems that -bexpall does not export symbols beginning with
8919 # underscore (_), so it is better to generate a list of symbols to export.
8920 always_export_symbols=yes
8921 if test "$aix_use_runtimelinking" = yes; then
8922 # Warning - without using the other runtime loading flags (-brtl),
8923 # -berok will link without error, but may produce a broken library.
8924 allow_undefined_flag='-berok'
8925 # Determine the default libpath from the value encoded in an
8926 # empty executable.
8927 if test "${lt_cv_aix_libpath+set}" = set; then
8928 aix_libpath=$lt_cv_aix_libpath
8929 else
8930 if ${lt_cv_aix_libpath_+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935
8936 int
8937 main ()
8938 {
8939
8940 ;
8941 return 0;
8942 }
8943 _ACEOF
8944 if ac_fn_c_try_link "$LINENO"; then :
8945
8946 lt_aix_libpath_sed='
8947 /Import File Strings/,/^$/ {
8948 /^0/ {
8949 s/^0 *\([^ ]*\) *$/\1/
8950 p
8951 }
8952 }'
8953 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8954 # Check for a 64-bit object if we didn't find anything.
8955 if test -z "$lt_cv_aix_libpath_"; then
8956 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8957 fi
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext \
8960 conftest$ac_exeext conftest.$ac_ext
8961 if test -z "$lt_cv_aix_libpath_"; then
8962 lt_cv_aix_libpath_="/usr/lib:/lib"
8963 fi
8964
8965 fi
8966
8967 aix_libpath=$lt_cv_aix_libpath_
8968 fi
8969
8970 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8971 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"
8972 else
8973 if test "$host_cpu" = ia64; then
8974 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8975 allow_undefined_flag="-z nodefs"
8976 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"
8977 else
8978 # Determine the default libpath from the value encoded in an
8979 # empty executable.
8980 if test "${lt_cv_aix_libpath+set}" = set; then
8981 aix_libpath=$lt_cv_aix_libpath
8982 else
8983 if ${lt_cv_aix_libpath_+:} false; then :
8984 $as_echo_n "(cached) " >&6
8985 else
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988
8989 int
8990 main ()
8991 {
8992
8993 ;
8994 return 0;
8995 }
8996 _ACEOF
8997 if ac_fn_c_try_link "$LINENO"; then :
8998
8999 lt_aix_libpath_sed='
9000 /Import File Strings/,/^$/ {
9001 /^0/ {
9002 s/^0 *\([^ ]*\) *$/\1/
9003 p
9004 }
9005 }'
9006 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9007 # Check for a 64-bit object if we didn't find anything.
9008 if test -z "$lt_cv_aix_libpath_"; then
9009 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9010 fi
9011 fi
9012 rm -f core conftest.err conftest.$ac_objext \
9013 conftest$ac_exeext conftest.$ac_ext
9014 if test -z "$lt_cv_aix_libpath_"; then
9015 lt_cv_aix_libpath_="/usr/lib:/lib"
9016 fi
9017
9018 fi
9019
9020 aix_libpath=$lt_cv_aix_libpath_
9021 fi
9022
9023 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9024 # Warning - without using the other run time loading flags,
9025 # -berok will link without error, but may produce a broken library.
9026 no_undefined_flag=' ${wl}-bernotok'
9027 allow_undefined_flag=' ${wl}-berok'
9028 if test "$with_gnu_ld" = yes; then
9029 # We only use this code for GNU lds that support --whole-archive.
9030 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9031 else
9032 # Exported symbols can be pulled into shared objects from archives
9033 whole_archive_flag_spec='$convenience'
9034 fi
9035 archive_cmds_need_lc=yes
9036 # This is similar to how AIX traditionally builds its shared libraries.
9037 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'
9038 fi
9039 fi
9040 ;;
9041
9042 amigaos*)
9043 case $host_cpu in
9044 powerpc)
9045 # see comment about AmigaOS4 .so support
9046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9047 archive_expsym_cmds=''
9048 ;;
9049 m68k)
9050 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)'
9051 hardcode_libdir_flag_spec='-L$libdir'
9052 hardcode_minus_L=yes
9053 ;;
9054 esac
9055 ;;
9056
9057 bsdi[45]*)
9058 export_dynamic_flag_spec=-rdynamic
9059 ;;
9060
9061 cygwin* | mingw* | pw32* | cegcc*)
9062 # When not using gcc, we currently assume that we are using
9063 # Microsoft Visual C++.
9064 # hardcode_libdir_flag_spec is actually meaningless, as there is
9065 # no search path for DLLs.
9066 case $cc_basename in
9067 cl*)
9068 # Native MSVC
9069 hardcode_libdir_flag_spec=' '
9070 allow_undefined_flag=unsupported
9071 always_export_symbols=yes
9072 file_list_spec='@'
9073 # Tell ltmain to make .lib files, not .a files.
9074 libext=lib
9075 # Tell ltmain to make .dll files, not .so files.
9076 shrext_cmds=".dll"
9077 # FIXME: Setting linknames here is a bad hack.
9078 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9079 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9080 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9081 else
9082 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9083 fi~
9084 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9085 linknames='
9086 # The linker will not automatically build a static lib if we build a DLL.
9087 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9088 enable_shared_with_static_runtimes=yes
9089 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9090 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9091 # Don't use ranlib
9092 old_postinstall_cmds='chmod 644 $oldlib'
9093 postlink_cmds='lt_outputfile="@OUTPUT@"~
9094 lt_tool_outputfile="@TOOL_OUTPUT@"~
9095 case $lt_outputfile in
9096 *.exe|*.EXE) ;;
9097 *)
9098 lt_outputfile="$lt_outputfile.exe"
9099 lt_tool_outputfile="$lt_tool_outputfile.exe"
9100 ;;
9101 esac~
9102 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9103 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9104 $RM "$lt_outputfile.manifest";
9105 fi'
9106 ;;
9107 *)
9108 # Assume MSVC wrapper
9109 hardcode_libdir_flag_spec=' '
9110 allow_undefined_flag=unsupported
9111 # Tell ltmain to make .lib files, not .a files.
9112 libext=lib
9113 # Tell ltmain to make .dll files, not .so files.
9114 shrext_cmds=".dll"
9115 # FIXME: Setting linknames here is a bad hack.
9116 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9117 # The linker will automatically build a .lib file if we build a DLL.
9118 old_archive_from_new_cmds='true'
9119 # FIXME: Should let the user specify the lib program.
9120 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9121 enable_shared_with_static_runtimes=yes
9122 ;;
9123 esac
9124 ;;
9125
9126 darwin* | rhapsody*)
9127
9128
9129 archive_cmds_need_lc=no
9130 hardcode_direct=no
9131 hardcode_automatic=yes
9132 hardcode_shlibpath_var=unsupported
9133 if test "$lt_cv_ld_force_load" = "yes"; then
9134 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\"`'
9135
9136 else
9137 whole_archive_flag_spec=''
9138 fi
9139 link_all_deplibs=yes
9140 allow_undefined_flag="$_lt_dar_allow_undefined"
9141 case $cc_basename in
9142 ifort*) _lt_dar_can_shared=yes ;;
9143 *) _lt_dar_can_shared=$GCC ;;
9144 esac
9145 if test "$_lt_dar_can_shared" = "yes"; then
9146 output_verbose_link_cmd=func_echo_all
9147 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9148 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9149 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}"
9150 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}"
9151
9152 else
9153 ld_shlibs=no
9154 fi
9155
9156 ;;
9157
9158 dgux*)
9159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9160 hardcode_libdir_flag_spec='-L$libdir'
9161 hardcode_shlibpath_var=no
9162 ;;
9163
9164 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9165 # support. Future versions do this automatically, but an explicit c++rt0.o
9166 # does not break anything, and helps significantly (at the cost of a little
9167 # extra space).
9168 freebsd2.2*)
9169 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9170 hardcode_libdir_flag_spec='-R$libdir'
9171 hardcode_direct=yes
9172 hardcode_shlibpath_var=no
9173 ;;
9174
9175 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9176 freebsd2.*)
9177 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9178 hardcode_direct=yes
9179 hardcode_minus_L=yes
9180 hardcode_shlibpath_var=no
9181 ;;
9182
9183 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9184 freebsd* | dragonfly*)
9185 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9186 hardcode_libdir_flag_spec='-R$libdir'
9187 hardcode_direct=yes
9188 hardcode_shlibpath_var=no
9189 ;;
9190
9191 hpux9*)
9192 if test "$GCC" = yes; then
9193 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'
9194 else
9195 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'
9196 fi
9197 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198 hardcode_libdir_separator=:
9199 hardcode_direct=yes
9200
9201 # hardcode_minus_L: Not really in the search PATH,
9202 # but as the default location of the library.
9203 hardcode_minus_L=yes
9204 export_dynamic_flag_spec='${wl}-E'
9205 ;;
9206
9207 hpux10*)
9208 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9209 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9210 else
9211 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9212 fi
9213 if test "$with_gnu_ld" = no; then
9214 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9215 hardcode_libdir_separator=:
9216 hardcode_direct=yes
9217 hardcode_direct_absolute=yes
9218 export_dynamic_flag_spec='${wl}-E'
9219 # hardcode_minus_L: Not really in the search PATH,
9220 # but as the default location of the library.
9221 hardcode_minus_L=yes
9222 fi
9223 ;;
9224
9225 hpux11*)
9226 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9227 case $host_cpu in
9228 hppa*64*)
9229 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9230 ;;
9231 ia64*)
9232 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9233 ;;
9234 *)
9235 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9236 ;;
9237 esac
9238 else
9239 case $host_cpu in
9240 hppa*64*)
9241 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9242 ;;
9243 ia64*)
9244 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9245 ;;
9246 *)
9247
9248 # Older versions of the 11.00 compiler do not understand -b yet
9249 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9251 $as_echo_n "checking if $CC understands -b... " >&6; }
9252 if ${lt_cv_prog_compiler__b+:} false; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 lt_cv_prog_compiler__b=no
9256 save_LDFLAGS="$LDFLAGS"
9257 LDFLAGS="$LDFLAGS -b"
9258 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9259 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9260 # The linker can only warn and ignore the option if not recognized
9261 # So say no if there are warnings
9262 if test -s conftest.err; then
9263 # Append any errors to the config.log.
9264 cat conftest.err 1>&5
9265 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9267 if diff conftest.exp conftest.er2 >/dev/null; then
9268 lt_cv_prog_compiler__b=yes
9269 fi
9270 else
9271 lt_cv_prog_compiler__b=yes
9272 fi
9273 fi
9274 $RM -r conftest*
9275 LDFLAGS="$save_LDFLAGS"
9276
9277 fi
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9279 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9280
9281 if test x"$lt_cv_prog_compiler__b" = xyes; then
9282 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9283 else
9284 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9285 fi
9286
9287 ;;
9288 esac
9289 fi
9290 if test "$with_gnu_ld" = no; then
9291 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9292 hardcode_libdir_separator=:
9293
9294 case $host_cpu in
9295 hppa*64*|ia64*)
9296 hardcode_direct=no
9297 hardcode_shlibpath_var=no
9298 ;;
9299 *)
9300 hardcode_direct=yes
9301 hardcode_direct_absolute=yes
9302 export_dynamic_flag_spec='${wl}-E'
9303
9304 # hardcode_minus_L: Not really in the search PATH,
9305 # but as the default location of the library.
9306 hardcode_minus_L=yes
9307 ;;
9308 esac
9309 fi
9310 ;;
9311
9312 irix5* | irix6* | nonstopux*)
9313 if test "$GCC" = yes; then
9314 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'
9315 # Try to use the -exported_symbol ld option, if it does not
9316 # work, assume that -exports_file does not work either and
9317 # implicitly export all symbols.
9318 # This should be the same for all languages, so no per-tag cache variable.
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9320 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9321 if ${lt_cv_irix_exported_symbol+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 save_LDFLAGS="$LDFLAGS"
9325 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h. */
9328 int foo (void) { return 0; }
9329 _ACEOF
9330 if ac_fn_c_try_link "$LINENO"; then :
9331 lt_cv_irix_exported_symbol=yes
9332 else
9333 lt_cv_irix_exported_symbol=no
9334 fi
9335 rm -f core conftest.err conftest.$ac_objext \
9336 conftest$ac_exeext conftest.$ac_ext
9337 LDFLAGS="$save_LDFLAGS"
9338 fi
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9340 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9341 if test "$lt_cv_irix_exported_symbol" = yes; then
9342 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'
9343 fi
9344 else
9345 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'
9346 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'
9347 fi
9348 archive_cmds_need_lc='no'
9349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9350 hardcode_libdir_separator=:
9351 inherit_rpath=yes
9352 link_all_deplibs=yes
9353 ;;
9354
9355 netbsd* | netbsdelf*-gnu)
9356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9358 else
9359 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9360 fi
9361 hardcode_libdir_flag_spec='-R$libdir'
9362 hardcode_direct=yes
9363 hardcode_shlibpath_var=no
9364 ;;
9365
9366 newsos6)
9367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9368 hardcode_direct=yes
9369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9370 hardcode_libdir_separator=:
9371 hardcode_shlibpath_var=no
9372 ;;
9373
9374 *nto* | *qnx*)
9375 ;;
9376
9377 openbsd*)
9378 if test -f /usr/libexec/ld.so; then
9379 hardcode_direct=yes
9380 hardcode_shlibpath_var=no
9381 hardcode_direct_absolute=yes
9382 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9383 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9385 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9386 export_dynamic_flag_spec='${wl}-E'
9387 else
9388 case $host_os in
9389 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_libdir_flag_spec='-R$libdir'
9392 ;;
9393 *)
9394 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9395 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9396 ;;
9397 esac
9398 fi
9399 else
9400 ld_shlibs=no
9401 fi
9402 ;;
9403
9404 os2*)
9405 hardcode_libdir_flag_spec='-L$libdir'
9406 hardcode_minus_L=yes
9407 allow_undefined_flag=unsupported
9408 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'
9409 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9410 ;;
9411
9412 osf3*)
9413 if test "$GCC" = yes; then
9414 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9415 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'
9416 else
9417 allow_undefined_flag=' -expect_unresolved \*'
9418 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'
9419 fi
9420 archive_cmds_need_lc='no'
9421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9422 hardcode_libdir_separator=:
9423 ;;
9424
9425 osf4* | osf5*) # as osf3* with the addition of -msym flag
9426 if test "$GCC" = yes; then
9427 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9428 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'
9429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9430 else
9431 allow_undefined_flag=' -expect_unresolved \*'
9432 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'
9433 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~
9434 $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'
9435
9436 # Both c and cxx compiler support -rpath directly
9437 hardcode_libdir_flag_spec='-rpath $libdir'
9438 fi
9439 archive_cmds_need_lc='no'
9440 hardcode_libdir_separator=:
9441 ;;
9442
9443 solaris*)
9444 no_undefined_flag=' -z defs'
9445 if test "$GCC" = yes; then
9446 wlarc='${wl}'
9447 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9448 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9449 $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'
9450 else
9451 case `$CC -V 2>&1` in
9452 *"Compilers 5.0"*)
9453 wlarc=''
9454 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9456 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9457 ;;
9458 *)
9459 wlarc='${wl}'
9460 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9461 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9462 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9463 ;;
9464 esac
9465 fi
9466 hardcode_libdir_flag_spec='-R$libdir'
9467 hardcode_shlibpath_var=no
9468 case $host_os in
9469 solaris2.[0-5] | solaris2.[0-5].*) ;;
9470 *)
9471 # The compiler driver will combine and reorder linker options,
9472 # but understands `-z linker_flag'. GCC discards it without `$wl',
9473 # but is careful enough not to reorder.
9474 # Supported since Solaris 2.6 (maybe 2.5.1?)
9475 if test "$GCC" = yes; then
9476 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9477 else
9478 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9479 fi
9480 ;;
9481 esac
9482 link_all_deplibs=yes
9483 ;;
9484
9485 sunos4*)
9486 if test "x$host_vendor" = xsequent; then
9487 # Use $CC to link under sequent, because it throws in some extra .o
9488 # files that make .init and .fini sections work.
9489 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9490 else
9491 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9492 fi
9493 hardcode_libdir_flag_spec='-L$libdir'
9494 hardcode_direct=yes
9495 hardcode_minus_L=yes
9496 hardcode_shlibpath_var=no
9497 ;;
9498
9499 sysv4)
9500 case $host_vendor in
9501 sni)
9502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503 hardcode_direct=yes # is this really true???
9504 ;;
9505 siemens)
9506 ## LD is ld it makes a PLAMLIB
9507 ## CC just makes a GrossModule.
9508 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9509 reload_cmds='$CC -r -o $output$reload_objs'
9510 hardcode_direct=no
9511 ;;
9512 motorola)
9513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9515 ;;
9516 esac
9517 runpath_var='LD_RUN_PATH'
9518 hardcode_shlibpath_var=no
9519 ;;
9520
9521 sysv4.3*)
9522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523 hardcode_shlibpath_var=no
9524 export_dynamic_flag_spec='-Bexport'
9525 ;;
9526
9527 sysv4*MP*)
9528 if test -d /usr/nec; then
9529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530 hardcode_shlibpath_var=no
9531 runpath_var=LD_RUN_PATH
9532 hardcode_runpath_var=yes
9533 ld_shlibs=yes
9534 fi
9535 ;;
9536
9537 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9538 no_undefined_flag='${wl}-z,text'
9539 archive_cmds_need_lc=no
9540 hardcode_shlibpath_var=no
9541 runpath_var='LD_RUN_PATH'
9542
9543 if test "$GCC" = yes; then
9544 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9545 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9546 else
9547 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9548 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9549 fi
9550 ;;
9551
9552 sysv5* | sco3.2v5* | sco5v6*)
9553 # Note: We can NOT use -z defs as we might desire, because we do not
9554 # link with -lc, and that would cause any symbols used from libc to
9555 # always be unresolved, which means just about no library would
9556 # ever link correctly. If we're not using GNU ld we use -z text
9557 # though, which does catch some bad symbols but isn't as heavy-handed
9558 # as -z defs.
9559 no_undefined_flag='${wl}-z,text'
9560 allow_undefined_flag='${wl}-z,nodefs'
9561 archive_cmds_need_lc=no
9562 hardcode_shlibpath_var=no
9563 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9564 hardcode_libdir_separator=':'
9565 link_all_deplibs=yes
9566 export_dynamic_flag_spec='${wl}-Bexport'
9567 runpath_var='LD_RUN_PATH'
9568
9569 if test "$GCC" = yes; then
9570 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9571 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9572 else
9573 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9574 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9575 fi
9576 ;;
9577
9578 uts4*)
9579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_libdir_flag_spec='-L$libdir'
9581 hardcode_shlibpath_var=no
9582 ;;
9583
9584 *)
9585 ld_shlibs=no
9586 ;;
9587 esac
9588
9589 if test x$host_vendor = xsni; then
9590 case $host in
9591 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9592 export_dynamic_flag_spec='${wl}-Blargedynsym'
9593 ;;
9594 esac
9595 fi
9596 fi
9597
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9599 $as_echo "$ld_shlibs" >&6; }
9600 test "$ld_shlibs" = no && can_build_shared=no
9601
9602 with_gnu_ld=$with_gnu_ld
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618 #
9619 # Do we need to explicitly link libc?
9620 #
9621 case "x$archive_cmds_need_lc" in
9622 x|xyes)
9623 # Assume -lc should be added
9624 archive_cmds_need_lc=yes
9625
9626 if test "$enable_shared" = yes && test "$GCC" = yes; then
9627 case $archive_cmds in
9628 *'~'*)
9629 # FIXME: we may have to deal with multi-command sequences.
9630 ;;
9631 '$CC '*)
9632 # Test whether the compiler implicitly links with -lc since on some
9633 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9634 # to ld, don't add -lc before -lgcc.
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9636 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9637 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 $RM conftest*
9641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9642
9643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9644 (eval $ac_compile) 2>&5
9645 ac_status=$?
9646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9647 test $ac_status = 0; } 2>conftest.err; then
9648 soname=conftest
9649 lib=conftest
9650 libobjs=conftest.$ac_objext
9651 deplibs=
9652 wl=$lt_prog_compiler_wl
9653 pic_flag=$lt_prog_compiler_pic
9654 compiler_flags=-v
9655 linker_flags=-v
9656 verstring=
9657 output_objdir=.
9658 libname=conftest
9659 lt_save_allow_undefined_flag=$allow_undefined_flag
9660 allow_undefined_flag=
9661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9662 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9663 ac_status=$?
9664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9665 test $ac_status = 0; }
9666 then
9667 lt_cv_archive_cmds_need_lc=no
9668 else
9669 lt_cv_archive_cmds_need_lc=yes
9670 fi
9671 allow_undefined_flag=$lt_save_allow_undefined_flag
9672 else
9673 cat conftest.err 1>&5
9674 fi
9675 $RM conftest*
9676
9677 fi
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9679 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9680 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9681 ;;
9682 esac
9683 fi
9684 ;;
9685 esac
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
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9839 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9840
9841 if test "$GCC" = yes; then
9842 case $host_os in
9843 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9844 *) lt_awk_arg="/^libraries:/" ;;
9845 esac
9846 case $host_os in
9847 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9848 *) lt_sed_strip_eq="s,=/,/,g" ;;
9849 esac
9850 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9851 case $lt_search_path_spec in
9852 *\;*)
9853 # if the path contains ";" then we assume it to be the separator
9854 # otherwise default to the standard path separator (i.e. ":") - it is
9855 # assumed that no part of a normal pathname contains ";" but that should
9856 # okay in the real world where ";" in dirpaths is itself problematic.
9857 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9858 ;;
9859 *)
9860 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9861 ;;
9862 esac
9863 # Ok, now we have the path, separated by spaces, we can step through it
9864 # and add multilib dir if necessary.
9865 lt_tmp_lt_search_path_spec=
9866 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9867 for lt_sys_path in $lt_search_path_spec; do
9868 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9869 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9870 else
9871 test -d "$lt_sys_path" && \
9872 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9873 fi
9874 done
9875 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9876 BEGIN {RS=" "; FS="/|\n";} {
9877 lt_foo="";
9878 lt_count=0;
9879 for (lt_i = NF; lt_i > 0; lt_i--) {
9880 if ($lt_i != "" && $lt_i != ".") {
9881 if ($lt_i == "..") {
9882 lt_count++;
9883 } else {
9884 if (lt_count == 0) {
9885 lt_foo="/" $lt_i lt_foo;
9886 } else {
9887 lt_count--;
9888 }
9889 }
9890 }
9891 }
9892 if (lt_foo != "") { lt_freq[lt_foo]++; }
9893 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9894 }'`
9895 # AWK program above erroneously prepends '/' to C:/dos/paths
9896 # for these hosts.
9897 case $host_os in
9898 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9899 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9900 esac
9901 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9902 else
9903 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9904 fi
9905 library_names_spec=
9906 libname_spec='lib$name'
9907 soname_spec=
9908 shrext_cmds=".so"
9909 postinstall_cmds=
9910 postuninstall_cmds=
9911 finish_cmds=
9912 finish_eval=
9913 shlibpath_var=
9914 shlibpath_overrides_runpath=unknown
9915 version_type=none
9916 dynamic_linker="$host_os ld.so"
9917 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9918 need_lib_prefix=unknown
9919 hardcode_into_libs=no
9920
9921 # when you set need_version to no, make sure it does not cause -set_version
9922 # flags to be left without arguments
9923 need_version=unknown
9924
9925 case $host_os in
9926 aix3*)
9927 version_type=linux # correct to gnu/linux during the next big refactor
9928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9929 shlibpath_var=LIBPATH
9930
9931 # AIX 3 has no versioning support, so we append a major version to the name.
9932 soname_spec='${libname}${release}${shared_ext}$major'
9933 ;;
9934
9935 aix[4-9]*)
9936 version_type=linux # correct to gnu/linux during the next big refactor
9937 need_lib_prefix=no
9938 need_version=no
9939 hardcode_into_libs=yes
9940 if test "$host_cpu" = ia64; then
9941 # AIX 5 supports IA64
9942 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9943 shlibpath_var=LD_LIBRARY_PATH
9944 else
9945 # With GCC up to 2.95.x, collect2 would create an import file
9946 # for dependence libraries. The import file would start with
9947 # the line `#! .'. This would cause the generated library to
9948 # depend on `.', always an invalid library. This was fixed in
9949 # development snapshots of GCC prior to 3.0.
9950 case $host_os in
9951 aix4 | aix4.[01] | aix4.[01].*)
9952 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9953 echo ' yes '
9954 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9955 :
9956 else
9957 can_build_shared=no
9958 fi
9959 ;;
9960 esac
9961 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9962 # soname into executable. Probably we can add versioning support to
9963 # collect2, so additional links can be useful in future.
9964 if test "$aix_use_runtimelinking" = yes; then
9965 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9966 # instead of lib<name>.a to let people know that these are not
9967 # typical AIX shared libraries.
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969 else
9970 # We preserve .a as extension for shared libraries through AIX4.2
9971 # and later when we are not doing run time linking.
9972 library_names_spec='${libname}${release}.a $libname.a'
9973 soname_spec='${libname}${release}${shared_ext}$major'
9974 fi
9975 shlibpath_var=LIBPATH
9976 fi
9977 ;;
9978
9979 amigaos*)
9980 case $host_cpu in
9981 powerpc)
9982 # Since July 2007 AmigaOS4 officially supports .so libraries.
9983 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985 ;;
9986 m68k)
9987 library_names_spec='$libname.ixlibrary $libname.a'
9988 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9989 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'
9990 ;;
9991 esac
9992 ;;
9993
9994 beos*)
9995 library_names_spec='${libname}${shared_ext}'
9996 dynamic_linker="$host_os ld.so"
9997 shlibpath_var=LIBRARY_PATH
9998 ;;
9999
10000 bsdi[45]*)
10001 version_type=linux # correct to gnu/linux during the next big refactor
10002 need_version=no
10003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10004 soname_spec='${libname}${release}${shared_ext}$major'
10005 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10008 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10009 # the default ld.so.conf also contains /usr/contrib/lib and
10010 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10011 # libtool to hard-code these into programs
10012 ;;
10013
10014 cygwin* | mingw* | pw32* | cegcc*)
10015 version_type=windows
10016 shrext_cmds=".dll"
10017 need_version=no
10018 need_lib_prefix=no
10019
10020 case $GCC,$cc_basename in
10021 yes,*)
10022 # gcc
10023 library_names_spec='$libname.dll.a'
10024 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10025 postinstall_cmds='base_file=`basename \${file}`~
10026 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10027 dldir=$destdir/`dirname \$dlpath`~
10028 test -d \$dldir || mkdir -p \$dldir~
10029 $install_prog $dir/$dlname \$dldir/$dlname~
10030 chmod a+x \$dldir/$dlname~
10031 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10032 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10033 fi'
10034 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10035 dlpath=$dir/\$dldll~
10036 $RM \$dlpath'
10037 shlibpath_overrides_runpath=yes
10038
10039 case $host_os in
10040 cygwin*)
10041 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10042 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10043
10044 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10045 ;;
10046 mingw* | cegcc*)
10047 # MinGW DLLs use traditional 'lib' prefix
10048 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10049 ;;
10050 pw32*)
10051 # pw32 DLLs use 'pw' prefix rather than 'lib'
10052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10053 ;;
10054 esac
10055 dynamic_linker='Win32 ld.exe'
10056 ;;
10057
10058 *,cl*)
10059 # Native MSVC
10060 libname_spec='$name'
10061 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10062 library_names_spec='${libname}.dll.lib'
10063
10064 case $build_os in
10065 mingw*)
10066 sys_lib_search_path_spec=
10067 lt_save_ifs=$IFS
10068 IFS=';'
10069 for lt_path in $LIB
10070 do
10071 IFS=$lt_save_ifs
10072 # Let DOS variable expansion print the short 8.3 style file name.
10073 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10074 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10075 done
10076 IFS=$lt_save_ifs
10077 # Convert to MSYS style.
10078 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10079 ;;
10080 cygwin*)
10081 # Convert to unix form, then to dos form, then back to unix form
10082 # but this time dos style (no spaces!) so that the unix form looks
10083 # like /cygdrive/c/PROGRA~1:/cygdr...
10084 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10085 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10086 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10087 ;;
10088 *)
10089 sys_lib_search_path_spec="$LIB"
10090 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10091 # It is most probably a Windows format PATH.
10092 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10093 else
10094 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10095 fi
10096 # FIXME: find the short name or the path components, as spaces are
10097 # common. (e.g. "Program Files" -> "PROGRA~1")
10098 ;;
10099 esac
10100
10101 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10102 postinstall_cmds='base_file=`basename \${file}`~
10103 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10104 dldir=$destdir/`dirname \$dlpath`~
10105 test -d \$dldir || mkdir -p \$dldir~
10106 $install_prog $dir/$dlname \$dldir/$dlname'
10107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10108 dlpath=$dir/\$dldll~
10109 $RM \$dlpath'
10110 shlibpath_overrides_runpath=yes
10111 dynamic_linker='Win32 link.exe'
10112 ;;
10113
10114 *)
10115 # Assume MSVC wrapper
10116 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10117 dynamic_linker='Win32 ld.exe'
10118 ;;
10119 esac
10120 # FIXME: first we should search . and the directory the executable is in
10121 shlibpath_var=PATH
10122 ;;
10123
10124 darwin* | rhapsody*)
10125 dynamic_linker="$host_os dyld"
10126 version_type=darwin
10127 need_lib_prefix=no
10128 need_version=no
10129 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10130 soname_spec='${libname}${release}${major}$shared_ext'
10131 shlibpath_overrides_runpath=yes
10132 shlibpath_var=DYLD_LIBRARY_PATH
10133 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10134
10135 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10136 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10137 ;;
10138
10139 dgux*)
10140 version_type=linux # correct to gnu/linux during the next big refactor
10141 need_lib_prefix=no
10142 need_version=no
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 shlibpath_var=LD_LIBRARY_PATH
10146 ;;
10147
10148 freebsd* | dragonfly*)
10149 # DragonFly does not have aout. When/if they implement a new
10150 # versioning mechanism, adjust this.
10151 if test -x /usr/bin/objformat; then
10152 objformat=`/usr/bin/objformat`
10153 else
10154 case $host_os in
10155 freebsd[23].*) objformat=aout ;;
10156 *) objformat=elf ;;
10157 esac
10158 fi
10159 version_type=freebsd-$objformat
10160 case $version_type in
10161 freebsd-elf*)
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10163 need_version=no
10164 need_lib_prefix=no
10165 ;;
10166 freebsd-*)
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10168 need_version=yes
10169 ;;
10170 esac
10171 shlibpath_var=LD_LIBRARY_PATH
10172 case $host_os in
10173 freebsd2.*)
10174 shlibpath_overrides_runpath=yes
10175 ;;
10176 freebsd3.[01]* | freebsdelf3.[01]*)
10177 shlibpath_overrides_runpath=yes
10178 hardcode_into_libs=yes
10179 ;;
10180 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10181 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10182 shlibpath_overrides_runpath=no
10183 hardcode_into_libs=yes
10184 ;;
10185 *) # from 4.6 on, and DragonFly
10186 shlibpath_overrides_runpath=yes
10187 hardcode_into_libs=yes
10188 ;;
10189 esac
10190 ;;
10191
10192 gnu*)
10193 version_type=linux # correct to gnu/linux during the next big refactor
10194 need_lib_prefix=no
10195 need_version=no
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 shlibpath_overrides_runpath=no
10200 hardcode_into_libs=yes
10201 ;;
10202
10203 haiku*)
10204 version_type=linux # correct to gnu/linux during the next big refactor
10205 need_lib_prefix=no
10206 need_version=no
10207 dynamic_linker="$host_os runtime_loader"
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 shlibpath_var=LIBRARY_PATH
10211 shlibpath_overrides_runpath=yes
10212 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10213 hardcode_into_libs=yes
10214 ;;
10215
10216 hpux9* | hpux10* | hpux11*)
10217 # Give a soname corresponding to the major version so that dld.sl refuses to
10218 # link against other versions.
10219 version_type=sunos
10220 need_lib_prefix=no
10221 need_version=no
10222 case $host_cpu in
10223 ia64*)
10224 shrext_cmds='.so'
10225 hardcode_into_libs=yes
10226 dynamic_linker="$host_os dld.so"
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 if test "X$HPUX_IA64_MODE" = X32; then
10232 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10233 else
10234 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10235 fi
10236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10237 ;;
10238 hppa*64*)
10239 shrext_cmds='.sl'
10240 hardcode_into_libs=yes
10241 dynamic_linker="$host_os dld.sl"
10242 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10245 soname_spec='${libname}${release}${shared_ext}$major'
10246 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10248 ;;
10249 *)
10250 shrext_cmds='.sl'
10251 dynamic_linker="$host_os dld.sl"
10252 shlibpath_var=SHLIB_PATH
10253 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 ;;
10257 esac
10258 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10259 postinstall_cmds='chmod 555 $lib'
10260 # or fails outright, so override atomically:
10261 install_override_mode=555
10262 ;;
10263
10264 interix[3-9]*)
10265 version_type=linux # correct to gnu/linux during the next big refactor
10266 need_lib_prefix=no
10267 need_version=no
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10269 soname_spec='${libname}${release}${shared_ext}$major'
10270 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=no
10273 hardcode_into_libs=yes
10274 ;;
10275
10276 irix5* | irix6* | nonstopux*)
10277 case $host_os in
10278 nonstopux*) version_type=nonstopux ;;
10279 *)
10280 if test "$lt_cv_prog_gnu_ld" = yes; then
10281 version_type=linux # correct to gnu/linux during the next big refactor
10282 else
10283 version_type=irix
10284 fi ;;
10285 esac
10286 need_lib_prefix=no
10287 need_version=no
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10290 case $host_os in
10291 irix5* | nonstopux*)
10292 libsuff= shlibsuff=
10293 ;;
10294 *)
10295 case $LD in # libtool.m4 will add one of these switches to LD
10296 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10297 libsuff= shlibsuff= libmagic=32-bit;;
10298 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10299 libsuff=32 shlibsuff=N32 libmagic=N32;;
10300 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10301 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10302 *) libsuff= shlibsuff= libmagic=never-match;;
10303 esac
10304 ;;
10305 esac
10306 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10307 shlibpath_overrides_runpath=no
10308 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10309 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10310 hardcode_into_libs=yes
10311 ;;
10312
10313 # No shared lib support for Linux oldld, aout, or coff.
10314 linux*oldld* | linux*aout* | linux*coff*)
10315 dynamic_linker=no
10316 ;;
10317
10318 # This must be glibc/ELF.
10319 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10320 version_type=linux # correct to gnu/linux during the next big refactor
10321 need_lib_prefix=no
10322 need_version=no
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=no
10328
10329 # Some binutils ld are patched to set DT_RUNPATH
10330 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10331 $as_echo_n "(cached) " >&6
10332 else
10333 lt_cv_shlibpath_overrides_runpath=no
10334 save_LDFLAGS=$LDFLAGS
10335 save_libdir=$libdir
10336 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10337 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10340
10341 int
10342 main ()
10343 {
10344
10345 ;
10346 return 0;
10347 }
10348 _ACEOF
10349 if ac_fn_c_try_link "$LINENO"; then :
10350 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10351 lt_cv_shlibpath_overrides_runpath=yes
10352 fi
10353 fi
10354 rm -f core conftest.err conftest.$ac_objext \
10355 conftest$ac_exeext conftest.$ac_ext
10356 LDFLAGS=$save_LDFLAGS
10357 libdir=$save_libdir
10358
10359 fi
10360
10361 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10362
10363 # This implies no fast_install, which is unacceptable.
10364 # Some rework will be needed to allow for fast_install
10365 # before this can be enabled.
10366 hardcode_into_libs=yes
10367
10368 # Append ld.so.conf contents to the search path
10369 if test -f /etc/ld.so.conf; then
10370 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' ' '`
10371 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10372 fi
10373
10374 # We used to test for /lib/ld.so.1 and disable shared libraries on
10375 # powerpc, because MkLinux only supported shared libraries with the
10376 # GNU dynamic linker. Since this was broken with cross compilers,
10377 # most powerpc-linux boxes support dynamic linking these days and
10378 # people can always --disable-shared, the test was removed, and we
10379 # assume the GNU/Linux dynamic linker is in use.
10380 dynamic_linker='GNU/Linux ld.so'
10381 ;;
10382
10383 netbsdelf*-gnu)
10384 version_type=linux
10385 need_lib_prefix=no
10386 need_version=no
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 shlibpath_overrides_runpath=no
10391 hardcode_into_libs=yes
10392 dynamic_linker='NetBSD ld.elf_so'
10393 ;;
10394
10395 netbsd*)
10396 version_type=sunos
10397 need_lib_prefix=no
10398 need_version=no
10399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10402 dynamic_linker='NetBSD (a.out) ld.so'
10403 else
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 dynamic_linker='NetBSD ld.elf_so'
10407 fi
10408 shlibpath_var=LD_LIBRARY_PATH
10409 shlibpath_overrides_runpath=yes
10410 hardcode_into_libs=yes
10411 ;;
10412
10413 newsos6)
10414 version_type=linux # correct to gnu/linux during the next big refactor
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 shlibpath_overrides_runpath=yes
10418 ;;
10419
10420 *nto* | *qnx*)
10421 version_type=qnx
10422 need_lib_prefix=no
10423 need_version=no
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=no
10428 hardcode_into_libs=yes
10429 dynamic_linker='ldqnx.so'
10430 ;;
10431
10432 openbsd*)
10433 version_type=sunos
10434 sys_lib_dlsearch_path_spec="/usr/lib"
10435 need_lib_prefix=no
10436 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10437 case $host_os in
10438 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10439 *) need_version=no ;;
10440 esac
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10443 shlibpath_var=LD_LIBRARY_PATH
10444 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10445 case $host_os in
10446 openbsd2.[89] | openbsd2.[89].*)
10447 shlibpath_overrides_runpath=no
10448 ;;
10449 *)
10450 shlibpath_overrides_runpath=yes
10451 ;;
10452 esac
10453 else
10454 shlibpath_overrides_runpath=yes
10455 fi
10456 ;;
10457
10458 os2*)
10459 libname_spec='$name'
10460 shrext_cmds=".dll"
10461 need_lib_prefix=no
10462 library_names_spec='$libname${shared_ext} $libname.a'
10463 dynamic_linker='OS/2 ld.exe'
10464 shlibpath_var=LIBPATH
10465 ;;
10466
10467 osf3* | osf4* | osf5*)
10468 version_type=osf
10469 need_lib_prefix=no
10470 need_version=no
10471 soname_spec='${libname}${release}${shared_ext}$major'
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10473 shlibpath_var=LD_LIBRARY_PATH
10474 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10475 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10476 ;;
10477
10478 rdos*)
10479 dynamic_linker=no
10480 ;;
10481
10482 solaris*)
10483 version_type=linux # correct to gnu/linux during the next big refactor
10484 need_lib_prefix=no
10485 need_version=no
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10487 soname_spec='${libname}${release}${shared_ext}$major'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 shlibpath_overrides_runpath=yes
10490 hardcode_into_libs=yes
10491 # ldd complains unless libraries are executable
10492 postinstall_cmds='chmod +x $lib'
10493 ;;
10494
10495 sunos4*)
10496 version_type=sunos
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10498 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10499 shlibpath_var=LD_LIBRARY_PATH
10500 shlibpath_overrides_runpath=yes
10501 if test "$with_gnu_ld" = yes; then
10502 need_lib_prefix=no
10503 fi
10504 need_version=yes
10505 ;;
10506
10507 sysv4 | sysv4.3*)
10508 version_type=linux # correct to gnu/linux during the next big refactor
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510 soname_spec='${libname}${release}${shared_ext}$major'
10511 shlibpath_var=LD_LIBRARY_PATH
10512 case $host_vendor in
10513 sni)
10514 shlibpath_overrides_runpath=no
10515 need_lib_prefix=no
10516 runpath_var=LD_RUN_PATH
10517 ;;
10518 siemens)
10519 need_lib_prefix=no
10520 ;;
10521 motorola)
10522 need_lib_prefix=no
10523 need_version=no
10524 shlibpath_overrides_runpath=no
10525 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10526 ;;
10527 esac
10528 ;;
10529
10530 sysv4*MP*)
10531 if test -d /usr/nec ;then
10532 version_type=linux # correct to gnu/linux during the next big refactor
10533 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10534 soname_spec='$libname${shared_ext}.$major'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 fi
10537 ;;
10538
10539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10540 version_type=freebsd-elf
10541 need_lib_prefix=no
10542 need_version=no
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 shlibpath_var=LD_LIBRARY_PATH
10546 shlibpath_overrides_runpath=yes
10547 hardcode_into_libs=yes
10548 if test "$with_gnu_ld" = yes; then
10549 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10550 else
10551 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10552 case $host_os in
10553 sco3.2v5*)
10554 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10555 ;;
10556 esac
10557 fi
10558 sys_lib_dlsearch_path_spec='/usr/lib'
10559 ;;
10560
10561 tpf*)
10562 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10563 version_type=linux # correct to gnu/linux during the next big refactor
10564 need_lib_prefix=no
10565 need_version=no
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 shlibpath_var=LD_LIBRARY_PATH
10568 shlibpath_overrides_runpath=no
10569 hardcode_into_libs=yes
10570 ;;
10571
10572 uts4*)
10573 version_type=linux # correct to gnu/linux during the next big refactor
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 ;;
10578
10579 *)
10580 dynamic_linker=no
10581 ;;
10582 esac
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10584 $as_echo "$dynamic_linker" >&6; }
10585 test "$dynamic_linker" = no && can_build_shared=no
10586
10587 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10588 if test "$GCC" = yes; then
10589 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10590 fi
10591
10592 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10593 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10594 fi
10595 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10596 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10597 fi
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10691 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10692 hardcode_action=
10693 if test -n "$hardcode_libdir_flag_spec" ||
10694 test -n "$runpath_var" ||
10695 test "X$hardcode_automatic" = "Xyes" ; then
10696
10697 # We can hardcode non-existent directories.
10698 if test "$hardcode_direct" != no &&
10699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10700 # have to relink, otherwise we might link with an installed library
10701 # when we should be linking with a yet-to-be-installed one
10702 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10703 test "$hardcode_minus_L" != no; then
10704 # Linking always hardcodes the temporary library directory.
10705 hardcode_action=relink
10706 else
10707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10708 hardcode_action=immediate
10709 fi
10710 else
10711 # We cannot hardcode anything, or else we can only hardcode existing
10712 # directories.
10713 hardcode_action=unsupported
10714 fi
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10716 $as_echo "$hardcode_action" >&6; }
10717
10718 if test "$hardcode_action" = relink ||
10719 test "$inherit_rpath" = yes; then
10720 # Fast installation is not supported
10721 enable_fast_install=no
10722 elif test "$shlibpath_overrides_runpath" = yes ||
10723 test "$enable_shared" = no; then
10724 # Fast installation is not necessary
10725 enable_fast_install=needless
10726 fi
10727
10728
10729
10730
10731
10732
10733 if test "x$enable_dlopen" != xyes; then
10734 enable_dlopen=unknown
10735 enable_dlopen_self=unknown
10736 enable_dlopen_self_static=unknown
10737 else
10738 lt_cv_dlopen=no
10739 lt_cv_dlopen_libs=
10740
10741 case $host_os in
10742 beos*)
10743 lt_cv_dlopen="load_add_on"
10744 lt_cv_dlopen_libs=
10745 lt_cv_dlopen_self=yes
10746 ;;
10747
10748 mingw* | pw32* | cegcc*)
10749 lt_cv_dlopen="LoadLibrary"
10750 lt_cv_dlopen_libs=
10751 ;;
10752
10753 cygwin*)
10754 lt_cv_dlopen="dlopen"
10755 lt_cv_dlopen_libs=
10756 ;;
10757
10758 darwin*)
10759 # if libdl is installed we need to link against it
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10761 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10762 if ${ac_cv_lib_dl_dlopen+:} false; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 ac_check_lib_save_LIBS=$LIBS
10766 LIBS="-ldl $LIBS"
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768 /* end confdefs.h. */
10769
10770 /* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
10773 #ifdef __cplusplus
10774 extern "C"
10775 #endif
10776 char dlopen ();
10777 int
10778 main ()
10779 {
10780 return dlopen ();
10781 ;
10782 return 0;
10783 }
10784 _ACEOF
10785 if ac_fn_c_try_link "$LINENO"; then :
10786 ac_cv_lib_dl_dlopen=yes
10787 else
10788 ac_cv_lib_dl_dlopen=no
10789 fi
10790 rm -f core conftest.err conftest.$ac_objext \
10791 conftest$ac_exeext conftest.$ac_ext
10792 LIBS=$ac_check_lib_save_LIBS
10793 fi
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10795 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10796 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10797 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10798 else
10799
10800 lt_cv_dlopen="dyld"
10801 lt_cv_dlopen_libs=
10802 lt_cv_dlopen_self=yes
10803
10804 fi
10805
10806 ;;
10807
10808 *)
10809 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10810 if test "x$ac_cv_func_shl_load" = xyes; then :
10811 lt_cv_dlopen="shl_load"
10812 else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10814 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10815 if ${ac_cv_lib_dld_shl_load+:} false; then :
10816 $as_echo_n "(cached) " >&6
10817 else
10818 ac_check_lib_save_LIBS=$LIBS
10819 LIBS="-ldld $LIBS"
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10822
10823 /* Override any GCC internal prototype to avoid an error.
10824 Use char because int might match the return type of a GCC
10825 builtin and then its argument prototype would still apply. */
10826 #ifdef __cplusplus
10827 extern "C"
10828 #endif
10829 char shl_load ();
10830 int
10831 main ()
10832 {
10833 return shl_load ();
10834 ;
10835 return 0;
10836 }
10837 _ACEOF
10838 if ac_fn_c_try_link "$LINENO"; then :
10839 ac_cv_lib_dld_shl_load=yes
10840 else
10841 ac_cv_lib_dld_shl_load=no
10842 fi
10843 rm -f core conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10845 LIBS=$ac_check_lib_save_LIBS
10846 fi
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10848 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10849 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10850 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10851 else
10852 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10853 if test "x$ac_cv_func_dlopen" = xyes; then :
10854 lt_cv_dlopen="dlopen"
10855 else
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10857 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10858 if ${ac_cv_lib_dl_dlopen+:} false; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 ac_check_lib_save_LIBS=$LIBS
10862 LIBS="-ldl $LIBS"
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10865
10866 /* Override any GCC internal prototype to avoid an error.
10867 Use char because int might match the return type of a GCC
10868 builtin and then its argument prototype would still apply. */
10869 #ifdef __cplusplus
10870 extern "C"
10871 #endif
10872 char dlopen ();
10873 int
10874 main ()
10875 {
10876 return dlopen ();
10877 ;
10878 return 0;
10879 }
10880 _ACEOF
10881 if ac_fn_c_try_link "$LINENO"; then :
10882 ac_cv_lib_dl_dlopen=yes
10883 else
10884 ac_cv_lib_dl_dlopen=no
10885 fi
10886 rm -f core conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext conftest.$ac_ext
10888 LIBS=$ac_check_lib_save_LIBS
10889 fi
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10891 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10892 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10894 else
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10896 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10897 if ${ac_cv_lib_svld_dlopen+:} false; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 ac_check_lib_save_LIBS=$LIBS
10901 LIBS="-lsvld $LIBS"
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10904
10905 /* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
10908 #ifdef __cplusplus
10909 extern "C"
10910 #endif
10911 char dlopen ();
10912 int
10913 main ()
10914 {
10915 return dlopen ();
10916 ;
10917 return 0;
10918 }
10919 _ACEOF
10920 if ac_fn_c_try_link "$LINENO"; then :
10921 ac_cv_lib_svld_dlopen=yes
10922 else
10923 ac_cv_lib_svld_dlopen=no
10924 fi
10925 rm -f core conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext conftest.$ac_ext
10927 LIBS=$ac_check_lib_save_LIBS
10928 fi
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10930 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10931 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10932 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10933 else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10935 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10936 if ${ac_cv_lib_dld_dld_link+:} false; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 ac_check_lib_save_LIBS=$LIBS
10940 LIBS="-ldld $LIBS"
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10943
10944 /* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
10947 #ifdef __cplusplus
10948 extern "C"
10949 #endif
10950 char dld_link ();
10951 int
10952 main ()
10953 {
10954 return dld_link ();
10955 ;
10956 return 0;
10957 }
10958 _ACEOF
10959 if ac_fn_c_try_link "$LINENO"; then :
10960 ac_cv_lib_dld_dld_link=yes
10961 else
10962 ac_cv_lib_dld_dld_link=no
10963 fi
10964 rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
10966 LIBS=$ac_check_lib_save_LIBS
10967 fi
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10969 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10970 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10971 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10972 fi
10973
10974
10975 fi
10976
10977
10978 fi
10979
10980
10981 fi
10982
10983
10984 fi
10985
10986
10987 fi
10988
10989 ;;
10990 esac
10991
10992 if test "x$lt_cv_dlopen" != xno; then
10993 enable_dlopen=yes
10994 else
10995 enable_dlopen=no
10996 fi
10997
10998 case $lt_cv_dlopen in
10999 dlopen)
11000 save_CPPFLAGS="$CPPFLAGS"
11001 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11002
11003 save_LDFLAGS="$LDFLAGS"
11004 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11005
11006 save_LIBS="$LIBS"
11007 LIBS="$lt_cv_dlopen_libs $LIBS"
11008
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11010 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11011 if ${lt_cv_dlopen_self+:} false; then :
11012 $as_echo_n "(cached) " >&6
11013 else
11014 if test "$cross_compiling" = yes; then :
11015 lt_cv_dlopen_self=cross
11016 else
11017 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11018 lt_status=$lt_dlunknown
11019 cat > conftest.$ac_ext <<_LT_EOF
11020 #line $LINENO "configure"
11021 #include "confdefs.h"
11022
11023 #if HAVE_DLFCN_H
11024 #include <dlfcn.h>
11025 #endif
11026
11027 #include <stdio.h>
11028
11029 #ifdef RTLD_GLOBAL
11030 # define LT_DLGLOBAL RTLD_GLOBAL
11031 #else
11032 # ifdef DL_GLOBAL
11033 # define LT_DLGLOBAL DL_GLOBAL
11034 # else
11035 # define LT_DLGLOBAL 0
11036 # endif
11037 #endif
11038
11039 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11040 find out it does not work in some platform. */
11041 #ifndef LT_DLLAZY_OR_NOW
11042 # ifdef RTLD_LAZY
11043 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11044 # else
11045 # ifdef DL_LAZY
11046 # define LT_DLLAZY_OR_NOW DL_LAZY
11047 # else
11048 # ifdef RTLD_NOW
11049 # define LT_DLLAZY_OR_NOW RTLD_NOW
11050 # else
11051 # ifdef DL_NOW
11052 # define LT_DLLAZY_OR_NOW DL_NOW
11053 # else
11054 # define LT_DLLAZY_OR_NOW 0
11055 # endif
11056 # endif
11057 # endif
11058 # endif
11059 #endif
11060
11061 /* When -fvisbility=hidden is used, assume the code has been annotated
11062 correspondingly for the symbols needed. */
11063 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11064 int fnord () __attribute__((visibility("default")));
11065 #endif
11066
11067 int fnord () { return 42; }
11068 int main ()
11069 {
11070 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11071 int status = $lt_dlunknown;
11072
11073 if (self)
11074 {
11075 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11076 else
11077 {
11078 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11079 else puts (dlerror ());
11080 }
11081 /* dlclose (self); */
11082 }
11083 else
11084 puts (dlerror ());
11085
11086 return status;
11087 }
11088 _LT_EOF
11089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11090 (eval $ac_link) 2>&5
11091 ac_status=$?
11092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11093 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11094 (./conftest; exit; ) >&5 2>/dev/null
11095 lt_status=$?
11096 case x$lt_status in
11097 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11098 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11099 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11100 esac
11101 else :
11102 # compilation failed
11103 lt_cv_dlopen_self=no
11104 fi
11105 fi
11106 rm -fr conftest*
11107
11108
11109 fi
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11111 $as_echo "$lt_cv_dlopen_self" >&6; }
11112
11113 if test "x$lt_cv_dlopen_self" = xyes; then
11114 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11116 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11117 if ${lt_cv_dlopen_self_static+:} false; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 if test "$cross_compiling" = yes; then :
11121 lt_cv_dlopen_self_static=cross
11122 else
11123 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11124 lt_status=$lt_dlunknown
11125 cat > conftest.$ac_ext <<_LT_EOF
11126 #line $LINENO "configure"
11127 #include "confdefs.h"
11128
11129 #if HAVE_DLFCN_H
11130 #include <dlfcn.h>
11131 #endif
11132
11133 #include <stdio.h>
11134
11135 #ifdef RTLD_GLOBAL
11136 # define LT_DLGLOBAL RTLD_GLOBAL
11137 #else
11138 # ifdef DL_GLOBAL
11139 # define LT_DLGLOBAL DL_GLOBAL
11140 # else
11141 # define LT_DLGLOBAL 0
11142 # endif
11143 #endif
11144
11145 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11146 find out it does not work in some platform. */
11147 #ifndef LT_DLLAZY_OR_NOW
11148 # ifdef RTLD_LAZY
11149 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11150 # else
11151 # ifdef DL_LAZY
11152 # define LT_DLLAZY_OR_NOW DL_LAZY
11153 # else
11154 # ifdef RTLD_NOW
11155 # define LT_DLLAZY_OR_NOW RTLD_NOW
11156 # else
11157 # ifdef DL_NOW
11158 # define LT_DLLAZY_OR_NOW DL_NOW
11159 # else
11160 # define LT_DLLAZY_OR_NOW 0
11161 # endif
11162 # endif
11163 # endif
11164 # endif
11165 #endif
11166
11167 /* When -fvisbility=hidden is used, assume the code has been annotated
11168 correspondingly for the symbols needed. */
11169 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11170 int fnord () __attribute__((visibility("default")));
11171 #endif
11172
11173 int fnord () { return 42; }
11174 int main ()
11175 {
11176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11177 int status = $lt_dlunknown;
11178
11179 if (self)
11180 {
11181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11182 else
11183 {
11184 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11185 else puts (dlerror ());
11186 }
11187 /* dlclose (self); */
11188 }
11189 else
11190 puts (dlerror ());
11191
11192 return status;
11193 }
11194 _LT_EOF
11195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11196 (eval $ac_link) 2>&5
11197 ac_status=$?
11198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11199 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11200 (./conftest; exit; ) >&5 2>/dev/null
11201 lt_status=$?
11202 case x$lt_status in
11203 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11204 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11205 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11206 esac
11207 else :
11208 # compilation failed
11209 lt_cv_dlopen_self_static=no
11210 fi
11211 fi
11212 rm -fr conftest*
11213
11214
11215 fi
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11217 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11218 fi
11219
11220 CPPFLAGS="$save_CPPFLAGS"
11221 LDFLAGS="$save_LDFLAGS"
11222 LIBS="$save_LIBS"
11223 ;;
11224 esac
11225
11226 case $lt_cv_dlopen_self in
11227 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11228 *) enable_dlopen_self=unknown ;;
11229 esac
11230
11231 case $lt_cv_dlopen_self_static in
11232 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11233 *) enable_dlopen_self_static=unknown ;;
11234 esac
11235 fi
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253 striplib=
11254 old_striplib=
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11256 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11257 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11258 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11259 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11261 $as_echo "yes" >&6; }
11262 else
11263 # FIXME - insert some real tests, host_os isn't really good enough
11264 case $host_os in
11265 darwin*)
11266 if test -n "$STRIP" ; then
11267 striplib="$STRIP -x"
11268 old_striplib="$STRIP -S"
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11270 $as_echo "yes" >&6; }
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274 fi
11275 ;;
11276 *)
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11279 ;;
11280 esac
11281 fi
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294 # Report which library types will actually be built
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11296 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11298 $as_echo "$can_build_shared" >&6; }
11299
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11301 $as_echo_n "checking whether to build shared libraries... " >&6; }
11302 test "$can_build_shared" = "no" && enable_shared=no
11303
11304 # On AIX, shared libraries and static libraries use the same namespace, and
11305 # are all built from PIC.
11306 case $host_os in
11307 aix3*)
11308 test "$enable_shared" = yes && enable_static=no
11309 if test -n "$RANLIB"; then
11310 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11311 postinstall_cmds='$RANLIB $lib'
11312 fi
11313 ;;
11314
11315 aix[4-9]*)
11316 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11317 test "$enable_shared" = yes && enable_static=no
11318 fi
11319 ;;
11320 esac
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11322 $as_echo "$enable_shared" >&6; }
11323
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11325 $as_echo_n "checking whether to build static libraries... " >&6; }
11326 # Make sure either enable_shared or enable_static is yes.
11327 test "$enable_shared" = yes || enable_static=yes
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11329 $as_echo "$enable_static" >&6; }
11330
11331
11332
11333
11334 fi
11335 ac_ext=c
11336 ac_cpp='$CPP $CPPFLAGS'
11337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11340
11341 CC="$lt_save_CC"
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357 ac_config_commands="$ac_config_commands libtool"
11358
11359
11360
11361
11362 # Only expand once:
11363
11364
11365
11366 if test "x$CC" != xcc; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11368 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11369 else
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11371 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11372 fi
11373 set dummy $CC; ac_cc=`$as_echo "$2" |
11374 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11375 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11380
11381 int
11382 main ()
11383 {
11384
11385 ;
11386 return 0;
11387 }
11388 _ACEOF
11389 # Make sure it works both with $CC and with simple cc.
11390 # We do the test twice because some compilers refuse to overwrite an
11391 # existing .o file with -o, though they will create one.
11392 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11393 rm -f conftest2.*
11394 if { { case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11397 esac
11398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11399 $as_echo "$ac_try_echo"; } >&5
11400 (eval "$ac_try") 2>&5
11401 ac_status=$?
11402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11403 test $ac_status = 0; } &&
11404 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11407 esac
11408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11409 $as_echo "$ac_try_echo"; } >&5
11410 (eval "$ac_try") 2>&5
11411 ac_status=$?
11412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11413 test $ac_status = 0; };
11414 then
11415 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11416 if test "x$CC" != xcc; then
11417 # Test first that cc exists at all.
11418 if { ac_try='cc -c conftest.$ac_ext >&5'
11419 { { case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11422 esac
11423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11424 $as_echo "$ac_try_echo"; } >&5
11425 (eval "$ac_try") 2>&5
11426 ac_status=$?
11427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11428 test $ac_status = 0; }; }; then
11429 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11430 rm -f conftest2.*
11431 if { { case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11434 esac
11435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11436 $as_echo "$ac_try_echo"; } >&5
11437 (eval "$ac_try") 2>&5
11438 ac_status=$?
11439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11440 test $ac_status = 0; } &&
11441 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11444 esac
11445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11446 $as_echo "$ac_try_echo"; } >&5
11447 (eval "$ac_try") 2>&5
11448 ac_status=$?
11449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11450 test $ac_status = 0; };
11451 then
11452 # cc works too.
11453 :
11454 else
11455 # cc exists but doesn't like -o.
11456 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11457 fi
11458 fi
11459 fi
11460 else
11461 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11462 fi
11463 rm -f core conftest*
11464
11465 fi
11466 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11468 $as_echo "yes" >&6; }
11469 else
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11472
11473 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11474
11475 fi
11476
11477 # FIXME: we rely on the cache variable name because
11478 # there is no other way.
11479 set dummy $CC
11480 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11481 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11482 if test "$am_t" != yes; then
11483 # Losing compiler, so override with the script.
11484 # FIXME: It is wrong to rewrite CC.
11485 # But if we don't then we get into trouble of one sort or another.
11486 # A longer-term fix would be to have automake use am__CC in this case,
11487 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11488 CC="$am_aux_dir/compile $CC"
11489 fi
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11500 if test -n "$ac_tool_prefix"; then
11501 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11502 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504 $as_echo_n "checking for $ac_word... " >&6; }
11505 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 case $PKG_CONFIG in
11509 [\\/]* | ?:[\\/]*)
11510 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11511 ;;
11512 *)
11513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11515 do
11516 IFS=$as_save_IFS
11517 test -z "$as_dir" && as_dir=.
11518 for ac_exec_ext in '' $ac_executable_extensions; do
11519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11520 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11522 break 2
11523 fi
11524 done
11525 done
11526 IFS=$as_save_IFS
11527
11528 ;;
11529 esac
11530 fi
11531 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11532 if test -n "$PKG_CONFIG"; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11534 $as_echo "$PKG_CONFIG" >&6; }
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11538 fi
11539
11540
11541 fi
11542 if test -z "$ac_cv_path_PKG_CONFIG"; then
11543 ac_pt_PKG_CONFIG=$PKG_CONFIG
11544 # Extract the first word of "pkg-config", so it can be a program name with args.
11545 set dummy pkg-config; ac_word=$2
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547 $as_echo_n "checking for $ac_word... " >&6; }
11548 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 case $ac_pt_PKG_CONFIG in
11552 [\\/]* | ?:[\\/]*)
11553 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11554 ;;
11555 *)
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $PATH
11558 do
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
11561 for ac_exec_ext in '' $ac_executable_extensions; do
11562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11563 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11565 break 2
11566 fi
11567 done
11568 done
11569 IFS=$as_save_IFS
11570
11571 ;;
11572 esac
11573 fi
11574 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11575 if test -n "$ac_pt_PKG_CONFIG"; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11577 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11578 else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 $as_echo "no" >&6; }
11581 fi
11582
11583 if test "x$ac_pt_PKG_CONFIG" = x; then
11584 PKG_CONFIG=""
11585 else
11586 case $cross_compiling:$ac_tool_warned in
11587 yes:)
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11590 ac_tool_warned=yes ;;
11591 esac
11592 PKG_CONFIG=$ac_pt_PKG_CONFIG
11593 fi
11594 else
11595 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11596 fi
11597
11598 fi
11599 if test -n "$PKG_CONFIG"; then
11600 _pkg_min_version=0.9.0
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11602 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11603 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11605 $as_echo "yes" >&6; }
11606 else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11609 PKG_CONFIG=""
11610 fi
11611 fi
11612
11613 # Work around stupid autoconf default cflags. pt 2
11614 if test "$SAVE_CFLAGS" = "x"; then
11615 CFLAGS=""
11616 fi
11617
11618 # We always want 64 bit file offsets
11619 CFLAGS="${CFLAGS} -D_FILE_OFFSET_BITS=64"
11620
11621 # Extract the first word of "rpcgen", so it can be a program name with args.
11622 set dummy rpcgen; ac_word=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if ${ac_cv_prog_HAVE_RPCGEN+:} false; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 if test -n "$HAVE_RPCGEN"; then
11629 ac_cv_prog_HAVE_RPCGEN="$HAVE_RPCGEN" # Let the user override the test.
11630 else
11631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632 for as_dir in $PATH
11633 do
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11638 ac_cv_prog_HAVE_RPCGEN="yes"
11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 break 2
11641 fi
11642 done
11643 done
11644 IFS=$as_save_IFS
11645
11646 test -z "$ac_cv_prog_HAVE_RPCGEN" && ac_cv_prog_HAVE_RPCGEN="no"
11647 fi
11648 fi
11649 HAVE_RPCGEN=$ac_cv_prog_HAVE_RPCGEN
11650 if test -n "$HAVE_RPCGEN"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPCGEN" >&5
11652 $as_echo "$HAVE_RPCGEN" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11656 fi
11657
11658
11659 if test x$HAVE_RPCGEN != xyes; then
11660 as_fn_error $? "Can not find required program" "$LINENO" 5
11661 fi
11662
11663 #option: examples
11664 # Check whether --enable-examples was given.
11665 if test "${enable_examples+set}" = set; then :
11666 enableval=$enable_examples; ENABLE_EXAMPLES=$enableval
11667 else
11668 ENABLE_EXAMPLES="no"
11669 fi
11670
11671
11672 if test x$ENABLE_EXAMPLES = xyes; then
11673 MAYBE_EXAMPLES="examples"
11674 fi
11675
11676
11677 # Check whether --enable-tirpc was given.
11678 if test "${enable_tirpc+set}" = set; then :
11679 enableval=$enable_tirpc; enable_tirpc=$enableval
11680 else
11681 enable_tirpc='no'
11682 fi
11683
11684
11685 case $host in
11686 *darwin*)
11687 RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
11688 ;;
11689 *cygwin*)
11690 RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t"
11691 ;;
11692 *solaris*)
11693 for ac_header in sys/filio.h
11694 do :
11695 ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
11696 if test "x$ac_cv_header_sys_filio_h" = xyes; then :
11697 cat >>confdefs.h <<_ACEOF
11698 #define HAVE_SYS_FILIO_H 1
11699 _ACEOF
11700
11701 fi
11702
11703 done
11704
11705 for ac_header in sys/sockio.h
11706 do :
11707 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
11708 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
11709 cat >>confdefs.h <<_ACEOF
11710 #define HAVE_SYS_SOCKIO_H 1
11711 _ACEOF
11712
11713 fi
11714
11715 done
11716
11717 if test x$ENABLE_EXAMPLES = xyes; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
11719 $as_echo_n "checking for main in -lsocket... " >&6; }
11720 if ${ac_cv_lib_socket_main+:} false; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11723 ac_check_lib_save_LIBS=$LIBS
11724 LIBS="-lsocket $LIBS"
11725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h. */
11727
11728
11729 int
11730 main ()
11731 {
11732 return main ();
11733 ;
11734 return 0;
11735 }
11736 _ACEOF
11737 if ac_fn_c_try_link "$LINENO"; then :
11738 ac_cv_lib_socket_main=yes
11739 else
11740 ac_cv_lib_socket_main=no
11741 fi
11742 rm -f core conftest.err conftest.$ac_objext \
11743 conftest$ac_exeext conftest.$ac_ext
11744 LIBS=$ac_check_lib_save_LIBS
11745 fi
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
11747 $as_echo "$ac_cv_lib_socket_main" >&6; }
11748 if test "x$ac_cv_lib_socket_main" = xyes; then :
11749 cat >>confdefs.h <<_ACEOF
11750 #define HAVE_LIBSOCKET 1
11751 _ACEOF
11752
11753 LIBS="-lsocket $LIBS"
11754
11755 else
11756 as_fn_error $? "Can not find required library" "$LINENO" 5
11757 fi
11758
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
11760 $as_echo_n "checking for main in -lnsl... " >&6; }
11761 if ${ac_cv_lib_nsl_main+:} false; then :
11762 $as_echo_n "(cached) " >&6
11763 else
11764 ac_check_lib_save_LIBS=$LIBS
11765 LIBS="-lnsl $LIBS"
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h. */
11768
11769
11770 int
11771 main ()
11772 {
11773 return main ();
11774 ;
11775 return 0;
11776 }
11777 _ACEOF
11778 if ac_fn_c_try_link "$LINENO"; then :
11779 ac_cv_lib_nsl_main=yes
11780 else
11781 ac_cv_lib_nsl_main=no
11782 fi
11783 rm -f core conftest.err conftest.$ac_objext \
11784 conftest$ac_exeext conftest.$ac_ext
11785 LIBS=$ac_check_lib_save_LIBS
11786 fi
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
11788 $as_echo "$ac_cv_lib_nsl_main" >&6; }
11789 if test "x$ac_cv_lib_nsl_main" = xyes; then :
11790 cat >>confdefs.h <<_ACEOF
11791 #define HAVE_LIBNSL 1
11792 _ACEOF
11793
11794 LIBS="-lnsl $LIBS"
11795
11796 else
11797 as_fn_error $? "Can not find required library" "$LINENO" 5
11798 fi
11799
11800 fi
11801 ;;
11802 *)
11803 ;;
11804 esac
11805
11806
11807
11808 # check for SA_LEN
11809 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
11810 #include <sys/types.h>
11811 #include <sys/socket.h>
11812
11813 "
11814 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11815
11816 $as_echo "#define HAVE_SOCKADDR_LEN 1" >>confdefs.h
11817
11818 fi
11819
11820
11821 LIBNFS_PC_REQ_PRIVATE=
11822
11823 if test "$enable_tirpc" = "yes"; then
11824
11825 pkg_failed=no
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIRPC" >&5
11827 $as_echo_n "checking for TIRPC... " >&6; }
11828
11829 if test -n "$TIRPC_CFLAGS"; then
11830 pkg_cv_TIRPC_CFLAGS="$TIRPC_CFLAGS"
11831 elif test -n "$PKG_CONFIG"; then
11832 if test -n "$PKG_CONFIG" && \
11833 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtirpc\""; } >&5
11834 ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
11835 ac_status=$?
11836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11837 test $ac_status = 0; }; then
11838 pkg_cv_TIRPC_CFLAGS=`$PKG_CONFIG --cflags "libtirpc" 2>/dev/null`
11839 test "x$?" != "x0" && pkg_failed=yes
11840 else
11841 pkg_failed=yes
11842 fi
11843 else
11844 pkg_failed=untried
11845 fi
11846 if test -n "$TIRPC_LIBS"; then
11847 pkg_cv_TIRPC_LIBS="$TIRPC_LIBS"
11848 elif test -n "$PKG_CONFIG"; then
11849 if test -n "$PKG_CONFIG" && \
11850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtirpc\""; } >&5
11851 ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
11852 ac_status=$?
11853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11854 test $ac_status = 0; }; then
11855 pkg_cv_TIRPC_LIBS=`$PKG_CONFIG --libs "libtirpc" 2>/dev/null`
11856 test "x$?" != "x0" && pkg_failed=yes
11857 else
11858 pkg_failed=yes
11859 fi
11860 else
11861 pkg_failed=untried
11862 fi
11863
11864
11865
11866 if test $pkg_failed = yes; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 $as_echo "no" >&6; }
11869
11870 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11871 _pkg_short_errors_supported=yes
11872 else
11873 _pkg_short_errors_supported=no
11874 fi
11875 if test $_pkg_short_errors_supported = yes; then
11876 TIRPC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtirpc" 2>&1`
11877 else
11878 TIRPC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtirpc" 2>&1`
11879 fi
11880 # Put the nasty error message in config.log where it belongs
11881 echo "$TIRPC_PKG_ERRORS" >&5
11882
11883 as_fn_error $? "unable to locate libtirpc files" "$LINENO" 5
11884 elif test $pkg_failed = untried; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886 $as_echo "no" >&6; }
11887 as_fn_error $? "unable to locate libtirpc files" "$LINENO" 5
11888 else
11889 TIRPC_CFLAGS=$pkg_cv_TIRPC_CFLAGS
11890 TIRPC_LIBS=$pkg_cv_TIRPC_LIBS
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11892 $as_echo "yes" >&6; }
11893
11894 fi
11895 CFLAGS="${CFLAGS} ${TIRPC_CFLAGS}"
11896 LIBS="${LIBS} ${TIRPC_LIBS}"
11897 LIBNFS_PC_REQ_PRIVATE="${LIBNFS_PC_REQ_PRIVATE} libtirpc"
11898 fi
11899
11900
11901
11902 #output
11903 ac_config_files="$ac_config_files Makefile include/Makefile lib/Makefile mount/Makefile nfs/Makefile portmap/Makefile rquota/Makefile examples/Makefile"
11904
11905
11906 ac_config_files="$ac_config_files libnfs.pc"
11907
11908 cat >confcache <<\_ACEOF
11909 # This file is a shell script that caches the results of configure
11910 # tests run on this system so they can be shared between configure
11911 # scripts and configure runs, see configure's option --config-cache.
11912 # It is not useful on other systems. If it contains results you don't
11913 # want to keep, you may remove or edit it.
11914 #
11915 # config.status only pays attention to the cache file if you give it
11916 # the --recheck option to rerun configure.
11917 #
11918 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11919 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11920 # following values.
11921
11922 _ACEOF
11923
11924 # The following way of writing the cache mishandles newlines in values,
11925 # but we know of no workaround that is simple, portable, and efficient.
11926 # So, we kill variables containing newlines.
11927 # Ultrix sh set writes to stderr and can't be redirected directly,
11928 # and sets the high bit in the cache file unless we assign to the vars.
11929 (
11930 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11931 eval ac_val=\$$ac_var
11932 case $ac_val in #(
11933 *${as_nl}*)
11934 case $ac_var in #(
11935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11936 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11937 esac
11938 case $ac_var in #(
11939 _ | IFS | as_nl) ;; #(
11940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11941 *) { eval $ac_var=; unset $ac_var;} ;;
11942 esac ;;
11943 esac
11944 done
11945
11946 (set) 2>&1 |
11947 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11948 *${as_nl}ac_space=\ *)
11949 # `set' does not quote correctly, so add quotes: double-quote
11950 # substitution turns \\\\ into \\, and sed turns \\ into \.
11951 sed -n \
11952 "s/'/'\\\\''/g;
11953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11954 ;; #(
11955 *)
11956 # `set' quotes correctly as required by POSIX, so do not add quotes.
11957 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11958 ;;
11959 esac |
11960 sort
11961 ) |
11962 sed '
11963 /^ac_cv_env_/b end
11964 t clear
11965 :clear
11966 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11967 t end
11968 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11969 :end' >>confcache
11970 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11971 if test -w "$cache_file"; then
11972 if test "x$cache_file" != "x/dev/null"; then
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11974 $as_echo "$as_me: updating cache $cache_file" >&6;}
11975 if test ! -f "$cache_file" || test -h "$cache_file"; then
11976 cat confcache >"$cache_file"
11977 else
11978 case $cache_file in #(
11979 */* | ?:*)
11980 mv -f confcache "$cache_file"$$ &&
11981 mv -f "$cache_file"$$ "$cache_file" ;; #(
11982 *)
11983 mv -f confcache "$cache_file" ;;
11984 esac
11985 fi
11986 fi
11987 else
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11989 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11990 fi
11991 fi
11992 rm -f confcache
11993
11994 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11995 # Let make expand exec_prefix.
11996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11997
11998 DEFS=-DHAVE_CONFIG_H
11999
12000 ac_libobjs=
12001 ac_ltlibobjs=
12002 U=
12003 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12004 # 1. Remove the extension, and $U if already installed.
12005 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12006 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12007 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12008 # will be set to the directory where LIBOBJS objects are built.
12009 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12010 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12011 done
12012 LIBOBJS=$ac_libobjs
12013
12014 LTLIBOBJS=$ac_ltlibobjs
12015
12016
12017 if test -n "$EXEEXT"; then
12018 am__EXEEXT_TRUE=
12019 am__EXEEXT_FALSE='#'
12020 else
12021 am__EXEEXT_TRUE='#'
12022 am__EXEEXT_FALSE=
12023 fi
12024
12025 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12026 as_fn_error $? "conditional \"AMDEP\" was never defined.
12027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12028 fi
12029 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12030 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12032 fi
12033
12034 : "${CONFIG_STATUS=./config.status}"
12035 ac_write_fail=0
12036 ac_clean_files_save=$ac_clean_files
12037 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12039 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12040 as_write_fail=0
12041 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12042 #! $SHELL
12043 # Generated by $as_me.
12044 # Run this file to recreate the current configuration.
12045 # Compiler output produced by configure, useful for debugging
12046 # configure, is in config.log if it exists.
12047
12048 debug=false
12049 ac_cs_recheck=false
12050 ac_cs_silent=false
12051
12052 SHELL=\${CONFIG_SHELL-$SHELL}
12053 export SHELL
12054 _ASEOF
12055 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12056 ## -------------------- ##
12057 ## M4sh Initialization. ##
12058 ## -------------------- ##
12059
12060 # Be more Bourne compatible
12061 DUALCASE=1; export DUALCASE # for MKS sh
12062 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12063 emulate sh
12064 NULLCMD=:
12065 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12066 # is contrary to our usage. Disable this feature.
12067 alias -g '${1+"$@"}'='"$@"'
12068 setopt NO_GLOB_SUBST
12069 else
12070 case `(set -o) 2>/dev/null` in #(
12071 *posix*) :
12072 set -o posix ;; #(
12073 *) :
12074 ;;
12075 esac
12076 fi
12077
12078
12079 as_nl='
12080 '
12081 export as_nl
12082 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12083 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12084 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12085 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12086 # Prefer a ksh shell builtin over an external printf program on Solaris,
12087 # but without wasting forks for bash or zsh.
12088 if test -z "$BASH_VERSION$ZSH_VERSION" \
12089 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12090 as_echo='print -r --'
12091 as_echo_n='print -rn --'
12092 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12093 as_echo='printf %s\n'
12094 as_echo_n='printf %s'
12095 else
12096 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12097 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12098 as_echo_n='/usr/ucb/echo -n'
12099 else
12100 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12101 as_echo_n_body='eval
12102 arg=$1;
12103 case $arg in #(
12104 *"$as_nl"*)
12105 expr "X$arg" : "X\\(.*\\)$as_nl";
12106 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12107 esac;
12108 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12109 '
12110 export as_echo_n_body
12111 as_echo_n='sh -c $as_echo_n_body as_echo'
12112 fi
12113 export as_echo_body
12114 as_echo='sh -c $as_echo_body as_echo'
12115 fi
12116
12117 # The user is always right.
12118 if test "${PATH_SEPARATOR+set}" != set; then
12119 PATH_SEPARATOR=:
12120 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12121 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12122 PATH_SEPARATOR=';'
12123 }
12124 fi
12125
12126
12127 # IFS
12128 # We need space, tab and new line, in precisely that order. Quoting is
12129 # there to prevent editors from complaining about space-tab.
12130 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12131 # splitting by setting IFS to empty value.)
12132 IFS=" "" $as_nl"
12133
12134 # Find who we are. Look in the path if we contain no directory separator.
12135 as_myself=
12136 case $0 in #((
12137 *[\\/]* ) as_myself=$0 ;;
12138 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12139 for as_dir in $PATH
12140 do
12141 IFS=$as_save_IFS
12142 test -z "$as_dir" && as_dir=.
12143 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12144 done
12145 IFS=$as_save_IFS
12146
12147 ;;
12148 esac
12149 # We did not find ourselves, most probably we were run as `sh COMMAND'
12150 # in which case we are not to be found in the path.
12151 if test "x$as_myself" = x; then
12152 as_myself=$0
12153 fi
12154 if test ! -f "$as_myself"; then
12155 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12156 exit 1
12157 fi
12158
12159 # Unset variables that we do not need and which cause bugs (e.g. in
12160 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12161 # suppresses any "Segmentation fault" message there. '((' could
12162 # trigger a bug in pdksh 5.2.14.
12163 for as_var in BASH_ENV ENV MAIL MAILPATH
12164 do eval test x\${$as_var+set} = xset \
12165 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12166 done
12167 PS1='$ '
12168 PS2='> '
12169 PS4='+ '
12170
12171 # NLS nuisances.
12172 LC_ALL=C
12173 export LC_ALL
12174 LANGUAGE=C
12175 export LANGUAGE
12176
12177 # CDPATH.
12178 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12179
12180
12181 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12182 # ----------------------------------------
12183 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12184 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12185 # script with STATUS, using 1 if that was 0.
12186 as_fn_error ()
12187 {
12188 as_status=$1; test $as_status -eq 0 && as_status=1
12189 if test "$4"; then
12190 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12191 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12192 fi
12193 $as_echo "$as_me: error: $2" >&2
12194 as_fn_exit $as_status
12195 } # as_fn_error
12196
12197
12198 # as_fn_set_status STATUS
12199 # -----------------------
12200 # Set $? to STATUS, without forking.
12201 as_fn_set_status ()
12202 {
12203 return $1
12204 } # as_fn_set_status
12205
12206 # as_fn_exit STATUS
12207 # -----------------
12208 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12209 as_fn_exit ()
12210 {
12211 set +e
12212 as_fn_set_status $1
12213 exit $1
12214 } # as_fn_exit
12215
12216 # as_fn_unset VAR
12217 # ---------------
12218 # Portably unset VAR.
12219 as_fn_unset ()
12220 {
12221 { eval $1=; unset $1;}
12222 }
12223 as_unset=as_fn_unset
12224 # as_fn_append VAR VALUE
12225 # ----------------------
12226 # Append the text in VALUE to the end of the definition contained in VAR. Take
12227 # advantage of any shell optimizations that allow amortized linear growth over
12228 # repeated appends, instead of the typical quadratic growth present in naive
12229 # implementations.
12230 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12231 eval 'as_fn_append ()
12232 {
12233 eval $1+=\$2
12234 }'
12235 else
12236 as_fn_append ()
12237 {
12238 eval $1=\$$1\$2
12239 }
12240 fi # as_fn_append
12241
12242 # as_fn_arith ARG...
12243 # ------------------
12244 # Perform arithmetic evaluation on the ARGs, and store the result in the
12245 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12246 # must be portable across $(()) and expr.
12247 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12248 eval 'as_fn_arith ()
12249 {
12250 as_val=$(( $* ))
12251 }'
12252 else
12253 as_fn_arith ()
12254 {
12255 as_val=`expr "$@" || test $? -eq 1`
12256 }
12257 fi # as_fn_arith
12258
12259
12260 if expr a : '\(a\)' >/dev/null 2>&1 &&
12261 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12262 as_expr=expr
12263 else
12264 as_expr=false
12265 fi
12266
12267 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12268 as_basename=basename
12269 else
12270 as_basename=false
12271 fi
12272
12273 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12274 as_dirname=dirname
12275 else
12276 as_dirname=false
12277 fi
12278
12279 as_me=`$as_basename -- "$0" ||
12280 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12281 X"$0" : 'X\(//\)$' \| \
12282 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12283 $as_echo X/"$0" |
12284 sed '/^.*\/\([^/][^/]*\)\/*$/{
12285 s//\1/
12286 q
12287 }
12288 /^X\/\(\/\/\)$/{
12289 s//\1/
12290 q
12291 }
12292 /^X\/\(\/\).*/{
12293 s//\1/
12294 q
12295 }
12296 s/.*/./; q'`
12297
12298 # Avoid depending upon Character Ranges.
12299 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12300 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12301 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12302 as_cr_digits='0123456789'
12303 as_cr_alnum=$as_cr_Letters$as_cr_digits
12304
12305 ECHO_C= ECHO_N= ECHO_T=
12306 case `echo -n x` in #(((((
12307 -n*)
12308 case `echo 'xy\c'` in
12309 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12310 xy) ECHO_C='\c';;
12311 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12312 ECHO_T=' ';;
12313 esac;;
12314 *)
12315 ECHO_N='-n';;
12316 esac
12317
12318 rm -f conf$$ conf$$.exe conf$$.file
12319 if test -d conf$$.dir; then
12320 rm -f conf$$.dir/conf$$.file
12321 else
12322 rm -f conf$$.dir
12323 mkdir conf$$.dir 2>/dev/null
12324 fi
12325 if (echo >conf$$.file) 2>/dev/null; then
12326 if ln -s conf$$.file conf$$ 2>/dev/null; then
12327 as_ln_s='ln -s'
12328 # ... but there are two gotchas:
12329 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12330 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12331 # In both cases, we have to default to `cp -pR'.
12332 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12333 as_ln_s='cp -pR'
12334 elif ln conf$$.file conf$$ 2>/dev/null; then
12335 as_ln_s=ln
12336 else
12337 as_ln_s='cp -pR'
12338 fi
12339 else
12340 as_ln_s='cp -pR'
12341 fi
12342 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12343 rmdir conf$$.dir 2>/dev/null
12344
12345
12346 # as_fn_mkdir_p
12347 # -------------
12348 # Create "$as_dir" as a directory, including parents if necessary.
12349 as_fn_mkdir_p ()
12350 {
12351
12352 case $as_dir in #(
12353 -*) as_dir=./$as_dir;;
12354 esac
12355 test -d "$as_dir" || eval $as_mkdir_p || {
12356 as_dirs=
12357 while :; do
12358 case $as_dir in #(
12359 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12360 *) as_qdir=$as_dir;;
12361 esac
12362 as_dirs="'$as_qdir' $as_dirs"
12363 as_dir=`$as_dirname -- "$as_dir" ||
12364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12365 X"$as_dir" : 'X\(//\)[^/]' \| \
12366 X"$as_dir" : 'X\(//\)$' \| \
12367 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12368 $as_echo X"$as_dir" |
12369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12370 s//\1/
12371 q
12372 }
12373 /^X\(\/\/\)[^/].*/{
12374 s//\1/
12375 q
12376 }
12377 /^X\(\/\/\)$/{
12378 s//\1/
12379 q
12380 }
12381 /^X\(\/\).*/{
12382 s//\1/
12383 q
12384 }
12385 s/.*/./; q'`
12386 test -d "$as_dir" && break
12387 done
12388 test -z "$as_dirs" || eval "mkdir $as_dirs"
12389 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12390
12391
12392 } # as_fn_mkdir_p
12393 if mkdir -p . 2>/dev/null; then
12394 as_mkdir_p='mkdir -p "$as_dir"'
12395 else
12396 test -d ./-p && rmdir ./-p
12397 as_mkdir_p=false
12398 fi
12399
12400
12401 # as_fn_executable_p FILE
12402 # -----------------------
12403 # Test if FILE is an executable regular file.
12404 as_fn_executable_p ()
12405 {
12406 test -f "$1" && test -x "$1"
12407 } # as_fn_executable_p
12408 as_test_x='test -x'
12409 as_executable_p=as_fn_executable_p
12410
12411 # Sed expression to map a string onto a valid CPP name.
12412 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12413
12414 # Sed expression to map a string onto a valid variable name.
12415 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12416
12417
12418 exec 6>&1
12419 ## ----------------------------------- ##
12420 ## Main body of $CONFIG_STATUS script. ##
12421 ## ----------------------------------- ##
12422 _ASEOF
12423 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12424
12425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12426 # Save the log message, to keep $0 and so on meaningful, and to
12427 # report actual input values of CONFIG_FILES etc. instead of their
12428 # values after options handling.
12429 ac_log="
12430 This file was extended by libnfs $as_me 1.3.0, which was
12431 generated by GNU Autoconf 2.69. Invocation command line was
12432
12433 CONFIG_FILES = $CONFIG_FILES
12434 CONFIG_HEADERS = $CONFIG_HEADERS
12435 CONFIG_LINKS = $CONFIG_LINKS
12436 CONFIG_COMMANDS = $CONFIG_COMMANDS
12437 $ $0 $@
12438
12439 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12440 "
12441
12442 _ACEOF
12443
12444 case $ac_config_files in *"
12445 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12446 esac
12447
12448 case $ac_config_headers in *"
12449 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12450 esac
12451
12452
12453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12454 # Files that config.status was made for.
12455 config_files="$ac_config_files"
12456 config_headers="$ac_config_headers"
12457 config_commands="$ac_config_commands"
12458
12459 _ACEOF
12460
12461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12462 ac_cs_usage="\
12463 \`$as_me' instantiates files and other configuration actions
12464 from templates according to the current configuration. Unless the files
12465 and actions are specified as TAGs, all are instantiated by default.
12466
12467 Usage: $0 [OPTION]... [TAG]...
12468
12469 -h, --help print this help, then exit
12470 -V, --version print version number and configuration settings, then exit
12471 --config print configuration, then exit
12472 -q, --quiet, --silent
12473 do not print progress messages
12474 -d, --debug don't remove temporary files
12475 --recheck update $as_me by reconfiguring in the same conditions
12476 --file=FILE[:TEMPLATE]
12477 instantiate the configuration file FILE
12478 --header=FILE[:TEMPLATE]
12479 instantiate the configuration header FILE
12480
12481 Configuration files:
12482 $config_files
12483
12484 Configuration headers:
12485 $config_headers
12486
12487 Configuration commands:
12488 $config_commands
12489
12490 Report bugs to <ronniesahlberg@gmail.com>."
12491
12492 _ACEOF
12493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12494 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12495 ac_cs_version="\\
12496 libnfs config.status 1.3.0
12497 configured by $0, generated by GNU Autoconf 2.69,
12498 with options \\"\$ac_cs_config\\"
12499
12500 Copyright (C) 2012 Free Software Foundation, Inc.
12501 This config.status script is free software; the Free Software Foundation
12502 gives unlimited permission to copy, distribute and modify it."
12503
12504 ac_pwd='$ac_pwd'
12505 srcdir='$srcdir'
12506 INSTALL='$INSTALL'
12507 MKDIR_P='$MKDIR_P'
12508 AWK='$AWK'
12509 test -n "\$AWK" || AWK=awk
12510 _ACEOF
12511
12512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12513 # The default lists apply if the user does not specify any file.
12514 ac_need_defaults=:
12515 while test $# != 0
12516 do
12517 case $1 in
12518 --*=?*)
12519 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12520 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12521 ac_shift=:
12522 ;;
12523 --*=)
12524 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12525 ac_optarg=
12526 ac_shift=:
12527 ;;
12528 *)
12529 ac_option=$1
12530 ac_optarg=$2
12531 ac_shift=shift
12532 ;;
12533 esac
12534
12535 case $ac_option in
12536 # Handling of the options.
12537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12538 ac_cs_recheck=: ;;
12539 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12540 $as_echo "$ac_cs_version"; exit ;;
12541 --config | --confi | --conf | --con | --co | --c )
12542 $as_echo "$ac_cs_config"; exit ;;
12543 --debug | --debu | --deb | --de | --d | -d )
12544 debug=: ;;
12545 --file | --fil | --fi | --f )
12546 $ac_shift
12547 case $ac_optarg in
12548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12549 '') as_fn_error $? "missing file argument" ;;
12550 esac
12551 as_fn_append CONFIG_FILES " '$ac_optarg'"
12552 ac_need_defaults=false;;
12553 --header | --heade | --head | --hea )
12554 $ac_shift
12555 case $ac_optarg in
12556 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12557 esac
12558 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12559 ac_need_defaults=false;;
12560 --he | --h)
12561 # Conflict between --help and --header
12562 as_fn_error $? "ambiguous option: \`$1'
12563 Try \`$0 --help' for more information.";;
12564 --help | --hel | -h )
12565 $as_echo "$ac_cs_usage"; exit ;;
12566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12567 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12568 ac_cs_silent=: ;;
12569
12570 # This is an error.
12571 -*) as_fn_error $? "unrecognized option: \`$1'
12572 Try \`$0 --help' for more information." ;;
12573
12574 *) as_fn_append ac_config_targets " $1"
12575 ac_need_defaults=false ;;
12576
12577 esac
12578 shift
12579 done
12580
12581 ac_configure_extra_args=
12582
12583 if $ac_cs_silent; then
12584 exec 6>/dev/null
12585 ac_configure_extra_args="$ac_configure_extra_args --silent"
12586 fi
12587
12588 _ACEOF
12589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12590 if \$ac_cs_recheck; then
12591 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12592 shift
12593 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12594 CONFIG_SHELL='$SHELL'
12595 export CONFIG_SHELL
12596 exec "\$@"
12597 fi
12598
12599 _ACEOF
12600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12601 exec 5>>config.log
12602 {
12603 echo
12604 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12605 ## Running $as_me. ##
12606 _ASBOX
12607 $as_echo "$ac_log"
12608 } >&5
12609
12610 _ACEOF
12611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12612 #
12613 # INIT-COMMANDS
12614 #
12615 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12616
12617
12618 # The HP-UX ksh and POSIX shell print the target directory to stdout
12619 # if CDPATH is set.
12620 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12621
12622 sed_quote_subst='$sed_quote_subst'
12623 double_quote_subst='$double_quote_subst'
12624 delay_variable_subst='$delay_variable_subst'
12625 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12626 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12627 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12628 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12629 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12630 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12631 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12632 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12633 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12634 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12635 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12636 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12637 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12638 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12639 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12640 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12641 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12642 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12643 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12644 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12645 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12646 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12647 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12648 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12649 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12650 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12651 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12652 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12653 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12654 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12655 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12656 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12657 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12658 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12659 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12660 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12661 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12662 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12663 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12664 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12665 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12666 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12667 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12668 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12669 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12670 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12671 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12672 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12673 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12674 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12675 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12676 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12677 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12678 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12679 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12680 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12681 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"`'
12682 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12683 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12684 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12685 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12686 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12687 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12688 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12689 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12690 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12691 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12692 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12693 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12694 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12695 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12696 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12697 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12698 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12699 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12700 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12701 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12702 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12703 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12704 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12705 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12706 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12707 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12708 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12709 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12710 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12711 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12712 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12713 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12714 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12715 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12716 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12717 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12718 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12719 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12720 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12721 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12722 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12723 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12724 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12725 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12726 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12727 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12728 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12729 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12730 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12731 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12732 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12733 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12734 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12735 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12736 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12737 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12738 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12739 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12740 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12741 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12742 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12743 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12744 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12745 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12746 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12747 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12748 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12749 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12750 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12751 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12752 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12753 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12754 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12755
12756 LTCC='$LTCC'
12757 LTCFLAGS='$LTCFLAGS'
12758 compiler='$compiler_DEFAULT'
12759
12760 # A function that is used when there is no print builtin or printf.
12761 func_fallback_echo ()
12762 {
12763 eval 'cat <<_LTECHO_EOF
12764 \$1
12765 _LTECHO_EOF'
12766 }
12767
12768 # Quote evaled strings.
12769 for var in SHELL \
12770 ECHO \
12771 PATH_SEPARATOR \
12772 SED \
12773 GREP \
12774 EGREP \
12775 FGREP \
12776 LD \
12777 NM \
12778 LN_S \
12779 lt_SP2NL \
12780 lt_NL2SP \
12781 reload_flag \
12782 OBJDUMP \
12783 deplibs_check_method \
12784 file_magic_cmd \
12785 file_magic_glob \
12786 want_nocaseglob \
12787 DLLTOOL \
12788 sharedlib_from_linklib_cmd \
12789 AR \
12790 AR_FLAGS \
12791 archiver_list_spec \
12792 STRIP \
12793 RANLIB \
12794 CC \
12795 CFLAGS \
12796 compiler \
12797 lt_cv_sys_global_symbol_pipe \
12798 lt_cv_sys_global_symbol_to_cdecl \
12799 lt_cv_sys_global_symbol_to_c_name_address \
12800 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12801 nm_file_list_spec \
12802 lt_prog_compiler_no_builtin_flag \
12803 lt_prog_compiler_pic \
12804 lt_prog_compiler_wl \
12805 lt_prog_compiler_static \
12806 lt_cv_prog_compiler_c_o \
12807 need_locks \
12808 MANIFEST_TOOL \
12809 DSYMUTIL \
12810 NMEDIT \
12811 LIPO \
12812 OTOOL \
12813 OTOOL64 \
12814 shrext_cmds \
12815 export_dynamic_flag_spec \
12816 whole_archive_flag_spec \
12817 compiler_needs_object \
12818 with_gnu_ld \
12819 allow_undefined_flag \
12820 no_undefined_flag \
12821 hardcode_libdir_flag_spec \
12822 hardcode_libdir_separator \
12823 exclude_expsyms \
12824 include_expsyms \
12825 file_list_spec \
12826 variables_saved_for_relink \
12827 libname_spec \
12828 library_names_spec \
12829 soname_spec \
12830 install_override_mode \
12831 finish_eval \
12832 old_striplib \
12833 striplib; do
12834 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12835 *[\\\\\\\`\\"\\\$]*)
12836 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12837 ;;
12838 *)
12839 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12840 ;;
12841 esac
12842 done
12843
12844 # Double-quote double-evaled strings.
12845 for var in reload_cmds \
12846 old_postinstall_cmds \
12847 old_postuninstall_cmds \
12848 old_archive_cmds \
12849 extract_expsyms_cmds \
12850 old_archive_from_new_cmds \
12851 old_archive_from_expsyms_cmds \
12852 archive_cmds \
12853 archive_expsym_cmds \
12854 module_cmds \
12855 module_expsym_cmds \
12856 export_symbols_cmds \
12857 prelink_cmds \
12858 postlink_cmds \
12859 postinstall_cmds \
12860 postuninstall_cmds \
12861 finish_cmds \
12862 sys_lib_search_path_spec \
12863 sys_lib_dlsearch_path_spec; do
12864 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12865 *[\\\\\\\`\\"\\\$]*)
12866 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12867 ;;
12868 *)
12869 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12870 ;;
12871 esac
12872 done
12873
12874 ac_aux_dir='$ac_aux_dir'
12875 xsi_shell='$xsi_shell'
12876 lt_shell_append='$lt_shell_append'
12877
12878 # See if we are running on zsh, and set the options which allow our
12879 # commands through without removal of \ escapes INIT.
12880 if test -n "\${ZSH_VERSION+set}" ; then
12881 setopt NO_GLOB_SUBST
12882 fi
12883
12884
12885 PACKAGE='$PACKAGE'
12886 VERSION='$VERSION'
12887 TIMESTAMP='$TIMESTAMP'
12888 RM='$RM'
12889 ofile='$ofile'
12890
12891
12892
12893
12894 _ACEOF
12895
12896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12897
12898 # Handling of arguments.
12899 for ac_config_target in $ac_config_targets
12900 do
12901 case $ac_config_target in
12902 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12903 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12904 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12905 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12906 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12907 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12908 "mount/Makefile") CONFIG_FILES="$CONFIG_FILES mount/Makefile" ;;
12909 "nfs/Makefile") CONFIG_FILES="$CONFIG_FILES nfs/Makefile" ;;
12910 "portmap/Makefile") CONFIG_FILES="$CONFIG_FILES portmap/Makefile" ;;
12911 "rquota/Makefile") CONFIG_FILES="$CONFIG_FILES rquota/Makefile" ;;
12912 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
12913 "libnfs.pc") CONFIG_FILES="$CONFIG_FILES libnfs.pc" ;;
12914
12915 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12916 esac
12917 done
12918
12919
12920 # If the user did not use the arguments to specify the items to instantiate,
12921 # then the envvar interface is used. Set only those that are not.
12922 # We use the long form for the default assignment because of an extremely
12923 # bizarre bug on SunOS 4.1.3.
12924 if $ac_need_defaults; then
12925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12927 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12928 fi
12929
12930 # Have a temporary directory for convenience. Make it in the build tree
12931 # simply because there is no reason against having it here, and in addition,
12932 # creating and moving files from /tmp can sometimes cause problems.
12933 # Hook for its removal unless debugging.
12934 # Note that there is a small window in which the directory will not be cleaned:
12935 # after its creation but before its name has been assigned to `$tmp'.
12936 $debug ||
12937 {
12938 tmp= ac_tmp=
12939 trap 'exit_status=$?
12940 : "${ac_tmp:=$tmp}"
12941 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12942 ' 0
12943 trap 'as_fn_exit 1' 1 2 13 15
12944 }
12945 # Create a (secure) tmp directory for tmp files.
12946
12947 {
12948 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12949 test -d "$tmp"
12950 } ||
12951 {
12952 tmp=./conf$$-$RANDOM
12953 (umask 077 && mkdir "$tmp")
12954 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12955 ac_tmp=$tmp
12956
12957 # Set up the scripts for CONFIG_FILES section.
12958 # No need to generate them if there are no CONFIG_FILES.
12959 # This happens for instance with `./config.status config.h'.
12960 if test -n "$CONFIG_FILES"; then
12961
12962
12963 ac_cr=`echo X | tr X '\015'`
12964 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12965 # But we know of no other shell where ac_cr would be empty at this
12966 # point, so we can use a bashism as a fallback.
12967 if test "x$ac_cr" = x; then
12968 eval ac_cr=\$\'\\r\'
12969 fi
12970 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12971 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12972 ac_cs_awk_cr='\\r'
12973 else
12974 ac_cs_awk_cr=$ac_cr
12975 fi
12976
12977 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12978 _ACEOF
12979
12980
12981 {
12982 echo "cat >conf$$subs.awk <<_ACEOF" &&
12983 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12984 echo "_ACEOF"
12985 } >conf$$subs.sh ||
12986 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12987 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12988 ac_delim='%!_!# '
12989 for ac_last_try in false false false false false :; do
12990 . ./conf$$subs.sh ||
12991 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12992
12993 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12994 if test $ac_delim_n = $ac_delim_num; then
12995 break
12996 elif $ac_last_try; then
12997 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12998 else
12999 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13000 fi
13001 done
13002 rm -f conf$$subs.sh
13003
13004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13005 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13006 _ACEOF
13007 sed -n '
13008 h
13009 s/^/S["/; s/!.*/"]=/
13010 p
13011 g
13012 s/^[^!]*!//
13013 :repl
13014 t repl
13015 s/'"$ac_delim"'$//
13016 t delim
13017 :nl
13018 h
13019 s/\(.\{148\}\)..*/\1/
13020 t more1
13021 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13022 p
13023 n
13024 b repl
13025 :more1
13026 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13027 p
13028 g
13029 s/.\{148\}//
13030 t nl
13031 :delim
13032 h
13033 s/\(.\{148\}\)..*/\1/
13034 t more2
13035 s/["\\]/\\&/g; s/^/"/; s/$/"/
13036 p
13037 b
13038 :more2
13039 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13040 p
13041 g
13042 s/.\{148\}//
13043 t delim
13044 ' <conf$$subs.awk | sed '
13045 /^[^""]/{
13046 N
13047 s/\n//
13048 }
13049 ' >>$CONFIG_STATUS || ac_write_fail=1
13050 rm -f conf$$subs.awk
13051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13052 _ACAWK
13053 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13054 for (key in S) S_is_set[key] = 1
13055 FS = "\a"
13056
13057 }
13058 {
13059 line = $ 0
13060 nfields = split(line, field, "@")
13061 substed = 0
13062 len = length(field[1])
13063 for (i = 2; i < nfields; i++) {
13064 key = field[i]
13065 keylen = length(key)
13066 if (S_is_set[key]) {
13067 value = S[key]
13068 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13069 len += length(value) + length(field[++i])
13070 substed = 1
13071 } else
13072 len += 1 + keylen
13073 }
13074
13075 print line
13076 }
13077
13078 _ACAWK
13079 _ACEOF
13080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13081 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13082 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13083 else
13084 cat
13085 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13086 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13087 _ACEOF
13088
13089 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13090 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13091 # trailing colons and then remove the whole line if VPATH becomes empty
13092 # (actually we leave an empty line to preserve line numbers).
13093 if test "x$srcdir" = x.; then
13094 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13095 h
13096 s///
13097 s/^/:/
13098 s/[ ]*$/:/
13099 s/:\$(srcdir):/:/g
13100 s/:\${srcdir}:/:/g
13101 s/:@srcdir@:/:/g
13102 s/^:*//
13103 s/:*$//
13104 x
13105 s/\(=[ ]*\).*/\1/
13106 G
13107 s/\n//
13108 s/^[^=]*=[ ]*$//
13109 }'
13110 fi
13111
13112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13113 fi # test -n "$CONFIG_FILES"
13114
13115 # Set up the scripts for CONFIG_HEADERS section.
13116 # No need to generate them if there are no CONFIG_HEADERS.
13117 # This happens for instance with `./config.status Makefile'.
13118 if test -n "$CONFIG_HEADERS"; then
13119 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13120 BEGIN {
13121 _ACEOF
13122
13123 # Transform confdefs.h into an awk script `defines.awk', embedded as
13124 # here-document in config.status, that substitutes the proper values into
13125 # config.h.in to produce config.h.
13126
13127 # Create a delimiter string that does not exist in confdefs.h, to ease
13128 # handling of long lines.
13129 ac_delim='%!_!# '
13130 for ac_last_try in false false :; do
13131 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13132 if test -z "$ac_tt"; then
13133 break
13134 elif $ac_last_try; then
13135 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13136 else
13137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13138 fi
13139 done
13140
13141 # For the awk script, D is an array of macro values keyed by name,
13142 # likewise P contains macro parameters if any. Preserve backslash
13143 # newline sequences.
13144
13145 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13146 sed -n '
13147 s/.\{148\}/&'"$ac_delim"'/g
13148 t rset
13149 :rset
13150 s/^[ ]*#[ ]*define[ ][ ]*/ /
13151 t def
13152 d
13153 :def
13154 s/\\$//
13155 t bsnl
13156 s/["\\]/\\&/g
13157 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13158 D["\1"]=" \3"/p
13159 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13160 d
13161 :bsnl
13162 s/["\\]/\\&/g
13163 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13164 D["\1"]=" \3\\\\\\n"\\/p
13165 t cont
13166 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13167 t cont
13168 d
13169 :cont
13170 n
13171 s/.\{148\}/&'"$ac_delim"'/g
13172 t clear
13173 :clear
13174 s/\\$//
13175 t bsnlc
13176 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13177 d
13178 :bsnlc
13179 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13180 b cont
13181 ' <confdefs.h | sed '
13182 s/'"$ac_delim"'/"\\\
13183 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13184
13185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13186 for (key in D) D_is_set[key] = 1
13187 FS = "\a"
13188 }
13189 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13190 line = \$ 0
13191 split(line, arg, " ")
13192 if (arg[1] == "#") {
13193 defundef = arg[2]
13194 mac1 = arg[3]
13195 } else {
13196 defundef = substr(arg[1], 2)
13197 mac1 = arg[2]
13198 }
13199 split(mac1, mac2, "(") #)
13200 macro = mac2[1]
13201 prefix = substr(line, 1, index(line, defundef) - 1)
13202 if (D_is_set[macro]) {
13203 # Preserve the white space surrounding the "#".
13204 print prefix "define", macro P[macro] D[macro]
13205 next
13206 } else {
13207 # Replace #undef with comments. This is necessary, for example,
13208 # in the case of _POSIX_SOURCE, which is predefined and required
13209 # on some systems where configure will not decide to define it.
13210 if (defundef == "undef") {
13211 print "/*", prefix defundef, macro, "*/"
13212 next
13213 }
13214 }
13215 }
13216 { print }
13217 _ACAWK
13218 _ACEOF
13219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13220 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13221 fi # test -n "$CONFIG_HEADERS"
13222
13223
13224 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13225 shift
13226 for ac_tag
13227 do
13228 case $ac_tag in
13229 :[FHLC]) ac_mode=$ac_tag; continue;;
13230 esac
13231 case $ac_mode$ac_tag in
13232 :[FHL]*:*);;
13233 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13234 :[FH]-) ac_tag=-:-;;
13235 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13236 esac
13237 ac_save_IFS=$IFS
13238 IFS=:
13239 set x $ac_tag
13240 IFS=$ac_save_IFS
13241 shift
13242 ac_file=$1
13243 shift
13244
13245 case $ac_mode in
13246 :L) ac_source=$1;;
13247 :[FH])
13248 ac_file_inputs=
13249 for ac_f
13250 do
13251 case $ac_f in
13252 -) ac_f="$ac_tmp/stdin";;
13253 *) # Look for the file first in the build tree, then in the source tree
13254 # (if the path is not absolute). The absolute path cannot be DOS-style,
13255 # because $ac_f cannot contain `:'.
13256 test -f "$ac_f" ||
13257 case $ac_f in
13258 [\\/$]*) false;;
13259 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13260 esac ||
13261 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13262 esac
13263 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13264 as_fn_append ac_file_inputs " '$ac_f'"
13265 done
13266
13267 # Let's still pretend it is `configure' which instantiates (i.e., don't
13268 # use $as_me), people would be surprised to read:
13269 # /* config.h. Generated by config.status. */
13270 configure_input='Generated from '`
13271 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13272 `' by configure.'
13273 if test x"$ac_file" != x-; then
13274 configure_input="$ac_file. $configure_input"
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13276 $as_echo "$as_me: creating $ac_file" >&6;}
13277 fi
13278 # Neutralize special characters interpreted by sed in replacement strings.
13279 case $configure_input in #(
13280 *\&* | *\|* | *\\* )
13281 ac_sed_conf_input=`$as_echo "$configure_input" |
13282 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13283 *) ac_sed_conf_input=$configure_input;;
13284 esac
13285
13286 case $ac_tag in
13287 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13288 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13289 esac
13290 ;;
13291 esac
13292
13293 ac_dir=`$as_dirname -- "$ac_file" ||
13294 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13295 X"$ac_file" : 'X\(//\)[^/]' \| \
13296 X"$ac_file" : 'X\(//\)$' \| \
13297 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13298 $as_echo X"$ac_file" |
13299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13300 s//\1/
13301 q
13302 }
13303 /^X\(\/\/\)[^/].*/{
13304 s//\1/
13305 q
13306 }
13307 /^X\(\/\/\)$/{
13308 s//\1/
13309 q
13310 }
13311 /^X\(\/\).*/{
13312 s//\1/
13313 q
13314 }
13315 s/.*/./; q'`
13316 as_dir="$ac_dir"; as_fn_mkdir_p
13317 ac_builddir=.
13318
13319 case "$ac_dir" in
13320 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13321 *)
13322 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13323 # A ".." for each directory in $ac_dir_suffix.
13324 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13325 case $ac_top_builddir_sub in
13326 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13327 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13328 esac ;;
13329 esac
13330 ac_abs_top_builddir=$ac_pwd
13331 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13332 # for backward compatibility:
13333 ac_top_builddir=$ac_top_build_prefix
13334
13335 case $srcdir in
13336 .) # We are building in place.
13337 ac_srcdir=.
13338 ac_top_srcdir=$ac_top_builddir_sub
13339 ac_abs_top_srcdir=$ac_pwd ;;
13340 [\\/]* | ?:[\\/]* ) # Absolute name.
13341 ac_srcdir=$srcdir$ac_dir_suffix;
13342 ac_top_srcdir=$srcdir
13343 ac_abs_top_srcdir=$srcdir ;;
13344 *) # Relative name.
13345 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13346 ac_top_srcdir=$ac_top_build_prefix$srcdir
13347 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13348 esac
13349 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13350
13351
13352 case $ac_mode in
13353 :F)
13354 #
13355 # CONFIG_FILE
13356 #
13357
13358 case $INSTALL in
13359 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13360 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13361 esac
13362 ac_MKDIR_P=$MKDIR_P
13363 case $MKDIR_P in
13364 [\\/$]* | ?:[\\/]* ) ;;
13365 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13366 esac
13367 _ACEOF
13368
13369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13370 # If the template does not know about datarootdir, expand it.
13371 # FIXME: This hack should be removed a few years after 2.60.
13372 ac_datarootdir_hack=; ac_datarootdir_seen=
13373 ac_sed_dataroot='
13374 /datarootdir/ {
13375 p
13376 q
13377 }
13378 /@datadir@/p
13379 /@docdir@/p
13380 /@infodir@/p
13381 /@localedir@/p
13382 /@mandir@/p'
13383 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13384 *datarootdir*) ac_datarootdir_seen=yes;;
13385 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13387 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13388 _ACEOF
13389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13390 ac_datarootdir_hack='
13391 s&@datadir@&$datadir&g
13392 s&@docdir@&$docdir&g
13393 s&@infodir@&$infodir&g
13394 s&@localedir@&$localedir&g
13395 s&@mandir@&$mandir&g
13396 s&\\\${datarootdir}&$datarootdir&g' ;;
13397 esac
13398 _ACEOF
13399
13400 # Neutralize VPATH when `$srcdir' = `.'.
13401 # Shell code in configure.ac might set extrasub.
13402 # FIXME: do we really want to maintain this feature?
13403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13404 ac_sed_extra="$ac_vpsub
13405 $extrasub
13406 _ACEOF
13407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13408 :t
13409 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13410 s|@configure_input@|$ac_sed_conf_input|;t t
13411 s&@top_builddir@&$ac_top_builddir_sub&;t t
13412 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13413 s&@srcdir@&$ac_srcdir&;t t
13414 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13415 s&@top_srcdir@&$ac_top_srcdir&;t t
13416 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13417 s&@builddir@&$ac_builddir&;t t
13418 s&@abs_builddir@&$ac_abs_builddir&;t t
13419 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13420 s&@INSTALL@&$ac_INSTALL&;t t
13421 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13422 $ac_datarootdir_hack
13423 "
13424 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13425 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13426
13427 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13428 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13429 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13430 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13432 which seems to be undefined. Please make sure it is defined" >&5
13433 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13434 which seems to be undefined. Please make sure it is defined" >&2;}
13435
13436 rm -f "$ac_tmp/stdin"
13437 case $ac_file in
13438 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13439 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13440 esac \
13441 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13442 ;;
13443 :H)
13444 #
13445 # CONFIG_HEADER
13446 #
13447 if test x"$ac_file" != x-; then
13448 {
13449 $as_echo "/* $configure_input */" \
13450 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13451 } >"$ac_tmp/config.h" \
13452 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13453 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13455 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13456 else
13457 rm -f "$ac_file"
13458 mv "$ac_tmp/config.h" "$ac_file" \
13459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13460 fi
13461 else
13462 $as_echo "/* $configure_input */" \
13463 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13464 || as_fn_error $? "could not create -" "$LINENO" 5
13465 fi
13466 # Compute "$ac_file"'s index in $config_headers.
13467 _am_arg="$ac_file"
13468 _am_stamp_count=1
13469 for _am_header in $config_headers :; do
13470 case $_am_header in
13471 $_am_arg | $_am_arg:* )
13472 break ;;
13473 * )
13474 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13475 esac
13476 done
13477 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13478 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13479 X"$_am_arg" : 'X\(//\)[^/]' \| \
13480 X"$_am_arg" : 'X\(//\)$' \| \
13481 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13482 $as_echo X"$_am_arg" |
13483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13484 s//\1/
13485 q
13486 }
13487 /^X\(\/\/\)[^/].*/{
13488 s//\1/
13489 q
13490 }
13491 /^X\(\/\/\)$/{
13492 s//\1/
13493 q
13494 }
13495 /^X\(\/\).*/{
13496 s//\1/
13497 q
13498 }
13499 s/.*/./; q'`/stamp-h$_am_stamp_count
13500 ;;
13501
13502 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13503 $as_echo "$as_me: executing $ac_file commands" >&6;}
13504 ;;
13505 esac
13506
13507
13508 case $ac_file$ac_mode in
13509 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13510 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13511 # are listed without --file. Let's play safe and only enable the eval
13512 # if we detect the quoting.
13513 case $CONFIG_FILES in
13514 *\'*) eval set x "$CONFIG_FILES" ;;
13515 *) set x $CONFIG_FILES ;;
13516 esac
13517 shift
13518 for mf
13519 do
13520 # Strip MF so we end up with the name of the file.
13521 mf=`echo "$mf" | sed -e 's/:.*$//'`
13522 # Check whether this is an Automake generated Makefile or not.
13523 # We used to match only the files named `Makefile.in', but
13524 # some people rename them; so instead we look at the file content.
13525 # Grep'ing the first line is not enough: some people post-process
13526 # each Makefile.in and add a new line on top of each file to say so.
13527 # Grep'ing the whole file is not good either: AIX grep has a line
13528 # limit of 2048, but all sed's we know have understand at least 4000.
13529 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13530 dirpart=`$as_dirname -- "$mf" ||
13531 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13532 X"$mf" : 'X\(//\)[^/]' \| \
13533 X"$mf" : 'X\(//\)$' \| \
13534 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13535 $as_echo X"$mf" |
13536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13537 s//\1/
13538 q
13539 }
13540 /^X\(\/\/\)[^/].*/{
13541 s//\1/
13542 q
13543 }
13544 /^X\(\/\/\)$/{
13545 s//\1/
13546 q
13547 }
13548 /^X\(\/\).*/{
13549 s//\1/
13550 q
13551 }
13552 s/.*/./; q'`
13553 else
13554 continue
13555 fi
13556 # Extract the definition of DEPDIR, am__include, and am__quote
13557 # from the Makefile without running `make'.
13558 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13559 test -z "$DEPDIR" && continue
13560 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13561 test -z "am__include" && continue
13562 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13563 # When using ansi2knr, U may be empty or an underscore; expand it
13564 U=`sed -n 's/^U = //p' < "$mf"`
13565 # Find all dependency output files, they are included files with
13566 # $(DEPDIR) in their names. We invoke sed twice because it is the
13567 # simplest approach to changing $(DEPDIR) to its actual value in the
13568 # expansion.
13569 for file in `sed -n "
13570 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13571 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13572 # Make sure the directory exists.
13573 test -f "$dirpart/$file" && continue
13574 fdir=`$as_dirname -- "$file" ||
13575 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13576 X"$file" : 'X\(//\)[^/]' \| \
13577 X"$file" : 'X\(//\)$' \| \
13578 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13579 $as_echo X"$file" |
13580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13581 s//\1/
13582 q
13583 }
13584 /^X\(\/\/\)[^/].*/{
13585 s//\1/
13586 q
13587 }
13588 /^X\(\/\/\)$/{
13589 s//\1/
13590 q
13591 }
13592 /^X\(\/\).*/{
13593 s//\1/
13594 q
13595 }
13596 s/.*/./; q'`
13597 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13598 # echo "creating $dirpart/$file"
13599 echo '# dummy' > "$dirpart/$file"
13600 done
13601 done
13602 }
13603 ;;
13604 "libtool":C)
13605
13606 # See if we are running on zsh, and set the options which allow our
13607 # commands through without removal of \ escapes.
13608 if test -n "${ZSH_VERSION+set}" ; then
13609 setopt NO_GLOB_SUBST
13610 fi
13611
13612 cfgfile="${ofile}T"
13613 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13614 $RM "$cfgfile"
13615
13616 cat <<_LT_EOF >> "$cfgfile"
13617 #! $SHELL
13618
13619 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13620 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13621 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13622 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13623 #
13624 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13625 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13626 # Foundation, Inc.
13627 # Written by Gordon Matzigkeit, 1996
13628 #
13629 # This file is part of GNU Libtool.
13630 #
13631 # GNU Libtool is free software; you can redistribute it and/or
13632 # modify it under the terms of the GNU General Public License as
13633 # published by the Free Software Foundation; either version 2 of
13634 # the License, or (at your option) any later version.
13635 #
13636 # As a special exception to the GNU General Public License,
13637 # if you distribute this file as part of a program or library that
13638 # is built using GNU Libtool, you may include this file under the
13639 # same distribution terms that you use for the rest of that program.
13640 #
13641 # GNU Libtool is distributed in the hope that it will be useful,
13642 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13643 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13644 # GNU General Public License for more details.
13645 #
13646 # You should have received a copy of the GNU General Public License
13647 # along with GNU Libtool; see the file COPYING. If not, a copy
13648 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13649 # obtained by writing to the Free Software Foundation, Inc.,
13650 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13651
13652
13653 # The names of the tagged configurations supported by this script.
13654 available_tags=""
13655
13656 # ### BEGIN LIBTOOL CONFIG
13657
13658 # Which release of libtool.m4 was used?
13659 macro_version=$macro_version
13660 macro_revision=$macro_revision
13661
13662 # Whether or not to build shared libraries.
13663 build_libtool_libs=$enable_shared
13664
13665 # Whether or not to build static libraries.
13666 build_old_libs=$enable_static
13667
13668 # What type of objects to build.
13669 pic_mode=$pic_mode
13670
13671 # Whether or not to optimize for fast installation.
13672 fast_install=$enable_fast_install
13673
13674 # Shell to use when invoking shell scripts.
13675 SHELL=$lt_SHELL
13676
13677 # An echo program that protects backslashes.
13678 ECHO=$lt_ECHO
13679
13680 # The PATH separator for the build system.
13681 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13682
13683 # The host system.
13684 host_alias=$host_alias
13685 host=$host
13686 host_os=$host_os
13687
13688 # The build system.
13689 build_alias=$build_alias
13690 build=$build
13691 build_os=$build_os
13692
13693 # A sed program that does not truncate output.
13694 SED=$lt_SED
13695
13696 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13697 Xsed="\$SED -e 1s/^X//"
13698
13699 # A grep program that handles long lines.
13700 GREP=$lt_GREP
13701
13702 # An ERE matcher.
13703 EGREP=$lt_EGREP
13704
13705 # A literal string matcher.
13706 FGREP=$lt_FGREP
13707
13708 # A BSD- or MS-compatible name lister.
13709 NM=$lt_NM
13710
13711 # Whether we need soft or hard links.
13712 LN_S=$lt_LN_S
13713
13714 # What is the maximum length of a command?
13715 max_cmd_len=$max_cmd_len
13716
13717 # Object file suffix (normally "o").
13718 objext=$ac_objext
13719
13720 # Executable file suffix (normally "").
13721 exeext=$exeext
13722
13723 # whether the shell understands "unset".
13724 lt_unset=$lt_unset
13725
13726 # turn spaces into newlines.
13727 SP2NL=$lt_lt_SP2NL
13728
13729 # turn newlines into spaces.
13730 NL2SP=$lt_lt_NL2SP
13731
13732 # convert \$build file names to \$host format.
13733 to_host_file_cmd=$lt_cv_to_host_file_cmd
13734
13735 # convert \$build files to toolchain format.
13736 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13737
13738 # An object symbol dumper.
13739 OBJDUMP=$lt_OBJDUMP
13740
13741 # Method to check whether dependent libraries are shared objects.
13742 deplibs_check_method=$lt_deplibs_check_method
13743
13744 # Command to use when deplibs_check_method = "file_magic".
13745 file_magic_cmd=$lt_file_magic_cmd
13746
13747 # How to find potential files when deplibs_check_method = "file_magic".
13748 file_magic_glob=$lt_file_magic_glob
13749
13750 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13751 want_nocaseglob=$lt_want_nocaseglob
13752
13753 # DLL creation program.
13754 DLLTOOL=$lt_DLLTOOL
13755
13756 # Command to associate shared and link libraries.
13757 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13758
13759 # The archiver.
13760 AR=$lt_AR
13761
13762 # Flags to create an archive.
13763 AR_FLAGS=$lt_AR_FLAGS
13764
13765 # How to feed a file listing to the archiver.
13766 archiver_list_spec=$lt_archiver_list_spec
13767
13768 # A symbol stripping program.
13769 STRIP=$lt_STRIP
13770
13771 # Commands used to install an old-style archive.
13772 RANLIB=$lt_RANLIB
13773 old_postinstall_cmds=$lt_old_postinstall_cmds
13774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13775
13776 # Whether to use a lock for old archive extraction.
13777 lock_old_archive_extraction=$lock_old_archive_extraction
13778
13779 # A C compiler.
13780 LTCC=$lt_CC
13781
13782 # LTCC compiler flags.
13783 LTCFLAGS=$lt_CFLAGS
13784
13785 # Take the output of nm and produce a listing of raw symbols and C names.
13786 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13787
13788 # Transform the output of nm in a proper C declaration.
13789 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13790
13791 # Transform the output of nm in a C name address pair.
13792 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13793
13794 # Transform the output of nm in a C name address pair when lib prefix is needed.
13795 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13796
13797 # Specify filename containing input files for \$NM.
13798 nm_file_list_spec=$lt_nm_file_list_spec
13799
13800 # The root where to search for dependent libraries,and in which our libraries should be installed.
13801 lt_sysroot=$lt_sysroot
13802
13803 # The name of the directory that contains temporary libtool files.
13804 objdir=$objdir
13805
13806 # Used to examine libraries when file_magic_cmd begins with "file".
13807 MAGIC_CMD=$MAGIC_CMD
13808
13809 # Must we lock files when doing compilation?
13810 need_locks=$lt_need_locks
13811
13812 # Manifest tool.
13813 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13814
13815 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13816 DSYMUTIL=$lt_DSYMUTIL
13817
13818 # Tool to change global to local symbols on Mac OS X.
13819 NMEDIT=$lt_NMEDIT
13820
13821 # Tool to manipulate fat objects and archives on Mac OS X.
13822 LIPO=$lt_LIPO
13823
13824 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13825 OTOOL=$lt_OTOOL
13826
13827 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13828 OTOOL64=$lt_OTOOL64
13829
13830 # Old archive suffix (normally "a").
13831 libext=$libext
13832
13833 # Shared library suffix (normally ".so").
13834 shrext_cmds=$lt_shrext_cmds
13835
13836 # The commands to extract the exported symbol list from a shared archive.
13837 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13838
13839 # Variables whose values should be saved in libtool wrapper scripts and
13840 # restored at link time.
13841 variables_saved_for_relink=$lt_variables_saved_for_relink
13842
13843 # Do we need the "lib" prefix for modules?
13844 need_lib_prefix=$need_lib_prefix
13845
13846 # Do we need a version for libraries?
13847 need_version=$need_version
13848
13849 # Library versioning type.
13850 version_type=$version_type
13851
13852 # Shared library runtime path variable.
13853 runpath_var=$runpath_var
13854
13855 # Shared library path variable.
13856 shlibpath_var=$shlibpath_var
13857
13858 # Is shlibpath searched before the hard-coded library search path?
13859 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13860
13861 # Format of library name prefix.
13862 libname_spec=$lt_libname_spec
13863
13864 # List of archive names. First name is the real one, the rest are links.
13865 # The last name is the one that the linker finds with -lNAME
13866 library_names_spec=$lt_library_names_spec
13867
13868 # The coded name of the library, if different from the real name.
13869 soname_spec=$lt_soname_spec
13870
13871 # Permission mode override for installation of shared libraries.
13872 install_override_mode=$lt_install_override_mode
13873
13874 # Command to use after installation of a shared archive.
13875 postinstall_cmds=$lt_postinstall_cmds
13876
13877 # Command to use after uninstallation of a shared archive.
13878 postuninstall_cmds=$lt_postuninstall_cmds
13879
13880 # Commands used to finish a libtool library installation in a directory.
13881 finish_cmds=$lt_finish_cmds
13882
13883 # As "finish_cmds", except a single script fragment to be evaled but
13884 # not shown.
13885 finish_eval=$lt_finish_eval
13886
13887 # Whether we should hardcode library paths into libraries.
13888 hardcode_into_libs=$hardcode_into_libs
13889
13890 # Compile-time system search path for libraries.
13891 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13892
13893 # Run-time system search path for libraries.
13894 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13895
13896 # Whether dlopen is supported.
13897 dlopen_support=$enable_dlopen
13898
13899 # Whether dlopen of programs is supported.
13900 dlopen_self=$enable_dlopen_self
13901
13902 # Whether dlopen of statically linked programs is supported.
13903 dlopen_self_static=$enable_dlopen_self_static
13904
13905 # Commands to strip libraries.
13906 old_striplib=$lt_old_striplib
13907 striplib=$lt_striplib
13908
13909
13910 # The linker used to build libraries.
13911 LD=$lt_LD
13912
13913 # How to create reloadable object files.
13914 reload_flag=$lt_reload_flag
13915 reload_cmds=$lt_reload_cmds
13916
13917 # Commands used to build an old-style archive.
13918 old_archive_cmds=$lt_old_archive_cmds
13919
13920 # A language specific compiler.
13921 CC=$lt_compiler
13922
13923 # Is the compiler the GNU compiler?
13924 with_gcc=$GCC
13925
13926 # Compiler flag to turn off builtin functions.
13927 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13928
13929 # Additional compiler flags for building library objects.
13930 pic_flag=$lt_lt_prog_compiler_pic
13931
13932 # How to pass a linker flag through the compiler.
13933 wl=$lt_lt_prog_compiler_wl
13934
13935 # Compiler flag to prevent dynamic linking.
13936 link_static_flag=$lt_lt_prog_compiler_static
13937
13938 # Does compiler simultaneously support -c and -o options?
13939 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13940
13941 # Whether or not to add -lc for building shared libraries.
13942 build_libtool_need_lc=$archive_cmds_need_lc
13943
13944 # Whether or not to disallow shared libs when runtime libs are static.
13945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13946
13947 # Compiler flag to allow reflexive dlopens.
13948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13949
13950 # Compiler flag to generate shared objects directly from archives.
13951 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13952
13953 # Whether the compiler copes with passing no objects directly.
13954 compiler_needs_object=$lt_compiler_needs_object
13955
13956 # Create an old-style archive from a shared archive.
13957 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13958
13959 # Create a temporary old-style archive to link instead of a shared archive.
13960 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13961
13962 # Commands used to build a shared archive.
13963 archive_cmds=$lt_archive_cmds
13964 archive_expsym_cmds=$lt_archive_expsym_cmds
13965
13966 # Commands used to build a loadable module if different from building
13967 # a shared archive.
13968 module_cmds=$lt_module_cmds
13969 module_expsym_cmds=$lt_module_expsym_cmds
13970
13971 # Whether we are building with GNU ld or not.
13972 with_gnu_ld=$lt_with_gnu_ld
13973
13974 # Flag that allows shared libraries with undefined symbols to be built.
13975 allow_undefined_flag=$lt_allow_undefined_flag
13976
13977 # Flag that enforces no undefined symbols.
13978 no_undefined_flag=$lt_no_undefined_flag
13979
13980 # Flag to hardcode \$libdir into a binary during linking.
13981 # This must work even if \$libdir does not exist
13982 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13983
13984 # Whether we need a single "-rpath" flag with a separated argument.
13985 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13986
13987 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13988 # DIR into the resulting binary.
13989 hardcode_direct=$hardcode_direct
13990
13991 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13992 # DIR into the resulting binary and the resulting library dependency is
13993 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13994 # library is relocated.
13995 hardcode_direct_absolute=$hardcode_direct_absolute
13996
13997 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13998 # into the resulting binary.
13999 hardcode_minus_L=$hardcode_minus_L
14000
14001 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14002 # into the resulting binary.
14003 hardcode_shlibpath_var=$hardcode_shlibpath_var
14004
14005 # Set to "yes" if building a shared library automatically hardcodes DIR
14006 # into the library and all subsequent libraries and executables linked
14007 # against it.
14008 hardcode_automatic=$hardcode_automatic
14009
14010 # Set to yes if linker adds runtime paths of dependent libraries
14011 # to runtime path list.
14012 inherit_rpath=$inherit_rpath
14013
14014 # Whether libtool must link a program against all its dependency libraries.
14015 link_all_deplibs=$link_all_deplibs
14016
14017 # Set to "yes" if exported symbols are required.
14018 always_export_symbols=$always_export_symbols
14019
14020 # The commands to list exported symbols.
14021 export_symbols_cmds=$lt_export_symbols_cmds
14022
14023 # Symbols that should not be listed in the preloaded symbols.
14024 exclude_expsyms=$lt_exclude_expsyms
14025
14026 # Symbols that must always be exported.
14027 include_expsyms=$lt_include_expsyms
14028
14029 # Commands necessary for linking programs (against libraries) with templates.
14030 prelink_cmds=$lt_prelink_cmds
14031
14032 # Commands necessary for finishing linking programs.
14033 postlink_cmds=$lt_postlink_cmds
14034
14035 # Specify filename containing input files.
14036 file_list_spec=$lt_file_list_spec
14037
14038 # How to hardcode a shared library path into an executable.
14039 hardcode_action=$hardcode_action
14040
14041 # ### END LIBTOOL CONFIG
14042
14043 _LT_EOF
14044
14045 case $host_os in
14046 aix3*)
14047 cat <<\_LT_EOF >> "$cfgfile"
14048 # AIX sometimes has problems with the GCC collect2 program. For some
14049 # reason, if we set the COLLECT_NAMES environment variable, the problems
14050 # vanish in a puff of smoke.
14051 if test "X${COLLECT_NAMES+set}" != Xset; then
14052 COLLECT_NAMES=
14053 export COLLECT_NAMES
14054 fi
14055 _LT_EOF
14056 ;;
14057 esac
14058
14059
14060 ltmain="$ac_aux_dir/ltmain.sh"
14061
14062
14063 # We use sed instead of cat because bash on DJGPP gets confused if
14064 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14065 # text mode, it properly converts lines to CR/LF. This bash problem
14066 # is reportedly fixed, but why not run on old versions too?
14067 sed '$q' "$ltmain" >> "$cfgfile" \
14068 || (rm -f "$cfgfile"; exit 1)
14069
14070 if test x"$xsi_shell" = xyes; then
14071 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14072 func_dirname ()\
14073 {\
14074 \ case ${1} in\
14075 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14076 \ * ) func_dirname_result="${3}" ;;\
14077 \ esac\
14078 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14079 && mv -f "$cfgfile.tmp" "$cfgfile" \
14080 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14081 test 0 -eq $? || _lt_function_replace_fail=:
14082
14083
14084 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14085 func_basename ()\
14086 {\
14087 \ func_basename_result="${1##*/}"\
14088 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14089 && mv -f "$cfgfile.tmp" "$cfgfile" \
14090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14091 test 0 -eq $? || _lt_function_replace_fail=:
14092
14093
14094 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14095 func_dirname_and_basename ()\
14096 {\
14097 \ case ${1} in\
14098 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14099 \ * ) func_dirname_result="${3}" ;;\
14100 \ esac\
14101 \ func_basename_result="${1##*/}"\
14102 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14103 && mv -f "$cfgfile.tmp" "$cfgfile" \
14104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14105 test 0 -eq $? || _lt_function_replace_fail=:
14106
14107
14108 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14109 func_stripname ()\
14110 {\
14111 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14112 \ # positional parameters, so assign one to ordinary parameter first.\
14113 \ func_stripname_result=${3}\
14114 \ func_stripname_result=${func_stripname_result#"${1}"}\
14115 \ func_stripname_result=${func_stripname_result%"${2}"}\
14116 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14117 && mv -f "$cfgfile.tmp" "$cfgfile" \
14118 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14119 test 0 -eq $? || _lt_function_replace_fail=:
14120
14121
14122 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14123 func_split_long_opt ()\
14124 {\
14125 \ func_split_long_opt_name=${1%%=*}\
14126 \ func_split_long_opt_arg=${1#*=}\
14127 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14128 && mv -f "$cfgfile.tmp" "$cfgfile" \
14129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14130 test 0 -eq $? || _lt_function_replace_fail=:
14131
14132
14133 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14134 func_split_short_opt ()\
14135 {\
14136 \ func_split_short_opt_arg=${1#??}\
14137 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14138 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14139 && mv -f "$cfgfile.tmp" "$cfgfile" \
14140 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14141 test 0 -eq $? || _lt_function_replace_fail=:
14142
14143
14144 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14145 func_lo2o ()\
14146 {\
14147 \ case ${1} in\
14148 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14149 \ *) func_lo2o_result=${1} ;;\
14150 \ esac\
14151 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14152 && mv -f "$cfgfile.tmp" "$cfgfile" \
14153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14154 test 0 -eq $? || _lt_function_replace_fail=:
14155
14156
14157 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14158 func_xform ()\
14159 {\
14160 func_xform_result=${1%.*}.lo\
14161 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14162 && mv -f "$cfgfile.tmp" "$cfgfile" \
14163 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14164 test 0 -eq $? || _lt_function_replace_fail=:
14165
14166
14167 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14168 func_arith ()\
14169 {\
14170 func_arith_result=$(( $* ))\
14171 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14172 && mv -f "$cfgfile.tmp" "$cfgfile" \
14173 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14174 test 0 -eq $? || _lt_function_replace_fail=:
14175
14176
14177 sed -e '/^func_len ()$/,/^} # func_len /c\
14178 func_len ()\
14179 {\
14180 func_len_result=${#1}\
14181 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14182 && mv -f "$cfgfile.tmp" "$cfgfile" \
14183 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14184 test 0 -eq $? || _lt_function_replace_fail=:
14185
14186 fi
14187
14188 if test x"$lt_shell_append" = xyes; then
14189 sed -e '/^func_append ()$/,/^} # func_append /c\
14190 func_append ()\
14191 {\
14192 eval "${1}+=\\${2}"\
14193 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14194 && mv -f "$cfgfile.tmp" "$cfgfile" \
14195 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14196 test 0 -eq $? || _lt_function_replace_fail=:
14197
14198
14199 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14200 func_append_quoted ()\
14201 {\
14202 \ func_quote_for_eval "${2}"\
14203 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14204 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14205 && mv -f "$cfgfile.tmp" "$cfgfile" \
14206 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14207 test 0 -eq $? || _lt_function_replace_fail=:
14208
14209
14210 # Save a `func_append' function call where possible by direct use of '+='
14211 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14212 && mv -f "$cfgfile.tmp" "$cfgfile" \
14213 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14214 test 0 -eq $? || _lt_function_replace_fail=:
14215 else
14216 # Save a `func_append' function call even when '+=' is not available
14217 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14218 && mv -f "$cfgfile.tmp" "$cfgfile" \
14219 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14220 test 0 -eq $? || _lt_function_replace_fail=:
14221 fi
14222
14223 if test x"$_lt_function_replace_fail" = x":"; then
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14225 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14226 fi
14227
14228
14229 mv -f "$cfgfile" "$ofile" ||
14230 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14231 chmod +x "$ofile"
14232
14233 ;;
14234
14235 esac
14236 done # for ac_tag
14237
14238
14239 as_fn_exit 0
14240 _ACEOF
14241 ac_clean_files=$ac_clean_files_save
14242
14243 test $ac_write_fail = 0 ||
14244 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14245
14246
14247 # configure is writing to config.log, and then calls config.status.
14248 # config.status does its own redirection, appending to config.log.
14249 # Unfortunately, on DOS this fails, as config.log is still kept open
14250 # by configure, so config.status won't be able to write to it; its
14251 # output is simply discarded. So we exec the FD to /dev/null,
14252 # effectively closing config.log, so it can be properly (re)opened and
14253 # appended to by config.status. When coming back to configure, we
14254 # need to make the FD available again.
14255 if test "$no_create" != yes; then
14256 ac_cs_success=:
14257 ac_config_status_args=
14258 test "$silent" = yes &&
14259 ac_config_status_args="$ac_config_status_args --quiet"
14260 exec 5>/dev/null
14261 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14262 exec 5>>config.log
14263 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14264 # would make configure fail if this is the last instruction.
14265 $ac_cs_success || as_fn_exit 1
14266 fi
14267 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14269 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14270 fi
14271