Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libisofs 1.5.8.
4 #
5 # Report bugs to <http://libburnia-project.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
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 [email protected] and
278 $0: http://libburnia-project.org about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script 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='libisofs'
592 PACKAGE_TARNAME='libisofs'
593 PACKAGE_VERSION='1.5.8'
594 PACKAGE_STRING='libisofs 1.5.8'
595 PACKAGE_BUGREPORT='http://libburnia-project.org'
596 PACKAGE_URL=''
597
598 ac_default_prefix=/usr/local
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 LIBBURNIA_LDCONFIG_CMD
640 LIBLDFLAGS
641 DIR_REC_SIZE_CHECK
642 LIBJTE_DEF
643 ZLIB_DEF
644 PROJID_DEF
645 LFA_DEF
646 XATTR_DEF
647 LIBACL_DEF
648 LIBBURNIA_PKGCONFDIR
649 LIBBURN_ARCH_LIBS
650 ARCH
651 THREAD_LIBS
652 LIBTOOL_DEPS
653 CPP
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 MANIFEST_TOOL
660 RANLIB
661 ac_ct_AR
662 AR
663 DLLTOOL
664 OBJDUMP
665 LN_S
666 NM
667 ac_ct_DUMPBIN
668 DUMPBIN
669 LD
670 FGREP
671 EGREP
672 GREP
673 SED
674 LIBTOOL
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__quote
683 am__include
684 DEPDIR
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
691 CC
692 LT_CURRENT_MINUS_AGE
693 LT_AGE
694 LT_REVISION
695 LT_CURRENT
696 LT_RELEASE
697 LIBISOFS_VERSION
698 LIBISOFS_MICRO_VERSION
699 LIBISOFS_MINOR_VERSION
700 LIBISOFS_MAJOR_VERSION
701 AM_BACKSLASH
702 AM_DEFAULT_VERBOSITY
703 AM_DEFAULT_V
704 AM_V
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
710 AWK
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_os
729 target_vendor
730 target_cpu
731 target
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files=''
779 ac_user_opts='
780 enable_option_checking
781 enable_silent_rules
782 enable_dependency_tracking
783 enable_largefile
784 enable_shared
785 enable_static
786 with_pic
787 enable_fast_install
788 with_gnu_ld
789 with_sysroot
790 enable_libtool_lock
791 enable_debug
792 enable_verbose_debug
793 enable_libdir_pkgconfig
794 enable_pkgconfig_path
795 enable_libacl
796 enable_xattr
797 enable_xattr_h_pref_attr
798 enable_lfa_flags
799 enable_projid
800 enable_zlib
801 enable_libjte
802 enable_dir_rec_size_check
803 enable_versioned_libs
804 enable_ldconfig_at_install
805 '
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 CPP'
815
816
817 # Initialize some variables set by options.
818 ac_init_help=
819 ac_init_version=false
820 ac_unrecognized_opts=
821 ac_unrecognized_sep=
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
872 ac_prev=
873 continue
874 fi
875
876 case $ac_option in
877 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *=) ac_optarg= ;;
879 *) ac_optarg=yes ;;
880 esac
881
882 # Accept the important Cygnus configure options, so we can diagnose typos.
883
884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
892
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
907
908 -datadir | --datadir | --datadi | --datad)
909 ac_prev=datadir ;;
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
912
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
920 -disable-* | --disable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=no ;;
935
936 -docdir | --docdir | --docdi | --doc | --do)
937 ac_prev=docdir ;;
938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 docdir=$ac_optarg ;;
940
941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 ac_prev=dvidir ;;
943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 dvidir=$ac_optarg ;;
945
946 -enable-* | --enable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=\$ac_optarg ;;
961
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
970
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
973 with_gas=yes ;;
974
975 -help | --help | --hel | --he | -h)
976 ac_init_help=long ;;
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
981
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
986
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 ac_prev=htmldir ;;
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 | --ht=*)
991 htmldir=$ac_optarg ;;
992
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
999
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 ac_prev=infodir ;;
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1004
1005 -libdir | --libdir | --libdi | --libd)
1006 ac_prev=libdir ;;
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1009
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1016
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1021
1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 | --localstate | --localstat | --localsta | --localst | --locals)
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 localstatedir=$ac_optarg ;;
1028
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 ac_prev=mandir ;;
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1033
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1036 with_fp=no ;;
1037
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1040 no_create=yes ;;
1041
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 no_recursion=yes ;;
1045
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1054
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 ac_prev=prefix ;;
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1059
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1066
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1073
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1090
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 ac_prev=pdfdir ;;
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1095
1096 -psdir | --psdir | --psdi | --psd | --ps)
1097 ac_prev=psdir ;;
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 psdir=$ac_optarg ;;
1100
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1103 silent=yes ;;
1104
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 ac_prev=sbindir ;;
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 | --sbi=* | --sb=*)
1109 sbindir=$ac_optarg ;;
1110
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1114 | --sha | --sh)
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 | --sha=* | --sh=*)
1120 sharedstatedir=$ac_optarg ;;
1121
1122 -site | --site | --sit)
1123 ac_prev=site ;;
1124 -site=* | --site=* | --sit=*)
1125 site=$ac_optarg ;;
1126
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 ac_prev=srcdir ;;
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1131
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1138
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1143
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 verbose=yes ;;
1146
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1149
1150 -with-* | --with-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159 "with_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=\$ac_optarg ;;
1165
1166 -without-* | --without-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=no ;;
1181
1182 --x)
1183 # Obsolete; use --with-x.
1184 with_x=yes ;;
1185
1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187 | --x-incl | --x-inc | --x-in | --x-i)
1188 ac_prev=x_includes ;;
1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191 x_includes=$ac_optarg ;;
1192
1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195 ac_prev=x_libraries ;;
1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198 x_libraries=$ac_optarg ;;
1199
1200 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201 Try \`$0 --help' for more information"
1202 ;;
1203
1204 *=*)
1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206 # Reject names that are not valid shell variable names.
1207 case $ac_envvar in #(
1208 '' | [0-9]* | *[!_$as_cr_alnum]* )
1209 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210 esac
1211 eval $ac_envvar=\$ac_optarg
1212 export $ac_envvar ;;
1213
1214 *)
1215 # FIXME: should be removed in autoconf 3.0.
1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220 ;;
1221
1222 esac
1223 done
1224
1225 if test -n "$ac_prev"; then
1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227 as_fn_error $? "missing argument to $ac_option"
1228 fi
1229
1230 if test -n "$ac_unrecognized_opts"; then
1231 case $enable_option_checking in
1232 no) ;;
1233 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235 esac
1236 fi
1237
1238 # Check all directory arguments for consistency.
1239 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240 datadir sysconfdir sharedstatedir localstatedir includedir \
1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242 libdir localedir mandir
1243 do
1244 eval ac_val=\$$ac_var
1245 # Remove trailing slashes.
1246 case $ac_val in
1247 */ )
1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249 eval $ac_var=\$ac_val;;
1250 esac
1251 # Be sure to have absolute directory names.
1252 case $ac_val in
1253 [\\/$]* | ?:[\\/]* ) continue;;
1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255 esac
1256 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257 done
1258
1259 # There might be people who depend on the old broken behavior: `$host'
1260 # used to hold the argument of --host etc.
1261 # FIXME: To remove some day.
1262 build=$build_alias
1263 host=$host_alias
1264 target=$target_alias
1265
1266 # FIXME: To remove some day.
1267 if test "x$host_alias" != x; then
1268 if test "x$build_alias" = x; then
1269 cross_compiling=maybe
1270 elif test "x$build_alias" != "x$host_alias"; then
1271 cross_compiling=yes
1272 fi
1273 fi
1274
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278 test "$silent" = yes && exec 6>/dev/null
1279
1280
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 as_fn_error $? "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 as_fn_error $? "pwd does not report name of working directory"
1287
1288
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$as_myself" : 'X\(//\)[^/]' \| \
1296 X"$as_myself" : 'X\(//\)$' \| \
1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 $as_echo X"$as_myself" |
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)[^/].*/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)$/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\).*/{
1312 s//\1/
1313 q
1314 }
1315 s/.*/./; q'`
1316 srcdir=$ac_confdir
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 srcdir=..
1319 fi
1320 else
1321 ac_srcdir_defaulted=no
1322 fi
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326 fi
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 ac_abs_confdir=`(
1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330 pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 srcdir=.
1334 fi
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1347
1348 #
1349 # Report the --help message.
1350 #
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1354 cat <<_ACEOF
1355 \`configure' configures libisofs 1.5.8 to adapt to many kinds of systems.
1356
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1361
1362 Defaults for the options are specified in brackets.
1363
1364 Configuration:
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking ...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 [PREFIX]
1380
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1385
1386 For better control, use the options below.
1387
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/libisofs]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1408 _ACEOF
1409
1410 cat <<\_ACEOF
1411
1412 Program names:
1413 --program-prefix=PREFIX prepend PREFIX to installed program names
1414 --program-suffix=SUFFIX append SUFFIX to installed program names
1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1416
1417 System types:
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 --target=TARGET configure for building compilers for TARGET [HOST]
1421 _ACEOF
1422 fi
1423
1424 if test -n "$ac_init_help"; then
1425 case $ac_init_help in
1426 short | recursive ) echo "Configuration of libisofs 1.5.8:";;
1427 esac
1428 cat <<\_ACEOF
1429
1430 Optional Features:
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --enable-silent-rules less verbose build output (undo: "make V=1")
1435 --disable-silent-rules verbose build output (undo: "make V=0")
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
1440 --disable-largefile omit support for large files
1441 --enable-shared[=PKGS] build shared libraries [default=yes]
1442 --enable-static[=PKGS] build static libraries [default=yes]
1443 --enable-fast-install[=PKGS]
1444 optimize for fast installation [default=yes]
1445 --disable-libtool-lock avoid locking (might break parallel builds)
1446 --enable-debug Disable aggressive optimizations, default=yes
1447 --enable-verbose-debug Enable verbose debug messages, default=no
1448 --enable-libdir-pkgconfig Install to $libdir/pkgconfig on any OS, default=no
1449 --enable-pkgconfig-path=DIR Absolute path of directory for libisofs-*.pc
1450 --enable-libacl Enable use of ACL functions by libisofs, default=yes
1451 --enable-xattr Enable use of extended file attributes by libisofs, default=yes
1452 --enable-xattr-h-pref-attr Prefer include file attr/xattr.h over sys/xattr.h, default=no
1453 --enable-lfa-flags Enable processing of Linux chattr(1) flags, default=yes
1454 --enable-projid Enable processing of XFS-style project id, default=yes
1455 --enable-zlib Enable use of zlib by libisofs, default=yes
1456 --enable-libjte Enable use of libjte >= 2.0 by libisofs, default=yes
1457 --enable-dir-rec-size-check Detailed check of directory size prediction, default=no
1458 --enable-versioned-libs Enable strict symbol encapsulation , default=yes
1459 --enable-ldconfig-at-install On GNU/Linux run ldconfig, default=yes
1460
1461 Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1465 both]
1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1467 --with-sysroot=DIR Search for dependent libraries within DIR
1468 (or the compiler's sysroot if not specified).
1469
1470 Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 LIBS libraries to pass to the linker, e.g. -l<library>
1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477 you have headers in a nonstandard directory <include dir>
1478 CPP C preprocessor
1479
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1482
1483 Report bugs to <http://libburnia-project.org>.
1484 _ACEOF
1485 ac_status=$?
1486 fi
1487
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 continue
1494 ac_builddir=.
1495
1496 case "$ac_dir" in
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *)
1499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 esac ;;
1506 esac
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1511
1512 case $srcdir in
1513 .) # We are building in place.
1514 ac_srcdir=.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1521 *) # Relative name.
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 esac
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1536 else
1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 fi || ac_status=$?
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1540 done
1541 fi
1542
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1545 cat <<\_ACEOF
1546 libisofs configure 1.5.8
1547 generated by GNU Autoconf 2.69
1548
1549 Copyright (C) 2012 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1552 _ACEOF
1553 exit
1554 fi
1555
1556 ## ------------------------ ##
1557 ## Autoconf initialization. ##
1558 ## ------------------------ ##
1559
1560 # ac_fn_c_try_compile LINENO
1561 # --------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_compile ()
1564 {
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1580 fi
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592 fi
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1595
1596 } # ac_fn_c_try_compile
1597
1598 # ac_fn_c_try_link LINENO
1599 # -----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_link ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest$ac_exeext
1605 if { { ac_try="$ac_link"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 test -x conftest$ac_exeext
1626 }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=1
1633 fi
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_link
1643
1644 # ac_fn_c_check_func LINENO FUNC VAR
1645 # ----------------------------------
1646 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1647 ac_fn_c_check_func ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if eval \${$3+:} false; then :
1653 $as_echo_n "(cached) " >&6
1654 else
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1657 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1659 #define $2 innocuous_$2
1660
1661 /* System header to define __stub macros and hopefully few prototypes,
1662 which can conflict with char $2 (); below.
1663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1664 <limits.h> exists even on freestanding compilers. */
1665
1666 #ifdef __STDC__
1667 # include <limits.h>
1668 #else
1669 # include <assert.h>
1670 #endif
1671
1672 #undef $2
1673
1674 /* Override any GCC internal prototype to avoid an error.
1675 Use char because int might match the return type of a GCC
1676 builtin and then its argument prototype would still apply. */
1677 #ifdef __cplusplus
1678 extern "C"
1679 #endif
1680 char $2 ();
1681 /* The GNU C library defines this for functions which it implements
1682 to always fail with ENOSYS. Some functions are actually named
1683 something starting with __ and the normal name is an alias. */
1684 #if defined __stub_$2 || defined __stub___$2
1685 choke me
1686 #endif
1687
1688 int
1689 main ()
1690 {
1691 return $2 ();
1692 ;
1693 return 0;
1694 }
1695 _ACEOF
1696 if ac_fn_c_try_link "$LINENO"; then :
1697 eval "$3=yes"
1698 else
1699 eval "$3=no"
1700 fi
1701 rm -f core conftest.err conftest.$ac_objext \
1702 conftest$ac_exeext conftest.$ac_ext
1703 fi
1704 eval ac_res=\$$3
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706 $as_echo "$ac_res" >&6; }
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708
1709 } # ac_fn_c_check_func
1710
1711 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists and can be compiled using the include files in
1714 # INCLUDES, setting the cache variable VAR accordingly.
1715 ac_fn_c_check_header_compile ()
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 $4
1726 #include <$2>
1727 _ACEOF
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729 eval "$3=yes"
1730 else
1731 eval "$3=no"
1732 fi
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734 fi
1735 eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739
1740 } # ac_fn_c_check_header_compile
1741
1742 # ac_fn_c_try_cpp LINENO
1743 # ----------------------
1744 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_c_try_cpp ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_cpp conftest.$ac_ext"
1749 case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1761 fi
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } > conftest.i && {
1764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 }; then :
1767 ac_retval=0
1768 else
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=1
1773 fi
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_cpp
1778
1779 # ac_fn_c_try_run LINENO
1780 # ----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1782 # that executables *can* be run.
1783 ac_fn_c_try_run ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>&5
1794 ac_status=$?
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1797 { { case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_try") 2>&5
1804 ac_status=$?
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; }; }; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: program exited with status $ac_status" >&5
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 ac_retval=$ac_status
1814 fi
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1818
1819 } # ac_fn_c_try_run
1820
1821 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1824 # the include files in INCLUDES and setting the cache variable VAR
1825 # accordingly.
1826 ac_fn_c_check_header_mongrel ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if eval \${$3+:} false; then :
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833 $as_echo_n "(cached) " >&6
1834 fi
1835 eval ac_res=\$$3
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 else
1839 # Is the header compilable?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1841 $as_echo_n "checking $2 usability... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 $4
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 ac_header_compiler=yes
1849 else
1850 ac_header_compiler=no
1851 fi
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1854 $as_echo "$ac_header_compiler" >&6; }
1855
1856 # Is the header present?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1858 $as_echo_n "checking $2 presence... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_cpp "$LINENO"; then :
1864 ac_header_preproc=yes
1865 else
1866 ac_header_preproc=no
1867 fi
1868 rm -f conftest.err conftest.i conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1870 $as_echo "$ac_header_preproc" >&6; }
1871
1872 # So? What about this header?
1873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1874 yes:no: )
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1876 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879 ;;
1880 no:yes:* )
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1882 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1884 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1886 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1888 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1891 ( $as_echo "## ------------------------------------------- ##
1892 ## Report this to http://libburnia-project.org ##
1893 ## ------------------------------------------- ##"
1894 ) | sed "s/^/$as_me: WARNING: /" >&2
1895 ;;
1896 esac
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 eval "$3=\$ac_header_compiler"
1903 fi
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 fi
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910 } # ac_fn_c_check_header_mongrel
1911
1912 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1913 # ----------------------------------------------------
1914 # Tries to find if the field MEMBER exists in type AGGR, after including
1915 # INCLUDES, setting cache variable VAR accordingly.
1916 ac_fn_c_check_member ()
1917 {
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1920 $as_echo_n "checking for $2.$3... " >&6; }
1921 if eval \${$4+:} false; then :
1922 $as_echo_n "(cached) " >&6
1923 else
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 $5
1927 int
1928 main ()
1929 {
1930 static $2 ac_aggr;
1931 if (ac_aggr.$3)
1932 return 0;
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 eval "$4=yes"
1939 else
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 $5
1943 int
1944 main ()
1945 {
1946 static $2 ac_aggr;
1947 if (sizeof ac_aggr.$3)
1948 return 0;
1949 ;
1950 return 0;
1951 }
1952 _ACEOF
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954 eval "$4=yes"
1955 else
1956 eval "$4=no"
1957 fi
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 fi
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961 fi
1962 eval ac_res=\$$4
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 $as_echo "$ac_res" >&6; }
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966
1967 } # ac_fn_c_check_member
1968
1969 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1970 # ---------------------------------------------
1971 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1972 # accordingly.
1973 ac_fn_c_check_decl ()
1974 {
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 as_decl_name=`echo $2|sed 's/ *(.*//'`
1977 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1979 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1980 if eval \${$3+:} false; then :
1981 $as_echo_n "(cached) " >&6
1982 else
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1985 $4
1986 int
1987 main ()
1988 {
1989 #ifndef $as_decl_name
1990 #ifdef __cplusplus
1991 (void) $as_decl_use;
1992 #else
1993 (void) $as_decl_name;
1994 #endif
1995 #endif
1996
1997 ;
1998 return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 eval "$3=yes"
2003 else
2004 eval "$3=no"
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 fi
2008 eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013 } # ac_fn_c_check_decl
2014 cat >config.log <<_ACEOF
2015 This file contains any messages produced by compilers while
2016 running configure, to aid debugging if configure makes a mistake.
2017
2018 It was created by libisofs $as_me 1.5.8, which was
2019 generated by GNU Autoconf 2.69. Invocation command line was
2020
2021 $ $0 $@
2022
2023 _ACEOF
2024 exec 5>>config.log
2025 {
2026 cat <<_ASUNAME
2027 ## --------- ##
2028 ## Platform. ##
2029 ## --------- ##
2030
2031 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2032 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2033 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2034 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2035 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2036
2037 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2038 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2039
2040 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2041 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2042 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2043 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2044 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2045 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2046 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2047
2048 _ASUNAME
2049
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 $as_echo "PATH: $as_dir"
2056 done
2057 IFS=$as_save_IFS
2058
2059 } >&5
2060
2061 cat >&5 <<_ACEOF
2062
2063
2064 ## ----------- ##
2065 ## Core tests. ##
2066 ## ----------- ##
2067
2068 _ACEOF
2069
2070
2071 # Keep a trace of the command line.
2072 # Strip out --no-create and --no-recursion so they do not pile up.
2073 # Strip out --silent because we don't want to record it for future runs.
2074 # Also quote any args containing shell meta-characters.
2075 # Make two passes to allow for proper duplicate-argument suppression.
2076 ac_configure_args=
2077 ac_configure_args0=
2078 ac_configure_args1=
2079 ac_must_keep_next=false
2080 for ac_pass in 1 2
2081 do
2082 for ac_arg
2083 do
2084 case $ac_arg in
2085 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2087 | -silent | --silent | --silen | --sile | --sil)
2088 continue ;;
2089 *\'*)
2090 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2091 esac
2092 case $ac_pass in
2093 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2094 2)
2095 as_fn_append ac_configure_args1 " '$ac_arg'"
2096 if test $ac_must_keep_next = true; then
2097 ac_must_keep_next=false # Got value, back to normal.
2098 else
2099 case $ac_arg in
2100 *=* | --config-cache | -C | -disable-* | --disable-* \
2101 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2102 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2103 | -with-* | --with-* | -without-* | --without-* | --x)
2104 case "$ac_configure_args0 " in
2105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2106 esac
2107 ;;
2108 -* ) ac_must_keep_next=true ;;
2109 esac
2110 fi
2111 as_fn_append ac_configure_args " '$ac_arg'"
2112 ;;
2113 esac
2114 done
2115 done
2116 { ac_configure_args0=; unset ac_configure_args0;}
2117 { ac_configure_args1=; unset ac_configure_args1;}
2118
2119 # When interrupted or exit'd, cleanup temporary files, and complete
2120 # config.log. We remove comments because anyway the quotes in there
2121 # would cause problems or look ugly.
2122 # WARNING: Use '\'' to represent an apostrophe within the trap.
2123 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2124 trap 'exit_status=$?
2125 # Save into config.log some information that might help in debugging.
2126 {
2127 echo
2128
2129 $as_echo "## ---------------- ##
2130 ## Cache variables. ##
2131 ## ---------------- ##"
2132 echo
2133 # The following way of writing the cache mishandles newlines in values,
2134 (
2135 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2136 eval ac_val=\$$ac_var
2137 case $ac_val in #(
2138 *${as_nl}*)
2139 case $ac_var in #(
2140 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2141 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2142 esac
2143 case $ac_var in #(
2144 _ | IFS | as_nl) ;; #(
2145 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2146 *) { eval $ac_var=; unset $ac_var;} ;;
2147 esac ;;
2148 esac
2149 done
2150 (set) 2>&1 |
2151 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2152 *${as_nl}ac_space=\ *)
2153 sed -n \
2154 "s/'\''/'\''\\\\'\'''\''/g;
2155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2156 ;; #(
2157 *)
2158 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2159 ;;
2160 esac |
2161 sort
2162 )
2163 echo
2164
2165 $as_echo "## ----------------- ##
2166 ## Output variables. ##
2167 ## ----------------- ##"
2168 echo
2169 for ac_var in $ac_subst_vars
2170 do
2171 eval ac_val=\$$ac_var
2172 case $ac_val in
2173 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174 esac
2175 $as_echo "$ac_var='\''$ac_val'\''"
2176 done | sort
2177 echo
2178
2179 if test -n "$ac_subst_files"; then
2180 $as_echo "## ------------------- ##
2181 ## File substitutions. ##
2182 ## ------------------- ##"
2183 echo
2184 for ac_var in $ac_subst_files
2185 do
2186 eval ac_val=\$$ac_var
2187 case $ac_val in
2188 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189 esac
2190 $as_echo "$ac_var='\''$ac_val'\''"
2191 done | sort
2192 echo
2193 fi
2194
2195 if test -s confdefs.h; then
2196 $as_echo "## ----------- ##
2197 ## confdefs.h. ##
2198 ## ----------- ##"
2199 echo
2200 cat confdefs.h
2201 echo
2202 fi
2203 test "$ac_signal" != 0 &&
2204 $as_echo "$as_me: caught signal $ac_signal"
2205 $as_echo "$as_me: exit $exit_status"
2206 } >&5
2207 rm -f core *.core core.conftest.* &&
2208 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2209 exit $exit_status
2210 ' 0
2211 for ac_signal in 1 2 13 15; do
2212 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2213 done
2214 ac_signal=0
2215
2216 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2217 rm -f -r conftest* confdefs.h
2218
2219 $as_echo "/* confdefs.h */" > confdefs.h
2220
2221 # Predefined preprocessor variables.
2222
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_NAME "$PACKAGE_NAME"
2225 _ACEOF
2226
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2229 _ACEOF
2230
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2233 _ACEOF
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_STRING "$PACKAGE_STRING"
2237 _ACEOF
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2241 _ACEOF
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_URL "$PACKAGE_URL"
2245 _ACEOF
2246
2247
2248 # Let the site file select an alternate cache file if it wants to.
2249 # Prefer an explicitly selected file to automatically selected ones.
2250 ac_site_file1=NONE
2251 ac_site_file2=NONE
2252 if test -n "$CONFIG_SITE"; then
2253 # We do not want a PATH search for config.site.
2254 case $CONFIG_SITE in #((
2255 -*) ac_site_file1=./$CONFIG_SITE;;
2256 */*) ac_site_file1=$CONFIG_SITE;;
2257 *) ac_site_file1=./$CONFIG_SITE;;
2258 esac
2259 elif test "x$prefix" != xNONE; then
2260 ac_site_file1=$prefix/share/config.site
2261 ac_site_file2=$prefix/etc/config.site
2262 else
2263 ac_site_file1=$ac_default_prefix/share/config.site
2264 ac_site_file2=$ac_default_prefix/etc/config.site
2265 fi
2266 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2267 do
2268 test "x$ac_site_file" = xNONE && continue
2269 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2271 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2272 sed 's/^/| /' "$ac_site_file" >&5
2273 . "$ac_site_file" \
2274 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276 as_fn_error $? "failed to load site script $ac_site_file
2277 See \`config.log' for more details" "$LINENO" 5; }
2278 fi
2279 done
2280
2281 if test -r "$cache_file"; then
2282 # Some versions of bash will fail to source /dev/null (special files
2283 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2284 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2286 $as_echo "$as_me: loading cache $cache_file" >&6;}
2287 case $cache_file in
2288 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2289 *) . "./$cache_file";;
2290 esac
2291 fi
2292 else
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2294 $as_echo "$as_me: creating cache $cache_file" >&6;}
2295 >$cache_file
2296 fi
2297
2298 # Check that the precious variables saved in the cache have kept the same
2299 # value.
2300 ac_cache_corrupted=false
2301 for ac_var in $ac_precious_vars; do
2302 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2303 eval ac_new_set=\$ac_env_${ac_var}_set
2304 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2305 eval ac_new_val=\$ac_env_${ac_var}_value
2306 case $ac_old_set,$ac_new_set in
2307 set,)
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2309 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2310 ac_cache_corrupted=: ;;
2311 ,set)
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2313 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2314 ac_cache_corrupted=: ;;
2315 ,);;
2316 *)
2317 if test "x$ac_old_val" != "x$ac_new_val"; then
2318 # differences in whitespace do not lead to failure.
2319 ac_old_val_w=`echo x $ac_old_val`
2320 ac_new_val_w=`echo x $ac_new_val`
2321 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2323 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2324 ac_cache_corrupted=:
2325 else
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2327 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2328 eval $ac_var=\$ac_old_val
2329 fi
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2331 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2333 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2334 fi;;
2335 esac
2336 # Pass precious variables to config.status.
2337 if test "$ac_new_set" = set; then
2338 case $ac_new_val in
2339 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2340 *) ac_arg=$ac_var=$ac_new_val ;;
2341 esac
2342 case " $ac_configure_args " in
2343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2344 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2345 esac
2346 fi
2347 done
2348 if $ac_cache_corrupted; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2352 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2353 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2354 fi
2355 ## -------------------- ##
2356 ## Main body of script. ##
2357 ## -------------------- ##
2358
2359 ac_ext=c
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364
2365
2366
2367
2368 ac_aux_dir=
2369 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2370 if test -f "$ac_dir/install-sh"; then
2371 ac_aux_dir=$ac_dir
2372 ac_install_sh="$ac_aux_dir/install-sh -c"
2373 break
2374 elif test -f "$ac_dir/install.sh"; then
2375 ac_aux_dir=$ac_dir
2376 ac_install_sh="$ac_aux_dir/install.sh -c"
2377 break
2378 elif test -f "$ac_dir/shtool"; then
2379 ac_aux_dir=$ac_dir
2380 ac_install_sh="$ac_aux_dir/shtool install -c"
2381 break
2382 fi
2383 done
2384 if test -z "$ac_aux_dir"; then
2385 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2386 fi
2387
2388 # These three variables are undocumented and unsupported,
2389 # and are intended to be withdrawn in a future Autoconf release.
2390 # They can cause serious problems if a builder's source tree is in a directory
2391 # whose full name contains unusual characters.
2392 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2393 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2394 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2395
2396
2397 # Make sure we can run config.sub.
2398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2399 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2400
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2402 $as_echo_n "checking build system type... " >&6; }
2403 if ${ac_cv_build+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 ac_build_alias=$build_alias
2407 test "x$ac_build_alias" = x &&
2408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2409 test "x$ac_build_alias" = x &&
2410 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2413
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2416 $as_echo "$ac_cv_build" >&6; }
2417 case $ac_cv_build in
2418 *-*-*) ;;
2419 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2420 esac
2421 build=$ac_cv_build
2422 ac_save_IFS=$IFS; IFS='-'
2423 set x $ac_cv_build
2424 shift
2425 build_cpu=$1
2426 build_vendor=$2
2427 shift; shift
2428 # Remember, the first character of IFS is used to create $*,
2429 # except with old shells:
2430 build_os=$*
2431 IFS=$ac_save_IFS
2432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2433
2434
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2436 $as_echo_n "checking host system type... " >&6; }
2437 if ${ac_cv_host+:} false; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 if test "x$host_alias" = x; then
2441 ac_cv_host=$ac_cv_build
2442 else
2443 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2445 fi
2446
2447 fi
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2449 $as_echo "$ac_cv_host" >&6; }
2450 case $ac_cv_host in
2451 *-*-*) ;;
2452 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2453 esac
2454 host=$ac_cv_host
2455 ac_save_IFS=$IFS; IFS='-'
2456 set x $ac_cv_host
2457 shift
2458 host_cpu=$1
2459 host_vendor=$2
2460 shift; shift
2461 # Remember, the first character of IFS is used to create $*,
2462 # except with old shells:
2463 host_os=$*
2464 IFS=$ac_save_IFS
2465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2466
2467
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2469 $as_echo_n "checking target system type... " >&6; }
2470 if ${ac_cv_target+:} false; then :
2471 $as_echo_n "(cached) " >&6
2472 else
2473 if test "x$target_alias" = x; then
2474 ac_cv_target=$ac_cv_host
2475 else
2476 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2477 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2478 fi
2479
2480 fi
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2482 $as_echo "$ac_cv_target" >&6; }
2483 case $ac_cv_target in
2484 *-*-*) ;;
2485 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2486 esac
2487 target=$ac_cv_target
2488 ac_save_IFS=$IFS; IFS='-'
2489 set x $ac_cv_target
2490 shift
2491 target_cpu=$1
2492 target_vendor=$2
2493 shift; shift
2494 # Remember, the first character of IFS is used to create $*,
2495 # except with old shells:
2496 target_os=$*
2497 IFS=$ac_save_IFS
2498 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2499
2500
2501 # The aliases save the names the user supplied, while $host etc.
2502 # will get canonicalized.
2503 test -n "$target_alias" &&
2504 test "$program_prefix$program_suffix$program_transform_name" = \
2505 NONENONEs,x,x, &&
2506 program_prefix=${target_alias}-
2507
2508
2509 case $target_os in
2510 freebsd* | netbsd*)
2511 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2512 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
2513 ;;
2514 esac
2515
2516
2517 am__api_version='1.14'
2518
2519 # Find a good install program. We prefer a C program (faster),
2520 # so one script is as good as another. But avoid the broken or
2521 # incompatible versions:
2522 # SysV /etc/install, /usr/sbin/install
2523 # SunOS /usr/etc/install
2524 # IRIX /sbin/install
2525 # AIX /bin/install
2526 # AmigaOS /C/install, which installs bootblocks on floppy discs
2527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2530 # OS/2's system install, which has a completely different semantic
2531 # ./install, which can be erroneously created by make from ./install.sh.
2532 # Reject install programs that cannot install multiple files.
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2534 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2535 if test -z "$INSTALL"; then
2536 if ${ac_cv_path_install+:} false; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 # Account for people who put trailing slashes in PATH elements.
2545 case $as_dir/ in #((
2546 ./ | .// | /[cC]/* | \
2547 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2548 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2549 /usr/ucb/* ) ;;
2550 *)
2551 # OSF1 and SCO ODT 3.0 have their own names for install.
2552 # Don't use installbsd from OSF since it installs stuff as root
2553 # by default.
2554 for ac_prog in ginstall scoinst install; do
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2557 if test $ac_prog = install &&
2558 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559 # AIX install. It has an incompatible calling convention.
2560 :
2561 elif test $ac_prog = install &&
2562 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563 # program-specific install script used by HP pwplus--don't use.
2564 :
2565 else
2566 rm -rf conftest.one conftest.two conftest.dir
2567 echo one > conftest.one
2568 echo two > conftest.two
2569 mkdir conftest.dir
2570 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2571 test -s conftest.one && test -s conftest.two &&
2572 test -s conftest.dir/conftest.one &&
2573 test -s conftest.dir/conftest.two
2574 then
2575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2576 break 3
2577 fi
2578 fi
2579 fi
2580 done
2581 done
2582 ;;
2583 esac
2584
2585 done
2586 IFS=$as_save_IFS
2587
2588 rm -rf conftest.one conftest.two conftest.dir
2589
2590 fi
2591 if test "${ac_cv_path_install+set}" = set; then
2592 INSTALL=$ac_cv_path_install
2593 else
2594 # As a last resort, use the slow shell script. Don't cache a
2595 # value for INSTALL within a source directory, because that will
2596 # break other packages using the cache if that directory is
2597 # removed, or if the value is a relative name.
2598 INSTALL=$ac_install_sh
2599 fi
2600 fi
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2602 $as_echo "$INSTALL" >&6; }
2603
2604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2605 # It thinks the first close brace ends the variable substitution.
2606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2607
2608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2609
2610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2613 $as_echo_n "checking whether build environment is sane... " >&6; }
2614 # Reject unsafe characters in $srcdir or the absolute working directory
2615 # name. Accept space and tab only in the latter.
2616 am_lf='
2617 '
2618 case `pwd` in
2619 *[\\\"\#\$\&\'\`$am_lf]*)
2620 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2621 esac
2622 case $srcdir in
2623 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2624 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2625 esac
2626
2627 # Do 'set' in a subshell so we don't clobber the current shell's
2628 # arguments. Must try -L first in case configure is actually a
2629 # symlink; some systems play weird games with the mod time of symlinks
2630 # (eg FreeBSD returns the mod time of the symlink's containing
2631 # directory).
2632 if (
2633 am_has_slept=no
2634 for am_try in 1 2; do
2635 echo "timestamp, slept: $am_has_slept" > conftest.file
2636 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2637 if test "$*" = "X"; then
2638 # -L didn't work.
2639 set X `ls -t "$srcdir/configure" conftest.file`
2640 fi
2641 if test "$*" != "X $srcdir/configure conftest.file" \
2642 && test "$*" != "X conftest.file $srcdir/configure"; then
2643
2644 # If neither matched, then we have a broken ls. This can happen
2645 # if, for instance, CONFIG_SHELL is bash and it inherits a
2646 # broken ls alias from the environment. This has actually
2647 # happened. Such a system could not be considered "sane".
2648 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2649 alias in your environment" "$LINENO" 5
2650 fi
2651 if test "$2" = conftest.file || test $am_try -eq 2; then
2652 break
2653 fi
2654 # Just in case.
2655 sleep 1
2656 am_has_slept=yes
2657 done
2658 test "$2" = conftest.file
2659 )
2660 then
2661 # Ok.
2662 :
2663 else
2664 as_fn_error $? "newly created file is older than distributed files!
2665 Check your system clock" "$LINENO" 5
2666 fi
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668 $as_echo "yes" >&6; }
2669 # If we didn't sleep, we still need to ensure time stamps of config.status and
2670 # generated files are strictly newer.
2671 am_sleep_pid=
2672 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2673 ( sleep 1 ) &
2674 am_sleep_pid=$!
2675 fi
2676
2677 rm -f conftest.file
2678
2679 test "$program_prefix" != NONE &&
2680 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2681 # Use a double $ so make ignores it.
2682 test "$program_suffix" != NONE &&
2683 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2684 # Double any \ or $.
2685 # By default was `s,x,x', remove it if useless.
2686 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2687 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2688
2689 # Expand $ac_aux_dir to an absolute path.
2690 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2691
2692 if test x"${MISSING+set}" != xset; then
2693 case $am_aux_dir in
2694 *\ * | *\ *)
2695 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2696 *)
2697 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2698 esac
2699 fi
2700 # Use eval to expand $SHELL
2701 if eval "$MISSING --is-lightweight"; then
2702 am_missing_run="$MISSING "
2703 else
2704 am_missing_run=
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2706 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2707 fi
2708
2709 if test x"${install_sh}" != xset; then
2710 case $am_aux_dir in
2711 *\ * | *\ *)
2712 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2713 *)
2714 install_sh="\${SHELL} $am_aux_dir/install-sh"
2715 esac
2716 fi
2717
2718 # Installed binaries are usually stripped using 'strip' when the user
2719 # run "make install-strip". However 'strip' might not be the right
2720 # tool to use in cross-compilation environments, therefore Automake
2721 # will honor the 'STRIP' environment variable to overrule this program.
2722 if test "$cross_compiling" != no; then
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}strip; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if ${ac_cv_prog_STRIP+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test -n "$STRIP"; then
2732 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2744 fi
2745 done
2746 done
2747 IFS=$as_save_IFS
2748
2749 fi
2750 fi
2751 STRIP=$ac_cv_prog_STRIP
2752 if test -n "$STRIP"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2754 $as_echo "$STRIP" >&6; }
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 fi
2759
2760
2761 fi
2762 if test -z "$ac_cv_prog_STRIP"; then
2763 ac_ct_STRIP=$STRIP
2764 # Extract the first word of "strip", so it can be a program name with args.
2765 set dummy strip; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test -n "$ac_ct_STRIP"; then
2772 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_ac_ct_STRIP="strip"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785 done
2786 done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2792 if test -n "$ac_ct_STRIP"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2794 $as_echo "$ac_ct_STRIP" >&6; }
2795 else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800 if test "x$ac_ct_STRIP" = x; then
2801 STRIP=":"
2802 else
2803 case $cross_compiling:$ac_tool_warned in
2804 yes:)
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2807 ac_tool_warned=yes ;;
2808 esac
2809 STRIP=$ac_ct_STRIP
2810 fi
2811 else
2812 STRIP="$ac_cv_prog_STRIP"
2813 fi
2814
2815 fi
2816 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2817
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2819 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2820 if test -z "$MKDIR_P"; then
2821 if ${ac_cv_path_mkdir+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_prog in mkdir gmkdir; do
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2832 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2833 'mkdir (GNU coreutils) '* | \
2834 'mkdir (coreutils) '* | \
2835 'mkdir (fileutils) '4.1*)
2836 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2837 break 3;;
2838 esac
2839 done
2840 done
2841 done
2842 IFS=$as_save_IFS
2843
2844 fi
2845
2846 test -d ./--version && rmdir ./--version
2847 if test "${ac_cv_path_mkdir+set}" = set; then
2848 MKDIR_P="$ac_cv_path_mkdir -p"
2849 else
2850 # As a last resort, use the slow shell script. Don't cache a
2851 # value for MKDIR_P within a source directory, because that will
2852 # break other packages using the cache if that directory is
2853 # removed, or if the value is a relative name.
2854 MKDIR_P="$ac_install_sh -d"
2855 fi
2856 fi
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2858 $as_echo "$MKDIR_P" >&6; }
2859
2860 for ac_prog in gawk mawk nawk awk
2861 do
2862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2863 set dummy $ac_prog; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_AWK+:} false; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$AWK"; then
2870 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_AWK="$ac_prog"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 AWK=$ac_cv_prog_AWK
2890 if test -n "$AWK"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2892 $as_echo "$AWK" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898
2899 test -n "$AWK" && break
2900 done
2901
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2903 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2904 set x ${MAKE-make}
2905 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2906 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 cat >conftest.make <<\_ACEOF
2910 SHELL = /bin/sh
2911 all:
2912 @echo '@@@%%%=$(MAKE)=@@@%%%'
2913 _ACEOF
2914 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2915 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2916 *@@@%%%=?*=@@@%%%*)
2917 eval ac_cv_prog_make_${ac_make}_set=yes;;
2918 *)
2919 eval ac_cv_prog_make_${ac_make}_set=no;;
2920 esac
2921 rm -f conftest.make
2922 fi
2923 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2925 $as_echo "yes" >&6; }
2926 SET_MAKE=
2927 else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930 SET_MAKE="MAKE=${MAKE-make}"
2931 fi
2932
2933 rm -rf .tst 2>/dev/null
2934 mkdir .tst 2>/dev/null
2935 if test -d .tst; then
2936 am__leading_dot=.
2937 else
2938 am__leading_dot=_
2939 fi
2940 rmdir .tst 2>/dev/null
2941
2942 # Check whether --enable-silent-rules was given.
2943 if test "${enable_silent_rules+set}" = set; then :
2944 enableval=$enable_silent_rules;
2945 fi
2946
2947 case $enable_silent_rules in # (((
2948 yes) AM_DEFAULT_VERBOSITY=0;;
2949 no) AM_DEFAULT_VERBOSITY=1;;
2950 *) AM_DEFAULT_VERBOSITY=1;;
2951 esac
2952 am_make=${MAKE-make}
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2954 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2955 if ${am_cv_make_support_nested_variables+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if $as_echo 'TRUE=$(BAR$(V))
2959 BAR0=false
2960 BAR1=true
2961 V=1
2962 am__doit:
2963 @$(TRUE)
2964 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2965 am_cv_make_support_nested_variables=yes
2966 else
2967 am_cv_make_support_nested_variables=no
2968 fi
2969 fi
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2971 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2972 if test $am_cv_make_support_nested_variables = yes; then
2973 AM_V='$(V)'
2974 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2975 else
2976 AM_V=$AM_DEFAULT_VERBOSITY
2977 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2978 fi
2979 AM_BACKSLASH='\'
2980
2981 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2982 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2983 # is not polluted with repeated "-I."
2984 am__isrc=' -I$(srcdir)'
2985 # test to see if srcdir already configured
2986 if test -f $srcdir/config.status; then
2987 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2988 fi
2989 fi
2990
2991 # test whether we have cygpath
2992 if test -z "$CYGPATH_W"; then
2993 if (cygpath --version) >/dev/null 2>/dev/null; then
2994 CYGPATH_W='cygpath -w'
2995 else
2996 CYGPATH_W=echo
2997 fi
2998 fi
2999
3000
3001 # Define the identity of the package.
3002 PACKAGE='libisofs'
3003 VERSION='1.5.8'
3004
3005
3006 cat >>confdefs.h <<_ACEOF
3007 #define PACKAGE "$PACKAGE"
3008 _ACEOF
3009
3010
3011 cat >>confdefs.h <<_ACEOF
3012 #define VERSION "$VERSION"
3013 _ACEOF
3014
3015 # Some tools Automake needs.
3016
3017 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3018
3019
3020 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3021
3022
3023 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3024
3025
3026 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3027
3028
3029 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3030
3031 # For better backward compatibility. To be removed once Automake 1.9.x
3032 # dies out for good. For more background, see:
3033 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3034 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3035 mkdir_p='$(MKDIR_P)'
3036
3037 # We need awk for the "check" target. The system "awk" is bad on
3038 # some platforms.
3039 # Always define AMTAR for backward compatibility. Yes, it's still used
3040 # in the wild :-( We should find a proper way to deprecate it ...
3041 AMTAR='$${TAR-tar}'
3042
3043
3044 # We'll loop over all known methods to create a tar archive until one works.
3045 _am_tools='gnutar pax cpio none'
3046
3047 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3048
3049
3050
3051
3052
3053
3054 # POSIX will say in a future version that running "rm -f" with no argument
3055 # is OK; and we want to be able to make that assumption in our Makefile
3056 # recipes. So use an aggressive probe to check that the usage we want is
3057 # actually supported "in the wild" to an acceptable degree.
3058 # See automake bug#10828.
3059 # To make any issue more visible, cause the running configure to be aborted
3060 # by default if the 'rm' program in use doesn't match our expectations; the
3061 # user can still override this though.
3062 if rm -f && rm -fr && rm -rf; then : OK; else
3063 cat >&2 <<'END'
3064 Oops!
3065
3066 Your 'rm' program seems unable to run without file operands specified
3067 on the command line, even when the '-f' option is present. This is contrary
3068 to the behaviour of most rm programs out there, and not conforming with
3069 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3070
3071 Please tell [email protected] about your system, including the value
3072 of your $PATH and any error possibly output before this message. This
3073 can help us improve future automake versions.
3074
3075 END
3076 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3077 echo 'Configuration will proceed anyway, since you have set the' >&2
3078 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3079 echo >&2
3080 else
3081 cat >&2 <<'END'
3082 Aborting the configuration process, to ensure you take notice of the issue.
3083
3084 You can download and install GNU coreutils to get an 'rm' implementation
3085 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3086
3087 If you want to complete the configuration process using your problematic
3088 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3089 to "yes", and re-run configure.
3090
3091 END
3092 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3093 fi
3094 fi
3095
3096
3097
3098 LIBISOFS_MAJOR_VERSION=1
3099 LIBISOFS_MINOR_VERSION=5
3100 LIBISOFS_MICRO_VERSION=8
3101 LIBISOFS_VERSION=$LIBISOFS_MAJOR_VERSION.$LIBISOFS_MINOR_VERSION.$LIBISOFS_MICRO_VERSION
3102
3103
3104
3105
3106
3107
3108 LT_RELEASE=$LIBISOFS_MAJOR_VERSION.$LIBISOFS_MINOR_VERSION
3109 LT_CURRENT=100
3110 LT_AGE=94
3111 LT_REVISION=0
3112 LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
3113
3114
3115
3116
3117
3118
3119
3120
3121 test "$prefix" = "NONE" && prefix=$ac_default_prefix
3122
3123
3124 DEPDIR="${am__leading_dot}deps"
3125
3126 ac_config_commands="$ac_config_commands depfiles"
3127
3128
3129 am_make=${MAKE-make}
3130 cat > confinc << 'END'
3131 am__doit:
3132 @echo this is the am__doit target
3133 .PHONY: am__doit
3134 END
3135 # If we don't find an include directive, just comment out the code.
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3137 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3138 am__include="#"
3139 am__quote=
3140 _am_result=none
3141 # First try GNU make style include.
3142 echo "include confinc" > confmf
3143 # Ignore all kinds of additional output from 'make'.
3144 case `$am_make -s -f confmf 2> /dev/null` in #(
3145 *the\ am__doit\ target*)
3146 am__include=include
3147 am__quote=
3148 _am_result=GNU
3149 ;;
3150 esac
3151 # Now try BSD make style include.
3152 if test "$am__include" = "#"; then
3153 echo '.include "confinc"' > confmf
3154 case `$am_make -s -f confmf 2> /dev/null` in #(
3155 *the\ am__doit\ target*)
3156 am__include=.include
3157 am__quote="\""
3158 _am_result=BSD
3159 ;;
3160 esac
3161 fi
3162
3163
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3165 $as_echo "$_am_result" >&6; }
3166 rm -f confinc confmf
3167
3168 # Check whether --enable-dependency-tracking was given.
3169 if test "${enable_dependency_tracking+set}" = set; then :
3170 enableval=$enable_dependency_tracking;
3171 fi
3172
3173 if test "x$enable_dependency_tracking" != xno; then
3174 am_depcomp="$ac_aux_dir/depcomp"
3175 AMDEPBACKSLASH='\'
3176 am__nodep='_no'
3177 fi
3178 if test "x$enable_dependency_tracking" != xno; then
3179 AMDEP_TRUE=
3180 AMDEP_FALSE='#'
3181 else
3182 AMDEP_TRUE='#'
3183 AMDEP_FALSE=
3184 fi
3185
3186
3187 ac_ext=c
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 if test -n "$ac_tool_prefix"; then
3193 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3194 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_prog_CC+:} false; then :
3198 $as_echo_n "(cached) " >&6
3199 else
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 break 2
3213 fi
3214 done
3215 done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 CC=$ac_cv_prog_CC
3221 if test -n "$CC"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230 fi
3231 if test -z "$ac_cv_prog_CC"; then
3232 ac_ct_CC=$CC
3233 # Extract the first word of "gcc", so it can be a program name with args.
3234 set dummy gcc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$ac_ct_CC"; then
3241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_ac_ct_CC="gcc"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3253 fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3261 if test -n "$ac_ct_CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3263 $as_echo "$ac_ct_CC" >&6; }
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269 if test "x$ac_ct_CC" = x; then
3270 CC=""
3271 else
3272 case $cross_compiling:$ac_tool_warned in
3273 yes:)
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3276 ac_tool_warned=yes ;;
3277 esac
3278 CC=$ac_ct_CC
3279 fi
3280 else
3281 CC="$ac_cv_prog_CC"
3282 fi
3283
3284 if test -z "$CC"; then
3285 if test -n "$ac_tool_prefix"; then
3286 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3287 set dummy ${ac_tool_prefix}cc; ac_word=$2
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if ${ac_cv_prog_CC+:} false; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 if test -n "$CC"; then
3294 ac_cv_prog_CC="$CC" # Let the user override the test.
3295 else
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3303 ac_cv_prog_CC="${ac_tool_prefix}cc"
3304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 break 2
3306 fi
3307 done
3308 done
3309 IFS=$as_save_IFS
3310
3311 fi
3312 fi
3313 CC=$ac_cv_prog_CC
3314 if test -n "$CC"; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3316 $as_echo "$CC" >&6; }
3317 else
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319 $as_echo "no" >&6; }
3320 fi
3321
3322
3323 fi
3324 fi
3325 if test -z "$CC"; then
3326 # Extract the first word of "cc", so it can be a program name with args.
3327 set dummy cc; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_prog_CC+:} false; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
3335 else
3336 ac_prog_rejected=no
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3345 ac_prog_rejected=yes
3346 continue
3347 fi
3348 ac_cv_prog_CC="cc"
3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352 done
3353 done
3354 IFS=$as_save_IFS
3355
3356 if test $ac_prog_rejected = yes; then
3357 # We found a bogon in the path, so make sure we never use it.
3358 set dummy $ac_cv_prog_CC
3359 shift
3360 if test $# != 0; then
3361 # We chose a different compiler from the bogus one.
3362 # However, it has the same basename, so the bogon will be chosen
3363 # first if we set CC to just the basename; use the full file name.
3364 shift
3365 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3366 fi
3367 fi
3368 fi
3369 fi
3370 CC=$ac_cv_prog_CC
3371 if test -n "$CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3374 else
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 fi
3378
3379
3380 fi
3381 if test -z "$CC"; then
3382 if test -n "$ac_tool_prefix"; then
3383 for ac_prog in cl.exe
3384 do
3385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_prog_CC+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398 IFS=$as_save_IFS
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 break 2
3405 fi
3406 done
3407 done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 CC=$ac_cv_prog_CC
3413 if test -n "$CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415 $as_echo "$CC" >&6; }
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421
3422 test -n "$CC" && break
3423 done
3424 fi
3425 if test -z "$CC"; then
3426 ac_ct_CC=$CC
3427 for ac_prog in cl.exe
3428 do
3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
3430 set dummy $ac_prog; ac_word=$2
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3434 $as_echo_n "(cached) " >&6
3435 else
3436 if test -n "$ac_ct_CC"; then
3437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3438 else
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3441 do
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446 ac_cv_prog_ac_ct_CC="$ac_prog"
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 break 2
3449 fi
3450 done
3451 done
3452 IFS=$as_save_IFS
3453
3454 fi
3455 fi
3456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3457 if test -n "$ac_ct_CC"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3459 $as_echo "$ac_ct_CC" >&6; }
3460 else
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 $as_echo "no" >&6; }
3463 fi
3464
3465
3466 test -n "$ac_ct_CC" && break
3467 done
3468
3469 if test "x$ac_ct_CC" = x; then
3470 CC=""
3471 else
3472 case $cross_compiling:$ac_tool_warned in
3473 yes:)
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3476 ac_tool_warned=yes ;;
3477 esac
3478 CC=$ac_ct_CC
3479 fi
3480 fi
3481
3482 fi
3483
3484
3485 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error $? "no acceptable C compiler found in \$PATH
3488 See \`config.log' for more details" "$LINENO" 5; }
3489
3490 # Provide some information about the compiler.
3491 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3492 set X $ac_compile
3493 ac_compiler=$2
3494 for ac_option in --version -v -V -qversion; do
3495 { { ac_try="$ac_compiler $ac_option >&5"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3503 ac_status=$?
3504 if test -s conftest.err; then
3505 sed '10a\
3506 ... rest of stderr output deleted ...
3507 10q' conftest.err >conftest.er1
3508 cat conftest.er1 >&5
3509 fi
3510 rm -f conftest.er1 conftest.err
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }
3513 done
3514
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517
3518 int
3519 main ()
3520 {
3521
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 ac_clean_files_save=$ac_clean_files
3527 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3528 # Try to create an executable without -o first, disregard a.out.
3529 # It will help us diagnose broken compilers, and finding out an intuition
3530 # of exeext.
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3532 $as_echo_n "checking whether the C compiler works... " >&6; }
3533 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3534
3535 # The possible output files:
3536 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3537
3538 ac_rmfiles=
3539 for ac_file in $ac_files
3540 do
3541 case $ac_file in
3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3543 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3544 esac
3545 done
3546 rm -f $ac_rmfiles
3547
3548 if { { ac_try="$ac_link_default"
3549 case "(($ac_try" in
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3552 esac
3553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554 $as_echo "$ac_try_echo"; } >&5
3555 (eval "$ac_link_default") 2>&5
3556 ac_status=$?
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }; then :
3559 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3560 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3561 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3562 # so that the user can short-circuit this test for compilers unknown to
3563 # Autoconf.
3564 for ac_file in $ac_files ''
3565 do
3566 test -f "$ac_file" || continue
3567 case $ac_file in
3568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3569 ;;
3570 [ab].out )
3571 # We found the default executable, but exeext='' is most
3572 # certainly right.
3573 break;;
3574 *.* )
3575 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3576 then :; else
3577 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3578 fi
3579 # We set ac_cv_exeext here because the later test for it is not
3580 # safe: cross compilers may not add the suffix if given an `-o'
3581 # argument, so we may need to know it at that point already.
3582 # Even if this section looks crufty: it has the advantage of
3583 # actually working.
3584 break;;
3585 * )
3586 break;;
3587 esac
3588 done
3589 test "$ac_cv_exeext" = no && ac_cv_exeext=
3590
3591 else
3592 ac_file=''
3593 fi
3594 if test -z "$ac_file"; then :
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3597 $as_echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3599
3600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3602 as_fn_error 77 "C compiler cannot create executables
3603 See \`config.log' for more details" "$LINENO" 5; }
3604 else
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3606 $as_echo "yes" >&6; }
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3609 $as_echo_n "checking for C compiler default output file name... " >&6; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3611 $as_echo "$ac_file" >&6; }
3612 ac_exeext=$ac_cv_exeext
3613
3614 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3615 ac_clean_files=$ac_clean_files_save
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3617 $as_echo_n "checking for suffix of executables... " >&6; }
3618 if { { ac_try="$ac_link"
3619 case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624 $as_echo "$ac_try_echo"; } >&5
3625 (eval "$ac_link") 2>&5
3626 ac_status=$?
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }; then :
3629 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3630 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3631 # work properly (i.e., refer to `conftest.exe'), while it won't with
3632 # `rm'.
3633 for ac_file in conftest.exe conftest conftest.*; do
3634 test -f "$ac_file" || continue
3635 case $ac_file in
3636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3637 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3638 break;;
3639 * ) break;;
3640 esac
3641 done
3642 else
3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3646 See \`config.log' for more details" "$LINENO" 5; }
3647 fi
3648 rm -f conftest conftest$ac_cv_exeext
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3650 $as_echo "$ac_cv_exeext" >&6; }
3651
3652 rm -f conftest.$ac_ext
3653 EXEEXT=$ac_cv_exeext
3654 ac_exeext=$EXEEXT
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3657 #include <stdio.h>
3658 int
3659 main ()
3660 {
3661 FILE *f = fopen ("conftest.out", "w");
3662 return ferror (f) || fclose (f) != 0;
3663
3664 ;
3665 return 0;
3666 }
3667 _ACEOF
3668 ac_clean_files="$ac_clean_files conftest.out"
3669 # Check that the compiler produces executables we can run. If not, either
3670 # the compiler is broken, or we cross compile.
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3672 $as_echo_n "checking whether we are cross compiling... " >&6; }
3673 if test "$cross_compiling" != yes; then
3674 { { ac_try="$ac_link"
3675 case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678 esac
3679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3680 $as_echo "$ac_try_echo"; } >&5
3681 (eval "$ac_link") 2>&5
3682 ac_status=$?
3683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3684 test $ac_status = 0; }
3685 if { ac_try='./conftest$ac_cv_exeext'
3686 { { case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 $as_echo "$ac_try_echo"; } >&5
3692 (eval "$ac_try") 2>&5
3693 ac_status=$?
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }; }; then
3696 cross_compiling=no
3697 else
3698 if test "$cross_compiling" = maybe; then
3699 cross_compiling=yes
3700 else
3701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3703 as_fn_error $? "cannot run C compiled programs.
3704 If you meant to cross compile, use \`--host'.
3705 See \`config.log' for more details" "$LINENO" 5; }
3706 fi
3707 fi
3708 fi
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3710 $as_echo "$cross_compiling" >&6; }
3711
3712 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3713 ac_clean_files=$ac_clean_files_save
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3715 $as_echo_n "checking for suffix of object files... " >&6; }
3716 if ${ac_cv_objext+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721
3722 int
3723 main ()
3724 {
3725
3726 ;
3727 return 0;
3728 }
3729 _ACEOF
3730 rm -f conftest.o conftest.obj
3731 if { { ac_try="$ac_compile"
3732 case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735 esac
3736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737 $as_echo "$ac_try_echo"; } >&5
3738 (eval "$ac_compile") 2>&5
3739 ac_status=$?
3740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741 test $ac_status = 0; }; then :
3742 for ac_file in conftest.o conftest.obj conftest.*; do
3743 test -f "$ac_file" || continue;
3744 case $ac_file in
3745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3746 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3747 break;;
3748 esac
3749 done
3750 else
3751 $as_echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3753
3754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3756 as_fn_error $? "cannot compute suffix of object files: cannot compile
3757 See \`config.log' for more details" "$LINENO" 5; }
3758 fi
3759 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3762 $as_echo "$ac_cv_objext" >&6; }
3763 OBJEXT=$ac_cv_objext
3764 ac_objext=$OBJEXT
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3766 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3767 if ${ac_cv_c_compiler_gnu+:} false; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3772
3773 int
3774 main ()
3775 {
3776 #ifndef __GNUC__
3777 choke me
3778 #endif
3779
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_compiler_gnu=yes
3786 else
3787 ac_compiler_gnu=no
3788 fi
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3791
3792 fi
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3794 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3795 if test $ac_compiler_gnu = yes; then
3796 GCC=yes
3797 else
3798 GCC=
3799 fi
3800 ac_test_CFLAGS=${CFLAGS+set}
3801 ac_save_CFLAGS=$CFLAGS
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3803 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3804 if ${ac_cv_prog_cc_g+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 ac_save_c_werror_flag=$ac_c_werror_flag
3808 ac_c_werror_flag=yes
3809 ac_cv_prog_cc_g=no
3810 CFLAGS="-g"
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3813
3814 int
3815 main ()
3816 {
3817
3818 ;
3819 return 0;
3820 }
3821 _ACEOF
3822 if ac_fn_c_try_compile "$LINENO"; then :
3823 ac_cv_prog_cc_g=yes
3824 else
3825 CFLAGS=""
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3828
3829 int
3830 main ()
3831 {
3832
3833 ;
3834 return 0;
3835 }
3836 _ACEOF
3837 if ac_fn_c_try_compile "$LINENO"; then :
3838
3839 else
3840 ac_c_werror_flag=$ac_save_c_werror_flag
3841 CFLAGS="-g"
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3844
3845 int
3846 main ()
3847 {
3848
3849 ;
3850 return 0;
3851 }
3852 _ACEOF
3853 if ac_fn_c_try_compile "$LINENO"; then :
3854 ac_cv_prog_cc_g=yes
3855 fi
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 fi
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 fi
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 ac_c_werror_flag=$ac_save_c_werror_flag
3862 fi
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3864 $as_echo "$ac_cv_prog_cc_g" >&6; }
3865 if test "$ac_test_CFLAGS" = set; then
3866 CFLAGS=$ac_save_CFLAGS
3867 elif test $ac_cv_prog_cc_g = yes; then
3868 if test "$GCC" = yes; then
3869 CFLAGS="-g -O2"
3870 else
3871 CFLAGS="-g"
3872 fi
3873 else
3874 if test "$GCC" = yes; then
3875 CFLAGS="-O2"
3876 else
3877 CFLAGS=
3878 fi
3879 fi
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3881 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3882 if ${ac_cv_prog_cc_c89+:} false; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 ac_cv_prog_cc_c89=no
3886 ac_save_CC=$CC
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3889 #include <stdarg.h>
3890 #include <stdio.h>
3891 struct stat;
3892 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3893 struct buf { int x; };
3894 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3895 static char *e (p, i)
3896 char **p;
3897 int i;
3898 {
3899 return p[i];
3900 }
3901 static char *f (char * (*g) (char **, int), char **p, ...)
3902 {
3903 char *s;
3904 va_list v;
3905 va_start (v,p);
3906 s = g (p, va_arg (v,int));
3907 va_end (v);
3908 return s;
3909 }
3910
3911 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3912 function prototypes and stuff, but not '\xHH' hex character constants.
3913 These don't provoke an error unfortunately, instead are silently treated
3914 as 'x'. The following induces an error, until -std is added to get
3915 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3916 array size at least. It's necessary to write '\x00'==0 to get something
3917 that's true only with -std. */
3918 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3919
3920 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3921 inside strings and character constants. */
3922 #define FOO(x) 'x'
3923 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3924
3925 int test (int i, double x);
3926 struct s1 {int (*f) (int a);};
3927 struct s2 {int (*f) (double a);};
3928 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3929 int argc;
3930 char **argv;
3931 int
3932 main ()
3933 {
3934 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3935 ;
3936 return 0;
3937 }
3938 _ACEOF
3939 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3940 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3941 do
3942 CC="$ac_save_CC $ac_arg"
3943 if ac_fn_c_try_compile "$LINENO"; then :
3944 ac_cv_prog_cc_c89=$ac_arg
3945 fi
3946 rm -f core conftest.err conftest.$ac_objext
3947 test "x$ac_cv_prog_cc_c89" != "xno" && break
3948 done
3949 rm -f conftest.$ac_ext
3950 CC=$ac_save_CC
3951
3952 fi
3953 # AC_CACHE_VAL
3954 case "x$ac_cv_prog_cc_c89" in
3955 x)
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3957 $as_echo "none needed" >&6; } ;;
3958 xno)
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3960 $as_echo "unsupported" >&6; } ;;
3961 *)
3962 CC="$CC $ac_cv_prog_cc_c89"
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3964 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3965 esac
3966 if test "x$ac_cv_prog_cc_c89" != xno; then :
3967
3968 fi
3969
3970 ac_ext=c
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975
3976 ac_ext=c
3977 ac_cpp='$CPP $CPPFLAGS'
3978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3982 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3983 if ${am_cv_prog_cc_c_o+:} false; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988
3989 int
3990 main ()
3991 {
3992
3993 ;
3994 return 0;
3995 }
3996 _ACEOF
3997 # Make sure it works both with $CC and with simple cc.
3998 # Following AC_PROG_CC_C_O, we do the test twice because some
3999 # compilers refuse to overwrite an existing .o file with -o,
4000 # though they will create one.
4001 am_cv_prog_cc_c_o=yes
4002 for am_i in 1 2; do
4003 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4004 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } \
4008 && test -f conftest2.$ac_objext; then
4009 : OK
4010 else
4011 am_cv_prog_cc_c_o=no
4012 break
4013 fi
4014 done
4015 rm -f core conftest*
4016 unset am_i
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4019 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4020 if test "$am_cv_prog_cc_c_o" != yes; then
4021 # Losing compiler, so override with the script.
4022 # FIXME: It is wrong to rewrite CC.
4023 # But if we don't then we get into trouble of one sort or another.
4024 # A longer-term fix would be to have automake use am__CC in this case,
4025 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4026 CC="$am_aux_dir/compile $CC"
4027 fi
4028 ac_ext=c
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033
4034
4035 depcc="$CC" am_compiler_list=
4036
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4038 $as_echo_n "checking dependency style of $depcc... " >&6; }
4039 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4043 # We make a subdir and do the tests there. Otherwise we can end up
4044 # making bogus files that we don't know about and never remove. For
4045 # instance it was reported that on HP-UX the gcc test will end up
4046 # making a dummy file named 'D' -- because '-MD' means "put the output
4047 # in D".
4048 rm -rf conftest.dir
4049 mkdir conftest.dir
4050 # Copy depcomp to subdir because otherwise we won't find it if we're
4051 # using a relative directory.
4052 cp "$am_depcomp" conftest.dir
4053 cd conftest.dir
4054 # We will build objects and dependencies in a subdirectory because
4055 # it helps to detect inapplicable dependency modes. For instance
4056 # both Tru64's cc and ICC support -MD to output dependencies as a
4057 # side effect of compilation, but ICC will put the dependencies in
4058 # the current directory while Tru64 will put them in the object
4059 # directory.
4060 mkdir sub
4061
4062 am_cv_CC_dependencies_compiler_type=none
4063 if test "$am_compiler_list" = ""; then
4064 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4065 fi
4066 am__universal=false
4067 case " $depcc " in #(
4068 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4069 esac
4070
4071 for depmode in $am_compiler_list; do
4072 # Setup a source with many dependencies, because some compilers
4073 # like to wrap large dependency lists on column 80 (with \), and
4074 # we should not choose a depcomp mode which is confused by this.
4075 #
4076 # We need to recreate these files for each test, as the compiler may
4077 # overwrite some of them when testing with obscure command lines.
4078 # This happens at least with the AIX C compiler.
4079 : > sub/conftest.c
4080 for i in 1 2 3 4 5 6; do
4081 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4082 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4083 # Solaris 10 /bin/sh.
4084 echo '/* dummy */' > sub/conftst$i.h
4085 done
4086 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4087
4088 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4089 # mode. It turns out that the SunPro C++ compiler does not properly
4090 # handle '-M -o', and we need to detect this. Also, some Intel
4091 # versions had trouble with output in subdirs.
4092 am__obj=sub/conftest.${OBJEXT-o}
4093 am__minus_obj="-o $am__obj"
4094 case $depmode in
4095 gcc)
4096 # This depmode causes a compiler race in universal mode.
4097 test "$am__universal" = false || continue
4098 ;;
4099 nosideeffect)
4100 # After this tag, mechanisms are not by side-effect, so they'll
4101 # only be used when explicitly requested.
4102 if test "x$enable_dependency_tracking" = xyes; then
4103 continue
4104 else
4105 break
4106 fi
4107 ;;
4108 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4109 # This compiler won't grok '-c -o', but also, the minuso test has
4110 # not run yet. These depmodes are late enough in the game, and
4111 # so weak that their functioning should not be impacted.
4112 am__obj=conftest.${OBJEXT-o}
4113 am__minus_obj=
4114 ;;
4115 none) break ;;
4116 esac
4117 if depmode=$depmode \
4118 source=sub/conftest.c object=$am__obj \
4119 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4120 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4121 >/dev/null 2>conftest.err &&
4122 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4123 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4124 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4125 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4126 # icc doesn't choke on unknown options, it will just issue warnings
4127 # or remarks (even with -Werror). So we grep stderr for any message
4128 # that says an option was ignored or not supported.
4129 # When given -MP, icc 7.0 and 7.1 complain thusly:
4130 # icc: Command line warning: ignoring option '-M'; no argument required
4131 # The diagnosis changed in icc 8.0:
4132 # icc: Command line remark: option '-MP' not supported
4133 if (grep 'ignoring option' conftest.err ||
4134 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4135 am_cv_CC_dependencies_compiler_type=$depmode
4136 break
4137 fi
4138 fi
4139 done
4140
4141 cd ..
4142 rm -rf conftest.dir
4143 else
4144 am_cv_CC_dependencies_compiler_type=none
4145 fi
4146
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4149 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4150 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4151
4152 if
4153 test "x$enable_dependency_tracking" != xno \
4154 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4155 am__fastdepCC_TRUE=
4156 am__fastdepCC_FALSE='#'
4157 else
4158 am__fastdepCC_TRUE='#'
4159 am__fastdepCC_FALSE=
4160 fi
4161
4162
4163
4164
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4166 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4167 if ${ac_cv_c_const+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172
4173 int
4174 main ()
4175 {
4176
4177 #ifndef __cplusplus
4178 /* Ultrix mips cc rejects this sort of thing. */
4179 typedef int charset[2];
4180 const charset cs = { 0, 0 };
4181 /* SunOS 4.1.1 cc rejects this. */
4182 char const *const *pcpcc;
4183 char **ppc;
4184 /* NEC SVR4.0.2 mips cc rejects this. */
4185 struct point {int x, y;};
4186 static struct point const zero = {0,0};
4187 /* AIX XL C 1.02.0.0 rejects this.
4188 It does not let you subtract one const X* pointer from another in
4189 an arm of an if-expression whose if-part is not a constant
4190 expression */
4191 const char *g = "string";
4192 pcpcc = &g + (g ? g-g : 0);
4193 /* HPUX 7.0 cc rejects these. */
4194 ++pcpcc;
4195 ppc = (char**) pcpcc;
4196 pcpcc = (char const *const *) ppc;
4197 { /* SCO 3.2v4 cc rejects this sort of thing. */
4198 char tx;
4199 char *t = &tx;
4200 char const *s = 0 ? (char *) 0 : (char const *) 0;
4201
4202 *t++ = 0;
4203 if (s) return 0;
4204 }
4205 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4206 int x[] = {25, 17};
4207 const int *foo = &x[0];
4208 ++foo;
4209 }
4210 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4211 typedef const int *iptr;
4212 iptr p = 0;
4213 ++p;
4214 }
4215 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4216 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4217 struct s { int j; const int *ap[3]; } bx;
4218 struct s *b = &bx; b->j = 5;
4219 }
4220 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4221 const int foo = 10;
4222 if (!foo) return 0;
4223 }
4224 return !cs[0] && !zero.x;
4225 #endif
4226
4227 ;
4228 return 0;
4229 }
4230 _ACEOF
4231 if ac_fn_c_try_compile "$LINENO"; then :
4232 ac_cv_c_const=yes
4233 else
4234 ac_cv_c_const=no
4235 fi
4236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4239 $as_echo "$ac_cv_c_const" >&6; }
4240 if test $ac_cv_c_const = no; then
4241
4242 $as_echo "#define const /**/" >>confdefs.h
4243
4244 fi
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4247 $as_echo_n "checking for inline... " >&6; }
4248 if ${ac_cv_c_inline+:} false; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 ac_cv_c_inline=no
4252 for ac_kw in inline __inline__ __inline; do
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255 #ifndef __cplusplus
4256 typedef int foo_t;
4257 static $ac_kw foo_t static_foo () {return 0; }
4258 $ac_kw foo_t foo () {return 0; }
4259 #endif
4260
4261 _ACEOF
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263 ac_cv_c_inline=$ac_kw
4264 fi
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266 test "$ac_cv_c_inline" != no && break
4267 done
4268
4269 fi
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4271 $as_echo "$ac_cv_c_inline" >&6; }
4272
4273 case $ac_cv_c_inline in
4274 inline | yes) ;;
4275 *)
4276 case $ac_cv_c_inline in
4277 no) ac_val=;;
4278 *) ac_val=$ac_cv_c_inline;;
4279 esac
4280 cat >>confdefs.h <<_ACEOF
4281 #ifndef __cplusplus
4282 #define inline $ac_val
4283 #endif
4284 _ACEOF
4285 ;;
4286 esac
4287
4288
4289 # Check whether --enable-largefile was given.
4290 if test "${enable_largefile+set}" = set; then :
4291 enableval=$enable_largefile;
4292 fi
4293
4294 if test "$enable_largefile" != no; then
4295
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4297 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4298 if ${ac_cv_sys_largefile_CC+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 ac_cv_sys_largefile_CC=no
4302 if test "$GCC" != yes; then
4303 ac_save_CC=$CC
4304 while :; do
4305 # IRIX 6.2 and later do not support large files by default,
4306 # so use the C compiler's -n32 option if that helps.
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 #include <sys/types.h>
4310 /* Check that off_t can represent 2**63 - 1 correctly.
4311 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4312 since some C++ compilers masquerading as C compilers
4313 incorrectly reject 9223372036854775807. */
4314 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4315 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4316 && LARGE_OFF_T % 2147483647 == 1)
4317 ? 1 : -1];
4318 int
4319 main ()
4320 {
4321
4322 ;
4323 return 0;
4324 }
4325 _ACEOF
4326 if ac_fn_c_try_compile "$LINENO"; then :
4327 break
4328 fi
4329 rm -f core conftest.err conftest.$ac_objext
4330 CC="$CC -n32"
4331 if ac_fn_c_try_compile "$LINENO"; then :
4332 ac_cv_sys_largefile_CC=' -n32'; break
4333 fi
4334 rm -f core conftest.err conftest.$ac_objext
4335 break
4336 done
4337 CC=$ac_save_CC
4338 rm -f conftest.$ac_ext
4339 fi
4340 fi
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4342 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4343 if test "$ac_cv_sys_largefile_CC" != no; then
4344 CC=$CC$ac_cv_sys_largefile_CC
4345 fi
4346
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4348 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4349 if ${ac_cv_sys_file_offset_bits+:} false; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 while :; do
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355 #include <sys/types.h>
4356 /* Check that off_t can represent 2**63 - 1 correctly.
4357 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4358 since some C++ compilers masquerading as C compilers
4359 incorrectly reject 9223372036854775807. */
4360 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4362 && LARGE_OFF_T % 2147483647 == 1)
4363 ? 1 : -1];
4364 int
4365 main ()
4366 {
4367
4368 ;
4369 return 0;
4370 }
4371 _ACEOF
4372 if ac_fn_c_try_compile "$LINENO"; then :
4373 ac_cv_sys_file_offset_bits=no; break
4374 fi
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378 #define _FILE_OFFSET_BITS 64
4379 #include <sys/types.h>
4380 /* Check that off_t can represent 2**63 - 1 correctly.
4381 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4382 since some C++ compilers masquerading as C compilers
4383 incorrectly reject 9223372036854775807. */
4384 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4385 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4386 && LARGE_OFF_T % 2147483647 == 1)
4387 ? 1 : -1];
4388 int
4389 main ()
4390 {
4391
4392 ;
4393 return 0;
4394 }
4395 _ACEOF
4396 if ac_fn_c_try_compile "$LINENO"; then :
4397 ac_cv_sys_file_offset_bits=64; break
4398 fi
4399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400 ac_cv_sys_file_offset_bits=unknown
4401 break
4402 done
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4405 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4406 case $ac_cv_sys_file_offset_bits in #(
4407 no | unknown) ;;
4408 *)
4409 cat >>confdefs.h <<_ACEOF
4410 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4411 _ACEOF
4412 ;;
4413 esac
4414 rm -rf conftest*
4415 if test $ac_cv_sys_file_offset_bits = unknown; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4417 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4418 if ${ac_cv_sys_large_files+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 while :; do
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4424 #include <sys/types.h>
4425 /* Check that off_t can represent 2**63 - 1 correctly.
4426 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4427 since some C++ compilers masquerading as C compilers
4428 incorrectly reject 9223372036854775807. */
4429 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4430 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4431 && LARGE_OFF_T % 2147483647 == 1)
4432 ? 1 : -1];
4433 int
4434 main ()
4435 {
4436
4437 ;
4438 return 0;
4439 }
4440 _ACEOF
4441 if ac_fn_c_try_compile "$LINENO"; then :
4442 ac_cv_sys_large_files=no; break
4443 fi
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 #define _LARGE_FILES 1
4448 #include <sys/types.h>
4449 /* Check that off_t can represent 2**63 - 1 correctly.
4450 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4451 since some C++ compilers masquerading as C compilers
4452 incorrectly reject 9223372036854775807. */
4453 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4454 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4455 && LARGE_OFF_T % 2147483647 == 1)
4456 ? 1 : -1];
4457 int
4458 main ()
4459 {
4460
4461 ;
4462 return 0;
4463 }
4464 _ACEOF
4465 if ac_fn_c_try_compile "$LINENO"; then :
4466 ac_cv_sys_large_files=1; break
4467 fi
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 ac_cv_sys_large_files=unknown
4470 break
4471 done
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4474 $as_echo "$ac_cv_sys_large_files" >&6; }
4475 case $ac_cv_sys_large_files in #(
4476 no | unknown) ;;
4477 *)
4478 cat >>confdefs.h <<_ACEOF
4479 #define _LARGE_FILES $ac_cv_sys_large_files
4480 _ACEOF
4481 ;;
4482 esac
4483 rm -rf conftest*
4484 fi
4485
4486
4487 fi
4488
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4490 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4491 if ${ac_cv_sys_largefile_source+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 while :; do
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #include <sys/types.h> /* for off_t */
4498 #include <stdio.h>
4499 int
4500 main ()
4501 {
4502 int (*fp) (FILE *, off_t, int) = fseeko;
4503 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4504 ;
4505 return 0;
4506 }
4507 _ACEOF
4508 if ac_fn_c_try_link "$LINENO"; then :
4509 ac_cv_sys_largefile_source=no; break
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext \
4512 conftest$ac_exeext conftest.$ac_ext
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515 #define _LARGEFILE_SOURCE 1
4516 #include <sys/types.h> /* for off_t */
4517 #include <stdio.h>
4518 int
4519 main ()
4520 {
4521 int (*fp) (FILE *, off_t, int) = fseeko;
4522 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4523 ;
4524 return 0;
4525 }
4526 _ACEOF
4527 if ac_fn_c_try_link "$LINENO"; then :
4528 ac_cv_sys_largefile_source=1; break
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext \
4531 conftest$ac_exeext conftest.$ac_ext
4532 ac_cv_sys_largefile_source=unknown
4533 break
4534 done
4535 fi
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4537 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4538 case $ac_cv_sys_largefile_source in #(
4539 no | unknown) ;;
4540 *)
4541 cat >>confdefs.h <<_ACEOF
4542 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4543 _ACEOF
4544 ;;
4545 esac
4546 rm -rf conftest*
4547
4548 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4549 # in glibc 2.1.3, but that breaks too many other things.
4550 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4551 if test $ac_cv_sys_largefile_source != unknown; then
4552
4553 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4554
4555 fi
4556
4557 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
4558 if test "x$ac_cv_func_fseeko" = xyes; then :
4559
4560 fi
4561
4562 if test ! $ac_cv_func_fseeko; then
4563 as_fn_error $? "Libisofs requires largefile support." "$LINENO" 5
4564 fi
4565
4566
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv() in separate -liconv " >&5
4569 $as_echo_n "checking for iconv() in separate -liconv ... " >&6; }
4570 libburnia_liconv="no"
4571 libburnia_save_LIBS="$LIBS"
4572 LIBS="$LIBS -liconv"
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <stdlib.h>
4576 #include <iconv.h>
4577 int
4578 main ()
4579 {
4580 iconv_t cd = iconv_open("","");
4581 iconv(cd,NULL,NULL,NULL,NULL);
4582 iconv_close(cd);
4583 ;
4584 return 0;
4585 }
4586 _ACEOF
4587 if ac_fn_c_try_link "$LINENO"; then :
4588 libburnia_liconv="yes"
4589 else
4590 LIBS="$libburnia_save_LIBS"
4591
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext \
4594 conftest$ac_exeext conftest.$ac_ext
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libburnia_liconv" >&5
4596 $as_echo "$libburnia_liconv" >&6; }
4597
4598 if test x"$libburnia_save_LIBS" = x"$LIBS"
4599 then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -liconv" >&5
4601 $as_echo_n "checking for libiconv in -liconv... " >&6; }
4602 if ${ac_cv_lib_iconv_libiconv+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 ac_check_lib_save_LIBS=$LIBS
4606 LIBS="-liconv $LIBS"
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609
4610 /* Override any GCC internal prototype to avoid an error.
4611 Use char because int might match the return type of a GCC
4612 builtin and then its argument prototype would still apply. */
4613 #ifdef __cplusplus
4614 extern "C"
4615 #endif
4616 char libiconv ();
4617 int
4618 main ()
4619 {
4620 return libiconv ();
4621 ;
4622 return 0;
4623 }
4624 _ACEOF
4625 if ac_fn_c_try_link "$LINENO"; then :
4626 ac_cv_lib_iconv_libiconv=yes
4627 else
4628 ac_cv_lib_iconv_libiconv=no
4629 fi
4630 rm -f core conftest.err conftest.$ac_objext \
4631 conftest$ac_exeext conftest.$ac_ext
4632 LIBS=$ac_check_lib_save_LIBS
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv" >&5
4635 $as_echo "$ac_cv_lib_iconv_libiconv" >&6; }
4636 if test "x$ac_cv_lib_iconv_libiconv" = xyes; then :
4637 cat >>confdefs.h <<_ACEOF
4638 #define HAVE_LIBICONV 1
4639 _ACEOF
4640
4641 LIBS="-liconv $LIBS"
4642
4643 fi
4644
4645 fi
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const qualifier with iconv() " >&5
4648 $as_echo_n "checking for const qualifier with iconv() ... " >&6; }
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4651
4652 #include <stdlib.h>
4653 #include <iconv.h>
4654 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4655
4656 int
4657 main ()
4658 {
4659
4660 ;
4661 return 0;
4662 }
4663 _ACEOF
4664 if ac_fn_c_try_compile "$LINENO"; then :
4665 libburnia_iconv_const=""
4666 else
4667 libburnia_iconv_const="const"
4668
4669 fi
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 cat >>confdefs.h <<_ACEOF
4672 #define ICONV_CONST $libburnia_iconv_const
4673 _ACEOF
4674
4675 test -z "$libburnia_iconv_const" && libburnia_iconv_const="no"
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libburnia_iconv_const" >&5
4677 $as_echo "$libburnia_iconv_const" >&6; }
4678
4679
4680
4681 if test x$LIBISOFS_ASSUME_ICONV = x
4682 then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv() to be accessible now " >&5
4684 $as_echo_n "checking for iconv() to be accessible now ... " >&6; }
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687
4688 #include <stdlib.h>
4689 #include <wchar.h>
4690 #include <string.h>
4691 #include <errno.h>
4692 #include <ctype.h>
4693 #include <stdio.h>
4694 #include <limits.h>
4695 #include <iconv.h>
4696 #include <locale.h>
4697 #include <langinfo.h>
4698 #include <unistd.h>
4699 int
4700 main ()
4701 {
4702 iconv_t cd = iconv_open("","");
4703 iconv(cd,NULL,NULL,NULL,NULL);
4704 iconv_close(cd);
4705
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 if ac_fn_c_try_link "$LINENO"; then :
4711 iconv_test="yes"
4712 else
4713 iconv_test="no"
4714
4715 fi
4716 rm -f core conftest.err conftest.$ac_objext \
4717 conftest$ac_exeext conftest.$ac_ext
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_test" >&5
4719 $as_echo "$iconv_test" >&6; }
4720 if test x$iconv_test = xno
4721 then
4722 echo >&2
4723 echo "Cannot get function iconv() to work. Configuration aborted." >&2
4724 echo "Check whether your system needs a separate libiconv installed." >&2
4725 echo "If it is installed but not found, try something like" >&2
4726 echo ' export LDFLAGS="$LDFLAGS -L/usr/local/lib"' >&2
4727 echo ' export CPPFLAGS="$CPPFLAGS -I/usr/local/include"' >&2
4728 echo ' export LIBS="$LIBS -liconv"' >&2
4729 echo "You may override this test by exporting variable" >&2
4730 echo " LIBISOFS_ASSUME_ICONV=yes" >&2
4731 echo >&2
4732 (exit 1); exit 1;
4733 fi
4734 fi
4735
4736
4737
4738 case `pwd` in
4739 *\ * | *\ *)
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4741 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4742 esac
4743
4744
4745
4746 macro_version='2.4.2'
4747 macro_revision='1.3337'
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761 ltmain="$ac_aux_dir/ltmain.sh"
4762
4763 # Backslashify metacharacters that are still active within
4764 # double-quoted strings.
4765 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4766
4767 # Same as above, but do not quote variable references.
4768 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4769
4770 # Sed substitution to delay expansion of an escaped shell variable in a
4771 # double_quote_subst'ed string.
4772 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4773
4774 # Sed substitution to delay expansion of an escaped single quote.
4775 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4776
4777 # Sed substitution to avoid accidental globbing in evaled expressions
4778 no_glob_subst='s/\*/\\\*/g'
4779
4780 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4781 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4782 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4785 $as_echo_n "checking how to print strings... " >&6; }
4786 # Test print first, because it will be a builtin if present.
4787 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4788 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4789 ECHO='print -r --'
4790 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4791 ECHO='printf %s\n'
4792 else
4793 # Use this function as a fallback that always works.
4794 func_fallback_echo ()
4795 {
4796 eval 'cat <<_LTECHO_EOF
4797 $1
4798 _LTECHO_EOF'
4799 }
4800 ECHO='func_fallback_echo'
4801 fi
4802
4803 # func_echo_all arg...
4804 # Invoke $ECHO with all args, space-separated.
4805 func_echo_all ()
4806 {
4807 $ECHO ""
4808 }
4809
4810 case "$ECHO" in
4811 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4812 $as_echo "printf" >&6; } ;;
4813 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4814 $as_echo "print -r" >&6; } ;;
4815 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4816 $as_echo "cat" >&6; } ;;
4817 esac
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4833 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4834 if ${ac_cv_path_SED+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4838 for ac_i in 1 2 3 4 5 6 7; do
4839 ac_script="$ac_script$as_nl$ac_script"
4840 done
4841 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4842 { ac_script=; unset ac_script;}
4843 if test -z "$SED"; then
4844 ac_path_SED_found=false
4845 # Loop through the user's path and test for each of PROGNAME-LIST
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4848 do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_prog in sed gsed; do
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4854 as_fn_executable_p "$ac_path_SED" || continue
4855 # Check for GNU ac_path_SED and select it if it is found.
4856 # Check for GNU $ac_path_SED
4857 case `"$ac_path_SED" --version 2>&1` in
4858 *GNU*)
4859 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4860 *)
4861 ac_count=0
4862 $as_echo_n 0123456789 >"conftest.in"
4863 while :
4864 do
4865 cat "conftest.in" "conftest.in" >"conftest.tmp"
4866 mv "conftest.tmp" "conftest.in"
4867 cp "conftest.in" "conftest.nl"
4868 $as_echo '' >> "conftest.nl"
4869 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4871 as_fn_arith $ac_count + 1 && ac_count=$as_val
4872 if test $ac_count -gt ${ac_path_SED_max-0}; then
4873 # Best one so far, save it but keep looking for a better one
4874 ac_cv_path_SED="$ac_path_SED"
4875 ac_path_SED_max=$ac_count
4876 fi
4877 # 10*(2^10) chars as input seems more than enough
4878 test $ac_count -gt 10 && break
4879 done
4880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4881 esac
4882
4883 $ac_path_SED_found && break 3
4884 done
4885 done
4886 done
4887 IFS=$as_save_IFS
4888 if test -z "$ac_cv_path_SED"; then
4889 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4890 fi
4891 else
4892 ac_cv_path_SED=$SED
4893 fi
4894
4895 fi
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4897 $as_echo "$ac_cv_path_SED" >&6; }
4898 SED="$ac_cv_path_SED"
4899 rm -f conftest.sed
4900
4901 test -z "$SED" && SED=sed
4902 Xsed="$SED -e 1s/^X//"
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4915 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4916 if ${ac_cv_path_GREP+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -z "$GREP"; then
4920 ac_path_GREP_found=false
4921 # Loop through the user's path and test for each of PROGNAME-LIST
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4924 do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_prog in grep ggrep; do
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4930 as_fn_executable_p "$ac_path_GREP" || continue
4931 # Check for GNU ac_path_GREP and select it if it is found.
4932 # Check for GNU $ac_path_GREP
4933 case `"$ac_path_GREP" --version 2>&1` in
4934 *GNU*)
4935 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4936 *)
4937 ac_count=0
4938 $as_echo_n 0123456789 >"conftest.in"
4939 while :
4940 do
4941 cat "conftest.in" "conftest.in" >"conftest.tmp"
4942 mv "conftest.tmp" "conftest.in"
4943 cp "conftest.in" "conftest.nl"
4944 $as_echo 'GREP' >> "conftest.nl"
4945 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4946 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4947 as_fn_arith $ac_count + 1 && ac_count=$as_val
4948 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4949 # Best one so far, save it but keep looking for a better one
4950 ac_cv_path_GREP="$ac_path_GREP"
4951 ac_path_GREP_max=$ac_count
4952 fi
4953 # 10*(2^10) chars as input seems more than enough
4954 test $ac_count -gt 10 && break
4955 done
4956 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4957 esac
4958
4959 $ac_path_GREP_found && break 3
4960 done
4961 done
4962 done
4963 IFS=$as_save_IFS
4964 if test -z "$ac_cv_path_GREP"; then
4965 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4966 fi
4967 else
4968 ac_cv_path_GREP=$GREP
4969 fi
4970
4971 fi
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4973 $as_echo "$ac_cv_path_GREP" >&6; }
4974 GREP="$ac_cv_path_GREP"
4975
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4978 $as_echo_n "checking for egrep... " >&6; }
4979 if ${ac_cv_path_EGREP+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4983 then ac_cv_path_EGREP="$GREP -E"
4984 else
4985 if test -z "$EGREP"; then
4986 ac_path_EGREP_found=false
4987 # Loop through the user's path and test for each of PROGNAME-LIST
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4990 do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_prog in egrep; do
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4996 as_fn_executable_p "$ac_path_EGREP" || continue
4997 # Check for GNU ac_path_EGREP and select it if it is found.
4998 # Check for GNU $ac_path_EGREP
4999 case `"$ac_path_EGREP" --version 2>&1` in
5000 *GNU*)
5001 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5002 *)
5003 ac_count=0
5004 $as_echo_n 0123456789 >"conftest.in"
5005 while :
5006 do
5007 cat "conftest.in" "conftest.in" >"conftest.tmp"
5008 mv "conftest.tmp" "conftest.in"
5009 cp "conftest.in" "conftest.nl"
5010 $as_echo 'EGREP' >> "conftest.nl"
5011 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5013 as_fn_arith $ac_count + 1 && ac_count=$as_val
5014 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5015 # Best one so far, save it but keep looking for a better one
5016 ac_cv_path_EGREP="$ac_path_EGREP"
5017 ac_path_EGREP_max=$ac_count
5018 fi
5019 # 10*(2^10) chars as input seems more than enough
5020 test $ac_count -gt 10 && break
5021 done
5022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5023 esac
5024
5025 $ac_path_EGREP_found && break 3
5026 done
5027 done
5028 done
5029 IFS=$as_save_IFS
5030 if test -z "$ac_cv_path_EGREP"; then
5031 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5032 fi
5033 else
5034 ac_cv_path_EGREP=$EGREP
5035 fi
5036
5037 fi
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5040 $as_echo "$ac_cv_path_EGREP" >&6; }
5041 EGREP="$ac_cv_path_EGREP"
5042
5043
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5045 $as_echo_n "checking for fgrep... " >&6; }
5046 if ${ac_cv_path_FGREP+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5050 then ac_cv_path_FGREP="$GREP -F"
5051 else
5052 if test -z "$FGREP"; then
5053 ac_path_FGREP_found=false
5054 # Loop through the user's path and test for each of PROGNAME-LIST
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5057 do
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_prog in fgrep; do
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5063 as_fn_executable_p "$ac_path_FGREP" || continue
5064 # Check for GNU ac_path_FGREP and select it if it is found.
5065 # Check for GNU $ac_path_FGREP
5066 case `"$ac_path_FGREP" --version 2>&1` in
5067 *GNU*)
5068 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5069 *)
5070 ac_count=0
5071 $as_echo_n 0123456789 >"conftest.in"
5072 while :
5073 do
5074 cat "conftest.in" "conftest.in" >"conftest.tmp"
5075 mv "conftest.tmp" "conftest.in"
5076 cp "conftest.in" "conftest.nl"
5077 $as_echo 'FGREP' >> "conftest.nl"
5078 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5080 as_fn_arith $ac_count + 1 && ac_count=$as_val
5081 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5082 # Best one so far, save it but keep looking for a better one
5083 ac_cv_path_FGREP="$ac_path_FGREP"
5084 ac_path_FGREP_max=$ac_count
5085 fi
5086 # 10*(2^10) chars as input seems more than enough
5087 test $ac_count -gt 10 && break
5088 done
5089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5090 esac
5091
5092 $ac_path_FGREP_found && break 3
5093 done
5094 done
5095 done
5096 IFS=$as_save_IFS
5097 if test -z "$ac_cv_path_FGREP"; then
5098 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5099 fi
5100 else
5101 ac_cv_path_FGREP=$FGREP
5102 fi
5103
5104 fi
5105 fi
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5107 $as_echo "$ac_cv_path_FGREP" >&6; }
5108 FGREP="$ac_cv_path_FGREP"
5109
5110
5111 test -z "$GREP" && GREP=grep
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131 # Check whether --with-gnu-ld was given.
5132 if test "${with_gnu_ld+set}" = set; then :
5133 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5134 else
5135 with_gnu_ld=no
5136 fi
5137
5138 ac_prog=ld
5139 if test "$GCC" = yes; then
5140 # Check if gcc -print-prog-name=ld gives a path.
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5142 $as_echo_n "checking for ld used by $CC... " >&6; }
5143 case $host in
5144 *-*-mingw*)
5145 # gcc leaves a trailing carriage return which upsets mingw
5146 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5147 *)
5148 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5149 esac
5150 case $ac_prog in
5151 # Accept absolute paths.
5152 [\\/]* | ?:[\\/]*)
5153 re_direlt='/[^/][^/]*/\.\./'
5154 # Canonicalize the pathname of ld
5155 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5156 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5157 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5158 done
5159 test -z "$LD" && LD="$ac_prog"
5160 ;;
5161 "")
5162 # If it fails, then pretend we aren't using GCC.
5163 ac_prog=ld
5164 ;;
5165 *)
5166 # If it is relative, then search for the first ld in PATH.
5167 with_gnu_ld=unknown
5168 ;;
5169 esac
5170 elif test "$with_gnu_ld" = yes; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5172 $as_echo_n "checking for GNU ld... " >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5175 $as_echo_n "checking for non-GNU ld... " >&6; }
5176 fi
5177 if ${lt_cv_path_LD+:} false; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 if test -z "$LD"; then
5181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5182 for ac_dir in $PATH; do
5183 IFS="$lt_save_ifs"
5184 test -z "$ac_dir" && ac_dir=.
5185 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5186 lt_cv_path_LD="$ac_dir/$ac_prog"
5187 # Check to see if the program is GNU ld. I'd rather use --version,
5188 # but apparently some variants of GNU ld only accept -v.
5189 # Break only if it was the GNU/non-GNU ld that we prefer.
5190 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5191 *GNU* | *'with BFD'*)
5192 test "$with_gnu_ld" != no && break
5193 ;;
5194 *)
5195 test "$with_gnu_ld" != yes && break
5196 ;;
5197 esac
5198 fi
5199 done
5200 IFS="$lt_save_ifs"
5201 else
5202 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5203 fi
5204 fi
5205
5206 LD="$lt_cv_path_LD"
5207 if test -n "$LD"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5209 $as_echo "$LD" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 fi
5214 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5216 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5217 if ${lt_cv_prog_gnu_ld+:} false; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5220 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5221 case `$LD -v 2>&1 </dev/null` in
5222 *GNU* | *'with BFD'*)
5223 lt_cv_prog_gnu_ld=yes
5224 ;;
5225 *)
5226 lt_cv_prog_gnu_ld=no
5227 ;;
5228 esac
5229 fi
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5231 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5232 with_gnu_ld=$lt_cv_prog_gnu_ld
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5243 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5244 if ${lt_cv_path_NM+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$NM"; then
5248 # Let the user override the test.
5249 lt_cv_path_NM="$NM"
5250 else
5251 lt_nm_to_check="${ac_tool_prefix}nm"
5252 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5253 lt_nm_to_check="$lt_nm_to_check nm"
5254 fi
5255 for lt_tmp_nm in $lt_nm_to_check; do
5256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5257 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5258 IFS="$lt_save_ifs"
5259 test -z "$ac_dir" && ac_dir=.
5260 tmp_nm="$ac_dir/$lt_tmp_nm"
5261 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5262 # Check to see if the nm accepts a BSD-compat flag.
5263 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5264 # nm: unknown option "B" ignored
5265 # Tru64's nm complains that /dev/null is an invalid object file
5266 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5267 */dev/null* | *'Invalid file or object type'*)
5268 lt_cv_path_NM="$tmp_nm -B"
5269 break
5270 ;;
5271 *)
5272 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5273 */dev/null*)
5274 lt_cv_path_NM="$tmp_nm -p"
5275 break
5276 ;;
5277 *)
5278 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5279 continue # so that we can try to find one that supports BSD flags
5280 ;;
5281 esac
5282 ;;
5283 esac
5284 fi
5285 done
5286 IFS="$lt_save_ifs"
5287 done
5288 : ${lt_cv_path_NM=no}
5289 fi
5290 fi
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5292 $as_echo "$lt_cv_path_NM" >&6; }
5293 if test "$lt_cv_path_NM" != "no"; then
5294 NM="$lt_cv_path_NM"
5295 else
5296 # Didn't find any BSD compatible name lister, look for dumpbin.
5297 if test -n "$DUMPBIN"; then :
5298 # Let the user override the test.
5299 else
5300 if test -n "$ac_tool_prefix"; then
5301 for ac_prog in dumpbin "link -dump"
5302 do
5303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_DUMPBIN+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 if test -n "$DUMPBIN"; then
5311 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 break 2
5323 fi
5324 done
5325 done
5326 IFS=$as_save_IFS
5327
5328 fi
5329 fi
5330 DUMPBIN=$ac_cv_prog_DUMPBIN
5331 if test -n "$DUMPBIN"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5333 $as_echo "$DUMPBIN" >&6; }
5334 else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5337 fi
5338
5339
5340 test -n "$DUMPBIN" && break
5341 done
5342 fi
5343 if test -z "$DUMPBIN"; then
5344 ac_ct_DUMPBIN=$DUMPBIN
5345 for ac_prog in dumpbin "link -dump"
5346 do
5347 # Extract the first word of "$ac_prog", so it can be a program name with args.
5348 set dummy $ac_prog; ac_word=$2
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 if test -n "$ac_ct_DUMPBIN"; then
5355 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5356 else
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5367 fi
5368 done
5369 done
5370 IFS=$as_save_IFS
5371
5372 fi
5373 fi
5374 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5375 if test -n "$ac_ct_DUMPBIN"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5377 $as_echo "$ac_ct_DUMPBIN" >&6; }
5378 else
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5381 fi
5382
5383
5384 test -n "$ac_ct_DUMPBIN" && break
5385 done
5386
5387 if test "x$ac_ct_DUMPBIN" = x; then
5388 DUMPBIN=":"
5389 else
5390 case $cross_compiling:$ac_tool_warned in
5391 yes:)
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5394 ac_tool_warned=yes ;;
5395 esac
5396 DUMPBIN=$ac_ct_DUMPBIN
5397 fi
5398 fi
5399
5400 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5401 *COFF*)
5402 DUMPBIN="$DUMPBIN -symbols"
5403 ;;
5404 *)
5405 DUMPBIN=:
5406 ;;
5407 esac
5408 fi
5409
5410 if test "$DUMPBIN" != ":"; then
5411 NM="$DUMPBIN"
5412 fi
5413 fi
5414 test -z "$NM" && NM=nm
5415
5416
5417
5418
5419
5420
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5422 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5423 if ${lt_cv_nm_interface+:} false; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 lt_cv_nm_interface="BSD nm"
5427 echo "int some_variable = 0;" > conftest.$ac_ext
5428 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5429 (eval "$ac_compile" 2>conftest.err)
5430 cat conftest.err >&5
5431 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5432 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5433 cat conftest.err >&5
5434 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5435 cat conftest.out >&5
5436 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5437 lt_cv_nm_interface="MS dumpbin"
5438 fi
5439 rm -f conftest*
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5442 $as_echo "$lt_cv_nm_interface" >&6; }
5443
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5445 $as_echo_n "checking whether ln -s works... " >&6; }
5446 LN_S=$as_ln_s
5447 if test "$LN_S" = "ln -s"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5449 $as_echo "yes" >&6; }
5450 else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5452 $as_echo "no, using $LN_S" >&6; }
5453 fi
5454
5455 # find the maximum length of command line arguments
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5457 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5458 if ${lt_cv_sys_max_cmd_len+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 i=0
5462 teststring="ABCD"
5463
5464 case $build_os in
5465 msdosdjgpp*)
5466 # On DJGPP, this test can blow up pretty badly due to problems in libc
5467 # (any single argument exceeding 2000 bytes causes a buffer overrun
5468 # during glob expansion). Even if it were fixed, the result of this
5469 # check would be larger than it should be.
5470 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5471 ;;
5472
5473 gnu*)
5474 # Under GNU Hurd, this test is not required because there is
5475 # no limit to the length of command line arguments.
5476 # Libtool will interpret -1 as no limit whatsoever
5477 lt_cv_sys_max_cmd_len=-1;
5478 ;;
5479
5480 cygwin* | mingw* | cegcc*)
5481 # On Win9x/ME, this test blows up -- it succeeds, but takes
5482 # about 5 minutes as the teststring grows exponentially.
5483 # Worse, since 9x/ME are not pre-emptively multitasking,
5484 # you end up with a "frozen" computer, even though with patience
5485 # the test eventually succeeds (with a max line length of 256k).
5486 # Instead, let's just punt: use the minimum linelength reported by
5487 # all of the supported platforms: 8192 (on NT/2K/XP).
5488 lt_cv_sys_max_cmd_len=8192;
5489 ;;
5490
5491 mint*)
5492 # On MiNT this can take a long time and run out of memory.
5493 lt_cv_sys_max_cmd_len=8192;
5494 ;;
5495
5496 amigaos*)
5497 # On AmigaOS with pdksh, this test takes hours, literally.
5498 # So we just punt and use a minimum line length of 8192.
5499 lt_cv_sys_max_cmd_len=8192;
5500 ;;
5501
5502 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5503 # This has been around since 386BSD, at least. Likely further.
5504 if test -x /sbin/sysctl; then
5505 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5506 elif test -x /usr/sbin/sysctl; then
5507 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5508 else
5509 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5510 fi
5511 # And add a safety zone
5512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5514 ;;
5515
5516 interix*)
5517 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5518 lt_cv_sys_max_cmd_len=196608
5519 ;;
5520
5521 os2*)
5522 # The test takes a long time on OS/2.
5523 lt_cv_sys_max_cmd_len=8192
5524 ;;
5525
5526 osf*)
5527 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5528 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5529 # nice to cause kernel panics so lets avoid the loop below.
5530 # First set a reasonable default.
5531 lt_cv_sys_max_cmd_len=16384
5532 #
5533 if test -x /sbin/sysconfig; then
5534 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5535 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5536 esac
5537 fi
5538 ;;
5539 sco3.2v5*)
5540 lt_cv_sys_max_cmd_len=102400
5541 ;;
5542 sysv5* | sco5v6* | sysv4.2uw2*)
5543 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5544 if test -n "$kargmax"; then
5545 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5546 else
5547 lt_cv_sys_max_cmd_len=32768
5548 fi
5549 ;;
5550 *)
5551 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5552 if test -n "$lt_cv_sys_max_cmd_len" && \
5553 test undefined != "$lt_cv_sys_max_cmd_len"; then
5554 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5556 else
5557 # Make teststring a little bigger before we do anything with it.
5558 # a 1K string should be a reasonable start.
5559 for i in 1 2 3 4 5 6 7 8 ; do
5560 teststring=$teststring$teststring
5561 done
5562 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5563 # If test is not a shell built-in, we'll probably end up computing a
5564 # maximum length that is only half of the actual maximum length, but
5565 # we can't tell.
5566 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5567 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5568 test $i != 17 # 1/2 MB should be enough
5569 do
5570 i=`expr $i + 1`
5571 teststring=$teststring$teststring
5572 done
5573 # Only check the string length outside the loop.
5574 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5575 teststring=
5576 # Add a significant safety factor because C++ compilers can tack on
5577 # massive amounts of additional arguments before passing them to the
5578 # linker. It appears as though 1/2 is a usable value.
5579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5580 fi
5581 ;;
5582 esac
5583
5584 fi
5585
5586 if test -n $lt_cv_sys_max_cmd_len ; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5588 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5591 $as_echo "none" >&6; }
5592 fi
5593 max_cmd_len=$lt_cv_sys_max_cmd_len
5594
5595
5596
5597
5598
5599
5600 : ${CP="cp -f"}
5601 : ${MV="mv -f"}
5602 : ${RM="rm -f"}
5603
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5605 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5606 # Try some XSI features
5607 xsi_shell=no
5608 ( _lt_dummy="a/b/c"
5609 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5610 = c,a/b,b/c, \
5611 && eval 'test $(( 1 + 1 )) -eq 2 \
5612 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5613 && xsi_shell=yes
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5615 $as_echo "$xsi_shell" >&6; }
5616
5617
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5619 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5620 lt_shell_append=no
5621 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5622 >/dev/null 2>&1 \
5623 && lt_shell_append=yes
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5625 $as_echo "$lt_shell_append" >&6; }
5626
5627
5628 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5629 lt_unset=unset
5630 else
5631 lt_unset=false
5632 fi
5633
5634
5635
5636
5637
5638 # test EBCDIC or ASCII
5639 case `echo X|tr X '\101'` in
5640 A) # ASCII based system
5641 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5642 lt_SP2NL='tr \040 \012'
5643 lt_NL2SP='tr \015\012 \040\040'
5644 ;;
5645 *) # EBCDIC based system
5646 lt_SP2NL='tr \100 \n'
5647 lt_NL2SP='tr \r\n \100\100'
5648 ;;
5649 esac
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5660 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5661 if ${lt_cv_to_host_file_cmd+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 case $host in
5665 *-*-mingw* )
5666 case $build in
5667 *-*-mingw* ) # actually msys
5668 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5669 ;;
5670 *-*-cygwin* )
5671 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5672 ;;
5673 * ) # otherwise, assume *nix
5674 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5675 ;;
5676 esac
5677 ;;
5678 *-*-cygwin* )
5679 case $build in
5680 *-*-mingw* ) # actually msys
5681 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5682 ;;
5683 *-*-cygwin* )
5684 lt_cv_to_host_file_cmd=func_convert_file_noop
5685 ;;
5686 * ) # otherwise, assume *nix
5687 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5688 ;;
5689 esac
5690 ;;
5691 * ) # unhandled hosts (and "normal" native builds)
5692 lt_cv_to_host_file_cmd=func_convert_file_noop
5693 ;;
5694 esac
5695
5696 fi
5697
5698 to_host_file_cmd=$lt_cv_to_host_file_cmd
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5700 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5701
5702
5703
5704
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5707 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5708 if ${lt_cv_to_tool_file_cmd+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 #assume ordinary cross tools, or native build.
5712 lt_cv_to_tool_file_cmd=func_convert_file_noop
5713 case $host in
5714 *-*-mingw* )
5715 case $build in
5716 *-*-mingw* ) # actually msys
5717 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5718 ;;
5719 esac
5720 ;;
5721 esac
5722
5723 fi
5724
5725 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5727 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5728
5729
5730
5731
5732
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5734 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5735 if ${lt_cv_ld_reload_flag+:} false; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 lt_cv_ld_reload_flag='-r'
5739 fi
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5741 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5742 reload_flag=$lt_cv_ld_reload_flag
5743 case $reload_flag in
5744 "" | " "*) ;;
5745 *) reload_flag=" $reload_flag" ;;
5746 esac
5747 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5748 case $host_os in
5749 cygwin* | mingw* | pw32* | cegcc*)
5750 if test "$GCC" != yes; then
5751 reload_cmds=false
5752 fi
5753 ;;
5754 darwin*)
5755 if test "$GCC" = yes; then
5756 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5757 else
5758 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5759 fi
5760 ;;
5761 esac
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771 if test -n "$ac_tool_prefix"; then
5772 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5773 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if ${ac_cv_prog_OBJDUMP+:} false; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 if test -n "$OBJDUMP"; then
5780 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5781 else
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 break 2
5792 fi
5793 done
5794 done
5795 IFS=$as_save_IFS
5796
5797 fi
5798 fi
5799 OBJDUMP=$ac_cv_prog_OBJDUMP
5800 if test -n "$OBJDUMP"; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5802 $as_echo "$OBJDUMP" >&6; }
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 $as_echo "no" >&6; }
5806 fi
5807
5808
5809 fi
5810 if test -z "$ac_cv_prog_OBJDUMP"; then
5811 ac_ct_OBJDUMP=$OBJDUMP
5812 # Extract the first word of "objdump", so it can be a program name with args.
5813 set dummy objdump; ac_word=$2
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 if test -n "$ac_ct_OBJDUMP"; then
5820 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 2
5832 fi
5833 done
5834 done
5835 IFS=$as_save_IFS
5836
5837 fi
5838 fi
5839 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5840 if test -n "$ac_ct_OBJDUMP"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5842 $as_echo "$ac_ct_OBJDUMP" >&6; }
5843 else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5846 fi
5847
5848 if test "x$ac_ct_OBJDUMP" = x; then
5849 OBJDUMP="false"
5850 else
5851 case $cross_compiling:$ac_tool_warned in
5852 yes:)
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5855 ac_tool_warned=yes ;;
5856 esac
5857 OBJDUMP=$ac_ct_OBJDUMP
5858 fi
5859 else
5860 OBJDUMP="$ac_cv_prog_OBJDUMP"
5861 fi
5862
5863 test -z "$OBJDUMP" && OBJDUMP=objdump
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5874 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5875 if ${lt_cv_deplibs_check_method+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 lt_cv_file_magic_cmd='$MAGIC_CMD'
5879 lt_cv_file_magic_test_file=
5880 lt_cv_deplibs_check_method='unknown'
5881 # Need to set the preceding variable on all platforms that support
5882 # interlibrary dependencies.
5883 # 'none' -- dependencies not supported.
5884 # `unknown' -- same as none, but documents that we really don't know.
5885 # 'pass_all' -- all dependencies passed with no checks.
5886 # 'test_compile' -- check by making test program.
5887 # 'file_magic [[regex]]' -- check by looking for files in library path
5888 # which responds to the $file_magic_cmd with a given extended regex.
5889 # If you have `file' or equivalent on your system and you're not sure
5890 # whether `pass_all' will *always* work, you probably want this one.
5891
5892 case $host_os in
5893 aix[4-9]*)
5894 lt_cv_deplibs_check_method=pass_all
5895 ;;
5896
5897 beos*)
5898 lt_cv_deplibs_check_method=pass_all
5899 ;;
5900
5901 bsdi[45]*)
5902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5903 lt_cv_file_magic_cmd='/usr/bin/file -L'
5904 lt_cv_file_magic_test_file=/shlib/libc.so
5905 ;;
5906
5907 cygwin*)
5908 # func_win32_libid is a shell function defined in ltmain.sh
5909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5910 lt_cv_file_magic_cmd='func_win32_libid'
5911 ;;
5912
5913 mingw* | pw32*)
5914 # Base MSYS/MinGW do not provide the 'file' command needed by
5915 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5916 # unless we find 'file', for example because we are cross-compiling.
5917 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5918 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5919 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5920 lt_cv_file_magic_cmd='func_win32_libid'
5921 else
5922 # Keep this pattern in sync with the one in func_win32_libid.
5923 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5924 lt_cv_file_magic_cmd='$OBJDUMP -f'
5925 fi
5926 ;;
5927
5928 cegcc*)
5929 # use the weaker test based on 'objdump'. See mingw*.
5930 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5931 lt_cv_file_magic_cmd='$OBJDUMP -f'
5932 ;;
5933
5934 darwin* | rhapsody*)
5935 lt_cv_deplibs_check_method=pass_all
5936 ;;
5937
5938 freebsd* | dragonfly*)
5939 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5940 case $host_cpu in
5941 i*86 )
5942 # Not sure whether the presence of OpenBSD here was a mistake.
5943 # Let's accept both of them until this is cleared up.
5944 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5945 lt_cv_file_magic_cmd=/usr/bin/file
5946 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5947 ;;
5948 esac
5949 else
5950 lt_cv_deplibs_check_method=pass_all
5951 fi
5952 ;;
5953
5954 haiku*)
5955 lt_cv_deplibs_check_method=pass_all
5956 ;;
5957
5958 hpux10.20* | hpux11*)
5959 lt_cv_file_magic_cmd=/usr/bin/file
5960 case $host_cpu in
5961 ia64*)
5962 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5963 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5964 ;;
5965 hppa*64*)
5966 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]'
5967 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5968 ;;
5969 *)
5970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5971 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5972 ;;
5973 esac
5974 ;;
5975
5976 interix[3-9]*)
5977 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5979 ;;
5980
5981 irix5* | irix6* | nonstopux*)
5982 case $LD in
5983 *-32|*"-32 ") libmagic=32-bit;;
5984 *-n32|*"-n32 ") libmagic=N32;;
5985 *-64|*"-64 ") libmagic=64-bit;;
5986 *) libmagic=never-match;;
5987 esac
5988 lt_cv_deplibs_check_method=pass_all
5989 ;;
5990
5991 # This must be glibc/ELF.
5992 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5993 lt_cv_deplibs_check_method=pass_all
5994 ;;
5995
5996 netbsd* | netbsdelf*-gnu)
5997 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5999 else
6000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6001 fi
6002 ;;
6003
6004 newos6*)
6005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6006 lt_cv_file_magic_cmd=/usr/bin/file
6007 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6008 ;;
6009
6010 *nto* | *qnx*)
6011 lt_cv_deplibs_check_method=pass_all
6012 ;;
6013
6014 openbsd*)
6015 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6017 else
6018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6019 fi
6020 ;;
6021
6022 osf3* | osf4* | osf5*)
6023 lt_cv_deplibs_check_method=pass_all
6024 ;;
6025
6026 rdos*)
6027 lt_cv_deplibs_check_method=pass_all
6028 ;;
6029
6030 solaris*)
6031 lt_cv_deplibs_check_method=pass_all
6032 ;;
6033
6034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6035 lt_cv_deplibs_check_method=pass_all
6036 ;;
6037
6038 sysv4 | sysv4.3*)
6039 case $host_vendor in
6040 motorola)
6041 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]'
6042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6043 ;;
6044 ncr)
6045 lt_cv_deplibs_check_method=pass_all
6046 ;;
6047 sequent)
6048 lt_cv_file_magic_cmd='/bin/file'
6049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6050 ;;
6051 sni)
6052 lt_cv_file_magic_cmd='/bin/file'
6053 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6054 lt_cv_file_magic_test_file=/lib/libc.so
6055 ;;
6056 siemens)
6057 lt_cv_deplibs_check_method=pass_all
6058 ;;
6059 pc)
6060 lt_cv_deplibs_check_method=pass_all
6061 ;;
6062 esac
6063 ;;
6064
6065 tpf*)
6066 lt_cv_deplibs_check_method=pass_all
6067 ;;
6068 esac
6069
6070 fi
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6072 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6073
6074 file_magic_glob=
6075 want_nocaseglob=no
6076 if test "$build" = "$host"; then
6077 case $host_os in
6078 mingw* | pw32*)
6079 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6080 want_nocaseglob=yes
6081 else
6082 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6083 fi
6084 ;;
6085 esac
6086 fi
6087
6088 file_magic_cmd=$lt_cv_file_magic_cmd
6089 deplibs_check_method=$lt_cv_deplibs_check_method
6090 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if ${ac_cv_prog_DLLTOOL+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 if test -n "$DLLTOOL"; then
6122 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6131 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6134 fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 DLLTOOL=$ac_cv_prog_DLLTOOL
6142 if test -n "$DLLTOOL"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6144 $as_echo "$DLLTOOL" >&6; }
6145 else
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6148 fi
6149
6150
6151 fi
6152 if test -z "$ac_cv_prog_DLLTOOL"; then
6153 ac_ct_DLLTOOL=$DLLTOOL
6154 # Extract the first word of "dlltool", so it can be a program name with args.
6155 set dummy dlltool; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 if test -n "$ac_ct_DLLTOOL"; then
6162 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6171 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6174 fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6178
6179 fi
6180 fi
6181 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6182 if test -n "$ac_ct_DLLTOOL"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6184 $as_echo "$ac_ct_DLLTOOL" >&6; }
6185 else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6188 fi
6189
6190 if test "x$ac_ct_DLLTOOL" = x; then
6191 DLLTOOL="false"
6192 else
6193 case $cross_compiling:$ac_tool_warned in
6194 yes:)
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6197 ac_tool_warned=yes ;;
6198 esac
6199 DLLTOOL=$ac_ct_DLLTOOL
6200 fi
6201 else
6202 DLLTOOL="$ac_cv_prog_DLLTOOL"
6203 fi
6204
6205 test -z "$DLLTOOL" && DLLTOOL=dlltool
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6217 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6218 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 lt_cv_sharedlib_from_linklib_cmd='unknown'
6222
6223 case $host_os in
6224 cygwin* | mingw* | pw32* | cegcc*)
6225 # two different shell functions defined in ltmain.sh
6226 # decide which to use based on capabilities of $DLLTOOL
6227 case `$DLLTOOL --help 2>&1` in
6228 *--identify-strict*)
6229 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6230 ;;
6231 *)
6232 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6233 ;;
6234 esac
6235 ;;
6236 *)
6237 # fallback: assume linklib IS sharedlib
6238 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6239 ;;
6240 esac
6241
6242 fi
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6244 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6245 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6246 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6247
6248
6249
6250
6251
6252
6253
6254 if test -n "$ac_tool_prefix"; then
6255 for ac_prog in ar
6256 do
6257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_prog_AR+:} false; then :
6262 $as_echo_n "(cached) " >&6
6263 else
6264 if test -n "$AR"; then
6265 ac_cv_prog_AR="$AR" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6269 do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278 done
6279 done
6280 IFS=$as_save_IFS
6281
6282 fi
6283 fi
6284 AR=$ac_cv_prog_AR
6285 if test -n "$AR"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6287 $as_echo "$AR" >&6; }
6288 else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6291 fi
6292
6293
6294 test -n "$AR" && break
6295 done
6296 fi
6297 if test -z "$AR"; then
6298 ac_ct_AR=$AR
6299 for ac_prog in ar
6300 do
6301 # Extract the first word of "$ac_prog", so it can be a program name with args.
6302 set dummy $ac_prog; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 if test -n "$ac_ct_AR"; then
6309 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318 ac_cv_prog_ac_ct_AR="$ac_prog"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322 done
6323 done
6324 IFS=$as_save_IFS
6325
6326 fi
6327 fi
6328 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6329 if test -n "$ac_ct_AR"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6331 $as_echo "$ac_ct_AR" >&6; }
6332 else
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6335 fi
6336
6337
6338 test -n "$ac_ct_AR" && break
6339 done
6340
6341 if test "x$ac_ct_AR" = x; then
6342 AR="false"
6343 else
6344 case $cross_compiling:$ac_tool_warned in
6345 yes:)
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6348 ac_tool_warned=yes ;;
6349 esac
6350 AR=$ac_ct_AR
6351 fi
6352 fi
6353
6354 : ${AR=ar}
6355 : ${AR_FLAGS=cru}
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6368 $as_echo_n "checking for archiver @FILE support... " >&6; }
6369 if ${lt_cv_ar_at_file+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 lt_cv_ar_at_file=no
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6375
6376 int
6377 main ()
6378 {
6379
6380 ;
6381 return 0;
6382 }
6383 _ACEOF
6384 if ac_fn_c_try_compile "$LINENO"; then :
6385 echo conftest.$ac_objext > conftest.lst
6386 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6388 (eval $lt_ar_try) 2>&5
6389 ac_status=$?
6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; }
6392 if test "$ac_status" -eq 0; then
6393 # Ensure the archiver fails upon bogus file names.
6394 rm -f conftest.$ac_objext libconftest.a
6395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6396 (eval $lt_ar_try) 2>&5
6397 ac_status=$?
6398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399 test $ac_status = 0; }
6400 if test "$ac_status" -ne 0; then
6401 lt_cv_ar_at_file=@
6402 fi
6403 fi
6404 rm -f conftest.* libconftest.a
6405
6406 fi
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408
6409 fi
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6411 $as_echo "$lt_cv_ar_at_file" >&6; }
6412
6413 if test "x$lt_cv_ar_at_file" = xno; then
6414 archiver_list_spec=
6415 else
6416 archiver_list_spec=$lt_cv_ar_at_file
6417 fi
6418
6419
6420
6421
6422
6423
6424
6425 if test -n "$ac_tool_prefix"; then
6426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6427 set dummy ${ac_tool_prefix}strip; ac_word=$2
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if ${ac_cv_prog_STRIP+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 if test -n "$STRIP"; then
6434 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6443 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 break 2
6446 fi
6447 done
6448 done
6449 IFS=$as_save_IFS
6450
6451 fi
6452 fi
6453 STRIP=$ac_cv_prog_STRIP
6454 if test -n "$STRIP"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6456 $as_echo "$STRIP" >&6; }
6457 else
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459 $as_echo "no" >&6; }
6460 fi
6461
6462
6463 fi
6464 if test -z "$ac_cv_prog_STRIP"; then
6465 ac_ct_STRIP=$STRIP
6466 # Extract the first word of "strip", so it can be a program name with args.
6467 set dummy strip; ac_word=$2
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6469 $as_echo_n "checking for $ac_word... " >&6; }
6470 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 if test -n "$ac_ct_STRIP"; then
6474 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6475 else
6476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 for as_dir in $PATH
6478 do
6479 IFS=$as_save_IFS
6480 test -z "$as_dir" && as_dir=.
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6483 ac_cv_prog_ac_ct_STRIP="strip"
6484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 break 2
6486 fi
6487 done
6488 done
6489 IFS=$as_save_IFS
6490
6491 fi
6492 fi
6493 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6494 if test -n "$ac_ct_STRIP"; then
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6496 $as_echo "$ac_ct_STRIP" >&6; }
6497 else
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499 $as_echo "no" >&6; }
6500 fi
6501
6502 if test "x$ac_ct_STRIP" = x; then
6503 STRIP=":"
6504 else
6505 case $cross_compiling:$ac_tool_warned in
6506 yes:)
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6509 ac_tool_warned=yes ;;
6510 esac
6511 STRIP=$ac_ct_STRIP
6512 fi
6513 else
6514 STRIP="$ac_cv_prog_STRIP"
6515 fi
6516
6517 test -z "$STRIP" && STRIP=:
6518
6519
6520
6521
6522
6523
6524 if test -n "$ac_tool_prefix"; then
6525 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6526 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if ${ac_cv_prog_RANLIB+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 if test -n "$RANLIB"; then
6533 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 RANLIB=$ac_cv_prog_RANLIB
6553 if test -n "$RANLIB"; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6555 $as_echo "$RANLIB" >&6; }
6556 else
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6559 fi
6560
6561
6562 fi
6563 if test -z "$ac_cv_prog_RANLIB"; then
6564 ac_ct_RANLIB=$RANLIB
6565 # Extract the first word of "ranlib", so it can be a program name with args.
6566 set dummy ranlib; ac_word=$2
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 $as_echo_n "checking for $ac_word... " >&6; }
6569 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 if test -n "$ac_ct_RANLIB"; then
6573 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582 ac_cv_prog_ac_ct_RANLIB="ranlib"
6583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6593 if test -n "$ac_ct_RANLIB"; then
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6595 $as_echo "$ac_ct_RANLIB" >&6; }
6596 else
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6599 fi
6600
6601 if test "x$ac_ct_RANLIB" = x; then
6602 RANLIB=":"
6603 else
6604 case $cross_compiling:$ac_tool_warned in
6605 yes:)
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6608 ac_tool_warned=yes ;;
6609 esac
6610 RANLIB=$ac_ct_RANLIB
6611 fi
6612 else
6613 RANLIB="$ac_cv_prog_RANLIB"
6614 fi
6615
6616 test -z "$RANLIB" && RANLIB=:
6617
6618
6619
6620
6621
6622
6623 # Determine commands to create old-style static archives.
6624 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6625 old_postinstall_cmds='chmod 644 $oldlib'
6626 old_postuninstall_cmds=
6627
6628 if test -n "$RANLIB"; then
6629 case $host_os in
6630 openbsd*)
6631 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6632 ;;
6633 *)
6634 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6635 ;;
6636 esac
6637 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6638 fi
6639
6640 case $host_os in
6641 darwin*)
6642 lock_old_archive_extraction=yes ;;
6643 *)
6644 lock_old_archive_extraction=no ;;
6645 esac
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685 # If no C compiler was specified, use CC.
6686 LTCC=${LTCC-"$CC"}
6687
6688 # If no C compiler flags were specified, use CFLAGS.
6689 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6690
6691 # Allow CC to be a program name with arguments.
6692 compiler=$CC
6693
6694
6695 # Check for command to grab the raw symbol name followed by C symbol from nm.
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6697 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6698 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6699 $as_echo_n "(cached) " >&6
6700 else
6701
6702 # These are sane defaults that work on at least a few old systems.
6703 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6704
6705 # Character class describing NM global symbol codes.
6706 symcode='[BCDEGRST]'
6707
6708 # Regexp to match symbols that can be accessed directly from C.
6709 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6710
6711 # Define system-specific variables.
6712 case $host_os in
6713 aix*)
6714 symcode='[BCDT]'
6715 ;;
6716 cygwin* | mingw* | pw32* | cegcc*)
6717 symcode='[ABCDGISTW]'
6718 ;;
6719 hpux*)
6720 if test "$host_cpu" = ia64; then
6721 symcode='[ABCDEGRST]'
6722 fi
6723 ;;
6724 irix* | nonstopux*)
6725 symcode='[BCDEGRST]'
6726 ;;
6727 osf*)
6728 symcode='[BCDEGQRST]'
6729 ;;
6730 solaris*)
6731 symcode='[BDRT]'
6732 ;;
6733 sco3.2v5*)
6734 symcode='[DT]'
6735 ;;
6736 sysv4.2uw2*)
6737 symcode='[DT]'
6738 ;;
6739 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6740 symcode='[ABDT]'
6741 ;;
6742 sysv4)
6743 symcode='[DFNSTU]'
6744 ;;
6745 esac
6746
6747 # If we're using GNU nm, then use its standard symbol codes.
6748 case `$NM -V 2>&1` in
6749 *GNU* | *'with BFD'*)
6750 symcode='[ABCDGIRSTW]' ;;
6751 esac
6752
6753 # Transform an extracted symbol line into a proper C declaration.
6754 # Some systems (esp. on ia64) link data and code symbols differently,
6755 # so use this general approach.
6756 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6757
6758 # Transform an extracted symbol line into symbol name and symbol address
6759 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6760 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'"
6761
6762 # Handle CRLF in mingw tool chain
6763 opt_cr=
6764 case $build_os in
6765 mingw*)
6766 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6767 ;;
6768 esac
6769
6770 # Try without a prefix underscore, then with it.
6771 for ac_symprfx in "" "_"; do
6772
6773 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6774 symxfrm="\\1 $ac_symprfx\\2 \\2"
6775
6776 # Write the raw and C identifiers.
6777 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6778 # Fake it for dumpbin and say T for any non-static function
6779 # and D for any global variable.
6780 # Also find C++ and __fastcall symbols from MSVC++,
6781 # which start with @ or ?.
6782 lt_cv_sys_global_symbol_pipe="$AWK '"\
6783 " {last_section=section; section=\$ 3};"\
6784 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6785 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6786 " \$ 0!~/External *\|/{next};"\
6787 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6788 " {if(hide[section]) next};"\
6789 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6790 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6791 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6792 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6793 " ' prfx=^$ac_symprfx"
6794 else
6795 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6796 fi
6797 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6798
6799 # Check to see that the pipe works correctly.
6800 pipe_works=no
6801
6802 rm -f conftest*
6803 cat > conftest.$ac_ext <<_LT_EOF
6804 #ifdef __cplusplus
6805 extern "C" {
6806 #endif
6807 char nm_test_var;
6808 void nm_test_func(void);
6809 void nm_test_func(void){}
6810 #ifdef __cplusplus
6811 }
6812 #endif
6813 int main(){nm_test_var='a';nm_test_func();return(0);}
6814 _LT_EOF
6815
6816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6817 (eval $ac_compile) 2>&5
6818 ac_status=$?
6819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6820 test $ac_status = 0; }; then
6821 # Now try to grab the symbols.
6822 nlist=conftest.nm
6823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6824 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6825 ac_status=$?
6826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6827 test $ac_status = 0; } && test -s "$nlist"; then
6828 # Try sorting and uniquifying the output.
6829 if sort "$nlist" | uniq > "$nlist"T; then
6830 mv -f "$nlist"T "$nlist"
6831 else
6832 rm -f "$nlist"T
6833 fi
6834
6835 # Make sure that we snagged all the symbols we need.
6836 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6837 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6838 cat <<_LT_EOF > conftest.$ac_ext
6839 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6840 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6841 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6842 relocations are performed -- see ld's documentation on pseudo-relocs. */
6843 # define LT_DLSYM_CONST
6844 #elif defined(__osf__)
6845 /* This system does not cope well with relocations in const data. */
6846 # define LT_DLSYM_CONST
6847 #else
6848 # define LT_DLSYM_CONST const
6849 #endif
6850
6851 #ifdef __cplusplus
6852 extern "C" {
6853 #endif
6854
6855 _LT_EOF
6856 # Now generate the symbol file.
6857 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6858
6859 cat <<_LT_EOF >> conftest.$ac_ext
6860
6861 /* The mapping between symbol names and symbols. */
6862 LT_DLSYM_CONST struct {
6863 const char *name;
6864 void *address;
6865 }
6866 lt__PROGRAM__LTX_preloaded_symbols[] =
6867 {
6868 { "@PROGRAM@", (void *) 0 },
6869 _LT_EOF
6870 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6871 cat <<\_LT_EOF >> conftest.$ac_ext
6872 {0, (void *) 0}
6873 };
6874
6875 /* This works around a problem in FreeBSD linker */
6876 #ifdef FREEBSD_WORKAROUND
6877 static const void *lt_preloaded_setup() {
6878 return lt__PROGRAM__LTX_preloaded_symbols;
6879 }
6880 #endif
6881
6882 #ifdef __cplusplus
6883 }
6884 #endif
6885 _LT_EOF
6886 # Now try linking the two files.
6887 mv conftest.$ac_objext conftstm.$ac_objext
6888 lt_globsym_save_LIBS=$LIBS
6889 lt_globsym_save_CFLAGS=$CFLAGS
6890 LIBS="conftstm.$ac_objext"
6891 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6893 (eval $ac_link) 2>&5
6894 ac_status=$?
6895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6896 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6897 pipe_works=yes
6898 fi
6899 LIBS=$lt_globsym_save_LIBS
6900 CFLAGS=$lt_globsym_save_CFLAGS
6901 else
6902 echo "cannot find nm_test_func in $nlist" >&5
6903 fi
6904 else
6905 echo "cannot find nm_test_var in $nlist" >&5
6906 fi
6907 else
6908 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6909 fi
6910 else
6911 echo "$progname: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6913 fi
6914 rm -rf conftest* conftst*
6915
6916 # Do not use the global_symbol_pipe unless it works.
6917 if test "$pipe_works" = yes; then
6918 break
6919 else
6920 lt_cv_sys_global_symbol_pipe=
6921 fi
6922 done
6923
6924 fi
6925
6926 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6927 lt_cv_sys_global_symbol_to_cdecl=
6928 fi
6929 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6931 $as_echo "failed" >&6; }
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6934 $as_echo "ok" >&6; }
6935 fi
6936
6937 # Response file support.
6938 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6939 nm_file_list_spec='@'
6940 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6941 nm_file_list_spec='@'
6942 fi
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6971 $as_echo_n "checking for sysroot... " >&6; }
6972
6973 # Check whether --with-sysroot was given.
6974 if test "${with_sysroot+set}" = set; then :
6975 withval=$with_sysroot;
6976 else
6977 with_sysroot=no
6978 fi
6979
6980
6981 lt_sysroot=
6982 case ${with_sysroot} in #(
6983 yes)
6984 if test "$GCC" = yes; then
6985 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6986 fi
6987 ;; #(
6988 /*)
6989 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6990 ;; #(
6991 no|'')
6992 ;; #(
6993 *)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6995 $as_echo "${with_sysroot}" >&6; }
6996 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6997 ;;
6998 esac
6999
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7001 $as_echo "${lt_sysroot:-no}" >&6; }
7002
7003
7004
7005
7006
7007 # Check whether --enable-libtool-lock was given.
7008 if test "${enable_libtool_lock+set}" = set; then :
7009 enableval=$enable_libtool_lock;
7010 fi
7011
7012 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7013
7014 # Some flags need to be propagated to the compiler or linker for good
7015 # libtool support.
7016 case $host in
7017 ia64-*-hpux*)
7018 # Find out which ABI we are using.
7019 echo 'int i;' > conftest.$ac_ext
7020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7021 (eval $ac_compile) 2>&5
7022 ac_status=$?
7023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7024 test $ac_status = 0; }; then
7025 case `/usr/bin/file conftest.$ac_objext` in
7026 *ELF-32*)
7027 HPUX_IA64_MODE="32"
7028 ;;
7029 *ELF-64*)
7030 HPUX_IA64_MODE="64"
7031 ;;
7032 esac
7033 fi
7034 rm -rf conftest*
7035 ;;
7036 *-*-irix6*)
7037 # Find out which ABI we are using.
7038 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7040 (eval $ac_compile) 2>&5
7041 ac_status=$?
7042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7043 test $ac_status = 0; }; then
7044 if test "$lt_cv_prog_gnu_ld" = yes; then
7045 case `/usr/bin/file conftest.$ac_objext` in
7046 *32-bit*)
7047 LD="${LD-ld} -melf32bsmip"
7048 ;;
7049 *N32*)
7050 LD="${LD-ld} -melf32bmipn32"
7051 ;;
7052 *64-bit*)
7053 LD="${LD-ld} -melf64bmip"
7054 ;;
7055 esac
7056 else
7057 case `/usr/bin/file conftest.$ac_objext` in
7058 *32-bit*)
7059 LD="${LD-ld} -32"
7060 ;;
7061 *N32*)
7062 LD="${LD-ld} -n32"
7063 ;;
7064 *64-bit*)
7065 LD="${LD-ld} -64"
7066 ;;
7067 esac
7068 fi
7069 fi
7070 rm -rf conftest*
7071 ;;
7072
7073 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7074 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7075 # Find out which ABI we are using.
7076 echo 'int i;' > conftest.$ac_ext
7077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7078 (eval $ac_compile) 2>&5
7079 ac_status=$?
7080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7081 test $ac_status = 0; }; then
7082 case `/usr/bin/file conftest.o` in
7083 *32-bit*)
7084 case $host in
7085 x86_64-*kfreebsd*-gnu)
7086 LD="${LD-ld} -m elf_i386_fbsd"
7087 ;;
7088 x86_64-*linux*)
7089 case `/usr/bin/file conftest.o` in
7090 *x86-64*)
7091 LD="${LD-ld} -m elf32_x86_64"
7092 ;;
7093 *)
7094 LD="${LD-ld} -m elf_i386"
7095 ;;
7096 esac
7097 ;;
7098 powerpc64le-*)
7099 LD="${LD-ld} -m elf32lppclinux"
7100 ;;
7101 powerpc64-*)
7102 LD="${LD-ld} -m elf32ppclinux"
7103 ;;
7104 s390x-*linux*)
7105 LD="${LD-ld} -m elf_s390"
7106 ;;
7107 sparc64-*linux*)
7108 LD="${LD-ld} -m elf32_sparc"
7109 ;;
7110 esac
7111 ;;
7112 *64-bit*)
7113 case $host in
7114 x86_64-*kfreebsd*-gnu)
7115 LD="${LD-ld} -m elf_x86_64_fbsd"
7116 ;;
7117 x86_64-*linux*)
7118 LD="${LD-ld} -m elf_x86_64"
7119 ;;
7120 powerpcle-*)
7121 LD="${LD-ld} -m elf64lppc"
7122 ;;
7123 powerpc-*)
7124 LD="${LD-ld} -m elf64ppc"
7125 ;;
7126 s390*-*linux*|s390*-*tpf*)
7127 LD="${LD-ld} -m elf64_s390"
7128 ;;
7129 sparc*-*linux*)
7130 LD="${LD-ld} -m elf64_sparc"
7131 ;;
7132 esac
7133 ;;
7134 esac
7135 fi
7136 rm -rf conftest*
7137 ;;
7138
7139 *-*-sco3.2v5*)
7140 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7141 SAVE_CFLAGS="$CFLAGS"
7142 CFLAGS="$CFLAGS -belf"
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7144 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7145 if ${lt_cv_cc_needs_belf+:} false; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 ac_ext=c
7149 ac_cpp='$CPP $CPPFLAGS'
7150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7153
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156
7157 int
7158 main ()
7159 {
7160
7161 ;
7162 return 0;
7163 }
7164 _ACEOF
7165 if ac_fn_c_try_link "$LINENO"; then :
7166 lt_cv_cc_needs_belf=yes
7167 else
7168 lt_cv_cc_needs_belf=no
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext \
7171 conftest$ac_exeext conftest.$ac_ext
7172 ac_ext=c
7173 ac_cpp='$CPP $CPPFLAGS'
7174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7177
7178 fi
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7180 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7181 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7182 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7183 CFLAGS="$SAVE_CFLAGS"
7184 fi
7185 ;;
7186 *-*solaris*)
7187 # Find out which ABI we are using.
7188 echo 'int i;' > conftest.$ac_ext
7189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7190 (eval $ac_compile) 2>&5
7191 ac_status=$?
7192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7193 test $ac_status = 0; }; then
7194 case `/usr/bin/file conftest.o` in
7195 *64-bit*)
7196 case $lt_cv_prog_gnu_ld in
7197 yes*)
7198 case $host in
7199 i?86-*-solaris*)
7200 LD="${LD-ld} -m elf_x86_64"
7201 ;;
7202 sparc*-*-solaris*)
7203 LD="${LD-ld} -m elf64_sparc"
7204 ;;
7205 esac
7206 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7207 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7208 LD="${LD-ld}_sol2"
7209 fi
7210 ;;
7211 *)
7212 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7213 LD="${LD-ld} -64"
7214 fi
7215 ;;
7216 esac
7217 ;;
7218 esac
7219 fi
7220 rm -rf conftest*
7221 ;;
7222 esac
7223
7224 need_locks="$enable_libtool_lock"
7225
7226 if test -n "$ac_tool_prefix"; then
7227 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7228 set dummy ${ac_tool_prefix}mt; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 if test -n "$MANIFEST_TOOL"; then
7235 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240 IFS=$as_save_IFS
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 break 2
7247 fi
7248 done
7249 done
7250 IFS=$as_save_IFS
7251
7252 fi
7253 fi
7254 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7255 if test -n "$MANIFEST_TOOL"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7257 $as_echo "$MANIFEST_TOOL" >&6; }
7258 else
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7261 fi
7262
7263
7264 fi
7265 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7266 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7267 # Extract the first word of "mt", so it can be a program name with args.
7268 set dummy mt; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 if test -n "$ac_ct_MANIFEST_TOOL"; then
7275 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7287 fi
7288 done
7289 done
7290 IFS=$as_save_IFS
7291
7292 fi
7293 fi
7294 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7295 if test -n "$ac_ct_MANIFEST_TOOL"; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7297 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7298 else
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7301 fi
7302
7303 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7304 MANIFEST_TOOL=":"
7305 else
7306 case $cross_compiling:$ac_tool_warned in
7307 yes:)
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7310 ac_tool_warned=yes ;;
7311 esac
7312 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7313 fi
7314 else
7315 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7316 fi
7317
7318 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7320 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7321 if ${lt_cv_path_mainfest_tool+:} false; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 lt_cv_path_mainfest_tool=no
7325 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7326 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7327 cat conftest.err >&5
7328 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7329 lt_cv_path_mainfest_tool=yes
7330 fi
7331 rm -f conftest*
7332 fi
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7334 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7335 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7336 MANIFEST_TOOL=:
7337 fi
7338
7339
7340
7341
7342
7343
7344 case $host_os in
7345 rhapsody* | darwin*)
7346 if test -n "$ac_tool_prefix"; then
7347 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 if test -n "$DSYMUTIL"; then
7355 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7367 fi
7368 done
7369 done
7370 IFS=$as_save_IFS
7371
7372 fi
7373 fi
7374 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7375 if test -n "$DSYMUTIL"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7377 $as_echo "$DSYMUTIL" >&6; }
7378 else
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382
7383
7384 fi
7385 if test -z "$ac_cv_prog_DSYMUTIL"; then
7386 ac_ct_DSYMUTIL=$DSYMUTIL
7387 # Extract the first word of "dsymutil", so it can be a program name with args.
7388 set dummy dsymutil; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 if test -n "$ac_ct_DSYMUTIL"; then
7395 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7407 fi
7408 done
7409 done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7415 if test -n "$ac_ct_DSYMUTIL"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7417 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7418 else
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423 if test "x$ac_ct_DSYMUTIL" = x; then
7424 DSYMUTIL=":"
7425 else
7426 case $cross_compiling:$ac_tool_warned in
7427 yes:)
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7431 esac
7432 DSYMUTIL=$ac_ct_DSYMUTIL
7433 fi
7434 else
7435 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7436 fi
7437
7438 if test -n "$ac_tool_prefix"; then
7439 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7440 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_prog_NMEDIT+:} false; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 if test -n "$NMEDIT"; then
7447 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 break 2
7459 fi
7460 done
7461 done
7462 IFS=$as_save_IFS
7463
7464 fi
7465 fi
7466 NMEDIT=$ac_cv_prog_NMEDIT
7467 if test -n "$NMEDIT"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7469 $as_echo "$NMEDIT" >&6; }
7470 else
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7473 fi
7474
7475
7476 fi
7477 if test -z "$ac_cv_prog_NMEDIT"; then
7478 ac_ct_NMEDIT=$NMEDIT
7479 # Extract the first word of "nmedit", so it can be a program name with args.
7480 set dummy nmedit; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 if test -n "$ac_ct_NMEDIT"; then
7487 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7488 else
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7491 do
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7496 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 break 2
7499 fi
7500 done
7501 done
7502 IFS=$as_save_IFS
7503
7504 fi
7505 fi
7506 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7507 if test -n "$ac_ct_NMEDIT"; then
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7509 $as_echo "$ac_ct_NMEDIT" >&6; }
7510 else
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7513 fi
7514
7515 if test "x$ac_ct_NMEDIT" = x; then
7516 NMEDIT=":"
7517 else
7518 case $cross_compiling:$ac_tool_warned in
7519 yes:)
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7522 ac_tool_warned=yes ;;
7523 esac
7524 NMEDIT=$ac_ct_NMEDIT
7525 fi
7526 else
7527 NMEDIT="$ac_cv_prog_NMEDIT"
7528 fi
7529
7530 if test -n "$ac_tool_prefix"; then
7531 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7532 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_prog_LIPO+:} false; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 if test -n "$LIPO"; then
7539 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544 IFS=$as_save_IFS
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 break 2
7551 fi
7552 done
7553 done
7554 IFS=$as_save_IFS
7555
7556 fi
7557 fi
7558 LIPO=$ac_cv_prog_LIPO
7559 if test -n "$LIPO"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7561 $as_echo "$LIPO" >&6; }
7562 else
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7565 fi
7566
7567
7568 fi
7569 if test -z "$ac_cv_prog_LIPO"; then
7570 ac_ct_LIPO=$LIPO
7571 # Extract the first word of "lipo", so it can be a program name with args.
7572 set dummy lipo; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 if test -n "$ac_ct_LIPO"; then
7579 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588 ac_cv_prog_ac_ct_LIPO="lipo"
7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 break 2
7591 fi
7592 done
7593 done
7594 IFS=$as_save_IFS
7595
7596 fi
7597 fi
7598 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7599 if test -n "$ac_ct_LIPO"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7601 $as_echo "$ac_ct_LIPO" >&6; }
7602 else
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7605 fi
7606
7607 if test "x$ac_ct_LIPO" = x; then
7608 LIPO=":"
7609 else
7610 case $cross_compiling:$ac_tool_warned in
7611 yes:)
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7614 ac_tool_warned=yes ;;
7615 esac
7616 LIPO=$ac_ct_LIPO
7617 fi
7618 else
7619 LIPO="$ac_cv_prog_LIPO"
7620 fi
7621
7622 if test -n "$ac_tool_prefix"; then
7623 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7624 set dummy ${ac_tool_prefix}otool; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if ${ac_cv_prog_OTOOL+:} false; then :
7628 $as_echo_n "(cached) " >&6
7629 else
7630 if test -n "$OTOOL"; then
7631 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7632 else
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 break 2
7643 fi
7644 done
7645 done
7646 IFS=$as_save_IFS
7647
7648 fi
7649 fi
7650 OTOOL=$ac_cv_prog_OTOOL
7651 if test -n "$OTOOL"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7653 $as_echo "$OTOOL" >&6; }
7654 else
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7657 fi
7658
7659
7660 fi
7661 if test -z "$ac_cv_prog_OTOOL"; then
7662 ac_ct_OTOOL=$OTOOL
7663 # Extract the first word of "otool", so it can be a program name with args.
7664 set dummy otool; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7668 $as_echo_n "(cached) " >&6
7669 else
7670 if test -n "$ac_ct_OTOOL"; then
7671 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680 ac_cv_prog_ac_ct_OTOOL="otool"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684 done
7685 done
7686 IFS=$as_save_IFS
7687
7688 fi
7689 fi
7690 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7691 if test -n "$ac_ct_OTOOL"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7693 $as_echo "$ac_ct_OTOOL" >&6; }
7694 else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7697 fi
7698
7699 if test "x$ac_ct_OTOOL" = x; then
7700 OTOOL=":"
7701 else
7702 case $cross_compiling:$ac_tool_warned in
7703 yes:)
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706 ac_tool_warned=yes ;;
7707 esac
7708 OTOOL=$ac_ct_OTOOL
7709 fi
7710 else
7711 OTOOL="$ac_cv_prog_OTOOL"
7712 fi
7713
7714 if test -n "$ac_tool_prefix"; then
7715 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7716 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if ${ac_cv_prog_OTOOL64+:} false; then :
7720 $as_echo_n "(cached) " >&6
7721 else
7722 if test -n "$OTOOL64"; then
7723 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728 IFS=$as_save_IFS
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 break 2
7735 fi
7736 done
7737 done
7738 IFS=$as_save_IFS
7739
7740 fi
7741 fi
7742 OTOOL64=$ac_cv_prog_OTOOL64
7743 if test -n "$OTOOL64"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7745 $as_echo "$OTOOL64" >&6; }
7746 else
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750
7751
7752 fi
7753 if test -z "$ac_cv_prog_OTOOL64"; then
7754 ac_ct_OTOOL64=$OTOOL64
7755 # Extract the first word of "otool64", so it can be a program name with args.
7756 set dummy otool64; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 if test -n "$ac_ct_OTOOL64"; then
7763 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772 ac_cv_prog_ac_ct_OTOOL64="otool64"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7775 fi
7776 done
7777 done
7778 IFS=$as_save_IFS
7779
7780 fi
7781 fi
7782 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7783 if test -n "$ac_ct_OTOOL64"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7785 $as_echo "$ac_ct_OTOOL64" >&6; }
7786 else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 fi
7790
7791 if test "x$ac_ct_OTOOL64" = x; then
7792 OTOOL64=":"
7793 else
7794 case $cross_compiling:$ac_tool_warned in
7795 yes:)
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7798 ac_tool_warned=yes ;;
7799 esac
7800 OTOOL64=$ac_ct_OTOOL64
7801 fi
7802 else
7803 OTOOL64="$ac_cv_prog_OTOOL64"
7804 fi
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7833 $as_echo_n "checking for -single_module linker flag... " >&6; }
7834 if ${lt_cv_apple_cc_single_mod+:} false; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 lt_cv_apple_cc_single_mod=no
7838 if test -z "${LT_MULTI_MODULE}"; then
7839 # By default we will add the -single_module flag. You can override
7840 # by either setting the environment variable LT_MULTI_MODULE
7841 # non-empty at configure time, or by adding -multi_module to the
7842 # link flags.
7843 rm -rf libconftest.dylib*
7844 echo "int foo(void){return 1;}" > conftest.c
7845 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7846 -dynamiclib -Wl,-single_module conftest.c" >&5
7847 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7848 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7849 _lt_result=$?
7850 # If there is a non-empty error log, and "single_module"
7851 # appears in it, assume the flag caused a linker warning
7852 if test -s conftest.err && $GREP single_module conftest.err; then
7853 cat conftest.err >&5
7854 # Otherwise, if the output was created with a 0 exit code from
7855 # the compiler, it worked.
7856 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7857 lt_cv_apple_cc_single_mod=yes
7858 else
7859 cat conftest.err >&5
7860 fi
7861 rm -rf libconftest.dylib*
7862 rm -f conftest.*
7863 fi
7864 fi
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7866 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7867
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7869 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7870 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 lt_cv_ld_exported_symbols_list=no
7874 save_LDFLAGS=$LDFLAGS
7875 echo "_main" > conftest.sym
7876 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h. */
7879
7880 int
7881 main ()
7882 {
7883
7884 ;
7885 return 0;
7886 }
7887 _ACEOF
7888 if ac_fn_c_try_link "$LINENO"; then :
7889 lt_cv_ld_exported_symbols_list=yes
7890 else
7891 lt_cv_ld_exported_symbols_list=no
7892 fi
7893 rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7895 LDFLAGS="$save_LDFLAGS"
7896
7897 fi
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7899 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7900
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7902 $as_echo_n "checking for -force_load linker flag... " >&6; }
7903 if ${lt_cv_ld_force_load+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 lt_cv_ld_force_load=no
7907 cat > conftest.c << _LT_EOF
7908 int forced_loaded() { return 2;}
7909 _LT_EOF
7910 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7911 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7912 echo "$AR cru libconftest.a conftest.o" >&5
7913 $AR cru libconftest.a conftest.o 2>&5
7914 echo "$RANLIB libconftest.a" >&5
7915 $RANLIB libconftest.a 2>&5
7916 cat > conftest.c << _LT_EOF
7917 int main() { return 0;}
7918 _LT_EOF
7919 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7920 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7921 _lt_result=$?
7922 if test -s conftest.err && $GREP force_load conftest.err; then
7923 cat conftest.err >&5
7924 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7925 lt_cv_ld_force_load=yes
7926 else
7927 cat conftest.err >&5
7928 fi
7929 rm -f conftest.err libconftest.a conftest conftest.c
7930 rm -rf conftest.dSYM
7931
7932 fi
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7934 $as_echo "$lt_cv_ld_force_load" >&6; }
7935 case $host_os in
7936 rhapsody* | darwin1.[012])
7937 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7938 darwin1.*)
7939 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7940 darwin*) # darwin 5.x on
7941 # if running on 10.5 or later, the deployment target defaults
7942 # to the OS version, if on x86, and 10.4, the deployment
7943 # target defaults to 10.4. Don't you love it?
7944 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7945 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7946 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7947 10.[012]*)
7948 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7949 10.*)
7950 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7951 esac
7952 ;;
7953 esac
7954 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7955 _lt_dar_single_mod='$single_module'
7956 fi
7957 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7958 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7959 else
7960 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7961 fi
7962 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7963 _lt_dsymutil='~$DSYMUTIL $lib || :'
7964 else
7965 _lt_dsymutil=
7966 fi
7967 ;;
7968 esac
7969
7970 ac_ext=c
7971 ac_cpp='$CPP $CPPFLAGS'
7972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7976 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7977 # On Suns, sometimes $CPP names a directory.
7978 if test -n "$CPP" && test -d "$CPP"; then
7979 CPP=
7980 fi
7981 if test -z "$CPP"; then
7982 if ${ac_cv_prog_CPP+:} false; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 # Double quotes because CPP needs to be expanded
7986 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7987 do
7988 ac_preproc_ok=false
7989 for ac_c_preproc_warn_flag in '' yes
7990 do
7991 # Use a header file that comes with gcc, so configuring glibc
7992 # with a fresh cross-compiler works.
7993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7994 # <limits.h> exists even on freestanding compilers.
7995 # On the NeXT, cc -E runs the code through the compiler's parser,
7996 # not just through cpp. "Syntax error" is here to catch this case.
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
7999 #ifdef __STDC__
8000 # include <limits.h>
8001 #else
8002 # include <assert.h>
8003 #endif
8004 Syntax error
8005 _ACEOF
8006 if ac_fn_c_try_cpp "$LINENO"; then :
8007
8008 else
8009 # Broken: fails on valid input.
8010 continue
8011 fi
8012 rm -f conftest.err conftest.i conftest.$ac_ext
8013
8014 # OK, works on sane cases. Now check whether nonexistent headers
8015 # can be detected and how.
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018 #include <ac_nonexistent.h>
8019 _ACEOF
8020 if ac_fn_c_try_cpp "$LINENO"; then :
8021 # Broken: success on invalid input.
8022 continue
8023 else
8024 # Passes both tests.
8025 ac_preproc_ok=:
8026 break
8027 fi
8028 rm -f conftest.err conftest.i conftest.$ac_ext
8029
8030 done
8031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8032 rm -f conftest.i conftest.err conftest.$ac_ext
8033 if $ac_preproc_ok; then :
8034 break
8035 fi
8036
8037 done
8038 ac_cv_prog_CPP=$CPP
8039
8040 fi
8041 CPP=$ac_cv_prog_CPP
8042 else
8043 ac_cv_prog_CPP=$CPP
8044 fi
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8046 $as_echo "$CPP" >&6; }
8047 ac_preproc_ok=false
8048 for ac_c_preproc_warn_flag in '' yes
8049 do
8050 # Use a header file that comes with gcc, so configuring glibc
8051 # with a fresh cross-compiler works.
8052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8053 # <limits.h> exists even on freestanding compilers.
8054 # On the NeXT, cc -E runs the code through the compiler's parser,
8055 # not just through cpp. "Syntax error" is here to catch this case.
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 #ifdef __STDC__
8059 # include <limits.h>
8060 #else
8061 # include <assert.h>
8062 #endif
8063 Syntax error
8064 _ACEOF
8065 if ac_fn_c_try_cpp "$LINENO"; then :
8066
8067 else
8068 # Broken: fails on valid input.
8069 continue
8070 fi
8071 rm -f conftest.err conftest.i conftest.$ac_ext
8072
8073 # OK, works on sane cases. Now check whether nonexistent headers
8074 # can be detected and how.
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 #include <ac_nonexistent.h>
8078 _ACEOF
8079 if ac_fn_c_try_cpp "$LINENO"; then :
8080 # Broken: success on invalid input.
8081 continue
8082 else
8083 # Passes both tests.
8084 ac_preproc_ok=:
8085 break
8086 fi
8087 rm -f conftest.err conftest.i conftest.$ac_ext
8088
8089 done
8090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8091 rm -f conftest.i conftest.err conftest.$ac_ext
8092 if $ac_preproc_ok; then :
8093
8094 else
8095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8097 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8098 See \`config.log' for more details" "$LINENO" 5; }
8099 fi
8100
8101 ac_ext=c
8102 ac_cpp='$CPP $CPPFLAGS'
8103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8106
8107
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8109 $as_echo_n "checking for ANSI C header files... " >&6; }
8110 if ${ac_cv_header_stdc+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 #include <stdlib.h>
8116 #include <stdarg.h>
8117 #include <string.h>
8118 #include <float.h>
8119
8120 int
8121 main ()
8122 {
8123
8124 ;
8125 return 0;
8126 }
8127 _ACEOF
8128 if ac_fn_c_try_compile "$LINENO"; then :
8129 ac_cv_header_stdc=yes
8130 else
8131 ac_cv_header_stdc=no
8132 fi
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134
8135 if test $ac_cv_header_stdc = yes; then
8136 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8139 #include <string.h>
8140
8141 _ACEOF
8142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8143 $EGREP "memchr" >/dev/null 2>&1; then :
8144
8145 else
8146 ac_cv_header_stdc=no
8147 fi
8148 rm -f conftest*
8149
8150 fi
8151
8152 if test $ac_cv_header_stdc = yes; then
8153 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8156 #include <stdlib.h>
8157
8158 _ACEOF
8159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8160 $EGREP "free" >/dev/null 2>&1; then :
8161
8162 else
8163 ac_cv_header_stdc=no
8164 fi
8165 rm -f conftest*
8166
8167 fi
8168
8169 if test $ac_cv_header_stdc = yes; then
8170 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8171 if test "$cross_compiling" = yes; then :
8172 :
8173 else
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 #include <ctype.h>
8177 #include <stdlib.h>
8178 #if ((' ' & 0x0FF) == 0x020)
8179 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8180 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8181 #else
8182 # define ISLOWER(c) \
8183 (('a' <= (c) && (c) <= 'i') \
8184 || ('j' <= (c) && (c) <= 'r') \
8185 || ('s' <= (c) && (c) <= 'z'))
8186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8187 #endif
8188
8189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8190 int
8191 main ()
8192 {
8193 int i;
8194 for (i = 0; i < 256; i++)
8195 if (XOR (islower (i), ISLOWER (i))
8196 || toupper (i) != TOUPPER (i))
8197 return 2;
8198 return 0;
8199 }
8200 _ACEOF
8201 if ac_fn_c_try_run "$LINENO"; then :
8202
8203 else
8204 ac_cv_header_stdc=no
8205 fi
8206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8207 conftest.$ac_objext conftest.beam conftest.$ac_ext
8208 fi
8209
8210 fi
8211 fi
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8213 $as_echo "$ac_cv_header_stdc" >&6; }
8214 if test $ac_cv_header_stdc = yes; then
8215
8216 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8217
8218 fi
8219
8220 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8221 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8222 inttypes.h stdint.h unistd.h
8223 do :
8224 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8225 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8226 "
8227 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8228 cat >>confdefs.h <<_ACEOF
8229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8230 _ACEOF
8231
8232 fi
8233
8234 done
8235
8236
8237 for ac_header in dlfcn.h
8238 do :
8239 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8240 "
8241 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8242 cat >>confdefs.h <<_ACEOF
8243 #define HAVE_DLFCN_H 1
8244 _ACEOF
8245
8246 fi
8247
8248 done
8249
8250
8251
8252
8253
8254 # Set options
8255
8256
8257
8258 enable_dlopen=no
8259
8260
8261 enable_win32_dll=no
8262
8263
8264 # Check whether --enable-shared was given.
8265 if test "${enable_shared+set}" = set; then :
8266 enableval=$enable_shared; p=${PACKAGE-default}
8267 case $enableval in
8268 yes) enable_shared=yes ;;
8269 no) enable_shared=no ;;
8270 *)
8271 enable_shared=no
8272 # Look at the argument we got. We use all the common list separators.
8273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8274 for pkg in $enableval; do
8275 IFS="$lt_save_ifs"
8276 if test "X$pkg" = "X$p"; then
8277 enable_shared=yes
8278 fi
8279 done
8280 IFS="$lt_save_ifs"
8281 ;;
8282 esac
8283 else
8284 enable_shared=yes
8285 fi
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295 # Check whether --enable-static was given.
8296 if test "${enable_static+set}" = set; then :
8297 enableval=$enable_static; p=${PACKAGE-default}
8298 case $enableval in
8299 yes) enable_static=yes ;;
8300 no) enable_static=no ;;
8301 *)
8302 enable_static=no
8303 # Look at the argument we got. We use all the common list separators.
8304 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8305 for pkg in $enableval; do
8306 IFS="$lt_save_ifs"
8307 if test "X$pkg" = "X$p"; then
8308 enable_static=yes
8309 fi
8310 done
8311 IFS="$lt_save_ifs"
8312 ;;
8313 esac
8314 else
8315 enable_static=yes
8316 fi
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327 # Check whether --with-pic was given.
8328 if test "${with_pic+set}" = set; then :
8329 withval=$with_pic; lt_p=${PACKAGE-default}
8330 case $withval in
8331 yes|no) pic_mode=$withval ;;
8332 *)
8333 pic_mode=default
8334 # Look at the argument we got. We use all the common list separators.
8335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8336 for lt_pkg in $withval; do
8337 IFS="$lt_save_ifs"
8338 if test "X$lt_pkg" = "X$lt_p"; then
8339 pic_mode=yes
8340 fi
8341 done
8342 IFS="$lt_save_ifs"
8343 ;;
8344 esac
8345 else
8346 pic_mode=default
8347 fi
8348
8349
8350 test -z "$pic_mode" && pic_mode=default
8351
8352
8353
8354
8355
8356
8357
8358 # Check whether --enable-fast-install was given.
8359 if test "${enable_fast_install+set}" = set; then :
8360 enableval=$enable_fast_install; p=${PACKAGE-default}
8361 case $enableval in
8362 yes) enable_fast_install=yes ;;
8363 no) enable_fast_install=no ;;
8364 *)
8365 enable_fast_install=no
8366 # Look at the argument we got. We use all the common list separators.
8367 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8368 for pkg in $enableval; do
8369 IFS="$lt_save_ifs"
8370 if test "X$pkg" = "X$p"; then
8371 enable_fast_install=yes
8372 fi
8373 done
8374 IFS="$lt_save_ifs"
8375 ;;
8376 esac
8377 else
8378 enable_fast_install=yes
8379 fi
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391 # This can be used to rebuild libtool when needed
8392 LIBTOOL_DEPS="$ltmain"
8393
8394 # Always use our own libtool.
8395 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426 test -z "$LN_S" && LN_S="ln -s"
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441 if test -n "${ZSH_VERSION+set}" ; then
8442 setopt NO_GLOB_SUBST
8443 fi
8444
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8446 $as_echo_n "checking for objdir... " >&6; }
8447 if ${lt_cv_objdir+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 rm -f .libs 2>/dev/null
8451 mkdir .libs 2>/dev/null
8452 if test -d .libs; then
8453 lt_cv_objdir=.libs
8454 else
8455 # MS-DOS does not allow filenames that begin with a dot.
8456 lt_cv_objdir=_libs
8457 fi
8458 rmdir .libs 2>/dev/null
8459 fi
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8461 $as_echo "$lt_cv_objdir" >&6; }
8462 objdir=$lt_cv_objdir
8463
8464
8465
8466
8467
8468 cat >>confdefs.h <<_ACEOF
8469 #define LT_OBJDIR "$lt_cv_objdir/"
8470 _ACEOF
8471
8472
8473
8474
8475 case $host_os in
8476 aix3*)
8477 # AIX sometimes has problems with the GCC collect2 program. For some
8478 # reason, if we set the COLLECT_NAMES environment variable, the problems
8479 # vanish in a puff of smoke.
8480 if test "X${COLLECT_NAMES+set}" != Xset; then
8481 COLLECT_NAMES=
8482 export COLLECT_NAMES
8483 fi
8484 ;;
8485 esac
8486
8487 # Global variables:
8488 ofile=libtool
8489 can_build_shared=yes
8490
8491 # All known linkers require a `.a' archive for static linking (except MSVC,
8492 # which needs '.lib').
8493 libext=a
8494
8495 with_gnu_ld="$lt_cv_prog_gnu_ld"
8496
8497 old_CC="$CC"
8498 old_CFLAGS="$CFLAGS"
8499
8500 # Set sane defaults for various variables
8501 test -z "$CC" && CC=cc
8502 test -z "$LTCC" && LTCC=$CC
8503 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8504 test -z "$LD" && LD=ld
8505 test -z "$ac_objext" && ac_objext=o
8506
8507 for cc_temp in $compiler""; do
8508 case $cc_temp in
8509 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8510 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8511 \-*) ;;
8512 *) break;;
8513 esac
8514 done
8515 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8516
8517
8518 # Only perform the check for file, if the check method requires it
8519 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8520 case $deplibs_check_method in
8521 file_magic*)
8522 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8524 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8525 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 case $MAGIC_CMD in
8529 [\\/*] | ?:[\\/]*)
8530 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8531 ;;
8532 *)
8533 lt_save_MAGIC_CMD="$MAGIC_CMD"
8534 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8535 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8536 for ac_dir in $ac_dummy; do
8537 IFS="$lt_save_ifs"
8538 test -z "$ac_dir" && ac_dir=.
8539 if test -f $ac_dir/${ac_tool_prefix}file; then
8540 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8541 if test -n "$file_magic_test_file"; then
8542 case $deplibs_check_method in
8543 "file_magic "*)
8544 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8546 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8547 $EGREP "$file_magic_regex" > /dev/null; then
8548 :
8549 else
8550 cat <<_LT_EOF 1>&2
8551
8552 *** Warning: the command libtool uses to detect shared libraries,
8553 *** $file_magic_cmd, produces output that libtool cannot recognize.
8554 *** The result is that libtool may fail to recognize shared libraries
8555 *** as such. This will affect the creation of libtool libraries that
8556 *** depend on shared libraries, but programs linked with such libtool
8557 *** libraries will work regardless of this problem. Nevertheless, you
8558 *** may want to report the problem to your system manager and/or to
8559 *** [email protected]
8560
8561 _LT_EOF
8562 fi ;;
8563 esac
8564 fi
8565 break
8566 fi
8567 done
8568 IFS="$lt_save_ifs"
8569 MAGIC_CMD="$lt_save_MAGIC_CMD"
8570 ;;
8571 esac
8572 fi
8573
8574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8575 if test -n "$MAGIC_CMD"; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8577 $as_echo "$MAGIC_CMD" >&6; }
8578 else
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8581 fi
8582
8583
8584
8585
8586
8587 if test -z "$lt_cv_path_MAGIC_CMD"; then
8588 if test -n "$ac_tool_prefix"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8590 $as_echo_n "checking for file... " >&6; }
8591 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8592 $as_echo_n "(cached) " >&6
8593 else
8594 case $MAGIC_CMD in
8595 [\\/*] | ?:[\\/]*)
8596 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8597 ;;
8598 *)
8599 lt_save_MAGIC_CMD="$MAGIC_CMD"
8600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8601 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8602 for ac_dir in $ac_dummy; do
8603 IFS="$lt_save_ifs"
8604 test -z "$ac_dir" && ac_dir=.
8605 if test -f $ac_dir/file; then
8606 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8607 if test -n "$file_magic_test_file"; then
8608 case $deplibs_check_method in
8609 "file_magic "*)
8610 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8612 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8613 $EGREP "$file_magic_regex" > /dev/null; then
8614 :
8615 else
8616 cat <<_LT_EOF 1>&2
8617
8618 *** Warning: the command libtool uses to detect shared libraries,
8619 *** $file_magic_cmd, produces output that libtool cannot recognize.
8620 *** The result is that libtool may fail to recognize shared libraries
8621 *** as such. This will affect the creation of libtool libraries that
8622 *** depend on shared libraries, but programs linked with such libtool
8623 *** libraries will work regardless of this problem. Nevertheless, you
8624 *** may want to report the problem to your system manager and/or to
8625 *** [email protected]
8626
8627 _LT_EOF
8628 fi ;;
8629 esac
8630 fi
8631 break
8632 fi
8633 done
8634 IFS="$lt_save_ifs"
8635 MAGIC_CMD="$lt_save_MAGIC_CMD"
8636 ;;
8637 esac
8638 fi
8639
8640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8641 if test -n "$MAGIC_CMD"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8643 $as_echo "$MAGIC_CMD" >&6; }
8644 else
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8647 fi
8648
8649
8650 else
8651 MAGIC_CMD=:
8652 fi
8653 fi
8654
8655 fi
8656 ;;
8657 esac
8658
8659 # Use C for the default configuration in the libtool script
8660
8661 lt_save_CC="$CC"
8662 ac_ext=c
8663 ac_cpp='$CPP $CPPFLAGS'
8664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8667
8668
8669 # Source file extension for C test sources.
8670 ac_ext=c
8671
8672 # Object file extension for compiled C test sources.
8673 objext=o
8674 objext=$objext
8675
8676 # Code to be used in simple compile tests
8677 lt_simple_compile_test_code="int some_variable = 0;"
8678
8679 # Code to be used in simple link tests
8680 lt_simple_link_test_code='int main(){return(0);}'
8681
8682
8683
8684
8685
8686
8687
8688 # If no C compiler was specified, use CC.
8689 LTCC=${LTCC-"$CC"}
8690
8691 # If no C compiler flags were specified, use CFLAGS.
8692 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8693
8694 # Allow CC to be a program name with arguments.
8695 compiler=$CC
8696
8697 # Save the default compiler, since it gets overwritten when the other
8698 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8699 compiler_DEFAULT=$CC
8700
8701 # save warnings/boilerplate of simple test code
8702 ac_outfile=conftest.$ac_objext
8703 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8704 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8705 _lt_compiler_boilerplate=`cat conftest.err`
8706 $RM conftest*
8707
8708 ac_outfile=conftest.$ac_objext
8709 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8710 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8711 _lt_linker_boilerplate=`cat conftest.err`
8712 $RM -r conftest*
8713
8714
8715 ## CAVEAT EMPTOR:
8716 ## There is no encapsulation within the following macros, do not change
8717 ## the running order or otherwise move them around unless you know exactly
8718 ## what you are doing...
8719 if test -n "$compiler"; then
8720
8721 lt_prog_compiler_no_builtin_flag=
8722
8723 if test "$GCC" = yes; then
8724 case $cc_basename in
8725 nvcc*)
8726 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8727 *)
8728 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8729 esac
8730
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8732 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8733 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8736 lt_cv_prog_compiler_rtti_exceptions=no
8737 ac_outfile=conftest.$ac_objext
8738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8739 lt_compiler_flag="-fno-rtti -fno-exceptions"
8740 # Insert the option either (1) after the last *FLAGS variable, or
8741 # (2) before a word containing "conftest.", or (3) at the end.
8742 # Note that $ac_compile itself does not contain backslashes and begins
8743 # with a dollar sign (not a hyphen), so the echo should work correctly.
8744 # The option is referenced via a variable to avoid confusing sed.
8745 lt_compile=`echo "$ac_compile" | $SED \
8746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8748 -e 's:$: $lt_compiler_flag:'`
8749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8750 (eval "$lt_compile" 2>conftest.err)
8751 ac_status=$?
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 if (exit $ac_status) && test -s "$ac_outfile"; then
8755 # The compiler can only warn and ignore the option if not recognized
8756 # So say no if there are warnings other than the usual output.
8757 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8759 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8760 lt_cv_prog_compiler_rtti_exceptions=yes
8761 fi
8762 fi
8763 $RM conftest*
8764
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8767 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8768
8769 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8770 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8771 else
8772 :
8773 fi
8774
8775 fi
8776
8777
8778
8779
8780
8781
8782 lt_prog_compiler_wl=
8783 lt_prog_compiler_pic=
8784 lt_prog_compiler_static=
8785
8786
8787 if test "$GCC" = yes; then
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_static='-static'
8790
8791 case $host_os in
8792 aix*)
8793 # All AIX code is PIC.
8794 if test "$host_cpu" = ia64; then
8795 # AIX 5 now supports IA64 processor
8796 lt_prog_compiler_static='-Bstatic'
8797 fi
8798 ;;
8799
8800 amigaos*)
8801 case $host_cpu in
8802 powerpc)
8803 # see comment about AmigaOS4 .so support
8804 lt_prog_compiler_pic='-fPIC'
8805 ;;
8806 m68k)
8807 # FIXME: we need at least 68020 code to build shared libraries, but
8808 # adding the `-m68020' flag to GCC prevents building anything better,
8809 # like `-m68040'.
8810 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8811 ;;
8812 esac
8813 ;;
8814
8815 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8816 # PIC is the default for these OSes.
8817 ;;
8818
8819 mingw* | cygwin* | pw32* | os2* | cegcc*)
8820 # This hack is so that the source file can tell whether it is being
8821 # built for inclusion in a dll (and should export symbols for example).
8822 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8823 # (--disable-auto-import) libraries
8824 lt_prog_compiler_pic='-DDLL_EXPORT'
8825 ;;
8826
8827 darwin* | rhapsody*)
8828 # PIC is the default on this platform
8829 # Common symbols not allowed in MH_DYLIB files
8830 lt_prog_compiler_pic='-fno-common'
8831 ;;
8832
8833 haiku*)
8834 # PIC is the default for Haiku.
8835 # The "-static" flag exists, but is broken.
8836 lt_prog_compiler_static=
8837 ;;
8838
8839 hpux*)
8840 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8841 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8842 # sets the default TLS model and affects inlining.
8843 case $host_cpu in
8844 hppa*64*)
8845 # +Z the default
8846 ;;
8847 *)
8848 lt_prog_compiler_pic='-fPIC'
8849 ;;
8850 esac
8851 ;;
8852
8853 interix[3-9]*)
8854 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8855 # Instead, we relocate shared libraries at runtime.
8856 ;;
8857
8858 msdosdjgpp*)
8859 # Just because we use GCC doesn't mean we suddenly get shared libraries
8860 # on systems that don't support them.
8861 lt_prog_compiler_can_build_shared=no
8862 enable_shared=no
8863 ;;
8864
8865 *nto* | *qnx*)
8866 # QNX uses GNU C++, but need to define -shared option too, otherwise
8867 # it will coredump.
8868 lt_prog_compiler_pic='-fPIC -shared'
8869 ;;
8870
8871 sysv4*MP*)
8872 if test -d /usr/nec; then
8873 lt_prog_compiler_pic=-Kconform_pic
8874 fi
8875 ;;
8876
8877 *)
8878 lt_prog_compiler_pic='-fPIC'
8879 ;;
8880 esac
8881
8882 case $cc_basename in
8883 nvcc*) # Cuda Compiler Driver 2.2
8884 lt_prog_compiler_wl='-Xlinker '
8885 if test -n "$lt_prog_compiler_pic"; then
8886 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8887 fi
8888 ;;
8889 esac
8890 else
8891 # PORTME Check for flag to pass linker flags through the system compiler.
8892 case $host_os in
8893 aix*)
8894 lt_prog_compiler_wl='-Wl,'
8895 if test "$host_cpu" = ia64; then
8896 # AIX 5 now supports IA64 processor
8897 lt_prog_compiler_static='-Bstatic'
8898 else
8899 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8900 fi
8901 ;;
8902
8903 mingw* | cygwin* | pw32* | os2* | cegcc*)
8904 # This hack is so that the source file can tell whether it is being
8905 # built for inclusion in a dll (and should export symbols for example).
8906 lt_prog_compiler_pic='-DDLL_EXPORT'
8907 ;;
8908
8909 hpux9* | hpux10* | hpux11*)
8910 lt_prog_compiler_wl='-Wl,'
8911 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8912 # not for PA HP-UX.
8913 case $host_cpu in
8914 hppa*64*|ia64*)
8915 # +Z the default
8916 ;;
8917 *)
8918 lt_prog_compiler_pic='+Z'
8919 ;;
8920 esac
8921 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8922 lt_prog_compiler_static='${wl}-a ${wl}archive'
8923 ;;
8924
8925 irix5* | irix6* | nonstopux*)
8926 lt_prog_compiler_wl='-Wl,'
8927 # PIC (with -KPIC) is the default.
8928 lt_prog_compiler_static='-non_shared'
8929 ;;
8930
8931 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8932 case $cc_basename in
8933 # old Intel for x86_64 which still supported -KPIC.
8934 ecc*)
8935 lt_prog_compiler_wl='-Wl,'
8936 lt_prog_compiler_pic='-KPIC'
8937 lt_prog_compiler_static='-static'
8938 ;;
8939 # icc used to be incompatible with GCC.
8940 # ICC 10 doesn't accept -KPIC any more.
8941 icc* | ifort*)
8942 lt_prog_compiler_wl='-Wl,'
8943 lt_prog_compiler_pic='-fPIC'
8944 lt_prog_compiler_static='-static'
8945 ;;
8946 # Lahey Fortran 8.1.
8947 lf95*)
8948 lt_prog_compiler_wl='-Wl,'
8949 lt_prog_compiler_pic='--shared'
8950 lt_prog_compiler_static='--static'
8951 ;;
8952 nagfor*)
8953 # NAG Fortran compiler
8954 lt_prog_compiler_wl='-Wl,-Wl,,'
8955 lt_prog_compiler_pic='-PIC'
8956 lt_prog_compiler_static='-Bstatic'
8957 ;;
8958 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8959 # Portland Group compilers (*not* the Pentium gcc compiler,
8960 # which looks to be a dead project)
8961 lt_prog_compiler_wl='-Wl,'
8962 lt_prog_compiler_pic='-fpic'
8963 lt_prog_compiler_static='-Bstatic'
8964 ;;
8965 ccc*)
8966 lt_prog_compiler_wl='-Wl,'
8967 # All Alpha code is PIC.
8968 lt_prog_compiler_static='-non_shared'
8969 ;;
8970 xl* | bgxl* | bgf* | mpixl*)
8971 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8972 lt_prog_compiler_wl='-Wl,'
8973 lt_prog_compiler_pic='-qpic'
8974 lt_prog_compiler_static='-qstaticlink'
8975 ;;
8976 *)
8977 case `$CC -V 2>&1 | sed 5q` in
8978 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8979 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8980 lt_prog_compiler_pic='-KPIC'
8981 lt_prog_compiler_static='-Bstatic'
8982 lt_prog_compiler_wl=''
8983 ;;
8984 *Sun\ F* | *Sun*Fortran*)
8985 lt_prog_compiler_pic='-KPIC'
8986 lt_prog_compiler_static='-Bstatic'
8987 lt_prog_compiler_wl='-Qoption ld '
8988 ;;
8989 *Sun\ C*)
8990 # Sun C 5.9
8991 lt_prog_compiler_pic='-KPIC'
8992 lt_prog_compiler_static='-Bstatic'
8993 lt_prog_compiler_wl='-Wl,'
8994 ;;
8995 *Intel*\ [CF]*Compiler*)
8996 lt_prog_compiler_wl='-Wl,'
8997 lt_prog_compiler_pic='-fPIC'
8998 lt_prog_compiler_static='-static'
8999 ;;
9000 *Portland\ Group*)
9001 lt_prog_compiler_wl='-Wl,'
9002 lt_prog_compiler_pic='-fpic'
9003 lt_prog_compiler_static='-Bstatic'
9004 ;;
9005 esac
9006 ;;
9007 esac
9008 ;;
9009
9010 newsos6)
9011 lt_prog_compiler_pic='-KPIC'
9012 lt_prog_compiler_static='-Bstatic'
9013 ;;
9014
9015 *nto* | *qnx*)
9016 # QNX uses GNU C++, but need to define -shared option too, otherwise
9017 # it will coredump.
9018 lt_prog_compiler_pic='-fPIC -shared'
9019 ;;
9020
9021 osf3* | osf4* | osf5*)
9022 lt_prog_compiler_wl='-Wl,'
9023 # All OSF/1 code is PIC.
9024 lt_prog_compiler_static='-non_shared'
9025 ;;
9026
9027 rdos*)
9028 lt_prog_compiler_static='-non_shared'
9029 ;;
9030
9031 solaris*)
9032 lt_prog_compiler_pic='-KPIC'
9033 lt_prog_compiler_static='-Bstatic'
9034 case $cc_basename in
9035 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9036 lt_prog_compiler_wl='-Qoption ld ';;
9037 *)
9038 lt_prog_compiler_wl='-Wl,';;
9039 esac
9040 ;;
9041
9042 sunos4*)
9043 lt_prog_compiler_wl='-Qoption ld '
9044 lt_prog_compiler_pic='-PIC'
9045 lt_prog_compiler_static='-Bstatic'
9046 ;;
9047
9048 sysv4 | sysv4.2uw2* | sysv4.3*)
9049 lt_prog_compiler_wl='-Wl,'
9050 lt_prog_compiler_pic='-KPIC'
9051 lt_prog_compiler_static='-Bstatic'
9052 ;;
9053
9054 sysv4*MP*)
9055 if test -d /usr/nec ;then
9056 lt_prog_compiler_pic='-Kconform_pic'
9057 lt_prog_compiler_static='-Bstatic'
9058 fi
9059 ;;
9060
9061 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9062 lt_prog_compiler_wl='-Wl,'
9063 lt_prog_compiler_pic='-KPIC'
9064 lt_prog_compiler_static='-Bstatic'
9065 ;;
9066
9067 unicos*)
9068 lt_prog_compiler_wl='-Wl,'
9069 lt_prog_compiler_can_build_shared=no
9070 ;;
9071
9072 uts4*)
9073 lt_prog_compiler_pic='-pic'
9074 lt_prog_compiler_static='-Bstatic'
9075 ;;
9076
9077 *)
9078 lt_prog_compiler_can_build_shared=no
9079 ;;
9080 esac
9081 fi
9082
9083 case $host_os in
9084 # For platforms which do not support PIC, -DPIC is meaningless:
9085 *djgpp*)
9086 lt_prog_compiler_pic=
9087 ;;
9088 *)
9089 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9090 ;;
9091 esac
9092
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9094 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9095 if ${lt_cv_prog_compiler_pic+:} false; then :
9096 $as_echo_n "(cached) " >&6
9097 else
9098 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9099 fi
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9101 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9102 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9103
9104 #
9105 # Check to make sure the PIC flag actually works.
9106 #
9107 if test -n "$lt_prog_compiler_pic"; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9109 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9110 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 lt_cv_prog_compiler_pic_works=no
9114 ac_outfile=conftest.$ac_objext
9115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9116 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9117 # Insert the option either (1) after the last *FLAGS variable, or
9118 # (2) before a word containing "conftest.", or (3) at the end.
9119 # Note that $ac_compile itself does not contain backslashes and begins
9120 # with a dollar sign (not a hyphen), so the echo should work correctly.
9121 # The option is referenced via a variable to avoid confusing sed.
9122 lt_compile=`echo "$ac_compile" | $SED \
9123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9125 -e 's:$: $lt_compiler_flag:'`
9126 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9127 (eval "$lt_compile" 2>conftest.err)
9128 ac_status=$?
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 if (exit $ac_status) && test -s "$ac_outfile"; then
9132 # The compiler can only warn and ignore the option if not recognized
9133 # So say no if there are warnings other than the usual output.
9134 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9136 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9137 lt_cv_prog_compiler_pic_works=yes
9138 fi
9139 fi
9140 $RM conftest*
9141
9142 fi
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9144 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9145
9146 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9147 case $lt_prog_compiler_pic in
9148 "" | " "*) ;;
9149 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9150 esac
9151 else
9152 lt_prog_compiler_pic=
9153 lt_prog_compiler_can_build_shared=no
9154 fi
9155
9156 fi
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168 #
9169 # Check to make sure the static flag actually works.
9170 #
9171 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9173 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9174 if ${lt_cv_prog_compiler_static_works+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 lt_cv_prog_compiler_static_works=no
9178 save_LDFLAGS="$LDFLAGS"
9179 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9180 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9181 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9182 # The linker can only warn and ignore the option if not recognized
9183 # So say no if there are warnings
9184 if test -s conftest.err; then
9185 # Append any errors to the config.log.
9186 cat conftest.err 1>&5
9187 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9189 if diff conftest.exp conftest.er2 >/dev/null; then
9190 lt_cv_prog_compiler_static_works=yes
9191 fi
9192 else
9193 lt_cv_prog_compiler_static_works=yes
9194 fi
9195 fi
9196 $RM -r conftest*
9197 LDFLAGS="$save_LDFLAGS"
9198
9199 fi
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9201 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9202
9203 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9204 :
9205 else
9206 lt_prog_compiler_static=
9207 fi
9208
9209
9210
9211
9212
9213
9214
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9216 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9217 if ${lt_cv_prog_compiler_c_o+:} false; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 lt_cv_prog_compiler_c_o=no
9221 $RM -r conftest 2>/dev/null
9222 mkdir conftest
9223 cd conftest
9224 mkdir out
9225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9226
9227 lt_compiler_flag="-o out/conftest2.$ac_objext"
9228 # Insert the option either (1) after the last *FLAGS variable, or
9229 # (2) before a word containing "conftest.", or (3) at the end.
9230 # Note that $ac_compile itself does not contain backslashes and begins
9231 # with a dollar sign (not a hyphen), so the echo should work correctly.
9232 lt_compile=`echo "$ac_compile" | $SED \
9233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9235 -e 's:$: $lt_compiler_flag:'`
9236 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9237 (eval "$lt_compile" 2>out/conftest.err)
9238 ac_status=$?
9239 cat out/conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9242 then
9243 # The compiler can only warn and ignore the option if not recognized
9244 # So say no if there are warnings
9245 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9246 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9247 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9248 lt_cv_prog_compiler_c_o=yes
9249 fi
9250 fi
9251 chmod u+w . 2>&5
9252 $RM conftest*
9253 # SGI C++ compiler will create directory out/ii_files/ for
9254 # template instantiation
9255 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9256 $RM out/* && rmdir out
9257 cd ..
9258 $RM -r conftest
9259 $RM conftest*
9260
9261 fi
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9263 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9264
9265
9266
9267
9268
9269
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9271 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9272 if ${lt_cv_prog_compiler_c_o+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 lt_cv_prog_compiler_c_o=no
9276 $RM -r conftest 2>/dev/null
9277 mkdir conftest
9278 cd conftest
9279 mkdir out
9280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9281
9282 lt_compiler_flag="-o out/conftest2.$ac_objext"
9283 # Insert the option either (1) after the last *FLAGS variable, or
9284 # (2) before a word containing "conftest.", or (3) at the end.
9285 # Note that $ac_compile itself does not contain backslashes and begins
9286 # with a dollar sign (not a hyphen), so the echo should work correctly.
9287 lt_compile=`echo "$ac_compile" | $SED \
9288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9290 -e 's:$: $lt_compiler_flag:'`
9291 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9292 (eval "$lt_compile" 2>out/conftest.err)
9293 ac_status=$?
9294 cat out/conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9297 then
9298 # The compiler can only warn and ignore the option if not recognized
9299 # So say no if there are warnings
9300 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9301 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9302 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9303 lt_cv_prog_compiler_c_o=yes
9304 fi
9305 fi
9306 chmod u+w . 2>&5
9307 $RM conftest*
9308 # SGI C++ compiler will create directory out/ii_files/ for
9309 # template instantiation
9310 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9311 $RM out/* && rmdir out
9312 cd ..
9313 $RM -r conftest
9314 $RM conftest*
9315
9316 fi
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9318 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9319
9320
9321
9322
9323 hard_links="nottested"
9324 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9325 # do not overwrite the value of need_locks provided by the user
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9327 $as_echo_n "checking if we can lock with hard links... " >&6; }
9328 hard_links=yes
9329 $RM conftest*
9330 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9331 touch conftest.a
9332 ln conftest.a conftest.b 2>&5 || hard_links=no
9333 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9335 $as_echo "$hard_links" >&6; }
9336 if test "$hard_links" = no; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9338 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9339 need_locks=warn
9340 fi
9341 else
9342 need_locks=no
9343 fi
9344
9345
9346
9347
9348
9349
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9351 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9352
9353 runpath_var=
9354 allow_undefined_flag=
9355 always_export_symbols=no
9356 archive_cmds=
9357 archive_expsym_cmds=
9358 compiler_needs_object=no
9359 enable_shared_with_static_runtimes=no
9360 export_dynamic_flag_spec=
9361 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9362 hardcode_automatic=no
9363 hardcode_direct=no
9364 hardcode_direct_absolute=no
9365 hardcode_libdir_flag_spec=
9366 hardcode_libdir_separator=
9367 hardcode_minus_L=no
9368 hardcode_shlibpath_var=unsupported
9369 inherit_rpath=no
9370 link_all_deplibs=unknown
9371 module_cmds=
9372 module_expsym_cmds=
9373 old_archive_from_new_cmds=
9374 old_archive_from_expsyms_cmds=
9375 thread_safe_flag_spec=
9376 whole_archive_flag_spec=
9377 # include_expsyms should be a list of space-separated symbols to be *always*
9378 # included in the symbol list
9379 include_expsyms=
9380 # exclude_expsyms can be an extended regexp of symbols to exclude
9381 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9382 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9383 # as well as any symbol that contains `d'.
9384 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9385 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9386 # platforms (ab)use it in PIC code, but their linkers get confused if
9387 # the symbol is explicitly referenced. Since portable code cannot
9388 # rely on this symbol name, it's probably fine to never include it in
9389 # preloaded symbol tables.
9390 # Exclude shared library initialization/finalization symbols.
9391 extract_expsyms_cmds=
9392
9393 case $host_os in
9394 cygwin* | mingw* | pw32* | cegcc*)
9395 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9396 # When not using gcc, we currently assume that we are using
9397 # Microsoft Visual C++.
9398 if test "$GCC" != yes; then
9399 with_gnu_ld=no
9400 fi
9401 ;;
9402 interix*)
9403 # we just hope/assume this is gcc and not c89 (= MSVC++)
9404 with_gnu_ld=yes
9405 ;;
9406 openbsd*)
9407 with_gnu_ld=no
9408 ;;
9409 linux* | k*bsd*-gnu | gnu*)
9410 link_all_deplibs=no
9411 ;;
9412 esac
9413
9414 ld_shlibs=yes
9415
9416 # On some targets, GNU ld is compatible enough with the native linker
9417 # that we're better off using the native interface for both.
9418 lt_use_gnu_ld_interface=no
9419 if test "$with_gnu_ld" = yes; then
9420 case $host_os in
9421 aix*)
9422 # The AIX port of GNU ld has always aspired to compatibility
9423 # with the native linker. However, as the warning in the GNU ld
9424 # block says, versions before 2.19.5* couldn't really create working
9425 # shared libraries, regardless of the interface used.
9426 case `$LD -v 2>&1` in
9427 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9428 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9429 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9430 *)
9431 lt_use_gnu_ld_interface=yes
9432 ;;
9433 esac
9434 ;;
9435 *)
9436 lt_use_gnu_ld_interface=yes
9437 ;;
9438 esac
9439 fi
9440
9441 if test "$lt_use_gnu_ld_interface" = yes; then
9442 # If archive_cmds runs LD, not CC, wlarc should be empty
9443 wlarc='${wl}'
9444
9445 # Set some defaults for GNU ld with shared library support. These
9446 # are reset later if shared libraries are not supported. Putting them
9447 # here allows them to be overridden if necessary.
9448 runpath_var=LD_RUN_PATH
9449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9450 export_dynamic_flag_spec='${wl}--export-dynamic'
9451 # ancient GNU ld didn't support --whole-archive et. al.
9452 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9453 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9454 else
9455 whole_archive_flag_spec=
9456 fi
9457 supports_anon_versioning=no
9458 case `$LD -v 2>&1` in
9459 *GNU\ gold*) supports_anon_versioning=yes ;;
9460 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9461 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9462 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9463 *\ 2.11.*) ;; # other 2.11 versions
9464 *) supports_anon_versioning=yes ;;
9465 esac
9466
9467 # See if GNU ld supports shared libraries.
9468 case $host_os in
9469 aix[3-9]*)
9470 # On AIX/PPC, the GNU linker is very broken
9471 if test "$host_cpu" != ia64; then
9472 ld_shlibs=no
9473 cat <<_LT_EOF 1>&2
9474
9475 *** Warning: the GNU linker, at least up to release 2.19, is reported
9476 *** to be unable to reliably create shared libraries on AIX.
9477 *** Therefore, libtool is disabling shared libraries support. If you
9478 *** really care for shared libraries, you may want to install binutils
9479 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9480 *** You will then need to restart the configuration process.
9481
9482 _LT_EOF
9483 fi
9484 ;;
9485
9486 amigaos*)
9487 case $host_cpu in
9488 powerpc)
9489 # see comment about AmigaOS4 .so support
9490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9491 archive_expsym_cmds=''
9492 ;;
9493 m68k)
9494 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)'
9495 hardcode_libdir_flag_spec='-L$libdir'
9496 hardcode_minus_L=yes
9497 ;;
9498 esac
9499 ;;
9500
9501 beos*)
9502 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9503 allow_undefined_flag=unsupported
9504 # Joseph Beckenbach <[email protected]> says some releases of gcc
9505 # support --undefined. This deserves some investigation. FIXME
9506 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9507 else
9508 ld_shlibs=no
9509 fi
9510 ;;
9511
9512 cygwin* | mingw* | pw32* | cegcc*)
9513 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9514 # as there is no search path for DLLs.
9515 hardcode_libdir_flag_spec='-L$libdir'
9516 export_dynamic_flag_spec='${wl}--export-all-symbols'
9517 allow_undefined_flag=unsupported
9518 always_export_symbols=no
9519 enable_shared_with_static_runtimes=yes
9520 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'
9521 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9522
9523 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9525 # If the export-symbols file already is a .def file (1st line
9526 # is EXPORTS), use it as is; otherwise, prepend...
9527 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9528 cp $export_symbols $output_objdir/$soname.def;
9529 else
9530 echo EXPORTS > $output_objdir/$soname.def;
9531 cat $export_symbols >> $output_objdir/$soname.def;
9532 fi~
9533 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9534 else
9535 ld_shlibs=no
9536 fi
9537 ;;
9538
9539 haiku*)
9540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9541 link_all_deplibs=yes
9542 ;;
9543
9544 interix[3-9]*)
9545 hardcode_direct=no
9546 hardcode_shlibpath_var=no
9547 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9548 export_dynamic_flag_spec='${wl}-E'
9549 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9550 # Instead, shared libraries are loaded at an image base (0x10000000 by
9551 # default) and relocated if they conflict, which is a slow very memory
9552 # consuming and fragmenting process. To avoid this, we pick a random,
9553 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9554 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9555 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9556 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'
9557 ;;
9558
9559 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9560 tmp_diet=no
9561 if test "$host_os" = linux-dietlibc; then
9562 case $cc_basename in
9563 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9564 esac
9565 fi
9566 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9567 && test "$tmp_diet" = no
9568 then
9569 tmp_addflag=' $pic_flag'
9570 tmp_sharedflag='-shared'
9571 case $cc_basename,$host_cpu in
9572 pgcc*) # Portland Group C compiler
9573 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'
9574 tmp_addflag=' $pic_flag'
9575 ;;
9576 pgf77* | pgf90* | pgf95* | pgfortran*)
9577 # Portland Group f77 and f90 compilers
9578 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'
9579 tmp_addflag=' $pic_flag -Mnomain' ;;
9580 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9581 tmp_addflag=' -i_dynamic' ;;
9582 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9583 tmp_addflag=' -i_dynamic -nofor_main' ;;
9584 ifc* | ifort*) # Intel Fortran compiler
9585 tmp_addflag=' -nofor_main' ;;
9586 lf95*) # Lahey Fortran 8.1
9587 whole_archive_flag_spec=
9588 tmp_sharedflag='--shared' ;;
9589 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9590 tmp_sharedflag='-qmkshrobj'
9591 tmp_addflag= ;;
9592 nvcc*) # Cuda Compiler Driver 2.2
9593 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'
9594 compiler_needs_object=yes
9595 ;;
9596 esac
9597 case `$CC -V 2>&1 | sed 5q` in
9598 *Sun\ C*) # Sun C 5.9
9599 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'
9600 compiler_needs_object=yes
9601 tmp_sharedflag='-G' ;;
9602 *Sun\ F*) # Sun Fortran 8.3
9603 tmp_sharedflag='-G' ;;
9604 esac
9605 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9606
9607 if test "x$supports_anon_versioning" = xyes; then
9608 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9609 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9610 echo "local: *; };" >> $output_objdir/$libname.ver~
9611 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9612 fi
9613
9614 case $cc_basename in
9615 xlf* | bgf* | bgxlf* | mpixlf*)
9616 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9617 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9620 if test "x$supports_anon_versioning" = xyes; then
9621 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9622 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9623 echo "local: *; };" >> $output_objdir/$libname.ver~
9624 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9625 fi
9626 ;;
9627 esac
9628 else
9629 ld_shlibs=no
9630 fi
9631 ;;
9632
9633 netbsd* | netbsdelf*-gnu)
9634 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9635 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9636 wlarc=
9637 else
9638 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9639 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9640 fi
9641 ;;
9642
9643 solaris*)
9644 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9645 ld_shlibs=no
9646 cat <<_LT_EOF 1>&2
9647
9648 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9649 *** create shared libraries on Solaris systems. Therefore, libtool
9650 *** is disabling shared libraries support. We urge you to upgrade GNU
9651 *** binutils to release 2.9.1 or newer. Another option is to modify
9652 *** your PATH or compiler configuration so that the native linker is
9653 *** used, and then restart.
9654
9655 _LT_EOF
9656 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9657 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9658 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9659 else
9660 ld_shlibs=no
9661 fi
9662 ;;
9663
9664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9665 case `$LD -v 2>&1` in
9666 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9667 ld_shlibs=no
9668 cat <<_LT_EOF 1>&2
9669
9670 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9671 *** reliably create shared libraries on SCO systems. Therefore, libtool
9672 *** is disabling shared libraries support. We urge you to upgrade GNU
9673 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9674 *** your PATH or compiler configuration so that the native linker is
9675 *** used, and then restart.
9676
9677 _LT_EOF
9678 ;;
9679 *)
9680 # For security reasons, it is highly recommended that you always
9681 # use absolute paths for naming shared libraries, and exclude the
9682 # DT_RUNPATH tag from executables and libraries. But doing so
9683 # requires that you compile everything twice, which is a pain.
9684 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9687 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9688 else
9689 ld_shlibs=no
9690 fi
9691 ;;
9692 esac
9693 ;;
9694
9695 sunos4*)
9696 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9697 wlarc=
9698 hardcode_direct=yes
9699 hardcode_shlibpath_var=no
9700 ;;
9701
9702 *)
9703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9704 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9705 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9706 else
9707 ld_shlibs=no
9708 fi
9709 ;;
9710 esac
9711
9712 if test "$ld_shlibs" = no; then
9713 runpath_var=
9714 hardcode_libdir_flag_spec=
9715 export_dynamic_flag_spec=
9716 whole_archive_flag_spec=
9717 fi
9718 else
9719 # PORTME fill in a description of your system's linker (not GNU ld)
9720 case $host_os in
9721 aix3*)
9722 allow_undefined_flag=unsupported
9723 always_export_symbols=yes
9724 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'
9725 # Note: this linker hardcodes the directories in LIBPATH if there
9726 # are no directories specified by -L.
9727 hardcode_minus_L=yes
9728 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9729 # Neither direct hardcoding nor static linking is supported with a
9730 # broken collect2.
9731 hardcode_direct=unsupported
9732 fi
9733 ;;
9734
9735 aix[4-9]*)
9736 if test "$host_cpu" = ia64; then
9737 # On IA64, the linker does run time linking by default, so we don't
9738 # have to do anything special.
9739 aix_use_runtimelinking=no
9740 exp_sym_flag='-Bexport'
9741 no_entry_flag=""
9742 else
9743 # If we're using GNU nm, then we don't want the "-C" option.
9744 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9745 # Also, AIX nm treats weak defined symbols like other global
9746 # defined symbols, whereas GNU nm marks them as "W".
9747 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9748 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'
9749 else
9750 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'
9751 fi
9752 aix_use_runtimelinking=no
9753
9754 # Test if we are trying to use run time linking or normal
9755 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9756 # need to do runtime linking.
9757 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9758 for ld_flag in $LDFLAGS; do
9759 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9760 aix_use_runtimelinking=yes
9761 break
9762 fi
9763 done
9764 ;;
9765 esac
9766
9767 exp_sym_flag='-bexport'
9768 no_entry_flag='-bnoentry'
9769 fi
9770
9771 # When large executables or shared objects are built, AIX ld can
9772 # have problems creating the table of contents. If linking a library
9773 # or program results in "error TOC overflow" add -mminimal-toc to
9774 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9775 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9776
9777 archive_cmds=''
9778 hardcode_direct=yes
9779 hardcode_direct_absolute=yes
9780 hardcode_libdir_separator=':'
9781 link_all_deplibs=yes
9782 file_list_spec='${wl}-f,'
9783
9784 if test "$GCC" = yes; then
9785 case $host_os in aix4.[012]|aix4.[012].*)
9786 # We only want to do this on AIX 4.2 and lower, the check
9787 # below for broken collect2 doesn't work under 4.3+
9788 collect2name=`${CC} -print-prog-name=collect2`
9789 if test -f "$collect2name" &&
9790 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9791 then
9792 # We have reworked collect2
9793 :
9794 else
9795 # We have old collect2
9796 hardcode_direct=unsupported
9797 # It fails to find uninstalled libraries when the uninstalled
9798 # path is not listed in the libpath. Setting hardcode_minus_L
9799 # to unsupported forces relinking
9800 hardcode_minus_L=yes
9801 hardcode_libdir_flag_spec='-L$libdir'
9802 hardcode_libdir_separator=
9803 fi
9804 ;;
9805 esac
9806 shared_flag='-shared'
9807 if test "$aix_use_runtimelinking" = yes; then
9808 shared_flag="$shared_flag "'${wl}-G'
9809 fi
9810 link_all_deplibs=no
9811 else
9812 # not using gcc
9813 if test "$host_cpu" = ia64; then
9814 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9815 # chokes on -Wl,-G. The following line is correct:
9816 shared_flag='-G'
9817 else
9818 if test "$aix_use_runtimelinking" = yes; then
9819 shared_flag='${wl}-G'
9820 else
9821 shared_flag='${wl}-bM:SRE'
9822 fi
9823 fi
9824 fi
9825
9826 export_dynamic_flag_spec='${wl}-bexpall'
9827 # It seems that -bexpall does not export symbols beginning with
9828 # underscore (_), so it is better to generate a list of symbols to export.
9829 always_export_symbols=yes
9830 if test "$aix_use_runtimelinking" = yes; then
9831 # Warning - without using the other runtime loading flags (-brtl),
9832 # -berok will link without error, but may produce a broken library.
9833 allow_undefined_flag='-berok'
9834 # Determine the default libpath from the value encoded in an
9835 # empty executable.
9836 if test "${lt_cv_aix_libpath+set}" = set; then
9837 aix_libpath=$lt_cv_aix_libpath
9838 else
9839 if ${lt_cv_aix_libpath_+:} false; then :
9840 $as_echo_n "(cached) " >&6
9841 else
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9844
9845 int
9846 main ()
9847 {
9848
9849 ;
9850 return 0;
9851 }
9852 _ACEOF
9853 if ac_fn_c_try_link "$LINENO"; then :
9854
9855 lt_aix_libpath_sed='
9856 /Import File Strings/,/^$/ {
9857 /^0/ {
9858 s/^0 *\([^ ]*\) *$/\1/
9859 p
9860 }
9861 }'
9862 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9863 # Check for a 64-bit object if we didn't find anything.
9864 if test -z "$lt_cv_aix_libpath_"; then
9865 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9866 fi
9867 fi
9868 rm -f core conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9870 if test -z "$lt_cv_aix_libpath_"; then
9871 lt_cv_aix_libpath_="/usr/lib:/lib"
9872 fi
9873
9874 fi
9875
9876 aix_libpath=$lt_cv_aix_libpath_
9877 fi
9878
9879 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9880 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"
9881 else
9882 if test "$host_cpu" = ia64; then
9883 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9884 allow_undefined_flag="-z nodefs"
9885 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"
9886 else
9887 # Determine the default libpath from the value encoded in an
9888 # empty executable.
9889 if test "${lt_cv_aix_libpath+set}" = set; then
9890 aix_libpath=$lt_cv_aix_libpath
9891 else
9892 if ${lt_cv_aix_libpath_+:} false; then :
9893 $as_echo_n "(cached) " >&6
9894 else
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9897
9898 int
9899 main ()
9900 {
9901
9902 ;
9903 return 0;
9904 }
9905 _ACEOF
9906 if ac_fn_c_try_link "$LINENO"; then :
9907
9908 lt_aix_libpath_sed='
9909 /Import File Strings/,/^$/ {
9910 /^0/ {
9911 s/^0 *\([^ ]*\) *$/\1/
9912 p
9913 }
9914 }'
9915 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9916 # Check for a 64-bit object if we didn't find anything.
9917 if test -z "$lt_cv_aix_libpath_"; then
9918 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9919 fi
9920 fi
9921 rm -f core conftest.err conftest.$ac_objext \
9922 conftest$ac_exeext conftest.$ac_ext
9923 if test -z "$lt_cv_aix_libpath_"; then
9924 lt_cv_aix_libpath_="/usr/lib:/lib"
9925 fi
9926
9927 fi
9928
9929 aix_libpath=$lt_cv_aix_libpath_
9930 fi
9931
9932 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9933 # Warning - without using the other run time loading flags,
9934 # -berok will link without error, but may produce a broken library.
9935 no_undefined_flag=' ${wl}-bernotok'
9936 allow_undefined_flag=' ${wl}-berok'
9937 if test "$with_gnu_ld" = yes; then
9938 # We only use this code for GNU lds that support --whole-archive.
9939 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9940 else
9941 # Exported symbols can be pulled into shared objects from archives
9942 whole_archive_flag_spec='$convenience'
9943 fi
9944 archive_cmds_need_lc=yes
9945 # This is similar to how AIX traditionally builds its shared libraries.
9946 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'
9947 fi
9948 fi
9949 ;;
9950
9951 amigaos*)
9952 case $host_cpu in
9953 powerpc)
9954 # see comment about AmigaOS4 .so support
9955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9956 archive_expsym_cmds=''
9957 ;;
9958 m68k)
9959 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)'
9960 hardcode_libdir_flag_spec='-L$libdir'
9961 hardcode_minus_L=yes
9962 ;;
9963 esac
9964 ;;
9965
9966 bsdi[45]*)
9967 export_dynamic_flag_spec=-rdynamic
9968 ;;
9969
9970 cygwin* | mingw* | pw32* | cegcc*)
9971 # When not using gcc, we currently assume that we are using
9972 # Microsoft Visual C++.
9973 # hardcode_libdir_flag_spec is actually meaningless, as there is
9974 # no search path for DLLs.
9975 case $cc_basename in
9976 cl*)
9977 # Native MSVC
9978 hardcode_libdir_flag_spec=' '
9979 allow_undefined_flag=unsupported
9980 always_export_symbols=yes
9981 file_list_spec='@'
9982 # Tell ltmain to make .lib files, not .a files.
9983 libext=lib
9984 # Tell ltmain to make .dll files, not .so files.
9985 shrext_cmds=".dll"
9986 # FIXME: Setting linknames here is a bad hack.
9987 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9988 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9989 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9990 else
9991 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9992 fi~
9993 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9994 linknames='
9995 # The linker will not automatically build a static lib if we build a DLL.
9996 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9997 enable_shared_with_static_runtimes=yes
9998 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9999 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10000 # Don't use ranlib
10001 old_postinstall_cmds='chmod 644 $oldlib'
10002 postlink_cmds='lt_outputfile="@OUTPUT@"~
10003 lt_tool_outputfile="@TOOL_OUTPUT@"~
10004 case $lt_outputfile in
10005 *.exe|*.EXE) ;;
10006 *)
10007 lt_outputfile="$lt_outputfile.exe"
10008 lt_tool_outputfile="$lt_tool_outputfile.exe"
10009 ;;
10010 esac~
10011 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10012 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10013 $RM "$lt_outputfile.manifest";
10014 fi'
10015 ;;
10016 *)
10017 # Assume MSVC wrapper
10018 hardcode_libdir_flag_spec=' '
10019 allow_undefined_flag=unsupported
10020 # Tell ltmain to make .lib files, not .a files.
10021 libext=lib
10022 # Tell ltmain to make .dll files, not .so files.
10023 shrext_cmds=".dll"
10024 # FIXME: Setting linknames here is a bad hack.
10025 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10026 # The linker will automatically build a .lib file if we build a DLL.
10027 old_archive_from_new_cmds='true'
10028 # FIXME: Should let the user specify the lib program.
10029 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10030 enable_shared_with_static_runtimes=yes
10031 ;;
10032 esac
10033 ;;
10034
10035 darwin* | rhapsody*)
10036
10037
10038 archive_cmds_need_lc=no
10039 hardcode_direct=no
10040 hardcode_automatic=yes
10041 hardcode_shlibpath_var=unsupported
10042 if test "$lt_cv_ld_force_load" = "yes"; then
10043 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\"`'
10044
10045 else
10046 whole_archive_flag_spec=''
10047 fi
10048 link_all_deplibs=yes
10049 allow_undefined_flag="$_lt_dar_allow_undefined"
10050 case $cc_basename in
10051 ifort*) _lt_dar_can_shared=yes ;;
10052 *) _lt_dar_can_shared=$GCC ;;
10053 esac
10054 if test "$_lt_dar_can_shared" = "yes"; then
10055 output_verbose_link_cmd=func_echo_all
10056 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10057 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10058 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}"
10059 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}"
10060
10061 else
10062 ld_shlibs=no
10063 fi
10064
10065 ;;
10066
10067 dgux*)
10068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069 hardcode_libdir_flag_spec='-L$libdir'
10070 hardcode_shlibpath_var=no
10071 ;;
10072
10073 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10074 # support. Future versions do this automatically, but an explicit c++rt0.o
10075 # does not break anything, and helps significantly (at the cost of a little
10076 # extra space).
10077 freebsd2.2*)
10078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10079 hardcode_libdir_flag_spec='-R$libdir'
10080 hardcode_direct=yes
10081 hardcode_shlibpath_var=no
10082 ;;
10083
10084 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10085 freebsd2.*)
10086 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10087 hardcode_direct=yes
10088 hardcode_minus_L=yes
10089 hardcode_shlibpath_var=no
10090 ;;
10091
10092 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10093 freebsd* | dragonfly*)
10094 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10095 hardcode_libdir_flag_spec='-R$libdir'
10096 hardcode_direct=yes
10097 hardcode_shlibpath_var=no
10098 ;;
10099
10100 hpux9*)
10101 if test "$GCC" = yes; then
10102 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'
10103 else
10104 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'
10105 fi
10106 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10107 hardcode_libdir_separator=:
10108 hardcode_direct=yes
10109
10110 # hardcode_minus_L: Not really in the search PATH,
10111 # but as the default location of the library.
10112 hardcode_minus_L=yes
10113 export_dynamic_flag_spec='${wl}-E'
10114 ;;
10115
10116 hpux10*)
10117 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10118 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10119 else
10120 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10121 fi
10122 if test "$with_gnu_ld" = no; then
10123 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10124 hardcode_libdir_separator=:
10125 hardcode_direct=yes
10126 hardcode_direct_absolute=yes
10127 export_dynamic_flag_spec='${wl}-E'
10128 # hardcode_minus_L: Not really in the search PATH,
10129 # but as the default location of the library.
10130 hardcode_minus_L=yes
10131 fi
10132 ;;
10133
10134 hpux11*)
10135 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10136 case $host_cpu in
10137 hppa*64*)
10138 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10139 ;;
10140 ia64*)
10141 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10142 ;;
10143 *)
10144 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10145 ;;
10146 esac
10147 else
10148 case $host_cpu in
10149 hppa*64*)
10150 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 ;;
10152 ia64*)
10153 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10154 ;;
10155 *)
10156
10157 # Older versions of the 11.00 compiler do not understand -b yet
10158 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10160 $as_echo_n "checking if $CC understands -b... " >&6; }
10161 if ${lt_cv_prog_compiler__b+:} false; then :
10162 $as_echo_n "(cached) " >&6
10163 else
10164 lt_cv_prog_compiler__b=no
10165 save_LDFLAGS="$LDFLAGS"
10166 LDFLAGS="$LDFLAGS -b"
10167 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10168 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10169 # The linker can only warn and ignore the option if not recognized
10170 # So say no if there are warnings
10171 if test -s conftest.err; then
10172 # Append any errors to the config.log.
10173 cat conftest.err 1>&5
10174 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10176 if diff conftest.exp conftest.er2 >/dev/null; then
10177 lt_cv_prog_compiler__b=yes
10178 fi
10179 else
10180 lt_cv_prog_compiler__b=yes
10181 fi
10182 fi
10183 $RM -r conftest*
10184 LDFLAGS="$save_LDFLAGS"
10185
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10188 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10189
10190 if test x"$lt_cv_prog_compiler__b" = xyes; then
10191 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10192 else
10193 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10194 fi
10195
10196 ;;
10197 esac
10198 fi
10199 if test "$with_gnu_ld" = no; then
10200 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10201 hardcode_libdir_separator=:
10202
10203 case $host_cpu in
10204 hppa*64*|ia64*)
10205 hardcode_direct=no
10206 hardcode_shlibpath_var=no
10207 ;;
10208 *)
10209 hardcode_direct=yes
10210 hardcode_direct_absolute=yes
10211 export_dynamic_flag_spec='${wl}-E'
10212
10213 # hardcode_minus_L: Not really in the search PATH,
10214 # but as the default location of the library.
10215 hardcode_minus_L=yes
10216 ;;
10217 esac
10218 fi
10219 ;;
10220
10221 irix5* | irix6* | nonstopux*)
10222 if test "$GCC" = yes; then
10223 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'
10224 # Try to use the -exported_symbol ld option, if it does not
10225 # work, assume that -exports_file does not work either and
10226 # implicitly export all symbols.
10227 # This should be the same for all languages, so no per-tag cache variable.
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10229 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10230 if ${lt_cv_irix_exported_symbol+:} false; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 save_LDFLAGS="$LDFLAGS"
10234 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236 /* end confdefs.h. */
10237 int foo (void) { return 0; }
10238 _ACEOF
10239 if ac_fn_c_try_link "$LINENO"; then :
10240 lt_cv_irix_exported_symbol=yes
10241 else
10242 lt_cv_irix_exported_symbol=no
10243 fi
10244 rm -f core conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
10246 LDFLAGS="$save_LDFLAGS"
10247 fi
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10249 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10250 if test "$lt_cv_irix_exported_symbol" = yes; then
10251 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'
10252 fi
10253 else
10254 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'
10255 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'
10256 fi
10257 archive_cmds_need_lc='no'
10258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10259 hardcode_libdir_separator=:
10260 inherit_rpath=yes
10261 link_all_deplibs=yes
10262 ;;
10263
10264 netbsd* | netbsdelf*-gnu)
10265 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10267 else
10268 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10269 fi
10270 hardcode_libdir_flag_spec='-R$libdir'
10271 hardcode_direct=yes
10272 hardcode_shlibpath_var=no
10273 ;;
10274
10275 newsos6)
10276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10277 hardcode_direct=yes
10278 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10279 hardcode_libdir_separator=:
10280 hardcode_shlibpath_var=no
10281 ;;
10282
10283 *nto* | *qnx*)
10284 ;;
10285
10286 openbsd*)
10287 if test -f /usr/libexec/ld.so; then
10288 hardcode_direct=yes
10289 hardcode_shlibpath_var=no
10290 hardcode_direct_absolute=yes
10291 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10292 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10293 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10294 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10295 export_dynamic_flag_spec='${wl}-E'
10296 else
10297 case $host_os in
10298 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10300 hardcode_libdir_flag_spec='-R$libdir'
10301 ;;
10302 *)
10303 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10304 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10305 ;;
10306 esac
10307 fi
10308 else
10309 ld_shlibs=no
10310 fi
10311 ;;
10312
10313 os2*)
10314 hardcode_libdir_flag_spec='-L$libdir'
10315 hardcode_minus_L=yes
10316 allow_undefined_flag=unsupported
10317 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'
10318 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10319 ;;
10320
10321 osf3*)
10322 if test "$GCC" = yes; then
10323 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10324 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'
10325 else
10326 allow_undefined_flag=' -expect_unresolved \*'
10327 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'
10328 fi
10329 archive_cmds_need_lc='no'
10330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10331 hardcode_libdir_separator=:
10332 ;;
10333
10334 osf4* | osf5*) # as osf3* with the addition of -msym flag
10335 if test "$GCC" = yes; then
10336 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10337 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'
10338 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10339 else
10340 allow_undefined_flag=' -expect_unresolved \*'
10341 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'
10342 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~
10343 $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'
10344
10345 # Both c and cxx compiler support -rpath directly
10346 hardcode_libdir_flag_spec='-rpath $libdir'
10347 fi
10348 archive_cmds_need_lc='no'
10349 hardcode_libdir_separator=:
10350 ;;
10351
10352 solaris*)
10353 no_undefined_flag=' -z defs'
10354 if test "$GCC" = yes; then
10355 wlarc='${wl}'
10356 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10357 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10358 $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'
10359 else
10360 case `$CC -V 2>&1` in
10361 *"Compilers 5.0"*)
10362 wlarc=''
10363 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10365 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10366 ;;
10367 *)
10368 wlarc='${wl}'
10369 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10370 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10371 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10372 ;;
10373 esac
10374 fi
10375 hardcode_libdir_flag_spec='-R$libdir'
10376 hardcode_shlibpath_var=no
10377 case $host_os in
10378 solaris2.[0-5] | solaris2.[0-5].*) ;;
10379 *)
10380 # The compiler driver will combine and reorder linker options,
10381 # but understands `-z linker_flag'. GCC discards it without `$wl',
10382 # but is careful enough not to reorder.
10383 # Supported since Solaris 2.6 (maybe 2.5.1?)
10384 if test "$GCC" = yes; then
10385 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10386 else
10387 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10388 fi
10389 ;;
10390 esac
10391 link_all_deplibs=yes
10392 ;;
10393
10394 sunos4*)
10395 if test "x$host_vendor" = xsequent; then
10396 # Use $CC to link under sequent, because it throws in some extra .o
10397 # files that make .init and .fini sections work.
10398 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10399 else
10400 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10401 fi
10402 hardcode_libdir_flag_spec='-L$libdir'
10403 hardcode_direct=yes
10404 hardcode_minus_L=yes
10405 hardcode_shlibpath_var=no
10406 ;;
10407
10408 sysv4)
10409 case $host_vendor in
10410 sni)
10411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10412 hardcode_direct=yes # is this really true???
10413 ;;
10414 siemens)
10415 ## LD is ld it makes a PLAMLIB
10416 ## CC just makes a GrossModule.
10417 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10418 reload_cmds='$CC -r -o $output$reload_objs'
10419 hardcode_direct=no
10420 ;;
10421 motorola)
10422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10423 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10424 ;;
10425 esac
10426 runpath_var='LD_RUN_PATH'
10427 hardcode_shlibpath_var=no
10428 ;;
10429
10430 sysv4.3*)
10431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10432 hardcode_shlibpath_var=no
10433 export_dynamic_flag_spec='-Bexport'
10434 ;;
10435
10436 sysv4*MP*)
10437 if test -d /usr/nec; then
10438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10439 hardcode_shlibpath_var=no
10440 runpath_var=LD_RUN_PATH
10441 hardcode_runpath_var=yes
10442 ld_shlibs=yes
10443 fi
10444 ;;
10445
10446 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10447 no_undefined_flag='${wl}-z,text'
10448 archive_cmds_need_lc=no
10449 hardcode_shlibpath_var=no
10450 runpath_var='LD_RUN_PATH'
10451
10452 if test "$GCC" = yes; then
10453 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10454 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455 else
10456 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10457 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458 fi
10459 ;;
10460
10461 sysv5* | sco3.2v5* | sco5v6*)
10462 # Note: We can NOT use -z defs as we might desire, because we do not
10463 # link with -lc, and that would cause any symbols used from libc to
10464 # always be unresolved, which means just about no library would
10465 # ever link correctly. If we're not using GNU ld we use -z text
10466 # though, which does catch some bad symbols but isn't as heavy-handed
10467 # as -z defs.
10468 no_undefined_flag='${wl}-z,text'
10469 allow_undefined_flag='${wl}-z,nodefs'
10470 archive_cmds_need_lc=no
10471 hardcode_shlibpath_var=no
10472 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10473 hardcode_libdir_separator=':'
10474 link_all_deplibs=yes
10475 export_dynamic_flag_spec='${wl}-Bexport'
10476 runpath_var='LD_RUN_PATH'
10477
10478 if test "$GCC" = yes; then
10479 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10480 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10481 else
10482 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10483 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484 fi
10485 ;;
10486
10487 uts4*)
10488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10489 hardcode_libdir_flag_spec='-L$libdir'
10490 hardcode_shlibpath_var=no
10491 ;;
10492
10493 *)
10494 ld_shlibs=no
10495 ;;
10496 esac
10497
10498 if test x$host_vendor = xsni; then
10499 case $host in
10500 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10501 export_dynamic_flag_spec='${wl}-Blargedynsym'
10502 ;;
10503 esac
10504 fi
10505 fi
10506
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10508 $as_echo "$ld_shlibs" >&6; }
10509 test "$ld_shlibs" = no && can_build_shared=no
10510
10511 with_gnu_ld=$with_gnu_ld
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527 #
10528 # Do we need to explicitly link libc?
10529 #
10530 case "x$archive_cmds_need_lc" in
10531 x|xyes)
10532 # Assume -lc should be added
10533 archive_cmds_need_lc=yes
10534
10535 if test "$enable_shared" = yes && test "$GCC" = yes; then
10536 case $archive_cmds in
10537 *'~'*)
10538 # FIXME: we may have to deal with multi-command sequences.
10539 ;;
10540 '$CC '*)
10541 # Test whether the compiler implicitly links with -lc since on some
10542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10543 # to ld, don't add -lc before -lgcc.
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10545 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10546 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 $RM conftest*
10550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10551
10552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10553 (eval $ac_compile) 2>&5
10554 ac_status=$?
10555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10556 test $ac_status = 0; } 2>conftest.err; then
10557 soname=conftest
10558 lib=conftest
10559 libobjs=conftest.$ac_objext
10560 deplibs=
10561 wl=$lt_prog_compiler_wl
10562 pic_flag=$lt_prog_compiler_pic
10563 compiler_flags=-v
10564 linker_flags=-v
10565 verstring=
10566 output_objdir=.
10567 libname=conftest
10568 lt_save_allow_undefined_flag=$allow_undefined_flag
10569 allow_undefined_flag=
10570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10571 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10572 ac_status=$?
10573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10574 test $ac_status = 0; }
10575 then
10576 lt_cv_archive_cmds_need_lc=no
10577 else
10578 lt_cv_archive_cmds_need_lc=yes
10579 fi
10580 allow_undefined_flag=$lt_save_allow_undefined_flag
10581 else
10582 cat conftest.err 1>&5
10583 fi
10584 $RM conftest*
10585
10586 fi
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10588 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10589 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10590 ;;
10591 esac
10592 fi
10593 ;;
10594 esac
10595
10596
10597
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
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10748 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10749
10750 if test "$GCC" = yes; then
10751 case $host_os in
10752 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10753 *) lt_awk_arg="/^libraries:/" ;;
10754 esac
10755 case $host_os in
10756 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10757 *) lt_sed_strip_eq="s,=/,/,g" ;;
10758 esac
10759 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10760 case $lt_search_path_spec in
10761 *\;*)
10762 # if the path contains ";" then we assume it to be the separator
10763 # otherwise default to the standard path separator (i.e. ":") - it is
10764 # assumed that no part of a normal pathname contains ";" but that should
10765 # okay in the real world where ";" in dirpaths is itself problematic.
10766 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10767 ;;
10768 *)
10769 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10770 ;;
10771 esac
10772 # Ok, now we have the path, separated by spaces, we can step through it
10773 # and add multilib dir if necessary.
10774 lt_tmp_lt_search_path_spec=
10775 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10776 for lt_sys_path in $lt_search_path_spec; do
10777 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10778 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10779 else
10780 test -d "$lt_sys_path" && \
10781 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10782 fi
10783 done
10784 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10785 BEGIN {RS=" "; FS="/|\n";} {
10786 lt_foo="";
10787 lt_count=0;
10788 for (lt_i = NF; lt_i > 0; lt_i--) {
10789 if ($lt_i != "" && $lt_i != ".") {
10790 if ($lt_i == "..") {
10791 lt_count++;
10792 } else {
10793 if (lt_count == 0) {
10794 lt_foo="/" $lt_i lt_foo;
10795 } else {
10796 lt_count--;
10797 }
10798 }
10799 }
10800 }
10801 if (lt_foo != "") { lt_freq[lt_foo]++; }
10802 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10803 }'`
10804 # AWK program above erroneously prepends '/' to C:/dos/paths
10805 # for these hosts.
10806 case $host_os in
10807 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10808 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10809 esac
10810 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10811 else
10812 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10813 fi
10814 library_names_spec=
10815 libname_spec='lib$name'
10816 soname_spec=
10817 shrext_cmds=".so"
10818 postinstall_cmds=
10819 postuninstall_cmds=
10820 finish_cmds=
10821 finish_eval=
10822 shlibpath_var=
10823 shlibpath_overrides_runpath=unknown
10824 version_type=none
10825 dynamic_linker="$host_os ld.so"
10826 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10827 need_lib_prefix=unknown
10828 hardcode_into_libs=no
10829
10830 # when you set need_version to no, make sure it does not cause -set_version
10831 # flags to be left without arguments
10832 need_version=unknown
10833
10834 case $host_os in
10835 aix3*)
10836 version_type=linux # correct to gnu/linux during the next big refactor
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10838 shlibpath_var=LIBPATH
10839
10840 # AIX 3 has no versioning support, so we append a major version to the name.
10841 soname_spec='${libname}${release}${shared_ext}$major'
10842 ;;
10843
10844 aix[4-9]*)
10845 version_type=linux # correct to gnu/linux during the next big refactor
10846 need_lib_prefix=no
10847 need_version=no
10848 hardcode_into_libs=yes
10849 if test "$host_cpu" = ia64; then
10850 # AIX 5 supports IA64
10851 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10852 shlibpath_var=LD_LIBRARY_PATH
10853 else
10854 # With GCC up to 2.95.x, collect2 would create an import file
10855 # for dependence libraries. The import file would start with
10856 # the line `#! .'. This would cause the generated library to
10857 # depend on `.', always an invalid library. This was fixed in
10858 # development snapshots of GCC prior to 3.0.
10859 case $host_os in
10860 aix4 | aix4.[01] | aix4.[01].*)
10861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10862 echo ' yes '
10863 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10864 :
10865 else
10866 can_build_shared=no
10867 fi
10868 ;;
10869 esac
10870 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10871 # soname into executable. Probably we can add versioning support to
10872 # collect2, so additional links can be useful in future.
10873 if test "$aix_use_runtimelinking" = yes; then
10874 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10875 # instead of lib<name>.a to let people know that these are not
10876 # typical AIX shared libraries.
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10878 else
10879 # We preserve .a as extension for shared libraries through AIX4.2
10880 # and later when we are not doing run time linking.
10881 library_names_spec='${libname}${release}.a $libname.a'
10882 soname_spec='${libname}${release}${shared_ext}$major'
10883 fi
10884 shlibpath_var=LIBPATH
10885 fi
10886 ;;
10887
10888 amigaos*)
10889 case $host_cpu in
10890 powerpc)
10891 # Since July 2007 AmigaOS4 officially supports .so libraries.
10892 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 ;;
10895 m68k)
10896 library_names_spec='$libname.ixlibrary $libname.a'
10897 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10898 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'
10899 ;;
10900 esac
10901 ;;
10902
10903 beos*)
10904 library_names_spec='${libname}${shared_ext}'
10905 dynamic_linker="$host_os ld.so"
10906 shlibpath_var=LIBRARY_PATH
10907 ;;
10908
10909 bsdi[45]*)
10910 version_type=linux # correct to gnu/linux during the next big refactor
10911 need_version=no
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10915 shlibpath_var=LD_LIBRARY_PATH
10916 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10917 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10918 # the default ld.so.conf also contains /usr/contrib/lib and
10919 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10920 # libtool to hard-code these into programs
10921 ;;
10922
10923 cygwin* | mingw* | pw32* | cegcc*)
10924 version_type=windows
10925 shrext_cmds=".dll"
10926 need_version=no
10927 need_lib_prefix=no
10928
10929 case $GCC,$cc_basename in
10930 yes,*)
10931 # gcc
10932 library_names_spec='$libname.dll.a'
10933 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10934 postinstall_cmds='base_file=`basename \${file}`~
10935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10936 dldir=$destdir/`dirname \$dlpath`~
10937 test -d \$dldir || mkdir -p \$dldir~
10938 $install_prog $dir/$dlname \$dldir/$dlname~
10939 chmod a+x \$dldir/$dlname~
10940 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10941 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10942 fi'
10943 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10944 dlpath=$dir/\$dldll~
10945 $RM \$dlpath'
10946 shlibpath_overrides_runpath=yes
10947
10948 case $host_os in
10949 cygwin*)
10950 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10951 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10952
10953 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10954 ;;
10955 mingw* | cegcc*)
10956 # MinGW DLLs use traditional 'lib' prefix
10957 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10958 ;;
10959 pw32*)
10960 # pw32 DLLs use 'pw' prefix rather than 'lib'
10961 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10962 ;;
10963 esac
10964 dynamic_linker='Win32 ld.exe'
10965 ;;
10966
10967 *,cl*)
10968 # Native MSVC
10969 libname_spec='$name'
10970 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10971 library_names_spec='${libname}.dll.lib'
10972
10973 case $build_os in
10974 mingw*)
10975 sys_lib_search_path_spec=
10976 lt_save_ifs=$IFS
10977 IFS=';'
10978 for lt_path in $LIB
10979 do
10980 IFS=$lt_save_ifs
10981 # Let DOS variable expansion print the short 8.3 style file name.
10982 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10983 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10984 done
10985 IFS=$lt_save_ifs
10986 # Convert to MSYS style.
10987 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10988 ;;
10989 cygwin*)
10990 # Convert to unix form, then to dos form, then back to unix form
10991 # but this time dos style (no spaces!) so that the unix form looks
10992 # like /cygdrive/c/PROGRA~1:/cygdr...
10993 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10994 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10995 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10996 ;;
10997 *)
10998 sys_lib_search_path_spec="$LIB"
10999 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11000 # It is most probably a Windows format PATH.
11001 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11002 else
11003 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11004 fi
11005 # FIXME: find the short name or the path components, as spaces are
11006 # common. (e.g. "Program Files" -> "PROGRA~1")
11007 ;;
11008 esac
11009
11010 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11011 postinstall_cmds='base_file=`basename \${file}`~
11012 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11013 dldir=$destdir/`dirname \$dlpath`~
11014 test -d \$dldir || mkdir -p \$dldir~
11015 $install_prog $dir/$dlname \$dldir/$dlname'
11016 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11017 dlpath=$dir/\$dldll~
11018 $RM \$dlpath'
11019 shlibpath_overrides_runpath=yes
11020 dynamic_linker='Win32 link.exe'
11021 ;;
11022
11023 *)
11024 # Assume MSVC wrapper
11025 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11026 dynamic_linker='Win32 ld.exe'
11027 ;;
11028 esac
11029 # FIXME: first we should search . and the directory the executable is in
11030 shlibpath_var=PATH
11031 ;;
11032
11033 darwin* | rhapsody*)
11034 dynamic_linker="$host_os dyld"
11035 version_type=darwin
11036 need_lib_prefix=no
11037 need_version=no
11038 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11039 soname_spec='${libname}${release}${major}$shared_ext'
11040 shlibpath_overrides_runpath=yes
11041 shlibpath_var=DYLD_LIBRARY_PATH
11042 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11043
11044 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11045 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11046 ;;
11047
11048 dgux*)
11049 version_type=linux # correct to gnu/linux during the next big refactor
11050 need_lib_prefix=no
11051 need_version=no
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11053 soname_spec='${libname}${release}${shared_ext}$major'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 ;;
11056
11057 freebsd* | dragonfly*)
11058 # DragonFly does not have aout. When/if they implement a new
11059 # versioning mechanism, adjust this.
11060 if test -x /usr/bin/objformat; then
11061 objformat=`/usr/bin/objformat`
11062 else
11063 case $host_os in
11064 freebsd[23].*) objformat=aout ;;
11065 *) objformat=elf ;;
11066 esac
11067 fi
11068 version_type=freebsd-$objformat
11069 case $version_type in
11070 freebsd-elf*)
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11072 need_version=no
11073 need_lib_prefix=no
11074 ;;
11075 freebsd-*)
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11077 need_version=yes
11078 ;;
11079 esac
11080 shlibpath_var=LD_LIBRARY_PATH
11081 case $host_os in
11082 freebsd2.*)
11083 shlibpath_overrides_runpath=yes
11084 ;;
11085 freebsd3.[01]* | freebsdelf3.[01]*)
11086 shlibpath_overrides_runpath=yes
11087 hardcode_into_libs=yes
11088 ;;
11089 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11090 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11091 shlibpath_overrides_runpath=no
11092 hardcode_into_libs=yes
11093 ;;
11094 *) # from 4.6 on, and DragonFly
11095 shlibpath_overrides_runpath=yes
11096 hardcode_into_libs=yes
11097 ;;
11098 esac
11099 ;;
11100
11101 haiku*)
11102 version_type=linux # correct to gnu/linux during the next big refactor
11103 need_lib_prefix=no
11104 need_version=no
11105 dynamic_linker="$host_os runtime_loader"
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 shlibpath_var=LIBRARY_PATH
11109 shlibpath_overrides_runpath=yes
11110 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11111 hardcode_into_libs=yes
11112 ;;
11113
11114 hpux9* | hpux10* | hpux11*)
11115 # Give a soname corresponding to the major version so that dld.sl refuses to
11116 # link against other versions.
11117 version_type=sunos
11118 need_lib_prefix=no
11119 need_version=no
11120 case $host_cpu in
11121 ia64*)
11122 shrext_cmds='.so'
11123 hardcode_into_libs=yes
11124 dynamic_linker="$host_os dld.so"
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 if test "X$HPUX_IA64_MODE" = X32; then
11130 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11131 else
11132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11133 fi
11134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11135 ;;
11136 hppa*64*)
11137 shrext_cmds='.sl'
11138 hardcode_into_libs=yes
11139 dynamic_linker="$host_os dld.sl"
11140 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143 soname_spec='${libname}${release}${shared_ext}$major'
11144 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11146 ;;
11147 *)
11148 shrext_cmds='.sl'
11149 dynamic_linker="$host_os dld.sl"
11150 shlibpath_var=SHLIB_PATH
11151 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 ;;
11155 esac
11156 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11157 postinstall_cmds='chmod 555 $lib'
11158 # or fails outright, so override atomically:
11159 install_override_mode=555
11160 ;;
11161
11162 interix[3-9]*)
11163 version_type=linux # correct to gnu/linux during the next big refactor
11164 need_lib_prefix=no
11165 need_version=no
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11167 soname_spec='${libname}${release}${shared_ext}$major'
11168 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 shlibpath_overrides_runpath=no
11171 hardcode_into_libs=yes
11172 ;;
11173
11174 irix5* | irix6* | nonstopux*)
11175 case $host_os in
11176 nonstopux*) version_type=nonstopux ;;
11177 *)
11178 if test "$lt_cv_prog_gnu_ld" = yes; then
11179 version_type=linux # correct to gnu/linux during the next big refactor
11180 else
11181 version_type=irix
11182 fi ;;
11183 esac
11184 need_lib_prefix=no
11185 need_version=no
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11188 case $host_os in
11189 irix5* | nonstopux*)
11190 libsuff= shlibsuff=
11191 ;;
11192 *)
11193 case $LD in # libtool.m4 will add one of these switches to LD
11194 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11195 libsuff= shlibsuff= libmagic=32-bit;;
11196 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11197 libsuff=32 shlibsuff=N32 libmagic=N32;;
11198 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11199 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11200 *) libsuff= shlibsuff= libmagic=never-match;;
11201 esac
11202 ;;
11203 esac
11204 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11205 shlibpath_overrides_runpath=no
11206 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11207 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11208 hardcode_into_libs=yes
11209 ;;
11210
11211 # No shared lib support for Linux oldld, aout, or coff.
11212 linux*oldld* | linux*aout* | linux*coff*)
11213 dynamic_linker=no
11214 ;;
11215
11216 # This must be glibc/ELF.
11217 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11218 version_type=linux # correct to gnu/linux during the next big refactor
11219 need_lib_prefix=no
11220 need_version=no
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 soname_spec='${libname}${release}${shared_ext}$major'
11223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11224 shlibpath_var=LD_LIBRARY_PATH
11225 shlibpath_overrides_runpath=no
11226
11227 # Some binutils ld are patched to set DT_RUNPATH
11228 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11231 lt_cv_shlibpath_overrides_runpath=no
11232 save_LDFLAGS=$LDFLAGS
11233 save_libdir=$libdir
11234 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11235 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11238
11239 int
11240 main ()
11241 {
11242
11243 ;
11244 return 0;
11245 }
11246 _ACEOF
11247 if ac_fn_c_try_link "$LINENO"; then :
11248 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11249 lt_cv_shlibpath_overrides_runpath=yes
11250 fi
11251 fi
11252 rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11254 LDFLAGS=$save_LDFLAGS
11255 libdir=$save_libdir
11256
11257 fi
11258
11259 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11260
11261 # This implies no fast_install, which is unacceptable.
11262 # Some rework will be needed to allow for fast_install
11263 # before this can be enabled.
11264 hardcode_into_libs=yes
11265
11266 # Append ld.so.conf contents to the search path
11267 if test -f /etc/ld.so.conf; then
11268 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' ' '`
11269 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11270 fi
11271
11272 # We used to test for /lib/ld.so.1 and disable shared libraries on
11273 # powerpc, because MkLinux only supported shared libraries with the
11274 # GNU dynamic linker. Since this was broken with cross compilers,
11275 # most powerpc-linux boxes support dynamic linking these days and
11276 # people can always --disable-shared, the test was removed, and we
11277 # assume the GNU/Linux dynamic linker is in use.
11278 dynamic_linker='GNU/Linux ld.so'
11279 ;;
11280
11281 netbsdelf*-gnu)
11282 version_type=linux
11283 need_lib_prefix=no
11284 need_version=no
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11286 soname_spec='${libname}${release}${shared_ext}$major'
11287 shlibpath_var=LD_LIBRARY_PATH
11288 shlibpath_overrides_runpath=no
11289 hardcode_into_libs=yes
11290 dynamic_linker='NetBSD ld.elf_so'
11291 ;;
11292
11293 netbsd*)
11294 # ts B51007 : changed version_type for lt_main.sh from "sunos" to "netbsd"
11295 version_type=netbsd
11296 need_lib_prefix=no
11297 need_version=no
11298 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11301 dynamic_linker='NetBSD (a.out) ld.so'
11302 else
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 dynamic_linker='NetBSD ld.elf_so'
11306 fi
11307 shlibpath_var=LD_LIBRARY_PATH
11308 shlibpath_overrides_runpath=yes
11309 hardcode_into_libs=yes
11310 ;;
11311
11312 newsos6)
11313 version_type=linux # correct to gnu/linux during the next big refactor
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11315 shlibpath_var=LD_LIBRARY_PATH
11316 shlibpath_overrides_runpath=yes
11317 ;;
11318
11319 *nto* | *qnx*)
11320 version_type=qnx
11321 need_lib_prefix=no
11322 need_version=no
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=no
11327 hardcode_into_libs=yes
11328 dynamic_linker='ldqnx.so'
11329 ;;
11330
11331 openbsd*)
11332 # ts B60722 : changed version_type for lt_main.sh from "sunos" to "netbsd"
11333 # http://www.openbsd.org/faq/ports/specialtopics.html
11334 # "Understanding shared libraries number rules"
11335 version_type=netbsd
11336 sys_lib_dlsearch_path_spec="/usr/lib"
11337 need_lib_prefix=no
11338 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11339 case $host_os in
11340 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11341 *) need_version=no ;;
11342 esac
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11345 shlibpath_var=LD_LIBRARY_PATH
11346 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11347 case $host_os in
11348 openbsd2.[89] | openbsd2.[89].*)
11349 shlibpath_overrides_runpath=no
11350 ;;
11351 *)
11352 shlibpath_overrides_runpath=yes
11353 ;;
11354 esac
11355 else
11356 shlibpath_overrides_runpath=yes
11357 fi
11358 ;;
11359
11360 os2*)
11361 libname_spec='$name'
11362 shrext_cmds=".dll"
11363 need_lib_prefix=no
11364 library_names_spec='$libname${shared_ext} $libname.a'
11365 dynamic_linker='OS/2 ld.exe'
11366 shlibpath_var=LIBPATH
11367 ;;
11368
11369 osf3* | osf4* | osf5*)
11370 version_type=osf
11371 need_lib_prefix=no
11372 need_version=no
11373 soname_spec='${libname}${release}${shared_ext}$major'
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 shlibpath_var=LD_LIBRARY_PATH
11376 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11377 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11378 ;;
11379
11380 rdos*)
11381 dynamic_linker=no
11382 ;;
11383
11384 solaris*)
11385 version_type=linux # correct to gnu/linux during the next big refactor
11386 need_lib_prefix=no
11387 need_version=no
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 shlibpath_var=LD_LIBRARY_PATH
11391 shlibpath_overrides_runpath=yes
11392 hardcode_into_libs=yes
11393 # ldd complains unless libraries are executable
11394 postinstall_cmds='chmod +x $lib'
11395 ;;
11396
11397 sunos4*)
11398 version_type=sunos
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11400 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11401 shlibpath_var=LD_LIBRARY_PATH
11402 shlibpath_overrides_runpath=yes
11403 if test "$with_gnu_ld" = yes; then
11404 need_lib_prefix=no
11405 fi
11406 need_version=yes
11407 ;;
11408
11409 sysv4 | sysv4.3*)
11410 version_type=linux # correct to gnu/linux during the next big refactor
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11412 soname_spec='${libname}${release}${shared_ext}$major'
11413 shlibpath_var=LD_LIBRARY_PATH
11414 case $host_vendor in
11415 sni)
11416 shlibpath_overrides_runpath=no
11417 need_lib_prefix=no
11418 runpath_var=LD_RUN_PATH
11419 ;;
11420 siemens)
11421 need_lib_prefix=no
11422 ;;
11423 motorola)
11424 need_lib_prefix=no
11425 need_version=no
11426 shlibpath_overrides_runpath=no
11427 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11428 ;;
11429 esac
11430 ;;
11431
11432 sysv4*MP*)
11433 if test -d /usr/nec ;then
11434 version_type=linux # correct to gnu/linux during the next big refactor
11435 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11436 soname_spec='$libname${shared_ext}.$major'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 fi
11439 ;;
11440
11441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11442 version_type=freebsd-elf
11443 need_lib_prefix=no
11444 need_version=no
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 shlibpath_overrides_runpath=yes
11449 hardcode_into_libs=yes
11450 if test "$with_gnu_ld" = yes; then
11451 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11452 else
11453 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11454 case $host_os in
11455 sco3.2v5*)
11456 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11457 ;;
11458 esac
11459 fi
11460 sys_lib_dlsearch_path_spec='/usr/lib'
11461 ;;
11462
11463 tpf*)
11464 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11465 version_type=linux # correct to gnu/linux during the next big refactor
11466 need_lib_prefix=no
11467 need_version=no
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11469 shlibpath_var=LD_LIBRARY_PATH
11470 shlibpath_overrides_runpath=no
11471 hardcode_into_libs=yes
11472 ;;
11473
11474 uts4*)
11475 version_type=linux # correct to gnu/linux during the next big refactor
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 soname_spec='${libname}${release}${shared_ext}$major'
11478 shlibpath_var=LD_LIBRARY_PATH
11479 ;;
11480
11481 *)
11482 dynamic_linker=no
11483 ;;
11484 esac
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11486 $as_echo "$dynamic_linker" >&6; }
11487 test "$dynamic_linker" = no && can_build_shared=no
11488
11489 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11490 if test "$GCC" = yes; then
11491 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11492 fi
11493
11494 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11495 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11496 fi
11497 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11498 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11499 fi
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11593 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11594 hardcode_action=
11595 if test -n "$hardcode_libdir_flag_spec" ||
11596 test -n "$runpath_var" ||
11597 test "X$hardcode_automatic" = "Xyes" ; then
11598
11599 # We can hardcode non-existent directories.
11600 if test "$hardcode_direct" != no &&
11601 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11602 # have to relink, otherwise we might link with an installed library
11603 # when we should be linking with a yet-to-be-installed one
11604 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11605 test "$hardcode_minus_L" != no; then
11606 # Linking always hardcodes the temporary library directory.
11607 hardcode_action=relink
11608 else
11609 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11610 hardcode_action=immediate
11611 fi
11612 else
11613 # We cannot hardcode anything, or else we can only hardcode existing
11614 # directories.
11615 hardcode_action=unsupported
11616 fi
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11618 $as_echo "$hardcode_action" >&6; }
11619
11620 if test "$hardcode_action" = relink ||
11621 test "$inherit_rpath" = yes; then
11622 # Fast installation is not supported
11623 enable_fast_install=no
11624 elif test "$shlibpath_overrides_runpath" = yes ||
11625 test "$enable_shared" = no; then
11626 # Fast installation is not necessary
11627 enable_fast_install=needless
11628 fi
11629
11630
11631
11632
11633
11634
11635 if test "x$enable_dlopen" != xyes; then
11636 enable_dlopen=unknown
11637 enable_dlopen_self=unknown
11638 enable_dlopen_self_static=unknown
11639 else
11640 lt_cv_dlopen=no
11641 lt_cv_dlopen_libs=
11642
11643 case $host_os in
11644 beos*)
11645 lt_cv_dlopen="load_add_on"
11646 lt_cv_dlopen_libs=
11647 lt_cv_dlopen_self=yes
11648 ;;
11649
11650 mingw* | pw32* | cegcc*)
11651 lt_cv_dlopen="LoadLibrary"
11652 lt_cv_dlopen_libs=
11653 ;;
11654
11655 cygwin*)
11656 lt_cv_dlopen="dlopen"
11657 lt_cv_dlopen_libs=
11658 ;;
11659
11660 darwin*)
11661 # if libdl is installed we need to link against it
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11663 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11664 if ${ac_cv_lib_dl_dlopen+:} false; then :
11665 $as_echo_n "(cached) " >&6
11666 else
11667 ac_check_lib_save_LIBS=$LIBS
11668 LIBS="-ldl $LIBS"
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11671
11672 /* Override any GCC internal prototype to avoid an error.
11673 Use char because int might match the return type of a GCC
11674 builtin and then its argument prototype would still apply. */
11675 #ifdef __cplusplus
11676 extern "C"
11677 #endif
11678 char dlopen ();
11679 int
11680 main ()
11681 {
11682 return dlopen ();
11683 ;
11684 return 0;
11685 }
11686 _ACEOF
11687 if ac_fn_c_try_link "$LINENO"; then :
11688 ac_cv_lib_dl_dlopen=yes
11689 else
11690 ac_cv_lib_dl_dlopen=no
11691 fi
11692 rm -f core conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11694 LIBS=$ac_check_lib_save_LIBS
11695 fi
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11697 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11698 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11700 else
11701
11702 lt_cv_dlopen="dyld"
11703 lt_cv_dlopen_libs=
11704 lt_cv_dlopen_self=yes
11705
11706 fi
11707
11708 ;;
11709
11710 *)
11711 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11712 if test "x$ac_cv_func_shl_load" = xyes; then :
11713 lt_cv_dlopen="shl_load"
11714 else
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11716 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11717 if ${ac_cv_lib_dld_shl_load+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719 else
11720 ac_check_lib_save_LIBS=$LIBS
11721 LIBS="-ldld $LIBS"
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11724
11725 /* Override any GCC internal prototype to avoid an error.
11726 Use char because int might match the return type of a GCC
11727 builtin and then its argument prototype would still apply. */
11728 #ifdef __cplusplus
11729 extern "C"
11730 #endif
11731 char shl_load ();
11732 int
11733 main ()
11734 {
11735 return shl_load ();
11736 ;
11737 return 0;
11738 }
11739 _ACEOF
11740 if ac_fn_c_try_link "$LINENO"; then :
11741 ac_cv_lib_dld_shl_load=yes
11742 else
11743 ac_cv_lib_dld_shl_load=no
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11748 fi
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11750 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11751 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11752 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11753 else
11754 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11755 if test "x$ac_cv_func_dlopen" = xyes; then :
11756 lt_cv_dlopen="dlopen"
11757 else
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11759 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11760 if ${ac_cv_lib_dl_dlopen+:} false; then :
11761 $as_echo_n "(cached) " >&6
11762 else
11763 ac_check_lib_save_LIBS=$LIBS
11764 LIBS="-ldl $LIBS"
11765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766 /* end confdefs.h. */
11767
11768 /* Override any GCC internal prototype to avoid an error.
11769 Use char because int might match the return type of a GCC
11770 builtin and then its argument prototype would still apply. */
11771 #ifdef __cplusplus
11772 extern "C"
11773 #endif
11774 char dlopen ();
11775 int
11776 main ()
11777 {
11778 return dlopen ();
11779 ;
11780 return 0;
11781 }
11782 _ACEOF
11783 if ac_fn_c_try_link "$LINENO"; then :
11784 ac_cv_lib_dl_dlopen=yes
11785 else
11786 ac_cv_lib_dl_dlopen=no
11787 fi
11788 rm -f core conftest.err conftest.$ac_objext \
11789 conftest$ac_exeext conftest.$ac_ext
11790 LIBS=$ac_check_lib_save_LIBS
11791 fi
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11793 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11794 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11796 else
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11798 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11799 if ${ac_cv_lib_svld_dlopen+:} false; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 ac_check_lib_save_LIBS=$LIBS
11803 LIBS="-lsvld $LIBS"
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11806
11807 /* Override any GCC internal prototype to avoid an error.
11808 Use char because int might match the return type of a GCC
11809 builtin and then its argument prototype would still apply. */
11810 #ifdef __cplusplus
11811 extern "C"
11812 #endif
11813 char dlopen ();
11814 int
11815 main ()
11816 {
11817 return dlopen ();
11818 ;
11819 return 0;
11820 }
11821 _ACEOF
11822 if ac_fn_c_try_link "$LINENO"; then :
11823 ac_cv_lib_svld_dlopen=yes
11824 else
11825 ac_cv_lib_svld_dlopen=no
11826 fi
11827 rm -f core conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11829 LIBS=$ac_check_lib_save_LIBS
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11832 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11833 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11835 else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11837 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11838 if ${ac_cv_lib_dld_dld_link+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 ac_check_lib_save_LIBS=$LIBS
11842 LIBS="-ldld $LIBS"
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11845
11846 /* Override any GCC internal prototype to avoid an error.
11847 Use char because int might match the return type of a GCC
11848 builtin and then its argument prototype would still apply. */
11849 #ifdef __cplusplus
11850 extern "C"
11851 #endif
11852 char dld_link ();
11853 int
11854 main ()
11855 {
11856 return dld_link ();
11857 ;
11858 return 0;
11859 }
11860 _ACEOF
11861 if ac_fn_c_try_link "$LINENO"; then :
11862 ac_cv_lib_dld_dld_link=yes
11863 else
11864 ac_cv_lib_dld_dld_link=no
11865 fi
11866 rm -f core conftest.err conftest.$ac_objext \
11867 conftest$ac_exeext conftest.$ac_ext
11868 LIBS=$ac_check_lib_save_LIBS
11869 fi
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11871 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11872 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11873 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11874 fi
11875
11876
11877 fi
11878
11879
11880 fi
11881
11882
11883 fi
11884
11885
11886 fi
11887
11888
11889 fi
11890
11891 ;;
11892 esac
11893
11894 if test "x$lt_cv_dlopen" != xno; then
11895 enable_dlopen=yes
11896 else
11897 enable_dlopen=no
11898 fi
11899
11900 case $lt_cv_dlopen in
11901 dlopen)
11902 save_CPPFLAGS="$CPPFLAGS"
11903 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11904
11905 save_LDFLAGS="$LDFLAGS"
11906 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11907
11908 save_LIBS="$LIBS"
11909 LIBS="$lt_cv_dlopen_libs $LIBS"
11910
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11912 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11913 if ${lt_cv_dlopen_self+:} false; then :
11914 $as_echo_n "(cached) " >&6
11915 else
11916 if test "$cross_compiling" = yes; then :
11917 lt_cv_dlopen_self=cross
11918 else
11919 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11920 lt_status=$lt_dlunknown
11921 cat > conftest.$ac_ext <<_LT_EOF
11922 #line $LINENO "configure"
11923 #include "confdefs.h"
11924
11925 #if HAVE_DLFCN_H
11926 #include <dlfcn.h>
11927 #endif
11928
11929 #include <stdio.h>
11930
11931 #ifdef RTLD_GLOBAL
11932 # define LT_DLGLOBAL RTLD_GLOBAL
11933 #else
11934 # ifdef DL_GLOBAL
11935 # define LT_DLGLOBAL DL_GLOBAL
11936 # else
11937 # define LT_DLGLOBAL 0
11938 # endif
11939 #endif
11940
11941 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11942 find out it does not work in some platform. */
11943 #ifndef LT_DLLAZY_OR_NOW
11944 # ifdef RTLD_LAZY
11945 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11946 # else
11947 # ifdef DL_LAZY
11948 # define LT_DLLAZY_OR_NOW DL_LAZY
11949 # else
11950 # ifdef RTLD_NOW
11951 # define LT_DLLAZY_OR_NOW RTLD_NOW
11952 # else
11953 # ifdef DL_NOW
11954 # define LT_DLLAZY_OR_NOW DL_NOW
11955 # else
11956 # define LT_DLLAZY_OR_NOW 0
11957 # endif
11958 # endif
11959 # endif
11960 # endif
11961 #endif
11962
11963 /* When -fvisbility=hidden is used, assume the code has been annotated
11964 correspondingly for the symbols needed. */
11965 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11966 int fnord () __attribute__((visibility("default")));
11967 #endif
11968
11969 int fnord () { return 42; }
11970 int main ()
11971 {
11972 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11973 int status = $lt_dlunknown;
11974
11975 if (self)
11976 {
11977 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11978 else
11979 {
11980 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11981 else puts (dlerror ());
11982 }
11983 /* dlclose (self); */
11984 }
11985 else
11986 puts (dlerror ());
11987
11988 return status;
11989 }
11990 _LT_EOF
11991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11992 (eval $ac_link) 2>&5
11993 ac_status=$?
11994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11995 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11996 (./conftest; exit; ) >&5 2>/dev/null
11997 lt_status=$?
11998 case x$lt_status in
11999 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12000 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12001 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12002 esac
12003 else :
12004 # compilation failed
12005 lt_cv_dlopen_self=no
12006 fi
12007 fi
12008 rm -fr conftest*
12009
12010
12011 fi
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12013 $as_echo "$lt_cv_dlopen_self" >&6; }
12014
12015 if test "x$lt_cv_dlopen_self" = xyes; then
12016 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12018 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12019 if ${lt_cv_dlopen_self_static+:} false; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 if test "$cross_compiling" = yes; then :
12023 lt_cv_dlopen_self_static=cross
12024 else
12025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12026 lt_status=$lt_dlunknown
12027 cat > conftest.$ac_ext <<_LT_EOF
12028 #line $LINENO "configure"
12029 #include "confdefs.h"
12030
12031 #if HAVE_DLFCN_H
12032 #include <dlfcn.h>
12033 #endif
12034
12035 #include <stdio.h>
12036
12037 #ifdef RTLD_GLOBAL
12038 # define LT_DLGLOBAL RTLD_GLOBAL
12039 #else
12040 # ifdef DL_GLOBAL
12041 # define LT_DLGLOBAL DL_GLOBAL
12042 # else
12043 # define LT_DLGLOBAL 0
12044 # endif
12045 #endif
12046
12047 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12048 find out it does not work in some platform. */
12049 #ifndef LT_DLLAZY_OR_NOW
12050 # ifdef RTLD_LAZY
12051 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12052 # else
12053 # ifdef DL_LAZY
12054 # define LT_DLLAZY_OR_NOW DL_LAZY
12055 # else
12056 # ifdef RTLD_NOW
12057 # define LT_DLLAZY_OR_NOW RTLD_NOW
12058 # else
12059 # ifdef DL_NOW
12060 # define LT_DLLAZY_OR_NOW DL_NOW
12061 # else
12062 # define LT_DLLAZY_OR_NOW 0
12063 # endif
12064 # endif
12065 # endif
12066 # endif
12067 #endif
12068
12069 /* When -fvisbility=hidden is used, assume the code has been annotated
12070 correspondingly for the symbols needed. */
12071 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12072 int fnord () __attribute__((visibility("default")));
12073 #endif
12074
12075 int fnord () { return 42; }
12076 int main ()
12077 {
12078 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12079 int status = $lt_dlunknown;
12080
12081 if (self)
12082 {
12083 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12084 else
12085 {
12086 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12087 else puts (dlerror ());
12088 }
12089 /* dlclose (self); */
12090 }
12091 else
12092 puts (dlerror ());
12093
12094 return status;
12095 }
12096 _LT_EOF
12097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12098 (eval $ac_link) 2>&5
12099 ac_status=$?
12100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12101 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12102 (./conftest; exit; ) >&5 2>/dev/null
12103 lt_status=$?
12104 case x$lt_status in
12105 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12106 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12107 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12108 esac
12109 else :
12110 # compilation failed
12111 lt_cv_dlopen_self_static=no
12112 fi
12113 fi
12114 rm -fr conftest*
12115
12116
12117 fi
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12119 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12120 fi
12121
12122 CPPFLAGS="$save_CPPFLAGS"
12123 LDFLAGS="$save_LDFLAGS"
12124 LIBS="$save_LIBS"
12125 ;;
12126 esac
12127
12128 case $lt_cv_dlopen_self in
12129 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12130 *) enable_dlopen_self=unknown ;;
12131 esac
12132
12133 case $lt_cv_dlopen_self_static in
12134 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12135 *) enable_dlopen_self_static=unknown ;;
12136 esac
12137 fi
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155 striplib=
12156 old_striplib=
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12158 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12159 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12160 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12161 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12163 $as_echo "yes" >&6; }
12164 else
12165 # FIXME - insert some real tests, host_os isn't really good enough
12166 case $host_os in
12167 darwin*)
12168 if test -n "$STRIP" ; then
12169 striplib="$STRIP -x"
12170 old_striplib="$STRIP -S"
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12172 $as_echo "yes" >&6; }
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12176 fi
12177 ;;
12178 *)
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180 $as_echo "no" >&6; }
12181 ;;
12182 esac
12183 fi
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196 # Report which library types will actually be built
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12198 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12200 $as_echo "$can_build_shared" >&6; }
12201
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12203 $as_echo_n "checking whether to build shared libraries... " >&6; }
12204 test "$can_build_shared" = "no" && enable_shared=no
12205
12206 # On AIX, shared libraries and static libraries use the same namespace, and
12207 # are all built from PIC.
12208 case $host_os in
12209 aix3*)
12210 test "$enable_shared" = yes && enable_static=no
12211 if test -n "$RANLIB"; then
12212 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12213 postinstall_cmds='$RANLIB $lib'
12214 fi
12215 ;;
12216
12217 aix[4-9]*)
12218 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12219 test "$enable_shared" = yes && enable_static=no
12220 fi
12221 ;;
12222 esac
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12224 $as_echo "$enable_shared" >&6; }
12225
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12227 $as_echo_n "checking whether to build static libraries... " >&6; }
12228 # Make sure either enable_shared or enable_static is yes.
12229 test "$enable_shared" = yes || enable_static=yes
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12231 $as_echo "$enable_static" >&6; }
12232
12233
12234
12235
12236 fi
12237 ac_ext=c
12238 ac_cpp='$CPP $CPPFLAGS'
12239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12242
12243 CC="$lt_save_CC"
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259 ac_config_commands="$ac_config_commands libtool"
12260
12261
12262
12263
12264 # Only expand once:
12265
12266
12267
12268 # LIBTOOL="$LIBTOOL --silent"
12269
12270
12271
12272 for ac_header in stdint.h inttypes.h stdlib.h
12273 do :
12274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12275 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12276 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12277 cat >>confdefs.h <<_ACEOF
12278 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12279 _ACEOF
12280
12281 fi
12282
12283 done
12284
12285
12286 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
12287
12288
12289 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
12290 "
12291 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
12292
12293 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
12294
12295 fi
12296
12297
12298 ac_fn_c_check_decl "$LINENO" "timegm" "ac_cv_have_decl_timegm" "#include <time.h>
12299 "
12300 if test "x$ac_cv_have_decl_timegm" = xyes; then :
12301
12302 $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h
12303
12304 fi
12305
12306
12307
12308
12309 echo -n "checking for timezone variable ... "
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12312 #include <time.h>
12313 int
12314 main ()
12315 {
12316 long int i; i = 1 - timezone;
12317 ;
12318 return 0;
12319 }
12320 _ACEOF
12321 if ac_fn_c_try_link "$LINENO"; then :
12322 LIBBURNIA_TIMEZONE="timezone"
12323 else
12324 LIBBURNIA_TIMEZONE="0"
12325
12326 fi
12327 rm -f core conftest.err conftest.$ac_objext \
12328 conftest$ac_exeext conftest.$ac_ext
12329 echo "$LIBBURNIA_TIMEZONE"
12330
12331 if test x$LIBBURNIA_TIMEZONE = xtimezone
12332 then
12333 $as_echo "#define Libburnia_timezonE timezone" >>confdefs.h
12334
12335 else
12336 $as_echo "#define Libburnia_timezonE 0" >>confdefs.h
12337
12338 fi
12339
12340 ac_fn_c_check_decl "$LINENO" "eaccess" "ac_cv_have_decl_eaccess" "#include <unistd.h>
12341 "
12342 if test "x$ac_cv_have_decl_eaccess" = xyes; then :
12343
12344 $as_echo "#define HAVE_EACCESS 1" >>confdefs.h
12345
12346 fi
12347
12348
12349 THREAD_LIBS=-lpthread
12350
12351
12352
12353 ARCH=""
12354 LIBBURNIA_PKGCONFDIR="$libdir"/pkgconfig
12355
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target operating system" >&5
12357 $as_echo_n "checking target operating system... " >&6; }
12358
12359 LIBBURNIA_SUPP_ACL=none
12360 LIBBURNIA_SUPP_FATTR=none
12361 LIBBURNIA_LDCONFIG_CMD="echo 'No ldconfig run performed. If needed, configure manually for:'"
12362 case $target in
12363 *-*-linux*)
12364 ARCH=linux
12365 LIBBURN_ARCH_LIBS=
12366 LIBBURNIA_SUPP_ACL=libacl
12367 LIBBURNIA_SUPP_FATTR=xattr
12368 LIBBURNIA_LDCONFIG_CMD=ldconfig
12369 ;;
12370 *-*-freebsd*)
12371 ARCH=freebsd
12372 LIBBURNIA_SUPP_ACL=libacl
12373 LIBBURNIA_SUPP_FATTR=extattr
12374 LIBBURN_ARCH_LIBS=-lcam
12375
12376 # This may later be overridden by configure --enable-libdir-pkgconfig
12377 LIBBURNIA_PKGCONFDIR=$(echo "$libdir" | sed 's/\/lib$/\/libdata/')/pkgconfig
12378 ;;
12379 *)
12380 ARCH=
12381 LIBBURN_ARCH_LIBS=
12382 # AC_ERROR([You are attempting to compile for an unsupported platform])
12383 ;;
12384 esac
12385
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCH" >&5
12387 $as_echo "$ARCH" >&6; }
12388
12389
12390
12391
12392
12393 # Check whether --enable-debug was given.
12394 if test "${enable_debug+set}" = set; then :
12395 enableval=$enable_debug;
12396 else
12397 enable_debug=yes
12398 fi
12399
12400 if test x$enable_debug != xyes; then
12401 if test x$GCC = xyes; then
12402 CFLAGS="-O3 $CFLAGS"
12403 CFLAGS="-fexpensive-optimizations $CFLAGS"
12404 fi
12405 CFLAGS="-DNDEBUG $CFLAGS"
12406 else
12407 if test x$GCC = xyes; then
12408 CFLAGS="-g -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-char-subscripts $CFLAGS"
12409 fi
12410 CFLAGS="-DDEBUG $CFLAGS"
12411 fi
12412
12413 # Check whether --enable-verbose-debug was given.
12414 if test "${enable_verbose_debug+set}" = set; then :
12415 enableval=$enable_verbose_debug; $as_echo "#define LIBISOFS_VERBOSE_DEBUG 1" >>confdefs.h
12416
12417 fi
12418
12419
12420
12421
12422 ### for testing --enable-libdir-pkgconfig on Linux
12423 ### LIBBURNIA_PKGCONFDIR="$libdir"data/pkgconfig
12424
12425 if test "x$LIBBURNIA_PKGCONFDIR" = "x$libdir"/pkgconfig
12426 then
12427 dummy=dummy
12428 else
12429 # Check whether --enable-libdir-pkgconfig was given.
12430 if test "${enable_libdir_pkgconfig+set}" = set; then :
12431 enableval=$enable_libdir_pkgconfig;
12432 else
12433 enable_libdir_pkgconfig="no"
12434 fi
12435
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libdir-pkgconfig" >&5
12437 $as_echo_n "checking for --enable-libdir-pkgconfig... " >&6; }
12438 if test "x$enable_libdir_pkgconfig" = xyes
12439 then
12440 LIBBURNIA_PKGCONFDIR="$libdir"/pkgconfig
12441 fi
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libdir_pkgconfig" >&5
12443 $as_echo "$enable_libdir_pkgconfig" >&6; }
12444 fi
12445
12446 libburnia_pkgconfig_override="no"
12447 # Check whether --enable-pkgconfig-path was given.
12448 if test "${enable_pkgconfig_path+set}" = set; then :
12449 enableval=$enable_pkgconfig_path; libburnia_pkgconfig_override="yes"
12450 else
12451 enable_pkgconfig_path="none"
12452 fi
12453
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for overridden pkgconfig directory path" >&5
12455 $as_echo_n "checking for overridden pkgconfig directory path... " >&6; }
12456 if test "x$enable_pkgconfig_path" = xno
12457 then
12458 libburnia_pkgconfig_override="no"
12459 fi
12460 if test "x$enable_pkgconfig_path" = x -o "x$enable_pkgconfig_path" = xyes
12461 then
12462 libburnia_pkgconfig_override="invalid argument"
12463 fi
12464 if test "x$libburnia_pkgconfig_override" = xyes
12465 then
12466 LIBBURNIA_PKGCONFDIR="$enable_pkgconfig_path"
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBURNIA_PKGCONFDIR" >&5
12468 $as_echo "$LIBBURNIA_PKGCONFDIR" >&6; }
12469 else
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libburnia_pkgconfig_override" >&5
12471 $as_echo "$libburnia_pkgconfig_override" >&6; }
12472 fi
12473
12474
12475 ### AC_MSG_RESULT([LIBBURNIA_PKGCONFDIR = $LIBBURNIA_PKGCONFDIR])
12476
12477
12478
12479
12480
12481 # Check whether --enable-libacl was given.
12482 if test "${enable_libacl+set}" = set; then :
12483 enableval=$enable_libacl;
12484 else
12485 enable_libacl=yes
12486 fi
12487
12488 LIBACL_DEF=
12489 has_acl_h_but_no_func=0
12490 if test x$LIBBURNIA_SUPP_ACL = xlibacl
12491 then
12492 if test x$enable_libacl = xyes; then
12493 LIBACL_DEF="-DLibisofs_with_aaip_acL"
12494 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12495 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_to_text in -lacl" >&5
12497 $as_echo_n "checking for acl_to_text in -lacl... " >&6; }
12498 if ${ac_cv_lib_acl_acl_to_text+:} false; then :
12499 $as_echo_n "(cached) " >&6
12500 else
12501 ac_check_lib_save_LIBS=$LIBS
12502 LIBS="-lacl $LIBS"
12503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h. */
12505
12506 /* Override any GCC internal prototype to avoid an error.
12507 Use char because int might match the return type of a GCC
12508 builtin and then its argument prototype would still apply. */
12509 #ifdef __cplusplus
12510 extern "C"
12511 #endif
12512 char acl_to_text ();
12513 int
12514 main ()
12515 {
12516 return acl_to_text ();
12517 ;
12518 return 0;
12519 }
12520 _ACEOF
12521 if ac_fn_c_try_link "$LINENO"; then :
12522 ac_cv_lib_acl_acl_to_text=yes
12523 else
12524 ac_cv_lib_acl_acl_to_text=no
12525 fi
12526 rm -f core conftest.err conftest.$ac_objext \
12527 conftest$ac_exeext conftest.$ac_ext
12528 LIBS=$ac_check_lib_save_LIBS
12529 fi
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_to_text" >&5
12531 $as_echo "$ac_cv_lib_acl_acl_to_text" >&6; }
12532 if test "x$ac_cv_lib_acl_acl_to_text" = xyes; then :
12533 cat >>confdefs.h <<_ACEOF
12534 #define HAVE_LIBACL 1
12535 _ACEOF
12536
12537 LIBS="-lacl $LIBS"
12538
12539 else
12540 has_acl_h_but_no_libacl=1
12541 fi
12542
12543 else
12544 LIBACL_DEF=
12545 fi
12546
12547
12548 if test "$has_acl_h_but_no_libacl" = 1
12549 then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_to_text in -lc" >&5
12551 $as_echo_n "checking for acl_to_text in -lc... " >&6; }
12552 if ${ac_cv_lib_c_acl_to_text+:} false; then :
12553 $as_echo_n "(cached) " >&6
12554 else
12555 ac_check_lib_save_LIBS=$LIBS
12556 LIBS="-lc $LIBS"
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559
12560 /* Override any GCC internal prototype to avoid an error.
12561 Use char because int might match the return type of a GCC
12562 builtin and then its argument prototype would still apply. */
12563 #ifdef __cplusplus
12564 extern "C"
12565 #endif
12566 char acl_to_text ();
12567 int
12568 main ()
12569 {
12570 return acl_to_text ();
12571 ;
12572 return 0;
12573 }
12574 _ACEOF
12575 if ac_fn_c_try_link "$LINENO"; then :
12576 ac_cv_lib_c_acl_to_text=yes
12577 else
12578 ac_cv_lib_c_acl_to_text=no
12579 fi
12580 rm -f core conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12582 LIBS=$ac_check_lib_save_LIBS
12583 fi
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_acl_to_text" >&5
12585 $as_echo "$ac_cv_lib_c_acl_to_text" >&6; }
12586 if test "x$ac_cv_lib_c_acl_to_text" = xyes; then :
12587 X=
12588 else
12589 LIBACL_DEF=
12590 fi
12591
12592 fi
12593 fi
12594 fi
12595 if test x$LIBACL_DEF = x-DLibisofs_with_aaip_acL
12596 then
12597 if test x$has_acl_h_but_no_libacl = x1
12598 then
12599 echo "enabled local processing of ACL"
12600 else
12601 echo "enabled libacl, local processing of ACL"
12602 fi
12603 else
12604 echo "disabled local processing of ACL"
12605 fi
12606
12607
12608
12609 # Check whether --enable-xattr was given.
12610 if test "${enable_xattr+set}" = set; then :
12611 enableval=$enable_xattr;
12612 else
12613 enable_xattr=yes
12614 fi
12615
12616 # Check whether --enable-xattr-h-pref-attr was given.
12617 if test "${enable_xattr_h_pref_attr+set}" = set; then :
12618 enableval=$enable_xattr_h_pref_attr;
12619 else
12620 enable_xattr_h_pref_attr=no
12621 fi
12622
12623
12624 XATTR_DEF=
12625 XATTR_ADDON_DEF=
12626 if test x"$LIBBURNIA_SUPP_FATTR" = xxattr
12627 then
12628 if test "x$enable_xattr" = xyes; then
12629
12630 XATTR_A_DEF=
12631 XATTR_S_DEF=
12632 if test x"$enable_xattr_h_pref_attr" = xyes
12633 then
12634 echo "prefering include file attr/xattr.h over sys/attr.h"
12635 XATTR_A_DEF=1
12636 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
12637 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for listxattr in -lc" >&5
12639 $as_echo_n "checking for listxattr in -lc... " >&6; }
12640 if ${ac_cv_lib_c_listxattr+:} false; then :
12641 $as_echo_n "(cached) " >&6
12642 else
12643 ac_check_lib_save_LIBS=$LIBS
12644 LIBS="-lc $LIBS"
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647
12648 /* Override any GCC internal prototype to avoid an error.
12649 Use char because int might match the return type of a GCC
12650 builtin and then its argument prototype would still apply. */
12651 #ifdef __cplusplus
12652 extern "C"
12653 #endif
12654 char listxattr ();
12655 int
12656 main ()
12657 {
12658 return listxattr ();
12659 ;
12660 return 0;
12661 }
12662 _ACEOF
12663 if ac_fn_c_try_link "$LINENO"; then :
12664 ac_cv_lib_c_listxattr=yes
12665 else
12666 ac_cv_lib_c_listxattr=no
12667 fi
12668 rm -f core conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12670 LIBS=$ac_check_lib_save_LIBS
12671 fi
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_listxattr" >&5
12673 $as_echo "$ac_cv_lib_c_listxattr" >&6; }
12674 if test "x$ac_cv_lib_c_listxattr" = xyes; then :
12675 X=
12676 else
12677 XATTR_A_DEF=
12678 fi
12679
12680 else
12681 XATTR_A_DEF=
12682 fi
12683
12684
12685 if test x"$XATTR_A_DEF" = x1
12686 then
12687 XATTR_DEF="-DLibisofs_with_aaip_xattR"
12688 else
12689 XATTR_S_DEF=1
12690 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12691 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for listxattr in -lc" >&5
12693 $as_echo_n "checking for listxattr in -lc... " >&6; }
12694 if ${ac_cv_lib_c_listxattr+:} false; then :
12695 $as_echo_n "(cached) " >&6
12696 else
12697 ac_check_lib_save_LIBS=$LIBS
12698 LIBS="-lc $LIBS"
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12701
12702 /* Override any GCC internal prototype to avoid an error.
12703 Use char because int might match the return type of a GCC
12704 builtin and then its argument prototype would still apply. */
12705 #ifdef __cplusplus
12706 extern "C"
12707 #endif
12708 char listxattr ();
12709 int
12710 main ()
12711 {
12712 return listxattr ();
12713 ;
12714 return 0;
12715 }
12716 _ACEOF
12717 if ac_fn_c_try_link "$LINENO"; then :
12718 ac_cv_lib_c_listxattr=yes
12719 else
12720 ac_cv_lib_c_listxattr=no
12721 fi
12722 rm -f core conftest.err conftest.$ac_objext \
12723 conftest$ac_exeext conftest.$ac_ext
12724 LIBS=$ac_check_lib_save_LIBS
12725 fi
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_listxattr" >&5
12727 $as_echo "$ac_cv_lib_c_listxattr" >&6; }
12728 if test "x$ac_cv_lib_c_listxattr" = xyes; then :
12729 X=
12730 else
12731 XATTR_S_DEF=
12732 fi
12733
12734 else
12735 XATTR_S_DEF=
12736 fi
12737
12738
12739 if test x"$XATTR_S_DEF" = x1
12740 then
12741 XATTR_DEF="-DLibisofs_with_aaip_xattR"
12742 XATTR_ADDON_DEF="-DLibisofs_with_sys_xattR"
12743 fi
12744 fi
12745 else
12746 XATTR_S_DEF=1
12747 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12748 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for listxattr in -lc" >&5
12750 $as_echo_n "checking for listxattr in -lc... " >&6; }
12751 if ${ac_cv_lib_c_listxattr+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 ac_check_lib_save_LIBS=$LIBS
12755 LIBS="-lc $LIBS"
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12758
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 char listxattr ();
12766 int
12767 main ()
12768 {
12769 return listxattr ();
12770 ;
12771 return 0;
12772 }
12773 _ACEOF
12774 if ac_fn_c_try_link "$LINENO"; then :
12775 ac_cv_lib_c_listxattr=yes
12776 else
12777 ac_cv_lib_c_listxattr=no
12778 fi
12779 rm -f core conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext conftest.$ac_ext
12781 LIBS=$ac_check_lib_save_LIBS
12782 fi
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_listxattr" >&5
12784 $as_echo "$ac_cv_lib_c_listxattr" >&6; }
12785 if test "x$ac_cv_lib_c_listxattr" = xyes; then :
12786 X=
12787 else
12788 XATTR_S_DEF=
12789 fi
12790
12791 else
12792 XATTR_S_DEF=
12793 fi
12794
12795
12796 if test x"$XATTR_S_DEF" = x1
12797 then
12798 XATTR_DEF="-DLibisofs_with_aaip_xattR"
12799 XATTR_ADDON_DEF="-DLibisofs_with_sys_xattR"
12800 else
12801 XATTR_A_DEF=1
12802 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
12803 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for listxattr in -lc" >&5
12805 $as_echo_n "checking for listxattr in -lc... " >&6; }
12806 if ${ac_cv_lib_c_listxattr+:} false; then :
12807 $as_echo_n "(cached) " >&6
12808 else
12809 ac_check_lib_save_LIBS=$LIBS
12810 LIBS="-lc $LIBS"
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12813
12814 /* Override any GCC internal prototype to avoid an error.
12815 Use char because int might match the return type of a GCC
12816 builtin and then its argument prototype would still apply. */
12817 #ifdef __cplusplus
12818 extern "C"
12819 #endif
12820 char listxattr ();
12821 int
12822 main ()
12823 {
12824 return listxattr ();
12825 ;
12826 return 0;
12827 }
12828 _ACEOF
12829 if ac_fn_c_try_link "$LINENO"; then :
12830 ac_cv_lib_c_listxattr=yes
12831 else
12832 ac_cv_lib_c_listxattr=no
12833 fi
12834 rm -f core conftest.err conftest.$ac_objext \
12835 conftest$ac_exeext conftest.$ac_ext
12836 LIBS=$ac_check_lib_save_LIBS
12837 fi
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_listxattr" >&5
12839 $as_echo "$ac_cv_lib_c_listxattr" >&6; }
12840 if test "x$ac_cv_lib_c_listxattr" = xyes; then :
12841 X=
12842 else
12843 XATTR_A_DEF=
12844 fi
12845
12846 else
12847 XATTR_A_DEF=
12848 fi
12849
12850
12851 if test x"$XATTR_A_DEF" = x1
12852 then
12853 XATTR_DEF="-DLibisofs_with_aaip_xattR"
12854 fi
12855 fi
12856 fi
12857 if test x"$XATTR_S_DEF" = x1
12858 then
12859 echo "decided to include file sys/attr.h"
12860 elif test x"$XATTR_A_DEF" = x1
12861 then
12862 echo "decided to include file attr/xattr.h"
12863 fi
12864 fi
12865 elif test x"$LIBBURNIA_SUPP_FATTR" = xextattr
12866 then
12867 if test "x$enable_xattr" = xyes; then
12868 XATTR_DEF="-DLibisofs_with_freebsd_extattR"
12869 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
12870 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_list_file in -lc" >&5
12872 $as_echo_n "checking for extattr_list_file in -lc... " >&6; }
12873 if ${ac_cv_lib_c_extattr_list_file+:} false; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 ac_check_lib_save_LIBS=$LIBS
12877 LIBS="-lc $LIBS"
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880
12881 /* Override any GCC internal prototype to avoid an error.
12882 Use char because int might match the return type of a GCC
12883 builtin and then its argument prototype would still apply. */
12884 #ifdef __cplusplus
12885 extern "C"
12886 #endif
12887 char extattr_list_file ();
12888 int
12889 main ()
12890 {
12891 return extattr_list_file ();
12892 ;
12893 return 0;
12894 }
12895 _ACEOF
12896 if ac_fn_c_try_link "$LINENO"; then :
12897 ac_cv_lib_c_extattr_list_file=yes
12898 else
12899 ac_cv_lib_c_extattr_list_file=no
12900 fi
12901 rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12904 fi
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_extattr_list_file" >&5
12906 $as_echo "$ac_cv_lib_c_extattr_list_file" >&6; }
12907 if test "x$ac_cv_lib_c_extattr_list_file" = xyes; then :
12908 X=
12909 else
12910 XATTR_DEF=
12911 fi
12912
12913 else
12914 XATTR_DEF=
12915 fi
12916
12917
12918 fi
12919 fi
12920 if test x$XATTR_DEF = x-DLibisofs_with_aaip_xattR
12921 then
12922 echo "enabled xattr, local processing of extended file attributes Linux style"
12923 elif test x$XATTR_DEF = x-DLibisofs_with_freebsd_extattR
12924 then
12925 echo "enabled extattr, local processing of extended file attributes FreeBSD style"
12926 else
12927 echo "disabled local processing of extended file attributes"
12928 fi
12929 XATTR_DEF="$XATTR_DEF $XATTR_ADDON_DEF"
12930
12931
12932
12933 LFA_DEF=
12934 # Check whether --enable-lfa-flags was given.
12935 if test "${enable_lfa_flags+set}" = set; then :
12936 enableval=$enable_lfa_flags;
12937 else
12938 enable_lfa_flags=yes
12939 fi
12940
12941 if test x"$enable_lfa_flags" = xyes; then
12942 ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
12943 if test "x$ac_cv_header_linux_fs_h" = xyes; then :
12944 LFA_DEF="-DLibisofs_with_aaip_lfa_flagS"
12945 else
12946 LFA_DEF=
12947 fi
12948
12949
12950 fi
12951 if test x"$LFA_DEF" = x; then
12952 echo "disabled Linux chattr(1) flags"
12953 else
12954 echo "enabled Linux chattr(1) flags"
12955 fi
12956
12957
12958 PROJID_DEF=
12959 # Check whether --enable-projid was given.
12960 if test "${enable_projid+set}" = set; then :
12961 enableval=$enable_projid;
12962 else
12963 enable_projid=yes
12964 fi
12965
12966 if test x"$enable_projid" = xyes; then
12967 ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
12968 if test "x$ac_cv_header_linux_fs_h" = xyes; then :
12969 PROJID_DEF="-DLibisofs_with_aaip_projiD"
12970 else
12971 PROJID_DEF=
12972 fi
12973
12974
12975 fi
12976 if test x"$PROJID_DEF" = x; then
12977 echo "disabled XFS-style project id"
12978 else
12979 echo "enabled XFS-style project id"
12980 fi
12981
12982
12983
12984 # Check whether --enable-zlib was given.
12985 if test "${enable_zlib+set}" = set; then :
12986 enableval=$enable_zlib;
12987 else
12988 enable_zlib=yes
12989 fi
12990
12991 if test "x$enable_zlib" = xyes; then
12992 ZLIB_DEF="-DLibisofs_with_zliB"
12993 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12994 if test "x$ac_cv_header_zlib_h" = xyes; then :
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compressBound in -lz" >&5
12996 $as_echo_n "checking for compressBound in -lz... " >&6; }
12997 if ${ac_cv_lib_z_compressBound+:} false; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 ac_check_lib_save_LIBS=$LIBS
13001 LIBS="-lz $LIBS"
13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h. */
13004
13005 /* Override any GCC internal prototype to avoid an error.
13006 Use char because int might match the return type of a GCC
13007 builtin and then its argument prototype would still apply. */
13008 #ifdef __cplusplus
13009 extern "C"
13010 #endif
13011 char compressBound ();
13012 int
13013 main ()
13014 {
13015 return compressBound ();
13016 ;
13017 return 0;
13018 }
13019 _ACEOF
13020 if ac_fn_c_try_link "$LINENO"; then :
13021 ac_cv_lib_z_compressBound=yes
13022 else
13023 ac_cv_lib_z_compressBound=no
13024 fi
13025 rm -f core conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13027 LIBS=$ac_check_lib_save_LIBS
13028 fi
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compressBound" >&5
13030 $as_echo "$ac_cv_lib_z_compressBound" >&6; }
13031 if test "x$ac_cv_lib_z_compressBound" = xyes; then :
13032 cat >>confdefs.h <<_ACEOF
13033 #define HAVE_LIBZ 1
13034 _ACEOF
13035
13036 LIBS="-lz $LIBS"
13037
13038 else
13039 ZLIB_DEF=
13040 fi
13041
13042 else
13043 ZLIB_DEF=
13044 fi
13045
13046
13047 else
13048 ZLIB_DEF=
13049 fi
13050
13051
13052 # Check whether --enable-libjte was given.
13053 if test "${enable_libjte+set}" = set; then :
13054 enableval=$enable_libjte;
13055 else
13056 enable_libjte=yes
13057 fi
13058
13059 if test "x$enable_libjte" = xyes; then
13060 LIBJTE_DEF="-DLibisofs_with_libjtE"
13061 ac_fn_c_check_header_mongrel "$LINENO" "libjte/libjte.h" "ac_cv_header_libjte_libjte_h" "$ac_includes_default"
13062 if test "x$ac_cv_header_libjte_libjte_h" = xyes; then :
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjte_set_checksum_algorithm in -ljte" >&5
13064 $as_echo_n "checking for libjte_set_checksum_algorithm in -ljte... " >&6; }
13065 if ${ac_cv_lib_jte_libjte_set_checksum_algorithm+:} false; then :
13066 $as_echo_n "(cached) " >&6
13067 else
13068 ac_check_lib_save_LIBS=$LIBS
13069 LIBS="-ljte $LIBS"
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h. */
13072
13073 /* Override any GCC internal prototype to avoid an error.
13074 Use char because int might match the return type of a GCC
13075 builtin and then its argument prototype would still apply. */
13076 #ifdef __cplusplus
13077 extern "C"
13078 #endif
13079 char libjte_set_checksum_algorithm ();
13080 int
13081 main ()
13082 {
13083 return libjte_set_checksum_algorithm ();
13084 ;
13085 return 0;
13086 }
13087 _ACEOF
13088 if ac_fn_c_try_link "$LINENO"; then :
13089 ac_cv_lib_jte_libjte_set_checksum_algorithm=yes
13090 else
13091 ac_cv_lib_jte_libjte_set_checksum_algorithm=no
13092 fi
13093 rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
13095 LIBS=$ac_check_lib_save_LIBS
13096 fi
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jte_libjte_set_checksum_algorithm" >&5
13098 $as_echo "$ac_cv_lib_jte_libjte_set_checksum_algorithm" >&6; }
13099 if test "x$ac_cv_lib_jte_libjte_set_checksum_algorithm" = xyes; then :
13100 cat >>confdefs.h <<_ACEOF
13101 #define HAVE_LIBJTE 1
13102 _ACEOF
13103
13104 LIBS="-ljte $LIBS"
13105
13106 else
13107 LIBJTE_DEF=
13108 fi
13109
13110 else
13111 LIBJTE_DEF=
13112 fi
13113
13114
13115 else
13116 LIBJTE_DEF=
13117 fi
13118
13119
13120
13121 # Check whether --enable-dir-rec-size-check was given.
13122 if test "${enable_dir_rec_size_check+set}" = set; then :
13123 enableval=$enable_dir_rec_size_check;
13124 else
13125 dir_rec_size_check=no
13126 fi
13127
13128 if test x$enable_dir_rec_size_check = xyes; then
13129 DIR_REC_SIZE_CHECK="-DLibisofs_dir_rec_size_checK"
13130 echo "enabled detailed check of directory size prediction"
13131 else
13132 DIR_REC_SIZE_CHECK=
13133 echo "disabled detailed check of directory size prediction"
13134 fi
13135
13136
13137
13138 # Library versioning normally serves a complex purpose.
13139 # Since libisofs obeys strict ABI backward compatibility, it needs only the
13140 # simple feature to declare function names "global:" or "local:". Only the
13141 # global ones are visible to applications at library load time.
13142 # Check whether --enable-versioned-libs was given.
13143 if test "${enable_versioned_libs+set}" = set; then :
13144 enableval=$enable_versioned_libs;
13145 else
13146 enable_versioned_libs=yes
13147 fi
13148
13149 if test x$enable_versioned_libs = xyes; then
13150 vers_libs_test=no
13151
13152 libburnia_save_LDFLAGS="$LDFLAGS"
13153 LDFLAGS="$LDFLAGS -Wl,--version-script=$srcdir/libisofs/libisofs.ver"
13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156 #include <stdio.h>
13157 int
13158 main ()
13159 {
13160 printf("Hello\n");
13161 ;
13162 return 0;
13163 }
13164 _ACEOF
13165 if ac_fn_c_try_link "$LINENO"; then :
13166 vers_libs_test="yes"
13167 else
13168 vers_libs_test="no"
13169 fi
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172 if test x$vers_libs_test = xyes
13173 then
13174 LIBLDFLAGS="-Wl,--version-script=$srcdir/libisofs/libisofs.ver"
13175 fi
13176 LDFLAGS="$libburnia_save_LDFLAGS"
13177
13178
13179 if test x$vers_libs_test = xno
13180 then
13181 echo "disabled strict symbol encapsulation (test failed)"
13182 else
13183 echo "enabled strict symbol encapsulation"
13184 fi
13185 else
13186 echo "disabled strict symbol encapsulation"
13187 fi
13188
13189 # Check whether --enable-ldconfig-at-install was given.
13190 if test "${enable_ldconfig_at_install+set}" = set; then :
13191 enableval=$enable_ldconfig_at_install;
13192 else
13193 ldconfig_at_install=yes
13194 fi
13195
13196 if test x$ldconfig_at_install = xyes; then
13197 dummy=dummy
13198 else
13199 LIBBURNIA_LDCONFIG_CMD="echo 'NOTE: ldconfig is disabled. If needed, configure manually for:'"
13200 echo "disabled run of ldconfig during installation on GNU/Linux"
13201 fi
13202
13203
13204 ac_config_files="$ac_config_files Makefile doc/doxygen.conf version.h libisofs-1.pc"
13205
13206 cat >confcache <<\_ACEOF
13207 # This file is a shell script that caches the results of configure
13208 # tests run on this system so they can be shared between configure
13209 # scripts and configure runs, see configure's option --config-cache.
13210 # It is not useful on other systems. If it contains results you don't
13211 # want to keep, you may remove or edit it.
13212 #
13213 # config.status only pays attention to the cache file if you give it
13214 # the --recheck option to rerun configure.
13215 #
13216 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13217 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13218 # following values.
13219
13220 _ACEOF
13221
13222 # The following way of writing the cache mishandles newlines in values,
13223 # but we know of no workaround that is simple, portable, and efficient.
13224 # So, we kill variables containing newlines.
13225 # Ultrix sh set writes to stderr and can't be redirected directly,
13226 # and sets the high bit in the cache file unless we assign to the vars.
13227 (
13228 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13229 eval ac_val=\$$ac_var
13230 case $ac_val in #(
13231 *${as_nl}*)
13232 case $ac_var in #(
13233 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13234 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13235 esac
13236 case $ac_var in #(
13237 _ | IFS | as_nl) ;; #(
13238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13239 *) { eval $ac_var=; unset $ac_var;} ;;
13240 esac ;;
13241 esac
13242 done
13243
13244 (set) 2>&1 |
13245 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13246 *${as_nl}ac_space=\ *)
13247 # `set' does not quote correctly, so add quotes: double-quote
13248 # substitution turns \\\\ into \\, and sed turns \\ into \.
13249 sed -n \
13250 "s/'/'\\\\''/g;
13251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13252 ;; #(
13253 *)
13254 # `set' quotes correctly as required by POSIX, so do not add quotes.
13255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13256 ;;
13257 esac |
13258 sort
13259 ) |
13260 sed '
13261 /^ac_cv_env_/b end
13262 t clear
13263 :clear
13264 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13265 t end
13266 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13267 :end' >>confcache
13268 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13269 if test -w "$cache_file"; then
13270 if test "x$cache_file" != "x/dev/null"; then
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13272 $as_echo "$as_me: updating cache $cache_file" >&6;}
13273 if test ! -f "$cache_file" || test -h "$cache_file"; then
13274 cat confcache >"$cache_file"
13275 else
13276 case $cache_file in #(
13277 */* | ?:*)
13278 mv -f confcache "$cache_file"$$ &&
13279 mv -f "$cache_file"$$ "$cache_file" ;; #(
13280 *)
13281 mv -f confcache "$cache_file" ;;
13282 esac
13283 fi
13284 fi
13285 else
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13287 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13288 fi
13289 fi
13290 rm -f confcache
13291
13292 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13293 # Let make expand exec_prefix.
13294 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13295
13296 # Transform confdefs.h into DEFS.
13297 # Protect against shell expansion while executing Makefile rules.
13298 # Protect against Makefile macro expansion.
13299 #
13300 # If the first sed substitution is executed (which looks for macros that
13301 # take arguments), then branch to the quote section. Otherwise,
13302 # look for a macro that doesn't take arguments.
13303 ac_script='
13304 :mline
13305 /\\$/{
13306 N
13307 s,\\\n,,
13308 b mline
13309 }
13310 t clear
13311 :clear
13312 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13313 t quote
13314 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13315 t quote
13316 b any
13317 :quote
13318 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13319 s/\[/\\&/g
13320 s/\]/\\&/g
13321 s/\$/$$/g
13322 H
13323 :any
13324 ${
13325 g
13326 s/^\n//
13327 s/\n/ /g
13328 p
13329 }
13330 '
13331 DEFS=`sed -n "$ac_script" confdefs.h`
13332
13333
13334 ac_libobjs=
13335 ac_ltlibobjs=
13336 U=
13337 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13338 # 1. Remove the extension, and $U if already installed.
13339 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13340 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13341 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13342 # will be set to the directory where LIBOBJS objects are built.
13343 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13344 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13345 done
13346 LIBOBJS=$ac_libobjs
13347
13348 LTLIBOBJS=$ac_ltlibobjs
13349
13350
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13352 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13353 if test -n "$am_sleep_pid"; then
13354 # Hide warnings about reused PIDs.
13355 wait $am_sleep_pid 2>/dev/null
13356 fi
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13358 $as_echo "done" >&6; }
13359 if test -n "$EXEEXT"; then
13360 am__EXEEXT_TRUE=
13361 am__EXEEXT_FALSE='#'
13362 else
13363 am__EXEEXT_TRUE='#'
13364 am__EXEEXT_FALSE=
13365 fi
13366
13367 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13368 as_fn_error $? "conditional \"AMDEP\" was never defined.
13369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13370 fi
13371 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13372 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13374 fi
13375
13376 : "${CONFIG_STATUS=./config.status}"
13377 ac_write_fail=0
13378 ac_clean_files_save=$ac_clean_files
13379 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13381 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13382 as_write_fail=0
13383 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13384 #! $SHELL
13385 # Generated by $as_me.
13386 # Run this file to recreate the current configuration.
13387 # Compiler output produced by configure, useful for debugging
13388 # configure, is in config.log if it exists.
13389
13390 debug=false
13391 ac_cs_recheck=false
13392 ac_cs_silent=false
13393
13394 SHELL=\${CONFIG_SHELL-$SHELL}
13395 export SHELL
13396 _ASEOF
13397 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13398 ## -------------------- ##
13399 ## M4sh Initialization. ##
13400 ## -------------------- ##
13401
13402 # Be more Bourne compatible
13403 DUALCASE=1; export DUALCASE # for MKS sh
13404 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13405 emulate sh
13406 NULLCMD=:
13407 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13408 # is contrary to our usage. Disable this feature.
13409 alias -g '${1+"$@"}'='"$@"'
13410 setopt NO_GLOB_SUBST
13411 else
13412 case `(set -o) 2>/dev/null` in #(
13413 *posix*) :
13414 set -o posix ;; #(
13415 *) :
13416 ;;
13417 esac
13418 fi
13419
13420
13421 as_nl='
13422 '
13423 export as_nl
13424 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13425 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13426 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13427 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13428 # Prefer a ksh shell builtin over an external printf program on Solaris,
13429 # but without wasting forks for bash or zsh.
13430 if test -z "$BASH_VERSION$ZSH_VERSION" \
13431 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13432 as_echo='print -r --'
13433 as_echo_n='print -rn --'
13434 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13435 as_echo='printf %s\n'
13436 as_echo_n='printf %s'
13437 else
13438 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13439 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13440 as_echo_n='/usr/ucb/echo -n'
13441 else
13442 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13443 as_echo_n_body='eval
13444 arg=$1;
13445 case $arg in #(
13446 *"$as_nl"*)
13447 expr "X$arg" : "X\\(.*\\)$as_nl";
13448 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13449 esac;
13450 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13451 '
13452 export as_echo_n_body
13453 as_echo_n='sh -c $as_echo_n_body as_echo'
13454 fi
13455 export as_echo_body
13456 as_echo='sh -c $as_echo_body as_echo'
13457 fi
13458
13459 # The user is always right.
13460 if test "${PATH_SEPARATOR+set}" != set; then
13461 PATH_SEPARATOR=:
13462 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13463 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13464 PATH_SEPARATOR=';'
13465 }
13466 fi
13467
13468
13469 # IFS
13470 # We need space, tab and new line, in precisely that order. Quoting is
13471 # there to prevent editors from complaining about space-tab.
13472 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13473 # splitting by setting IFS to empty value.)
13474 IFS=" "" $as_nl"
13475
13476 # Find who we are. Look in the path if we contain no directory separator.
13477 as_myself=
13478 case $0 in #((
13479 *[\\/]* ) as_myself=$0 ;;
13480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481 for as_dir in $PATH
13482 do
13483 IFS=$as_save_IFS
13484 test -z "$as_dir" && as_dir=.
13485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13486 done
13487 IFS=$as_save_IFS
13488
13489 ;;
13490 esac
13491 # We did not find ourselves, most probably we were run as `sh COMMAND'
13492 # in which case we are not to be found in the path.
13493 if test "x$as_myself" = x; then
13494 as_myself=$0
13495 fi
13496 if test ! -f "$as_myself"; then
13497 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13498 exit 1
13499 fi
13500
13501 # Unset variables that we do not need and which cause bugs (e.g. in
13502 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13503 # suppresses any "Segmentation fault" message there. '((' could
13504 # trigger a bug in pdksh 5.2.14.
13505 for as_var in BASH_ENV ENV MAIL MAILPATH
13506 do eval test x\${$as_var+set} = xset \
13507 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13508 done
13509 PS1='$ '
13510 PS2='> '
13511 PS4='+ '
13512
13513 # NLS nuisances.
13514 LC_ALL=C
13515 export LC_ALL
13516 LANGUAGE=C
13517 export LANGUAGE
13518
13519 # CDPATH.
13520 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13521
13522
13523 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13524 # ----------------------------------------
13525 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13526 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13527 # script with STATUS, using 1 if that was 0.
13528 as_fn_error ()
13529 {
13530 as_status=$1; test $as_status -eq 0 && as_status=1
13531 if test "$4"; then
13532 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13533 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13534 fi
13535 $as_echo "$as_me: error: $2" >&2
13536 as_fn_exit $as_status
13537 } # as_fn_error
13538
13539
13540 # as_fn_set_status STATUS
13541 # -----------------------
13542 # Set $? to STATUS, without forking.
13543 as_fn_set_status ()
13544 {
13545 return $1
13546 } # as_fn_set_status
13547
13548 # as_fn_exit STATUS
13549 # -----------------
13550 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13551 as_fn_exit ()
13552 {
13553 set +e
13554 as_fn_set_status $1
13555 exit $1
13556 } # as_fn_exit
13557
13558 # as_fn_unset VAR
13559 # ---------------
13560 # Portably unset VAR.
13561 as_fn_unset ()
13562 {
13563 { eval $1=; unset $1;}
13564 }
13565 as_unset=as_fn_unset
13566 # as_fn_append VAR VALUE
13567 # ----------------------
13568 # Append the text in VALUE to the end of the definition contained in VAR. Take
13569 # advantage of any shell optimizations that allow amortized linear growth over
13570 # repeated appends, instead of the typical quadratic growth present in naive
13571 # implementations.
13572 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13573 eval 'as_fn_append ()
13574 {
13575 eval $1+=\$2
13576 }'
13577 else
13578 as_fn_append ()
13579 {
13580 eval $1=\$$1\$2
13581 }
13582 fi # as_fn_append
13583
13584 # as_fn_arith ARG...
13585 # ------------------
13586 # Perform arithmetic evaluation on the ARGs, and store the result in the
13587 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13588 # must be portable across $(()) and expr.
13589 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13590 eval 'as_fn_arith ()
13591 {
13592 as_val=$(( $* ))
13593 }'
13594 else
13595 as_fn_arith ()
13596 {
13597 as_val=`expr "$@" || test $? -eq 1`
13598 }
13599 fi # as_fn_arith
13600
13601
13602 if expr a : '\(a\)' >/dev/null 2>&1 &&
13603 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13604 as_expr=expr
13605 else
13606 as_expr=false
13607 fi
13608
13609 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13610 as_basename=basename
13611 else
13612 as_basename=false
13613 fi
13614
13615 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13616 as_dirname=dirname
13617 else
13618 as_dirname=false
13619 fi
13620
13621 as_me=`$as_basename -- "$0" ||
13622 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13623 X"$0" : 'X\(//\)$' \| \
13624 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13625 $as_echo X/"$0" |
13626 sed '/^.*\/\([^/][^/]*\)\/*$/{
13627 s//\1/
13628 q
13629 }
13630 /^X\/\(\/\/\)$/{
13631 s//\1/
13632 q
13633 }
13634 /^X\/\(\/\).*/{
13635 s//\1/
13636 q
13637 }
13638 s/.*/./; q'`
13639
13640 # Avoid depending upon Character Ranges.
13641 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13642 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13643 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13644 as_cr_digits='0123456789'
13645 as_cr_alnum=$as_cr_Letters$as_cr_digits
13646
13647 ECHO_C= ECHO_N= ECHO_T=
13648 case `echo -n x` in #(((((
13649 -n*)
13650 case `echo 'xy\c'` in
13651 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13652 xy) ECHO_C='\c';;
13653 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13654 ECHO_T=' ';;
13655 esac;;
13656 *)
13657 ECHO_N='-n';;
13658 esac
13659
13660 rm -f conf$$ conf$$.exe conf$$.file
13661 if test -d conf$$.dir; then
13662 rm -f conf$$.dir/conf$$.file
13663 else
13664 rm -f conf$$.dir
13665 mkdir conf$$.dir 2>/dev/null
13666 fi
13667 if (echo >conf$$.file) 2>/dev/null; then
13668 if ln -s conf$$.file conf$$ 2>/dev/null; then
13669 as_ln_s='ln -s'
13670 # ... but there are two gotchas:
13671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13673 # In both cases, we have to default to `cp -pR'.
13674 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13675 as_ln_s='cp -pR'
13676 elif ln conf$$.file conf$$ 2>/dev/null; then
13677 as_ln_s=ln
13678 else
13679 as_ln_s='cp -pR'
13680 fi
13681 else
13682 as_ln_s='cp -pR'
13683 fi
13684 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13685 rmdir conf$$.dir 2>/dev/null
13686
13687
13688 # as_fn_mkdir_p
13689 # -------------
13690 # Create "$as_dir" as a directory, including parents if necessary.
13691 as_fn_mkdir_p ()
13692 {
13693
13694 case $as_dir in #(
13695 -*) as_dir=./$as_dir;;
13696 esac
13697 test -d "$as_dir" || eval $as_mkdir_p || {
13698 as_dirs=
13699 while :; do
13700 case $as_dir in #(
13701 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13702 *) as_qdir=$as_dir;;
13703 esac
13704 as_dirs="'$as_qdir' $as_dirs"
13705 as_dir=`$as_dirname -- "$as_dir" ||
13706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13707 X"$as_dir" : 'X\(//\)[^/]' \| \
13708 X"$as_dir" : 'X\(//\)$' \| \
13709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13710 $as_echo X"$as_dir" |
13711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13712 s//\1/
13713 q
13714 }
13715 /^X\(\/\/\)[^/].*/{
13716 s//\1/
13717 q
13718 }
13719 /^X\(\/\/\)$/{
13720 s//\1/
13721 q
13722 }
13723 /^X\(\/\).*/{
13724 s//\1/
13725 q
13726 }
13727 s/.*/./; q'`
13728 test -d "$as_dir" && break
13729 done
13730 test -z "$as_dirs" || eval "mkdir $as_dirs"
13731 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13732
13733
13734 } # as_fn_mkdir_p
13735 if mkdir -p . 2>/dev/null; then
13736 as_mkdir_p='mkdir -p "$as_dir"'
13737 else
13738 test -d ./-p && rmdir ./-p
13739 as_mkdir_p=false
13740 fi
13741
13742
13743 # as_fn_executable_p FILE
13744 # -----------------------
13745 # Test if FILE is an executable regular file.
13746 as_fn_executable_p ()
13747 {
13748 test -f "$1" && test -x "$1"
13749 } # as_fn_executable_p
13750 as_test_x='test -x'
13751 as_executable_p=as_fn_executable_p
13752
13753 # Sed expression to map a string onto a valid CPP name.
13754 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13755
13756 # Sed expression to map a string onto a valid variable name.
13757 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13758
13759
13760 exec 6>&1
13761 ## ----------------------------------- ##
13762 ## Main body of $CONFIG_STATUS script. ##
13763 ## ----------------------------------- ##
13764 _ASEOF
13765 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13766
13767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13768 # Save the log message, to keep $0 and so on meaningful, and to
13769 # report actual input values of CONFIG_FILES etc. instead of their
13770 # values after options handling.
13771 ac_log="
13772 This file was extended by libisofs $as_me 1.5.8, which was
13773 generated by GNU Autoconf 2.69. Invocation command line was
13774
13775 CONFIG_FILES = $CONFIG_FILES
13776 CONFIG_HEADERS = $CONFIG_HEADERS
13777 CONFIG_LINKS = $CONFIG_LINKS
13778 CONFIG_COMMANDS = $CONFIG_COMMANDS
13779 $ $0 $@
13780
13781 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13782 "
13783
13784 _ACEOF
13785
13786 case $ac_config_files in *"
13787 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13788 esac
13789
13790
13791
13792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13793 # Files that config.status was made for.
13794 config_files="$ac_config_files"
13795 config_commands="$ac_config_commands"
13796
13797 _ACEOF
13798
13799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13800 ac_cs_usage="\
13801 \`$as_me' instantiates files and other configuration actions
13802 from templates according to the current configuration. Unless the files
13803 and actions are specified as TAGs, all are instantiated by default.
13804
13805 Usage: $0 [OPTION]... [TAG]...
13806
13807 -h, --help print this help, then exit
13808 -V, --version print version number and configuration settings, then exit
13809 --config print configuration, then exit
13810 -q, --quiet, --silent
13811 do not print progress messages
13812 -d, --debug don't remove temporary files
13813 --recheck update $as_me by reconfiguring in the same conditions
13814 --file=FILE[:TEMPLATE]
13815 instantiate the configuration file FILE
13816
13817 Configuration files:
13818 $config_files
13819
13820 Configuration commands:
13821 $config_commands
13822
13823 Report bugs to <http://libburnia-project.org>."
13824
13825 _ACEOF
13826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13828 ac_cs_version="\\
13829 libisofs config.status 1.5.8
13830 configured by $0, generated by GNU Autoconf 2.69,
13831 with options \\"\$ac_cs_config\\"
13832
13833 Copyright (C) 2012 Free Software Foundation, Inc.
13834 This config.status script is free software; the Free Software Foundation
13835 gives unlimited permission to copy, distribute and modify it."
13836
13837 ac_pwd='$ac_pwd'
13838 srcdir='$srcdir'
13839 INSTALL='$INSTALL'
13840 MKDIR_P='$MKDIR_P'
13841 AWK='$AWK'
13842 test -n "\$AWK" || AWK=awk
13843 _ACEOF
13844
13845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13846 # The default lists apply if the user does not specify any file.
13847 ac_need_defaults=:
13848 while test $# != 0
13849 do
13850 case $1 in
13851 --*=?*)
13852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13853 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13854 ac_shift=:
13855 ;;
13856 --*=)
13857 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13858 ac_optarg=
13859 ac_shift=:
13860 ;;
13861 *)
13862 ac_option=$1
13863 ac_optarg=$2
13864 ac_shift=shift
13865 ;;
13866 esac
13867
13868 case $ac_option in
13869 # Handling of the options.
13870 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13871 ac_cs_recheck=: ;;
13872 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13873 $as_echo "$ac_cs_version"; exit ;;
13874 --config | --confi | --conf | --con | --co | --c )
13875 $as_echo "$ac_cs_config"; exit ;;
13876 --debug | --debu | --deb | --de | --d | -d )
13877 debug=: ;;
13878 --file | --fil | --fi | --f )
13879 $ac_shift
13880 case $ac_optarg in
13881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13882 '') as_fn_error $? "missing file argument" ;;
13883 esac
13884 as_fn_append CONFIG_FILES " '$ac_optarg'"
13885 ac_need_defaults=false;;
13886 --he | --h | --help | --hel | -h )
13887 $as_echo "$ac_cs_usage"; exit ;;
13888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13889 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13890 ac_cs_silent=: ;;
13891
13892 # This is an error.
13893 -*) as_fn_error $? "unrecognized option: \`$1'
13894 Try \`$0 --help' for more information." ;;
13895
13896 *) as_fn_append ac_config_targets " $1"
13897 ac_need_defaults=false ;;
13898
13899 esac
13900 shift
13901 done
13902
13903 ac_configure_extra_args=
13904
13905 if $ac_cs_silent; then
13906 exec 6>/dev/null
13907 ac_configure_extra_args="$ac_configure_extra_args --silent"
13908 fi
13909
13910 _ACEOF
13911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13912 if \$ac_cs_recheck; then
13913 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13914 shift
13915 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13916 CONFIG_SHELL='$SHELL'
13917 export CONFIG_SHELL
13918 exec "\$@"
13919 fi
13920
13921 _ACEOF
13922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13923 exec 5>>config.log
13924 {
13925 echo
13926 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13927 ## Running $as_me. ##
13928 _ASBOX
13929 $as_echo "$ac_log"
13930 } >&5
13931
13932 _ACEOF
13933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13934 #
13935 # INIT-COMMANDS
13936 #
13937 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13938
13939
13940 # The HP-UX ksh and POSIX shell print the target directory to stdout
13941 # if CDPATH is set.
13942 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13943
13944 sed_quote_subst='$sed_quote_subst'
13945 double_quote_subst='$double_quote_subst'
13946 delay_variable_subst='$delay_variable_subst'
13947 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13948 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13949 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13950 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13951 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13952 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13953 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13954 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13955 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13956 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13957 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13958 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13959 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13960 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13961 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13962 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13963 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13964 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13965 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13966 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13967 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13968 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13969 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13970 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13971 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13972 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13973 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13974 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13975 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13976 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13977 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13978 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13979 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13980 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13981 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13982 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13983 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13984 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13985 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13986 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13987 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13988 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13989 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13990 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13991 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13992 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13993 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13994 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13995 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13996 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13997 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13998 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13999 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14000 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14001 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14002 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14003 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"`'
14004 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14005 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14006 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14007 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14008 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14009 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14010 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14011 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14012 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14013 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14014 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14015 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14016 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14017 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14018 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14019 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14020 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14021 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14022 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14023 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14024 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14025 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14026 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14027 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14028 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14029 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14030 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14031 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14032 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14033 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14034 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14035 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14036 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14037 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14038 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14039 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14040 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14041 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14042 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14043 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14044 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14045 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14046 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14047 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14048 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14049 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14050 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14051 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14052 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14053 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14054 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14055 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14056 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14057 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14058 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14059 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14060 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14061 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14062 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14063 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14064 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14065 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14066 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14067 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14068 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14069 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14070 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14071 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14072 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14073 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14074 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14075 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14076 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14077
14078 LTCC='$LTCC'
14079 LTCFLAGS='$LTCFLAGS'
14080 compiler='$compiler_DEFAULT'
14081
14082 # A function that is used when there is no print builtin or printf.
14083 func_fallback_echo ()
14084 {
14085 eval 'cat <<_LTECHO_EOF
14086 \$1
14087 _LTECHO_EOF'
14088 }
14089
14090 # Quote evaled strings.
14091 for var in SHELL \
14092 ECHO \
14093 PATH_SEPARATOR \
14094 SED \
14095 GREP \
14096 EGREP \
14097 FGREP \
14098 LD \
14099 NM \
14100 LN_S \
14101 lt_SP2NL \
14102 lt_NL2SP \
14103 reload_flag \
14104 OBJDUMP \
14105 deplibs_check_method \
14106 file_magic_cmd \
14107 file_magic_glob \
14108 want_nocaseglob \
14109 DLLTOOL \
14110 sharedlib_from_linklib_cmd \
14111 AR \
14112 AR_FLAGS \
14113 archiver_list_spec \
14114 STRIP \
14115 RANLIB \
14116 CC \
14117 CFLAGS \
14118 compiler \
14119 lt_cv_sys_global_symbol_pipe \
14120 lt_cv_sys_global_symbol_to_cdecl \
14121 lt_cv_sys_global_symbol_to_c_name_address \
14122 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14123 nm_file_list_spec \
14124 lt_prog_compiler_no_builtin_flag \
14125 lt_prog_compiler_pic \
14126 lt_prog_compiler_wl \
14127 lt_prog_compiler_static \
14128 lt_cv_prog_compiler_c_o \
14129 need_locks \
14130 MANIFEST_TOOL \
14131 DSYMUTIL \
14132 NMEDIT \
14133 LIPO \
14134 OTOOL \
14135 OTOOL64 \
14136 shrext_cmds \
14137 export_dynamic_flag_spec \
14138 whole_archive_flag_spec \
14139 compiler_needs_object \
14140 with_gnu_ld \
14141 allow_undefined_flag \
14142 no_undefined_flag \
14143 hardcode_libdir_flag_spec \
14144 hardcode_libdir_separator \
14145 exclude_expsyms \
14146 include_expsyms \
14147 file_list_spec \
14148 variables_saved_for_relink \
14149 libname_spec \
14150 library_names_spec \
14151 soname_spec \
14152 install_override_mode \
14153 finish_eval \
14154 old_striplib \
14155 striplib; do
14156 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14157 *[\\\\\\\`\\"\\\$]*)
14158 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14159 ;;
14160 *)
14161 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14162 ;;
14163 esac
14164 done
14165
14166 # Double-quote double-evaled strings.
14167 for var in reload_cmds \
14168 old_postinstall_cmds \
14169 old_postuninstall_cmds \
14170 old_archive_cmds \
14171 extract_expsyms_cmds \
14172 old_archive_from_new_cmds \
14173 old_archive_from_expsyms_cmds \
14174 archive_cmds \
14175 archive_expsym_cmds \
14176 module_cmds \
14177 module_expsym_cmds \
14178 export_symbols_cmds \
14179 prelink_cmds \
14180 postlink_cmds \
14181 postinstall_cmds \
14182 postuninstall_cmds \
14183 finish_cmds \
14184 sys_lib_search_path_spec \
14185 sys_lib_dlsearch_path_spec; do
14186 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14187 *[\\\\\\\`\\"\\\$]*)
14188 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14189 ;;
14190 *)
14191 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14192 ;;
14193 esac
14194 done
14195
14196 ac_aux_dir='$ac_aux_dir'
14197 xsi_shell='$xsi_shell'
14198 lt_shell_append='$lt_shell_append'
14199
14200 # See if we are running on zsh, and set the options which allow our
14201 # commands through without removal of \ escapes INIT.
14202 if test -n "\${ZSH_VERSION+set}" ; then
14203 setopt NO_GLOB_SUBST
14204 fi
14205
14206
14207 PACKAGE='$PACKAGE'
14208 VERSION='$VERSION'
14209 TIMESTAMP='$TIMESTAMP'
14210 RM='$RM'
14211 ofile='$ofile'
14212
14213
14214
14215
14216 _ACEOF
14217
14218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14219
14220 # Handling of arguments.
14221 for ac_config_target in $ac_config_targets
14222 do
14223 case $ac_config_target in
14224 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14225 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14226 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14227 "doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen.conf" ;;
14228 "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;;
14229 "libisofs-1.pc") CONFIG_FILES="$CONFIG_FILES libisofs-1.pc" ;;
14230
14231 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14232 esac
14233 done
14234
14235
14236 # If the user did not use the arguments to specify the items to instantiate,
14237 # then the envvar interface is used. Set only those that are not.
14238 # We use the long form for the default assignment because of an extremely
14239 # bizarre bug on SunOS 4.1.3.
14240 if $ac_need_defaults; then
14241 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14242 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14243 fi
14244
14245 # Have a temporary directory for convenience. Make it in the build tree
14246 # simply because there is no reason against having it here, and in addition,
14247 # creating and moving files from /tmp can sometimes cause problems.
14248 # Hook for its removal unless debugging.
14249 # Note that there is a small window in which the directory will not be cleaned:
14250 # after its creation but before its name has been assigned to `$tmp'.
14251 $debug ||
14252 {
14253 tmp= ac_tmp=
14254 trap 'exit_status=$?
14255 : "${ac_tmp:=$tmp}"
14256 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14257 ' 0
14258 trap 'as_fn_exit 1' 1 2 13 15
14259 }
14260 # Create a (secure) tmp directory for tmp files.
14261
14262 {
14263 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14264 test -d "$tmp"
14265 } ||
14266 {
14267 tmp=./conf$$-$RANDOM
14268 (umask 077 && mkdir "$tmp")
14269 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14270 ac_tmp=$tmp
14271
14272 # Set up the scripts for CONFIG_FILES section.
14273 # No need to generate them if there are no CONFIG_FILES.
14274 # This happens for instance with `./config.status config.h'.
14275 if test -n "$CONFIG_FILES"; then
14276
14277
14278 ac_cr=`echo X | tr X '\015'`
14279 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14280 # But we know of no other shell where ac_cr would be empty at this
14281 # point, so we can use a bashism as a fallback.
14282 if test "x$ac_cr" = x; then
14283 eval ac_cr=\$\'\\r\'
14284 fi
14285 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14286 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14287 ac_cs_awk_cr='\\r'
14288 else
14289 ac_cs_awk_cr=$ac_cr
14290 fi
14291
14292 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14293 _ACEOF
14294
14295
14296 {
14297 echo "cat >conf$$subs.awk <<_ACEOF" &&
14298 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14299 echo "_ACEOF"
14300 } >conf$$subs.sh ||
14301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14302 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14303 ac_delim='%!_!# '
14304 for ac_last_try in false false false false false :; do
14305 . ./conf$$subs.sh ||
14306 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14307
14308 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14309 if test $ac_delim_n = $ac_delim_num; then
14310 break
14311 elif $ac_last_try; then
14312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14313 else
14314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14315 fi
14316 done
14317 rm -f conf$$subs.sh
14318
14319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14320 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14321 _ACEOF
14322 sed -n '
14323 h
14324 s/^/S["/; s/!.*/"]=/
14325 p
14326 g
14327 s/^[^!]*!//
14328 :repl
14329 t repl
14330 s/'"$ac_delim"'$//
14331 t delim
14332 :nl
14333 h
14334 s/\(.\{148\}\)..*/\1/
14335 t more1
14336 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14337 p
14338 n
14339 b repl
14340 :more1
14341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14342 p
14343 g
14344 s/.\{148\}//
14345 t nl
14346 :delim
14347 h
14348 s/\(.\{148\}\)..*/\1/
14349 t more2
14350 s/["\\]/\\&/g; s/^/"/; s/$/"/
14351 p
14352 b
14353 :more2
14354 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14355 p
14356 g
14357 s/.\{148\}//
14358 t delim
14359 ' <conf$$subs.awk | sed '
14360 /^[^""]/{
14361 N
14362 s/\n//
14363 }
14364 ' >>$CONFIG_STATUS || ac_write_fail=1
14365 rm -f conf$$subs.awk
14366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14367 _ACAWK
14368 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14369 for (key in S) S_is_set[key] = 1
14370 FS = ""
14371
14372 }
14373 {
14374 line = $ 0
14375 nfields = split(line, field, "@")
14376 substed = 0
14377 len = length(field[1])
14378 for (i = 2; i < nfields; i++) {
14379 key = field[i]
14380 keylen = length(key)
14381 if (S_is_set[key]) {
14382 value = S[key]
14383 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14384 len += length(value) + length(field[++i])
14385 substed = 1
14386 } else
14387 len += 1 + keylen
14388 }
14389
14390 print line
14391 }
14392
14393 _ACAWK
14394 _ACEOF
14395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14396 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14397 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14398 else
14399 cat
14400 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14401 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14402 _ACEOF
14403
14404 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14405 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14406 # trailing colons and then remove the whole line if VPATH becomes empty
14407 # (actually we leave an empty line to preserve line numbers).
14408 if test "x$srcdir" = x.; then
14409 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14410 h
14411 s///
14412 s/^/:/
14413 s/[ ]*$/:/
14414 s/:\$(srcdir):/:/g
14415 s/:\${srcdir}:/:/g
14416 s/:@srcdir@:/:/g
14417 s/^:*//
14418 s/:*$//
14419 x
14420 s/\(=[ ]*\).*/\1/
14421 G
14422 s/\n//
14423 s/^[^=]*=[ ]*$//
14424 }'
14425 fi
14426
14427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14428 fi # test -n "$CONFIG_FILES"
14429
14430
14431 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
14432 shift
14433 for ac_tag
14434 do
14435 case $ac_tag in
14436 :[FHLC]) ac_mode=$ac_tag; continue;;
14437 esac
14438 case $ac_mode$ac_tag in
14439 :[FHL]*:*);;
14440 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14441 :[FH]-) ac_tag=-:-;;
14442 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14443 esac
14444 ac_save_IFS=$IFS
14445 IFS=:
14446 set x $ac_tag
14447 IFS=$ac_save_IFS
14448 shift
14449 ac_file=$1
14450 shift
14451
14452 case $ac_mode in
14453 :L) ac_source=$1;;
14454 :[FH])
14455 ac_file_inputs=
14456 for ac_f
14457 do
14458 case $ac_f in
14459 -) ac_f="$ac_tmp/stdin";;
14460 *) # Look for the file first in the build tree, then in the source tree
14461 # (if the path is not absolute). The absolute path cannot be DOS-style,
14462 # because $ac_f cannot contain `:'.
14463 test -f "$ac_f" ||
14464 case $ac_f in
14465 [\\/$]*) false;;
14466 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14467 esac ||
14468 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14469 esac
14470 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14471 as_fn_append ac_file_inputs " '$ac_f'"
14472 done
14473
14474 # Let's still pretend it is `configure' which instantiates (i.e., don't
14475 # use $as_me), people would be surprised to read:
14476 # /* config.h. Generated by config.status. */
14477 configure_input='Generated from '`
14478 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14479 `' by configure.'
14480 if test x"$ac_file" != x-; then
14481 configure_input="$ac_file. $configure_input"
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14483 $as_echo "$as_me: creating $ac_file" >&6;}
14484 fi
14485 # Neutralize special characters interpreted by sed in replacement strings.
14486 case $configure_input in #(
14487 *\&* | *\|* | *\\* )
14488 ac_sed_conf_input=`$as_echo "$configure_input" |
14489 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14490 *) ac_sed_conf_input=$configure_input;;
14491 esac
14492
14493 case $ac_tag in
14494 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14495 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14496 esac
14497 ;;
14498 esac
14499
14500 ac_dir=`$as_dirname -- "$ac_file" ||
14501 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14502 X"$ac_file" : 'X\(//\)[^/]' \| \
14503 X"$ac_file" : 'X\(//\)$' \| \
14504 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14505 $as_echo X"$ac_file" |
14506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14507 s//\1/
14508 q
14509 }
14510 /^X\(\/\/\)[^/].*/{
14511 s//\1/
14512 q
14513 }
14514 /^X\(\/\/\)$/{
14515 s//\1/
14516 q
14517 }
14518 /^X\(\/\).*/{
14519 s//\1/
14520 q
14521 }
14522 s/.*/./; q'`
14523 as_dir="$ac_dir"; as_fn_mkdir_p
14524 ac_builddir=.
14525
14526 case "$ac_dir" in
14527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14528 *)
14529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14530 # A ".." for each directory in $ac_dir_suffix.
14531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14532 case $ac_top_builddir_sub in
14533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14535 esac ;;
14536 esac
14537 ac_abs_top_builddir=$ac_pwd
14538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14539 # for backward compatibility:
14540 ac_top_builddir=$ac_top_build_prefix
14541
14542 case $srcdir in
14543 .) # We are building in place.
14544 ac_srcdir=.
14545 ac_top_srcdir=$ac_top_builddir_sub
14546 ac_abs_top_srcdir=$ac_pwd ;;
14547 [\\/]* | ?:[\\/]* ) # Absolute name.
14548 ac_srcdir=$srcdir$ac_dir_suffix;
14549 ac_top_srcdir=$srcdir
14550 ac_abs_top_srcdir=$srcdir ;;
14551 *) # Relative name.
14552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14553 ac_top_srcdir=$ac_top_build_prefix$srcdir
14554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14555 esac
14556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14557
14558
14559 case $ac_mode in
14560 :F)
14561 #
14562 # CONFIG_FILE
14563 #
14564
14565 case $INSTALL in
14566 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14567 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14568 esac
14569 ac_MKDIR_P=$MKDIR_P
14570 case $MKDIR_P in
14571 [\\/$]* | ?:[\\/]* ) ;;
14572 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14573 esac
14574 _ACEOF
14575
14576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14577 # If the template does not know about datarootdir, expand it.
14578 # FIXME: This hack should be removed a few years after 2.60.
14579 ac_datarootdir_hack=; ac_datarootdir_seen=
14580 ac_sed_dataroot='
14581 /datarootdir/ {
14582 p
14583 q
14584 }
14585 /@datadir@/p
14586 /@docdir@/p
14587 /@infodir@/p
14588 /@localedir@/p
14589 /@mandir@/p'
14590 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14591 *datarootdir*) ac_datarootdir_seen=yes;;
14592 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14594 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14595 _ACEOF
14596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14597 ac_datarootdir_hack='
14598 s&@datadir@&$datadir&g
14599 s&@docdir@&$docdir&g
14600 s&@infodir@&$infodir&g
14601 s&@localedir@&$localedir&g
14602 s&@mandir@&$mandir&g
14603 s&\\\${datarootdir}&$datarootdir&g' ;;
14604 esac
14605 _ACEOF
14606
14607 # Neutralize VPATH when `$srcdir' = `.'.
14608 # Shell code in configure.ac might set extrasub.
14609 # FIXME: do we really want to maintain this feature?
14610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14611 ac_sed_extra="$ac_vpsub
14612 $extrasub
14613 _ACEOF
14614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14615 :t
14616 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14617 s|@configure_input@|$ac_sed_conf_input|;t t
14618 s&@top_builddir@&$ac_top_builddir_sub&;t t
14619 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14620 s&@srcdir@&$ac_srcdir&;t t
14621 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14622 s&@top_srcdir@&$ac_top_srcdir&;t t
14623 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14624 s&@builddir@&$ac_builddir&;t t
14625 s&@abs_builddir@&$ac_abs_builddir&;t t
14626 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14627 s&@INSTALL@&$ac_INSTALL&;t t
14628 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14629 $ac_datarootdir_hack
14630 "
14631 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14632 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14633
14634 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14635 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14636 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14637 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14639 which seems to be undefined. Please make sure it is defined" >&5
14640 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14641 which seems to be undefined. Please make sure it is defined" >&2;}
14642
14643 rm -f "$ac_tmp/stdin"
14644 case $ac_file in
14645 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14646 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14647 esac \
14648 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14649 ;;
14650
14651
14652 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14653 $as_echo "$as_me: executing $ac_file commands" >&6;}
14654 ;;
14655 esac
14656
14657
14658 case $ac_file$ac_mode in
14659 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14660 # Older Autoconf quotes --file arguments for eval, but not when files
14661 # are listed without --file. Let's play safe and only enable the eval
14662 # if we detect the quoting.
14663 case $CONFIG_FILES in
14664 *\'*) eval set x "$CONFIG_FILES" ;;
14665 *) set x $CONFIG_FILES ;;
14666 esac
14667 shift
14668 for mf
14669 do
14670 # Strip MF so we end up with the name of the file.
14671 mf=`echo "$mf" | sed -e 's/:.*$//'`
14672 # Check whether this is an Automake generated Makefile or not.
14673 # We used to match only the files named 'Makefile.in', but
14674 # some people rename them; so instead we look at the file content.
14675 # Grep'ing the first line is not enough: some people post-process
14676 # each Makefile.in and add a new line on top of each file to say so.
14677 # Grep'ing the whole file is not good either: AIX grep has a line
14678 # limit of 2048, but all sed's we know have understand at least 4000.
14679 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14680 dirpart=`$as_dirname -- "$mf" ||
14681 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14682 X"$mf" : 'X\(//\)[^/]' \| \
14683 X"$mf" : 'X\(//\)$' \| \
14684 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14685 $as_echo X"$mf" |
14686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14687 s//\1/
14688 q
14689 }
14690 /^X\(\/\/\)[^/].*/{
14691 s//\1/
14692 q
14693 }
14694 /^X\(\/\/\)$/{
14695 s//\1/
14696 q
14697 }
14698 /^X\(\/\).*/{
14699 s//\1/
14700 q
14701 }
14702 s/.*/./; q'`
14703 else
14704 continue
14705 fi
14706 # Extract the definition of DEPDIR, am__include, and am__quote
14707 # from the Makefile without running 'make'.
14708 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14709 test -z "$DEPDIR" && continue
14710 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14711 test -z "$am__include" && continue
14712 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14713 # Find all dependency output files, they are included files with
14714 # $(DEPDIR) in their names. We invoke sed twice because it is the
14715 # simplest approach to changing $(DEPDIR) to its actual value in the
14716 # expansion.
14717 for file in `sed -n "
14718 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14719 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14720 # Make sure the directory exists.
14721 test -f "$dirpart/$file" && continue
14722 fdir=`$as_dirname -- "$file" ||
14723 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14724 X"$file" : 'X\(//\)[^/]' \| \
14725 X"$file" : 'X\(//\)$' \| \
14726 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14727 $as_echo X"$file" |
14728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14729 s//\1/
14730 q
14731 }
14732 /^X\(\/\/\)[^/].*/{
14733 s//\1/
14734 q
14735 }
14736 /^X\(\/\/\)$/{
14737 s//\1/
14738 q
14739 }
14740 /^X\(\/\).*/{
14741 s//\1/
14742 q
14743 }
14744 s/.*/./; q'`
14745 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14746 # echo "creating $dirpart/$file"
14747 echo '# dummy' > "$dirpart/$file"
14748 done
14749 done
14750 }
14751 ;;
14752 "libtool":C)
14753
14754 # See if we are running on zsh, and set the options which allow our
14755 # commands through without removal of \ escapes.
14756 if test -n "${ZSH_VERSION+set}" ; then
14757 setopt NO_GLOB_SUBST
14758 fi
14759
14760 cfgfile="${ofile}T"
14761 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14762 $RM "$cfgfile"
14763
14764 cat <<_LT_EOF >> "$cfgfile"
14765 #! $SHELL
14766
14767 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14768 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14769 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14770 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14771 #
14772 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14773 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14774 # Foundation, Inc.
14775 # Written by Gordon Matzigkeit, 1996
14776 #
14777 # This file is part of GNU Libtool.
14778 #
14779 # GNU Libtool is free software; you can redistribute it and/or
14780 # modify it under the terms of the GNU General Public License as
14781 # published by the Free Software Foundation; either version 2 of
14782 # the License, or (at your option) any later version.
14783 #
14784 # As a special exception to the GNU General Public License,
14785 # if you distribute this file as part of a program or library that
14786 # is built using GNU Libtool, you may include this file under the
14787 # same distribution terms that you use for the rest of that program.
14788 #
14789 # GNU Libtool is distributed in the hope that it will be useful,
14790 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14791 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14792 # GNU General Public License for more details.
14793 #
14794 # You should have received a copy of the GNU General Public License
14795 # along with GNU Libtool; see the file COPYING. If not, a copy
14796 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14797 # obtained by writing to the Free Software Foundation, Inc.,
14798 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14799
14800
14801 # The names of the tagged configurations supported by this script.
14802 available_tags=""
14803
14804 # ### BEGIN LIBTOOL CONFIG
14805
14806 # Which release of libtool.m4 was used?
14807 macro_version=$macro_version
14808 macro_revision=$macro_revision
14809
14810 # Whether or not to build shared libraries.
14811 build_libtool_libs=$enable_shared
14812
14813 # Whether or not to build static libraries.
14814 build_old_libs=$enable_static
14815
14816 # What type of objects to build.
14817 pic_mode=$pic_mode
14818
14819 # Whether or not to optimize for fast installation.
14820 fast_install=$enable_fast_install
14821
14822 # Shell to use when invoking shell scripts.
14823 SHELL=$lt_SHELL
14824
14825 # An echo program that protects backslashes.
14826 ECHO=$lt_ECHO
14827
14828 # The PATH separator for the build system.
14829 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14830
14831 # The host system.
14832 host_alias=$host_alias
14833 host=$host
14834 host_os=$host_os
14835
14836 # The build system.
14837 build_alias=$build_alias
14838 build=$build
14839 build_os=$build_os
14840
14841 # A sed program that does not truncate output.
14842 SED=$lt_SED
14843
14844 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14845 Xsed="\$SED -e 1s/^X//"
14846
14847 # A grep program that handles long lines.
14848 GREP=$lt_GREP
14849
14850 # An ERE matcher.
14851 EGREP=$lt_EGREP
14852
14853 # A literal string matcher.
14854 FGREP=$lt_FGREP
14855
14856 # A BSD- or MS-compatible name lister.
14857 NM=$lt_NM
14858
14859 # Whether we need soft or hard links.
14860 LN_S=$lt_LN_S
14861
14862 # What is the maximum length of a command?
14863 max_cmd_len=$max_cmd_len
14864
14865 # Object file suffix (normally "o").
14866 objext=$ac_objext
14867
14868 # Executable file suffix (normally "").
14869 exeext=$exeext
14870
14871 # whether the shell understands "unset".
14872 lt_unset=$lt_unset
14873
14874 # turn spaces into newlines.
14875 SP2NL=$lt_lt_SP2NL
14876
14877 # turn newlines into spaces.
14878 NL2SP=$lt_lt_NL2SP
14879
14880 # convert \$build file names to \$host format.
14881 to_host_file_cmd=$lt_cv_to_host_file_cmd
14882
14883 # convert \$build files to toolchain format.
14884 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14885
14886 # An object symbol dumper.
14887 OBJDUMP=$lt_OBJDUMP
14888
14889 # Method to check whether dependent libraries are shared objects.
14890 deplibs_check_method=$lt_deplibs_check_method
14891
14892 # Command to use when deplibs_check_method = "file_magic".
14893 file_magic_cmd=$lt_file_magic_cmd
14894
14895 # How to find potential files when deplibs_check_method = "file_magic".
14896 file_magic_glob=$lt_file_magic_glob
14897
14898 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14899 want_nocaseglob=$lt_want_nocaseglob
14900
14901 # DLL creation program.
14902 DLLTOOL=$lt_DLLTOOL
14903
14904 # Command to associate shared and link libraries.
14905 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14906
14907 # The archiver.
14908 AR=$lt_AR
14909
14910 # Flags to create an archive.
14911 AR_FLAGS=$lt_AR_FLAGS
14912
14913 # How to feed a file listing to the archiver.
14914 archiver_list_spec=$lt_archiver_list_spec
14915
14916 # A symbol stripping program.
14917 STRIP=$lt_STRIP
14918
14919 # Commands used to install an old-style archive.
14920 RANLIB=$lt_RANLIB
14921 old_postinstall_cmds=$lt_old_postinstall_cmds
14922 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14923
14924 # Whether to use a lock for old archive extraction.
14925 lock_old_archive_extraction=$lock_old_archive_extraction
14926
14927 # A C compiler.
14928 LTCC=$lt_CC
14929
14930 # LTCC compiler flags.
14931 LTCFLAGS=$lt_CFLAGS
14932
14933 # Take the output of nm and produce a listing of raw symbols and C names.
14934 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14935
14936 # Transform the output of nm in a proper C declaration.
14937 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14938
14939 # Transform the output of nm in a C name address pair.
14940 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14941
14942 # Transform the output of nm in a C name address pair when lib prefix is needed.
14943 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14944
14945 # Specify filename containing input files for \$NM.
14946 nm_file_list_spec=$lt_nm_file_list_spec
14947
14948 # The root where to search for dependent libraries,and in which our libraries should be installed.
14949 lt_sysroot=$lt_sysroot
14950
14951 # The name of the directory that contains temporary libtool files.
14952 objdir=$objdir
14953
14954 # Used to examine libraries when file_magic_cmd begins with "file".
14955 MAGIC_CMD=$MAGIC_CMD
14956
14957 # Must we lock files when doing compilation?
14958 need_locks=$lt_need_locks
14959
14960 # Manifest tool.
14961 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14962
14963 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14964 DSYMUTIL=$lt_DSYMUTIL
14965
14966 # Tool to change global to local symbols on Mac OS X.
14967 NMEDIT=$lt_NMEDIT
14968
14969 # Tool to manipulate fat objects and archives on Mac OS X.
14970 LIPO=$lt_LIPO
14971
14972 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14973 OTOOL=$lt_OTOOL
14974
14975 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14976 OTOOL64=$lt_OTOOL64
14977
14978 # Old archive suffix (normally "a").
14979 libext=$libext
14980
14981 # Shared library suffix (normally ".so").
14982 shrext_cmds=$lt_shrext_cmds
14983
14984 # The commands to extract the exported symbol list from a shared archive.
14985 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14986
14987 # Variables whose values should be saved in libtool wrapper scripts and
14988 # restored at link time.
14989 variables_saved_for_relink=$lt_variables_saved_for_relink
14990
14991 # Do we need the "lib" prefix for modules?
14992 need_lib_prefix=$need_lib_prefix
14993
14994 # Do we need a version for libraries?
14995 need_version=$need_version
14996
14997 # Library versioning type.
14998 version_type=$version_type
14999
15000 # Shared library runtime path variable.
15001 runpath_var=$runpath_var
15002
15003 # Shared library path variable.
15004 shlibpath_var=$shlibpath_var
15005
15006 # Is shlibpath searched before the hard-coded library search path?
15007 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15008
15009 # Format of library name prefix.
15010 libname_spec=$lt_libname_spec
15011
15012 # List of archive names. First name is the real one, the rest are links.
15013 # The last name is the one that the linker finds with -lNAME
15014 library_names_spec=$lt_library_names_spec
15015
15016 # The coded name of the library, if different from the real name.
15017 soname_spec=$lt_soname_spec
15018
15019 # Permission mode override for installation of shared libraries.
15020 install_override_mode=$lt_install_override_mode
15021
15022 # Command to use after installation of a shared archive.
15023 postinstall_cmds=$lt_postinstall_cmds
15024
15025 # Command to use after uninstallation of a shared archive.
15026 postuninstall_cmds=$lt_postuninstall_cmds
15027
15028 # Commands used to finish a libtool library installation in a directory.
15029 finish_cmds=$lt_finish_cmds
15030
15031 # As "finish_cmds", except a single script fragment to be evaled but
15032 # not shown.
15033 finish_eval=$lt_finish_eval
15034
15035 # Whether we should hardcode library paths into libraries.
15036 hardcode_into_libs=$hardcode_into_libs
15037
15038 # Compile-time system search path for libraries.
15039 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15040
15041 # Run-time system search path for libraries.
15042 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15043
15044 # Whether dlopen is supported.
15045 dlopen_support=$enable_dlopen
15046
15047 # Whether dlopen of programs is supported.
15048 dlopen_self=$enable_dlopen_self
15049
15050 # Whether dlopen of statically linked programs is supported.
15051 dlopen_self_static=$enable_dlopen_self_static
15052
15053 # Commands to strip libraries.
15054 old_striplib=$lt_old_striplib
15055 striplib=$lt_striplib
15056
15057
15058 # The linker used to build libraries.
15059 LD=$lt_LD
15060
15061 # How to create reloadable object files.
15062 reload_flag=$lt_reload_flag
15063 reload_cmds=$lt_reload_cmds
15064
15065 # Commands used to build an old-style archive.
15066 old_archive_cmds=$lt_old_archive_cmds
15067
15068 # A language specific compiler.
15069 CC=$lt_compiler
15070
15071 # Is the compiler the GNU compiler?
15072 with_gcc=$GCC
15073
15074 # Compiler flag to turn off builtin functions.
15075 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15076
15077 # Additional compiler flags for building library objects.
15078 pic_flag=$lt_lt_prog_compiler_pic
15079
15080 # How to pass a linker flag through the compiler.
15081 wl=$lt_lt_prog_compiler_wl
15082
15083 # Compiler flag to prevent dynamic linking.
15084 link_static_flag=$lt_lt_prog_compiler_static
15085
15086 # Does compiler simultaneously support -c and -o options?
15087 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15088
15089 # Whether or not to add -lc for building shared libraries.
15090 build_libtool_need_lc=$archive_cmds_need_lc
15091
15092 # Whether or not to disallow shared libs when runtime libs are static.
15093 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15094
15095 # Compiler flag to allow reflexive dlopens.
15096 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15097
15098 # Compiler flag to generate shared objects directly from archives.
15099 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15100
15101 # Whether the compiler copes with passing no objects directly.
15102 compiler_needs_object=$lt_compiler_needs_object
15103
15104 # Create an old-style archive from a shared archive.
15105 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15106
15107 # Create a temporary old-style archive to link instead of a shared archive.
15108 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15109
15110 # Commands used to build a shared archive.
15111 archive_cmds=$lt_archive_cmds
15112 archive_expsym_cmds=$lt_archive_expsym_cmds
15113
15114 # Commands used to build a loadable module if different from building
15115 # a shared archive.
15116 module_cmds=$lt_module_cmds
15117 module_expsym_cmds=$lt_module_expsym_cmds
15118
15119 # Whether we are building with GNU ld or not.
15120 with_gnu_ld=$lt_with_gnu_ld
15121
15122 # Flag that allows shared libraries with undefined symbols to be built.
15123 allow_undefined_flag=$lt_allow_undefined_flag
15124
15125 # Flag that enforces no undefined symbols.
15126 no_undefined_flag=$lt_no_undefined_flag
15127
15128 # Flag to hardcode \$libdir into a binary during linking.
15129 # This must work even if \$libdir does not exist
15130 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15131
15132 # Whether we need a single "-rpath" flag with a separated argument.
15133 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15134
15135 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15136 # DIR into the resulting binary.
15137 hardcode_direct=$hardcode_direct
15138
15139 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15140 # DIR into the resulting binary and the resulting library dependency is
15141 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15142 # library is relocated.
15143 hardcode_direct_absolute=$hardcode_direct_absolute
15144
15145 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15146 # into the resulting binary.
15147 hardcode_minus_L=$hardcode_minus_L
15148
15149 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15150 # into the resulting binary.
15151 hardcode_shlibpath_var=$hardcode_shlibpath_var
15152
15153 # Set to "yes" if building a shared library automatically hardcodes DIR
15154 # into the library and all subsequent libraries and executables linked
15155 # against it.
15156 hardcode_automatic=$hardcode_automatic
15157
15158 # Set to yes if linker adds runtime paths of dependent libraries
15159 # to runtime path list.
15160 inherit_rpath=$inherit_rpath
15161
15162 # Whether libtool must link a program against all its dependency libraries.
15163 link_all_deplibs=$link_all_deplibs
15164
15165 # Set to "yes" if exported symbols are required.
15166 always_export_symbols=$always_export_symbols
15167
15168 # The commands to list exported symbols.
15169 export_symbols_cmds=$lt_export_symbols_cmds
15170
15171 # Symbols that should not be listed in the preloaded symbols.
15172 exclude_expsyms=$lt_exclude_expsyms
15173
15174 # Symbols that must always be exported.
15175 include_expsyms=$lt_include_expsyms
15176
15177 # Commands necessary for linking programs (against libraries) with templates.
15178 prelink_cmds=$lt_prelink_cmds
15179
15180 # Commands necessary for finishing linking programs.
15181 postlink_cmds=$lt_postlink_cmds
15182
15183 # Specify filename containing input files.
15184 file_list_spec=$lt_file_list_spec
15185
15186 # How to hardcode a shared library path into an executable.
15187 hardcode_action=$hardcode_action
15188
15189 # ### END LIBTOOL CONFIG
15190
15191 _LT_EOF
15192
15193 case $host_os in
15194 aix3*)
15195 cat <<\_LT_EOF >> "$cfgfile"
15196 # AIX sometimes has problems with the GCC collect2 program. For some
15197 # reason, if we set the COLLECT_NAMES environment variable, the problems
15198 # vanish in a puff of smoke.
15199 if test "X${COLLECT_NAMES+set}" != Xset; then
15200 COLLECT_NAMES=
15201 export COLLECT_NAMES
15202 fi
15203 _LT_EOF
15204 ;;
15205 esac
15206
15207
15208 ltmain="$ac_aux_dir/ltmain.sh"
15209
15210
15211 # We use sed instead of cat because bash on DJGPP gets confused if
15212 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15213 # text mode, it properly converts lines to CR/LF. This bash problem
15214 # is reportedly fixed, but why not run on old versions too?
15215 sed '$q' "$ltmain" >> "$cfgfile" \
15216 || (rm -f "$cfgfile"; exit 1)
15217
15218 if test x"$xsi_shell" = xyes; then
15219 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15220 func_dirname ()\
15221 {\
15222 \ case ${1} in\
15223 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15224 \ * ) func_dirname_result="${3}" ;;\
15225 \ esac\
15226 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15227 && mv -f "$cfgfile.tmp" "$cfgfile" \
15228 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15229 test 0 -eq $? || _lt_function_replace_fail=:
15230
15231
15232 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15233 func_basename ()\
15234 {\
15235 \ func_basename_result="${1##*/}"\
15236 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15237 && mv -f "$cfgfile.tmp" "$cfgfile" \
15238 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15239 test 0 -eq $? || _lt_function_replace_fail=:
15240
15241
15242 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15243 func_dirname_and_basename ()\
15244 {\
15245 \ case ${1} in\
15246 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15247 \ * ) func_dirname_result="${3}" ;;\
15248 \ esac\
15249 \ func_basename_result="${1##*/}"\
15250 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15251 && mv -f "$cfgfile.tmp" "$cfgfile" \
15252 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15253 test 0 -eq $? || _lt_function_replace_fail=:
15254
15255
15256 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15257 func_stripname ()\
15258 {\
15259 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15260 \ # positional parameters, so assign one to ordinary parameter first.\
15261 \ func_stripname_result=${3}\
15262 \ func_stripname_result=${func_stripname_result#"${1}"}\
15263 \ func_stripname_result=${func_stripname_result%"${2}"}\
15264 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15265 && mv -f "$cfgfile.tmp" "$cfgfile" \
15266 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15267 test 0 -eq $? || _lt_function_replace_fail=:
15268
15269
15270 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15271 func_split_long_opt ()\
15272 {\
15273 \ func_split_long_opt_name=${1%%=*}\
15274 \ func_split_long_opt_arg=${1#*=}\
15275 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15276 && mv -f "$cfgfile.tmp" "$cfgfile" \
15277 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15278 test 0 -eq $? || _lt_function_replace_fail=:
15279
15280
15281 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15282 func_split_short_opt ()\
15283 {\
15284 \ func_split_short_opt_arg=${1#??}\
15285 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15286 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15287 && mv -f "$cfgfile.tmp" "$cfgfile" \
15288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15289 test 0 -eq $? || _lt_function_replace_fail=:
15290
15291
15292 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15293 func_lo2o ()\
15294 {\
15295 \ case ${1} in\
15296 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15297 \ *) func_lo2o_result=${1} ;;\
15298 \ esac\
15299 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15300 && mv -f "$cfgfile.tmp" "$cfgfile" \
15301 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15302 test 0 -eq $? || _lt_function_replace_fail=:
15303
15304
15305 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15306 func_xform ()\
15307 {\
15308 func_xform_result=${1%.*}.lo\
15309 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15310 && mv -f "$cfgfile.tmp" "$cfgfile" \
15311 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15312 test 0 -eq $? || _lt_function_replace_fail=:
15313
15314
15315 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15316 func_arith ()\
15317 {\
15318 func_arith_result=$(( $* ))\
15319 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15320 && mv -f "$cfgfile.tmp" "$cfgfile" \
15321 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15322 test 0 -eq $? || _lt_function_replace_fail=:
15323
15324
15325 sed -e '/^func_len ()$/,/^} # func_len /c\
15326 func_len ()\
15327 {\
15328 func_len_result=${#1}\
15329 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15330 && mv -f "$cfgfile.tmp" "$cfgfile" \
15331 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15332 test 0 -eq $? || _lt_function_replace_fail=:
15333
15334 fi
15335
15336 if test x"$lt_shell_append" = xyes; then
15337 sed -e '/^func_append ()$/,/^} # func_append /c\
15338 func_append ()\
15339 {\
15340 eval "${1}+=\\${2}"\
15341 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15342 && mv -f "$cfgfile.tmp" "$cfgfile" \
15343 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15344 test 0 -eq $? || _lt_function_replace_fail=:
15345
15346
15347 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15348 func_append_quoted ()\
15349 {\
15350 \ func_quote_for_eval "${2}"\
15351 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15352 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15353 && mv -f "$cfgfile.tmp" "$cfgfile" \
15354 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15355 test 0 -eq $? || _lt_function_replace_fail=:
15356
15357
15358 # Save a `func_append' function call where possible by direct use of '+='
15359 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15360 && mv -f "$cfgfile.tmp" "$cfgfile" \
15361 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15362 test 0 -eq $? || _lt_function_replace_fail=:
15363 else
15364 # Save a `func_append' function call even when '+=' is not available
15365 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15366 && mv -f "$cfgfile.tmp" "$cfgfile" \
15367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15368 test 0 -eq $? || _lt_function_replace_fail=:
15369 fi
15370
15371 if test x"$_lt_function_replace_fail" = x":"; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15373 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15374 fi
15375
15376
15377 mv -f "$cfgfile" "$ofile" ||
15378 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15379 chmod +x "$ofile"
15380
15381 ;;
15382
15383 esac
15384 done # for ac_tag
15385
15386
15387 as_fn_exit 0
15388 _ACEOF
15389 ac_clean_files=$ac_clean_files_save
15390
15391 test $ac_write_fail = 0 ||
15392 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15393
15394
15395 # configure is writing to config.log, and then calls config.status.
15396 # config.status does its own redirection, appending to config.log.
15397 # Unfortunately, on DOS this fails, as config.log is still kept open
15398 # by configure, so config.status won't be able to write to it; its
15399 # output is simply discarded. So we exec the FD to /dev/null,
15400 # effectively closing config.log, so it can be properly (re)opened and
15401 # appended to by config.status. When coming back to configure, we
15402 # need to make the FD available again.
15403 if test "$no_create" != yes; then
15404 ac_cs_success=:
15405 ac_config_status_args=
15406 test "$silent" = yes &&
15407 ac_config_status_args="$ac_config_status_args --quiet"
15408 exec 5>/dev/null
15409 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15410 exec 5>>config.log
15411 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15412 # would make configure fail if this is the last instruction.
15413 $ac_cs_success || as_fn_exit 1
15414 fi
15415 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15417 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15418 fi
15419