]> wimlib.net Git - wimlib/blob - configure
Use public domain SHA1 code
[wimlib] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for wimlib 0.7.2.
4 #
5 # Report bugs to <ebiggers3@gmail.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: ebiggers3@gmail.com about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
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='wimlib'
592 PACKAGE_TARNAME='wimlib'
593 PACKAGE_VERSION='0.7.2'
594 PACKAGE_STRING='wimlib 0.7.2'
595 PACKAGE_BUGREPORT='ebiggers3@gmail.com'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/wim.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 SHA1_SOURCES
640 LIBCRYPTO_CFLAGS
641 LIBCRYPTO_LDADD
642 SSSE3_SHA1_OBJ
643 NASM
644 nasm
645 LIBFUSE_CFLAGS
646 LIBFUSE_LDADD
647 LIBXML2_CFLAGS
648 LIBXML2_LDADD
649 pkgconfigdir
650 LTLIBICONV
651 LIBICONV
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 DLLTOOL
660 OBJDUMP
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 SED
668 host_os
669 host_vendor
670 host_cpu
671 host
672 build_os
673 build_vendor
674 build_cpu
675 build
676 LIBTOOL
677 ac_ct_AR
678 AR
679 EGREP
680 GREP
681 CPP
682 am__fastdepCC_FALSE
683 am__fastdepCC_TRUE
684 CCDEPMODE
685 am__nodep
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
698 CC
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_dependency_tracking
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 with_sysroot
770 enable_libtool_lock
771 enable_rpath
772 with_libiconv_prefix
773 with_pkgconfigdir
774 enable_debug
775 enable_more_debug
776 enable_error_messages
777 enable_custom_memory_allocator
778 enable_assertions
779 enable_verify_compression
780 enable_security_data
781 with_fuse
782 enable_ssse3_sha1
783 with_libcrypto
784 '
785       ac_precious_vars='build_alias
786 host_alias
787 target_alias
788 CC
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 CPP'
794
795
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
817
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
843
844 ac_prev=
845 ac_dashdash=
846 for ac_option
847 do
848   # If the previous option needs an argument, assign it.
849   if test -n "$ac_prev"; then
850     eval $ac_prev=\$ac_option
851     ac_prev=
852     continue
853   fi
854
855   case $ac_option in
856   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857   *=)   ac_optarg= ;;
858   *)    ac_optarg=yes ;;
859   esac
860
861   # Accept the important Cygnus configure options, so we can diagnose typos.
862
863   case $ac_dashdash$ac_option in
864   --)
865     ac_dashdash=yes ;;
866
867   -bindir | --bindir | --bindi | --bind | --bin | --bi)
868     ac_prev=bindir ;;
869   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870     bindir=$ac_optarg ;;
871
872   -build | --build | --buil | --bui | --bu)
873     ac_prev=build_alias ;;
874   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875     build_alias=$ac_optarg ;;
876
877   -cache-file | --cache-file | --cache-fil | --cache-fi \
878   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879     ac_prev=cache_file ;;
880   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882     cache_file=$ac_optarg ;;
883
884   --config-cache | -C)
885     cache_file=config.cache ;;
886
887   -datadir | --datadir | --datadi | --datad)
888     ac_prev=datadir ;;
889   -datadir=* | --datadir=* | --datadi=* | --datad=*)
890     datadir=$ac_optarg ;;
891
892   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893   | --dataroo | --dataro | --datar)
894     ac_prev=datarootdir ;;
895   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897     datarootdir=$ac_optarg ;;
898
899   -disable-* | --disable-*)
900     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901     # Reject names that are not valid shell variable names.
902     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903       as_fn_error $? "invalid feature name: $ac_useropt"
904     ac_useropt_orig=$ac_useropt
905     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906     case $ac_user_opts in
907       *"
908 "enable_$ac_useropt"
909 "*) ;;
910       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911          ac_unrecognized_sep=', ';;
912     esac
913     eval enable_$ac_useropt=no ;;
914
915   -docdir | --docdir | --docdi | --doc | --do)
916     ac_prev=docdir ;;
917   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918     docdir=$ac_optarg ;;
919
920   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921     ac_prev=dvidir ;;
922   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923     dvidir=$ac_optarg ;;
924
925   -enable-* | --enable-*)
926     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929       as_fn_error $? "invalid feature name: $ac_useropt"
930     ac_useropt_orig=$ac_useropt
931     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932     case $ac_user_opts in
933       *"
934 "enable_$ac_useropt"
935 "*) ;;
936       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937          ac_unrecognized_sep=', ';;
938     esac
939     eval enable_$ac_useropt=\$ac_optarg ;;
940
941   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943   | --exec | --exe | --ex)
944     ac_prev=exec_prefix ;;
945   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947   | --exec=* | --exe=* | --ex=*)
948     exec_prefix=$ac_optarg ;;
949
950   -gas | --gas | --ga | --g)
951     # Obsolete; use --with-gas.
952     with_gas=yes ;;
953
954   -help | --help | --hel | --he | -h)
955     ac_init_help=long ;;
956   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957     ac_init_help=recursive ;;
958   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959     ac_init_help=short ;;
960
961   -host | --host | --hos | --ho)
962     ac_prev=host_alias ;;
963   -host=* | --host=* | --hos=* | --ho=*)
964     host_alias=$ac_optarg ;;
965
966   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967     ac_prev=htmldir ;;
968   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969   | --ht=*)
970     htmldir=$ac_optarg ;;
971
972   -includedir | --includedir | --includedi | --included | --include \
973   | --includ | --inclu | --incl | --inc)
974     ac_prev=includedir ;;
975   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976   | --includ=* | --inclu=* | --incl=* | --inc=*)
977     includedir=$ac_optarg ;;
978
979   -infodir | --infodir | --infodi | --infod | --info | --inf)
980     ac_prev=infodir ;;
981   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982     infodir=$ac_optarg ;;
983
984   -libdir | --libdir | --libdi | --libd)
985     ac_prev=libdir ;;
986   -libdir=* | --libdir=* | --libdi=* | --libd=*)
987     libdir=$ac_optarg ;;
988
989   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990   | --libexe | --libex | --libe)
991     ac_prev=libexecdir ;;
992   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993   | --libexe=* | --libex=* | --libe=*)
994     libexecdir=$ac_optarg ;;
995
996   -localedir | --localedir | --localedi | --localed | --locale)
997     ac_prev=localedir ;;
998   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999     localedir=$ac_optarg ;;
1000
1001   -localstatedir | --localstatedir | --localstatedi | --localstated \
1002   | --localstate | --localstat | --localsta | --localst | --locals)
1003     ac_prev=localstatedir ;;
1004   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006     localstatedir=$ac_optarg ;;
1007
1008   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009     ac_prev=mandir ;;
1010   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011     mandir=$ac_optarg ;;
1012
1013   -nfp | --nfp | --nf)
1014     # Obsolete; use --without-fp.
1015     with_fp=no ;;
1016
1017   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018   | --no-cr | --no-c | -n)
1019     no_create=yes ;;
1020
1021   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023     no_recursion=yes ;;
1024
1025   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027   | --oldin | --oldi | --old | --ol | --o)
1028     ac_prev=oldincludedir ;;
1029   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032     oldincludedir=$ac_optarg ;;
1033
1034   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035     ac_prev=prefix ;;
1036   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037     prefix=$ac_optarg ;;
1038
1039   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040   | --program-pre | --program-pr | --program-p)
1041     ac_prev=program_prefix ;;
1042   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044     program_prefix=$ac_optarg ;;
1045
1046   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047   | --program-suf | --program-su | --program-s)
1048     ac_prev=program_suffix ;;
1049   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051     program_suffix=$ac_optarg ;;
1052
1053   -program-transform-name | --program-transform-name \
1054   | --program-transform-nam | --program-transform-na \
1055   | --program-transform-n | --program-transform- \
1056   | --program-transform | --program-transfor \
1057   | --program-transfo | --program-transf \
1058   | --program-trans | --program-tran \
1059   | --progr-tra | --program-tr | --program-t)
1060     ac_prev=program_transform_name ;;
1061   -program-transform-name=* | --program-transform-name=* \
1062   | --program-transform-nam=* | --program-transform-na=* \
1063   | --program-transform-n=* | --program-transform-=* \
1064   | --program-transform=* | --program-transfor=* \
1065   | --program-transfo=* | --program-transf=* \
1066   | --program-trans=* | --program-tran=* \
1067   | --progr-tra=* | --program-tr=* | --program-t=*)
1068     program_transform_name=$ac_optarg ;;
1069
1070   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071     ac_prev=pdfdir ;;
1072   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073     pdfdir=$ac_optarg ;;
1074
1075   -psdir | --psdir | --psdi | --psd | --ps)
1076     ac_prev=psdir ;;
1077   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078     psdir=$ac_optarg ;;
1079
1080   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081   | -silent | --silent | --silen | --sile | --sil)
1082     silent=yes ;;
1083
1084   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085     ac_prev=sbindir ;;
1086   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087   | --sbi=* | --sb=*)
1088     sbindir=$ac_optarg ;;
1089
1090   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092   | --sharedst | --shareds | --shared | --share | --shar \
1093   | --sha | --sh)
1094     ac_prev=sharedstatedir ;;
1095   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098   | --sha=* | --sh=*)
1099     sharedstatedir=$ac_optarg ;;
1100
1101   -site | --site | --sit)
1102     ac_prev=site ;;
1103   -site=* | --site=* | --sit=*)
1104     site=$ac_optarg ;;
1105
1106   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107     ac_prev=srcdir ;;
1108   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109     srcdir=$ac_optarg ;;
1110
1111   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112   | --syscon | --sysco | --sysc | --sys | --sy)
1113     ac_prev=sysconfdir ;;
1114   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116     sysconfdir=$ac_optarg ;;
1117
1118   -target | --target | --targe | --targ | --tar | --ta | --t)
1119     ac_prev=target_alias ;;
1120   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121     target_alias=$ac_optarg ;;
1122
1123   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124     verbose=yes ;;
1125
1126   -version | --version | --versio | --versi | --vers | -V)
1127     ac_init_version=: ;;
1128
1129   -with-* | --with-*)
1130     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133       as_fn_error $? "invalid package name: $ac_useropt"
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137       *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141          ac_unrecognized_sep=', ';;
1142     esac
1143     eval with_$ac_useropt=\$ac_optarg ;;
1144
1145   -without-* | --without-*)
1146     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149       as_fn_error $? "invalid package name: $ac_useropt"
1150     ac_useropt_orig=$ac_useropt
1151     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152     case $ac_user_opts in
1153       *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157          ac_unrecognized_sep=', ';;
1158     esac
1159     eval with_$ac_useropt=no ;;
1160
1161   --x)
1162     # Obsolete; use --with-x.
1163     with_x=yes ;;
1164
1165   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166   | --x-incl | --x-inc | --x-in | --x-i)
1167     ac_prev=x_includes ;;
1168   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170     x_includes=$ac_optarg ;;
1171
1172   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174     ac_prev=x_libraries ;;
1175   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177     x_libraries=$ac_optarg ;;
1178
1179   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1181     ;;
1182
1183   *=*)
1184     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185     # Reject names that are not valid shell variable names.
1186     case $ac_envvar in #(
1187       '' | [0-9]* | *[!_$as_cr_alnum]* )
1188       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189     esac
1190     eval $ac_envvar=\$ac_optarg
1191     export $ac_envvar ;;
1192
1193   *)
1194     # FIXME: should be removed in autoconf 3.0.
1195     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199     ;;
1200
1201   esac
1202 done
1203
1204 if test -n "$ac_prev"; then
1205   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206   as_fn_error $? "missing argument to $ac_option"
1207 fi
1208
1209 if test -n "$ac_unrecognized_opts"; then
1210   case $enable_option_checking in
1211     no) ;;
1212     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214   esac
1215 fi
1216
1217 # Check all directory arguments for consistency.
1218 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219                 datadir sysconfdir sharedstatedir localstatedir includedir \
1220                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221                 libdir localedir mandir
1222 do
1223   eval ac_val=\$$ac_var
1224   # Remove trailing slashes.
1225   case $ac_val in
1226     */ )
1227       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228       eval $ac_var=\$ac_val;;
1229   esac
1230   # Be sure to have absolute directory names.
1231   case $ac_val in
1232     [\\/$]* | ?:[\\/]* )  continue;;
1233     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234   esac
1235   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1237
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1244
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247   if test "x$build_alias" = x; then
1248     cross_compiling=maybe
1249   elif test "x$build_alias" != "x$host_alias"; then
1250     cross_compiling=yes
1251   fi
1252 fi
1253
1254 ac_tool_prefix=
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256
1257 test "$silent" = yes && exec 6>/dev/null
1258
1259
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263   as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265   as_fn_error $? "pwd does not report name of working directory"
1266
1267
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270   ac_srcdir_defaulted=yes
1271   # Try the directory containing this script, then the parent directory.
1272   ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274          X"$as_myself" : 'X\(//\)[^/]' \| \
1275          X"$as_myself" : 'X\(//\)$' \| \
1276          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 $as_echo X"$as_myself" |
1278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)[^/].*/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\/\)$/{
1287             s//\1/
1288             q
1289           }
1290           /^X\(\/\).*/{
1291             s//\1/
1292             q
1293           }
1294           s/.*/./; q'`
1295   srcdir=$ac_confdir
1296   if test ! -r "$srcdir/$ac_unique_file"; then
1297     srcdir=..
1298   fi
1299 else
1300   ac_srcdir_defaulted=no
1301 fi
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1305 fi
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 ac_abs_confdir=`(
1308         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309         pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312   srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_env_${ac_var}_value=\$${ac_var}
1323   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1326
1327 #
1328 # Report the --help message.
1329 #
1330 if test "$ac_init_help" = "long"; then
1331   # Omit some internal or obsolete options to make the list less imposing.
1332   # This message is too long to be a string in the A/UX 3.1 sh.
1333   cat <<_ACEOF
1334 \`configure' configures wimlib 0.7.2 to adapt to many kinds of systems.
1335
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE.  See below for descriptions of some of the useful variables.
1340
1341 Defaults for the options are specified in brackets.
1342
1343 Configuration:
1344   -h, --help              display this help and exit
1345       --help=short        display options specific to this package
1346       --help=recursive    display the short help of all the included packages
1347   -V, --version           display version information and exit
1348   -q, --quiet, --silent   do not print \`checking ...' messages
1349       --cache-file=FILE   cache test results in FILE [disabled]
1350   -C, --config-cache      alias for \`--cache-file=config.cache'
1351   -n, --no-create         do not create output files
1352       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1353
1354 Installation directories:
1355   --prefix=PREFIX         install architecture-independent files in PREFIX
1356                           [$ac_default_prefix]
1357   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1358                           [PREFIX]
1359
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1364
1365 For better control, use the options below.
1366
1367 Fine tuning of the installation directories:
1368   --bindir=DIR            user executables [EPREFIX/bin]
1369   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1370   --libexecdir=DIR        program executables [EPREFIX/libexec]
1371   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1372   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1373   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1374   --libdir=DIR            object code libraries [EPREFIX/lib]
1375   --includedir=DIR        C header files [PREFIX/include]
1376   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1377   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1378   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1379   --infodir=DIR           info documentation [DATAROOTDIR/info]
1380   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1381   --mandir=DIR            man documentation [DATAROOTDIR/man]
1382   --docdir=DIR            documentation root [DATAROOTDIR/doc/wimlib]
1383   --htmldir=DIR           html documentation [DOCDIR]
1384   --dvidir=DIR            dvi documentation [DOCDIR]
1385   --pdfdir=DIR            pdf documentation [DOCDIR]
1386   --psdir=DIR             ps documentation [DOCDIR]
1387 _ACEOF
1388
1389   cat <<\_ACEOF
1390
1391 Program names:
1392   --program-prefix=PREFIX            prepend PREFIX to installed program names
1393   --program-suffix=SUFFIX            append SUFFIX to installed program names
1394   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1395
1396 System types:
1397   --build=BUILD     configure for building on BUILD [guessed]
1398   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1399 _ACEOF
1400 fi
1401
1402 if test -n "$ac_init_help"; then
1403   case $ac_init_help in
1404      short | recursive ) echo "Configuration of wimlib 0.7.2:";;
1405    esac
1406   cat <<\_ACEOF
1407
1408 Optional Features:
1409   --disable-option-checking  ignore unrecognized --enable/--with options
1410   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1411   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1412   --enable-dependency-tracking
1413                           do not reject slow dependency extractors
1414   --disable-dependency-tracking
1415                           speeds up one-time build
1416   --enable-shared[=PKGS]  build shared libraries [default=yes]
1417   --enable-static[=PKGS]  build static libraries [default=yes]
1418   --enable-fast-install[=PKGS]
1419                           optimize for fast installation [default=yes]
1420   --disable-libtool-lock  avoid locking (might break parallel builds)
1421   --disable-rpath         do not hardcode runtime library paths
1422   --enable-debug          include lots of debugging messages
1423   --enable-more-debug     include even more debugging messages
1424   --disable-error-messages
1425                           do not compile in error messsages
1426   --disable-custom-memory-allocator
1427                           do not support the use of custom memory allocation
1428                           functions
1429   --disable-assertions    do not include assertions
1430   --disable-verify-compression
1431                           disable checking if blocks we compress can be
1432                           correctly decompressed
1433   --disable-security-data disable the ability to retain the security data of
1434                           existing WIMs
1435   --enable-ssse3-sha1     use assembly language implementation of SHA1 from
1436                           Intel, accelerated with vector instructions
1437                           (SSSE3-enabled CPU required)
1438
1439 Optional Packages:
1440   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1441   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1442   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1443                           both]
1444   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1445   --with-sysroot=DIR Search for dependent libraries within DIR
1446                         (or the compiler's sysroot if not specified).
1447   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1448   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1449   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1450   --with-pkgconfigdir=DIR      pkgconfig file in DIR [LIBDIR/pkgconfig]
1451   --without-fuse          build without libfuse. This will disable the ability
1452                           to mount WIM files.
1453   --without-libcrypto     build in the SHA1 algorithm, rather than use
1454                           external libcrypto from OpenSSL (default is
1455                           autodetect)
1456
1457 Some influential environment variables:
1458   CC          C compiler command
1459   CFLAGS      C compiler flags
1460   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1461               nonstandard directory <lib dir>
1462   LIBS        libraries to pass to the linker, e.g. -l<library>
1463   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464               you have headers in a nonstandard directory <include dir>
1465   CPP         C preprocessor
1466
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1469
1470 Report bugs to <ebiggers3@gmail.com>.
1471 _ACEOF
1472 ac_status=$?
1473 fi
1474
1475 if test "$ac_init_help" = "recursive"; then
1476   # If there are subdirs, report their specific --help.
1477   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478     test -d "$ac_dir" ||
1479       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1480       continue
1481     ac_builddir=.
1482
1483 case "$ac_dir" in
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *)
1486   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1487   # A ".." for each directory in $ac_dir_suffix.
1488   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1489   case $ac_top_builddir_sub in
1490   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492   esac ;;
1493 esac
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1498
1499 case $srcdir in
1500   .)  # We are building in place.
1501     ac_srcdir=.
1502     ac_top_srcdir=$ac_top_builddir_sub
1503     ac_abs_top_srcdir=$ac_pwd ;;
1504   [\\/]* | ?:[\\/]* )  # Absolute name.
1505     ac_srcdir=$srcdir$ac_dir_suffix;
1506     ac_top_srcdir=$srcdir
1507     ac_abs_top_srcdir=$srcdir ;;
1508   *) # Relative name.
1509     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510     ac_top_srcdir=$ac_top_build_prefix$srcdir
1511     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 esac
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515     cd "$ac_dir" || { ac_status=$?; continue; }
1516     # Check for guested configure.
1517     if test -f "$ac_srcdir/configure.gnu"; then
1518       echo &&
1519       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520     elif test -f "$ac_srcdir/configure"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure" --help=recursive
1523     else
1524       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525     fi || ac_status=$?
1526     cd "$ac_pwd" || { ac_status=$?; break; }
1527   done
1528 fi
1529
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1532   cat <<\_ACEOF
1533 wimlib configure 0.7.2
1534 generated by GNU Autoconf 2.69
1535
1536 Copyright (C) 2012 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1539 _ACEOF
1540   exit
1541 fi
1542
1543 ## ------------------------ ##
1544 ## Autoconf initialization. ##
1545 ## ------------------------ ##
1546
1547 # ac_fn_c_try_compile LINENO
1548 # --------------------------
1549 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_compile ()
1551 {
1552   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553   rm -f conftest.$ac_objext
1554   if { { ac_try="$ac_compile"
1555 case "(($ac_try" in
1556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557   *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561   (eval "$ac_compile") 2>conftest.err
1562   ac_status=$?
1563   if test -s conftest.err; then
1564     grep -v '^ *+' conftest.err >conftest.er1
1565     cat conftest.er1 >&5
1566     mv -f conftest.er1 conftest.err
1567   fi
1568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569   test $ac_status = 0; } && {
1570          test -z "$ac_c_werror_flag" ||
1571          test ! -s conftest.err
1572        } && test -s conftest.$ac_objext; then :
1573   ac_retval=0
1574 else
1575   $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1577
1578         ac_retval=1
1579 fi
1580   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581   as_fn_set_status $ac_retval
1582
1583 } # ac_fn_c_try_compile
1584
1585 # ac_fn_c_try_run LINENO
1586 # ----------------------
1587 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1588 # that executables *can* be run.
1589 ac_fn_c_try_run ()
1590 {
1591   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592   if { { ac_try="$ac_link"
1593 case "(($ac_try" in
1594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595   *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599   (eval "$ac_link") 2>&5
1600   ac_status=$?
1601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1603   { { case "(($ac_try" in
1604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605   *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609   (eval "$ac_try") 2>&5
1610   ac_status=$?
1611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612   test $ac_status = 0; }; }; then :
1613   ac_retval=0
1614 else
1615   $as_echo "$as_me: program exited with status $ac_status" >&5
1616        $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619        ac_retval=$ac_status
1620 fi
1621   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1622   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623   as_fn_set_status $ac_retval
1624
1625 } # ac_fn_c_try_run
1626
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_cpp ()
1631 {
1632   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633   if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } > conftest.i && {
1649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        }; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657     ac_retval=1
1658 fi
1659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660   as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_cpp
1663
1664 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists and can be compiled using the include files in
1667 # INCLUDES, setting the cache variable VAR accordingly.
1668 ac_fn_c_check_header_compile ()
1669 {
1670   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \${$3+:} false; then :
1674   $as_echo_n "(cached) " >&6
1675 else
1676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h.  */
1678 $4
1679 #include <$2>
1680 _ACEOF
1681 if ac_fn_c_try_compile "$LINENO"; then :
1682   eval "$3=yes"
1683 else
1684   eval "$3=no"
1685 fi
1686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687 fi
1688 eval ac_res=\$$3
1689                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693 } # ac_fn_c_check_header_compile
1694
1695 # ac_fn_c_try_link LINENO
1696 # -----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_link ()
1699 {
1700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701   rm -f conftest.$ac_objext conftest$ac_exeext
1702   if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705   *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709   (eval "$ac_link") 2>conftest.err
1710   ac_status=$?
1711   if test -s conftest.err; then
1712     grep -v '^ *+' conftest.err >conftest.er1
1713     cat conftest.er1 >&5
1714     mv -f conftest.er1 conftest.err
1715   fi
1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717   test $ac_status = 0; } && {
1718          test -z "$ac_c_werror_flag" ||
1719          test ! -s conftest.err
1720        } && test -s conftest$ac_exeext && {
1721          test "$cross_compiling" = yes ||
1722          test -x conftest$ac_exeext
1723        }; then :
1724   ac_retval=0
1725 else
1726   $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729         ac_retval=1
1730 fi
1731   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733   # interfere with the next link command; also delete a directory that is
1734   # left behind by Apple's compiler.  We do this before executing the actions.
1735   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737   as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_link
1740
1741 # ac_fn_c_check_func LINENO FUNC VAR
1742 # ----------------------------------
1743 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1744 ac_fn_c_check_func ()
1745 {
1746   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750   $as_echo_n "(cached) " >&6
1751 else
1752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h.  */
1754 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1756 #define $2 innocuous_$2
1757
1758 /* System header to define __stub macros and hopefully few prototypes,
1759     which can conflict with char $2 (); below.
1760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1761     <limits.h> exists even on freestanding compilers.  */
1762
1763 #ifdef __STDC__
1764 # include <limits.h>
1765 #else
1766 # include <assert.h>
1767 #endif
1768
1769 #undef $2
1770
1771 /* Override any GCC internal prototype to avoid an error.
1772    Use char because int might match the return type of a GCC
1773    builtin and then its argument prototype would still apply.  */
1774 #ifdef __cplusplus
1775 extern "C"
1776 #endif
1777 char $2 ();
1778 /* The GNU C library defines this for functions which it implements
1779     to always fail with ENOSYS.  Some functions are actually named
1780     something starting with __ and the normal name is an alias.  */
1781 #if defined __stub_$2 || defined __stub___$2
1782 choke me
1783 #endif
1784
1785 int
1786 main ()
1787 {
1788 return $2 ();
1789   ;
1790   return 0;
1791 }
1792 _ACEOF
1793 if ac_fn_c_try_link "$LINENO"; then :
1794   eval "$3=yes"
1795 else
1796   eval "$3=no"
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext \
1799     conftest$ac_exeext conftest.$ac_ext
1800 fi
1801 eval ac_res=\$$3
1802                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806 } # ac_fn_c_check_func
1807 cat >config.log <<_ACEOF
1808 This file contains any messages produced by compilers while
1809 running configure, to aid debugging if configure makes a mistake.
1810
1811 It was created by wimlib $as_me 0.7.2, which was
1812 generated by GNU Autoconf 2.69.  Invocation command line was
1813
1814   $ $0 $@
1815
1816 _ACEOF
1817 exec 5>>config.log
1818 {
1819 cat <<_ASUNAME
1820 ## --------- ##
1821 ## Platform. ##
1822 ## --------- ##
1823
1824 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1825 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1826 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1827 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1828 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1829
1830 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1831 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1832
1833 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1834 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1835 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1836 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1837 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1838 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1839 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1840
1841 _ASUNAME
1842
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1845 do
1846   IFS=$as_save_IFS
1847   test -z "$as_dir" && as_dir=.
1848     $as_echo "PATH: $as_dir"
1849   done
1850 IFS=$as_save_IFS
1851
1852 } >&5
1853
1854 cat >&5 <<_ACEOF
1855
1856
1857 ## ----------- ##
1858 ## Core tests. ##
1859 ## ----------- ##
1860
1861 _ACEOF
1862
1863
1864 # Keep a trace of the command line.
1865 # Strip out --no-create and --no-recursion so they do not pile up.
1866 # Strip out --silent because we don't want to record it for future runs.
1867 # Also quote any args containing shell meta-characters.
1868 # Make two passes to allow for proper duplicate-argument suppression.
1869 ac_configure_args=
1870 ac_configure_args0=
1871 ac_configure_args1=
1872 ac_must_keep_next=false
1873 for ac_pass in 1 2
1874 do
1875   for ac_arg
1876   do
1877     case $ac_arg in
1878     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1879     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1880     | -silent | --silent | --silen | --sile | --sil)
1881       continue ;;
1882     *\'*)
1883       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1884     esac
1885     case $ac_pass in
1886     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1887     2)
1888       as_fn_append ac_configure_args1 " '$ac_arg'"
1889       if test $ac_must_keep_next = true; then
1890         ac_must_keep_next=false # Got value, back to normal.
1891       else
1892         case $ac_arg in
1893           *=* | --config-cache | -C | -disable-* | --disable-* \
1894           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1895           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1896           | -with-* | --with-* | -without-* | --without-* | --x)
1897             case "$ac_configure_args0 " in
1898               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1899             esac
1900             ;;
1901           -* ) ac_must_keep_next=true ;;
1902         esac
1903       fi
1904       as_fn_append ac_configure_args " '$ac_arg'"
1905       ;;
1906     esac
1907   done
1908 done
1909 { ac_configure_args0=; unset ac_configure_args0;}
1910 { ac_configure_args1=; unset ac_configure_args1;}
1911
1912 # When interrupted or exit'd, cleanup temporary files, and complete
1913 # config.log.  We remove comments because anyway the quotes in there
1914 # would cause problems or look ugly.
1915 # WARNING: Use '\'' to represent an apostrophe within the trap.
1916 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1917 trap 'exit_status=$?
1918   # Save into config.log some information that might help in debugging.
1919   {
1920     echo
1921
1922     $as_echo "## ---------------- ##
1923 ## Cache variables. ##
1924 ## ---------------- ##"
1925     echo
1926     # The following way of writing the cache mishandles newlines in values,
1927 (
1928   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1929     eval ac_val=\$$ac_var
1930     case $ac_val in #(
1931     *${as_nl}*)
1932       case $ac_var in #(
1933       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1934 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1935       esac
1936       case $ac_var in #(
1937       _ | IFS | as_nl) ;; #(
1938       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1939       *) { eval $ac_var=; unset $ac_var;} ;;
1940       esac ;;
1941     esac
1942   done
1943   (set) 2>&1 |
1944     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1945     *${as_nl}ac_space=\ *)
1946       sed -n \
1947         "s/'\''/'\''\\\\'\'''\''/g;
1948           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1949       ;; #(
1950     *)
1951       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1952       ;;
1953     esac |
1954     sort
1955 )
1956     echo
1957
1958     $as_echo "## ----------------- ##
1959 ## Output variables. ##
1960 ## ----------------- ##"
1961     echo
1962     for ac_var in $ac_subst_vars
1963     do
1964       eval ac_val=\$$ac_var
1965       case $ac_val in
1966       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967       esac
1968       $as_echo "$ac_var='\''$ac_val'\''"
1969     done | sort
1970     echo
1971
1972     if test -n "$ac_subst_files"; then
1973       $as_echo "## ------------------- ##
1974 ## File substitutions. ##
1975 ## ------------------- ##"
1976       echo
1977       for ac_var in $ac_subst_files
1978       do
1979         eval ac_val=\$$ac_var
1980         case $ac_val in
1981         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982         esac
1983         $as_echo "$ac_var='\''$ac_val'\''"
1984       done | sort
1985       echo
1986     fi
1987
1988     if test -s confdefs.h; then
1989       $as_echo "## ----------- ##
1990 ## confdefs.h. ##
1991 ## ----------- ##"
1992       echo
1993       cat confdefs.h
1994       echo
1995     fi
1996     test "$ac_signal" != 0 &&
1997       $as_echo "$as_me: caught signal $ac_signal"
1998     $as_echo "$as_me: exit $exit_status"
1999   } >&5
2000   rm -f core *.core core.conftest.* &&
2001     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2002     exit $exit_status
2003 ' 0
2004 for ac_signal in 1 2 13 15; do
2005   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2006 done
2007 ac_signal=0
2008
2009 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2010 rm -f -r conftest* confdefs.h
2011
2012 $as_echo "/* confdefs.h */" > confdefs.h
2013
2014 # Predefined preprocessor variables.
2015
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_NAME "$PACKAGE_NAME"
2018 _ACEOF
2019
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2022 _ACEOF
2023
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2026 _ACEOF
2027
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_STRING "$PACKAGE_STRING"
2030 _ACEOF
2031
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2034 _ACEOF
2035
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_URL "$PACKAGE_URL"
2038 _ACEOF
2039
2040
2041 # Let the site file select an alternate cache file if it wants to.
2042 # Prefer an explicitly selected file to automatically selected ones.
2043 ac_site_file1=NONE
2044 ac_site_file2=NONE
2045 if test -n "$CONFIG_SITE"; then
2046   # We do not want a PATH search for config.site.
2047   case $CONFIG_SITE in #((
2048     -*)  ac_site_file1=./$CONFIG_SITE;;
2049     */*) ac_site_file1=$CONFIG_SITE;;
2050     *)   ac_site_file1=./$CONFIG_SITE;;
2051   esac
2052 elif test "x$prefix" != xNONE; then
2053   ac_site_file1=$prefix/share/config.site
2054   ac_site_file2=$prefix/etc/config.site
2055 else
2056   ac_site_file1=$ac_default_prefix/share/config.site
2057   ac_site_file2=$ac_default_prefix/etc/config.site
2058 fi
2059 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2060 do
2061   test "x$ac_site_file" = xNONE && continue
2062   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2063     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2064 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2065     sed 's/^/| /' "$ac_site_file" >&5
2066     . "$ac_site_file" \
2067       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2069 as_fn_error $? "failed to load site script $ac_site_file
2070 See \`config.log' for more details" "$LINENO" 5; }
2071   fi
2072 done
2073
2074 if test -r "$cache_file"; then
2075   # Some versions of bash will fail to source /dev/null (special files
2076   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2077   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2078     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2079 $as_echo "$as_me: loading cache $cache_file" >&6;}
2080     case $cache_file in
2081       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082       *)                      . "./$cache_file";;
2083     esac
2084   fi
2085 else
2086   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2087 $as_echo "$as_me: creating cache $cache_file" >&6;}
2088   >$cache_file
2089 fi
2090
2091 # Check that the precious variables saved in the cache have kept the same
2092 # value.
2093 ac_cache_corrupted=false
2094 for ac_var in $ac_precious_vars; do
2095   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2096   eval ac_new_set=\$ac_env_${ac_var}_set
2097   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2098   eval ac_new_val=\$ac_env_${ac_var}_value
2099   case $ac_old_set,$ac_new_set in
2100     set,)
2101       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2102 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2103       ac_cache_corrupted=: ;;
2104     ,set)
2105       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2106 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2107       ac_cache_corrupted=: ;;
2108     ,);;
2109     *)
2110       if test "x$ac_old_val" != "x$ac_new_val"; then
2111         # differences in whitespace do not lead to failure.
2112         ac_old_val_w=`echo x $ac_old_val`
2113         ac_new_val_w=`echo x $ac_new_val`
2114         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2115           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2116 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2117           ac_cache_corrupted=:
2118         else
2119           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2120 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2121           eval $ac_var=\$ac_old_val
2122         fi
2123         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2124 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2125         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2126 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2127       fi;;
2128   esac
2129   # Pass precious variables to config.status.
2130   if test "$ac_new_set" = set; then
2131     case $ac_new_val in
2132     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2133     *) ac_arg=$ac_var=$ac_new_val ;;
2134     esac
2135     case " $ac_configure_args " in
2136       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2137       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2138     esac
2139   fi
2140 done
2141 if $ac_cache_corrupted; then
2142   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2145 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2146   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2147 fi
2148 ## -------------------- ##
2149 ## Main body of script. ##
2150 ## -------------------- ##
2151
2152 ac_ext=c
2153 ac_cpp='$CPP $CPPFLAGS'
2154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2157
2158
2159
2160 am__api_version='1.12'
2161
2162 ac_aux_dir=
2163 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2164   if test -f "$ac_dir/install-sh"; then
2165     ac_aux_dir=$ac_dir
2166     ac_install_sh="$ac_aux_dir/install-sh -c"
2167     break
2168   elif test -f "$ac_dir/install.sh"; then
2169     ac_aux_dir=$ac_dir
2170     ac_install_sh="$ac_aux_dir/install.sh -c"
2171     break
2172   elif test -f "$ac_dir/shtool"; then
2173     ac_aux_dir=$ac_dir
2174     ac_install_sh="$ac_aux_dir/shtool install -c"
2175     break
2176   fi
2177 done
2178 if test -z "$ac_aux_dir"; then
2179   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2180 fi
2181
2182 # These three variables are undocumented and unsupported,
2183 # and are intended to be withdrawn in a future Autoconf release.
2184 # They can cause serious problems if a builder's source tree is in a directory
2185 # whose full name contains unusual characters.
2186 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2187 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2188 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2189
2190
2191 # Find a good install program.  We prefer a C program (faster),
2192 # so one script is as good as another.  But avoid the broken or
2193 # incompatible versions:
2194 # SysV /etc/install, /usr/sbin/install
2195 # SunOS /usr/etc/install
2196 # IRIX /sbin/install
2197 # AIX /bin/install
2198 # AmigaOS /C/install, which installs bootblocks on floppy discs
2199 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2202 # OS/2's system install, which has a completely different semantic
2203 # ./install, which can be erroneously created by make from ./install.sh.
2204 # Reject install programs that cannot install multiple files.
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2206 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2207 if test -z "$INSTALL"; then
2208 if ${ac_cv_path_install+:} false; then :
2209   $as_echo_n "(cached) " >&6
2210 else
2211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2213 do
2214   IFS=$as_save_IFS
2215   test -z "$as_dir" && as_dir=.
2216     # Account for people who put trailing slashes in PATH elements.
2217 case $as_dir/ in #((
2218   ./ | .// | /[cC]/* | \
2219   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2220   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2221   /usr/ucb/* ) ;;
2222   *)
2223     # OSF1 and SCO ODT 3.0 have their own names for install.
2224     # Don't use installbsd from OSF since it installs stuff as root
2225     # by default.
2226     for ac_prog in ginstall scoinst install; do
2227       for ac_exec_ext in '' $ac_executable_extensions; do
2228         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2229           if test $ac_prog = install &&
2230             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2231             # AIX install.  It has an incompatible calling convention.
2232             :
2233           elif test $ac_prog = install &&
2234             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2235             # program-specific install script used by HP pwplus--don't use.
2236             :
2237           else
2238             rm -rf conftest.one conftest.two conftest.dir
2239             echo one > conftest.one
2240             echo two > conftest.two
2241             mkdir conftest.dir
2242             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2243               test -s conftest.one && test -s conftest.two &&
2244               test -s conftest.dir/conftest.one &&
2245               test -s conftest.dir/conftest.two
2246             then
2247               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2248               break 3
2249             fi
2250           fi
2251         fi
2252       done
2253     done
2254     ;;
2255 esac
2256
2257   done
2258 IFS=$as_save_IFS
2259
2260 rm -rf conftest.one conftest.two conftest.dir
2261
2262 fi
2263   if test "${ac_cv_path_install+set}" = set; then
2264     INSTALL=$ac_cv_path_install
2265   else
2266     # As a last resort, use the slow shell script.  Don't cache a
2267     # value for INSTALL within a source directory, because that will
2268     # break other packages using the cache if that directory is
2269     # removed, or if the value is a relative name.
2270     INSTALL=$ac_install_sh
2271   fi
2272 fi
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2274 $as_echo "$INSTALL" >&6; }
2275
2276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2277 # It thinks the first close brace ends the variable substitution.
2278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2279
2280 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2281
2282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2283
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2285 $as_echo_n "checking whether build environment is sane... " >&6; }
2286 # Reject unsafe characters in $srcdir or the absolute working directory
2287 # name.  Accept space and tab only in the latter.
2288 am_lf='
2289 '
2290 case `pwd` in
2291   *[\\\"\#\$\&\'\`$am_lf]*)
2292     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2293 esac
2294 case $srcdir in
2295   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2296     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2297 esac
2298
2299 # Do 'set' in a subshell so we don't clobber the current shell's
2300 # arguments.  Must try -L first in case configure is actually a
2301 # symlink; some systems play weird games with the mod time of symlinks
2302 # (eg FreeBSD returns the mod time of the symlink's containing
2303 # directory).
2304 if (
2305    am_has_slept=no
2306    for am_try in 1 2; do
2307      echo "timestamp, slept: $am_has_slept" > conftest.file
2308      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2309      if test "$*" = "X"; then
2310         # -L didn't work.
2311         set X `ls -t "$srcdir/configure" conftest.file`
2312      fi
2313      if test "$*" != "X $srcdir/configure conftest.file" \
2314         && test "$*" != "X conftest.file $srcdir/configure"; then
2315
2316         # If neither matched, then we have a broken ls.  This can happen
2317         # if, for instance, CONFIG_SHELL is bash and it inherits a
2318         # broken ls alias from the environment.  This has actually
2319         # happened.  Such a system could not be considered "sane".
2320         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2321   alias in your environment" "$LINENO" 5
2322      fi
2323      if test "$2" = conftest.file || test $am_try -eq 2; then
2324        break
2325      fi
2326      # Just in case.
2327      sleep 1
2328      am_has_slept=yes
2329    done
2330    test "$2" = conftest.file
2331    )
2332 then
2333    # Ok.
2334    :
2335 else
2336    as_fn_error $? "newly created file is older than distributed files!
2337 Check your system clock" "$LINENO" 5
2338 fi
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2340 $as_echo "yes" >&6; }
2341 # If we didn't sleep, we still need to ensure time stamps of config.status and
2342 # generated files are strictly newer.
2343 am_sleep_pid=
2344 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2345   ( sleep 1 ) &
2346   am_sleep_pid=$!
2347 fi
2348
2349 rm -f conftest.file
2350
2351 test "$program_prefix" != NONE &&
2352   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2353 # Use a double $ so make ignores it.
2354 test "$program_suffix" != NONE &&
2355   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2356 # Double any \ or $.
2357 # By default was `s,x,x', remove it if useless.
2358 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2359 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2360
2361 # expand $ac_aux_dir to an absolute path
2362 am_aux_dir=`cd $ac_aux_dir && pwd`
2363
2364 if test x"${MISSING+set}" != xset; then
2365   case $am_aux_dir in
2366   *\ * | *\     *)
2367     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2368   *)
2369     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2370   esac
2371 fi
2372 # Use eval to expand $SHELL
2373 if eval "$MISSING --run true"; then
2374   am_missing_run="$MISSING --run "
2375 else
2376   am_missing_run=
2377   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2378 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2379 fi
2380
2381 if test x"${install_sh}" != xset; then
2382   case $am_aux_dir in
2383   *\ * | *\     *)
2384     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2385   *)
2386     install_sh="\${SHELL} $am_aux_dir/install-sh"
2387   esac
2388 fi
2389
2390 # Installed binaries are usually stripped using 'strip' when the user
2391 # run "make install-strip".  However 'strip' might not be the right
2392 # tool to use in cross-compilation environments, therefore Automake
2393 # will honor the 'STRIP' environment variable to overrule this program.
2394 if test "$cross_compiling" != no; then
2395   if test -n "$ac_tool_prefix"; then
2396   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2397 set dummy ${ac_tool_prefix}strip; ac_word=$2
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2399 $as_echo_n "checking for $ac_word... " >&6; }
2400 if ${ac_cv_prog_STRIP+:} false; then :
2401   $as_echo_n "(cached) " >&6
2402 else
2403   if test -n "$STRIP"; then
2404   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409   IFS=$as_save_IFS
2410   test -z "$as_dir" && as_dir=.
2411     for ac_exec_ext in '' $ac_executable_extensions; do
2412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2415     break 2
2416   fi
2417 done
2418   done
2419 IFS=$as_save_IFS
2420
2421 fi
2422 fi
2423 STRIP=$ac_cv_prog_STRIP
2424 if test -n "$STRIP"; then
2425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2426 $as_echo "$STRIP" >&6; }
2427 else
2428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429 $as_echo "no" >&6; }
2430 fi
2431
2432
2433 fi
2434 if test -z "$ac_cv_prog_STRIP"; then
2435   ac_ct_STRIP=$STRIP
2436   # Extract the first word of "strip", so it can be a program name with args.
2437 set dummy strip; ac_word=$2
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2439 $as_echo_n "checking for $ac_word... " >&6; }
2440 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2441   $as_echo_n "(cached) " >&6
2442 else
2443   if test -n "$ac_ct_STRIP"; then
2444   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451     for ac_exec_ext in '' $ac_executable_extensions; do
2452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2453     ac_cv_prog_ac_ct_STRIP="strip"
2454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2455     break 2
2456   fi
2457 done
2458   done
2459 IFS=$as_save_IFS
2460
2461 fi
2462 fi
2463 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2464 if test -n "$ac_ct_STRIP"; then
2465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2466 $as_echo "$ac_ct_STRIP" >&6; }
2467 else
2468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2469 $as_echo "no" >&6; }
2470 fi
2471
2472   if test "x$ac_ct_STRIP" = x; then
2473     STRIP=":"
2474   else
2475     case $cross_compiling:$ac_tool_warned in
2476 yes:)
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2479 ac_tool_warned=yes ;;
2480 esac
2481     STRIP=$ac_ct_STRIP
2482   fi
2483 else
2484   STRIP="$ac_cv_prog_STRIP"
2485 fi
2486
2487 fi
2488 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2489
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2491 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2492 if test -z "$MKDIR_P"; then
2493   if ${ac_cv_path_mkdir+:} false; then :
2494   $as_echo_n "(cached) " >&6
2495 else
2496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2498 do
2499   IFS=$as_save_IFS
2500   test -z "$as_dir" && as_dir=.
2501     for ac_prog in mkdir gmkdir; do
2502          for ac_exec_ext in '' $ac_executable_extensions; do
2503            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2504            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2505              'mkdir (GNU coreutils) '* | \
2506              'mkdir (coreutils) '* | \
2507              'mkdir (fileutils) '4.1*)
2508                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2509                break 3;;
2510            esac
2511          done
2512        done
2513   done
2514 IFS=$as_save_IFS
2515
2516 fi
2517
2518   test -d ./--version && rmdir ./--version
2519   if test "${ac_cv_path_mkdir+set}" = set; then
2520     MKDIR_P="$ac_cv_path_mkdir -p"
2521   else
2522     # As a last resort, use the slow shell script.  Don't cache a
2523     # value for MKDIR_P within a source directory, because that will
2524     # break other packages using the cache if that directory is
2525     # removed, or if the value is a relative name.
2526     MKDIR_P="$ac_install_sh -d"
2527   fi
2528 fi
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2530 $as_echo "$MKDIR_P" >&6; }
2531
2532 mkdir_p="$MKDIR_P"
2533 case $mkdir_p in
2534   [\\/$]* | ?:[\\/]*) ;;
2535   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2536 esac
2537
2538 for ac_prog in gawk mawk nawk awk
2539 do
2540   # Extract the first word of "$ac_prog", so it can be a program name with args.
2541 set dummy $ac_prog; ac_word=$2
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543 $as_echo_n "checking for $ac_word... " >&6; }
2544 if ${ac_cv_prog_AWK+:} false; then :
2545   $as_echo_n "(cached) " >&6
2546 else
2547   if test -n "$AWK"; then
2548   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553   IFS=$as_save_IFS
2554   test -z "$as_dir" && as_dir=.
2555     for ac_exec_ext in '' $ac_executable_extensions; do
2556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557     ac_cv_prog_AWK="$ac_prog"
2558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2559     break 2
2560   fi
2561 done
2562   done
2563 IFS=$as_save_IFS
2564
2565 fi
2566 fi
2567 AWK=$ac_cv_prog_AWK
2568 if test -n "$AWK"; then
2569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2570 $as_echo "$AWK" >&6; }
2571 else
2572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2574 fi
2575
2576
2577   test -n "$AWK" && break
2578 done
2579
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2581 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2582 set x ${MAKE-make}
2583 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2584 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2585   $as_echo_n "(cached) " >&6
2586 else
2587   cat >conftest.make <<\_ACEOF
2588 SHELL = /bin/sh
2589 all:
2590         @echo '@@@%%%=$(MAKE)=@@@%%%'
2591 _ACEOF
2592 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2593 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2594   *@@@%%%=?*=@@@%%%*)
2595     eval ac_cv_prog_make_${ac_make}_set=yes;;
2596   *)
2597     eval ac_cv_prog_make_${ac_make}_set=no;;
2598 esac
2599 rm -f conftest.make
2600 fi
2601 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2603 $as_echo "yes" >&6; }
2604   SET_MAKE=
2605 else
2606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607 $as_echo "no" >&6; }
2608   SET_MAKE="MAKE=${MAKE-make}"
2609 fi
2610
2611 rm -rf .tst 2>/dev/null
2612 mkdir .tst 2>/dev/null
2613 if test -d .tst; then
2614   am__leading_dot=.
2615 else
2616   am__leading_dot=_
2617 fi
2618 rmdir .tst 2>/dev/null
2619
2620 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2621   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2622   # is not polluted with repeated "-I."
2623   am__isrc=' -I$(srcdir)'
2624   # test to see if srcdir already configured
2625   if test -f $srcdir/config.status; then
2626     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2627   fi
2628 fi
2629
2630 # test whether we have cygpath
2631 if test -z "$CYGPATH_W"; then
2632   if (cygpath --version) >/dev/null 2>/dev/null; then
2633     CYGPATH_W='cygpath -w'
2634   else
2635     CYGPATH_W=echo
2636   fi
2637 fi
2638
2639
2640 # Define the identity of the package.
2641  PACKAGE='wimlib'
2642  VERSION='0.7.2'
2643
2644
2645 cat >>confdefs.h <<_ACEOF
2646 #define PACKAGE "$PACKAGE"
2647 _ACEOF
2648
2649
2650 cat >>confdefs.h <<_ACEOF
2651 #define VERSION "$VERSION"
2652 _ACEOF
2653
2654 # Some tools Automake needs.
2655
2656 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2657
2658
2659 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2660
2661
2662 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2663
2664
2665 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2666
2667
2668 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2669
2670 # We need awk for the "check" target.  The system "awk" is bad on
2671 # some platforms.
2672 # Always define AMTAR for backward compatibility.  Yes, it's still used
2673 # in the wild :-(  We should find a proper way to deprecate it ...
2674 AMTAR='$${TAR-tar}'
2675
2676 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2677
2678
2679
2680
2681
2682
2683 DEPDIR="${am__leading_dot}deps"
2684
2685 ac_config_commands="$ac_config_commands depfiles"
2686
2687
2688 am_make=${MAKE-make}
2689 cat > confinc << 'END'
2690 am__doit:
2691         @echo this is the am__doit target
2692 .PHONY: am__doit
2693 END
2694 # If we don't find an include directive, just comment out the code.
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2696 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2697 am__include="#"
2698 am__quote=
2699 _am_result=none
2700 # First try GNU make style include.
2701 echo "include confinc" > confmf
2702 # Ignore all kinds of additional output from 'make'.
2703 case `$am_make -s -f confmf 2> /dev/null` in #(
2704 *the\ am__doit\ target*)
2705   am__include=include
2706   am__quote=
2707   _am_result=GNU
2708   ;;
2709 esac
2710 # Now try BSD make style include.
2711 if test "$am__include" = "#"; then
2712    echo '.include "confinc"' > confmf
2713    case `$am_make -s -f confmf 2> /dev/null` in #(
2714    *the\ am__doit\ target*)
2715      am__include=.include
2716      am__quote="\""
2717      _am_result=BSD
2718      ;;
2719    esac
2720 fi
2721
2722
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2724 $as_echo "$_am_result" >&6; }
2725 rm -f confinc confmf
2726
2727 # Check whether --enable-dependency-tracking was given.
2728 if test "${enable_dependency_tracking+set}" = set; then :
2729   enableval=$enable_dependency_tracking;
2730 fi
2731
2732 if test "x$enable_dependency_tracking" != xno; then
2733   am_depcomp="$ac_aux_dir/depcomp"
2734   AMDEPBACKSLASH='\'
2735   am__nodep='_no'
2736 fi
2737  if test "x$enable_dependency_tracking" != xno; then
2738   AMDEP_TRUE=
2739   AMDEP_FALSE='#'
2740 else
2741   AMDEP_TRUE='#'
2742   AMDEP_FALSE=
2743 fi
2744
2745
2746 ac_ext=c
2747 ac_cpp='$CPP $CPPFLAGS'
2748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 if test -n "$ac_tool_prefix"; then
2752   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2753 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_CC+:} false; then :
2757   $as_echo_n "(cached) " >&6
2758 else
2759   if test -n "$CC"; then
2760   ac_cv_prog_CC="$CC" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765   IFS=$as_save_IFS
2766   test -z "$as_dir" && as_dir=.
2767     for ac_exec_ext in '' $ac_executable_extensions; do
2768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771     break 2
2772   fi
2773 done
2774   done
2775 IFS=$as_save_IFS
2776
2777 fi
2778 fi
2779 CC=$ac_cv_prog_CC
2780 if test -n "$CC"; then
2781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2782 $as_echo "$CC" >&6; }
2783 else
2784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2786 fi
2787
2788
2789 fi
2790 if test -z "$ac_cv_prog_CC"; then
2791   ac_ct_CC=$CC
2792   # Extract the first word of "gcc", so it can be a program name with args.
2793 set dummy gcc; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2797   $as_echo_n "(cached) " >&6
2798 else
2799   if test -n "$ac_ct_CC"; then
2800   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805   IFS=$as_save_IFS
2806   test -z "$as_dir" && as_dir=.
2807     for ac_exec_ext in '' $ac_executable_extensions; do
2808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809     ac_cv_prog_ac_ct_CC="gcc"
2810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811     break 2
2812   fi
2813 done
2814   done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2820 if test -n "$ac_ct_CC"; then
2821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2822 $as_echo "$ac_ct_CC" >&6; }
2823 else
2824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 fi
2827
2828   if test "x$ac_ct_CC" = x; then
2829     CC=""
2830   else
2831     case $cross_compiling:$ac_tool_warned in
2832 yes:)
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2835 ac_tool_warned=yes ;;
2836 esac
2837     CC=$ac_ct_CC
2838   fi
2839 else
2840   CC="$ac_cv_prog_CC"
2841 fi
2842
2843 if test -z "$CC"; then
2844           if test -n "$ac_tool_prefix"; then
2845     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2846 set dummy ${ac_tool_prefix}cc; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if ${ac_cv_prog_CC+:} false; then :
2850   $as_echo_n "(cached) " >&6
2851 else
2852   if test -n "$CC"; then
2853   ac_cv_prog_CC="$CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858   IFS=$as_save_IFS
2859   test -z "$as_dir" && as_dir=.
2860     for ac_exec_ext in '' $ac_executable_extensions; do
2861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862     ac_cv_prog_CC="${ac_tool_prefix}cc"
2863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864     break 2
2865   fi
2866 done
2867   done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2876 else
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881
2882   fi
2883 fi
2884 if test -z "$CC"; then
2885   # Extract the first word of "cc", so it can be a program name with args.
2886 set dummy cc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if ${ac_cv_prog_CC+:} false; then :
2890   $as_echo_n "(cached) " >&6
2891 else
2892   if test -n "$CC"; then
2893   ac_cv_prog_CC="$CC" # Let the user override the test.
2894 else
2895   ac_prog_rejected=no
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899   IFS=$as_save_IFS
2900   test -z "$as_dir" && as_dir=.
2901     for ac_exec_ext in '' $ac_executable_extensions; do
2902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2904        ac_prog_rejected=yes
2905        continue
2906      fi
2907     ac_cv_prog_CC="cc"
2908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909     break 2
2910   fi
2911 done
2912   done
2913 IFS=$as_save_IFS
2914
2915 if test $ac_prog_rejected = yes; then
2916   # We found a bogon in the path, so make sure we never use it.
2917   set dummy $ac_cv_prog_CC
2918   shift
2919   if test $# != 0; then
2920     # We chose a different compiler from the bogus one.
2921     # However, it has the same basename, so the bogon will be chosen
2922     # first if we set CC to just the basename; use the full file name.
2923     shift
2924     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2925   fi
2926 fi
2927 fi
2928 fi
2929 CC=$ac_cv_prog_CC
2930 if test -n "$CC"; then
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932 $as_echo "$CC" >&6; }
2933 else
2934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 fi
2937
2938
2939 fi
2940 if test -z "$CC"; then
2941   if test -n "$ac_tool_prefix"; then
2942   for ac_prog in cl.exe
2943   do
2944     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_CC+:} false; then :
2949   $as_echo_n "(cached) " >&6
2950 else
2951   if test -n "$CC"; then
2952   ac_cv_prog_CC="$CC" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957   IFS=$as_save_IFS
2958   test -z "$as_dir" && as_dir=.
2959     for ac_exec_ext in '' $ac_executable_extensions; do
2960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963     break 2
2964   fi
2965 done
2966   done
2967 IFS=$as_save_IFS
2968
2969 fi
2970 fi
2971 CC=$ac_cv_prog_CC
2972 if test -n "$CC"; then
2973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974 $as_echo "$CC" >&6; }
2975 else
2976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2978 fi
2979
2980
2981     test -n "$CC" && break
2982   done
2983 fi
2984 if test -z "$CC"; then
2985   ac_ct_CC=$CC
2986   for ac_prog in cl.exe
2987 do
2988   # Extract the first word of "$ac_prog", so it can be a program name with args.
2989 set dummy $ac_prog; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2993   $as_echo_n "(cached) " >&6
2994 else
2995   if test -n "$ac_ct_CC"; then
2996   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001   IFS=$as_save_IFS
3002   test -z "$as_dir" && as_dir=.
3003     for ac_exec_ext in '' $ac_executable_extensions; do
3004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005     ac_cv_prog_ac_ct_CC="$ac_prog"
3006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007     break 2
3008   fi
3009 done
3010   done
3011 IFS=$as_save_IFS
3012
3013 fi
3014 fi
3015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3016 if test -n "$ac_ct_CC"; then
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3018 $as_echo "$ac_ct_CC" >&6; }
3019 else
3020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 fi
3023
3024
3025   test -n "$ac_ct_CC" && break
3026 done
3027
3028   if test "x$ac_ct_CC" = x; then
3029     CC=""
3030   else
3031     case $cross_compiling:$ac_tool_warned in
3032 yes:)
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035 ac_tool_warned=yes ;;
3036 esac
3037     CC=$ac_ct_CC
3038   fi
3039 fi
3040
3041 fi
3042
3043
3044 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 as_fn_error $? "no acceptable C compiler found in \$PATH
3047 See \`config.log' for more details" "$LINENO" 5; }
3048
3049 # Provide some information about the compiler.
3050 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3051 set X $ac_compile
3052 ac_compiler=$2
3053 for ac_option in --version -v -V -qversion; do
3054   { { ac_try="$ac_compiler $ac_option >&5"
3055 case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3062   ac_status=$?
3063   if test -s conftest.err; then
3064     sed '10a\
3065 ... rest of stderr output deleted ...
3066          10q' conftest.err >conftest.er1
3067     cat conftest.er1 >&5
3068   fi
3069   rm -f conftest.er1 conftest.err
3070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071   test $ac_status = 0; }
3072 done
3073
3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 /* end confdefs.h.  */
3076
3077 int
3078 main ()
3079 {
3080
3081   ;
3082   return 0;
3083 }
3084 _ACEOF
3085 ac_clean_files_save=$ac_clean_files
3086 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3087 # Try to create an executable without -o first, disregard a.out.
3088 # It will help us diagnose broken compilers, and finding out an intuition
3089 # of exeext.
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3091 $as_echo_n "checking whether the C compiler works... " >&6; }
3092 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3093
3094 # The possible output files:
3095 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3096
3097 ac_rmfiles=
3098 for ac_file in $ac_files
3099 do
3100   case $ac_file in
3101     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3102     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3103   esac
3104 done
3105 rm -f $ac_rmfiles
3106
3107 if { { ac_try="$ac_link_default"
3108 case "(($ac_try" in
3109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110   *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114   (eval "$ac_link_default") 2>&5
3115   ac_status=$?
3116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117   test $ac_status = 0; }; then :
3118   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3119 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3120 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3121 # so that the user can short-circuit this test for compilers unknown to
3122 # Autoconf.
3123 for ac_file in $ac_files ''
3124 do
3125   test -f "$ac_file" || continue
3126   case $ac_file in
3127     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3128         ;;
3129     [ab].out )
3130         # We found the default executable, but exeext='' is most
3131         # certainly right.
3132         break;;
3133     *.* )
3134         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3135         then :; else
3136            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3137         fi
3138         # We set ac_cv_exeext here because the later test for it is not
3139         # safe: cross compilers may not add the suffix if given an `-o'
3140         # argument, so we may need to know it at that point already.
3141         # Even if this section looks crufty: it has the advantage of
3142         # actually working.
3143         break;;
3144     * )
3145         break;;
3146   esac
3147 done
3148 test "$ac_cv_exeext" = no && ac_cv_exeext=
3149
3150 else
3151   ac_file=''
3152 fi
3153 if test -z "$ac_file"; then :
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 $as_echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error 77 "C compiler cannot create executables
3162 See \`config.log' for more details" "$LINENO" 5; }
3163 else
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165 $as_echo "yes" >&6; }
3166 fi
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3168 $as_echo_n "checking for C compiler default output file name... " >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3170 $as_echo "$ac_file" >&6; }
3171 ac_exeext=$ac_cv_exeext
3172
3173 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3174 ac_clean_files=$ac_clean_files_save
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3176 $as_echo_n "checking for suffix of executables... " >&6; }
3177 if { { ac_try="$ac_link"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184   (eval "$ac_link") 2>&5
3185   ac_status=$?
3186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187   test $ac_status = 0; }; then :
3188   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3189 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3190 # work properly (i.e., refer to `conftest.exe'), while it won't with
3191 # `rm'.
3192 for ac_file in conftest.exe conftest conftest.*; do
3193   test -f "$ac_file" || continue
3194   case $ac_file in
3195     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3196     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3197           break;;
3198     * ) break;;
3199   esac
3200 done
3201 else
3202   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3205 See \`config.log' for more details" "$LINENO" 5; }
3206 fi
3207 rm -f conftest conftest$ac_cv_exeext
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3209 $as_echo "$ac_cv_exeext" >&6; }
3210
3211 rm -f conftest.$ac_ext
3212 EXEEXT=$ac_cv_exeext
3213 ac_exeext=$EXEEXT
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h.  */
3216 #include <stdio.h>
3217 int
3218 main ()
3219 {
3220 FILE *f = fopen ("conftest.out", "w");
3221  return ferror (f) || fclose (f) != 0;
3222
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 ac_clean_files="$ac_clean_files conftest.out"
3228 # Check that the compiler produces executables we can run.  If not, either
3229 # the compiler is broken, or we cross compile.
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3231 $as_echo_n "checking whether we are cross compiling... " >&6; }
3232 if test "$cross_compiling" != yes; then
3233   { { ac_try="$ac_link"
3234 case "(($ac_try" in
3235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236   *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240   (eval "$ac_link") 2>&5
3241   ac_status=$?
3242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243   test $ac_status = 0; }
3244   if { ac_try='./conftest$ac_cv_exeext'
3245   { { case "(($ac_try" in
3246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247   *) ac_try_echo=$ac_try;;
3248 esac
3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250 $as_echo "$ac_try_echo"; } >&5
3251   (eval "$ac_try") 2>&5
3252   ac_status=$?
3253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254   test $ac_status = 0; }; }; then
3255     cross_compiling=no
3256   else
3257     if test "$cross_compiling" = maybe; then
3258         cross_compiling=yes
3259     else
3260         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error $? "cannot run C compiled programs.
3263 If you meant to cross compile, use \`--host'.
3264 See \`config.log' for more details" "$LINENO" 5; }
3265     fi
3266   fi
3267 fi
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3269 $as_echo "$cross_compiling" >&6; }
3270
3271 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3272 ac_clean_files=$ac_clean_files_save
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3274 $as_echo_n "checking for suffix of object files... " >&6; }
3275 if ${ac_cv_objext+:} false; then :
3276   $as_echo_n "(cached) " >&6
3277 else
3278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h.  */
3280
3281 int
3282 main ()
3283 {
3284
3285   ;
3286   return 0;
3287 }
3288 _ACEOF
3289 rm -f conftest.o conftest.obj
3290 if { { ac_try="$ac_compile"
3291 case "(($ac_try" in
3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293   *) ac_try_echo=$ac_try;;
3294 esac
3295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296 $as_echo "$ac_try_echo"; } >&5
3297   (eval "$ac_compile") 2>&5
3298   ac_status=$?
3299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300   test $ac_status = 0; }; then :
3301   for ac_file in conftest.o conftest.obj conftest.*; do
3302   test -f "$ac_file" || continue;
3303   case $ac_file in
3304     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3305     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3306        break;;
3307   esac
3308 done
3309 else
3310   $as_echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "cannot compute suffix of object files: cannot compile
3316 See \`config.log' for more details" "$LINENO" 5; }
3317 fi
3318 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3319 fi
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3321 $as_echo "$ac_cv_objext" >&6; }
3322 OBJEXT=$ac_cv_objext
3323 ac_objext=$OBJEXT
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3325 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3326 if ${ac_cv_c_compiler_gnu+:} false; then :
3327   $as_echo_n "(cached) " >&6
3328 else
3329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h.  */
3331
3332 int
3333 main ()
3334 {
3335 #ifndef __GNUC__
3336        choke me
3337 #endif
3338
3339   ;
3340   return 0;
3341 }
3342 _ACEOF
3343 if ac_fn_c_try_compile "$LINENO"; then :
3344   ac_compiler_gnu=yes
3345 else
3346   ac_compiler_gnu=no
3347 fi
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3350
3351 fi
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3353 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3354 if test $ac_compiler_gnu = yes; then
3355   GCC=yes
3356 else
3357   GCC=
3358 fi
3359 ac_test_CFLAGS=${CFLAGS+set}
3360 ac_save_CFLAGS=$CFLAGS
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3362 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3363 if ${ac_cv_prog_cc_g+:} false; then :
3364   $as_echo_n "(cached) " >&6
3365 else
3366   ac_save_c_werror_flag=$ac_c_werror_flag
3367    ac_c_werror_flag=yes
3368    ac_cv_prog_cc_g=no
3369    CFLAGS="-g"
3370    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h.  */
3372
3373 int
3374 main ()
3375 {
3376
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 if ac_fn_c_try_compile "$LINENO"; then :
3382   ac_cv_prog_cc_g=yes
3383 else
3384   CFLAGS=""
3385       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h.  */
3387
3388 int
3389 main ()
3390 {
3391
3392   ;
3393   return 0;
3394 }
3395 _ACEOF
3396 if ac_fn_c_try_compile "$LINENO"; then :
3397
3398 else
3399   ac_c_werror_flag=$ac_save_c_werror_flag
3400          CFLAGS="-g"
3401          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h.  */
3403
3404 int
3405 main ()
3406 {
3407
3408   ;
3409   return 0;
3410 }
3411 _ACEOF
3412 if ac_fn_c_try_compile "$LINENO"; then :
3413   ac_cv_prog_cc_g=yes
3414 fi
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 fi
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 fi
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420    ac_c_werror_flag=$ac_save_c_werror_flag
3421 fi
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3423 $as_echo "$ac_cv_prog_cc_g" >&6; }
3424 if test "$ac_test_CFLAGS" = set; then
3425   CFLAGS=$ac_save_CFLAGS
3426 elif test $ac_cv_prog_cc_g = yes; then
3427   if test "$GCC" = yes; then
3428     CFLAGS="-g -O2"
3429   else
3430     CFLAGS="-g"
3431   fi
3432 else
3433   if test "$GCC" = yes; then
3434     CFLAGS="-O2"
3435   else
3436     CFLAGS=
3437   fi
3438 fi
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3440 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3441 if ${ac_cv_prog_cc_c89+:} false; then :
3442   $as_echo_n "(cached) " >&6
3443 else
3444   ac_cv_prog_cc_c89=no
3445 ac_save_CC=$CC
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h.  */
3448 #include <stdarg.h>
3449 #include <stdio.h>
3450 struct stat;
3451 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3452 struct buf { int x; };
3453 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3454 static char *e (p, i)
3455      char **p;
3456      int i;
3457 {
3458   return p[i];
3459 }
3460 static char *f (char * (*g) (char **, int), char **p, ...)
3461 {
3462   char *s;
3463   va_list v;
3464   va_start (v,p);
3465   s = g (p, va_arg (v,int));
3466   va_end (v);
3467   return s;
3468 }
3469
3470 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3471    function prototypes and stuff, but not '\xHH' hex character constants.
3472    These don't provoke an error unfortunately, instead are silently treated
3473    as 'x'.  The following induces an error, until -std is added to get
3474    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3475    array size at least.  It's necessary to write '\x00'==0 to get something
3476    that's true only with -std.  */
3477 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3478
3479 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3480    inside strings and character constants.  */
3481 #define FOO(x) 'x'
3482 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3483
3484 int test (int i, double x);
3485 struct s1 {int (*f) (int a);};
3486 struct s2 {int (*f) (double a);};
3487 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3488 int argc;
3489 char **argv;
3490 int
3491 main ()
3492 {
3493 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3494   ;
3495   return 0;
3496 }
3497 _ACEOF
3498 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3499         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3500 do
3501   CC="$ac_save_CC $ac_arg"
3502   if ac_fn_c_try_compile "$LINENO"; then :
3503   ac_cv_prog_cc_c89=$ac_arg
3504 fi
3505 rm -f core conftest.err conftest.$ac_objext
3506   test "x$ac_cv_prog_cc_c89" != "xno" && break
3507 done
3508 rm -f conftest.$ac_ext
3509 CC=$ac_save_CC
3510
3511 fi
3512 # AC_CACHE_VAL
3513 case "x$ac_cv_prog_cc_c89" in
3514   x)
3515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3516 $as_echo "none needed" >&6; } ;;
3517   xno)
3518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3519 $as_echo "unsupported" >&6; } ;;
3520   *)
3521     CC="$CC $ac_cv_prog_cc_c89"
3522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3523 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3524 esac
3525 if test "x$ac_cv_prog_cc_c89" != xno; then :
3526
3527 fi
3528
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534
3535 depcc="$CC"   am_compiler_list=
3536
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3538 $as_echo_n "checking dependency style of $depcc... " >&6; }
3539 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3540   $as_echo_n "(cached) " >&6
3541 else
3542   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3543   # We make a subdir and do the tests there.  Otherwise we can end up
3544   # making bogus files that we don't know about and never remove.  For
3545   # instance it was reported that on HP-UX the gcc test will end up
3546   # making a dummy file named 'D' -- because '-MD' means "put the output
3547   # in D".
3548   rm -rf conftest.dir
3549   mkdir conftest.dir
3550   # Copy depcomp to subdir because otherwise we won't find it if we're
3551   # using a relative directory.
3552   cp "$am_depcomp" conftest.dir
3553   cd conftest.dir
3554   # We will build objects and dependencies in a subdirectory because
3555   # it helps to detect inapplicable dependency modes.  For instance
3556   # both Tru64's cc and ICC support -MD to output dependencies as a
3557   # side effect of compilation, but ICC will put the dependencies in
3558   # the current directory while Tru64 will put them in the object
3559   # directory.
3560   mkdir sub
3561
3562   am_cv_CC_dependencies_compiler_type=none
3563   if test "$am_compiler_list" = ""; then
3564      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3565   fi
3566   am__universal=false
3567   case " $depcc " in #(
3568      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3569      esac
3570
3571   for depmode in $am_compiler_list; do
3572     # Setup a source with many dependencies, because some compilers
3573     # like to wrap large dependency lists on column 80 (with \), and
3574     # we should not choose a depcomp mode which is confused by this.
3575     #
3576     # We need to recreate these files for each test, as the compiler may
3577     # overwrite some of them when testing with obscure command lines.
3578     # This happens at least with the AIX C compiler.
3579     : > sub/conftest.c
3580     for i in 1 2 3 4 5 6; do
3581       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3582       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3583       # Solaris 10 /bin/sh.
3584       echo '/* dummy */' > sub/conftst$i.h
3585     done
3586     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3587
3588     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3589     # mode.  It turns out that the SunPro C++ compiler does not properly
3590     # handle '-M -o', and we need to detect this.  Also, some Intel
3591     # versions had trouble with output in subdirs.
3592     am__obj=sub/conftest.${OBJEXT-o}
3593     am__minus_obj="-o $am__obj"
3594     case $depmode in
3595     gcc)
3596       # This depmode causes a compiler race in universal mode.
3597       test "$am__universal" = false || continue
3598       ;;
3599     nosideeffect)
3600       # After this tag, mechanisms are not by side-effect, so they'll
3601       # only be used when explicitly requested.
3602       if test "x$enable_dependency_tracking" = xyes; then
3603         continue
3604       else
3605         break
3606       fi
3607       ;;
3608     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3609       # This compiler won't grok '-c -o', but also, the minuso test has
3610       # not run yet.  These depmodes are late enough in the game, and
3611       # so weak that their functioning should not be impacted.
3612       am__obj=conftest.${OBJEXT-o}
3613       am__minus_obj=
3614       ;;
3615     none) break ;;
3616     esac
3617     if depmode=$depmode \
3618        source=sub/conftest.c object=$am__obj \
3619        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3620        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3621          >/dev/null 2>conftest.err &&
3622        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3623        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3624        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3625        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3626       # icc doesn't choke on unknown options, it will just issue warnings
3627       # or remarks (even with -Werror).  So we grep stderr for any message
3628       # that says an option was ignored or not supported.
3629       # When given -MP, icc 7.0 and 7.1 complain thusly:
3630       #   icc: Command line warning: ignoring option '-M'; no argument required
3631       # The diagnosis changed in icc 8.0:
3632       #   icc: Command line remark: option '-MP' not supported
3633       if (grep 'ignoring option' conftest.err ||
3634           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3635         am_cv_CC_dependencies_compiler_type=$depmode
3636         break
3637       fi
3638     fi
3639   done
3640
3641   cd ..
3642   rm -rf conftest.dir
3643 else
3644   am_cv_CC_dependencies_compiler_type=none
3645 fi
3646
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3649 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3650 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3651
3652  if
3653   test "x$enable_dependency_tracking" != xno \
3654   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3655   am__fastdepCC_TRUE=
3656   am__fastdepCC_FALSE='#'
3657 else
3658   am__fastdepCC_TRUE='#'
3659   am__fastdepCC_FALSE=
3660 fi
3661
3662
3663
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3670 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3671 # On Suns, sometimes $CPP names a directory.
3672 if test -n "$CPP" && test -d "$CPP"; then
3673   CPP=
3674 fi
3675 if test -z "$CPP"; then
3676   if ${ac_cv_prog_CPP+:} false; then :
3677   $as_echo_n "(cached) " >&6
3678 else
3679       # Double quotes because CPP needs to be expanded
3680     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3681     do
3682       ac_preproc_ok=false
3683 for ac_c_preproc_warn_flag in '' yes
3684 do
3685   # Use a header file that comes with gcc, so configuring glibc
3686   # with a fresh cross-compiler works.
3687   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3688   # <limits.h> exists even on freestanding compilers.
3689   # On the NeXT, cc -E runs the code through the compiler's parser,
3690   # not just through cpp. "Syntax error" is here to catch this case.
3691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h.  */
3693 #ifdef __STDC__
3694 # include <limits.h>
3695 #else
3696 # include <assert.h>
3697 #endif
3698                      Syntax error
3699 _ACEOF
3700 if ac_fn_c_try_cpp "$LINENO"; then :
3701
3702 else
3703   # Broken: fails on valid input.
3704 continue
3705 fi
3706 rm -f conftest.err conftest.i conftest.$ac_ext
3707
3708   # OK, works on sane cases.  Now check whether nonexistent headers
3709   # can be detected and how.
3710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h.  */
3712 #include <ac_nonexistent.h>
3713 _ACEOF
3714 if ac_fn_c_try_cpp "$LINENO"; then :
3715   # Broken: success on invalid input.
3716 continue
3717 else
3718   # Passes both tests.
3719 ac_preproc_ok=:
3720 break
3721 fi
3722 rm -f conftest.err conftest.i conftest.$ac_ext
3723
3724 done
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.i conftest.err conftest.$ac_ext
3727 if $ac_preproc_ok; then :
3728   break
3729 fi
3730
3731     done
3732     ac_cv_prog_CPP=$CPP
3733
3734 fi
3735   CPP=$ac_cv_prog_CPP
3736 else
3737   ac_cv_prog_CPP=$CPP
3738 fi
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3740 $as_echo "$CPP" >&6; }
3741 ac_preproc_ok=false
3742 for ac_c_preproc_warn_flag in '' yes
3743 do
3744   # Use a header file that comes with gcc, so configuring glibc
3745   # with a fresh cross-compiler works.
3746   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3747   # <limits.h> exists even on freestanding compilers.
3748   # On the NeXT, cc -E runs the code through the compiler's parser,
3749   # not just through cpp. "Syntax error" is here to catch this case.
3750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h.  */
3752 #ifdef __STDC__
3753 # include <limits.h>
3754 #else
3755 # include <assert.h>
3756 #endif
3757                      Syntax error
3758 _ACEOF
3759 if ac_fn_c_try_cpp "$LINENO"; then :
3760
3761 else
3762   # Broken: fails on valid input.
3763 continue
3764 fi
3765 rm -f conftest.err conftest.i conftest.$ac_ext
3766
3767   # OK, works on sane cases.  Now check whether nonexistent headers
3768   # can be detected and how.
3769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h.  */
3771 #include <ac_nonexistent.h>
3772 _ACEOF
3773 if ac_fn_c_try_cpp "$LINENO"; then :
3774   # Broken: success on invalid input.
3775 continue
3776 else
3777   # Passes both tests.
3778 ac_preproc_ok=:
3779 break
3780 fi
3781 rm -f conftest.err conftest.i conftest.$ac_ext
3782
3783 done
3784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3785 rm -f conftest.i conftest.err conftest.$ac_ext
3786 if $ac_preproc_ok; then :
3787
3788 else
3789   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3791 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3792 See \`config.log' for more details" "$LINENO" 5; }
3793 fi
3794
3795 ac_ext=c
3796 ac_cpp='$CPP $CPPFLAGS'
3797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800
3801
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3803 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3804 if ${ac_cv_path_GREP+:} false; then :
3805   $as_echo_n "(cached) " >&6
3806 else
3807   if test -z "$GREP"; then
3808   ac_path_GREP_found=false
3809   # Loop through the user's path and test for each of PROGNAME-LIST
3810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3812 do
3813   IFS=$as_save_IFS
3814   test -z "$as_dir" && as_dir=.
3815     for ac_prog in grep ggrep; do
3816     for ac_exec_ext in '' $ac_executable_extensions; do
3817       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3818       as_fn_executable_p "$ac_path_GREP" || continue
3819 # Check for GNU ac_path_GREP and select it if it is found.
3820   # Check for GNU $ac_path_GREP
3821 case `"$ac_path_GREP" --version 2>&1` in
3822 *GNU*)
3823   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3824 *)
3825   ac_count=0
3826   $as_echo_n 0123456789 >"conftest.in"
3827   while :
3828   do
3829     cat "conftest.in" "conftest.in" >"conftest.tmp"
3830     mv "conftest.tmp" "conftest.in"
3831     cp "conftest.in" "conftest.nl"
3832     $as_echo 'GREP' >> "conftest.nl"
3833     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3834     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3835     as_fn_arith $ac_count + 1 && ac_count=$as_val
3836     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3837       # Best one so far, save it but keep looking for a better one
3838       ac_cv_path_GREP="$ac_path_GREP"
3839       ac_path_GREP_max=$ac_count
3840     fi
3841     # 10*(2^10) chars as input seems more than enough
3842     test $ac_count -gt 10 && break
3843   done
3844   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3845 esac
3846
3847       $ac_path_GREP_found && break 3
3848     done
3849   done
3850   done
3851 IFS=$as_save_IFS
3852   if test -z "$ac_cv_path_GREP"; then
3853     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3854   fi
3855 else
3856   ac_cv_path_GREP=$GREP
3857 fi
3858
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3861 $as_echo "$ac_cv_path_GREP" >&6; }
3862  GREP="$ac_cv_path_GREP"
3863
3864
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3866 $as_echo_n "checking for egrep... " >&6; }
3867 if ${ac_cv_path_EGREP+:} false; then :
3868   $as_echo_n "(cached) " >&6
3869 else
3870   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3871    then ac_cv_path_EGREP="$GREP -E"
3872    else
3873      if test -z "$EGREP"; then
3874   ac_path_EGREP_found=false
3875   # Loop through the user's path and test for each of PROGNAME-LIST
3876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3878 do
3879   IFS=$as_save_IFS
3880   test -z "$as_dir" && as_dir=.
3881     for ac_prog in egrep; do
3882     for ac_exec_ext in '' $ac_executable_extensions; do
3883       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3884       as_fn_executable_p "$ac_path_EGREP" || continue
3885 # Check for GNU ac_path_EGREP and select it if it is found.
3886   # Check for GNU $ac_path_EGREP
3887 case `"$ac_path_EGREP" --version 2>&1` in
3888 *GNU*)
3889   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3890 *)
3891   ac_count=0
3892   $as_echo_n 0123456789 >"conftest.in"
3893   while :
3894   do
3895     cat "conftest.in" "conftest.in" >"conftest.tmp"
3896     mv "conftest.tmp" "conftest.in"
3897     cp "conftest.in" "conftest.nl"
3898     $as_echo 'EGREP' >> "conftest.nl"
3899     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3900     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3901     as_fn_arith $ac_count + 1 && ac_count=$as_val
3902     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3903       # Best one so far, save it but keep looking for a better one
3904       ac_cv_path_EGREP="$ac_path_EGREP"
3905       ac_path_EGREP_max=$ac_count
3906     fi
3907     # 10*(2^10) chars as input seems more than enough
3908     test $ac_count -gt 10 && break
3909   done
3910   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3911 esac
3912
3913       $ac_path_EGREP_found && break 3
3914     done
3915   done
3916   done
3917 IFS=$as_save_IFS
3918   if test -z "$ac_cv_path_EGREP"; then
3919     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3920   fi
3921 else
3922   ac_cv_path_EGREP=$EGREP
3923 fi
3924
3925    fi
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3928 $as_echo "$ac_cv_path_EGREP" >&6; }
3929  EGREP="$ac_cv_path_EGREP"
3930
3931
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3933 $as_echo_n "checking for ANSI C header files... " >&6; }
3934 if ${ac_cv_header_stdc+:} false; then :
3935   $as_echo_n "(cached) " >&6
3936 else
3937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h.  */
3939 #include <stdlib.h>
3940 #include <stdarg.h>
3941 #include <string.h>
3942 #include <float.h>
3943
3944 int
3945 main ()
3946 {
3947
3948   ;
3949   return 0;
3950 }
3951 _ACEOF
3952 if ac_fn_c_try_compile "$LINENO"; then :
3953   ac_cv_header_stdc=yes
3954 else
3955   ac_cv_header_stdc=no
3956 fi
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958
3959 if test $ac_cv_header_stdc = yes; then
3960   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h.  */
3963 #include <string.h>
3964
3965 _ACEOF
3966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3967   $EGREP "memchr" >/dev/null 2>&1; then :
3968
3969 else
3970   ac_cv_header_stdc=no
3971 fi
3972 rm -f conftest*
3973
3974 fi
3975
3976 if test $ac_cv_header_stdc = yes; then
3977   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h.  */
3980 #include <stdlib.h>
3981
3982 _ACEOF
3983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3984   $EGREP "free" >/dev/null 2>&1; then :
3985
3986 else
3987   ac_cv_header_stdc=no
3988 fi
3989 rm -f conftest*
3990
3991 fi
3992
3993 if test $ac_cv_header_stdc = yes; then
3994   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3995   if test "$cross_compiling" = yes; then :
3996   :
3997 else
3998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h.  */
4000 #include <ctype.h>
4001 #include <stdlib.h>
4002 #if ((' ' & 0x0FF) == 0x020)
4003 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4004 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4005 #else
4006 # define ISLOWER(c) \
4007                    (('a' <= (c) && (c) <= 'i') \
4008                      || ('j' <= (c) && (c) <= 'r') \
4009                      || ('s' <= (c) && (c) <= 'z'))
4010 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4011 #endif
4012
4013 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4014 int
4015 main ()
4016 {
4017   int i;
4018   for (i = 0; i < 256; i++)
4019     if (XOR (islower (i), ISLOWER (i))
4020         || toupper (i) != TOUPPER (i))
4021       return 2;
4022   return 0;
4023 }
4024 _ACEOF
4025 if ac_fn_c_try_run "$LINENO"; then :
4026
4027 else
4028   ac_cv_header_stdc=no
4029 fi
4030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4031   conftest.$ac_objext conftest.beam conftest.$ac_ext
4032 fi
4033
4034 fi
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4037 $as_echo "$ac_cv_header_stdc" >&6; }
4038 if test $ac_cv_header_stdc = yes; then
4039
4040 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4041
4042 fi
4043
4044 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4045 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4046                   inttypes.h stdint.h unistd.h
4047 do :
4048   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4049 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4050 "
4051 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4052   cat >>confdefs.h <<_ACEOF
4053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4054 _ACEOF
4055
4056 fi
4057
4058 done
4059
4060
4061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4062 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4063 if ${ac_cv_c_bigendian+:} false; then :
4064   $as_echo_n "(cached) " >&6
4065 else
4066   ac_cv_c_bigendian=unknown
4067     # See if we're dealing with a universal compiler.
4068     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h.  */
4070 #ifndef __APPLE_CC__
4071                not a universal capable compiler
4072              #endif
4073              typedef int dummy;
4074
4075 _ACEOF
4076 if ac_fn_c_try_compile "$LINENO"; then :
4077
4078         # Check for potential -arch flags.  It is not universal unless
4079         # there are at least two -arch flags with different values.
4080         ac_arch=
4081         ac_prev=
4082         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4083          if test -n "$ac_prev"; then
4084            case $ac_word in
4085              i?86 | x86_64 | ppc | ppc64)
4086                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4087                  ac_arch=$ac_word
4088                else
4089                  ac_cv_c_bigendian=universal
4090                  break
4091                fi
4092                ;;
4093            esac
4094            ac_prev=
4095          elif test "x$ac_word" = "x-arch"; then
4096            ac_prev=arch
4097          fi
4098        done
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101     if test $ac_cv_c_bigendian = unknown; then
4102       # See if sys/param.h defines the BYTE_ORDER macro.
4103       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h.  */
4105 #include <sys/types.h>
4106              #include <sys/param.h>
4107
4108 int
4109 main ()
4110 {
4111 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4112                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4113                      && LITTLE_ENDIAN)
4114               bogus endian macros
4115              #endif
4116
4117   ;
4118   return 0;
4119 }
4120 _ACEOF
4121 if ac_fn_c_try_compile "$LINENO"; then :
4122   # It does; now see whether it defined to BIG_ENDIAN or not.
4123          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h.  */
4125 #include <sys/types.h>
4126                 #include <sys/param.h>
4127
4128 int
4129 main ()
4130 {
4131 #if BYTE_ORDER != BIG_ENDIAN
4132                  not big endian
4133                 #endif
4134
4135   ;
4136   return 0;
4137 }
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140   ac_cv_c_bigendian=yes
4141 else
4142   ac_cv_c_bigendian=no
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147     fi
4148     if test $ac_cv_c_bigendian = unknown; then
4149       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4150       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h.  */
4152 #include <limits.h>
4153
4154 int
4155 main ()
4156 {
4157 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4158               bogus endian macros
4159              #endif
4160
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166   # It does; now see whether it defined to _BIG_ENDIAN or not.
4167          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h.  */
4169 #include <limits.h>
4170
4171 int
4172 main ()
4173 {
4174 #ifndef _BIG_ENDIAN
4175                  not big endian
4176                 #endif
4177
4178   ;
4179   return 0;
4180 }
4181 _ACEOF
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183   ac_cv_c_bigendian=yes
4184 else
4185   ac_cv_c_bigendian=no
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 fi
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190     fi
4191     if test $ac_cv_c_bigendian = unknown; then
4192       # Compile a test program.
4193       if test "$cross_compiling" = yes; then :
4194   # Try to guess by grepping values from an object file.
4195          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h.  */
4197 short int ascii_mm[] =
4198                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4199                 short int ascii_ii[] =
4200                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4201                 int use_ascii (int i) {
4202                   return ascii_mm[i] + ascii_ii[i];
4203                 }
4204                 short int ebcdic_ii[] =
4205                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4206                 short int ebcdic_mm[] =
4207                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4208                 int use_ebcdic (int i) {
4209                   return ebcdic_mm[i] + ebcdic_ii[i];
4210                 }
4211                 extern int foo;
4212
4213 int
4214 main ()
4215 {
4216 return use_ascii (foo) == use_ebcdic (foo);
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4223               ac_cv_c_bigendian=yes
4224             fi
4225             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4226               if test "$ac_cv_c_bigendian" = unknown; then
4227                 ac_cv_c_bigendian=no
4228               else
4229                 # finding both strings is unlikely to happen, but who knows?
4230                 ac_cv_c_bigendian=unknown
4231               fi
4232             fi
4233 fi
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 else
4236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h.  */
4238 $ac_includes_default
4239 int
4240 main ()
4241 {
4242
4243              /* Are we little or big endian?  From Harbison&Steele.  */
4244              union
4245              {
4246                long int l;
4247                char c[sizeof (long int)];
4248              } u;
4249              u.l = 1;
4250              return u.c[sizeof (long int) - 1] == 1;
4251
4252   ;
4253   return 0;
4254 }
4255 _ACEOF
4256 if ac_fn_c_try_run "$LINENO"; then :
4257   ac_cv_c_bigendian=no
4258 else
4259   ac_cv_c_bigendian=yes
4260 fi
4261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4262   conftest.$ac_objext conftest.beam conftest.$ac_ext
4263 fi
4264
4265     fi
4266 fi
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4268 $as_echo "$ac_cv_c_bigendian" >&6; }
4269  case $ac_cv_c_bigendian in #(
4270    yes)
4271      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4272 ;; #(
4273    no)
4274       ;; #(
4275    universal)
4276
4277 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4278
4279      ;; #(
4280    *)
4281      as_fn_error $? "unknown endianness
4282  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4283  esac
4284
4285 if test -n "$ac_tool_prefix"; then
4286   for ac_prog in ar lib "link -lib"
4287   do
4288     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_AR+:} false; then :
4293   $as_echo_n "(cached) " >&6
4294 else
4295   if test -n "$AR"; then
4296   ac_cv_prog_AR="$AR" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301   IFS=$as_save_IFS
4302   test -z "$as_dir" && as_dir=.
4303     for ac_exec_ext in '' $ac_executable_extensions; do
4304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307     break 2
4308   fi
4309 done
4310   done
4311 IFS=$as_save_IFS
4312
4313 fi
4314 fi
4315 AR=$ac_cv_prog_AR
4316 if test -n "$AR"; then
4317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4318 $as_echo "$AR" >&6; }
4319 else
4320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4322 fi
4323
4324
4325     test -n "$AR" && break
4326   done
4327 fi
4328 if test -z "$AR"; then
4329   ac_ct_AR=$AR
4330   for ac_prog in ar lib "link -lib"
4331 do
4332   # Extract the first word of "$ac_prog", so it can be a program name with args.
4333 set dummy $ac_prog; ac_word=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4337   $as_echo_n "(cached) " >&6
4338 else
4339   if test -n "$ac_ct_AR"; then
4340   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4344 do
4345   IFS=$as_save_IFS
4346   test -z "$as_dir" && as_dir=.
4347     for ac_exec_ext in '' $ac_executable_extensions; do
4348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4349     ac_cv_prog_ac_ct_AR="$ac_prog"
4350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351     break 2
4352   fi
4353 done
4354   done
4355 IFS=$as_save_IFS
4356
4357 fi
4358 fi
4359 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4360 if test -n "$ac_ct_AR"; then
4361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4362 $as_echo "$ac_ct_AR" >&6; }
4363 else
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366 fi
4367
4368
4369   test -n "$ac_ct_AR" && break
4370 done
4371
4372   if test "x$ac_ct_AR" = x; then
4373     AR="false"
4374   else
4375     case $cross_compiling:$ac_tool_warned in
4376 yes:)
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4379 ac_tool_warned=yes ;;
4380 esac
4381     AR=$ac_ct_AR
4382   fi
4383 fi
4384
4385 : ${AR=ar}
4386
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4388 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4389 if ${am_cv_ar_interface+:} false; then :
4390   $as_echo_n "(cached) " >&6
4391 else
4392   am_cv_ar_interface=ar
4393    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h.  */
4395 int some_variable = 0;
4396 _ACEOF
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4399       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4400   (eval $am_ar_try) 2>&5
4401   ac_status=$?
4402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403   test $ac_status = 0; }
4404       if test "$ac_status" -eq 0; then
4405         am_cv_ar_interface=ar
4406       else
4407         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4408         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4409   (eval $am_ar_try) 2>&5
4410   ac_status=$?
4411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412   test $ac_status = 0; }
4413         if test "$ac_status" -eq 0; then
4414           am_cv_ar_interface=lib
4415         else
4416           am_cv_ar_interface=unknown
4417         fi
4418       fi
4419       rm -f conftest.lib libconftest.a
4420
4421 fi
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4426 $as_echo "$am_cv_ar_interface" >&6; }
4427
4428 case $am_cv_ar_interface in
4429 ar)
4430   ;;
4431 lib)
4432   # Microsoft lib, so override with the ar-lib wrapper script.
4433   # FIXME: It is wrong to rewrite AR.
4434   # But if we don't then we get into trouble of one sort or another.
4435   # A longer-term fix would be to have automake use am__AR in this case,
4436   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4437   # similar.
4438   AR="$am_aux_dir/ar-lib $AR"
4439   ;;
4440 unknown)
4441   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4442   ;;
4443 esac
4444
4445 case `pwd` in
4446   *\ * | *\     *)
4447     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4448 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4449 esac
4450
4451
4452
4453 macro_version='2.4.2'
4454 macro_revision='1.3337'
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468 ltmain="$ac_aux_dir/ltmain.sh"
4469
4470 # Make sure we can run config.sub.
4471 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4472   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4473
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4475 $as_echo_n "checking build system type... " >&6; }
4476 if ${ac_cv_build+:} false; then :
4477   $as_echo_n "(cached) " >&6
4478 else
4479   ac_build_alias=$build_alias
4480 test "x$ac_build_alias" = x &&
4481   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4482 test "x$ac_build_alias" = x &&
4483   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4484 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4485   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4486
4487 fi
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4489 $as_echo "$ac_cv_build" >&6; }
4490 case $ac_cv_build in
4491 *-*-*) ;;
4492 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4493 esac
4494 build=$ac_cv_build
4495 ac_save_IFS=$IFS; IFS='-'
4496 set x $ac_cv_build
4497 shift
4498 build_cpu=$1
4499 build_vendor=$2
4500 shift; shift
4501 # Remember, the first character of IFS is used to create $*,
4502 # except with old shells:
4503 build_os=$*
4504 IFS=$ac_save_IFS
4505 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4506
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4509 $as_echo_n "checking host system type... " >&6; }
4510 if ${ac_cv_host+:} false; then :
4511   $as_echo_n "(cached) " >&6
4512 else
4513   if test "x$host_alias" = x; then
4514   ac_cv_host=$ac_cv_build
4515 else
4516   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4517     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4518 fi
4519
4520 fi
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4522 $as_echo "$ac_cv_host" >&6; }
4523 case $ac_cv_host in
4524 *-*-*) ;;
4525 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4526 esac
4527 host=$ac_cv_host
4528 ac_save_IFS=$IFS; IFS='-'
4529 set x $ac_cv_host
4530 shift
4531 host_cpu=$1
4532 host_vendor=$2
4533 shift; shift
4534 # Remember, the first character of IFS is used to create $*,
4535 # except with old shells:
4536 host_os=$*
4537 IFS=$ac_save_IFS
4538 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4539
4540
4541 # Backslashify metacharacters that are still active within
4542 # double-quoted strings.
4543 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4544
4545 # Same as above, but do not quote variable references.
4546 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4547
4548 # Sed substitution to delay expansion of an escaped shell variable in a
4549 # double_quote_subst'ed string.
4550 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4551
4552 # Sed substitution to delay expansion of an escaped single quote.
4553 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4554
4555 # Sed substitution to avoid accidental globbing in evaled expressions
4556 no_glob_subst='s/\*/\\\*/g'
4557
4558 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4559 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4560 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4563 $as_echo_n "checking how to print strings... " >&6; }
4564 # Test print first, because it will be a builtin if present.
4565 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4566    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4567   ECHO='print -r --'
4568 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4569   ECHO='printf %s\n'
4570 else
4571   # Use this function as a fallback that always works.
4572   func_fallback_echo ()
4573   {
4574     eval 'cat <<_LTECHO_EOF
4575 $1
4576 _LTECHO_EOF'
4577   }
4578   ECHO='func_fallback_echo'
4579 fi
4580
4581 # func_echo_all arg...
4582 # Invoke $ECHO with all args, space-separated.
4583 func_echo_all ()
4584 {
4585     $ECHO ""
4586 }
4587
4588 case "$ECHO" in
4589   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4590 $as_echo "printf" >&6; } ;;
4591   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4592 $as_echo "print -r" >&6; } ;;
4593   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4594 $as_echo "cat" >&6; } ;;
4595 esac
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4611 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4612 if ${ac_cv_path_SED+:} false; then :
4613   $as_echo_n "(cached) " >&6
4614 else
4615             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4616      for ac_i in 1 2 3 4 5 6 7; do
4617        ac_script="$ac_script$as_nl$ac_script"
4618      done
4619      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4620      { ac_script=; unset ac_script;}
4621      if test -z "$SED"; then
4622   ac_path_SED_found=false
4623   # Loop through the user's path and test for each of PROGNAME-LIST
4624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627   IFS=$as_save_IFS
4628   test -z "$as_dir" && as_dir=.
4629     for ac_prog in sed gsed; do
4630     for ac_exec_ext in '' $ac_executable_extensions; do
4631       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4632       as_fn_executable_p "$ac_path_SED" || continue
4633 # Check for GNU ac_path_SED and select it if it is found.
4634   # Check for GNU $ac_path_SED
4635 case `"$ac_path_SED" --version 2>&1` in
4636 *GNU*)
4637   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4638 *)
4639   ac_count=0
4640   $as_echo_n 0123456789 >"conftest.in"
4641   while :
4642   do
4643     cat "conftest.in" "conftest.in" >"conftest.tmp"
4644     mv "conftest.tmp" "conftest.in"
4645     cp "conftest.in" "conftest.nl"
4646     $as_echo '' >> "conftest.nl"
4647     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4648     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4649     as_fn_arith $ac_count + 1 && ac_count=$as_val
4650     if test $ac_count -gt ${ac_path_SED_max-0}; then
4651       # Best one so far, save it but keep looking for a better one
4652       ac_cv_path_SED="$ac_path_SED"
4653       ac_path_SED_max=$ac_count
4654     fi
4655     # 10*(2^10) chars as input seems more than enough
4656     test $ac_count -gt 10 && break
4657   done
4658   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4659 esac
4660
4661       $ac_path_SED_found && break 3
4662     done
4663   done
4664   done
4665 IFS=$as_save_IFS
4666   if test -z "$ac_cv_path_SED"; then
4667     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4668   fi
4669 else
4670   ac_cv_path_SED=$SED
4671 fi
4672
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4675 $as_echo "$ac_cv_path_SED" >&6; }
4676  SED="$ac_cv_path_SED"
4677   rm -f conftest.sed
4678
4679 test -z "$SED" && SED=sed
4680 Xsed="$SED -e 1s/^X//"
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4693 $as_echo_n "checking for fgrep... " >&6; }
4694 if ${ac_cv_path_FGREP+:} false; then :
4695   $as_echo_n "(cached) " >&6
4696 else
4697   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4698    then ac_cv_path_FGREP="$GREP -F"
4699    else
4700      if test -z "$FGREP"; then
4701   ac_path_FGREP_found=false
4702   # Loop through the user's path and test for each of PROGNAME-LIST
4703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4705 do
4706   IFS=$as_save_IFS
4707   test -z "$as_dir" && as_dir=.
4708     for ac_prog in fgrep; do
4709     for ac_exec_ext in '' $ac_executable_extensions; do
4710       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4711       as_fn_executable_p "$ac_path_FGREP" || continue
4712 # Check for GNU ac_path_FGREP and select it if it is found.
4713   # Check for GNU $ac_path_FGREP
4714 case `"$ac_path_FGREP" --version 2>&1` in
4715 *GNU*)
4716   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4717 *)
4718   ac_count=0
4719   $as_echo_n 0123456789 >"conftest.in"
4720   while :
4721   do
4722     cat "conftest.in" "conftest.in" >"conftest.tmp"
4723     mv "conftest.tmp" "conftest.in"
4724     cp "conftest.in" "conftest.nl"
4725     $as_echo 'FGREP' >> "conftest.nl"
4726     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4727     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4728     as_fn_arith $ac_count + 1 && ac_count=$as_val
4729     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4730       # Best one so far, save it but keep looking for a better one
4731       ac_cv_path_FGREP="$ac_path_FGREP"
4732       ac_path_FGREP_max=$ac_count
4733     fi
4734     # 10*(2^10) chars as input seems more than enough
4735     test $ac_count -gt 10 && break
4736   done
4737   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4738 esac
4739
4740       $ac_path_FGREP_found && break 3
4741     done
4742   done
4743   done
4744 IFS=$as_save_IFS
4745   if test -z "$ac_cv_path_FGREP"; then
4746     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4747   fi
4748 else
4749   ac_cv_path_FGREP=$FGREP
4750 fi
4751
4752    fi
4753 fi
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4755 $as_echo "$ac_cv_path_FGREP" >&6; }
4756  FGREP="$ac_cv_path_FGREP"
4757
4758
4759 test -z "$GREP" && GREP=grep
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779 # Check whether --with-gnu-ld was given.
4780 if test "${with_gnu_ld+set}" = set; then :
4781   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4782 else
4783   with_gnu_ld=no
4784 fi
4785
4786 ac_prog=ld
4787 if test "$GCC" = yes; then
4788   # Check if gcc -print-prog-name=ld gives a path.
4789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4790 $as_echo_n "checking for ld used by $CC... " >&6; }
4791   case $host in
4792   *-*-mingw*)
4793     # gcc leaves a trailing carriage return which upsets mingw
4794     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4795   *)
4796     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4797   esac
4798   case $ac_prog in
4799     # Accept absolute paths.
4800     [\\/]* | ?:[\\/]*)
4801       re_direlt='/[^/][^/]*/\.\./'
4802       # Canonicalize the pathname of ld
4803       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4804       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4805         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4806       done
4807       test -z "$LD" && LD="$ac_prog"
4808       ;;
4809   "")
4810     # If it fails, then pretend we aren't using GCC.
4811     ac_prog=ld
4812     ;;
4813   *)
4814     # If it is relative, then search for the first ld in PATH.
4815     with_gnu_ld=unknown
4816     ;;
4817   esac
4818 elif test "$with_gnu_ld" = yes; then
4819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4820 $as_echo_n "checking for GNU ld... " >&6; }
4821 else
4822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4823 $as_echo_n "checking for non-GNU ld... " >&6; }
4824 fi
4825 if ${lt_cv_path_LD+:} false; then :
4826   $as_echo_n "(cached) " >&6
4827 else
4828   if test -z "$LD"; then
4829   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4830   for ac_dir in $PATH; do
4831     IFS="$lt_save_ifs"
4832     test -z "$ac_dir" && ac_dir=.
4833     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4834       lt_cv_path_LD="$ac_dir/$ac_prog"
4835       # Check to see if the program is GNU ld.  I'd rather use --version,
4836       # but apparently some variants of GNU ld only accept -v.
4837       # Break only if it was the GNU/non-GNU ld that we prefer.
4838       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4839       *GNU* | *'with BFD'*)
4840         test "$with_gnu_ld" != no && break
4841         ;;
4842       *)
4843         test "$with_gnu_ld" != yes && break
4844         ;;
4845       esac
4846     fi
4847   done
4848   IFS="$lt_save_ifs"
4849 else
4850   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4851 fi
4852 fi
4853
4854 LD="$lt_cv_path_LD"
4855 if test -n "$LD"; then
4856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4857 $as_echo "$LD" >&6; }
4858 else
4859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4861 fi
4862 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4864 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4865 if ${lt_cv_prog_gnu_ld+:} false; then :
4866   $as_echo_n "(cached) " >&6
4867 else
4868   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4869 case `$LD -v 2>&1 </dev/null` in
4870 *GNU* | *'with BFD'*)
4871   lt_cv_prog_gnu_ld=yes
4872   ;;
4873 *)
4874   lt_cv_prog_gnu_ld=no
4875   ;;
4876 esac
4877 fi
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4879 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4880 with_gnu_ld=$lt_cv_prog_gnu_ld
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4891 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4892 if ${lt_cv_path_NM+:} false; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   if test -n "$NM"; then
4896   # Let the user override the test.
4897   lt_cv_path_NM="$NM"
4898 else
4899   lt_nm_to_check="${ac_tool_prefix}nm"
4900   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4901     lt_nm_to_check="$lt_nm_to_check nm"
4902   fi
4903   for lt_tmp_nm in $lt_nm_to_check; do
4904     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4905     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4906       IFS="$lt_save_ifs"
4907       test -z "$ac_dir" && ac_dir=.
4908       tmp_nm="$ac_dir/$lt_tmp_nm"
4909       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4910         # Check to see if the nm accepts a BSD-compat flag.
4911         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4912         #   nm: unknown option "B" ignored
4913         # Tru64's nm complains that /dev/null is an invalid object file
4914         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4915         */dev/null* | *'Invalid file or object type'*)
4916           lt_cv_path_NM="$tmp_nm -B"
4917           break
4918           ;;
4919         *)
4920           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4921           */dev/null*)
4922             lt_cv_path_NM="$tmp_nm -p"
4923             break
4924             ;;
4925           *)
4926             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4927             continue # so that we can try to find one that supports BSD flags
4928             ;;
4929           esac
4930           ;;
4931         esac
4932       fi
4933     done
4934     IFS="$lt_save_ifs"
4935   done
4936   : ${lt_cv_path_NM=no}
4937 fi
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4940 $as_echo "$lt_cv_path_NM" >&6; }
4941 if test "$lt_cv_path_NM" != "no"; then
4942   NM="$lt_cv_path_NM"
4943 else
4944   # Didn't find any BSD compatible name lister, look for dumpbin.
4945   if test -n "$DUMPBIN"; then :
4946     # Let the user override the test.
4947   else
4948     if test -n "$ac_tool_prefix"; then
4949   for ac_prog in dumpbin "link -dump"
4950   do
4951     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_prog_DUMPBIN+:} false; then :
4956   $as_echo_n "(cached) " >&6
4957 else
4958   if test -n "$DUMPBIN"; then
4959   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964   IFS=$as_save_IFS
4965   test -z "$as_dir" && as_dir=.
4966     for ac_exec_ext in '' $ac_executable_extensions; do
4967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970     break 2
4971   fi
4972 done
4973   done
4974 IFS=$as_save_IFS
4975
4976 fi
4977 fi
4978 DUMPBIN=$ac_cv_prog_DUMPBIN
4979 if test -n "$DUMPBIN"; then
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4981 $as_echo "$DUMPBIN" >&6; }
4982 else
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4985 fi
4986
4987
4988     test -n "$DUMPBIN" && break
4989   done
4990 fi
4991 if test -z "$DUMPBIN"; then
4992   ac_ct_DUMPBIN=$DUMPBIN
4993   for ac_prog in dumpbin "link -dump"
4994 do
4995   # Extract the first word of "$ac_prog", so it can be a program name with args.
4996 set dummy $ac_prog; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5000   $as_echo_n "(cached) " >&6
5001 else
5002   if test -n "$ac_ct_DUMPBIN"; then
5003   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5007 do
5008   IFS=$as_save_IFS
5009   test -z "$as_dir" && as_dir=.
5010     for ac_exec_ext in '' $ac_executable_extensions; do
5011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014     break 2
5015   fi
5016 done
5017   done
5018 IFS=$as_save_IFS
5019
5020 fi
5021 fi
5022 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5023 if test -n "$ac_ct_DUMPBIN"; then
5024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5025 $as_echo "$ac_ct_DUMPBIN" >&6; }
5026 else
5027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5029 fi
5030
5031
5032   test -n "$ac_ct_DUMPBIN" && break
5033 done
5034
5035   if test "x$ac_ct_DUMPBIN" = x; then
5036     DUMPBIN=":"
5037   else
5038     case $cross_compiling:$ac_tool_warned in
5039 yes:)
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5042 ac_tool_warned=yes ;;
5043 esac
5044     DUMPBIN=$ac_ct_DUMPBIN
5045   fi
5046 fi
5047
5048     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5049     *COFF*)
5050       DUMPBIN="$DUMPBIN -symbols"
5051       ;;
5052     *)
5053       DUMPBIN=:
5054       ;;
5055     esac
5056   fi
5057
5058   if test "$DUMPBIN" != ":"; then
5059     NM="$DUMPBIN"
5060   fi
5061 fi
5062 test -z "$NM" && NM=nm
5063
5064
5065
5066
5067
5068
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5070 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5071 if ${lt_cv_nm_interface+:} false; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074   lt_cv_nm_interface="BSD nm"
5075   echo "int some_variable = 0;" > conftest.$ac_ext
5076   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5077   (eval "$ac_compile" 2>conftest.err)
5078   cat conftest.err >&5
5079   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5080   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5081   cat conftest.err >&5
5082   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5083   cat conftest.out >&5
5084   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5085     lt_cv_nm_interface="MS dumpbin"
5086   fi
5087   rm -f conftest*
5088 fi
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5090 $as_echo "$lt_cv_nm_interface" >&6; }
5091
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5093 $as_echo_n "checking whether ln -s works... " >&6; }
5094 LN_S=$as_ln_s
5095 if test "$LN_S" = "ln -s"; then
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097 $as_echo "yes" >&6; }
5098 else
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5100 $as_echo "no, using $LN_S" >&6; }
5101 fi
5102
5103 # find the maximum length of command line arguments
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5105 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5106 if ${lt_cv_sys_max_cmd_len+:} false; then :
5107   $as_echo_n "(cached) " >&6
5108 else
5109     i=0
5110   teststring="ABCD"
5111
5112   case $build_os in
5113   msdosdjgpp*)
5114     # On DJGPP, this test can blow up pretty badly due to problems in libc
5115     # (any single argument exceeding 2000 bytes causes a buffer overrun
5116     # during glob expansion).  Even if it were fixed, the result of this
5117     # check would be larger than it should be.
5118     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5119     ;;
5120
5121   gnu*)
5122     # Under GNU Hurd, this test is not required because there is
5123     # no limit to the length of command line arguments.
5124     # Libtool will interpret -1 as no limit whatsoever
5125     lt_cv_sys_max_cmd_len=-1;
5126     ;;
5127
5128   cygwin* | mingw* | cegcc*)
5129     # On Win9x/ME, this test blows up -- it succeeds, but takes
5130     # about 5 minutes as the teststring grows exponentially.
5131     # Worse, since 9x/ME are not pre-emptively multitasking,
5132     # you end up with a "frozen" computer, even though with patience
5133     # the test eventually succeeds (with a max line length of 256k).
5134     # Instead, let's just punt: use the minimum linelength reported by
5135     # all of the supported platforms: 8192 (on NT/2K/XP).
5136     lt_cv_sys_max_cmd_len=8192;
5137     ;;
5138
5139   mint*)
5140     # On MiNT this can take a long time and run out of memory.
5141     lt_cv_sys_max_cmd_len=8192;
5142     ;;
5143
5144   amigaos*)
5145     # On AmigaOS with pdksh, this test takes hours, literally.
5146     # So we just punt and use a minimum line length of 8192.
5147     lt_cv_sys_max_cmd_len=8192;
5148     ;;
5149
5150   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5151     # This has been around since 386BSD, at least.  Likely further.
5152     if test -x /sbin/sysctl; then
5153       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5154     elif test -x /usr/sbin/sysctl; then
5155       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5156     else
5157       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5158     fi
5159     # And add a safety zone
5160     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5161     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5162     ;;
5163
5164   interix*)
5165     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5166     lt_cv_sys_max_cmd_len=196608
5167     ;;
5168
5169   os2*)
5170     # The test takes a long time on OS/2.
5171     lt_cv_sys_max_cmd_len=8192
5172     ;;
5173
5174   osf*)
5175     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5176     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5177     # nice to cause kernel panics so lets avoid the loop below.
5178     # First set a reasonable default.
5179     lt_cv_sys_max_cmd_len=16384
5180     #
5181     if test -x /sbin/sysconfig; then
5182       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5183         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5184       esac
5185     fi
5186     ;;
5187   sco3.2v5*)
5188     lt_cv_sys_max_cmd_len=102400
5189     ;;
5190   sysv5* | sco5v6* | sysv4.2uw2*)
5191     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5192     if test -n "$kargmax"; then
5193       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5194     else
5195       lt_cv_sys_max_cmd_len=32768
5196     fi
5197     ;;
5198   *)
5199     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5200     if test -n "$lt_cv_sys_max_cmd_len"; then
5201       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5202       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5203     else
5204       # Make teststring a little bigger before we do anything with it.
5205       # a 1K string should be a reasonable start.
5206       for i in 1 2 3 4 5 6 7 8 ; do
5207         teststring=$teststring$teststring
5208       done
5209       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5210       # If test is not a shell built-in, we'll probably end up computing a
5211       # maximum length that is only half of the actual maximum length, but
5212       # we can't tell.
5213       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5214                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5215               test $i != 17 # 1/2 MB should be enough
5216       do
5217         i=`expr $i + 1`
5218         teststring=$teststring$teststring
5219       done
5220       # Only check the string length outside the loop.
5221       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5222       teststring=
5223       # Add a significant safety factor because C++ compilers can tack on
5224       # massive amounts of additional arguments before passing them to the
5225       # linker.  It appears as though 1/2 is a usable value.
5226       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5227     fi
5228     ;;
5229   esac
5230
5231 fi
5232
5233 if test -n $lt_cv_sys_max_cmd_len ; then
5234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5235 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5236 else
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5238 $as_echo "none" >&6; }
5239 fi
5240 max_cmd_len=$lt_cv_sys_max_cmd_len
5241
5242
5243
5244
5245
5246
5247 : ${CP="cp -f"}
5248 : ${MV="mv -f"}
5249 : ${RM="rm -f"}
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5252 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5253 # Try some XSI features
5254 xsi_shell=no
5255 ( _lt_dummy="a/b/c"
5256   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5257       = c,a/b,b/c, \
5258     && eval 'test $(( 1 + 1 )) -eq 2 \
5259     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5260   && xsi_shell=yes
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5262 $as_echo "$xsi_shell" >&6; }
5263
5264
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5266 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5267 lt_shell_append=no
5268 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5269     >/dev/null 2>&1 \
5270   && lt_shell_append=yes
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5272 $as_echo "$lt_shell_append" >&6; }
5273
5274
5275 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5276   lt_unset=unset
5277 else
5278   lt_unset=false
5279 fi
5280
5281
5282
5283
5284
5285 # test EBCDIC or ASCII
5286 case `echo X|tr X '\101'` in
5287  A) # ASCII based system
5288     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5289   lt_SP2NL='tr \040 \012'
5290   lt_NL2SP='tr \015\012 \040\040'
5291   ;;
5292  *) # EBCDIC based system
5293   lt_SP2NL='tr \100 \n'
5294   lt_NL2SP='tr \r\n \100\100'
5295   ;;
5296 esac
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5307 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5308 if ${lt_cv_to_host_file_cmd+:} false; then :
5309   $as_echo_n "(cached) " >&6
5310 else
5311   case $host in
5312   *-*-mingw* )
5313     case $build in
5314       *-*-mingw* ) # actually msys
5315         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5316         ;;
5317       *-*-cygwin* )
5318         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5319         ;;
5320       * ) # otherwise, assume *nix
5321         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5322         ;;
5323     esac
5324     ;;
5325   *-*-cygwin* )
5326     case $build in
5327       *-*-mingw* ) # actually msys
5328         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5329         ;;
5330       *-*-cygwin* )
5331         lt_cv_to_host_file_cmd=func_convert_file_noop
5332         ;;
5333       * ) # otherwise, assume *nix
5334         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5335         ;;
5336     esac
5337     ;;
5338   * ) # unhandled hosts (and "normal" native builds)
5339     lt_cv_to_host_file_cmd=func_convert_file_noop
5340     ;;
5341 esac
5342
5343 fi
5344
5345 to_host_file_cmd=$lt_cv_to_host_file_cmd
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5347 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5348
5349
5350
5351
5352
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5354 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5355 if ${lt_cv_to_tool_file_cmd+:} false; then :
5356   $as_echo_n "(cached) " >&6
5357 else
5358   #assume ordinary cross tools, or native build.
5359 lt_cv_to_tool_file_cmd=func_convert_file_noop
5360 case $host in
5361   *-*-mingw* )
5362     case $build in
5363       *-*-mingw* ) # actually msys
5364         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5365         ;;
5366     esac
5367     ;;
5368 esac
5369
5370 fi
5371
5372 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5374 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5375
5376
5377
5378
5379
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5381 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5382 if ${lt_cv_ld_reload_flag+:} false; then :
5383   $as_echo_n "(cached) " >&6
5384 else
5385   lt_cv_ld_reload_flag='-r'
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5388 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5389 reload_flag=$lt_cv_ld_reload_flag
5390 case $reload_flag in
5391 "" | " "*) ;;
5392 *) reload_flag=" $reload_flag" ;;
5393 esac
5394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5395 case $host_os in
5396   cygwin* | mingw* | pw32* | cegcc*)
5397     if test "$GCC" != yes; then
5398       reload_cmds=false
5399     fi
5400     ;;
5401   darwin*)
5402     if test "$GCC" = yes; then
5403       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5404     else
5405       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5406     fi
5407     ;;
5408 esac
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 if test -n "$ac_tool_prefix"; then
5419   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5420 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_prog_OBJDUMP+:} false; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   if test -n "$OBJDUMP"; then
5427   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434     for ac_exec_ext in '' $ac_executable_extensions; do
5435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441   done
5442 IFS=$as_save_IFS
5443
5444 fi
5445 fi
5446 OBJDUMP=$ac_cv_prog_OBJDUMP
5447 if test -n "$OBJDUMP"; then
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5449 $as_echo "$OBJDUMP" >&6; }
5450 else
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455
5456 fi
5457 if test -z "$ac_cv_prog_OBJDUMP"; then
5458   ac_ct_OBJDUMP=$OBJDUMP
5459   # Extract the first word of "objdump", so it can be a program name with args.
5460 set dummy objdump; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5464   $as_echo_n "(cached) " >&6
5465 else
5466   if test -n "$ac_ct_OBJDUMP"; then
5467   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472   IFS=$as_save_IFS
5473   test -z "$as_dir" && as_dir=.
5474     for ac_exec_ext in '' $ac_executable_extensions; do
5475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478     break 2
5479   fi
5480 done
5481   done
5482 IFS=$as_save_IFS
5483
5484 fi
5485 fi
5486 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5487 if test -n "$ac_ct_OBJDUMP"; then
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5489 $as_echo "$ac_ct_OBJDUMP" >&6; }
5490 else
5491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494
5495   if test "x$ac_ct_OBJDUMP" = x; then
5496     OBJDUMP="false"
5497   else
5498     case $cross_compiling:$ac_tool_warned in
5499 yes:)
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5502 ac_tool_warned=yes ;;
5503 esac
5504     OBJDUMP=$ac_ct_OBJDUMP
5505   fi
5506 else
5507   OBJDUMP="$ac_cv_prog_OBJDUMP"
5508 fi
5509
5510 test -z "$OBJDUMP" && OBJDUMP=objdump
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5521 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5522 if ${lt_cv_deplibs_check_method+:} false; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525   lt_cv_file_magic_cmd='$MAGIC_CMD'
5526 lt_cv_file_magic_test_file=
5527 lt_cv_deplibs_check_method='unknown'
5528 # Need to set the preceding variable on all platforms that support
5529 # interlibrary dependencies.
5530 # 'none' -- dependencies not supported.
5531 # `unknown' -- same as none, but documents that we really don't know.
5532 # 'pass_all' -- all dependencies passed with no checks.
5533 # 'test_compile' -- check by making test program.
5534 # 'file_magic [[regex]]' -- check by looking for files in library path
5535 # which responds to the $file_magic_cmd with a given extended regex.
5536 # If you have `file' or equivalent on your system and you're not sure
5537 # whether `pass_all' will *always* work, you probably want this one.
5538
5539 case $host_os in
5540 aix[4-9]*)
5541   lt_cv_deplibs_check_method=pass_all
5542   ;;
5543
5544 beos*)
5545   lt_cv_deplibs_check_method=pass_all
5546   ;;
5547
5548 bsdi[45]*)
5549   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5550   lt_cv_file_magic_cmd='/usr/bin/file -L'
5551   lt_cv_file_magic_test_file=/shlib/libc.so
5552   ;;
5553
5554 cygwin*)
5555   # func_win32_libid is a shell function defined in ltmain.sh
5556   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5557   lt_cv_file_magic_cmd='func_win32_libid'
5558   ;;
5559
5560 mingw* | pw32*)
5561   # Base MSYS/MinGW do not provide the 'file' command needed by
5562   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5563   # unless we find 'file', for example because we are cross-compiling.
5564   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5565   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5566     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5567     lt_cv_file_magic_cmd='func_win32_libid'
5568   else
5569     # Keep this pattern in sync with the one in func_win32_libid.
5570     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5571     lt_cv_file_magic_cmd='$OBJDUMP -f'
5572   fi
5573   ;;
5574
5575 cegcc*)
5576   # use the weaker test based on 'objdump'. See mingw*.
5577   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5578   lt_cv_file_magic_cmd='$OBJDUMP -f'
5579   ;;
5580
5581 darwin* | rhapsody*)
5582   lt_cv_deplibs_check_method=pass_all
5583   ;;
5584
5585 freebsd* | dragonfly*)
5586   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5587     case $host_cpu in
5588     i*86 )
5589       # Not sure whether the presence of OpenBSD here was a mistake.
5590       # Let's accept both of them until this is cleared up.
5591       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5592       lt_cv_file_magic_cmd=/usr/bin/file
5593       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5594       ;;
5595     esac
5596   else
5597     lt_cv_deplibs_check_method=pass_all
5598   fi
5599   ;;
5600
5601 gnu*)
5602   lt_cv_deplibs_check_method=pass_all
5603   ;;
5604
5605 haiku*)
5606   lt_cv_deplibs_check_method=pass_all
5607   ;;
5608
5609 hpux10.20* | hpux11*)
5610   lt_cv_file_magic_cmd=/usr/bin/file
5611   case $host_cpu in
5612   ia64*)
5613     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5614     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5615     ;;
5616   hppa*64*)
5617     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]'
5618     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5619     ;;
5620   *)
5621     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5622     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5623     ;;
5624   esac
5625   ;;
5626
5627 interix[3-9]*)
5628   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5629   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5630   ;;
5631
5632 irix5* | irix6* | nonstopux*)
5633   case $LD in
5634   *-32|*"-32 ") libmagic=32-bit;;
5635   *-n32|*"-n32 ") libmagic=N32;;
5636   *-64|*"-64 ") libmagic=64-bit;;
5637   *) libmagic=never-match;;
5638   esac
5639   lt_cv_deplibs_check_method=pass_all
5640   ;;
5641
5642 # This must be glibc/ELF.
5643 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646
5647 netbsd*)
5648   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5649     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5650   else
5651     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5652   fi
5653   ;;
5654
5655 newos6*)
5656   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5657   lt_cv_file_magic_cmd=/usr/bin/file
5658   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5659   ;;
5660
5661 *nto* | *qnx*)
5662   lt_cv_deplibs_check_method=pass_all
5663   ;;
5664
5665 openbsd*)
5666   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5667     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5668   else
5669     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5670   fi
5671   ;;
5672
5673 osf3* | osf4* | osf5*)
5674   lt_cv_deplibs_check_method=pass_all
5675   ;;
5676
5677 rdos*)
5678   lt_cv_deplibs_check_method=pass_all
5679   ;;
5680
5681 solaris*)
5682   lt_cv_deplibs_check_method=pass_all
5683   ;;
5684
5685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5686   lt_cv_deplibs_check_method=pass_all
5687   ;;
5688
5689 sysv4 | sysv4.3*)
5690   case $host_vendor in
5691   motorola)
5692     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]'
5693     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5694     ;;
5695   ncr)
5696     lt_cv_deplibs_check_method=pass_all
5697     ;;
5698   sequent)
5699     lt_cv_file_magic_cmd='/bin/file'
5700     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5701     ;;
5702   sni)
5703     lt_cv_file_magic_cmd='/bin/file'
5704     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5705     lt_cv_file_magic_test_file=/lib/libc.so
5706     ;;
5707   siemens)
5708     lt_cv_deplibs_check_method=pass_all
5709     ;;
5710   pc)
5711     lt_cv_deplibs_check_method=pass_all
5712     ;;
5713   esac
5714   ;;
5715
5716 tpf*)
5717   lt_cv_deplibs_check_method=pass_all
5718   ;;
5719 esac
5720
5721 fi
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5723 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5724
5725 file_magic_glob=
5726 want_nocaseglob=no
5727 if test "$build" = "$host"; then
5728   case $host_os in
5729   mingw* | pw32*)
5730     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5731       want_nocaseglob=yes
5732     else
5733       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5734     fi
5735     ;;
5736   esac
5737 fi
5738
5739 file_magic_cmd=$lt_cv_file_magic_cmd
5740 deplibs_check_method=$lt_cv_deplibs_check_method
5741 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764 if test -n "$ac_tool_prefix"; then
5765   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5766 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if ${ac_cv_prog_DLLTOOL+:} false; then :
5770   $as_echo_n "(cached) " >&6
5771 else
5772   if test -n "$DLLTOOL"; then
5773   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780     for ac_exec_ext in '' $ac_executable_extensions; do
5781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787   done
5788 IFS=$as_save_IFS
5789
5790 fi
5791 fi
5792 DLLTOOL=$ac_cv_prog_DLLTOOL
5793 if test -n "$DLLTOOL"; then
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5795 $as_echo "$DLLTOOL" >&6; }
5796 else
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5799 fi
5800
5801
5802 fi
5803 if test -z "$ac_cv_prog_DLLTOOL"; then
5804   ac_ct_DLLTOOL=$DLLTOOL
5805   # Extract the first word of "dlltool", so it can be a program name with args.
5806 set dummy dlltool; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5810   $as_echo_n "(cached) " >&6
5811 else
5812   if test -n "$ac_ct_DLLTOOL"; then
5813   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818   IFS=$as_save_IFS
5819   test -z "$as_dir" && as_dir=.
5820     for ac_exec_ext in '' $ac_executable_extensions; do
5821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824     break 2
5825   fi
5826 done
5827   done
5828 IFS=$as_save_IFS
5829
5830 fi
5831 fi
5832 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5833 if test -n "$ac_ct_DLLTOOL"; then
5834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5835 $as_echo "$ac_ct_DLLTOOL" >&6; }
5836 else
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840
5841   if test "x$ac_ct_DLLTOOL" = x; then
5842     DLLTOOL="false"
5843   else
5844     case $cross_compiling:$ac_tool_warned in
5845 yes:)
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5848 ac_tool_warned=yes ;;
5849 esac
5850     DLLTOOL=$ac_ct_DLLTOOL
5851   fi
5852 else
5853   DLLTOOL="$ac_cv_prog_DLLTOOL"
5854 fi
5855
5856 test -z "$DLLTOOL" && DLLTOOL=dlltool
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5868 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5869 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5870   $as_echo_n "(cached) " >&6
5871 else
5872   lt_cv_sharedlib_from_linklib_cmd='unknown'
5873
5874 case $host_os in
5875 cygwin* | mingw* | pw32* | cegcc*)
5876   # two different shell functions defined in ltmain.sh
5877   # decide which to use based on capabilities of $DLLTOOL
5878   case `$DLLTOOL --help 2>&1` in
5879   *--identify-strict*)
5880     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5881     ;;
5882   *)
5883     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5884     ;;
5885   esac
5886   ;;
5887 *)
5888   # fallback: assume linklib IS sharedlib
5889   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5890   ;;
5891 esac
5892
5893 fi
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5895 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5896 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5897 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5898
5899
5900
5901
5902
5903
5904
5905 if test -n "$ac_tool_prefix"; then
5906   for ac_prog in ar
5907   do
5908     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if ${ac_cv_prog_AR+:} false; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915   if test -n "$AR"; then
5916   ac_cv_prog_AR="$AR" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921   IFS=$as_save_IFS
5922   test -z "$as_dir" && as_dir=.
5923     for ac_exec_ext in '' $ac_executable_extensions; do
5924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927     break 2
5928   fi
5929 done
5930   done
5931 IFS=$as_save_IFS
5932
5933 fi
5934 fi
5935 AR=$ac_cv_prog_AR
5936 if test -n "$AR"; then
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5938 $as_echo "$AR" >&6; }
5939 else
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5942 fi
5943
5944
5945     test -n "$AR" && break
5946   done
5947 fi
5948 if test -z "$AR"; then
5949   ac_ct_AR=$AR
5950   for ac_prog in ar
5951 do
5952   # Extract the first word of "$ac_prog", so it can be a program name with args.
5953 set dummy $ac_prog; ac_word=$2
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5957   $as_echo_n "(cached) " >&6
5958 else
5959   if test -n "$ac_ct_AR"; then
5960   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965   IFS=$as_save_IFS
5966   test -z "$as_dir" && as_dir=.
5967     for ac_exec_ext in '' $ac_executable_extensions; do
5968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969     ac_cv_prog_ac_ct_AR="$ac_prog"
5970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971     break 2
5972   fi
5973 done
5974   done
5975 IFS=$as_save_IFS
5976
5977 fi
5978 fi
5979 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5980 if test -n "$ac_ct_AR"; then
5981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5982 $as_echo "$ac_ct_AR" >&6; }
5983 else
5984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985 $as_echo "no" >&6; }
5986 fi
5987
5988
5989   test -n "$ac_ct_AR" && break
5990 done
5991
5992   if test "x$ac_ct_AR" = x; then
5993     AR="false"
5994   else
5995     case $cross_compiling:$ac_tool_warned in
5996 yes:)
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5999 ac_tool_warned=yes ;;
6000 esac
6001     AR=$ac_ct_AR
6002   fi
6003 fi
6004
6005 : ${AR=ar}
6006 : ${AR_FLAGS=cru}
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6019 $as_echo_n "checking for archiver @FILE support... " >&6; }
6020 if ${lt_cv_ar_at_file+:} false; then :
6021   $as_echo_n "(cached) " >&6
6022 else
6023   lt_cv_ar_at_file=no
6024    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h.  */
6026
6027 int
6028 main ()
6029 {
6030
6031   ;
6032   return 0;
6033 }
6034 _ACEOF
6035 if ac_fn_c_try_compile "$LINENO"; then :
6036   echo conftest.$ac_objext > conftest.lst
6037       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6038       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6039   (eval $lt_ar_try) 2>&5
6040   ac_status=$?
6041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6042   test $ac_status = 0; }
6043       if test "$ac_status" -eq 0; then
6044         # Ensure the archiver fails upon bogus file names.
6045         rm -f conftest.$ac_objext libconftest.a
6046         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6047   (eval $lt_ar_try) 2>&5
6048   ac_status=$?
6049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6050   test $ac_status = 0; }
6051         if test "$ac_status" -ne 0; then
6052           lt_cv_ar_at_file=@
6053         fi
6054       fi
6055       rm -f conftest.* libconftest.a
6056
6057 fi
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059
6060 fi
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6062 $as_echo "$lt_cv_ar_at_file" >&6; }
6063
6064 if test "x$lt_cv_ar_at_file" = xno; then
6065   archiver_list_spec=
6066 else
6067   archiver_list_spec=$lt_cv_ar_at_file
6068 fi
6069
6070
6071
6072
6073
6074
6075
6076 if test -n "$ac_tool_prefix"; then
6077   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6078 set dummy ${ac_tool_prefix}strip; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if ${ac_cv_prog_STRIP+:} false; then :
6082   $as_echo_n "(cached) " >&6
6083 else
6084   if test -n "$STRIP"; then
6085   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090   IFS=$as_save_IFS
6091   test -z "$as_dir" && as_dir=.
6092     for ac_exec_ext in '' $ac_executable_extensions; do
6093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096     break 2
6097   fi
6098 done
6099   done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 STRIP=$ac_cv_prog_STRIP
6105 if test -n "$STRIP"; then
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6107 $as_echo "$STRIP" >&6; }
6108 else
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112
6113
6114 fi
6115 if test -z "$ac_cv_prog_STRIP"; then
6116   ac_ct_STRIP=$STRIP
6117   # Extract the first word of "strip", so it can be a program name with args.
6118 set dummy strip; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6122   $as_echo_n "(cached) " >&6
6123 else
6124   if test -n "$ac_ct_STRIP"; then
6125   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6129 do
6130   IFS=$as_save_IFS
6131   test -z "$as_dir" && as_dir=.
6132     for ac_exec_ext in '' $ac_executable_extensions; do
6133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134     ac_cv_prog_ac_ct_STRIP="strip"
6135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136     break 2
6137   fi
6138 done
6139   done
6140 IFS=$as_save_IFS
6141
6142 fi
6143 fi
6144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6145 if test -n "$ac_ct_STRIP"; then
6146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6147 $as_echo "$ac_ct_STRIP" >&6; }
6148 else
6149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6151 fi
6152
6153   if test "x$ac_ct_STRIP" = x; then
6154     STRIP=":"
6155   else
6156     case $cross_compiling:$ac_tool_warned in
6157 yes:)
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160 ac_tool_warned=yes ;;
6161 esac
6162     STRIP=$ac_ct_STRIP
6163   fi
6164 else
6165   STRIP="$ac_cv_prog_STRIP"
6166 fi
6167
6168 test -z "$STRIP" && STRIP=:
6169
6170
6171
6172
6173
6174
6175 if test -n "$ac_tool_prefix"; then
6176   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6177 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if ${ac_cv_prog_RANLIB+:} false; then :
6181   $as_echo_n "(cached) " >&6
6182 else
6183   if test -n "$RANLIB"; then
6184   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189   IFS=$as_save_IFS
6190   test -z "$as_dir" && as_dir=.
6191     for ac_exec_ext in '' $ac_executable_extensions; do
6192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195     break 2
6196   fi
6197 done
6198   done
6199 IFS=$as_save_IFS
6200
6201 fi
6202 fi
6203 RANLIB=$ac_cv_prog_RANLIB
6204 if test -n "$RANLIB"; then
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6206 $as_echo "$RANLIB" >&6; }
6207 else
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6210 fi
6211
6212
6213 fi
6214 if test -z "$ac_cv_prog_RANLIB"; then
6215   ac_ct_RANLIB=$RANLIB
6216   # Extract the first word of "ranlib", so it can be a program name with args.
6217 set dummy ranlib; ac_word=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6221   $as_echo_n "(cached) " >&6
6222 else
6223   if test -n "$ac_ct_RANLIB"; then
6224   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6228 do
6229   IFS=$as_save_IFS
6230   test -z "$as_dir" && as_dir=.
6231     for ac_exec_ext in '' $ac_executable_extensions; do
6232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233     ac_cv_prog_ac_ct_RANLIB="ranlib"
6234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235     break 2
6236   fi
6237 done
6238   done
6239 IFS=$as_save_IFS
6240
6241 fi
6242 fi
6243 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6244 if test -n "$ac_ct_RANLIB"; then
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6246 $as_echo "$ac_ct_RANLIB" >&6; }
6247 else
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6250 fi
6251
6252   if test "x$ac_ct_RANLIB" = x; then
6253     RANLIB=":"
6254   else
6255     case $cross_compiling:$ac_tool_warned in
6256 yes:)
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6259 ac_tool_warned=yes ;;
6260 esac
6261     RANLIB=$ac_ct_RANLIB
6262   fi
6263 else
6264   RANLIB="$ac_cv_prog_RANLIB"
6265 fi
6266
6267 test -z "$RANLIB" && RANLIB=:
6268
6269
6270
6271
6272
6273
6274 # Determine commands to create old-style static archives.
6275 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6276 old_postinstall_cmds='chmod 644 $oldlib'
6277 old_postuninstall_cmds=
6278
6279 if test -n "$RANLIB"; then
6280   case $host_os in
6281   openbsd*)
6282     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6283     ;;
6284   *)
6285     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6286     ;;
6287   esac
6288   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6289 fi
6290
6291 case $host_os in
6292   darwin*)
6293     lock_old_archive_extraction=yes ;;
6294   *)
6295     lock_old_archive_extraction=no ;;
6296 esac
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336 # If no C compiler was specified, use CC.
6337 LTCC=${LTCC-"$CC"}
6338
6339 # If no C compiler flags were specified, use CFLAGS.
6340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6341
6342 # Allow CC to be a program name with arguments.
6343 compiler=$CC
6344
6345
6346 # Check for command to grab the raw symbol name followed by C symbol from nm.
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6348 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6349 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6350   $as_echo_n "(cached) " >&6
6351 else
6352
6353 # These are sane defaults that work on at least a few old systems.
6354 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6355
6356 # Character class describing NM global symbol codes.
6357 symcode='[BCDEGRST]'
6358
6359 # Regexp to match symbols that can be accessed directly from C.
6360 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6361
6362 # Define system-specific variables.
6363 case $host_os in
6364 aix*)
6365   symcode='[BCDT]'
6366   ;;
6367 cygwin* | mingw* | pw32* | cegcc*)
6368   symcode='[ABCDGISTW]'
6369   ;;
6370 hpux*)
6371   if test "$host_cpu" = ia64; then
6372     symcode='[ABCDEGRST]'
6373   fi
6374   ;;
6375 irix* | nonstopux*)
6376   symcode='[BCDEGRST]'
6377   ;;
6378 osf*)
6379   symcode='[BCDEGQRST]'
6380   ;;
6381 solaris*)
6382   symcode='[BDRT]'
6383   ;;
6384 sco3.2v5*)
6385   symcode='[DT]'
6386   ;;
6387 sysv4.2uw2*)
6388   symcode='[DT]'
6389   ;;
6390 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6391   symcode='[ABDT]'
6392   ;;
6393 sysv4)
6394   symcode='[DFNSTU]'
6395   ;;
6396 esac
6397
6398 # If we're using GNU nm, then use its standard symbol codes.
6399 case `$NM -V 2>&1` in
6400 *GNU* | *'with BFD'*)
6401   symcode='[ABCDGIRSTW]' ;;
6402 esac
6403
6404 # Transform an extracted symbol line into a proper C declaration.
6405 # Some systems (esp. on ia64) link data and code symbols differently,
6406 # so use this general approach.
6407 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6408
6409 # Transform an extracted symbol line into symbol name and symbol address
6410 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6411 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'"
6412
6413 # Handle CRLF in mingw tool chain
6414 opt_cr=
6415 case $build_os in
6416 mingw*)
6417   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6418   ;;
6419 esac
6420
6421 # Try without a prefix underscore, then with it.
6422 for ac_symprfx in "" "_"; do
6423
6424   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6425   symxfrm="\\1 $ac_symprfx\\2 \\2"
6426
6427   # Write the raw and C identifiers.
6428   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6429     # Fake it for dumpbin and say T for any non-static function
6430     # and D for any global variable.
6431     # Also find C++ and __fastcall symbols from MSVC++,
6432     # which start with @ or ?.
6433     lt_cv_sys_global_symbol_pipe="$AWK '"\
6434 "     {last_section=section; section=\$ 3};"\
6435 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6436 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6437 "     \$ 0!~/External *\|/{next};"\
6438 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6439 "     {if(hide[section]) next};"\
6440 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6441 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6442 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6443 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6444 "     ' prfx=^$ac_symprfx"
6445   else
6446     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6447   fi
6448   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6449
6450   # Check to see that the pipe works correctly.
6451   pipe_works=no
6452
6453   rm -f conftest*
6454   cat > conftest.$ac_ext <<_LT_EOF
6455 #ifdef __cplusplus
6456 extern "C" {
6457 #endif
6458 char nm_test_var;
6459 void nm_test_func(void);
6460 void nm_test_func(void){}
6461 #ifdef __cplusplus
6462 }
6463 #endif
6464 int main(){nm_test_var='a';nm_test_func();return(0);}
6465 _LT_EOF
6466
6467   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6468   (eval $ac_compile) 2>&5
6469   ac_status=$?
6470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471   test $ac_status = 0; }; then
6472     # Now try to grab the symbols.
6473     nlist=conftest.nm
6474     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6475   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6476   ac_status=$?
6477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478   test $ac_status = 0; } && test -s "$nlist"; then
6479       # Try sorting and uniquifying the output.
6480       if sort "$nlist" | uniq > "$nlist"T; then
6481         mv -f "$nlist"T "$nlist"
6482       else
6483         rm -f "$nlist"T
6484       fi
6485
6486       # Make sure that we snagged all the symbols we need.
6487       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6488         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6489           cat <<_LT_EOF > conftest.$ac_ext
6490 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6491 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6492 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6493    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6494 # define LT_DLSYM_CONST
6495 #elif defined(__osf__)
6496 /* This system does not cope well with relocations in const data.  */
6497 # define LT_DLSYM_CONST
6498 #else
6499 # define LT_DLSYM_CONST const
6500 #endif
6501
6502 #ifdef __cplusplus
6503 extern "C" {
6504 #endif
6505
6506 _LT_EOF
6507           # Now generate the symbol file.
6508           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6509
6510           cat <<_LT_EOF >> conftest.$ac_ext
6511
6512 /* The mapping between symbol names and symbols.  */
6513 LT_DLSYM_CONST struct {
6514   const char *name;
6515   void       *address;
6516 }
6517 lt__PROGRAM__LTX_preloaded_symbols[] =
6518 {
6519   { "@PROGRAM@", (void *) 0 },
6520 _LT_EOF
6521           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6522           cat <<\_LT_EOF >> conftest.$ac_ext
6523   {0, (void *) 0}
6524 };
6525
6526 /* This works around a problem in FreeBSD linker */
6527 #ifdef FREEBSD_WORKAROUND
6528 static const void *lt_preloaded_setup() {
6529   return lt__PROGRAM__LTX_preloaded_symbols;
6530 }
6531 #endif
6532
6533 #ifdef __cplusplus
6534 }
6535 #endif
6536 _LT_EOF
6537           # Now try linking the two files.
6538           mv conftest.$ac_objext conftstm.$ac_objext
6539           lt_globsym_save_LIBS=$LIBS
6540           lt_globsym_save_CFLAGS=$CFLAGS
6541           LIBS="conftstm.$ac_objext"
6542           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6543           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6544   (eval $ac_link) 2>&5
6545   ac_status=$?
6546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6548             pipe_works=yes
6549           fi
6550           LIBS=$lt_globsym_save_LIBS
6551           CFLAGS=$lt_globsym_save_CFLAGS
6552         else
6553           echo "cannot find nm_test_func in $nlist" >&5
6554         fi
6555       else
6556         echo "cannot find nm_test_var in $nlist" >&5
6557       fi
6558     else
6559       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6560     fi
6561   else
6562     echo "$progname: failed program was:" >&5
6563     cat conftest.$ac_ext >&5
6564   fi
6565   rm -rf conftest* conftst*
6566
6567   # Do not use the global_symbol_pipe unless it works.
6568   if test "$pipe_works" = yes; then
6569     break
6570   else
6571     lt_cv_sys_global_symbol_pipe=
6572   fi
6573 done
6574
6575 fi
6576
6577 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6578   lt_cv_sys_global_symbol_to_cdecl=
6579 fi
6580 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6582 $as_echo "failed" >&6; }
6583 else
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6585 $as_echo "ok" >&6; }
6586 fi
6587
6588 # Response file support.
6589 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6590   nm_file_list_spec='@'
6591 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6592   nm_file_list_spec='@'
6593 fi
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6622 $as_echo_n "checking for sysroot... " >&6; }
6623
6624 # Check whether --with-sysroot was given.
6625 if test "${with_sysroot+set}" = set; then :
6626   withval=$with_sysroot;
6627 else
6628   with_sysroot=no
6629 fi
6630
6631
6632 lt_sysroot=
6633 case ${with_sysroot} in #(
6634  yes)
6635    if test "$GCC" = yes; then
6636      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6637    fi
6638    ;; #(
6639  /*)
6640    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6641    ;; #(
6642  no|'')
6643    ;; #(
6644  *)
6645    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6646 $as_echo "${with_sysroot}" >&6; }
6647    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6648    ;;
6649 esac
6650
6651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6652 $as_echo "${lt_sysroot:-no}" >&6; }
6653
6654
6655
6656
6657
6658 # Check whether --enable-libtool-lock was given.
6659 if test "${enable_libtool_lock+set}" = set; then :
6660   enableval=$enable_libtool_lock;
6661 fi
6662
6663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6664
6665 # Some flags need to be propagated to the compiler or linker for good
6666 # libtool support.
6667 case $host in
6668 ia64-*-hpux*)
6669   # Find out which ABI we are using.
6670   echo 'int i;' > conftest.$ac_ext
6671   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6672   (eval $ac_compile) 2>&5
6673   ac_status=$?
6674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6675   test $ac_status = 0; }; then
6676     case `/usr/bin/file conftest.$ac_objext` in
6677       *ELF-32*)
6678         HPUX_IA64_MODE="32"
6679         ;;
6680       *ELF-64*)
6681         HPUX_IA64_MODE="64"
6682         ;;
6683     esac
6684   fi
6685   rm -rf conftest*
6686   ;;
6687 *-*-irix6*)
6688   # Find out which ABI we are using.
6689   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6690   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6691   (eval $ac_compile) 2>&5
6692   ac_status=$?
6693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694   test $ac_status = 0; }; then
6695     if test "$lt_cv_prog_gnu_ld" = yes; then
6696       case `/usr/bin/file conftest.$ac_objext` in
6697         *32-bit*)
6698           LD="${LD-ld} -melf32bsmip"
6699           ;;
6700         *N32*)
6701           LD="${LD-ld} -melf32bmipn32"
6702           ;;
6703         *64-bit*)
6704           LD="${LD-ld} -melf64bmip"
6705         ;;
6706       esac
6707     else
6708       case `/usr/bin/file conftest.$ac_objext` in
6709         *32-bit*)
6710           LD="${LD-ld} -32"
6711           ;;
6712         *N32*)
6713           LD="${LD-ld} -n32"
6714           ;;
6715         *64-bit*)
6716           LD="${LD-ld} -64"
6717           ;;
6718       esac
6719     fi
6720   fi
6721   rm -rf conftest*
6722   ;;
6723
6724 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6725 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6726   # Find out which ABI we are using.
6727   echo 'int i;' > conftest.$ac_ext
6728   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6729   (eval $ac_compile) 2>&5
6730   ac_status=$?
6731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6732   test $ac_status = 0; }; then
6733     case `/usr/bin/file conftest.o` in
6734       *32-bit*)
6735         case $host in
6736           x86_64-*kfreebsd*-gnu)
6737             LD="${LD-ld} -m elf_i386_fbsd"
6738             ;;
6739           x86_64-*linux*)
6740             LD="${LD-ld} -m elf_i386"
6741             ;;
6742           ppc64-*linux*|powerpc64-*linux*)
6743             LD="${LD-ld} -m elf32ppclinux"
6744             ;;
6745           s390x-*linux*)
6746             LD="${LD-ld} -m elf_s390"
6747             ;;
6748           sparc64-*linux*)
6749             LD="${LD-ld} -m elf32_sparc"
6750             ;;
6751         esac
6752         ;;
6753       *64-bit*)
6754         case $host in
6755           x86_64-*kfreebsd*-gnu)
6756             LD="${LD-ld} -m elf_x86_64_fbsd"
6757             ;;
6758           x86_64-*linux*)
6759             LD="${LD-ld} -m elf_x86_64"
6760             ;;
6761           ppc*-*linux*|powerpc*-*linux*)
6762             LD="${LD-ld} -m elf64ppc"
6763             ;;
6764           s390*-*linux*|s390*-*tpf*)
6765             LD="${LD-ld} -m elf64_s390"
6766             ;;
6767           sparc*-*linux*)
6768             LD="${LD-ld} -m elf64_sparc"
6769             ;;
6770         esac
6771         ;;
6772     esac
6773   fi
6774   rm -rf conftest*
6775   ;;
6776
6777 *-*-sco3.2v5*)
6778   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6779   SAVE_CFLAGS="$CFLAGS"
6780   CFLAGS="$CFLAGS -belf"
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6782 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6783 if ${lt_cv_cc_needs_belf+:} false; then :
6784   $as_echo_n "(cached) " >&6
6785 else
6786   ac_ext=c
6787 ac_cpp='$CPP $CPPFLAGS'
6788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6791
6792      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h.  */
6794
6795 int
6796 main ()
6797 {
6798
6799   ;
6800   return 0;
6801 }
6802 _ACEOF
6803 if ac_fn_c_try_link "$LINENO"; then :
6804   lt_cv_cc_needs_belf=yes
6805 else
6806   lt_cv_cc_needs_belf=no
6807 fi
6808 rm -f core conftest.err conftest.$ac_objext \
6809     conftest$ac_exeext conftest.$ac_ext
6810      ac_ext=c
6811 ac_cpp='$CPP $CPPFLAGS'
6812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6815
6816 fi
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6818 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6819   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6820     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6821     CFLAGS="$SAVE_CFLAGS"
6822   fi
6823   ;;
6824 *-*solaris*)
6825   # Find out which ABI we are using.
6826   echo 'int i;' > conftest.$ac_ext
6827   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6828   (eval $ac_compile) 2>&5
6829   ac_status=$?
6830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6831   test $ac_status = 0; }; then
6832     case `/usr/bin/file conftest.o` in
6833     *64-bit*)
6834       case $lt_cv_prog_gnu_ld in
6835       yes*)
6836         case $host in
6837         i?86-*-solaris*)
6838           LD="${LD-ld} -m elf_x86_64"
6839           ;;
6840         sparc*-*-solaris*)
6841           LD="${LD-ld} -m elf64_sparc"
6842           ;;
6843         esac
6844         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6845         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6846           LD="${LD-ld}_sol2"
6847         fi
6848         ;;
6849       *)
6850         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6851           LD="${LD-ld} -64"
6852         fi
6853         ;;
6854       esac
6855       ;;
6856     esac
6857   fi
6858   rm -rf conftest*
6859   ;;
6860 esac
6861
6862 need_locks="$enable_libtool_lock"
6863
6864 if test -n "$ac_tool_prefix"; then
6865   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}mt; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6870   $as_echo_n "(cached) " >&6
6871 else
6872   if test -n "$MANIFEST_TOOL"; then
6873   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880     for ac_exec_ext in '' $ac_executable_extensions; do
6881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887   done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6893 if test -n "$MANIFEST_TOOL"; then
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6895 $as_echo "$MANIFEST_TOOL" >&6; }
6896 else
6897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900
6901
6902 fi
6903 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6904   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6905   # Extract the first word of "mt", so it can be a program name with args.
6906 set dummy mt; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6910   $as_echo_n "(cached) " >&6
6911 else
6912   if test -n "$ac_ct_MANIFEST_TOOL"; then
6913   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918   IFS=$as_save_IFS
6919   test -z "$as_dir" && as_dir=.
6920     for ac_exec_ext in '' $ac_executable_extensions; do
6921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6922     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924     break 2
6925   fi
6926 done
6927   done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6933 if test -n "$ac_ct_MANIFEST_TOOL"; then
6934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6935 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6936 else
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6939 fi
6940
6941   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6942     MANIFEST_TOOL=":"
6943   else
6944     case $cross_compiling:$ac_tool_warned in
6945 yes:)
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948 ac_tool_warned=yes ;;
6949 esac
6950     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6951   fi
6952 else
6953   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6954 fi
6955
6956 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6958 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6959 if ${lt_cv_path_mainfest_tool+:} false; then :
6960   $as_echo_n "(cached) " >&6
6961 else
6962   lt_cv_path_mainfest_tool=no
6963   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6964   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6965   cat conftest.err >&5
6966   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6967     lt_cv_path_mainfest_tool=yes
6968   fi
6969   rm -f conftest*
6970 fi
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6972 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6973 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6974   MANIFEST_TOOL=:
6975 fi
6976
6977
6978
6979
6980
6981
6982   case $host_os in
6983     rhapsody* | darwin*)
6984     if test -n "$ac_tool_prefix"; then
6985   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6990   $as_echo_n "(cached) " >&6
6991 else
6992   if test -n "$DSYMUTIL"; then
6993   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000     for ac_exec_ext in '' $ac_executable_extensions; do
7001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004     break 2
7005   fi
7006 done
7007   done
7008 IFS=$as_save_IFS
7009
7010 fi
7011 fi
7012 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7013 if test -n "$DSYMUTIL"; then
7014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7015 $as_echo "$DSYMUTIL" >&6; }
7016 else
7017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7019 fi
7020
7021
7022 fi
7023 if test -z "$ac_cv_prog_DSYMUTIL"; then
7024   ac_ct_DSYMUTIL=$DSYMUTIL
7025   # Extract the first word of "dsymutil", so it can be a program name with args.
7026 set dummy dsymutil; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7030   $as_echo_n "(cached) " >&6
7031 else
7032   if test -n "$ac_ct_DSYMUTIL"; then
7033   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7034 else
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7037 do
7038   IFS=$as_save_IFS
7039   test -z "$as_dir" && as_dir=.
7040     for ac_exec_ext in '' $ac_executable_extensions; do
7041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7042     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044     break 2
7045   fi
7046 done
7047   done
7048 IFS=$as_save_IFS
7049
7050 fi
7051 fi
7052 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7053 if test -n "$ac_ct_DSYMUTIL"; then
7054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7055 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7056 else
7057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7059 fi
7060
7061   if test "x$ac_ct_DSYMUTIL" = x; then
7062     DSYMUTIL=":"
7063   else
7064     case $cross_compiling:$ac_tool_warned in
7065 yes:)
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7068 ac_tool_warned=yes ;;
7069 esac
7070     DSYMUTIL=$ac_ct_DSYMUTIL
7071   fi
7072 else
7073   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7074 fi
7075
7076     if test -n "$ac_tool_prefix"; then
7077   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7078 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_prog_NMEDIT+:} false; then :
7082   $as_echo_n "(cached) " >&6
7083 else
7084   if test -n "$NMEDIT"; then
7085   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090   IFS=$as_save_IFS
7091   test -z "$as_dir" && as_dir=.
7092     for ac_exec_ext in '' $ac_executable_extensions; do
7093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096     break 2
7097   fi
7098 done
7099   done
7100 IFS=$as_save_IFS
7101
7102 fi
7103 fi
7104 NMEDIT=$ac_cv_prog_NMEDIT
7105 if test -n "$NMEDIT"; then
7106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7107 $as_echo "$NMEDIT" >&6; }
7108 else
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7112
7113
7114 fi
7115 if test -z "$ac_cv_prog_NMEDIT"; then
7116   ac_ct_NMEDIT=$NMEDIT
7117   # Extract the first word of "nmedit", so it can be a program name with args.
7118 set dummy nmedit; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7122   $as_echo_n "(cached) " >&6
7123 else
7124   if test -n "$ac_ct_NMEDIT"; then
7125   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132     for ac_exec_ext in '' $ac_executable_extensions; do
7133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137   fi
7138 done
7139   done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7145 if test -n "$ac_ct_NMEDIT"; then
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7147 $as_echo "$ac_ct_NMEDIT" >&6; }
7148 else
7149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7152
7153   if test "x$ac_ct_NMEDIT" = x; then
7154     NMEDIT=":"
7155   else
7156     case $cross_compiling:$ac_tool_warned in
7157 yes:)
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7160 ac_tool_warned=yes ;;
7161 esac
7162     NMEDIT=$ac_ct_NMEDIT
7163   fi
7164 else
7165   NMEDIT="$ac_cv_prog_NMEDIT"
7166 fi
7167
7168     if test -n "$ac_tool_prefix"; then
7169   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7170 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_LIPO+:} false; then :
7174   $as_echo_n "(cached) " >&6
7175 else
7176   if test -n "$LIPO"; then
7177   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182   IFS=$as_save_IFS
7183   test -z "$as_dir" && as_dir=.
7184     for ac_exec_ext in '' $ac_executable_extensions; do
7185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188     break 2
7189   fi
7190 done
7191   done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 LIPO=$ac_cv_prog_LIPO
7197 if test -n "$LIPO"; then
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7199 $as_echo "$LIPO" >&6; }
7200 else
7201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7204
7205
7206 fi
7207 if test -z "$ac_cv_prog_LIPO"; then
7208   ac_ct_LIPO=$LIPO
7209   # Extract the first word of "lipo", so it can be a program name with args.
7210 set dummy lipo; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7214   $as_echo_n "(cached) " >&6
7215 else
7216   if test -n "$ac_ct_LIPO"; then
7217   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222   IFS=$as_save_IFS
7223   test -z "$as_dir" && as_dir=.
7224     for ac_exec_ext in '' $ac_executable_extensions; do
7225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226     ac_cv_prog_ac_ct_LIPO="lipo"
7227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228     break 2
7229   fi
7230 done
7231   done
7232 IFS=$as_save_IFS
7233
7234 fi
7235 fi
7236 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7237 if test -n "$ac_ct_LIPO"; then
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7239 $as_echo "$ac_ct_LIPO" >&6; }
7240 else
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244
7245   if test "x$ac_ct_LIPO" = x; then
7246     LIPO=":"
7247   else
7248     case $cross_compiling:$ac_tool_warned in
7249 yes:)
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7252 ac_tool_warned=yes ;;
7253 esac
7254     LIPO=$ac_ct_LIPO
7255   fi
7256 else
7257   LIPO="$ac_cv_prog_LIPO"
7258 fi
7259
7260     if test -n "$ac_tool_prefix"; then
7261   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}otool; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if ${ac_cv_prog_OTOOL+:} false; then :
7266   $as_echo_n "(cached) " >&6
7267 else
7268   if test -n "$OTOOL"; then
7269   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7270 else
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274   IFS=$as_save_IFS
7275   test -z "$as_dir" && as_dir=.
7276     for ac_exec_ext in '' $ac_executable_extensions; do
7277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280     break 2
7281   fi
7282 done
7283   done
7284 IFS=$as_save_IFS
7285
7286 fi
7287 fi
7288 OTOOL=$ac_cv_prog_OTOOL
7289 if test -n "$OTOOL"; then
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7291 $as_echo "$OTOOL" >&6; }
7292 else
7293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7296
7297
7298 fi
7299 if test -z "$ac_cv_prog_OTOOL"; then
7300   ac_ct_OTOOL=$OTOOL
7301   # Extract the first word of "otool", so it can be a program name with args.
7302 set dummy otool; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7306   $as_echo_n "(cached) " >&6
7307 else
7308   if test -n "$ac_ct_OTOOL"; then
7309   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316     for ac_exec_ext in '' $ac_executable_extensions; do
7317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318     ac_cv_prog_ac_ct_OTOOL="otool"
7319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323   done
7324 IFS=$as_save_IFS
7325
7326 fi
7327 fi
7328 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7329 if test -n "$ac_ct_OTOOL"; then
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7331 $as_echo "$ac_ct_OTOOL" >&6; }
7332 else
7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336
7337   if test "x$ac_ct_OTOOL" = x; then
7338     OTOOL=":"
7339   else
7340     case $cross_compiling:$ac_tool_warned in
7341 yes:)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7345 esac
7346     OTOOL=$ac_ct_OTOOL
7347   fi
7348 else
7349   OTOOL="$ac_cv_prog_OTOOL"
7350 fi
7351
7352     if test -n "$ac_tool_prefix"; then
7353   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7354 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_OTOOL64+:} false; then :
7358   $as_echo_n "(cached) " >&6
7359 else
7360   if test -n "$OTOOL64"; then
7361   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7365 do
7366   IFS=$as_save_IFS
7367   test -z "$as_dir" && as_dir=.
7368     for ac_exec_ext in '' $ac_executable_extensions; do
7369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372     break 2
7373   fi
7374 done
7375   done
7376 IFS=$as_save_IFS
7377
7378 fi
7379 fi
7380 OTOOL64=$ac_cv_prog_OTOOL64
7381 if test -n "$OTOOL64"; then
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7383 $as_echo "$OTOOL64" >&6; }
7384 else
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7387 fi
7388
7389
7390 fi
7391 if test -z "$ac_cv_prog_OTOOL64"; then
7392   ac_ct_OTOOL64=$OTOOL64
7393   # Extract the first word of "otool64", so it can be a program name with args.
7394 set dummy otool64; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7398   $as_echo_n "(cached) " >&6
7399 else
7400   if test -n "$ac_ct_OTOOL64"; then
7401   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7402 else
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406   IFS=$as_save_IFS
7407   test -z "$as_dir" && as_dir=.
7408     for ac_exec_ext in '' $ac_executable_extensions; do
7409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410     ac_cv_prog_ac_ct_OTOOL64="otool64"
7411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412     break 2
7413   fi
7414 done
7415   done
7416 IFS=$as_save_IFS
7417
7418 fi
7419 fi
7420 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7421 if test -n "$ac_ct_OTOOL64"; then
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7423 $as_echo "$ac_ct_OTOOL64" >&6; }
7424 else
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7427 fi
7428
7429   if test "x$ac_ct_OTOOL64" = x; then
7430     OTOOL64=":"
7431   else
7432     case $cross_compiling:$ac_tool_warned in
7433 yes:)
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436 ac_tool_warned=yes ;;
7437 esac
7438     OTOOL64=$ac_ct_OTOOL64
7439   fi
7440 else
7441   OTOOL64="$ac_cv_prog_OTOOL64"
7442 fi
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7471 $as_echo_n "checking for -single_module linker flag... " >&6; }
7472 if ${lt_cv_apple_cc_single_mod+:} false; then :
7473   $as_echo_n "(cached) " >&6
7474 else
7475   lt_cv_apple_cc_single_mod=no
7476       if test -z "${LT_MULTI_MODULE}"; then
7477         # By default we will add the -single_module flag. You can override
7478         # by either setting the environment variable LT_MULTI_MODULE
7479         # non-empty at configure time, or by adding -multi_module to the
7480         # link flags.
7481         rm -rf libconftest.dylib*
7482         echo "int foo(void){return 1;}" > conftest.c
7483         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7484 -dynamiclib -Wl,-single_module conftest.c" >&5
7485         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7486           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7487         _lt_result=$?
7488         # If there is a non-empty error log, and "single_module"
7489         # appears in it, assume the flag caused a linker warning
7490         if test -s conftest.err && $GREP single_module conftest.err; then
7491           cat conftest.err >&5
7492         # Otherwise, if the output was created with a 0 exit code from
7493         # the compiler, it worked.
7494         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7495           lt_cv_apple_cc_single_mod=yes
7496         else
7497           cat conftest.err >&5
7498         fi
7499         rm -rf libconftest.dylib*
7500         rm -f conftest.*
7501       fi
7502 fi
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7504 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7505
7506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7507 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7508 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7509   $as_echo_n "(cached) " >&6
7510 else
7511   lt_cv_ld_exported_symbols_list=no
7512       save_LDFLAGS=$LDFLAGS
7513       echo "_main" > conftest.sym
7514       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7515       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h.  */
7517
7518 int
7519 main ()
7520 {
7521
7522   ;
7523   return 0;
7524 }
7525 _ACEOF
7526 if ac_fn_c_try_link "$LINENO"; then :
7527   lt_cv_ld_exported_symbols_list=yes
7528 else
7529   lt_cv_ld_exported_symbols_list=no
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext \
7532     conftest$ac_exeext conftest.$ac_ext
7533         LDFLAGS="$save_LDFLAGS"
7534
7535 fi
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7537 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7538
7539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7540 $as_echo_n "checking for -force_load linker flag... " >&6; }
7541 if ${lt_cv_ld_force_load+:} false; then :
7542   $as_echo_n "(cached) " >&6
7543 else
7544   lt_cv_ld_force_load=no
7545       cat > conftest.c << _LT_EOF
7546 int forced_loaded() { return 2;}
7547 _LT_EOF
7548       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7549       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7550       echo "$AR cru libconftest.a conftest.o" >&5
7551       $AR cru libconftest.a conftest.o 2>&5
7552       echo "$RANLIB libconftest.a" >&5
7553       $RANLIB libconftest.a 2>&5
7554       cat > conftest.c << _LT_EOF
7555 int main() { return 0;}
7556 _LT_EOF
7557       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7558       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7559       _lt_result=$?
7560       if test -s conftest.err && $GREP force_load conftest.err; then
7561         cat conftest.err >&5
7562       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7563         lt_cv_ld_force_load=yes
7564       else
7565         cat conftest.err >&5
7566       fi
7567         rm -f conftest.err libconftest.a conftest conftest.c
7568         rm -rf conftest.dSYM
7569
7570 fi
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7572 $as_echo "$lt_cv_ld_force_load" >&6; }
7573     case $host_os in
7574     rhapsody* | darwin1.[012])
7575       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7576     darwin1.*)
7577       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7578     darwin*) # darwin 5.x on
7579       # if running on 10.5 or later, the deployment target defaults
7580       # to the OS version, if on x86, and 10.4, the deployment
7581       # target defaults to 10.4. Don't you love it?
7582       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7583         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7584           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7585         10.[012]*)
7586           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7587         10.*)
7588           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7589       esac
7590     ;;
7591   esac
7592     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7593       _lt_dar_single_mod='$single_module'
7594     fi
7595     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7596       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7597     else
7598       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7599     fi
7600     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7601       _lt_dsymutil='~$DSYMUTIL $lib || :'
7602     else
7603       _lt_dsymutil=
7604     fi
7605     ;;
7606   esac
7607
7608 for ac_header in dlfcn.h
7609 do :
7610   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7611 "
7612 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7613   cat >>confdefs.h <<_ACEOF
7614 #define HAVE_DLFCN_H 1
7615 _ACEOF
7616
7617 fi
7618
7619 done
7620
7621
7622
7623
7624
7625 # Set options
7626
7627
7628
7629         enable_dlopen=no
7630
7631
7632   enable_win32_dll=no
7633
7634
7635             # Check whether --enable-shared was given.
7636 if test "${enable_shared+set}" = set; then :
7637   enableval=$enable_shared; p=${PACKAGE-default}
7638     case $enableval in
7639     yes) enable_shared=yes ;;
7640     no) enable_shared=no ;;
7641     *)
7642       enable_shared=no
7643       # Look at the argument we got.  We use all the common list separators.
7644       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7645       for pkg in $enableval; do
7646         IFS="$lt_save_ifs"
7647         if test "X$pkg" = "X$p"; then
7648           enable_shared=yes
7649         fi
7650       done
7651       IFS="$lt_save_ifs"
7652       ;;
7653     esac
7654 else
7655   enable_shared=yes
7656 fi
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666   # Check whether --enable-static was given.
7667 if test "${enable_static+set}" = set; then :
7668   enableval=$enable_static; p=${PACKAGE-default}
7669     case $enableval in
7670     yes) enable_static=yes ;;
7671     no) enable_static=no ;;
7672     *)
7673      enable_static=no
7674       # Look at the argument we got.  We use all the common list separators.
7675       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7676       for pkg in $enableval; do
7677         IFS="$lt_save_ifs"
7678         if test "X$pkg" = "X$p"; then
7679           enable_static=yes
7680         fi
7681       done
7682       IFS="$lt_save_ifs"
7683       ;;
7684     esac
7685 else
7686   enable_static=yes
7687 fi
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698 # Check whether --with-pic was given.
7699 if test "${with_pic+set}" = set; then :
7700   withval=$with_pic; lt_p=${PACKAGE-default}
7701     case $withval in
7702     yes|no) pic_mode=$withval ;;
7703     *)
7704       pic_mode=default
7705       # Look at the argument we got.  We use all the common list separators.
7706       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7707       for lt_pkg in $withval; do
7708         IFS="$lt_save_ifs"
7709         if test "X$lt_pkg" = "X$lt_p"; then
7710           pic_mode=yes
7711         fi
7712       done
7713       IFS="$lt_save_ifs"
7714       ;;
7715     esac
7716 else
7717   pic_mode=default
7718 fi
7719
7720
7721 test -z "$pic_mode" && pic_mode=default
7722
7723
7724
7725
7726
7727
7728
7729   # Check whether --enable-fast-install was given.
7730 if test "${enable_fast_install+set}" = set; then :
7731   enableval=$enable_fast_install; p=${PACKAGE-default}
7732     case $enableval in
7733     yes) enable_fast_install=yes ;;
7734     no) enable_fast_install=no ;;
7735     *)
7736       enable_fast_install=no
7737       # Look at the argument we got.  We use all the common list separators.
7738       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7739       for pkg in $enableval; do
7740         IFS="$lt_save_ifs"
7741         if test "X$pkg" = "X$p"; then
7742           enable_fast_install=yes
7743         fi
7744       done
7745       IFS="$lt_save_ifs"
7746       ;;
7747     esac
7748 else
7749   enable_fast_install=yes
7750 fi
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762 # This can be used to rebuild libtool when needed
7763 LIBTOOL_DEPS="$ltmain"
7764
7765 # Always use our own libtool.
7766 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797 test -z "$LN_S" && LN_S="ln -s"
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812 if test -n "${ZSH_VERSION+set}" ; then
7813    setopt NO_GLOB_SUBST
7814 fi
7815
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7817 $as_echo_n "checking for objdir... " >&6; }
7818 if ${lt_cv_objdir+:} false; then :
7819   $as_echo_n "(cached) " >&6
7820 else
7821   rm -f .libs 2>/dev/null
7822 mkdir .libs 2>/dev/null
7823 if test -d .libs; then
7824   lt_cv_objdir=.libs
7825 else
7826   # MS-DOS does not allow filenames that begin with a dot.
7827   lt_cv_objdir=_libs
7828 fi
7829 rmdir .libs 2>/dev/null
7830 fi
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7832 $as_echo "$lt_cv_objdir" >&6; }
7833 objdir=$lt_cv_objdir
7834
7835
7836
7837
7838
7839 cat >>confdefs.h <<_ACEOF
7840 #define LT_OBJDIR "$lt_cv_objdir/"
7841 _ACEOF
7842
7843
7844
7845
7846 case $host_os in
7847 aix3*)
7848   # AIX sometimes has problems with the GCC collect2 program.  For some
7849   # reason, if we set the COLLECT_NAMES environment variable, the problems
7850   # vanish in a puff of smoke.
7851   if test "X${COLLECT_NAMES+set}" != Xset; then
7852     COLLECT_NAMES=
7853     export COLLECT_NAMES
7854   fi
7855   ;;
7856 esac
7857
7858 # Global variables:
7859 ofile=libtool
7860 can_build_shared=yes
7861
7862 # All known linkers require a `.a' archive for static linking (except MSVC,
7863 # which needs '.lib').
7864 libext=a
7865
7866 with_gnu_ld="$lt_cv_prog_gnu_ld"
7867
7868 old_CC="$CC"
7869 old_CFLAGS="$CFLAGS"
7870
7871 # Set sane defaults for various variables
7872 test -z "$CC" && CC=cc
7873 test -z "$LTCC" && LTCC=$CC
7874 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7875 test -z "$LD" && LD=ld
7876 test -z "$ac_objext" && ac_objext=o
7877
7878 for cc_temp in $compiler""; do
7879   case $cc_temp in
7880     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7881     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7882     \-*) ;;
7883     *) break;;
7884   esac
7885 done
7886 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7887
7888
7889 # Only perform the check for file, if the check method requires it
7890 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7891 case $deplibs_check_method in
7892 file_magic*)
7893   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7895 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7896 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7897   $as_echo_n "(cached) " >&6
7898 else
7899   case $MAGIC_CMD in
7900 [\\/*] |  ?:[\\/]*)
7901   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7902   ;;
7903 *)
7904   lt_save_MAGIC_CMD="$MAGIC_CMD"
7905   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7906   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7907   for ac_dir in $ac_dummy; do
7908     IFS="$lt_save_ifs"
7909     test -z "$ac_dir" && ac_dir=.
7910     if test -f $ac_dir/${ac_tool_prefix}file; then
7911       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7912       if test -n "$file_magic_test_file"; then
7913         case $deplibs_check_method in
7914         "file_magic "*)
7915           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7916           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7917           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7918             $EGREP "$file_magic_regex" > /dev/null; then
7919             :
7920           else
7921             cat <<_LT_EOF 1>&2
7922
7923 *** Warning: the command libtool uses to detect shared libraries,
7924 *** $file_magic_cmd, produces output that libtool cannot recognize.
7925 *** The result is that libtool may fail to recognize shared libraries
7926 *** as such.  This will affect the creation of libtool libraries that
7927 *** depend on shared libraries, but programs linked with such libtool
7928 *** libraries will work regardless of this problem.  Nevertheless, you
7929 *** may want to report the problem to your system manager and/or to
7930 *** bug-libtool@gnu.org
7931
7932 _LT_EOF
7933           fi ;;
7934         esac
7935       fi
7936       break
7937     fi
7938   done
7939   IFS="$lt_save_ifs"
7940   MAGIC_CMD="$lt_save_MAGIC_CMD"
7941   ;;
7942 esac
7943 fi
7944
7945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7946 if test -n "$MAGIC_CMD"; then
7947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7948 $as_echo "$MAGIC_CMD" >&6; }
7949 else
7950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7952 fi
7953
7954
7955
7956
7957
7958 if test -z "$lt_cv_path_MAGIC_CMD"; then
7959   if test -n "$ac_tool_prefix"; then
7960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7961 $as_echo_n "checking for file... " >&6; }
7962 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7963   $as_echo_n "(cached) " >&6
7964 else
7965   case $MAGIC_CMD in
7966 [\\/*] |  ?:[\\/]*)
7967   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7968   ;;
7969 *)
7970   lt_save_MAGIC_CMD="$MAGIC_CMD"
7971   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7972   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7973   for ac_dir in $ac_dummy; do
7974     IFS="$lt_save_ifs"
7975     test -z "$ac_dir" && ac_dir=.
7976     if test -f $ac_dir/file; then
7977       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7978       if test -n "$file_magic_test_file"; then
7979         case $deplibs_check_method in
7980         "file_magic "*)
7981           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7982           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7983           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7984             $EGREP "$file_magic_regex" > /dev/null; then
7985             :
7986           else
7987             cat <<_LT_EOF 1>&2
7988
7989 *** Warning: the command libtool uses to detect shared libraries,
7990 *** $file_magic_cmd, produces output that libtool cannot recognize.
7991 *** The result is that libtool may fail to recognize shared libraries
7992 *** as such.  This will affect the creation of libtool libraries that
7993 *** depend on shared libraries, but programs linked with such libtool
7994 *** libraries will work regardless of this problem.  Nevertheless, you
7995 *** may want to report the problem to your system manager and/or to
7996 *** bug-libtool@gnu.org
7997
7998 _LT_EOF
7999           fi ;;
8000         esac
8001       fi
8002       break
8003     fi
8004   done
8005   IFS="$lt_save_ifs"
8006   MAGIC_CMD="$lt_save_MAGIC_CMD"
8007   ;;
8008 esac
8009 fi
8010
8011 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8012 if test -n "$MAGIC_CMD"; then
8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8014 $as_echo "$MAGIC_CMD" >&6; }
8015 else
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8018 fi
8019
8020
8021   else
8022     MAGIC_CMD=:
8023   fi
8024 fi
8025
8026   fi
8027   ;;
8028 esac
8029
8030 # Use C for the default configuration in the libtool script
8031
8032 lt_save_CC="$CC"
8033 ac_ext=c
8034 ac_cpp='$CPP $CPPFLAGS'
8035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8038
8039
8040 # Source file extension for C test sources.
8041 ac_ext=c
8042
8043 # Object file extension for compiled C test sources.
8044 objext=o
8045 objext=$objext
8046
8047 # Code to be used in simple compile tests
8048 lt_simple_compile_test_code="int some_variable = 0;"
8049
8050 # Code to be used in simple link tests
8051 lt_simple_link_test_code='int main(){return(0);}'
8052
8053
8054
8055
8056
8057
8058
8059 # If no C compiler was specified, use CC.
8060 LTCC=${LTCC-"$CC"}
8061
8062 # If no C compiler flags were specified, use CFLAGS.
8063 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8064
8065 # Allow CC to be a program name with arguments.
8066 compiler=$CC
8067
8068 # Save the default compiler, since it gets overwritten when the other
8069 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8070 compiler_DEFAULT=$CC
8071
8072 # save warnings/boilerplate of simple test code
8073 ac_outfile=conftest.$ac_objext
8074 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8075 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8076 _lt_compiler_boilerplate=`cat conftest.err`
8077 $RM conftest*
8078
8079 ac_outfile=conftest.$ac_objext
8080 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8081 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8082 _lt_linker_boilerplate=`cat conftest.err`
8083 $RM -r conftest*
8084
8085
8086 ## CAVEAT EMPTOR:
8087 ## There is no encapsulation within the following macros, do not change
8088 ## the running order or otherwise move them around unless you know exactly
8089 ## what you are doing...
8090 if test -n "$compiler"; then
8091
8092 lt_prog_compiler_no_builtin_flag=
8093
8094 if test "$GCC" = yes; then
8095   case $cc_basename in
8096   nvcc*)
8097     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8098   *)
8099     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8100   esac
8101
8102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8103 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8104 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8105   $as_echo_n "(cached) " >&6
8106 else
8107   lt_cv_prog_compiler_rtti_exceptions=no
8108    ac_outfile=conftest.$ac_objext
8109    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8110    lt_compiler_flag="-fno-rtti -fno-exceptions"
8111    # Insert the option either (1) after the last *FLAGS variable, or
8112    # (2) before a word containing "conftest.", or (3) at the end.
8113    # Note that $ac_compile itself does not contain backslashes and begins
8114    # with a dollar sign (not a hyphen), so the echo should work correctly.
8115    # The option is referenced via a variable to avoid confusing sed.
8116    lt_compile=`echo "$ac_compile" | $SED \
8117    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8118    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8119    -e 's:$: $lt_compiler_flag:'`
8120    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8121    (eval "$lt_compile" 2>conftest.err)
8122    ac_status=$?
8123    cat conftest.err >&5
8124    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125    if (exit $ac_status) && test -s "$ac_outfile"; then
8126      # The compiler can only warn and ignore the option if not recognized
8127      # So say no if there are warnings other than the usual output.
8128      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8129      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8130      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8131        lt_cv_prog_compiler_rtti_exceptions=yes
8132      fi
8133    fi
8134    $RM conftest*
8135
8136 fi
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8138 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8139
8140 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8141     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8142 else
8143     :
8144 fi
8145
8146 fi
8147
8148
8149
8150
8151
8152
8153   lt_prog_compiler_wl=
8154 lt_prog_compiler_pic=
8155 lt_prog_compiler_static=
8156
8157
8158   if test "$GCC" = yes; then
8159     lt_prog_compiler_wl='-Wl,'
8160     lt_prog_compiler_static='-static'
8161
8162     case $host_os in
8163       aix*)
8164       # All AIX code is PIC.
8165       if test "$host_cpu" = ia64; then
8166         # AIX 5 now supports IA64 processor
8167         lt_prog_compiler_static='-Bstatic'
8168       fi
8169       ;;
8170
8171     amigaos*)
8172       case $host_cpu in
8173       powerpc)
8174             # see comment about AmigaOS4 .so support
8175             lt_prog_compiler_pic='-fPIC'
8176         ;;
8177       m68k)
8178             # FIXME: we need at least 68020 code to build shared libraries, but
8179             # adding the `-m68020' flag to GCC prevents building anything better,
8180             # like `-m68040'.
8181             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8182         ;;
8183       esac
8184       ;;
8185
8186     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8187       # PIC is the default for these OSes.
8188       ;;
8189
8190     mingw* | cygwin* | pw32* | os2* | cegcc*)
8191       # This hack is so that the source file can tell whether it is being
8192       # built for inclusion in a dll (and should export symbols for example).
8193       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8194       # (--disable-auto-import) libraries
8195       lt_prog_compiler_pic='-DDLL_EXPORT'
8196       ;;
8197
8198     darwin* | rhapsody*)
8199       # PIC is the default on this platform
8200       # Common symbols not allowed in MH_DYLIB files
8201       lt_prog_compiler_pic='-fno-common'
8202       ;;
8203
8204     haiku*)
8205       # PIC is the default for Haiku.
8206       # The "-static" flag exists, but is broken.
8207       lt_prog_compiler_static=
8208       ;;
8209
8210     hpux*)
8211       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8212       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8213       # sets the default TLS model and affects inlining.
8214       case $host_cpu in
8215       hppa*64*)
8216         # +Z the default
8217         ;;
8218       *)
8219         lt_prog_compiler_pic='-fPIC'
8220         ;;
8221       esac
8222       ;;
8223
8224     interix[3-9]*)
8225       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8226       # Instead, we relocate shared libraries at runtime.
8227       ;;
8228
8229     msdosdjgpp*)
8230       # Just because we use GCC doesn't mean we suddenly get shared libraries
8231       # on systems that don't support them.
8232       lt_prog_compiler_can_build_shared=no
8233       enable_shared=no
8234       ;;
8235
8236     *nto* | *qnx*)
8237       # QNX uses GNU C++, but need to define -shared option too, otherwise
8238       # it will coredump.
8239       lt_prog_compiler_pic='-fPIC -shared'
8240       ;;
8241
8242     sysv4*MP*)
8243       if test -d /usr/nec; then
8244         lt_prog_compiler_pic=-Kconform_pic
8245       fi
8246       ;;
8247
8248     *)
8249       lt_prog_compiler_pic='-fPIC'
8250       ;;
8251     esac
8252
8253     case $cc_basename in
8254     nvcc*) # Cuda Compiler Driver 2.2
8255       lt_prog_compiler_wl='-Xlinker '
8256       if test -n "$lt_prog_compiler_pic"; then
8257         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8258       fi
8259       ;;
8260     esac
8261   else
8262     # PORTME Check for flag to pass linker flags through the system compiler.
8263     case $host_os in
8264     aix*)
8265       lt_prog_compiler_wl='-Wl,'
8266       if test "$host_cpu" = ia64; then
8267         # AIX 5 now supports IA64 processor
8268         lt_prog_compiler_static='-Bstatic'
8269       else
8270         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8271       fi
8272       ;;
8273
8274     mingw* | cygwin* | pw32* | os2* | cegcc*)
8275       # This hack is so that the source file can tell whether it is being
8276       # built for inclusion in a dll (and should export symbols for example).
8277       lt_prog_compiler_pic='-DDLL_EXPORT'
8278       ;;
8279
8280     hpux9* | hpux10* | hpux11*)
8281       lt_prog_compiler_wl='-Wl,'
8282       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8283       # not for PA HP-UX.
8284       case $host_cpu in
8285       hppa*64*|ia64*)
8286         # +Z the default
8287         ;;
8288       *)
8289         lt_prog_compiler_pic='+Z'
8290         ;;
8291       esac
8292       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8293       lt_prog_compiler_static='${wl}-a ${wl}archive'
8294       ;;
8295
8296     irix5* | irix6* | nonstopux*)
8297       lt_prog_compiler_wl='-Wl,'
8298       # PIC (with -KPIC) is the default.
8299       lt_prog_compiler_static='-non_shared'
8300       ;;
8301
8302     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8303       case $cc_basename in
8304       # old Intel for x86_64 which still supported -KPIC.
8305       ecc*)
8306         lt_prog_compiler_wl='-Wl,'
8307         lt_prog_compiler_pic='-KPIC'
8308         lt_prog_compiler_static='-static'
8309         ;;
8310       # icc used to be incompatible with GCC.
8311       # ICC 10 doesn't accept -KPIC any more.
8312       icc* | ifort*)
8313         lt_prog_compiler_wl='-Wl,'
8314         lt_prog_compiler_pic='-fPIC'
8315         lt_prog_compiler_static='-static'
8316         ;;
8317       # Lahey Fortran 8.1.
8318       lf95*)
8319         lt_prog_compiler_wl='-Wl,'
8320         lt_prog_compiler_pic='--shared'
8321         lt_prog_compiler_static='--static'
8322         ;;
8323       nagfor*)
8324         # NAG Fortran compiler
8325         lt_prog_compiler_wl='-Wl,-Wl,,'
8326         lt_prog_compiler_pic='-PIC'
8327         lt_prog_compiler_static='-Bstatic'
8328         ;;
8329       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8330         # Portland Group compilers (*not* the Pentium gcc compiler,
8331         # which looks to be a dead project)
8332         lt_prog_compiler_wl='-Wl,'
8333         lt_prog_compiler_pic='-fpic'
8334         lt_prog_compiler_static='-Bstatic'
8335         ;;
8336       ccc*)
8337         lt_prog_compiler_wl='-Wl,'
8338         # All Alpha code is PIC.
8339         lt_prog_compiler_static='-non_shared'
8340         ;;
8341       xl* | bgxl* | bgf* | mpixl*)
8342         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8343         lt_prog_compiler_wl='-Wl,'
8344         lt_prog_compiler_pic='-qpic'
8345         lt_prog_compiler_static='-qstaticlink'
8346         ;;
8347       *)
8348         case `$CC -V 2>&1 | sed 5q` in
8349         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8350           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8351           lt_prog_compiler_pic='-KPIC'
8352           lt_prog_compiler_static='-Bstatic'
8353           lt_prog_compiler_wl=''
8354           ;;
8355         *Sun\ F* | *Sun*Fortran*)
8356           lt_prog_compiler_pic='-KPIC'
8357           lt_prog_compiler_static='-Bstatic'
8358           lt_prog_compiler_wl='-Qoption ld '
8359           ;;
8360         *Sun\ C*)
8361           # Sun C 5.9
8362           lt_prog_compiler_pic='-KPIC'
8363           lt_prog_compiler_static='-Bstatic'
8364           lt_prog_compiler_wl='-Wl,'
8365           ;;
8366         *Intel*\ [CF]*Compiler*)
8367           lt_prog_compiler_wl='-Wl,'
8368           lt_prog_compiler_pic='-fPIC'
8369           lt_prog_compiler_static='-static'
8370           ;;
8371         *Portland\ Group*)
8372           lt_prog_compiler_wl='-Wl,'
8373           lt_prog_compiler_pic='-fpic'
8374           lt_prog_compiler_static='-Bstatic'
8375           ;;
8376         esac
8377         ;;
8378       esac
8379       ;;
8380
8381     newsos6)
8382       lt_prog_compiler_pic='-KPIC'
8383       lt_prog_compiler_static='-Bstatic'
8384       ;;
8385
8386     *nto* | *qnx*)
8387       # QNX uses GNU C++, but need to define -shared option too, otherwise
8388       # it will coredump.
8389       lt_prog_compiler_pic='-fPIC -shared'
8390       ;;
8391
8392     osf3* | osf4* | osf5*)
8393       lt_prog_compiler_wl='-Wl,'
8394       # All OSF/1 code is PIC.
8395       lt_prog_compiler_static='-non_shared'
8396       ;;
8397
8398     rdos*)
8399       lt_prog_compiler_static='-non_shared'
8400       ;;
8401
8402     solaris*)
8403       lt_prog_compiler_pic='-KPIC'
8404       lt_prog_compiler_static='-Bstatic'
8405       case $cc_basename in
8406       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8407         lt_prog_compiler_wl='-Qoption ld ';;
8408       *)
8409         lt_prog_compiler_wl='-Wl,';;
8410       esac
8411       ;;
8412
8413     sunos4*)
8414       lt_prog_compiler_wl='-Qoption ld '
8415       lt_prog_compiler_pic='-PIC'
8416       lt_prog_compiler_static='-Bstatic'
8417       ;;
8418
8419     sysv4 | sysv4.2uw2* | sysv4.3*)
8420       lt_prog_compiler_wl='-Wl,'
8421       lt_prog_compiler_pic='-KPIC'
8422       lt_prog_compiler_static='-Bstatic'
8423       ;;
8424
8425     sysv4*MP*)
8426       if test -d /usr/nec ;then
8427         lt_prog_compiler_pic='-Kconform_pic'
8428         lt_prog_compiler_static='-Bstatic'
8429       fi
8430       ;;
8431
8432     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8433       lt_prog_compiler_wl='-Wl,'
8434       lt_prog_compiler_pic='-KPIC'
8435       lt_prog_compiler_static='-Bstatic'
8436       ;;
8437
8438     unicos*)
8439       lt_prog_compiler_wl='-Wl,'
8440       lt_prog_compiler_can_build_shared=no
8441       ;;
8442
8443     uts4*)
8444       lt_prog_compiler_pic='-pic'
8445       lt_prog_compiler_static='-Bstatic'
8446       ;;
8447
8448     *)
8449       lt_prog_compiler_can_build_shared=no
8450       ;;
8451     esac
8452   fi
8453
8454 case $host_os in
8455   # For platforms which do not support PIC, -DPIC is meaningless:
8456   *djgpp*)
8457     lt_prog_compiler_pic=
8458     ;;
8459   *)
8460     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8461     ;;
8462 esac
8463
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8465 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8466 if ${lt_cv_prog_compiler_pic+:} false; then :
8467   $as_echo_n "(cached) " >&6
8468 else
8469   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8470 fi
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8472 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8473 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8474
8475 #
8476 # Check to make sure the PIC flag actually works.
8477 #
8478 if test -n "$lt_prog_compiler_pic"; then
8479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8480 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8481 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8482   $as_echo_n "(cached) " >&6
8483 else
8484   lt_cv_prog_compiler_pic_works=no
8485    ac_outfile=conftest.$ac_objext
8486    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8487    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8488    # Insert the option either (1) after the last *FLAGS variable, or
8489    # (2) before a word containing "conftest.", or (3) at the end.
8490    # Note that $ac_compile itself does not contain backslashes and begins
8491    # with a dollar sign (not a hyphen), so the echo should work correctly.
8492    # The option is referenced via a variable to avoid confusing sed.
8493    lt_compile=`echo "$ac_compile" | $SED \
8494    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8495    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8496    -e 's:$: $lt_compiler_flag:'`
8497    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8498    (eval "$lt_compile" 2>conftest.err)
8499    ac_status=$?
8500    cat conftest.err >&5
8501    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502    if (exit $ac_status) && test -s "$ac_outfile"; then
8503      # The compiler can only warn and ignore the option if not recognized
8504      # So say no if there are warnings other than the usual output.
8505      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8506      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8507      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8508        lt_cv_prog_compiler_pic_works=yes
8509      fi
8510    fi
8511    $RM conftest*
8512
8513 fi
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8515 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8516
8517 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8518     case $lt_prog_compiler_pic in
8519      "" | " "*) ;;
8520      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8521      esac
8522 else
8523     lt_prog_compiler_pic=
8524      lt_prog_compiler_can_build_shared=no
8525 fi
8526
8527 fi
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539 #
8540 # Check to make sure the static flag actually works.
8541 #
8542 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8544 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8545 if ${lt_cv_prog_compiler_static_works+:} false; then :
8546   $as_echo_n "(cached) " >&6
8547 else
8548   lt_cv_prog_compiler_static_works=no
8549    save_LDFLAGS="$LDFLAGS"
8550    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8551    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8552    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8553      # The linker can only warn and ignore the option if not recognized
8554      # So say no if there are warnings
8555      if test -s conftest.err; then
8556        # Append any errors to the config.log.
8557        cat conftest.err 1>&5
8558        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8559        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560        if diff conftest.exp conftest.er2 >/dev/null; then
8561          lt_cv_prog_compiler_static_works=yes
8562        fi
8563      else
8564        lt_cv_prog_compiler_static_works=yes
8565      fi
8566    fi
8567    $RM -r conftest*
8568    LDFLAGS="$save_LDFLAGS"
8569
8570 fi
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8572 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8573
8574 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8575     :
8576 else
8577     lt_prog_compiler_static=
8578 fi
8579
8580
8581
8582
8583
8584
8585
8586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8587 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8588 if ${lt_cv_prog_compiler_c_o+:} false; then :
8589   $as_echo_n "(cached) " >&6
8590 else
8591   lt_cv_prog_compiler_c_o=no
8592    $RM -r conftest 2>/dev/null
8593    mkdir conftest
8594    cd conftest
8595    mkdir out
8596    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8597
8598    lt_compiler_flag="-o out/conftest2.$ac_objext"
8599    # Insert the option either (1) after the last *FLAGS variable, or
8600    # (2) before a word containing "conftest.", or (3) at the end.
8601    # Note that $ac_compile itself does not contain backslashes and begins
8602    # with a dollar sign (not a hyphen), so the echo should work correctly.
8603    lt_compile=`echo "$ac_compile" | $SED \
8604    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8605    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8606    -e 's:$: $lt_compiler_flag:'`
8607    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8608    (eval "$lt_compile" 2>out/conftest.err)
8609    ac_status=$?
8610    cat out/conftest.err >&5
8611    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8613    then
8614      # The compiler can only warn and ignore the option if not recognized
8615      # So say no if there are warnings
8616      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8617      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8618      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8619        lt_cv_prog_compiler_c_o=yes
8620      fi
8621    fi
8622    chmod u+w . 2>&5
8623    $RM conftest*
8624    # SGI C++ compiler will create directory out/ii_files/ for
8625    # template instantiation
8626    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8627    $RM out/* && rmdir out
8628    cd ..
8629    $RM -r conftest
8630    $RM conftest*
8631
8632 fi
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8634 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8635
8636
8637
8638
8639
8640
8641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8642 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8643 if ${lt_cv_prog_compiler_c_o+:} false; then :
8644   $as_echo_n "(cached) " >&6
8645 else
8646   lt_cv_prog_compiler_c_o=no
8647    $RM -r conftest 2>/dev/null
8648    mkdir conftest
8649    cd conftest
8650    mkdir out
8651    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8652
8653    lt_compiler_flag="-o out/conftest2.$ac_objext"
8654    # Insert the option either (1) after the last *FLAGS variable, or
8655    # (2) before a word containing "conftest.", or (3) at the end.
8656    # Note that $ac_compile itself does not contain backslashes and begins
8657    # with a dollar sign (not a hyphen), so the echo should work correctly.
8658    lt_compile=`echo "$ac_compile" | $SED \
8659    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8660    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8661    -e 's:$: $lt_compiler_flag:'`
8662    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8663    (eval "$lt_compile" 2>out/conftest.err)
8664    ac_status=$?
8665    cat out/conftest.err >&5
8666    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8668    then
8669      # The compiler can only warn and ignore the option if not recognized
8670      # So say no if there are warnings
8671      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8672      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8673      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8674        lt_cv_prog_compiler_c_o=yes
8675      fi
8676    fi
8677    chmod u+w . 2>&5
8678    $RM conftest*
8679    # SGI C++ compiler will create directory out/ii_files/ for
8680    # template instantiation
8681    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8682    $RM out/* && rmdir out
8683    cd ..
8684    $RM -r conftest
8685    $RM conftest*
8686
8687 fi
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8689 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8690
8691
8692
8693
8694 hard_links="nottested"
8695 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8696   # do not overwrite the value of need_locks provided by the user
8697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8698 $as_echo_n "checking if we can lock with hard links... " >&6; }
8699   hard_links=yes
8700   $RM conftest*
8701   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8702   touch conftest.a
8703   ln conftest.a conftest.b 2>&5 || hard_links=no
8704   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8706 $as_echo "$hard_links" >&6; }
8707   if test "$hard_links" = no; then
8708     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8709 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8710     need_locks=warn
8711   fi
8712 else
8713   need_locks=no
8714 fi
8715
8716
8717
8718
8719
8720
8721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8722 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8723
8724   runpath_var=
8725   allow_undefined_flag=
8726   always_export_symbols=no
8727   archive_cmds=
8728   archive_expsym_cmds=
8729   compiler_needs_object=no
8730   enable_shared_with_static_runtimes=no
8731   export_dynamic_flag_spec=
8732   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8733   hardcode_automatic=no
8734   hardcode_direct=no
8735   hardcode_direct_absolute=no
8736   hardcode_libdir_flag_spec=
8737   hardcode_libdir_separator=
8738   hardcode_minus_L=no
8739   hardcode_shlibpath_var=unsupported
8740   inherit_rpath=no
8741   link_all_deplibs=unknown
8742   module_cmds=
8743   module_expsym_cmds=
8744   old_archive_from_new_cmds=
8745   old_archive_from_expsyms_cmds=
8746   thread_safe_flag_spec=
8747   whole_archive_flag_spec=
8748   # include_expsyms should be a list of space-separated symbols to be *always*
8749   # included in the symbol list
8750   include_expsyms=
8751   # exclude_expsyms can be an extended regexp of symbols to exclude
8752   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8753   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8754   # as well as any symbol that contains `d'.
8755   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8756   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8757   # platforms (ab)use it in PIC code, but their linkers get confused if
8758   # the symbol is explicitly referenced.  Since portable code cannot
8759   # rely on this symbol name, it's probably fine to never include it in
8760   # preloaded symbol tables.
8761   # Exclude shared library initialization/finalization symbols.
8762   extract_expsyms_cmds=
8763
8764   case $host_os in
8765   cygwin* | mingw* | pw32* | cegcc*)
8766     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8767     # When not using gcc, we currently assume that we are using
8768     # Microsoft Visual C++.
8769     if test "$GCC" != yes; then
8770       with_gnu_ld=no
8771     fi
8772     ;;
8773   interix*)
8774     # we just hope/assume this is gcc and not c89 (= MSVC++)
8775     with_gnu_ld=yes
8776     ;;
8777   openbsd*)
8778     with_gnu_ld=no
8779     ;;
8780   esac
8781
8782   ld_shlibs=yes
8783
8784   # On some targets, GNU ld is compatible enough with the native linker
8785   # that we're better off using the native interface for both.
8786   lt_use_gnu_ld_interface=no
8787   if test "$with_gnu_ld" = yes; then
8788     case $host_os in
8789       aix*)
8790         # The AIX port of GNU ld has always aspired to compatibility
8791         # with the native linker.  However, as the warning in the GNU ld
8792         # block says, versions before 2.19.5* couldn't really create working
8793         # shared libraries, regardless of the interface used.
8794         case `$LD -v 2>&1` in
8795           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8796           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8797           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8798           *)
8799             lt_use_gnu_ld_interface=yes
8800             ;;
8801         esac
8802         ;;
8803       *)
8804         lt_use_gnu_ld_interface=yes
8805         ;;
8806     esac
8807   fi
8808
8809   if test "$lt_use_gnu_ld_interface" = yes; then
8810     # If archive_cmds runs LD, not CC, wlarc should be empty
8811     wlarc='${wl}'
8812
8813     # Set some defaults for GNU ld with shared library support. These
8814     # are reset later if shared libraries are not supported. Putting them
8815     # here allows them to be overridden if necessary.
8816     runpath_var=LD_RUN_PATH
8817     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8818     export_dynamic_flag_spec='${wl}--export-dynamic'
8819     # ancient GNU ld didn't support --whole-archive et. al.
8820     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8821       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8822     else
8823       whole_archive_flag_spec=
8824     fi
8825     supports_anon_versioning=no
8826     case `$LD -v 2>&1` in
8827       *GNU\ gold*) supports_anon_versioning=yes ;;
8828       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8829       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8830       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8831       *\ 2.11.*) ;; # other 2.11 versions
8832       *) supports_anon_versioning=yes ;;
8833     esac
8834
8835     # See if GNU ld supports shared libraries.
8836     case $host_os in
8837     aix[3-9]*)
8838       # On AIX/PPC, the GNU linker is very broken
8839       if test "$host_cpu" != ia64; then
8840         ld_shlibs=no
8841         cat <<_LT_EOF 1>&2
8842
8843 *** Warning: the GNU linker, at least up to release 2.19, is reported
8844 *** to be unable to reliably create shared libraries on AIX.
8845 *** Therefore, libtool is disabling shared libraries support.  If you
8846 *** really care for shared libraries, you may want to install binutils
8847 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8848 *** You will then need to restart the configuration process.
8849
8850 _LT_EOF
8851       fi
8852       ;;
8853
8854     amigaos*)
8855       case $host_cpu in
8856       powerpc)
8857             # see comment about AmigaOS4 .so support
8858             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859             archive_expsym_cmds=''
8860         ;;
8861       m68k)
8862             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)'
8863             hardcode_libdir_flag_spec='-L$libdir'
8864             hardcode_minus_L=yes
8865         ;;
8866       esac
8867       ;;
8868
8869     beos*)
8870       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8871         allow_undefined_flag=unsupported
8872         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8873         # support --undefined.  This deserves some investigation.  FIXME
8874         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8875       else
8876         ld_shlibs=no
8877       fi
8878       ;;
8879
8880     cygwin* | mingw* | pw32* | cegcc*)
8881       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8882       # as there is no search path for DLLs.
8883       hardcode_libdir_flag_spec='-L$libdir'
8884       export_dynamic_flag_spec='${wl}--export-all-symbols'
8885       allow_undefined_flag=unsupported
8886       always_export_symbols=no
8887       enable_shared_with_static_runtimes=yes
8888       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'
8889       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8890
8891       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8892         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8893         # If the export-symbols file already is a .def file (1st line
8894         # is EXPORTS), use it as is; otherwise, prepend...
8895         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8896           cp $export_symbols $output_objdir/$soname.def;
8897         else
8898           echo EXPORTS > $output_objdir/$soname.def;
8899           cat $export_symbols >> $output_objdir/$soname.def;
8900         fi~
8901         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8902       else
8903         ld_shlibs=no
8904       fi
8905       ;;
8906
8907     haiku*)
8908       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8909       link_all_deplibs=yes
8910       ;;
8911
8912     interix[3-9]*)
8913       hardcode_direct=no
8914       hardcode_shlibpath_var=no
8915       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916       export_dynamic_flag_spec='${wl}-E'
8917       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8918       # Instead, shared libraries are loaded at an image base (0x10000000 by
8919       # default) and relocated if they conflict, which is a slow very memory
8920       # consuming and fragmenting process.  To avoid this, we pick a random,
8921       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8922       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8923       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8924       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'
8925       ;;
8926
8927     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8928       tmp_diet=no
8929       if test "$host_os" = linux-dietlibc; then
8930         case $cc_basename in
8931           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8932         esac
8933       fi
8934       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8935          && test "$tmp_diet" = no
8936       then
8937         tmp_addflag=' $pic_flag'
8938         tmp_sharedflag='-shared'
8939         case $cc_basename,$host_cpu in
8940         pgcc*)                          # Portland Group C compiler
8941           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'
8942           tmp_addflag=' $pic_flag'
8943           ;;
8944         pgf77* | pgf90* | pgf95* | pgfortran*)
8945                                         # Portland Group f77 and f90 compilers
8946           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'
8947           tmp_addflag=' $pic_flag -Mnomain' ;;
8948         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8949           tmp_addflag=' -i_dynamic' ;;
8950         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8951           tmp_addflag=' -i_dynamic -nofor_main' ;;
8952         ifc* | ifort*)                  # Intel Fortran compiler
8953           tmp_addflag=' -nofor_main' ;;
8954         lf95*)                          # Lahey Fortran 8.1
8955           whole_archive_flag_spec=
8956           tmp_sharedflag='--shared' ;;
8957         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8958           tmp_sharedflag='-qmkshrobj'
8959           tmp_addflag= ;;
8960         nvcc*)  # Cuda Compiler Driver 2.2
8961           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'
8962           compiler_needs_object=yes
8963           ;;
8964         esac
8965         case `$CC -V 2>&1 | sed 5q` in
8966         *Sun\ C*)                       # Sun C 5.9
8967           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'
8968           compiler_needs_object=yes
8969           tmp_sharedflag='-G' ;;
8970         *Sun\ F*)                       # Sun Fortran 8.3
8971           tmp_sharedflag='-G' ;;
8972         esac
8973         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974
8975         if test "x$supports_anon_versioning" = xyes; then
8976           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8977             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8978             echo "local: *; };" >> $output_objdir/$libname.ver~
8979             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8980         fi
8981
8982         case $cc_basename in
8983         xlf* | bgf* | bgxlf* | mpixlf*)
8984           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8985           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8986           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8987           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8988           if test "x$supports_anon_versioning" = xyes; then
8989             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8990               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8991               echo "local: *; };" >> $output_objdir/$libname.ver~
8992               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8993           fi
8994           ;;
8995         esac
8996       else
8997         ld_shlibs=no
8998       fi
8999       ;;
9000
9001     netbsd*)
9002       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9003         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9004         wlarc=
9005       else
9006         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9007         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9008       fi
9009       ;;
9010
9011     solaris*)
9012       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9013         ld_shlibs=no
9014         cat <<_LT_EOF 1>&2
9015
9016 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9017 *** create shared libraries on Solaris systems.  Therefore, libtool
9018 *** is disabling shared libraries support.  We urge you to upgrade GNU
9019 *** binutils to release 2.9.1 or newer.  Another option is to modify
9020 *** your PATH or compiler configuration so that the native linker is
9021 *** used, and then restart.
9022
9023 _LT_EOF
9024       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9025         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9026         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9027       else
9028         ld_shlibs=no
9029       fi
9030       ;;
9031
9032     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9033       case `$LD -v 2>&1` in
9034         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9035         ld_shlibs=no
9036         cat <<_LT_EOF 1>&2
9037
9038 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9039 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9040 *** is disabling shared libraries support.  We urge you to upgrade GNU
9041 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9042 *** your PATH or compiler configuration so that the native linker is
9043 *** used, and then restart.
9044
9045 _LT_EOF
9046         ;;
9047         *)
9048           # For security reasons, it is highly recommended that you always
9049           # use absolute paths for naming shared libraries, and exclude the
9050           # DT_RUNPATH tag from executables and libraries.  But doing so
9051           # requires that you compile everything twice, which is a pain.
9052           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9053             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9054             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9055             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9056           else
9057             ld_shlibs=no
9058           fi
9059         ;;
9060       esac
9061       ;;
9062
9063     sunos4*)
9064       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9065       wlarc=
9066       hardcode_direct=yes
9067       hardcode_shlibpath_var=no
9068       ;;
9069
9070     *)
9071       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9072         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9073         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9074       else
9075         ld_shlibs=no
9076       fi
9077       ;;
9078     esac
9079
9080     if test "$ld_shlibs" = no; then
9081       runpath_var=
9082       hardcode_libdir_flag_spec=
9083       export_dynamic_flag_spec=
9084       whole_archive_flag_spec=
9085     fi
9086   else
9087     # PORTME fill in a description of your system's linker (not GNU ld)
9088     case $host_os in
9089     aix3*)
9090       allow_undefined_flag=unsupported
9091       always_export_symbols=yes
9092       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'
9093       # Note: this linker hardcodes the directories in LIBPATH if there
9094       # are no directories specified by -L.
9095       hardcode_minus_L=yes
9096       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9097         # Neither direct hardcoding nor static linking is supported with a
9098         # broken collect2.
9099         hardcode_direct=unsupported
9100       fi
9101       ;;
9102
9103     aix[4-9]*)
9104       if test "$host_cpu" = ia64; then
9105         # On IA64, the linker does run time linking by default, so we don't
9106         # have to do anything special.
9107         aix_use_runtimelinking=no
9108         exp_sym_flag='-Bexport'
9109         no_entry_flag=""
9110       else
9111         # If we're using GNU nm, then we don't want the "-C" option.
9112         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9113         # Also, AIX nm treats weak defined symbols like other global
9114         # defined symbols, whereas GNU nm marks them as "W".
9115         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9116           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'
9117         else
9118           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'
9119         fi
9120         aix_use_runtimelinking=no
9121
9122         # Test if we are trying to use run time linking or normal
9123         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9124         # need to do runtime linking.
9125         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9126           for ld_flag in $LDFLAGS; do
9127           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9128             aix_use_runtimelinking=yes
9129             break
9130           fi
9131           done
9132           ;;
9133         esac
9134
9135         exp_sym_flag='-bexport'
9136         no_entry_flag='-bnoentry'
9137       fi
9138
9139       # When large executables or shared objects are built, AIX ld can
9140       # have problems creating the table of contents.  If linking a library
9141       # or program results in "error TOC overflow" add -mminimal-toc to
9142       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9143       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9144
9145       archive_cmds=''
9146       hardcode_direct=yes
9147       hardcode_direct_absolute=yes
9148       hardcode_libdir_separator=':'
9149       link_all_deplibs=yes
9150       file_list_spec='${wl}-f,'
9151
9152       if test "$GCC" = yes; then
9153         case $host_os in aix4.[012]|aix4.[012].*)
9154         # We only want to do this on AIX 4.2 and lower, the check
9155         # below for broken collect2 doesn't work under 4.3+
9156           collect2name=`${CC} -print-prog-name=collect2`
9157           if test -f "$collect2name" &&
9158            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9159           then
9160           # We have reworked collect2
9161           :
9162           else
9163           # We have old collect2
9164           hardcode_direct=unsupported
9165           # It fails to find uninstalled libraries when the uninstalled
9166           # path is not listed in the libpath.  Setting hardcode_minus_L
9167           # to unsupported forces relinking
9168           hardcode_minus_L=yes
9169           hardcode_libdir_flag_spec='-L$libdir'
9170           hardcode_libdir_separator=
9171           fi
9172           ;;
9173         esac
9174         shared_flag='-shared'
9175         if test "$aix_use_runtimelinking" = yes; then
9176           shared_flag="$shared_flag "'${wl}-G'
9177         fi
9178       else
9179         # not using gcc
9180         if test "$host_cpu" = ia64; then
9181         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9182         # chokes on -Wl,-G. The following line is correct:
9183           shared_flag='-G'
9184         else
9185           if test "$aix_use_runtimelinking" = yes; then
9186             shared_flag='${wl}-G'
9187           else
9188             shared_flag='${wl}-bM:SRE'
9189           fi
9190         fi
9191       fi
9192
9193       export_dynamic_flag_spec='${wl}-bexpall'
9194       # It seems that -bexpall does not export symbols beginning with
9195       # underscore (_), so it is better to generate a list of symbols to export.
9196       always_export_symbols=yes
9197       if test "$aix_use_runtimelinking" = yes; then
9198         # Warning - without using the other runtime loading flags (-brtl),
9199         # -berok will link without error, but may produce a broken library.
9200         allow_undefined_flag='-berok'
9201         # Determine the default libpath from the value encoded in an
9202         # empty executable.
9203         if test "${lt_cv_aix_libpath+set}" = set; then
9204   aix_libpath=$lt_cv_aix_libpath
9205 else
9206   if ${lt_cv_aix_libpath_+:} false; then :
9207   $as_echo_n "(cached) " >&6
9208 else
9209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h.  */
9211
9212 int
9213 main ()
9214 {
9215
9216   ;
9217   return 0;
9218 }
9219 _ACEOF
9220 if ac_fn_c_try_link "$LINENO"; then :
9221
9222   lt_aix_libpath_sed='
9223       /Import File Strings/,/^$/ {
9224           /^0/ {
9225               s/^0  *\([^ ]*\) *$/\1/
9226               p
9227           }
9228       }'
9229   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230   # Check for a 64-bit object if we didn't find anything.
9231   if test -z "$lt_cv_aix_libpath_"; then
9232     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9233   fi
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext \
9236     conftest$ac_exeext conftest.$ac_ext
9237   if test -z "$lt_cv_aix_libpath_"; then
9238     lt_cv_aix_libpath_="/usr/lib:/lib"
9239   fi
9240
9241 fi
9242
9243   aix_libpath=$lt_cv_aix_libpath_
9244 fi
9245
9246         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9247         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"
9248       else
9249         if test "$host_cpu" = ia64; then
9250           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9251           allow_undefined_flag="-z nodefs"
9252           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"
9253         else
9254          # Determine the default libpath from the value encoded in an
9255          # empty executable.
9256          if test "${lt_cv_aix_libpath+set}" = set; then
9257   aix_libpath=$lt_cv_aix_libpath
9258 else
9259   if ${lt_cv_aix_libpath_+:} false; then :
9260   $as_echo_n "(cached) " >&6
9261 else
9262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h.  */
9264
9265 int
9266 main ()
9267 {
9268
9269   ;
9270   return 0;
9271 }
9272 _ACEOF
9273 if ac_fn_c_try_link "$LINENO"; then :
9274
9275   lt_aix_libpath_sed='
9276       /Import File Strings/,/^$/ {
9277           /^0/ {
9278               s/^0  *\([^ ]*\) *$/\1/
9279               p
9280           }
9281       }'
9282   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9283   # Check for a 64-bit object if we didn't find anything.
9284   if test -z "$lt_cv_aix_libpath_"; then
9285     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9286   fi
9287 fi
9288 rm -f core conftest.err conftest.$ac_objext \
9289     conftest$ac_exeext conftest.$ac_ext
9290   if test -z "$lt_cv_aix_libpath_"; then
9291     lt_cv_aix_libpath_="/usr/lib:/lib"
9292   fi
9293
9294 fi
9295
9296   aix_libpath=$lt_cv_aix_libpath_
9297 fi
9298
9299          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9300           # Warning - without using the other run time loading flags,
9301           # -berok will link without error, but may produce a broken library.
9302           no_undefined_flag=' ${wl}-bernotok'
9303           allow_undefined_flag=' ${wl}-berok'
9304           if test "$with_gnu_ld" = yes; then
9305             # We only use this code for GNU lds that support --whole-archive.
9306             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9307           else
9308             # Exported symbols can be pulled into shared objects from archives
9309             whole_archive_flag_spec='$convenience'
9310           fi
9311           archive_cmds_need_lc=yes
9312           # This is similar to how AIX traditionally builds its shared libraries.
9313           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'
9314         fi
9315       fi
9316       ;;
9317
9318     amigaos*)
9319       case $host_cpu in
9320       powerpc)
9321             # see comment about AmigaOS4 .so support
9322             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323             archive_expsym_cmds=''
9324         ;;
9325       m68k)
9326             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)'
9327             hardcode_libdir_flag_spec='-L$libdir'
9328             hardcode_minus_L=yes
9329         ;;
9330       esac
9331       ;;
9332
9333     bsdi[45]*)
9334       export_dynamic_flag_spec=-rdynamic
9335       ;;
9336
9337     cygwin* | mingw* | pw32* | cegcc*)
9338       # When not using gcc, we currently assume that we are using
9339       # Microsoft Visual C++.
9340       # hardcode_libdir_flag_spec is actually meaningless, as there is
9341       # no search path for DLLs.
9342       case $cc_basename in
9343       cl*)
9344         # Native MSVC
9345         hardcode_libdir_flag_spec=' '
9346         allow_undefined_flag=unsupported
9347         always_export_symbols=yes
9348         file_list_spec='@'
9349         # Tell ltmain to make .lib files, not .a files.
9350         libext=lib
9351         # Tell ltmain to make .dll files, not .so files.
9352         shrext_cmds=".dll"
9353         # FIXME: Setting linknames here is a bad hack.
9354         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9355         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9356             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9357           else
9358             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9359           fi~
9360           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9361           linknames='
9362         # The linker will not automatically build a static lib if we build a DLL.
9363         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9364         enable_shared_with_static_runtimes=yes
9365         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9366         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9367         # Don't use ranlib
9368         old_postinstall_cmds='chmod 644 $oldlib'
9369         postlink_cmds='lt_outputfile="@OUTPUT@"~
9370           lt_tool_outputfile="@TOOL_OUTPUT@"~
9371           case $lt_outputfile in
9372             *.exe|*.EXE) ;;
9373             *)
9374               lt_outputfile="$lt_outputfile.exe"
9375               lt_tool_outputfile="$lt_tool_outputfile.exe"
9376               ;;
9377           esac~
9378           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9379             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9380             $RM "$lt_outputfile.manifest";
9381           fi'
9382         ;;
9383       *)
9384         # Assume MSVC wrapper
9385         hardcode_libdir_flag_spec=' '
9386         allow_undefined_flag=unsupported
9387         # Tell ltmain to make .lib files, not .a files.
9388         libext=lib
9389         # Tell ltmain to make .dll files, not .so files.
9390         shrext_cmds=".dll"
9391         # FIXME: Setting linknames here is a bad hack.
9392         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9393         # The linker will automatically build a .lib file if we build a DLL.
9394         old_archive_from_new_cmds='true'
9395         # FIXME: Should let the user specify the lib program.
9396         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9397         enable_shared_with_static_runtimes=yes
9398         ;;
9399       esac
9400       ;;
9401
9402     darwin* | rhapsody*)
9403
9404
9405   archive_cmds_need_lc=no
9406   hardcode_direct=no
9407   hardcode_automatic=yes
9408   hardcode_shlibpath_var=unsupported
9409   if test "$lt_cv_ld_force_load" = "yes"; then
9410     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\"`'
9411
9412   else
9413     whole_archive_flag_spec=''
9414   fi
9415   link_all_deplibs=yes
9416   allow_undefined_flag="$_lt_dar_allow_undefined"
9417   case $cc_basename in
9418      ifort*) _lt_dar_can_shared=yes ;;
9419      *) _lt_dar_can_shared=$GCC ;;
9420   esac
9421   if test "$_lt_dar_can_shared" = "yes"; then
9422     output_verbose_link_cmd=func_echo_all
9423     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9424     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9425     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}"
9426     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}"
9427
9428   else
9429   ld_shlibs=no
9430   fi
9431
9432       ;;
9433
9434     dgux*)
9435       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436       hardcode_libdir_flag_spec='-L$libdir'
9437       hardcode_shlibpath_var=no
9438       ;;
9439
9440     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9441     # support.  Future versions do this automatically, but an explicit c++rt0.o
9442     # does not break anything, and helps significantly (at the cost of a little
9443     # extra space).
9444     freebsd2.2*)
9445       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9446       hardcode_libdir_flag_spec='-R$libdir'
9447       hardcode_direct=yes
9448       hardcode_shlibpath_var=no
9449       ;;
9450
9451     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9452     freebsd2.*)
9453       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9454       hardcode_direct=yes
9455       hardcode_minus_L=yes
9456       hardcode_shlibpath_var=no
9457       ;;
9458
9459     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9460     freebsd* | dragonfly*)
9461       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9462       hardcode_libdir_flag_spec='-R$libdir'
9463       hardcode_direct=yes
9464       hardcode_shlibpath_var=no
9465       ;;
9466
9467     hpux9*)
9468       if test "$GCC" = yes; then
9469         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'
9470       else
9471         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'
9472       fi
9473       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9474       hardcode_libdir_separator=:
9475       hardcode_direct=yes
9476
9477       # hardcode_minus_L: Not really in the search PATH,
9478       # but as the default location of the library.
9479       hardcode_minus_L=yes
9480       export_dynamic_flag_spec='${wl}-E'
9481       ;;
9482
9483     hpux10*)
9484       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9485         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9486       else
9487         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9488       fi
9489       if test "$with_gnu_ld" = no; then
9490         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9491         hardcode_libdir_separator=:
9492         hardcode_direct=yes
9493         hardcode_direct_absolute=yes
9494         export_dynamic_flag_spec='${wl}-E'
9495         # hardcode_minus_L: Not really in the search PATH,
9496         # but as the default location of the library.
9497         hardcode_minus_L=yes
9498       fi
9499       ;;
9500
9501     hpux11*)
9502       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9503         case $host_cpu in
9504         hppa*64*)
9505           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9506           ;;
9507         ia64*)
9508           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9509           ;;
9510         *)
9511           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9512           ;;
9513         esac
9514       else
9515         case $host_cpu in
9516         hppa*64*)
9517           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9518           ;;
9519         ia64*)
9520           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9521           ;;
9522         *)
9523
9524           # Older versions of the 11.00 compiler do not understand -b yet
9525           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9526           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9527 $as_echo_n "checking if $CC understands -b... " >&6; }
9528 if ${lt_cv_prog_compiler__b+:} false; then :
9529   $as_echo_n "(cached) " >&6
9530 else
9531   lt_cv_prog_compiler__b=no
9532    save_LDFLAGS="$LDFLAGS"
9533    LDFLAGS="$LDFLAGS -b"
9534    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9535    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9536      # The linker can only warn and ignore the option if not recognized
9537      # So say no if there are warnings
9538      if test -s conftest.err; then
9539        # Append any errors to the config.log.
9540        cat conftest.err 1>&5
9541        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9542        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9543        if diff conftest.exp conftest.er2 >/dev/null; then
9544          lt_cv_prog_compiler__b=yes
9545        fi
9546      else
9547        lt_cv_prog_compiler__b=yes
9548      fi
9549    fi
9550    $RM -r conftest*
9551    LDFLAGS="$save_LDFLAGS"
9552
9553 fi
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9555 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9556
9557 if test x"$lt_cv_prog_compiler__b" = xyes; then
9558     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9559 else
9560     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9561 fi
9562
9563           ;;
9564         esac
9565       fi
9566       if test "$with_gnu_ld" = no; then
9567         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9568         hardcode_libdir_separator=:
9569
9570         case $host_cpu in
9571         hppa*64*|ia64*)
9572           hardcode_direct=no
9573           hardcode_shlibpath_var=no
9574           ;;
9575         *)
9576           hardcode_direct=yes
9577           hardcode_direct_absolute=yes
9578           export_dynamic_flag_spec='${wl}-E'
9579
9580           # hardcode_minus_L: Not really in the search PATH,
9581           # but as the default location of the library.
9582           hardcode_minus_L=yes
9583           ;;
9584         esac
9585       fi
9586       ;;
9587
9588     irix5* | irix6* | nonstopux*)
9589       if test "$GCC" = yes; then
9590         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'
9591         # Try to use the -exported_symbol ld option, if it does not
9592         # work, assume that -exports_file does not work either and
9593         # implicitly export all symbols.
9594         # This should be the same for all languages, so no per-tag cache variable.
9595         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9596 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9597 if ${lt_cv_irix_exported_symbol+:} false; then :
9598   $as_echo_n "(cached) " >&6
9599 else
9600   save_LDFLAGS="$LDFLAGS"
9601            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9602            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h.  */
9604 int foo (void) { return 0; }
9605 _ACEOF
9606 if ac_fn_c_try_link "$LINENO"; then :
9607   lt_cv_irix_exported_symbol=yes
9608 else
9609   lt_cv_irix_exported_symbol=no
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext \
9612     conftest$ac_exeext conftest.$ac_ext
9613            LDFLAGS="$save_LDFLAGS"
9614 fi
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9616 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9617         if test "$lt_cv_irix_exported_symbol" = yes; then
9618           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'
9619         fi
9620       else
9621         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'
9622         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'
9623       fi
9624       archive_cmds_need_lc='no'
9625       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9626       hardcode_libdir_separator=:
9627       inherit_rpath=yes
9628       link_all_deplibs=yes
9629       ;;
9630
9631     netbsd*)
9632       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9633         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9634       else
9635         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9636       fi
9637       hardcode_libdir_flag_spec='-R$libdir'
9638       hardcode_direct=yes
9639       hardcode_shlibpath_var=no
9640       ;;
9641
9642     newsos6)
9643       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644       hardcode_direct=yes
9645       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9646       hardcode_libdir_separator=:
9647       hardcode_shlibpath_var=no
9648       ;;
9649
9650     *nto* | *qnx*)
9651       ;;
9652
9653     openbsd*)
9654       if test -f /usr/libexec/ld.so; then
9655         hardcode_direct=yes
9656         hardcode_shlibpath_var=no
9657         hardcode_direct_absolute=yes
9658         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9659           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9660           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9661           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9662           export_dynamic_flag_spec='${wl}-E'
9663         else
9664           case $host_os in
9665            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9666              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9667              hardcode_libdir_flag_spec='-R$libdir'
9668              ;;
9669            *)
9670              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9671              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9672              ;;
9673           esac
9674         fi
9675       else
9676         ld_shlibs=no
9677       fi
9678       ;;
9679
9680     os2*)
9681       hardcode_libdir_flag_spec='-L$libdir'
9682       hardcode_minus_L=yes
9683       allow_undefined_flag=unsupported
9684       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'
9685       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9686       ;;
9687
9688     osf3*)
9689       if test "$GCC" = yes; then
9690         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9691         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'
9692       else
9693         allow_undefined_flag=' -expect_unresolved \*'
9694         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'
9695       fi
9696       archive_cmds_need_lc='no'
9697       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9698       hardcode_libdir_separator=:
9699       ;;
9700
9701     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9702       if test "$GCC" = yes; then
9703         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9704         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'
9705         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9706       else
9707         allow_undefined_flag=' -expect_unresolved \*'
9708         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'
9709         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~
9710         $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'
9711
9712         # Both c and cxx compiler support -rpath directly
9713         hardcode_libdir_flag_spec='-rpath $libdir'
9714       fi
9715       archive_cmds_need_lc='no'
9716       hardcode_libdir_separator=:
9717       ;;
9718
9719     solaris*)
9720       no_undefined_flag=' -z defs'
9721       if test "$GCC" = yes; then
9722         wlarc='${wl}'
9723         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9724         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9725           $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'
9726       else
9727         case `$CC -V 2>&1` in
9728         *"Compilers 5.0"*)
9729           wlarc=''
9730           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9732           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9733           ;;
9734         *)
9735           wlarc='${wl}'
9736           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9737           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9738           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9739           ;;
9740         esac
9741       fi
9742       hardcode_libdir_flag_spec='-R$libdir'
9743       hardcode_shlibpath_var=no
9744       case $host_os in
9745       solaris2.[0-5] | solaris2.[0-5].*) ;;
9746       *)
9747         # The compiler driver will combine and reorder linker options,
9748         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9749         # but is careful enough not to reorder.
9750         # Supported since Solaris 2.6 (maybe 2.5.1?)
9751         if test "$GCC" = yes; then
9752           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9753         else
9754           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9755         fi
9756         ;;
9757       esac
9758       link_all_deplibs=yes
9759       ;;
9760
9761     sunos4*)
9762       if test "x$host_vendor" = xsequent; then
9763         # Use $CC to link under sequent, because it throws in some extra .o
9764         # files that make .init and .fini sections work.
9765         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9766       else
9767         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9768       fi
9769       hardcode_libdir_flag_spec='-L$libdir'
9770       hardcode_direct=yes
9771       hardcode_minus_L=yes
9772       hardcode_shlibpath_var=no
9773       ;;
9774
9775     sysv4)
9776       case $host_vendor in
9777         sni)
9778           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779           hardcode_direct=yes # is this really true???
9780         ;;
9781         siemens)
9782           ## LD is ld it makes a PLAMLIB
9783           ## CC just makes a GrossModule.
9784           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9785           reload_cmds='$CC -r -o $output$reload_objs'
9786           hardcode_direct=no
9787         ;;
9788         motorola)
9789           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9790           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9791         ;;
9792       esac
9793       runpath_var='LD_RUN_PATH'
9794       hardcode_shlibpath_var=no
9795       ;;
9796
9797     sysv4.3*)
9798       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799       hardcode_shlibpath_var=no
9800       export_dynamic_flag_spec='-Bexport'
9801       ;;
9802
9803     sysv4*MP*)
9804       if test -d /usr/nec; then
9805         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9806         hardcode_shlibpath_var=no
9807         runpath_var=LD_RUN_PATH
9808         hardcode_runpath_var=yes
9809         ld_shlibs=yes
9810       fi
9811       ;;
9812
9813     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9814       no_undefined_flag='${wl}-z,text'
9815       archive_cmds_need_lc=no
9816       hardcode_shlibpath_var=no
9817       runpath_var='LD_RUN_PATH'
9818
9819       if test "$GCC" = yes; then
9820         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9821         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822       else
9823         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9824         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9825       fi
9826       ;;
9827
9828     sysv5* | sco3.2v5* | sco5v6*)
9829       # Note: We can NOT use -z defs as we might desire, because we do not
9830       # link with -lc, and that would cause any symbols used from libc to
9831       # always be unresolved, which means just about no library would
9832       # ever link correctly.  If we're not using GNU ld we use -z text
9833       # though, which does catch some bad symbols but isn't as heavy-handed
9834       # as -z defs.
9835       no_undefined_flag='${wl}-z,text'
9836       allow_undefined_flag='${wl}-z,nodefs'
9837       archive_cmds_need_lc=no
9838       hardcode_shlibpath_var=no
9839       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9840       hardcode_libdir_separator=':'
9841       link_all_deplibs=yes
9842       export_dynamic_flag_spec='${wl}-Bexport'
9843       runpath_var='LD_RUN_PATH'
9844
9845       if test "$GCC" = yes; then
9846         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9847         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9848       else
9849         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9850         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9851       fi
9852       ;;
9853
9854     uts4*)
9855       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9856       hardcode_libdir_flag_spec='-L$libdir'
9857       hardcode_shlibpath_var=no
9858       ;;
9859
9860     *)
9861       ld_shlibs=no
9862       ;;
9863     esac
9864
9865     if test x$host_vendor = xsni; then
9866       case $host in
9867       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9868         export_dynamic_flag_spec='${wl}-Blargedynsym'
9869         ;;
9870       esac
9871     fi
9872   fi
9873
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9875 $as_echo "$ld_shlibs" >&6; }
9876 test "$ld_shlibs" = no && can_build_shared=no
9877
9878 with_gnu_ld=$with_gnu_ld
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894 #
9895 # Do we need to explicitly link libc?
9896 #
9897 case "x$archive_cmds_need_lc" in
9898 x|xyes)
9899   # Assume -lc should be added
9900   archive_cmds_need_lc=yes
9901
9902   if test "$enable_shared" = yes && test "$GCC" = yes; then
9903     case $archive_cmds in
9904     *'~'*)
9905       # FIXME: we may have to deal with multi-command sequences.
9906       ;;
9907     '$CC '*)
9908       # Test whether the compiler implicitly links with -lc since on some
9909       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9910       # to ld, don't add -lc before -lgcc.
9911       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9912 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9913 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9914   $as_echo_n "(cached) " >&6
9915 else
9916   $RM conftest*
9917         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9918
9919         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9920   (eval $ac_compile) 2>&5
9921   ac_status=$?
9922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9923   test $ac_status = 0; } 2>conftest.err; then
9924           soname=conftest
9925           lib=conftest
9926           libobjs=conftest.$ac_objext
9927           deplibs=
9928           wl=$lt_prog_compiler_wl
9929           pic_flag=$lt_prog_compiler_pic
9930           compiler_flags=-v
9931           linker_flags=-v
9932           verstring=
9933           output_objdir=.
9934           libname=conftest
9935           lt_save_allow_undefined_flag=$allow_undefined_flag
9936           allow_undefined_flag=
9937           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9938   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9939   ac_status=$?
9940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9941   test $ac_status = 0; }
9942           then
9943             lt_cv_archive_cmds_need_lc=no
9944           else
9945             lt_cv_archive_cmds_need_lc=yes
9946           fi
9947           allow_undefined_flag=$lt_save_allow_undefined_flag
9948         else
9949           cat conftest.err 1>&5
9950         fi
9951         $RM conftest*
9952
9953 fi
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9955 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9956       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9957       ;;
9958     esac
9959   fi
9960   ;;
9961 esac
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10115 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10116
10117 if test "$GCC" = yes; then
10118   case $host_os in
10119     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10120     *) lt_awk_arg="/^libraries:/" ;;
10121   esac
10122   case $host_os in
10123     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10124     *) lt_sed_strip_eq="s,=/,/,g" ;;
10125   esac
10126   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10127   case $lt_search_path_spec in
10128   *\;*)
10129     # if the path contains ";" then we assume it to be the separator
10130     # otherwise default to the standard path separator (i.e. ":") - it is
10131     # assumed that no part of a normal pathname contains ";" but that should
10132     # okay in the real world where ";" in dirpaths is itself problematic.
10133     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10134     ;;
10135   *)
10136     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10137     ;;
10138   esac
10139   # Ok, now we have the path, separated by spaces, we can step through it
10140   # and add multilib dir if necessary.
10141   lt_tmp_lt_search_path_spec=
10142   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10143   for lt_sys_path in $lt_search_path_spec; do
10144     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10145       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10146     else
10147       test -d "$lt_sys_path" && \
10148         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10149     fi
10150   done
10151   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10152 BEGIN {RS=" "; FS="/|\n";} {
10153   lt_foo="";
10154   lt_count=0;
10155   for (lt_i = NF; lt_i > 0; lt_i--) {
10156     if ($lt_i != "" && $lt_i != ".") {
10157       if ($lt_i == "..") {
10158         lt_count++;
10159       } else {
10160         if (lt_count == 0) {
10161           lt_foo="/" $lt_i lt_foo;
10162         } else {
10163           lt_count--;
10164         }
10165       }
10166     }
10167   }
10168   if (lt_foo != "") { lt_freq[lt_foo]++; }
10169   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10170 }'`
10171   # AWK program above erroneously prepends '/' to C:/dos/paths
10172   # for these hosts.
10173   case $host_os in
10174     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10175       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10176   esac
10177   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10178 else
10179   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10180 fi
10181 library_names_spec=
10182 libname_spec='lib$name'
10183 soname_spec=
10184 shrext_cmds=".so"
10185 postinstall_cmds=
10186 postuninstall_cmds=
10187 finish_cmds=
10188 finish_eval=
10189 shlibpath_var=
10190 shlibpath_overrides_runpath=unknown
10191 version_type=none
10192 dynamic_linker="$host_os ld.so"
10193 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10194 need_lib_prefix=unknown
10195 hardcode_into_libs=no
10196
10197 # when you set need_version to no, make sure it does not cause -set_version
10198 # flags to be left without arguments
10199 need_version=unknown
10200
10201 case $host_os in
10202 aix3*)
10203   version_type=linux # correct to gnu/linux during the next big refactor
10204   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10205   shlibpath_var=LIBPATH
10206
10207   # AIX 3 has no versioning support, so we append a major version to the name.
10208   soname_spec='${libname}${release}${shared_ext}$major'
10209   ;;
10210
10211 aix[4-9]*)
10212   version_type=linux # correct to gnu/linux during the next big refactor
10213   need_lib_prefix=no
10214   need_version=no
10215   hardcode_into_libs=yes
10216   if test "$host_cpu" = ia64; then
10217     # AIX 5 supports IA64
10218     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10219     shlibpath_var=LD_LIBRARY_PATH
10220   else
10221     # With GCC up to 2.95.x, collect2 would create an import file
10222     # for dependence libraries.  The import file would start with
10223     # the line `#! .'.  This would cause the generated library to
10224     # depend on `.', always an invalid library.  This was fixed in
10225     # development snapshots of GCC prior to 3.0.
10226     case $host_os in
10227       aix4 | aix4.[01] | aix4.[01].*)
10228       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10229            echo ' yes '
10230            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10231         :
10232       else
10233         can_build_shared=no
10234       fi
10235       ;;
10236     esac
10237     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10238     # soname into executable. Probably we can add versioning support to
10239     # collect2, so additional links can be useful in future.
10240     if test "$aix_use_runtimelinking" = yes; then
10241       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10242       # instead of lib<name>.a to let people know that these are not
10243       # typical AIX shared libraries.
10244       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10245     else
10246       # We preserve .a as extension for shared libraries through AIX4.2
10247       # and later when we are not doing run time linking.
10248       library_names_spec='${libname}${release}.a $libname.a'
10249       soname_spec='${libname}${release}${shared_ext}$major'
10250     fi
10251     shlibpath_var=LIBPATH
10252   fi
10253   ;;
10254
10255 amigaos*)
10256   case $host_cpu in
10257   powerpc)
10258     # Since July 2007 AmigaOS4 officially supports .so libraries.
10259     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261     ;;
10262   m68k)
10263     library_names_spec='$libname.ixlibrary $libname.a'
10264     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10265     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'
10266     ;;
10267   esac
10268   ;;
10269
10270 beos*)
10271   library_names_spec='${libname}${shared_ext}'
10272   dynamic_linker="$host_os ld.so"
10273   shlibpath_var=LIBRARY_PATH
10274   ;;
10275
10276 bsdi[45]*)
10277   version_type=linux # correct to gnu/linux during the next big refactor
10278   need_version=no
10279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280   soname_spec='${libname}${release}${shared_ext}$major'
10281   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10282   shlibpath_var=LD_LIBRARY_PATH
10283   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10284   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10285   # the default ld.so.conf also contains /usr/contrib/lib and
10286   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10287   # libtool to hard-code these into programs
10288   ;;
10289
10290 cygwin* | mingw* | pw32* | cegcc*)
10291   version_type=windows
10292   shrext_cmds=".dll"
10293   need_version=no
10294   need_lib_prefix=no
10295
10296   case $GCC,$cc_basename in
10297   yes,*)
10298     # gcc
10299     library_names_spec='$libname.dll.a'
10300     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10301     postinstall_cmds='base_file=`basename \${file}`~
10302       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10303       dldir=$destdir/`dirname \$dlpath`~
10304       test -d \$dldir || mkdir -p \$dldir~
10305       $install_prog $dir/$dlname \$dldir/$dlname~
10306       chmod a+x \$dldir/$dlname~
10307       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10308         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10309       fi'
10310     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10311       dlpath=$dir/\$dldll~
10312        $RM \$dlpath'
10313     shlibpath_overrides_runpath=yes
10314
10315     case $host_os in
10316     cygwin*)
10317       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10318       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10319
10320       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10321       ;;
10322     mingw* | cegcc*)
10323       # MinGW DLLs use traditional 'lib' prefix
10324       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10325       ;;
10326     pw32*)
10327       # pw32 DLLs use 'pw' prefix rather than 'lib'
10328       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10329       ;;
10330     esac
10331     dynamic_linker='Win32 ld.exe'
10332     ;;
10333
10334   *,cl*)
10335     # Native MSVC
10336     libname_spec='$name'
10337     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10338     library_names_spec='${libname}.dll.lib'
10339
10340     case $build_os in
10341     mingw*)
10342       sys_lib_search_path_spec=
10343       lt_save_ifs=$IFS
10344       IFS=';'
10345       for lt_path in $LIB
10346       do
10347         IFS=$lt_save_ifs
10348         # Let DOS variable expansion print the short 8.3 style file name.
10349         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10350         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10351       done
10352       IFS=$lt_save_ifs
10353       # Convert to MSYS style.
10354       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10355       ;;
10356     cygwin*)
10357       # Convert to unix form, then to dos form, then back to unix form
10358       # but this time dos style (no spaces!) so that the unix form looks
10359       # like /cygdrive/c/PROGRA~1:/cygdr...
10360       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10361       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10362       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10363       ;;
10364     *)
10365       sys_lib_search_path_spec="$LIB"
10366       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10367         # It is most probably a Windows format PATH.
10368         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10369       else
10370         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10371       fi
10372       # FIXME: find the short name or the path components, as spaces are
10373       # common. (e.g. "Program Files" -> "PROGRA~1")
10374       ;;
10375     esac
10376
10377     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10378     postinstall_cmds='base_file=`basename \${file}`~
10379       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10380       dldir=$destdir/`dirname \$dlpath`~
10381       test -d \$dldir || mkdir -p \$dldir~
10382       $install_prog $dir/$dlname \$dldir/$dlname'
10383     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10384       dlpath=$dir/\$dldll~
10385        $RM \$dlpath'
10386     shlibpath_overrides_runpath=yes
10387     dynamic_linker='Win32 link.exe'
10388     ;;
10389
10390   *)
10391     # Assume MSVC wrapper
10392     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10393     dynamic_linker='Win32 ld.exe'
10394     ;;
10395   esac
10396   # FIXME: first we should search . and the directory the executable is in
10397   shlibpath_var=PATH
10398   ;;
10399
10400 darwin* | rhapsody*)
10401   dynamic_linker="$host_os dyld"
10402   version_type=darwin
10403   need_lib_prefix=no
10404   need_version=no
10405   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10406   soname_spec='${libname}${release}${major}$shared_ext'
10407   shlibpath_overrides_runpath=yes
10408   shlibpath_var=DYLD_LIBRARY_PATH
10409   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10410
10411   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10412   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10413   ;;
10414
10415 dgux*)
10416   version_type=linux # correct to gnu/linux during the next big refactor
10417   need_lib_prefix=no
10418   need_version=no
10419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10420   soname_spec='${libname}${release}${shared_ext}$major'
10421   shlibpath_var=LD_LIBRARY_PATH
10422   ;;
10423
10424 freebsd* | dragonfly*)
10425   # DragonFly does not have aout.  When/if they implement a new
10426   # versioning mechanism, adjust this.
10427   if test -x /usr/bin/objformat; then
10428     objformat=`/usr/bin/objformat`
10429   else
10430     case $host_os in
10431     freebsd[23].*) objformat=aout ;;
10432     *) objformat=elf ;;
10433     esac
10434   fi
10435   version_type=freebsd-$objformat
10436   case $version_type in
10437     freebsd-elf*)
10438       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10439       need_version=no
10440       need_lib_prefix=no
10441       ;;
10442     freebsd-*)
10443       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10444       need_version=yes
10445       ;;
10446   esac
10447   shlibpath_var=LD_LIBRARY_PATH
10448   case $host_os in
10449   freebsd2.*)
10450     shlibpath_overrides_runpath=yes
10451     ;;
10452   freebsd3.[01]* | freebsdelf3.[01]*)
10453     shlibpath_overrides_runpath=yes
10454     hardcode_into_libs=yes
10455     ;;
10456   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10457   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10458     shlibpath_overrides_runpath=no
10459     hardcode_into_libs=yes
10460     ;;
10461   *) # from 4.6 on, and DragonFly
10462     shlibpath_overrides_runpath=yes
10463     hardcode_into_libs=yes
10464     ;;
10465   esac
10466   ;;
10467
10468 gnu*)
10469   version_type=linux # correct to gnu/linux during the next big refactor
10470   need_lib_prefix=no
10471   need_version=no
10472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10473   soname_spec='${libname}${release}${shared_ext}$major'
10474   shlibpath_var=LD_LIBRARY_PATH
10475   shlibpath_overrides_runpath=no
10476   hardcode_into_libs=yes
10477   ;;
10478
10479 haiku*)
10480   version_type=linux # correct to gnu/linux during the next big refactor
10481   need_lib_prefix=no
10482   need_version=no
10483   dynamic_linker="$host_os runtime_loader"
10484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10485   soname_spec='${libname}${release}${shared_ext}$major'
10486   shlibpath_var=LIBRARY_PATH
10487   shlibpath_overrides_runpath=yes
10488   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10489   hardcode_into_libs=yes
10490   ;;
10491
10492 hpux9* | hpux10* | hpux11*)
10493   # Give a soname corresponding to the major version so that dld.sl refuses to
10494   # link against other versions.
10495   version_type=sunos
10496   need_lib_prefix=no
10497   need_version=no
10498   case $host_cpu in
10499   ia64*)
10500     shrext_cmds='.so'
10501     hardcode_into_libs=yes
10502     dynamic_linker="$host_os dld.so"
10503     shlibpath_var=LD_LIBRARY_PATH
10504     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506     soname_spec='${libname}${release}${shared_ext}$major'
10507     if test "X$HPUX_IA64_MODE" = X32; then
10508       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10509     else
10510       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10511     fi
10512     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10513     ;;
10514   hppa*64*)
10515     shrext_cmds='.sl'
10516     hardcode_into_libs=yes
10517     dynamic_linker="$host_os dld.sl"
10518     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10519     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521     soname_spec='${libname}${release}${shared_ext}$major'
10522     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10523     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10524     ;;
10525   *)
10526     shrext_cmds='.sl'
10527     dynamic_linker="$host_os dld.sl"
10528     shlibpath_var=SHLIB_PATH
10529     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531     soname_spec='${libname}${release}${shared_ext}$major'
10532     ;;
10533   esac
10534   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10535   postinstall_cmds='chmod 555 $lib'
10536   # or fails outright, so override atomically:
10537   install_override_mode=555
10538   ;;
10539
10540 interix[3-9]*)
10541   version_type=linux # correct to gnu/linux during the next big refactor
10542   need_lib_prefix=no
10543   need_version=no
10544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10545   soname_spec='${libname}${release}${shared_ext}$major'
10546   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10547   shlibpath_var=LD_LIBRARY_PATH
10548   shlibpath_overrides_runpath=no
10549   hardcode_into_libs=yes
10550   ;;
10551
10552 irix5* | irix6* | nonstopux*)
10553   case $host_os in
10554     nonstopux*) version_type=nonstopux ;;
10555     *)
10556         if test "$lt_cv_prog_gnu_ld" = yes; then
10557                 version_type=linux # correct to gnu/linux during the next big refactor
10558         else
10559                 version_type=irix
10560         fi ;;
10561   esac
10562   need_lib_prefix=no
10563   need_version=no
10564   soname_spec='${libname}${release}${shared_ext}$major'
10565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10566   case $host_os in
10567   irix5* | nonstopux*)
10568     libsuff= shlibsuff=
10569     ;;
10570   *)
10571     case $LD in # libtool.m4 will add one of these switches to LD
10572     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10573       libsuff= shlibsuff= libmagic=32-bit;;
10574     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10575       libsuff=32 shlibsuff=N32 libmagic=N32;;
10576     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10577       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10578     *) libsuff= shlibsuff= libmagic=never-match;;
10579     esac
10580     ;;
10581   esac
10582   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10583   shlibpath_overrides_runpath=no
10584   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10585   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10586   hardcode_into_libs=yes
10587   ;;
10588
10589 # No shared lib support for Linux oldld, aout, or coff.
10590 linux*oldld* | linux*aout* | linux*coff*)
10591   dynamic_linker=no
10592   ;;
10593
10594 # This must be glibc/ELF.
10595 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10596   version_type=linux # correct to gnu/linux during the next big refactor
10597   need_lib_prefix=no
10598   need_version=no
10599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600   soname_spec='${libname}${release}${shared_ext}$major'
10601   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10602   shlibpath_var=LD_LIBRARY_PATH
10603   shlibpath_overrides_runpath=no
10604
10605   # Some binutils ld are patched to set DT_RUNPATH
10606   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10607   $as_echo_n "(cached) " >&6
10608 else
10609   lt_cv_shlibpath_overrides_runpath=no
10610     save_LDFLAGS=$LDFLAGS
10611     save_libdir=$libdir
10612     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10613          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10614     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h.  */
10616
10617 int
10618 main ()
10619 {
10620
10621   ;
10622   return 0;
10623 }
10624 _ACEOF
10625 if ac_fn_c_try_link "$LINENO"; then :
10626   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10627   lt_cv_shlibpath_overrides_runpath=yes
10628 fi
10629 fi
10630 rm -f core conftest.err conftest.$ac_objext \
10631     conftest$ac_exeext conftest.$ac_ext
10632     LDFLAGS=$save_LDFLAGS
10633     libdir=$save_libdir
10634
10635 fi
10636
10637   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10638
10639   # This implies no fast_install, which is unacceptable.
10640   # Some rework will be needed to allow for fast_install
10641   # before this can be enabled.
10642   hardcode_into_libs=yes
10643
10644   # Append ld.so.conf contents to the search path
10645   if test -f /etc/ld.so.conf; then
10646     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' ' '`
10647     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10648   fi
10649
10650   # We used to test for /lib/ld.so.1 and disable shared libraries on
10651   # powerpc, because MkLinux only supported shared libraries with the
10652   # GNU dynamic linker.  Since this was broken with cross compilers,
10653   # most powerpc-linux boxes support dynamic linking these days and
10654   # people can always --disable-shared, the test was removed, and we
10655   # assume the GNU/Linux dynamic linker is in use.
10656   dynamic_linker='GNU/Linux ld.so'
10657   ;;
10658
10659 netbsd*)
10660   version_type=sunos
10661   need_lib_prefix=no
10662   need_version=no
10663   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10664     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10665     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10666     dynamic_linker='NetBSD (a.out) ld.so'
10667   else
10668     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10669     soname_spec='${libname}${release}${shared_ext}$major'
10670     dynamic_linker='NetBSD ld.elf_so'
10671   fi
10672   shlibpath_var=LD_LIBRARY_PATH
10673   shlibpath_overrides_runpath=yes
10674   hardcode_into_libs=yes
10675   ;;
10676
10677 newsos6)
10678   version_type=linux # correct to gnu/linux during the next big refactor
10679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680   shlibpath_var=LD_LIBRARY_PATH
10681   shlibpath_overrides_runpath=yes
10682   ;;
10683
10684 *nto* | *qnx*)
10685   version_type=qnx
10686   need_lib_prefix=no
10687   need_version=no
10688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689   soname_spec='${libname}${release}${shared_ext}$major'
10690   shlibpath_var=LD_LIBRARY_PATH
10691   shlibpath_overrides_runpath=no
10692   hardcode_into_libs=yes
10693   dynamic_linker='ldqnx.so'
10694   ;;
10695
10696 openbsd*)
10697   version_type=sunos
10698   sys_lib_dlsearch_path_spec="/usr/lib"
10699   need_lib_prefix=no
10700   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10701   case $host_os in
10702     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10703     *)                          need_version=no  ;;
10704   esac
10705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10706   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10707   shlibpath_var=LD_LIBRARY_PATH
10708   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10709     case $host_os in
10710       openbsd2.[89] | openbsd2.[89].*)
10711         shlibpath_overrides_runpath=no
10712         ;;
10713       *)
10714         shlibpath_overrides_runpath=yes
10715         ;;
10716       esac
10717   else
10718     shlibpath_overrides_runpath=yes
10719   fi
10720   ;;
10721
10722 os2*)
10723   libname_spec='$name'
10724   shrext_cmds=".dll"
10725   need_lib_prefix=no
10726   library_names_spec='$libname${shared_ext} $libname.a'
10727   dynamic_linker='OS/2 ld.exe'
10728   shlibpath_var=LIBPATH
10729   ;;
10730
10731 osf3* | osf4* | osf5*)
10732   version_type=osf
10733   need_lib_prefix=no
10734   need_version=no
10735   soname_spec='${libname}${release}${shared_ext}$major'
10736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737   shlibpath_var=LD_LIBRARY_PATH
10738   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10739   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10740   ;;
10741
10742 rdos*)
10743   dynamic_linker=no
10744   ;;
10745
10746 solaris*)
10747   version_type=linux # correct to gnu/linux during the next big refactor
10748   need_lib_prefix=no
10749   need_version=no
10750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751   soname_spec='${libname}${release}${shared_ext}$major'
10752   shlibpath_var=LD_LIBRARY_PATH
10753   shlibpath_overrides_runpath=yes
10754   hardcode_into_libs=yes
10755   # ldd complains unless libraries are executable
10756   postinstall_cmds='chmod +x $lib'
10757   ;;
10758
10759 sunos4*)
10760   version_type=sunos
10761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10762   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10763   shlibpath_var=LD_LIBRARY_PATH
10764   shlibpath_overrides_runpath=yes
10765   if test "$with_gnu_ld" = yes; then
10766     need_lib_prefix=no
10767   fi
10768   need_version=yes
10769   ;;
10770
10771 sysv4 | sysv4.3*)
10772   version_type=linux # correct to gnu/linux during the next big refactor
10773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774   soname_spec='${libname}${release}${shared_ext}$major'
10775   shlibpath_var=LD_LIBRARY_PATH
10776   case $host_vendor in
10777     sni)
10778       shlibpath_overrides_runpath=no
10779       need_lib_prefix=no
10780       runpath_var=LD_RUN_PATH
10781       ;;
10782     siemens)
10783       need_lib_prefix=no
10784       ;;
10785     motorola)
10786       need_lib_prefix=no
10787       need_version=no
10788       shlibpath_overrides_runpath=no
10789       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10790       ;;
10791   esac
10792   ;;
10793
10794 sysv4*MP*)
10795   if test -d /usr/nec ;then
10796     version_type=linux # correct to gnu/linux during the next big refactor
10797     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10798     soname_spec='$libname${shared_ext}.$major'
10799     shlibpath_var=LD_LIBRARY_PATH
10800   fi
10801   ;;
10802
10803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10804   version_type=freebsd-elf
10805   need_lib_prefix=no
10806   need_version=no
10807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10808   soname_spec='${libname}${release}${shared_ext}$major'
10809   shlibpath_var=LD_LIBRARY_PATH
10810   shlibpath_overrides_runpath=yes
10811   hardcode_into_libs=yes
10812   if test "$with_gnu_ld" = yes; then
10813     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10814   else
10815     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10816     case $host_os in
10817       sco3.2v5*)
10818         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10819         ;;
10820     esac
10821   fi
10822   sys_lib_dlsearch_path_spec='/usr/lib'
10823   ;;
10824
10825 tpf*)
10826   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10827   version_type=linux # correct to gnu/linux during the next big refactor
10828   need_lib_prefix=no
10829   need_version=no
10830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831   shlibpath_var=LD_LIBRARY_PATH
10832   shlibpath_overrides_runpath=no
10833   hardcode_into_libs=yes
10834   ;;
10835
10836 uts4*)
10837   version_type=linux # correct to gnu/linux during the next big refactor
10838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839   soname_spec='${libname}${release}${shared_ext}$major'
10840   shlibpath_var=LD_LIBRARY_PATH
10841   ;;
10842
10843 *)
10844   dynamic_linker=no
10845   ;;
10846 esac
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10848 $as_echo "$dynamic_linker" >&6; }
10849 test "$dynamic_linker" = no && can_build_shared=no
10850
10851 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10852 if test "$GCC" = yes; then
10853   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10854 fi
10855
10856 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10857   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10858 fi
10859 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10860   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10861 fi
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10955 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10956 hardcode_action=
10957 if test -n "$hardcode_libdir_flag_spec" ||
10958    test -n "$runpath_var" ||
10959    test "X$hardcode_automatic" = "Xyes" ; then
10960
10961   # We can hardcode non-existent directories.
10962   if test "$hardcode_direct" != no &&
10963      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10964      # have to relink, otherwise we might link with an installed library
10965      # when we should be linking with a yet-to-be-installed one
10966      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10967      test "$hardcode_minus_L" != no; then
10968     # Linking always hardcodes the temporary library directory.
10969     hardcode_action=relink
10970   else
10971     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10972     hardcode_action=immediate
10973   fi
10974 else
10975   # We cannot hardcode anything, or else we can only hardcode existing
10976   # directories.
10977   hardcode_action=unsupported
10978 fi
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10980 $as_echo "$hardcode_action" >&6; }
10981
10982 if test "$hardcode_action" = relink ||
10983    test "$inherit_rpath" = yes; then
10984   # Fast installation is not supported
10985   enable_fast_install=no
10986 elif test "$shlibpath_overrides_runpath" = yes ||
10987      test "$enable_shared" = no; then
10988   # Fast installation is not necessary
10989   enable_fast_install=needless
10990 fi
10991
10992
10993
10994
10995
10996
10997   if test "x$enable_dlopen" != xyes; then
10998   enable_dlopen=unknown
10999   enable_dlopen_self=unknown
11000   enable_dlopen_self_static=unknown
11001 else
11002   lt_cv_dlopen=no
11003   lt_cv_dlopen_libs=
11004
11005   case $host_os in
11006   beos*)
11007     lt_cv_dlopen="load_add_on"
11008     lt_cv_dlopen_libs=
11009     lt_cv_dlopen_self=yes
11010     ;;
11011
11012   mingw* | pw32* | cegcc*)
11013     lt_cv_dlopen="LoadLibrary"
11014     lt_cv_dlopen_libs=
11015     ;;
11016
11017   cygwin*)
11018     lt_cv_dlopen="dlopen"
11019     lt_cv_dlopen_libs=
11020     ;;
11021
11022   darwin*)
11023   # if libdl is installed we need to link against it
11024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11025 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11026 if ${ac_cv_lib_dl_dlopen+:} false; then :
11027   $as_echo_n "(cached) " >&6
11028 else
11029   ac_check_lib_save_LIBS=$LIBS
11030 LIBS="-ldl  $LIBS"
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h.  */
11033
11034 /* Override any GCC internal prototype to avoid an error.
11035    Use char because int might match the return type of a GCC
11036    builtin and then its argument prototype would still apply.  */
11037 #ifdef __cplusplus
11038 extern "C"
11039 #endif
11040 char dlopen ();
11041 int
11042 main ()
11043 {
11044 return dlopen ();
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 if ac_fn_c_try_link "$LINENO"; then :
11050   ac_cv_lib_dl_dlopen=yes
11051 else
11052   ac_cv_lib_dl_dlopen=no
11053 fi
11054 rm -f core conftest.err conftest.$ac_objext \
11055     conftest$ac_exeext conftest.$ac_ext
11056 LIBS=$ac_check_lib_save_LIBS
11057 fi
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11059 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11060 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11061   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11062 else
11063
11064     lt_cv_dlopen="dyld"
11065     lt_cv_dlopen_libs=
11066     lt_cv_dlopen_self=yes
11067
11068 fi
11069
11070     ;;
11071
11072   *)
11073     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11074 if test "x$ac_cv_func_shl_load" = xyes; then :
11075   lt_cv_dlopen="shl_load"
11076 else
11077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11078 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11079 if ${ac_cv_lib_dld_shl_load+:} false; then :
11080   $as_echo_n "(cached) " >&6
11081 else
11082   ac_check_lib_save_LIBS=$LIBS
11083 LIBS="-ldld  $LIBS"
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h.  */
11086
11087 /* Override any GCC internal prototype to avoid an error.
11088    Use char because int might match the return type of a GCC
11089    builtin and then its argument prototype would still apply.  */
11090 #ifdef __cplusplus
11091 extern "C"
11092 #endif
11093 char shl_load ();
11094 int
11095 main ()
11096 {
11097 return shl_load ();
11098   ;
11099   return 0;
11100 }
11101 _ACEOF
11102 if ac_fn_c_try_link "$LINENO"; then :
11103   ac_cv_lib_dld_shl_load=yes
11104 else
11105   ac_cv_lib_dld_shl_load=no
11106 fi
11107 rm -f core conftest.err conftest.$ac_objext \
11108     conftest$ac_exeext conftest.$ac_ext
11109 LIBS=$ac_check_lib_save_LIBS
11110 fi
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11112 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11113 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11114   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11115 else
11116   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11117 if test "x$ac_cv_func_dlopen" = xyes; then :
11118   lt_cv_dlopen="dlopen"
11119 else
11120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11121 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11122 if ${ac_cv_lib_dl_dlopen+:} false; then :
11123   $as_echo_n "(cached) " >&6
11124 else
11125   ac_check_lib_save_LIBS=$LIBS
11126 LIBS="-ldl  $LIBS"
11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h.  */
11129
11130 /* Override any GCC internal prototype to avoid an error.
11131    Use char because int might match the return type of a GCC
11132    builtin and then its argument prototype would still apply.  */
11133 #ifdef __cplusplus
11134 extern "C"
11135 #endif
11136 char dlopen ();
11137 int
11138 main ()
11139 {
11140 return dlopen ();
11141   ;
11142   return 0;
11143 }
11144 _ACEOF
11145 if ac_fn_c_try_link "$LINENO"; then :
11146   ac_cv_lib_dl_dlopen=yes
11147 else
11148   ac_cv_lib_dl_dlopen=no
11149 fi
11150 rm -f core conftest.err conftest.$ac_objext \
11151     conftest$ac_exeext conftest.$ac_ext
11152 LIBS=$ac_check_lib_save_LIBS
11153 fi
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11155 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11156 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11157   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11158 else
11159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11160 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11161 if ${ac_cv_lib_svld_dlopen+:} false; then :
11162   $as_echo_n "(cached) " >&6
11163 else
11164   ac_check_lib_save_LIBS=$LIBS
11165 LIBS="-lsvld  $LIBS"
11166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167 /* end confdefs.h.  */
11168
11169 /* Override any GCC internal prototype to avoid an error.
11170    Use char because int might match the return type of a GCC
11171    builtin and then its argument prototype would still apply.  */
11172 #ifdef __cplusplus
11173 extern "C"
11174 #endif
11175 char dlopen ();
11176 int
11177 main ()
11178 {
11179 return dlopen ();
11180   ;
11181   return 0;
11182 }
11183 _ACEOF
11184 if ac_fn_c_try_link "$LINENO"; then :
11185   ac_cv_lib_svld_dlopen=yes
11186 else
11187   ac_cv_lib_svld_dlopen=no
11188 fi
11189 rm -f core conftest.err conftest.$ac_objext \
11190     conftest$ac_exeext conftest.$ac_ext
11191 LIBS=$ac_check_lib_save_LIBS
11192 fi
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11194 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11195 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11196   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11197 else
11198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11199 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11200 if ${ac_cv_lib_dld_dld_link+:} false; then :
11201   $as_echo_n "(cached) " >&6
11202 else
11203   ac_check_lib_save_LIBS=$LIBS
11204 LIBS="-ldld  $LIBS"
11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h.  */
11207
11208 /* Override any GCC internal prototype to avoid an error.
11209    Use char because int might match the return type of a GCC
11210    builtin and then its argument prototype would still apply.  */
11211 #ifdef __cplusplus
11212 extern "C"
11213 #endif
11214 char dld_link ();
11215 int
11216 main ()
11217 {
11218 return dld_link ();
11219   ;
11220   return 0;
11221 }
11222 _ACEOF
11223 if ac_fn_c_try_link "$LINENO"; then :
11224   ac_cv_lib_dld_dld_link=yes
11225 else
11226   ac_cv_lib_dld_dld_link=no
11227 fi
11228 rm -f core conftest.err conftest.$ac_objext \
11229     conftest$ac_exeext conftest.$ac_ext
11230 LIBS=$ac_check_lib_save_LIBS
11231 fi
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11233 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11234 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11235   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11236 fi
11237
11238
11239 fi
11240
11241
11242 fi
11243
11244
11245 fi
11246
11247
11248 fi
11249
11250
11251 fi
11252
11253     ;;
11254   esac
11255
11256   if test "x$lt_cv_dlopen" != xno; then
11257     enable_dlopen=yes
11258   else
11259     enable_dlopen=no
11260   fi
11261
11262   case $lt_cv_dlopen in
11263   dlopen)
11264     save_CPPFLAGS="$CPPFLAGS"
11265     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11266
11267     save_LDFLAGS="$LDFLAGS"
11268     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11269
11270     save_LIBS="$LIBS"
11271     LIBS="$lt_cv_dlopen_libs $LIBS"
11272
11273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11274 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11275 if ${lt_cv_dlopen_self+:} false; then :
11276   $as_echo_n "(cached) " >&6
11277 else
11278           if test "$cross_compiling" = yes; then :
11279   lt_cv_dlopen_self=cross
11280 else
11281   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11282   lt_status=$lt_dlunknown
11283   cat > conftest.$ac_ext <<_LT_EOF
11284 #line $LINENO "configure"
11285 #include "confdefs.h"
11286
11287 #if HAVE_DLFCN_H
11288 #include <dlfcn.h>
11289 #endif
11290
11291 #include <stdio.h>
11292
11293 #ifdef RTLD_GLOBAL
11294 #  define LT_DLGLOBAL           RTLD_GLOBAL
11295 #else
11296 #  ifdef DL_GLOBAL
11297 #    define LT_DLGLOBAL         DL_GLOBAL
11298 #  else
11299 #    define LT_DLGLOBAL         0
11300 #  endif
11301 #endif
11302
11303 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11304    find out it does not work in some platform. */
11305 #ifndef LT_DLLAZY_OR_NOW
11306 #  ifdef RTLD_LAZY
11307 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11308 #  else
11309 #    ifdef DL_LAZY
11310 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11311 #    else
11312 #      ifdef RTLD_NOW
11313 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11314 #      else
11315 #        ifdef DL_NOW
11316 #          define LT_DLLAZY_OR_NOW      DL_NOW
11317 #        else
11318 #          define LT_DLLAZY_OR_NOW      0
11319 #        endif
11320 #      endif
11321 #    endif
11322 #  endif
11323 #endif
11324
11325 /* When -fvisbility=hidden is used, assume the code has been annotated
11326    correspondingly for the symbols needed.  */
11327 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11328 int fnord () __attribute__((visibility("default")));
11329 #endif
11330
11331 int fnord () { return 42; }
11332 int main ()
11333 {
11334   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11335   int status = $lt_dlunknown;
11336
11337   if (self)
11338     {
11339       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11340       else
11341         {
11342           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11343           else puts (dlerror ());
11344         }
11345       /* dlclose (self); */
11346     }
11347   else
11348     puts (dlerror ());
11349
11350   return status;
11351 }
11352 _LT_EOF
11353   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11354   (eval $ac_link) 2>&5
11355   ac_status=$?
11356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11357   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11358     (./conftest; exit; ) >&5 2>/dev/null
11359     lt_status=$?
11360     case x$lt_status in
11361       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11362       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11363       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11364     esac
11365   else :
11366     # compilation failed
11367     lt_cv_dlopen_self=no
11368   fi
11369 fi
11370 rm -fr conftest*
11371
11372
11373 fi
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11375 $as_echo "$lt_cv_dlopen_self" >&6; }
11376
11377     if test "x$lt_cv_dlopen_self" = xyes; then
11378       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11379       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11380 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11381 if ${lt_cv_dlopen_self_static+:} false; then :
11382   $as_echo_n "(cached) " >&6
11383 else
11384           if test "$cross_compiling" = yes; then :
11385   lt_cv_dlopen_self_static=cross
11386 else
11387   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11388   lt_status=$lt_dlunknown
11389   cat > conftest.$ac_ext <<_LT_EOF
11390 #line $LINENO "configure"
11391 #include "confdefs.h"
11392
11393 #if HAVE_DLFCN_H
11394 #include <dlfcn.h>
11395 #endif
11396
11397 #include <stdio.h>
11398
11399 #ifdef RTLD_GLOBAL
11400 #  define LT_DLGLOBAL           RTLD_GLOBAL
11401 #else
11402 #  ifdef DL_GLOBAL
11403 #    define LT_DLGLOBAL         DL_GLOBAL
11404 #  else
11405 #    define LT_DLGLOBAL         0
11406 #  endif
11407 #endif
11408
11409 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11410    find out it does not work in some platform. */
11411 #ifndef LT_DLLAZY_OR_NOW
11412 #  ifdef RTLD_LAZY
11413 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11414 #  else
11415 #    ifdef DL_LAZY
11416 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11417 #    else
11418 #      ifdef RTLD_NOW
11419 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11420 #      else
11421 #        ifdef DL_NOW
11422 #          define LT_DLLAZY_OR_NOW      DL_NOW
11423 #        else
11424 #          define LT_DLLAZY_OR_NOW      0
11425 #        endif
11426 #      endif
11427 #    endif
11428 #  endif
11429 #endif
11430
11431 /* When -fvisbility=hidden is used, assume the code has been annotated
11432    correspondingly for the symbols needed.  */
11433 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11434 int fnord () __attribute__((visibility("default")));
11435 #endif
11436
11437 int fnord () { return 42; }
11438 int main ()
11439 {
11440   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11441   int status = $lt_dlunknown;
11442
11443   if (self)
11444     {
11445       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11446       else
11447         {
11448           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11449           else puts (dlerror ());
11450         }
11451       /* dlclose (self); */
11452     }
11453   else
11454     puts (dlerror ());
11455
11456   return status;
11457 }
11458 _LT_EOF
11459   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11460   (eval $ac_link) 2>&5
11461   ac_status=$?
11462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11463   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11464     (./conftest; exit; ) >&5 2>/dev/null
11465     lt_status=$?
11466     case x$lt_status in
11467       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11468       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11469       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11470     esac
11471   else :
11472     # compilation failed
11473     lt_cv_dlopen_self_static=no
11474   fi
11475 fi
11476 rm -fr conftest*
11477
11478
11479 fi
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11481 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11482     fi
11483
11484     CPPFLAGS="$save_CPPFLAGS"
11485     LDFLAGS="$save_LDFLAGS"
11486     LIBS="$save_LIBS"
11487     ;;
11488   esac
11489
11490   case $lt_cv_dlopen_self in
11491   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11492   *) enable_dlopen_self=unknown ;;
11493   esac
11494
11495   case $lt_cv_dlopen_self_static in
11496   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11497   *) enable_dlopen_self_static=unknown ;;
11498   esac
11499 fi
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517 striplib=
11518 old_striplib=
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11520 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11521 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11522   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11523   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11525 $as_echo "yes" >&6; }
11526 else
11527 # FIXME - insert some real tests, host_os isn't really good enough
11528   case $host_os in
11529   darwin*)
11530     if test -n "$STRIP" ; then
11531       striplib="$STRIP -x"
11532       old_striplib="$STRIP -S"
11533       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11534 $as_echo "yes" >&6; }
11535     else
11536       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11538     fi
11539     ;;
11540   *)
11541     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11543     ;;
11544   esac
11545 fi
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558   # Report which library types will actually be built
11559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11560 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11562 $as_echo "$can_build_shared" >&6; }
11563
11564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11565 $as_echo_n "checking whether to build shared libraries... " >&6; }
11566   test "$can_build_shared" = "no" && enable_shared=no
11567
11568   # On AIX, shared libraries and static libraries use the same namespace, and
11569   # are all built from PIC.
11570   case $host_os in
11571   aix3*)
11572     test "$enable_shared" = yes && enable_static=no
11573     if test -n "$RANLIB"; then
11574       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11575       postinstall_cmds='$RANLIB $lib'
11576     fi
11577     ;;
11578
11579   aix[4-9]*)
11580     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11581       test "$enable_shared" = yes && enable_static=no
11582     fi
11583     ;;
11584   esac
11585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11586 $as_echo "$enable_shared" >&6; }
11587
11588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11589 $as_echo_n "checking whether to build static libraries... " >&6; }
11590   # Make sure either enable_shared or enable_static is yes.
11591   test "$enable_shared" = yes || enable_static=yes
11592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11593 $as_echo "$enable_static" >&6; }
11594
11595
11596
11597
11598 fi
11599 ac_ext=c
11600 ac_cpp='$CPP $CPPFLAGS'
11601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11604
11605 CC="$lt_save_CC"
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621         ac_config_commands="$ac_config_commands libtool"
11622
11623
11624
11625
11626 # Only expand once:
11627
11628
11629 ac_config_headers="$ac_config_headers config.h"
11630
11631 ac_config_files="$ac_config_files Makefile doc/Makefile doc/Doxyfile src/Makefile programs/Makefile wimlib.pc doc/imagex.1 doc/imagex-append.1 doc/imagex-apply.1 doc/imagex-capture.1 doc/imagex-delete.1 doc/imagex-dir.1 doc/imagex-export.1 doc/imagex-info.1 doc/imagex-join.1 doc/imagex-mount.1 doc/imagex-mountrw.1 doc/imagex-split.1 doc/imagex-unmount.1 doc/mkwinpeimg.1 rpm/wimlib.spec archlinux/PKGBUILD"
11632
11633 ac_ext=c
11634 ac_cpp='$CPP $CPPFLAGS'
11635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11638 if test -n "$ac_tool_prefix"; then
11639   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11640 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642 $as_echo_n "checking for $ac_word... " >&6; }
11643 if ${ac_cv_prog_CC+:} false; then :
11644   $as_echo_n "(cached) " >&6
11645 else
11646   if test -n "$CC"; then
11647   ac_cv_prog_CC="$CC" # Let the user override the test.
11648 else
11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH
11651 do
11652   IFS=$as_save_IFS
11653   test -z "$as_dir" && as_dir=.
11654     for ac_exec_ext in '' $ac_executable_extensions; do
11655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11656     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11658     break 2
11659   fi
11660 done
11661   done
11662 IFS=$as_save_IFS
11663
11664 fi
11665 fi
11666 CC=$ac_cv_prog_CC
11667 if test -n "$CC"; then
11668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11669 $as_echo "$CC" >&6; }
11670 else
11671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11673 fi
11674
11675
11676 fi
11677 if test -z "$ac_cv_prog_CC"; then
11678   ac_ct_CC=$CC
11679   # Extract the first word of "gcc", so it can be a program name with args.
11680 set dummy gcc; ac_word=$2
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11684   $as_echo_n "(cached) " >&6
11685 else
11686   if test -n "$ac_ct_CC"; then
11687   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11688 else
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11691 do
11692   IFS=$as_save_IFS
11693   test -z "$as_dir" && as_dir=.
11694     for ac_exec_ext in '' $ac_executable_extensions; do
11695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11696     ac_cv_prog_ac_ct_CC="gcc"
11697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698     break 2
11699   fi
11700 done
11701   done
11702 IFS=$as_save_IFS
11703
11704 fi
11705 fi
11706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11707 if test -n "$ac_ct_CC"; then
11708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11709 $as_echo "$ac_ct_CC" >&6; }
11710 else
11711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11713 fi
11714
11715   if test "x$ac_ct_CC" = x; then
11716     CC=""
11717   else
11718     case $cross_compiling:$ac_tool_warned in
11719 yes:)
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11722 ac_tool_warned=yes ;;
11723 esac
11724     CC=$ac_ct_CC
11725   fi
11726 else
11727   CC="$ac_cv_prog_CC"
11728 fi
11729
11730 if test -z "$CC"; then
11731           if test -n "$ac_tool_prefix"; then
11732     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11733 set dummy ${ac_tool_prefix}cc; ac_word=$2
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735 $as_echo_n "checking for $ac_word... " >&6; }
11736 if ${ac_cv_prog_CC+:} false; then :
11737   $as_echo_n "(cached) " >&6
11738 else
11739   if test -n "$CC"; then
11740   ac_cv_prog_CC="$CC" # Let the user override the test.
11741 else
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $PATH
11744 do
11745   IFS=$as_save_IFS
11746   test -z "$as_dir" && as_dir=.
11747     for ac_exec_ext in '' $ac_executable_extensions; do
11748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11749     ac_cv_prog_CC="${ac_tool_prefix}cc"
11750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11751     break 2
11752   fi
11753 done
11754   done
11755 IFS=$as_save_IFS
11756
11757 fi
11758 fi
11759 CC=$ac_cv_prog_CC
11760 if test -n "$CC"; then
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11762 $as_echo "$CC" >&6; }
11763 else
11764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11766 fi
11767
11768
11769   fi
11770 fi
11771 if test -z "$CC"; then
11772   # Extract the first word of "cc", so it can be a program name with args.
11773 set dummy cc; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if ${ac_cv_prog_CC+:} false; then :
11777   $as_echo_n "(cached) " >&6
11778 else
11779   if test -n "$CC"; then
11780   ac_cv_prog_CC="$CC" # Let the user override the test.
11781 else
11782   ac_prog_rejected=no
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11785 do
11786   IFS=$as_save_IFS
11787   test -z "$as_dir" && as_dir=.
11788     for ac_exec_ext in '' $ac_executable_extensions; do
11789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11790     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11791        ac_prog_rejected=yes
11792        continue
11793      fi
11794     ac_cv_prog_CC="cc"
11795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11796     break 2
11797   fi
11798 done
11799   done
11800 IFS=$as_save_IFS
11801
11802 if test $ac_prog_rejected = yes; then
11803   # We found a bogon in the path, so make sure we never use it.
11804   set dummy $ac_cv_prog_CC
11805   shift
11806   if test $# != 0; then
11807     # We chose a different compiler from the bogus one.
11808     # However, it has the same basename, so the bogon will be chosen
11809     # first if we set CC to just the basename; use the full file name.
11810     shift
11811     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11812   fi
11813 fi
11814 fi
11815 fi
11816 CC=$ac_cv_prog_CC
11817 if test -n "$CC"; then
11818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11819 $as_echo "$CC" >&6; }
11820 else
11821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11823 fi
11824
11825
11826 fi
11827 if test -z "$CC"; then
11828   if test -n "$ac_tool_prefix"; then
11829   for ac_prog in cl.exe
11830   do
11831     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834 $as_echo_n "checking for $ac_word... " >&6; }
11835 if ${ac_cv_prog_CC+:} false; then :
11836   $as_echo_n "(cached) " >&6
11837 else
11838   if test -n "$CC"; then
11839   ac_cv_prog_CC="$CC" # Let the user override the test.
11840 else
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
11843 do
11844   IFS=$as_save_IFS
11845   test -z "$as_dir" && as_dir=.
11846     for ac_exec_ext in '' $ac_executable_extensions; do
11847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11848     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11850     break 2
11851   fi
11852 done
11853   done
11854 IFS=$as_save_IFS
11855
11856 fi
11857 fi
11858 CC=$ac_cv_prog_CC
11859 if test -n "$CC"; then
11860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11861 $as_echo "$CC" >&6; }
11862 else
11863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11865 fi
11866
11867
11868     test -n "$CC" && break
11869   done
11870 fi
11871 if test -z "$CC"; then
11872   ac_ct_CC=$CC
11873   for ac_prog in cl.exe
11874 do
11875   # Extract the first word of "$ac_prog", so it can be a program name with args.
11876 set dummy $ac_prog; ac_word=$2
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11878 $as_echo_n "checking for $ac_word... " >&6; }
11879 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11880   $as_echo_n "(cached) " >&6
11881 else
11882   if test -n "$ac_ct_CC"; then
11883   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11884 else
11885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in $PATH
11887 do
11888   IFS=$as_save_IFS
11889   test -z "$as_dir" && as_dir=.
11890     for ac_exec_ext in '' $ac_executable_extensions; do
11891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11892     ac_cv_prog_ac_ct_CC="$ac_prog"
11893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894     break 2
11895   fi
11896 done
11897   done
11898 IFS=$as_save_IFS
11899
11900 fi
11901 fi
11902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11903 if test -n "$ac_ct_CC"; then
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11905 $as_echo "$ac_ct_CC" >&6; }
11906 else
11907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11909 fi
11910
11911
11912   test -n "$ac_ct_CC" && break
11913 done
11914
11915   if test "x$ac_ct_CC" = x; then
11916     CC=""
11917   else
11918     case $cross_compiling:$ac_tool_warned in
11919 yes:)
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11922 ac_tool_warned=yes ;;
11923 esac
11924     CC=$ac_ct_CC
11925   fi
11926 fi
11927
11928 fi
11929
11930
11931 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11933 as_fn_error $? "no acceptable C compiler found in \$PATH
11934 See \`config.log' for more details" "$LINENO" 5; }
11935
11936 # Provide some information about the compiler.
11937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11938 set X $ac_compile
11939 ac_compiler=$2
11940 for ac_option in --version -v -V -qversion; do
11941   { { ac_try="$ac_compiler $ac_option >&5"
11942 case "(($ac_try" in
11943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944   *) ac_try_echo=$ac_try;;
11945 esac
11946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11947 $as_echo "$ac_try_echo"; } >&5
11948   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11949   ac_status=$?
11950   if test -s conftest.err; then
11951     sed '10a\
11952 ... rest of stderr output deleted ...
11953          10q' conftest.err >conftest.er1
11954     cat conftest.er1 >&5
11955   fi
11956   rm -f conftest.er1 conftest.err
11957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11958   test $ac_status = 0; }
11959 done
11960
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11962 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11963 if ${ac_cv_c_compiler_gnu+:} false; then :
11964   $as_echo_n "(cached) " >&6
11965 else
11966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h.  */
11968
11969 int
11970 main ()
11971 {
11972 #ifndef __GNUC__
11973        choke me
11974 #endif
11975
11976   ;
11977   return 0;
11978 }
11979 _ACEOF
11980 if ac_fn_c_try_compile "$LINENO"; then :
11981   ac_compiler_gnu=yes
11982 else
11983   ac_compiler_gnu=no
11984 fi
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11987
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11990 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11991 if test $ac_compiler_gnu = yes; then
11992   GCC=yes
11993 else
11994   GCC=
11995 fi
11996 ac_test_CFLAGS=${CFLAGS+set}
11997 ac_save_CFLAGS=$CFLAGS
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11999 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12000 if ${ac_cv_prog_cc_g+:} false; then :
12001   $as_echo_n "(cached) " >&6
12002 else
12003   ac_save_c_werror_flag=$ac_c_werror_flag
12004    ac_c_werror_flag=yes
12005    ac_cv_prog_cc_g=no
12006    CFLAGS="-g"
12007    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h.  */
12009
12010 int
12011 main ()
12012 {
12013
12014   ;
12015   return 0;
12016 }
12017 _ACEOF
12018 if ac_fn_c_try_compile "$LINENO"; then :
12019   ac_cv_prog_cc_g=yes
12020 else
12021   CFLAGS=""
12022       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h.  */
12024
12025 int
12026 main ()
12027 {
12028
12029   ;
12030   return 0;
12031 }
12032 _ACEOF
12033 if ac_fn_c_try_compile "$LINENO"; then :
12034
12035 else
12036   ac_c_werror_flag=$ac_save_c_werror_flag
12037          CFLAGS="-g"
12038          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h.  */
12040
12041 int
12042 main ()
12043 {
12044
12045   ;
12046   return 0;
12047 }
12048 _ACEOF
12049 if ac_fn_c_try_compile "$LINENO"; then :
12050   ac_cv_prog_cc_g=yes
12051 fi
12052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12053 fi
12054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055 fi
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057    ac_c_werror_flag=$ac_save_c_werror_flag
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12060 $as_echo "$ac_cv_prog_cc_g" >&6; }
12061 if test "$ac_test_CFLAGS" = set; then
12062   CFLAGS=$ac_save_CFLAGS
12063 elif test $ac_cv_prog_cc_g = yes; then
12064   if test "$GCC" = yes; then
12065     CFLAGS="-g -O2"
12066   else
12067     CFLAGS="-g"
12068   fi
12069 else
12070   if test "$GCC" = yes; then
12071     CFLAGS="-O2"
12072   else
12073     CFLAGS=
12074   fi
12075 fi
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12077 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12078 if ${ac_cv_prog_cc_c89+:} false; then :
12079   $as_echo_n "(cached) " >&6
12080 else
12081   ac_cv_prog_cc_c89=no
12082 ac_save_CC=$CC
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h.  */
12085 #include <stdarg.h>
12086 #include <stdio.h>
12087 struct stat;
12088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12089 struct buf { int x; };
12090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12091 static char *e (p, i)
12092      char **p;
12093      int i;
12094 {
12095   return p[i];
12096 }
12097 static char *f (char * (*g) (char **, int), char **p, ...)
12098 {
12099   char *s;
12100   va_list v;
12101   va_start (v,p);
12102   s = g (p, va_arg (v,int));
12103   va_end (v);
12104   return s;
12105 }
12106
12107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12108    function prototypes and stuff, but not '\xHH' hex character constants.
12109    These don't provoke an error unfortunately, instead are silently treated
12110    as 'x'.  The following induces an error, until -std is added to get
12111    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12112    array size at least.  It's necessary to write '\x00'==0 to get something
12113    that's true only with -std.  */
12114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12115
12116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12117    inside strings and character constants.  */
12118 #define FOO(x) 'x'
12119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12120
12121 int test (int i, double x);
12122 struct s1 {int (*f) (int a);};
12123 struct s2 {int (*f) (double a);};
12124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12125 int argc;
12126 char **argv;
12127 int
12128 main ()
12129 {
12130 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12131   ;
12132   return 0;
12133 }
12134 _ACEOF
12135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12136         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12137 do
12138   CC="$ac_save_CC $ac_arg"
12139   if ac_fn_c_try_compile "$LINENO"; then :
12140   ac_cv_prog_cc_c89=$ac_arg
12141 fi
12142 rm -f core conftest.err conftest.$ac_objext
12143   test "x$ac_cv_prog_cc_c89" != "xno" && break
12144 done
12145 rm -f conftest.$ac_ext
12146 CC=$ac_save_CC
12147
12148 fi
12149 # AC_CACHE_VAL
12150 case "x$ac_cv_prog_cc_c89" in
12151   x)
12152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12153 $as_echo "none needed" >&6; } ;;
12154   xno)
12155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12156 $as_echo "unsupported" >&6; } ;;
12157   *)
12158     CC="$CC $ac_cv_prog_cc_c89"
12159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12160 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12161 esac
12162 if test "x$ac_cv_prog_cc_c89" != xno; then :
12163
12164 fi
12165
12166 ac_ext=c
12167 ac_cpp='$CPP $CPPFLAGS'
12168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12171
12172 depcc="$CC"   am_compiler_list=
12173
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12175 $as_echo_n "checking dependency style of $depcc... " >&6; }
12176 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12177   $as_echo_n "(cached) " >&6
12178 else
12179   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12180   # We make a subdir and do the tests there.  Otherwise we can end up
12181   # making bogus files that we don't know about and never remove.  For
12182   # instance it was reported that on HP-UX the gcc test will end up
12183   # making a dummy file named 'D' -- because '-MD' means "put the output
12184   # in D".
12185   rm -rf conftest.dir
12186   mkdir conftest.dir
12187   # Copy depcomp to subdir because otherwise we won't find it if we're
12188   # using a relative directory.
12189   cp "$am_depcomp" conftest.dir
12190   cd conftest.dir
12191   # We will build objects and dependencies in a subdirectory because
12192   # it helps to detect inapplicable dependency modes.  For instance
12193   # both Tru64's cc and ICC support -MD to output dependencies as a
12194   # side effect of compilation, but ICC will put the dependencies in
12195   # the current directory while Tru64 will put them in the object
12196   # directory.
12197   mkdir sub
12198
12199   am_cv_CC_dependencies_compiler_type=none
12200   if test "$am_compiler_list" = ""; then
12201      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12202   fi
12203   am__universal=false
12204   case " $depcc " in #(
12205      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12206      esac
12207
12208   for depmode in $am_compiler_list; do
12209     # Setup a source with many dependencies, because some compilers
12210     # like to wrap large dependency lists on column 80 (with \), and
12211     # we should not choose a depcomp mode which is confused by this.
12212     #
12213     # We need to recreate these files for each test, as the compiler may
12214     # overwrite some of them when testing with obscure command lines.
12215     # This happens at least with the AIX C compiler.
12216     : > sub/conftest.c
12217     for i in 1 2 3 4 5 6; do
12218       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12219       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12220       # Solaris 10 /bin/sh.
12221       echo '/* dummy */' > sub/conftst$i.h
12222     done
12223     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12224
12225     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12226     # mode.  It turns out that the SunPro C++ compiler does not properly
12227     # handle '-M -o', and we need to detect this.  Also, some Intel
12228     # versions had trouble with output in subdirs.
12229     am__obj=sub/conftest.${OBJEXT-o}
12230     am__minus_obj="-o $am__obj"
12231     case $depmode in
12232     gcc)
12233       # This depmode causes a compiler race in universal mode.
12234       test "$am__universal" = false || continue
12235       ;;
12236     nosideeffect)
12237       # After this tag, mechanisms are not by side-effect, so they'll
12238       # only be used when explicitly requested.
12239       if test "x$enable_dependency_tracking" = xyes; then
12240         continue
12241       else
12242         break
12243       fi
12244       ;;
12245     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12246       # This compiler won't grok '-c -o', but also, the minuso test has
12247       # not run yet.  These depmodes are late enough in the game, and
12248       # so weak that their functioning should not be impacted.
12249       am__obj=conftest.${OBJEXT-o}
12250       am__minus_obj=
12251       ;;
12252     none) break ;;
12253     esac
12254     if depmode=$depmode \
12255        source=sub/conftest.c object=$am__obj \
12256        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12257        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12258          >/dev/null 2>conftest.err &&
12259        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12260        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12261        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12262        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12263       # icc doesn't choke on unknown options, it will just issue warnings
12264       # or remarks (even with -Werror).  So we grep stderr for any message
12265       # that says an option was ignored or not supported.
12266       # When given -MP, icc 7.0 and 7.1 complain thusly:
12267       #   icc: Command line warning: ignoring option '-M'; no argument required
12268       # The diagnosis changed in icc 8.0:
12269       #   icc: Command line remark: option '-MP' not supported
12270       if (grep 'ignoring option' conftest.err ||
12271           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12272         am_cv_CC_dependencies_compiler_type=$depmode
12273         break
12274       fi
12275     fi
12276   done
12277
12278   cd ..
12279   rm -rf conftest.dir
12280 else
12281   am_cv_CC_dependencies_compiler_type=none
12282 fi
12283
12284 fi
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12286 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12287 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12288
12289  if
12290   test "x$enable_dependency_tracking" != xno \
12291   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12292   am__fastdepCC_TRUE=
12293   am__fastdepCC_FALSE='#'
12294 else
12295   am__fastdepCC_TRUE='#'
12296   am__fastdepCC_FALSE=
12297 fi
12298
12299
12300
12301
12302
12303       if test "X$prefix" = "XNONE"; then
12304     acl_final_prefix="$ac_default_prefix"
12305   else
12306     acl_final_prefix="$prefix"
12307   fi
12308   if test "X$exec_prefix" = "XNONE"; then
12309     acl_final_exec_prefix='${prefix}'
12310   else
12311     acl_final_exec_prefix="$exec_prefix"
12312   fi
12313   acl_save_prefix="$prefix"
12314   prefix="$acl_final_prefix"
12315   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12316   prefix="$acl_save_prefix"
12317
12318
12319 # Check whether --with-gnu-ld was given.
12320 if test "${with_gnu_ld+set}" = set; then :
12321   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12322 else
12323   with_gnu_ld=no
12324 fi
12325
12326 # Prepare PATH_SEPARATOR.
12327 # The user is always right.
12328 if test "${PATH_SEPARATOR+set}" != set; then
12329   echo "#! /bin/sh" >conf$$.sh
12330   echo  "exit 0"   >>conf$$.sh
12331   chmod +x conf$$.sh
12332   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12333     PATH_SEPARATOR=';'
12334   else
12335     PATH_SEPARATOR=:
12336   fi
12337   rm -f conf$$.sh
12338 fi
12339 ac_prog=ld
12340 if test "$GCC" = yes; then
12341   # Check if gcc -print-prog-name=ld gives a path.
12342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12343 $as_echo_n "checking for ld used by GCC... " >&6; }
12344   case $host in
12345   *-*-mingw*)
12346     # gcc leaves a trailing carriage return which upsets mingw
12347     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12348   *)
12349     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12350   esac
12351   case $ac_prog in
12352     # Accept absolute paths.
12353     [\\/]* | [A-Za-z]:[\\/]*)
12354       re_direlt='/[^/][^/]*/\.\./'
12355       # Canonicalize the path of ld
12356       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12357       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12358         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12359       done
12360       test -z "$LD" && LD="$ac_prog"
12361       ;;
12362   "")
12363     # If it fails, then pretend we aren't using GCC.
12364     ac_prog=ld
12365     ;;
12366   *)
12367     # If it is relative, then search for the first ld in PATH.
12368     with_gnu_ld=unknown
12369     ;;
12370   esac
12371 elif test "$with_gnu_ld" = yes; then
12372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12373 $as_echo_n "checking for GNU ld... " >&6; }
12374 else
12375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12376 $as_echo_n "checking for non-GNU ld... " >&6; }
12377 fi
12378 if ${acl_cv_path_LD+:} false; then :
12379   $as_echo_n "(cached) " >&6
12380 else
12381   if test -z "$LD"; then
12382   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12383   for ac_dir in $PATH; do
12384     test -z "$ac_dir" && ac_dir=.
12385     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12386       acl_cv_path_LD="$ac_dir/$ac_prog"
12387       # Check to see if the program is GNU ld.  I'd rather use --version,
12388       # but apparently some GNU ld's only accept -v.
12389       # Break only if it was the GNU/non-GNU ld that we prefer.
12390       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12391       *GNU* | *'with BFD'*)
12392         test "$with_gnu_ld" != no && break ;;
12393       *)
12394         test "$with_gnu_ld" != yes && break ;;
12395       esac
12396     fi
12397   done
12398   IFS="$ac_save_ifs"
12399 else
12400   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12401 fi
12402 fi
12403
12404 LD="$acl_cv_path_LD"
12405 if test -n "$LD"; then
12406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12407 $as_echo "$LD" >&6; }
12408 else
12409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410 $as_echo "no" >&6; }
12411 fi
12412 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12414 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12415 if ${acl_cv_prog_gnu_ld+:} false; then :
12416   $as_echo_n "(cached) " >&6
12417 else
12418   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12419 case `$LD -v 2>&1 </dev/null` in
12420 *GNU* | *'with BFD'*)
12421   acl_cv_prog_gnu_ld=yes ;;
12422 *)
12423   acl_cv_prog_gnu_ld=no ;;
12424 esac
12425 fi
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12427 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12428 with_gnu_ld=$acl_cv_prog_gnu_ld
12429
12430
12431
12432
12433                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12434 $as_echo_n "checking for shared library run path origin... " >&6; }
12435 if ${acl_cv_rpath+:} false; then :
12436   $as_echo_n "(cached) " >&6
12437 else
12438
12439     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12440     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12441     . ./conftest.sh
12442     rm -f ./conftest.sh
12443     acl_cv_rpath=done
12444
12445 fi
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12447 $as_echo "$acl_cv_rpath" >&6; }
12448   wl="$acl_cv_wl"
12449   acl_libext="$acl_cv_libext"
12450   acl_shlibext="$acl_cv_shlibext"
12451   acl_libname_spec="$acl_cv_libname_spec"
12452   acl_library_names_spec="$acl_cv_library_names_spec"
12453   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12454   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12455   acl_hardcode_direct="$acl_cv_hardcode_direct"
12456   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12457     # Check whether --enable-rpath was given.
12458 if test "${enable_rpath+set}" = set; then :
12459   enableval=$enable_rpath; :
12460 else
12461   enable_rpath=yes
12462 fi
12463
12464
12465
12466
12467   acl_libdirstem=lib
12468   acl_libdirstem2=
12469   case "$host_os" in
12470     solaris*)
12471                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12472 $as_echo_n "checking for 64-bit host... " >&6; }
12473 if ${gl_cv_solaris_64bit+:} false; then :
12474   $as_echo_n "(cached) " >&6
12475 else
12476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h.  */
12478
12479 #ifdef _LP64
12480 sixtyfour bits
12481 #endif
12482
12483 _ACEOF
12484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12485   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12486   gl_cv_solaris_64bit=yes
12487 else
12488   gl_cv_solaris_64bit=no
12489 fi
12490 rm -f conftest*
12491
12492
12493 fi
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12495 $as_echo "$gl_cv_solaris_64bit" >&6; }
12496       if test $gl_cv_solaris_64bit = yes; then
12497         acl_libdirstem=lib/64
12498         case "$host_cpu" in
12499           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12500           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12501         esac
12502       fi
12503       ;;
12504     *)
12505       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12506       if test -n "$searchpath"; then
12507         acl_save_IFS="${IFS=    }"; IFS=":"
12508         for searchdir in $searchpath; do
12509           if test -d "$searchdir"; then
12510             case "$searchdir" in
12511               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12512               */../ | */.. )
12513                 # Better ignore directories of this form. They are misleading.
12514                 ;;
12515               *) searchdir=`cd "$searchdir" && pwd`
12516                  case "$searchdir" in
12517                    */lib64 ) acl_libdirstem=lib64 ;;
12518                  esac ;;
12519             esac
12520           fi
12521         done
12522         IFS="$acl_save_IFS"
12523       fi
12524       ;;
12525   esac
12526   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539     use_additional=yes
12540
12541   acl_save_prefix="$prefix"
12542   prefix="$acl_final_prefix"
12543   acl_save_exec_prefix="$exec_prefix"
12544   exec_prefix="$acl_final_exec_prefix"
12545
12546     eval additional_includedir=\"$includedir\"
12547     eval additional_libdir=\"$libdir\"
12548
12549   exec_prefix="$acl_save_exec_prefix"
12550   prefix="$acl_save_prefix"
12551
12552
12553 # Check whether --with-libiconv-prefix was given.
12554 if test "${with_libiconv_prefix+set}" = set; then :
12555   withval=$with_libiconv_prefix;
12556     if test "X$withval" = "Xno"; then
12557       use_additional=no
12558     else
12559       if test "X$withval" = "X"; then
12560
12561   acl_save_prefix="$prefix"
12562   prefix="$acl_final_prefix"
12563   acl_save_exec_prefix="$exec_prefix"
12564   exec_prefix="$acl_final_exec_prefix"
12565
12566           eval additional_includedir=\"$includedir\"
12567           eval additional_libdir=\"$libdir\"
12568
12569   exec_prefix="$acl_save_exec_prefix"
12570   prefix="$acl_save_prefix"
12571
12572       else
12573         additional_includedir="$withval/include"
12574         additional_libdir="$withval/$acl_libdirstem"
12575         if test "$acl_libdirstem2" != "$acl_libdirstem" \
12576            && ! test -d "$withval/$acl_libdirstem"; then
12577           additional_libdir="$withval/$acl_libdirstem2"
12578         fi
12579       fi
12580     fi
12581
12582 fi
12583
12584       LIBICONV=
12585   LTLIBICONV=
12586   INCICONV=
12587   LIBICONV_PREFIX=
12588       HAVE_LIBICONV=
12589   rpathdirs=
12590   ltrpathdirs=
12591   names_already_handled=
12592   names_next_round='iconv '
12593   while test -n "$names_next_round"; do
12594     names_this_round="$names_next_round"
12595     names_next_round=
12596     for name in $names_this_round; do
12597       already_handled=
12598       for n in $names_already_handled; do
12599         if test "$n" = "$name"; then
12600           already_handled=yes
12601           break
12602         fi
12603       done
12604       if test -z "$already_handled"; then
12605         names_already_handled="$names_already_handled $name"
12606                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12607         eval value=\"\$HAVE_LIB$uppername\"
12608         if test -n "$value"; then
12609           if test "$value" = yes; then
12610             eval value=\"\$LIB$uppername\"
12611             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12612             eval value=\"\$LTLIB$uppername\"
12613             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12614           else
12615                                     :
12616           fi
12617         else
12618                               found_dir=
12619           found_la=
12620           found_so=
12621           found_a=
12622           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12623           if test -n "$acl_shlibext"; then
12624             shrext=".$acl_shlibext"             # typically: shrext=.so
12625           else
12626             shrext=
12627           fi
12628           if test $use_additional = yes; then
12629             dir="$additional_libdir"
12630                                     if test -n "$acl_shlibext"; then
12631               if test -f "$dir/$libname$shrext"; then
12632                 found_dir="$dir"
12633                 found_so="$dir/$libname$shrext"
12634               else
12635                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12636                   ver=`(cd "$dir" && \
12637                         for f in "$libname$shrext".*; do echo "$f"; done \
12638                         | sed -e "s,^$libname$shrext\\\\.,," \
12639                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12640                         | sed 1q ) 2>/dev/null`
12641                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12642                     found_dir="$dir"
12643                     found_so="$dir/$libname$shrext.$ver"
12644                   fi
12645                 else
12646                   eval library_names=\"$acl_library_names_spec\"
12647                   for f in $library_names; do
12648                     if test -f "$dir/$f"; then
12649                       found_dir="$dir"
12650                       found_so="$dir/$f"
12651                       break
12652                     fi
12653                   done
12654                 fi
12655               fi
12656             fi
12657                         if test "X$found_dir" = "X"; then
12658               if test -f "$dir/$libname.$acl_libext"; then
12659                 found_dir="$dir"
12660                 found_a="$dir/$libname.$acl_libext"
12661               fi
12662             fi
12663             if test "X$found_dir" != "X"; then
12664               if test -f "$dir/$libname.la"; then
12665                 found_la="$dir/$libname.la"
12666               fi
12667             fi
12668           fi
12669           if test "X$found_dir" = "X"; then
12670             for x in $LDFLAGS $LTLIBICONV; do
12671
12672   acl_save_prefix="$prefix"
12673   prefix="$acl_final_prefix"
12674   acl_save_exec_prefix="$exec_prefix"
12675   exec_prefix="$acl_final_exec_prefix"
12676   eval x=\"$x\"
12677   exec_prefix="$acl_save_exec_prefix"
12678   prefix="$acl_save_prefix"
12679
12680               case "$x" in
12681                 -L*)
12682                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12683                                     if test -n "$acl_shlibext"; then
12684                     if test -f "$dir/$libname$shrext"; then
12685                       found_dir="$dir"
12686                       found_so="$dir/$libname$shrext"
12687                     else
12688                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12689                         ver=`(cd "$dir" && \
12690                               for f in "$libname$shrext".*; do echo "$f"; done \
12691                               | sed -e "s,^$libname$shrext\\\\.,," \
12692                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12693                               | sed 1q ) 2>/dev/null`
12694                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12695                           found_dir="$dir"
12696                           found_so="$dir/$libname$shrext.$ver"
12697                         fi
12698                       else
12699                         eval library_names=\"$acl_library_names_spec\"
12700                         for f in $library_names; do
12701                           if test -f "$dir/$f"; then
12702                             found_dir="$dir"
12703                             found_so="$dir/$f"
12704                             break
12705                           fi
12706                         done
12707                       fi
12708                     fi
12709                   fi
12710                                     if test "X$found_dir" = "X"; then
12711                     if test -f "$dir/$libname.$acl_libext"; then
12712                       found_dir="$dir"
12713                       found_a="$dir/$libname.$acl_libext"
12714                     fi
12715                   fi
12716                   if test "X$found_dir" != "X"; then
12717                     if test -f "$dir/$libname.la"; then
12718                       found_la="$dir/$libname.la"
12719                     fi
12720                   fi
12721                   ;;
12722               esac
12723               if test "X$found_dir" != "X"; then
12724                 break
12725               fi
12726             done
12727           fi
12728           if test "X$found_dir" != "X"; then
12729                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12730             if test "X$found_so" != "X"; then
12731                                                         if test "$enable_rpath" = no \
12732                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12733                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12734                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12735               else
12736                                                                                 haveit=
12737                 for x in $ltrpathdirs; do
12738                   if test "X$x" = "X$found_dir"; then
12739                     haveit=yes
12740                     break
12741                   fi
12742                 done
12743                 if test -z "$haveit"; then
12744                   ltrpathdirs="$ltrpathdirs $found_dir"
12745                 fi
12746                                 if test "$acl_hardcode_direct" = yes; then
12747                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12748                 else
12749                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12750                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12751                                                             haveit=
12752                     for x in $rpathdirs; do
12753                       if test "X$x" = "X$found_dir"; then
12754                         haveit=yes
12755                         break
12756                       fi
12757                     done
12758                     if test -z "$haveit"; then
12759                       rpathdirs="$rpathdirs $found_dir"
12760                     fi
12761                   else
12762                                                                                 haveit=
12763                     for x in $LDFLAGS $LIBICONV; do
12764
12765   acl_save_prefix="$prefix"
12766   prefix="$acl_final_prefix"
12767   acl_save_exec_prefix="$exec_prefix"
12768   exec_prefix="$acl_final_exec_prefix"
12769   eval x=\"$x\"
12770   exec_prefix="$acl_save_exec_prefix"
12771   prefix="$acl_save_prefix"
12772
12773                       if test "X$x" = "X-L$found_dir"; then
12774                         haveit=yes
12775                         break
12776                       fi
12777                     done
12778                     if test -z "$haveit"; then
12779                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12780                     fi
12781                     if test "$acl_hardcode_minus_L" != no; then
12782                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12783                     else
12784                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12785                     fi
12786                   fi
12787                 fi
12788               fi
12789             else
12790               if test "X$found_a" != "X"; then
12791                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12792               else
12793                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12794               fi
12795             fi
12796                         additional_includedir=
12797             case "$found_dir" in
12798               */$acl_libdirstem | */$acl_libdirstem/)
12799                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12800                 if test "$name" = 'iconv'; then
12801                   LIBICONV_PREFIX="$basedir"
12802                 fi
12803                 additional_includedir="$basedir/include"
12804                 ;;
12805               */$acl_libdirstem2 | */$acl_libdirstem2/)
12806                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12807                 if test "$name" = 'iconv'; then
12808                   LIBICONV_PREFIX="$basedir"
12809                 fi
12810                 additional_includedir="$basedir/include"
12811                 ;;
12812             esac
12813             if test "X$additional_includedir" != "X"; then
12814                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12815                 haveit=
12816                 if test "X$additional_includedir" = "X/usr/local/include"; then
12817                   if test -n "$GCC"; then
12818                     case $host_os in
12819                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12820                     esac
12821                   fi
12822                 fi
12823                 if test -z "$haveit"; then
12824                   for x in $CPPFLAGS $INCICONV; do
12825
12826   acl_save_prefix="$prefix"
12827   prefix="$acl_final_prefix"
12828   acl_save_exec_prefix="$exec_prefix"
12829   exec_prefix="$acl_final_exec_prefix"
12830   eval x=\"$x\"
12831   exec_prefix="$acl_save_exec_prefix"
12832   prefix="$acl_save_prefix"
12833
12834                     if test "X$x" = "X-I$additional_includedir"; then
12835                       haveit=yes
12836                       break
12837                     fi
12838                   done
12839                   if test -z "$haveit"; then
12840                     if test -d "$additional_includedir"; then
12841                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12842                     fi
12843                   fi
12844                 fi
12845               fi
12846             fi
12847                         if test -n "$found_la"; then
12848                                                         save_libdir="$libdir"
12849               case "$found_la" in
12850                 */* | *\\*) . "$found_la" ;;
12851                 *) . "./$found_la" ;;
12852               esac
12853               libdir="$save_libdir"
12854                             for dep in $dependency_libs; do
12855                 case "$dep" in
12856                   -L*)
12857                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12858                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12859                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12860                       haveit=
12861                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12862                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12863                         if test -n "$GCC"; then
12864                           case $host_os in
12865                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12866                           esac
12867                         fi
12868                       fi
12869                       if test -z "$haveit"; then
12870                         haveit=
12871                         for x in $LDFLAGS $LIBICONV; do
12872
12873   acl_save_prefix="$prefix"
12874   prefix="$acl_final_prefix"
12875   acl_save_exec_prefix="$exec_prefix"
12876   exec_prefix="$acl_final_exec_prefix"
12877   eval x=\"$x\"
12878   exec_prefix="$acl_save_exec_prefix"
12879   prefix="$acl_save_prefix"
12880
12881                           if test "X$x" = "X-L$additional_libdir"; then
12882                             haveit=yes
12883                             break
12884                           fi
12885                         done
12886                         if test -z "$haveit"; then
12887                           if test -d "$additional_libdir"; then
12888                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12889                           fi
12890                         fi
12891                         haveit=
12892                         for x in $LDFLAGS $LTLIBICONV; do
12893
12894   acl_save_prefix="$prefix"
12895   prefix="$acl_final_prefix"
12896   acl_save_exec_prefix="$exec_prefix"
12897   exec_prefix="$acl_final_exec_prefix"
12898   eval x=\"$x\"
12899   exec_prefix="$acl_save_exec_prefix"
12900   prefix="$acl_save_prefix"
12901
12902                           if test "X$x" = "X-L$additional_libdir"; then
12903                             haveit=yes
12904                             break
12905                           fi
12906                         done
12907                         if test -z "$haveit"; then
12908                           if test -d "$additional_libdir"; then
12909                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12910                           fi
12911                         fi
12912                       fi
12913                     fi
12914                     ;;
12915                   -R*)
12916                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12917                     if test "$enable_rpath" != no; then
12918                                                                   haveit=
12919                       for x in $rpathdirs; do
12920                         if test "X$x" = "X$dir"; then
12921                           haveit=yes
12922                           break
12923                         fi
12924                       done
12925                       if test -z "$haveit"; then
12926                         rpathdirs="$rpathdirs $dir"
12927                       fi
12928                                                                   haveit=
12929                       for x in $ltrpathdirs; do
12930                         if test "X$x" = "X$dir"; then
12931                           haveit=yes
12932                           break
12933                         fi
12934                       done
12935                       if test -z "$haveit"; then
12936                         ltrpathdirs="$ltrpathdirs $dir"
12937                       fi
12938                     fi
12939                     ;;
12940                   -l*)
12941                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12942                     ;;
12943                   *.la)
12944                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12945                     ;;
12946                   *)
12947                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12948                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12949                     ;;
12950                 esac
12951               done
12952             fi
12953           else
12954                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12955             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12956           fi
12957         fi
12958       fi
12959     done
12960   done
12961   if test "X$rpathdirs" != "X"; then
12962     if test -n "$acl_hardcode_libdir_separator"; then
12963                         alldirs=
12964       for found_dir in $rpathdirs; do
12965         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12966       done
12967             acl_save_libdir="$libdir"
12968       libdir="$alldirs"
12969       eval flag=\"$acl_hardcode_libdir_flag_spec\"
12970       libdir="$acl_save_libdir"
12971       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12972     else
12973             for found_dir in $rpathdirs; do
12974         acl_save_libdir="$libdir"
12975         libdir="$found_dir"
12976         eval flag=\"$acl_hardcode_libdir_flag_spec\"
12977         libdir="$acl_save_libdir"
12978         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12979       done
12980     fi
12981   fi
12982   if test "X$ltrpathdirs" != "X"; then
12983             for found_dir in $ltrpathdirs; do
12984       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12985     done
12986   fi
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999           am_save_CPPFLAGS="$CPPFLAGS"
13000
13001   for element in $INCICONV; do
13002     haveit=
13003     for x in $CPPFLAGS; do
13004
13005   acl_save_prefix="$prefix"
13006   prefix="$acl_final_prefix"
13007   acl_save_exec_prefix="$exec_prefix"
13008   exec_prefix="$acl_final_exec_prefix"
13009   eval x=\"$x\"
13010   exec_prefix="$acl_save_exec_prefix"
13011   prefix="$acl_save_prefix"
13012
13013       if test "X$x" = "X$element"; then
13014         haveit=yes
13015         break
13016       fi
13017     done
13018     if test -z "$haveit"; then
13019       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13020     fi
13021   done
13022
13023
13024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13025 $as_echo_n "checking for iconv... " >&6; }
13026 if ${am_cv_func_iconv+:} false; then :
13027   $as_echo_n "(cached) " >&6
13028 else
13029
13030     am_cv_func_iconv="no, consider installing GNU libiconv"
13031     am_cv_lib_iconv=no
13032     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h.  */
13034 #include <stdlib.h>
13035 #include <iconv.h>
13036 int
13037 main ()
13038 {
13039 iconv_t cd = iconv_open("","");
13040        iconv(cd,NULL,NULL,NULL,NULL);
13041        iconv_close(cd);
13042   ;
13043   return 0;
13044 }
13045 _ACEOF
13046 if ac_fn_c_try_link "$LINENO"; then :
13047   am_cv_func_iconv=yes
13048 fi
13049 rm -f core conftest.err conftest.$ac_objext \
13050     conftest$ac_exeext conftest.$ac_ext
13051     if test "$am_cv_func_iconv" != yes; then
13052       am_save_LIBS="$LIBS"
13053       LIBS="$LIBS $LIBICONV"
13054       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h.  */
13056 #include <stdlib.h>
13057 #include <iconv.h>
13058 int
13059 main ()
13060 {
13061 iconv_t cd = iconv_open("","");
13062          iconv(cd,NULL,NULL,NULL,NULL);
13063          iconv_close(cd);
13064   ;
13065   return 0;
13066 }
13067 _ACEOF
13068 if ac_fn_c_try_link "$LINENO"; then :
13069   am_cv_lib_iconv=yes
13070         am_cv_func_iconv=yes
13071 fi
13072 rm -f core conftest.err conftest.$ac_objext \
13073     conftest$ac_exeext conftest.$ac_ext
13074       LIBS="$am_save_LIBS"
13075     fi
13076
13077 fi
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13079 $as_echo "$am_cv_func_iconv" >&6; }
13080   if test "$am_cv_func_iconv" = yes; then
13081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13082 $as_echo_n "checking for working iconv... " >&6; }
13083 if ${am_cv_func_iconv_works+:} false; then :
13084   $as_echo_n "(cached) " >&6
13085 else
13086
13087             am_save_LIBS="$LIBS"
13088       if test $am_cv_lib_iconv = yes; then
13089         LIBS="$LIBS $LIBICONV"
13090       fi
13091       if test "$cross_compiling" = yes; then :
13092   case "$host_os" in
13093            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13094            *)            am_cv_func_iconv_works="guessing yes" ;;
13095          esac
13096 else
13097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h.  */
13099
13100 #include <iconv.h>
13101 #include <string.h>
13102 int main ()
13103 {
13104   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13105      returns.  */
13106   {
13107     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13108     if (cd_utf8_to_88591 != (iconv_t)(-1))
13109       {
13110         static const char input[] = "\342\202\254"; /* EURO SIGN */
13111         char buf[10];
13112         const char *inptr = input;
13113         size_t inbytesleft = strlen (input);
13114         char *outptr = buf;
13115         size_t outbytesleft = sizeof (buf);
13116         size_t res = iconv (cd_utf8_to_88591,
13117                             (char **) &inptr, &inbytesleft,
13118                             &outptr, &outbytesleft);
13119         if (res == 0)
13120           return 1;
13121       }
13122   }
13123   /* Test against Solaris 10 bug: Failures are not distinguishable from
13124      successful returns.  */
13125   {
13126     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13127     if (cd_ascii_to_88591 != (iconv_t)(-1))
13128       {
13129         static const char input[] = "\263";
13130         char buf[10];
13131         const char *inptr = input;
13132         size_t inbytesleft = strlen (input);
13133         char *outptr = buf;
13134         size_t outbytesleft = sizeof (buf);
13135         size_t res = iconv (cd_ascii_to_88591,
13136                             (char **) &inptr, &inbytesleft,
13137                             &outptr, &outbytesleft);
13138         if (res == 0)
13139           return 1;
13140       }
13141   }
13142 #if 0 /* This bug could be worked around by the caller.  */
13143   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
13144   {
13145     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13146     if (cd_88591_to_utf8 != (iconv_t)(-1))
13147       {
13148         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13149         char buf[50];
13150         const char *inptr = input;
13151         size_t inbytesleft = strlen (input);
13152         char *outptr = buf;
13153         size_t outbytesleft = sizeof (buf);
13154         size_t res = iconv (cd_88591_to_utf8,
13155                             (char **) &inptr, &inbytesleft,
13156                             &outptr, &outbytesleft);
13157         if ((int)res > 0)
13158           return 1;
13159       }
13160   }
13161 #endif
13162   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13163      provided.  */
13164   if (/* Try standardized names.  */
13165       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13166       /* Try IRIX, OSF/1 names.  */
13167       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13168       /* Try AIX names.  */
13169       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13170       /* Try HP-UX names.  */
13171       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13172     return 1;
13173   return 0;
13174 }
13175 _ACEOF
13176 if ac_fn_c_try_run "$LINENO"; then :
13177   am_cv_func_iconv_works=yes
13178 else
13179   am_cv_func_iconv_works=no
13180 fi
13181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13182   conftest.$ac_objext conftest.beam conftest.$ac_ext
13183 fi
13184
13185       LIBS="$am_save_LIBS"
13186
13187 fi
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13189 $as_echo "$am_cv_func_iconv_works" >&6; }
13190     case "$am_cv_func_iconv_works" in
13191       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13192       *)   am_func_iconv=yes ;;
13193     esac
13194   else
13195     am_func_iconv=no am_cv_lib_iconv=no
13196   fi
13197   if test "$am_func_iconv" = yes; then
13198
13199 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13200
13201   fi
13202   if test "$am_cv_lib_iconv" = yes; then
13203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13204 $as_echo_n "checking how to link with libiconv... " >&6; }
13205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13206 $as_echo "$LIBICONV" >&6; }
13207   else
13208             CPPFLAGS="$am_save_CPPFLAGS"
13209     LIBICONV=
13210     LTLIBICONV=
13211   fi
13212
13213
13214
13215   if test "$am_cv_func_iconv" = yes; then
13216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13217 $as_echo_n "checking for iconv declaration... " >&6; }
13218     if ${am_cv_proto_iconv+:} false; then :
13219   $as_echo_n "(cached) " >&6
13220 else
13221
13222       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h.  */
13224
13225 #include <stdlib.h>
13226 #include <iconv.h>
13227 extern
13228 #ifdef __cplusplus
13229 "C"
13230 #endif
13231 #if defined(__STDC__) || defined(__cplusplus)
13232 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13233 #else
13234 size_t iconv();
13235 #endif
13236
13237 int
13238 main ()
13239 {
13240
13241   ;
13242   return 0;
13243 }
13244 _ACEOF
13245 if ac_fn_c_try_compile "$LINENO"; then :
13246   am_cv_proto_iconv_arg1=""
13247 else
13248   am_cv_proto_iconv_arg1="const"
13249 fi
13250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13251       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13252 fi
13253
13254     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13255     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
13256          $am_cv_proto_iconv" >&5
13257 $as_echo "
13258          $am_cv_proto_iconv" >&6; }
13259
13260 cat >>confdefs.h <<_ACEOF
13261 #define ICONV_CONST $am_cv_proto_iconv_arg1
13262 _ACEOF
13263
13264   fi
13265
13266 if test "x$am_cv_func_iconv" != "xyes"; then
13267         as_fn_error $? "Cannot find the iconv() function.
13268         iconv() is used to convert between UTF-8 and UTF-16 encodings of WIM
13269         filenames and XML data.  Wimlib cannot be compiled without it.  iconv()
13270         is available in the latest version of glibc and sometimes in other
13271         libraries." "$LINENO" 5
13272 fi
13273
13274
13275 # Check whether --with-pkgconfigdir was given.
13276 if test "${with_pkgconfigdir+set}" = set; then :
13277   withval=$with_pkgconfigdir; pkgconfigdir=$withval
13278 else
13279   pkgconfigdir='${libdir}/pkgconfig'
13280 fi
13281
13282
13283
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
13285 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
13286 if ${ac_cv_lib_xml2_xmlParseFile+:} false; then :
13287   $as_echo_n "(cached) " >&6
13288 else
13289   ac_check_lib_save_LIBS=$LIBS
13290 LIBS="-lxml2  $LIBS"
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h.  */
13293
13294 /* Override any GCC internal prototype to avoid an error.
13295    Use char because int might match the return type of a GCC
13296    builtin and then its argument prototype would still apply.  */
13297 #ifdef __cplusplus
13298 extern "C"
13299 #endif
13300 char xmlParseFile ();
13301 int
13302 main ()
13303 {
13304 return xmlParseFile ();
13305   ;
13306   return 0;
13307 }
13308 _ACEOF
13309 if ac_fn_c_try_link "$LINENO"; then :
13310   ac_cv_lib_xml2_xmlParseFile=yes
13311 else
13312   ac_cv_lib_xml2_xmlParseFile=no
13313 fi
13314 rm -f core conftest.err conftest.$ac_objext \
13315     conftest$ac_exeext conftest.$ac_ext
13316 LIBS=$ac_check_lib_save_LIBS
13317 fi
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
13319 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
13320 if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then :
13321   have_libxml=true
13322 else
13323   as_fn_error $? "\"cannot find libxml2\"" "$LINENO" 5
13324 fi
13325
13326 LIBXML2_LDADD=`pkg-config libxml-2.0 --libs`
13327 LIBXML2_CFLAGS=`pkg-config libxml-2.0 --cflags`
13328 LIBXML2_LDADD=$LIBXML2_LDADD
13329
13330 LIBXML2_CFLAGS=$LIBXML2_CFLAGS
13331
13332
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging messages" >&5
13334 $as_echo_n "checking whether to include debugging messages... " >&6; }
13335 # Check whether --enable-debug was given.
13336 if test "${enable_debug+set}" = set; then :
13337   enableval=$enable_debug; ENABLE_DEBUG=$enableval
13338 else
13339   ENABLE_DEBUG=no
13340
13341 fi
13342
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG" >&5
13344 $as_echo "$ENABLE_DEBUG" >&6; }
13345 if test "x$ENABLE_DEBUG" = "xyes"; then
13346
13347 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
13348
13349 fi
13350
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include more debugging messages" >&5
13352 $as_echo_n "checking whether to include more debugging messages... " >&6; }
13353 # Check whether --enable-more_debug was given.
13354 if test "${enable_more_debug+set}" = set; then :
13355   enableval=$enable_more_debug; ENABLE_MORE_DEBUG=$enableval
13356 else
13357   ENABLE_MORE_DEBUG=no
13358
13359 fi
13360
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_MORE_DEBUG" >&5
13362 $as_echo "$ENABLE_MORE_DEBUG" >&6; }
13363 if test "x$ENABLE_MORE_DEBUG" = "xyes"; then
13364
13365 $as_echo "#define ENABLE_MORE_DEBUG 1" >>confdefs.h
13366
13367 fi
13368
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include error messages" >&5
13370 $as_echo_n "checking whether to include error messages... " >&6; }
13371 # Check whether --enable-error_messages was given.
13372 if test "${enable_error_messages+set}" = set; then :
13373   enableval=$enable_error_messages; ENABLE_ERROR_MESSAGES=$enableval
13374 else
13375   ENABLE_ERROR_MESSAGES=yes
13376
13377 fi
13378
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_ERROR_MESSAGES" >&5
13380 $as_echo "$ENABLE_ERROR_MESSAGES" >&6; }
13381 if test "x$ENABLE_ERROR_MESSAGES" = "xyes"; then
13382
13383 $as_echo "#define ENABLE_ERROR_MESSAGES 1" >>confdefs.h
13384
13385 fi
13386
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support custom memory allocation functions" >&5
13388 $as_echo_n "checking whether to support custom memory allocation functions... " >&6; }
13389 # Check whether --enable-custom_memory_allocator was given.
13390 if test "${enable_custom_memory_allocator+set}" = set; then :
13391   enableval=$enable_custom_memory_allocator; ENABLE_CUSTOM_MEMORY_ALLOCATOR=$enableval
13392 else
13393   ENABLE_CUSTOM_MEMORY_ALLOCATOR=yes
13394
13395 fi
13396
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_CUSTOM_MEMORY_ALLOCATOR" >&5
13398 $as_echo "$ENABLE_CUSTOM_MEMORY_ALLOCATOR" >&6; }
13399 if test "x$ENABLE_CUSTOM_MEMORY_ALLOCATOR" = "xyes"; then
13400
13401 $as_echo "#define ENABLE_CUSTOM_MEMORY_ALLOCATOR 1" >>confdefs.h
13402
13403 fi
13404
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include assertions" >&5
13406 $as_echo_n "checking whether to include assertions... " >&6; }
13407 # Check whether --enable-assertions was given.
13408 if test "${enable_assertions+set}" = set; then :
13409   enableval=$enable_assertions; ENABLE_ASSERTIONS=$enableval
13410 else
13411   ENABLE_ASSERTIONS=yes
13412
13413 fi
13414
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_ASSERTIONS" >&5
13416 $as_echo "$ENABLE_ASSERTIONS" >&6; }
13417 if test "x$ENABLE_ASSERTIONS" = "xyes"; then
13418
13419 $as_echo "#define ENABLE_ASSERTIONS 1" >>confdefs.h
13420
13421 fi
13422
13423
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include compression verification" >&5
13425 $as_echo_n "checking whether to include compression verification... " >&6; }
13426 # Check whether --enable-verify_compression was given.
13427 if test "${enable_verify_compression+set}" = set; then :
13428   enableval=$enable_verify_compression; ENABLE_VERIFY_COMPRESSION=$enableval
13429 else
13430   ENABLE_VERIFY_COMPRESSION=yes
13431
13432 fi
13433
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_VERIFY_COMPRESSION" >&5
13435 $as_echo "$ENABLE_VERIFY_COMPRESSION" >&6; }
13436 if test "x$ENABLE_VERIFY_COMPRESSION" = "xyes"; then
13437
13438 $as_echo "#define ENABLE_VERIFY_COMPRESSION 1" >>confdefs.h
13439
13440 fi
13441
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for copying security data" >&5
13443 $as_echo_n "checking whether to include support for copying security data... " >&6; }
13444 # Check whether --enable-security_data was given.
13445 if test "${enable_security_data+set}" = set; then :
13446   enableval=$enable_security_data; ENABLE_SECURITY_DATA=$enableval
13447 else
13448   ENABLE_SECURITY_DATA=yes
13449
13450 fi
13451
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SECURITY_DATA" >&5
13453 $as_echo "$ENABLE_SECURITY_DATA" >&6; }
13454 if test "x$ENABLE_SECURITY_DATA" = "xyes"; then
13455
13456 $as_echo "#define ENABLE_SECURITY_DATA 1" >>confdefs.h
13457
13458 fi
13459
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for mounting WIMs" >&5
13461 $as_echo_n "checking whether to include support for mounting WIMs... " >&6; }
13462
13463 # Check whether --with-fuse was given.
13464 if test "${with_fuse+set}" = set; then :
13465   withval=$with_fuse; WITH_FUSE=$withval
13466 else
13467   WITH_FUSE=yes
13468
13469 fi
13470
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FUSE" >&5
13472 $as_echo "$WITH_FUSE" >&6; }
13473 if test "x$WITH_FUSE" = "xyes"; then
13474
13475 $as_echo "#define WITH_FUSE 1" >>confdefs.h
13476
13477
13478
13479         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
13480 $as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
13481 if ${ac_cv_lib_fuse_fuse_main_real+:} false; then :
13482   $as_echo_n "(cached) " >&6
13483 else
13484   ac_check_lib_save_LIBS=$LIBS
13485 LIBS="-lfuse  $LIBS"
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h.  */
13488
13489 /* Override any GCC internal prototype to avoid an error.
13490    Use char because int might match the return type of a GCC
13491    builtin and then its argument prototype would still apply.  */
13492 #ifdef __cplusplus
13493 extern "C"
13494 #endif
13495 char fuse_main_real ();
13496 int
13497 main ()
13498 {
13499 return fuse_main_real ();
13500   ;
13501   return 0;
13502 }
13503 _ACEOF
13504 if ac_fn_c_try_link "$LINENO"; then :
13505   ac_cv_lib_fuse_fuse_main_real=yes
13506 else
13507   ac_cv_lib_fuse_fuse_main_real=no
13508 fi
13509 rm -f core conftest.err conftest.$ac_objext \
13510     conftest$ac_exeext conftest.$ac_ext
13511 LIBS=$ac_check_lib_save_LIBS
13512 fi
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
13514 $as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
13515 if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes; then :
13516   have_fuse=true
13517 else
13518   as_fn_error $? "Cannot find libfuse.
13519         Without libfuse, WIMLIB cannot include support for mounting WIMs.  You
13520         should either install libfuse, or configure with --without-fuse to
13521         disable support for mounting WIMs." "$LINENO" 5
13522
13523 fi
13524
13525         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mq_open in -lrt" >&5
13526 $as_echo_n "checking for mq_open in -lrt... " >&6; }
13527 if ${ac_cv_lib_rt_mq_open+:} false; then :
13528   $as_echo_n "(cached) " >&6
13529 else
13530   ac_check_lib_save_LIBS=$LIBS
13531 LIBS="-lrt  $LIBS"
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h.  */
13534
13535 /* Override any GCC internal prototype to avoid an error.
13536    Use char because int might match the return type of a GCC
13537    builtin and then its argument prototype would still apply.  */
13538 #ifdef __cplusplus
13539 extern "C"
13540 #endif
13541 char mq_open ();
13542 int
13543 main ()
13544 {
13545 return mq_open ();
13546   ;
13547   return 0;
13548 }
13549 _ACEOF
13550 if ac_fn_c_try_link "$LINENO"; then :
13551   ac_cv_lib_rt_mq_open=yes
13552 else
13553   ac_cv_lib_rt_mq_open=no
13554 fi
13555 rm -f core conftest.err conftest.$ac_objext \
13556     conftest$ac_exeext conftest.$ac_ext
13557 LIBS=$ac_check_lib_save_LIBS
13558 fi
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_mq_open" >&5
13560 $as_echo "$ac_cv_lib_rt_mq_open" >&6; }
13561 if test "x$ac_cv_lib_rt_mq_open" = xyes; then :
13562   have_posix_mq=true
13563 else
13564   as_fn_error $? "Cannot find librt for POSIX message queue
13565         functions.  Without these functions, WIMLIB cannot include support for
13566         mounting WIMs.  You should either update your C library to a recent
13567         version of glibc, or configure with --without-fuse to disable support
13568         for mounting WIMs." "$LINENO" 5
13569
13570 fi
13571
13572         LIBFUSE_LDADD="`pkg-config --libs fuse` -lrt"
13573         LIBFUSE_CFLAGS="`pkg-config --cflags fuse`"
13574 else
13575         LIBFUSE_LDADD=
13576         LIBFUSE_CFLAGS=
13577 fi
13578 LIBFUSE_LDADD=$LIBFUSE_LDADD
13579
13580 LIBFUSE_CFLAGS=$LIBFUSE_CFLAGS
13581
13582
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SSSE3-accelerated SHA1 " >&5
13584 $as_echo_n "checking whether to use SSSE3-accelerated SHA1 ... " >&6; }
13585 # Check whether --enable-ssse3-sha1 was given.
13586 if test "${enable_ssse3_sha1+set}" = set; then :
13587   enableval=$enable_ssse3_sha1; ENABLE_SSSE3_SHA1=$enableval
13588 else
13589   ENABLE_SSSE3_SHA1=no
13590
13591 fi
13592
13593
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SSSE3_SHA1" >&5
13595 $as_echo "$ENABLE_SSSE3_SHA1" >&6; }
13596 if test "x$ENABLE_SSSE3_SHA1" = "xyes"; then
13597
13598 $as_echo "#define ENABLE_SSSE3_SHA1 1" >>confdefs.h
13599
13600         SSSE3_SHA1_OBJ=sha1-ssse3.lo
13601
13602 for ac_prog in nasm nasmw
13603 do
13604   # Extract the first word of "$ac_prog", so it can be a program name with args.
13605 set dummy $ac_prog; ac_word=$2
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13607 $as_echo_n "checking for $ac_word... " >&6; }
13608 if ${ac_cv_prog_nasm+:} false; then :
13609   $as_echo_n "(cached) " >&6
13610 else
13611   if test -n "$nasm"; then
13612   ac_cv_prog_nasm="$nasm" # Let the user override the test.
13613 else
13614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615 for as_dir in $PATH
13616 do
13617   IFS=$as_save_IFS
13618   test -z "$as_dir" && as_dir=.
13619     for ac_exec_ext in '' $ac_executable_extensions; do
13620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13621     ac_cv_prog_nasm="$ac_prog"
13622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13623     break 2
13624   fi
13625 done
13626   done
13627 IFS=$as_save_IFS
13628
13629 fi
13630 fi
13631 nasm=$ac_cv_prog_nasm
13632 if test -n "$nasm"; then
13633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nasm" >&5
13634 $as_echo "$nasm" >&6; }
13635 else
13636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637 $as_echo "no" >&6; }
13638 fi
13639
13640
13641   test -n "$nasm" && break
13642 done
13643 test -n "$nasm" || nasm="no"
13644
13645 if test "x$nasm" = "xno" ;
13646 then
13647         as_fn_error $? "NASM assembler not found" "$LINENO" 5
13648 fi
13649
13650         NASM=$nasm
13651
13652 else
13653         SSSE3_SHA1_OBJ=
13654 fi
13655 SSSE3_SHA1_OBJ=$SSSE3_SHA1_OBJ
13656
13657
13658 if test "x$ENABLE_SSSE3_SHA1" = "xyes"; then
13659         WITH_LIBCRYPTO=no
13660 else
13661
13662 # Check whether --with-libcrypto was given.
13663 if test "${with_libcrypto+set}" = set; then :
13664   withval=$with_libcrypto; WITH_LIBCRYPTO=$withval
13665 else
13666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 in -lcrypto" >&5
13667 $as_echo_n "checking for SHA1 in -lcrypto... " >&6; }
13668 if ${ac_cv_lib_crypto_SHA1+:} false; then :
13669   $as_echo_n "(cached) " >&6
13670 else
13671   ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-lcrypto  $LIBS"
13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h.  */
13675
13676 /* Override any GCC internal prototype to avoid an error.
13677    Use char because int might match the return type of a GCC
13678    builtin and then its argument prototype would still apply.  */
13679 #ifdef __cplusplus
13680 extern "C"
13681 #endif
13682 char SHA1 ();
13683 int
13684 main ()
13685 {
13686 return SHA1 ();
13687   ;
13688   return 0;
13689 }
13690 _ACEOF
13691 if ac_fn_c_try_link "$LINENO"; then :
13692   ac_cv_lib_crypto_SHA1=yes
13693 else
13694   ac_cv_lib_crypto_SHA1=no
13695 fi
13696 rm -f core conftest.err conftest.$ac_objext \
13697     conftest$ac_exeext conftest.$ac_ext
13698 LIBS=$ac_check_lib_save_LIBS
13699 fi
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1" >&5
13701 $as_echo "$ac_cv_lib_crypto_SHA1" >&6; }
13702 if test "x$ac_cv_lib_crypto_SHA1" = xyes; then :
13703   WITH_LIBCRYPTO=yes
13704 else
13705   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libcrypto: using stand-alone SHA1 code instead of OpenSSL" >&5
13706 $as_echo "$as_me: WARNING: Cannot find libcrypto: using stand-alone SHA1 code instead of OpenSSL" >&2;}
13707                      WITH_LIBCRYPTO=no
13708
13709 fi
13710
13711 fi
13712
13713 fi
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SHA1 function from system libcrypto" >&5
13715 $as_echo_n "checking whether to use SHA1 function from system libcrypto... " >&6; }
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LIBCRYPTO" >&5
13717 $as_echo "$WITH_LIBCRYPTO" >&6; }
13718
13719 if test "x$WITH_LIBCRYPTO" = "xyes" -a "x$ENABLE_SSSE3_SHA1" = "xno"; then
13720
13721 $as_echo "#define WITH_LIBCRYPTO 1" >>confdefs.h
13722
13723         LIBCRYPTO_LDADD=`pkg-config --libs libcrypto 2>/dev/null`
13724         if test $? -ne 0; then
13725                 LIBCRYPTO_LDADD=-lcrypto;
13726         fi
13727         LIBCRYPTO_CFLAGS=`pkg-config --cflags libcrypto 2>/dev/null`
13728 else
13729         LIBCRYPTO_LDADD=
13730         LIBCRYPTO_CFLAGS=
13731 fi
13732 LIBCRYPTO_LDADD=$LIBCRYPTO_LDADD
13733
13734 LIBCRYPTO_CFLAGS=$LIBCRYPTO_CFLAGS
13735
13736 SHA1_SOURCES=$SHA1_SOURCES
13737
13738
13739 cat >confcache <<\_ACEOF
13740 # This file is a shell script that caches the results of configure
13741 # tests run on this system so they can be shared between configure
13742 # scripts and configure runs, see configure's option --config-cache.
13743 # It is not useful on other systems.  If it contains results you don't
13744 # want to keep, you may remove or edit it.
13745 #
13746 # config.status only pays attention to the cache file if you give it
13747 # the --recheck option to rerun configure.
13748 #
13749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13751 # following values.
13752
13753 _ACEOF
13754
13755 # The following way of writing the cache mishandles newlines in values,
13756 # but we know of no workaround that is simple, portable, and efficient.
13757 # So, we kill variables containing newlines.
13758 # Ultrix sh set writes to stderr and can't be redirected directly,
13759 # and sets the high bit in the cache file unless we assign to the vars.
13760 (
13761   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13762     eval ac_val=\$$ac_var
13763     case $ac_val in #(
13764     *${as_nl}*)
13765       case $ac_var in #(
13766       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13767 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13768       esac
13769       case $ac_var in #(
13770       _ | IFS | as_nl) ;; #(
13771       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13772       *) { eval $ac_var=; unset $ac_var;} ;;
13773       esac ;;
13774     esac
13775   done
13776
13777   (set) 2>&1 |
13778     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13779     *${as_nl}ac_space=\ *)
13780       # `set' does not quote correctly, so add quotes: double-quote
13781       # substitution turns \\\\ into \\, and sed turns \\ into \.
13782       sed -n \
13783         "s/'/'\\\\''/g;
13784           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13785       ;; #(
13786     *)
13787       # `set' quotes correctly as required by POSIX, so do not add quotes.
13788       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13789       ;;
13790     esac |
13791     sort
13792 ) |
13793   sed '
13794      /^ac_cv_env_/b end
13795      t clear
13796      :clear
13797      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13798      t end
13799      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13800      :end' >>confcache
13801 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13802   if test -w "$cache_file"; then
13803     if test "x$cache_file" != "x/dev/null"; then
13804       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13805 $as_echo "$as_me: updating cache $cache_file" >&6;}
13806       if test ! -f "$cache_file" || test -h "$cache_file"; then
13807         cat confcache >"$cache_file"
13808       else
13809         case $cache_file in #(
13810         */* | ?:*)
13811           mv -f confcache "$cache_file"$$ &&
13812           mv -f "$cache_file"$$ "$cache_file" ;; #(
13813         *)
13814           mv -f confcache "$cache_file" ;;
13815         esac
13816       fi
13817     fi
13818   else
13819     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13820 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13821   fi
13822 fi
13823 rm -f confcache
13824
13825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13826 # Let make expand exec_prefix.
13827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13828
13829 DEFS=-DHAVE_CONFIG_H
13830
13831 ac_libobjs=
13832 ac_ltlibobjs=
13833 U=
13834 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13835   # 1. Remove the extension, and $U if already installed.
13836   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13837   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13838   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13839   #    will be set to the directory where LIBOBJS objects are built.
13840   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13841   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13842 done
13843 LIBOBJS=$ac_libobjs
13844
13845 LTLIBOBJS=$ac_ltlibobjs
13846
13847
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13849 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13850    if test -n "$am_sleep_pid"; then
13851      # Hide warnings about reused PIDs.
13852      wait $am_sleep_pid 2>/dev/null
13853    fi
13854    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13855 $as_echo "done" >&6; }
13856  if test -n "$EXEEXT"; then
13857   am__EXEEXT_TRUE=
13858   am__EXEEXT_FALSE='#'
13859 else
13860   am__EXEEXT_TRUE='#'
13861   am__EXEEXT_FALSE=
13862 fi
13863
13864 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13865   as_fn_error $? "conditional \"AMDEP\" was never defined.
13866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13867 fi
13868 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13869   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13871 fi
13872
13873 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13874   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13876 fi
13877
13878 : "${CONFIG_STATUS=./config.status}"
13879 ac_write_fail=0
13880 ac_clean_files_save=$ac_clean_files
13881 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13883 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13884 as_write_fail=0
13885 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13886 #! $SHELL
13887 # Generated by $as_me.
13888 # Run this file to recreate the current configuration.
13889 # Compiler output produced by configure, useful for debugging
13890 # configure, is in config.log if it exists.
13891
13892 debug=false
13893 ac_cs_recheck=false
13894 ac_cs_silent=false
13895
13896 SHELL=\${CONFIG_SHELL-$SHELL}
13897 export SHELL
13898 _ASEOF
13899 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13900 ## -------------------- ##
13901 ## M4sh Initialization. ##
13902 ## -------------------- ##
13903
13904 # Be more Bourne compatible
13905 DUALCASE=1; export DUALCASE # for MKS sh
13906 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13907   emulate sh
13908   NULLCMD=:
13909   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13910   # is contrary to our usage.  Disable this feature.
13911   alias -g '${1+"$@"}'='"$@"'
13912   setopt NO_GLOB_SUBST
13913 else
13914   case `(set -o) 2>/dev/null` in #(
13915   *posix*) :
13916     set -o posix ;; #(
13917   *) :
13918      ;;
13919 esac
13920 fi
13921
13922
13923 as_nl='
13924 '
13925 export as_nl
13926 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13927 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13929 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13930 # Prefer a ksh shell builtin over an external printf program on Solaris,
13931 # but without wasting forks for bash or zsh.
13932 if test -z "$BASH_VERSION$ZSH_VERSION" \
13933     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13934   as_echo='print -r --'
13935   as_echo_n='print -rn --'
13936 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13937   as_echo='printf %s\n'
13938   as_echo_n='printf %s'
13939 else
13940   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13941     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13942     as_echo_n='/usr/ucb/echo -n'
13943   else
13944     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13945     as_echo_n_body='eval
13946       arg=$1;
13947       case $arg in #(
13948       *"$as_nl"*)
13949         expr "X$arg" : "X\\(.*\\)$as_nl";
13950         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13951       esac;
13952       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13953     '
13954     export as_echo_n_body
13955     as_echo_n='sh -c $as_echo_n_body as_echo'
13956   fi
13957   export as_echo_body
13958   as_echo='sh -c $as_echo_body as_echo'
13959 fi
13960
13961 # The user is always right.
13962 if test "${PATH_SEPARATOR+set}" != set; then
13963   PATH_SEPARATOR=:
13964   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13965     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13966       PATH_SEPARATOR=';'
13967   }
13968 fi
13969
13970
13971 # IFS
13972 # We need space, tab and new line, in precisely that order.  Quoting is
13973 # there to prevent editors from complaining about space-tab.
13974 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13975 # splitting by setting IFS to empty value.)
13976 IFS=" ""        $as_nl"
13977
13978 # Find who we are.  Look in the path if we contain no directory separator.
13979 as_myself=
13980 case $0 in #((
13981   *[\\/]* ) as_myself=$0 ;;
13982   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13983 for as_dir in $PATH
13984 do
13985   IFS=$as_save_IFS
13986   test -z "$as_dir" && as_dir=.
13987     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13988   done
13989 IFS=$as_save_IFS
13990
13991      ;;
13992 esac
13993 # We did not find ourselves, most probably we were run as `sh COMMAND'
13994 # in which case we are not to be found in the path.
13995 if test "x$as_myself" = x; then
13996   as_myself=$0
13997 fi
13998 if test ! -f "$as_myself"; then
13999   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14000   exit 1
14001 fi
14002
14003 # Unset variables that we do not need and which cause bugs (e.g. in
14004 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14005 # suppresses any "Segmentation fault" message there.  '((' could
14006 # trigger a bug in pdksh 5.2.14.
14007 for as_var in BASH_ENV ENV MAIL MAILPATH
14008 do eval test x\${$as_var+set} = xset \
14009   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14010 done
14011 PS1='$ '
14012 PS2='> '
14013 PS4='+ '
14014
14015 # NLS nuisances.
14016 LC_ALL=C
14017 export LC_ALL
14018 LANGUAGE=C
14019 export LANGUAGE
14020
14021 # CDPATH.
14022 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14023
14024
14025 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14026 # ----------------------------------------
14027 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14028 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14029 # script with STATUS, using 1 if that was 0.
14030 as_fn_error ()
14031 {
14032   as_status=$1; test $as_status -eq 0 && as_status=1
14033   if test "$4"; then
14034     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14035     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14036   fi
14037   $as_echo "$as_me: error: $2" >&2
14038   as_fn_exit $as_status
14039 } # as_fn_error
14040
14041
14042 # as_fn_set_status STATUS
14043 # -----------------------
14044 # Set $? to STATUS, without forking.
14045 as_fn_set_status ()
14046 {
14047   return $1
14048 } # as_fn_set_status
14049
14050 # as_fn_exit STATUS
14051 # -----------------
14052 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14053 as_fn_exit ()
14054 {
14055   set +e
14056   as_fn_set_status $1
14057   exit $1
14058 } # as_fn_exit
14059
14060 # as_fn_unset VAR
14061 # ---------------
14062 # Portably unset VAR.
14063 as_fn_unset ()
14064 {
14065   { eval $1=; unset $1;}
14066 }
14067 as_unset=as_fn_unset
14068 # as_fn_append VAR VALUE
14069 # ----------------------
14070 # Append the text in VALUE to the end of the definition contained in VAR. Take
14071 # advantage of any shell optimizations that allow amortized linear growth over
14072 # repeated appends, instead of the typical quadratic growth present in naive
14073 # implementations.
14074 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14075   eval 'as_fn_append ()
14076   {
14077     eval $1+=\$2
14078   }'
14079 else
14080   as_fn_append ()
14081   {
14082     eval $1=\$$1\$2
14083   }
14084 fi # as_fn_append
14085
14086 # as_fn_arith ARG...
14087 # ------------------
14088 # Perform arithmetic evaluation on the ARGs, and store the result in the
14089 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14090 # must be portable across $(()) and expr.
14091 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14092   eval 'as_fn_arith ()
14093   {
14094     as_val=$(( $* ))
14095   }'
14096 else
14097   as_fn_arith ()
14098   {
14099     as_val=`expr "$@" || test $? -eq 1`
14100   }
14101 fi # as_fn_arith
14102
14103
14104 if expr a : '\(a\)' >/dev/null 2>&1 &&
14105    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14106   as_expr=expr
14107 else
14108   as_expr=false
14109 fi
14110
14111 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14112   as_basename=basename
14113 else
14114   as_basename=false
14115 fi
14116
14117 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14118   as_dirname=dirname
14119 else
14120   as_dirname=false
14121 fi
14122
14123 as_me=`$as_basename -- "$0" ||
14124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14125          X"$0" : 'X\(//\)$' \| \
14126          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14127 $as_echo X/"$0" |
14128     sed '/^.*\/\([^/][^/]*\)\/*$/{
14129             s//\1/
14130             q
14131           }
14132           /^X\/\(\/\/\)$/{
14133             s//\1/
14134             q
14135           }
14136           /^X\/\(\/\).*/{
14137             s//\1/
14138             q
14139           }
14140           s/.*/./; q'`
14141
14142 # Avoid depending upon Character Ranges.
14143 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14144 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14145 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14146 as_cr_digits='0123456789'
14147 as_cr_alnum=$as_cr_Letters$as_cr_digits
14148
14149 ECHO_C= ECHO_N= ECHO_T=
14150 case `echo -n x` in #(((((
14151 -n*)
14152   case `echo 'xy\c'` in
14153   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14154   xy)  ECHO_C='\c';;
14155   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14156        ECHO_T=' ';;
14157   esac;;
14158 *)
14159   ECHO_N='-n';;
14160 esac
14161
14162 rm -f conf$$ conf$$.exe conf$$.file
14163 if test -d conf$$.dir; then
14164   rm -f conf$$.dir/conf$$.file
14165 else
14166   rm -f conf$$.dir
14167   mkdir conf$$.dir 2>/dev/null
14168 fi
14169 if (echo >conf$$.file) 2>/dev/null; then
14170   if ln -s conf$$.file conf$$ 2>/dev/null; then
14171     as_ln_s='ln -s'
14172     # ... but there are two gotchas:
14173     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14174     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14175     # In both cases, we have to default to `cp -pR'.
14176     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14177       as_ln_s='cp -pR'
14178   elif ln conf$$.file conf$$ 2>/dev/null; then
14179     as_ln_s=ln
14180   else
14181     as_ln_s='cp -pR'
14182   fi
14183 else
14184   as_ln_s='cp -pR'
14185 fi
14186 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14187 rmdir conf$$.dir 2>/dev/null
14188
14189
14190 # as_fn_mkdir_p
14191 # -------------
14192 # Create "$as_dir" as a directory, including parents if necessary.
14193 as_fn_mkdir_p ()
14194 {
14195
14196   case $as_dir in #(
14197   -*) as_dir=./$as_dir;;
14198   esac
14199   test -d "$as_dir" || eval $as_mkdir_p || {
14200     as_dirs=
14201     while :; do
14202       case $as_dir in #(
14203       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14204       *) as_qdir=$as_dir;;
14205       esac
14206       as_dirs="'$as_qdir' $as_dirs"
14207       as_dir=`$as_dirname -- "$as_dir" ||
14208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14209          X"$as_dir" : 'X\(//\)[^/]' \| \
14210          X"$as_dir" : 'X\(//\)$' \| \
14211          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14212 $as_echo X"$as_dir" |
14213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14214             s//\1/
14215             q
14216           }
14217           /^X\(\/\/\)[^/].*/{
14218             s//\1/
14219             q
14220           }
14221           /^X\(\/\/\)$/{
14222             s//\1/
14223             q
14224           }
14225           /^X\(\/\).*/{
14226             s//\1/
14227             q
14228           }
14229           s/.*/./; q'`
14230       test -d "$as_dir" && break
14231     done
14232     test -z "$as_dirs" || eval "mkdir $as_dirs"
14233   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14234
14235
14236 } # as_fn_mkdir_p
14237 if mkdir -p . 2>/dev/null; then
14238   as_mkdir_p='mkdir -p "$as_dir"'
14239 else
14240   test -d ./-p && rmdir ./-p
14241   as_mkdir_p=false
14242 fi
14243
14244
14245 # as_fn_executable_p FILE
14246 # -----------------------
14247 # Test if FILE is an executable regular file.
14248 as_fn_executable_p ()
14249 {
14250   test -f "$1" && test -x "$1"
14251 } # as_fn_executable_p
14252 as_test_x='test -x'
14253 as_executable_p=as_fn_executable_p
14254
14255 # Sed expression to map a string onto a valid CPP name.
14256 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14257
14258 # Sed expression to map a string onto a valid variable name.
14259 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14260
14261
14262 exec 6>&1
14263 ## ----------------------------------- ##
14264 ## Main body of $CONFIG_STATUS script. ##
14265 ## ----------------------------------- ##
14266 _ASEOF
14267 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14268
14269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14270 # Save the log message, to keep $0 and so on meaningful, and to
14271 # report actual input values of CONFIG_FILES etc. instead of their
14272 # values after options handling.
14273 ac_log="
14274 This file was extended by wimlib $as_me 0.7.2, which was
14275 generated by GNU Autoconf 2.69.  Invocation command line was
14276
14277   CONFIG_FILES    = $CONFIG_FILES
14278   CONFIG_HEADERS  = $CONFIG_HEADERS
14279   CONFIG_LINKS    = $CONFIG_LINKS
14280   CONFIG_COMMANDS = $CONFIG_COMMANDS
14281   $ $0 $@
14282
14283 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14284 "
14285
14286 _ACEOF
14287
14288 case $ac_config_files in *"
14289 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14290 esac
14291
14292 case $ac_config_headers in *"
14293 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14294 esac
14295
14296
14297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14298 # Files that config.status was made for.
14299 config_files="$ac_config_files"
14300 config_headers="$ac_config_headers"
14301 config_commands="$ac_config_commands"
14302
14303 _ACEOF
14304
14305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14306 ac_cs_usage="\
14307 \`$as_me' instantiates files and other configuration actions
14308 from templates according to the current configuration.  Unless the files
14309 and actions are specified as TAGs, all are instantiated by default.
14310
14311 Usage: $0 [OPTION]... [TAG]...
14312
14313   -h, --help       print this help, then exit
14314   -V, --version    print version number and configuration settings, then exit
14315       --config     print configuration, then exit
14316   -q, --quiet, --silent
14317                    do not print progress messages
14318   -d, --debug      don't remove temporary files
14319       --recheck    update $as_me by reconfiguring in the same conditions
14320       --file=FILE[:TEMPLATE]
14321                    instantiate the configuration file FILE
14322       --header=FILE[:TEMPLATE]
14323                    instantiate the configuration header FILE
14324
14325 Configuration files:
14326 $config_files
14327
14328 Configuration headers:
14329 $config_headers
14330
14331 Configuration commands:
14332 $config_commands
14333
14334 Report bugs to <ebiggers3@gmail.com>."
14335
14336 _ACEOF
14337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14338 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14339 ac_cs_version="\\
14340 wimlib config.status 0.7.2
14341 configured by $0, generated by GNU Autoconf 2.69,
14342   with options \\"\$ac_cs_config\\"
14343
14344 Copyright (C) 2012 Free Software Foundation, Inc.
14345 This config.status script is free software; the Free Software Foundation
14346 gives unlimited permission to copy, distribute and modify it."
14347
14348 ac_pwd='$ac_pwd'
14349 srcdir='$srcdir'
14350 INSTALL='$INSTALL'
14351 MKDIR_P='$MKDIR_P'
14352 AWK='$AWK'
14353 test -n "\$AWK" || AWK=awk
14354 _ACEOF
14355
14356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14357 # The default lists apply if the user does not specify any file.
14358 ac_need_defaults=:
14359 while test $# != 0
14360 do
14361   case $1 in
14362   --*=?*)
14363     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14364     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14365     ac_shift=:
14366     ;;
14367   --*=)
14368     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14369     ac_optarg=
14370     ac_shift=:
14371     ;;
14372   *)
14373     ac_option=$1
14374     ac_optarg=$2
14375     ac_shift=shift
14376     ;;
14377   esac
14378
14379   case $ac_option in
14380   # Handling of the options.
14381   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14382     ac_cs_recheck=: ;;
14383   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14384     $as_echo "$ac_cs_version"; exit ;;
14385   --config | --confi | --conf | --con | --co | --c )
14386     $as_echo "$ac_cs_config"; exit ;;
14387   --debug | --debu | --deb | --de | --d | -d )
14388     debug=: ;;
14389   --file | --fil | --fi | --f )
14390     $ac_shift
14391     case $ac_optarg in
14392     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14393     '') as_fn_error $? "missing file argument" ;;
14394     esac
14395     as_fn_append CONFIG_FILES " '$ac_optarg'"
14396     ac_need_defaults=false;;
14397   --header | --heade | --head | --hea )
14398     $ac_shift
14399     case $ac_optarg in
14400     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14401     esac
14402     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14403     ac_need_defaults=false;;
14404   --he | --h)
14405     # Conflict between --help and --header
14406     as_fn_error $? "ambiguous option: \`$1'
14407 Try \`$0 --help' for more information.";;
14408   --help | --hel | -h )
14409     $as_echo "$ac_cs_usage"; exit ;;
14410   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14411   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14412     ac_cs_silent=: ;;
14413
14414   # This is an error.
14415   -*) as_fn_error $? "unrecognized option: \`$1'
14416 Try \`$0 --help' for more information." ;;
14417
14418   *) as_fn_append ac_config_targets " $1"
14419      ac_need_defaults=false ;;
14420
14421   esac
14422   shift
14423 done
14424
14425 ac_configure_extra_args=
14426
14427 if $ac_cs_silent; then
14428   exec 6>/dev/null
14429   ac_configure_extra_args="$ac_configure_extra_args --silent"
14430 fi
14431
14432 _ACEOF
14433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14434 if \$ac_cs_recheck; then
14435   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14436   shift
14437   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14438   CONFIG_SHELL='$SHELL'
14439   export CONFIG_SHELL
14440   exec "\$@"
14441 fi
14442
14443 _ACEOF
14444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14445 exec 5>>config.log
14446 {
14447   echo
14448   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14449 ## Running $as_me. ##
14450 _ASBOX
14451   $as_echo "$ac_log"
14452 } >&5
14453
14454 _ACEOF
14455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14456 #
14457 # INIT-COMMANDS
14458 #
14459 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14460
14461
14462 # The HP-UX ksh and POSIX shell print the target directory to stdout
14463 # if CDPATH is set.
14464 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14465
14466 sed_quote_subst='$sed_quote_subst'
14467 double_quote_subst='$double_quote_subst'
14468 delay_variable_subst='$delay_variable_subst'
14469 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14470 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14471 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14472 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14473 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14474 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14475 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14476 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14477 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14478 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14479 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14480 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14481 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14482 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14483 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14484 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14485 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14486 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14487 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14488 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14489 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14490 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14491 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14492 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14493 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14494 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14495 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14496 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14497 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14498 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14499 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14500 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14501 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14502 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14503 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14504 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14505 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14506 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14507 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14508 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14509 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14510 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14511 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14512 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14513 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14514 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14515 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14516 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14517 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14518 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14519 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14520 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14521 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14522 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14523 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14524 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14525 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"`'
14526 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14527 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14528 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14529 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14530 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14531 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14532 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14533 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14534 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14535 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14536 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14537 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14538 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14539 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14540 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14541 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14542 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14543 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14544 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14545 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14546 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14547 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14548 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14549 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14550 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14551 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14552 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14553 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14554 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14555 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14556 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14557 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14558 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14559 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14560 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14561 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14562 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14563 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14564 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14565 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14566 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14567 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14568 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14569 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14570 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14571 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14572 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14573 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14574 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14575 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14576 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14577 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14578 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14579 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14580 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14581 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14582 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14583 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14584 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14585 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14586 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14587 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14588 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14589 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14590 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14591 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14592 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14593 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14594 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14595 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14596 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14597 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14598 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14599
14600 LTCC='$LTCC'
14601 LTCFLAGS='$LTCFLAGS'
14602 compiler='$compiler_DEFAULT'
14603
14604 # A function that is used when there is no print builtin or printf.
14605 func_fallback_echo ()
14606 {
14607   eval 'cat <<_LTECHO_EOF
14608 \$1
14609 _LTECHO_EOF'
14610 }
14611
14612 # Quote evaled strings.
14613 for var in SHELL \
14614 ECHO \
14615 PATH_SEPARATOR \
14616 SED \
14617 GREP \
14618 EGREP \
14619 FGREP \
14620 LD \
14621 NM \
14622 LN_S \
14623 lt_SP2NL \
14624 lt_NL2SP \
14625 reload_flag \
14626 OBJDUMP \
14627 deplibs_check_method \
14628 file_magic_cmd \
14629 file_magic_glob \
14630 want_nocaseglob \
14631 DLLTOOL \
14632 sharedlib_from_linklib_cmd \
14633 AR \
14634 AR_FLAGS \
14635 archiver_list_spec \
14636 STRIP \
14637 RANLIB \
14638 CC \
14639 CFLAGS \
14640 compiler \
14641 lt_cv_sys_global_symbol_pipe \
14642 lt_cv_sys_global_symbol_to_cdecl \
14643 lt_cv_sys_global_symbol_to_c_name_address \
14644 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14645 nm_file_list_spec \
14646 lt_prog_compiler_no_builtin_flag \
14647 lt_prog_compiler_pic \
14648 lt_prog_compiler_wl \
14649 lt_prog_compiler_static \
14650 lt_cv_prog_compiler_c_o \
14651 need_locks \
14652 MANIFEST_TOOL \
14653 DSYMUTIL \
14654 NMEDIT \
14655 LIPO \
14656 OTOOL \
14657 OTOOL64 \
14658 shrext_cmds \
14659 export_dynamic_flag_spec \
14660 whole_archive_flag_spec \
14661 compiler_needs_object \
14662 with_gnu_ld \
14663 allow_undefined_flag \
14664 no_undefined_flag \
14665 hardcode_libdir_flag_spec \
14666 hardcode_libdir_separator \
14667 exclude_expsyms \
14668 include_expsyms \
14669 file_list_spec \
14670 variables_saved_for_relink \
14671 libname_spec \
14672 library_names_spec \
14673 soname_spec \
14674 install_override_mode \
14675 finish_eval \
14676 old_striplib \
14677 striplib; do
14678     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14679     *[\\\\\\\`\\"\\\$]*)
14680       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14681       ;;
14682     *)
14683       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14684       ;;
14685     esac
14686 done
14687
14688 # Double-quote double-evaled strings.
14689 for var in reload_cmds \
14690 old_postinstall_cmds \
14691 old_postuninstall_cmds \
14692 old_archive_cmds \
14693 extract_expsyms_cmds \
14694 old_archive_from_new_cmds \
14695 old_archive_from_expsyms_cmds \
14696 archive_cmds \
14697 archive_expsym_cmds \
14698 module_cmds \
14699 module_expsym_cmds \
14700 export_symbols_cmds \
14701 prelink_cmds \
14702 postlink_cmds \
14703 postinstall_cmds \
14704 postuninstall_cmds \
14705 finish_cmds \
14706 sys_lib_search_path_spec \
14707 sys_lib_dlsearch_path_spec; do
14708     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14709     *[\\\\\\\`\\"\\\$]*)
14710       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14711       ;;
14712     *)
14713       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14714       ;;
14715     esac
14716 done
14717
14718 ac_aux_dir='$ac_aux_dir'
14719 xsi_shell='$xsi_shell'
14720 lt_shell_append='$lt_shell_append'
14721
14722 # See if we are running on zsh, and set the options which allow our
14723 # commands through without removal of \ escapes INIT.
14724 if test -n "\${ZSH_VERSION+set}" ; then
14725    setopt NO_GLOB_SUBST
14726 fi
14727
14728
14729     PACKAGE='$PACKAGE'
14730     VERSION='$VERSION'
14731     TIMESTAMP='$TIMESTAMP'
14732     RM='$RM'
14733     ofile='$ofile'
14734
14735
14736
14737
14738 _ACEOF
14739
14740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14741
14742 # Handling of arguments.
14743 for ac_config_target in $ac_config_targets
14744 do
14745   case $ac_config_target in
14746     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14747     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14748     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14749     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14750     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14751     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14752     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14753     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14754     "wimlib.pc") CONFIG_FILES="$CONFIG_FILES wimlib.pc" ;;
14755     "doc/imagex.1") CONFIG_FILES="$CONFIG_FILES doc/imagex.1" ;;
14756     "doc/imagex-append.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-append.1" ;;
14757     "doc/imagex-apply.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-apply.1" ;;
14758     "doc/imagex-capture.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-capture.1" ;;
14759     "doc/imagex-delete.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-delete.1" ;;
14760     "doc/imagex-dir.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-dir.1" ;;
14761     "doc/imagex-export.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-export.1" ;;
14762     "doc/imagex-info.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-info.1" ;;
14763     "doc/imagex-join.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-join.1" ;;
14764     "doc/imagex-mount.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-mount.1" ;;
14765     "doc/imagex-mountrw.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-mountrw.1" ;;
14766     "doc/imagex-split.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-split.1" ;;
14767     "doc/imagex-unmount.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-unmount.1" ;;
14768     "doc/mkwinpeimg.1") CONFIG_FILES="$CONFIG_FILES doc/mkwinpeimg.1" ;;
14769     "rpm/wimlib.spec") CONFIG_FILES="$CONFIG_FILES rpm/wimlib.spec" ;;
14770     "archlinux/PKGBUILD") CONFIG_FILES="$CONFIG_FILES archlinux/PKGBUILD" ;;
14771
14772   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14773   esac
14774 done
14775
14776
14777 # If the user did not use the arguments to specify the items to instantiate,
14778 # then the envvar interface is used.  Set only those that are not.
14779 # We use the long form for the default assignment because of an extremely
14780 # bizarre bug on SunOS 4.1.3.
14781 if $ac_need_defaults; then
14782   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14783   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14784   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14785 fi
14786
14787 # Have a temporary directory for convenience.  Make it in the build tree
14788 # simply because there is no reason against having it here, and in addition,
14789 # creating and moving files from /tmp can sometimes cause problems.
14790 # Hook for its removal unless debugging.
14791 # Note that there is a small window in which the directory will not be cleaned:
14792 # after its creation but before its name has been assigned to `$tmp'.
14793 $debug ||
14794 {
14795   tmp= ac_tmp=
14796   trap 'exit_status=$?
14797   : "${ac_tmp:=$tmp}"
14798   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14799 ' 0
14800   trap 'as_fn_exit 1' 1 2 13 15
14801 }
14802 # Create a (secure) tmp directory for tmp files.
14803
14804 {
14805   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14806   test -d "$tmp"
14807 }  ||
14808 {
14809   tmp=./conf$$-$RANDOM
14810   (umask 077 && mkdir "$tmp")
14811 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14812 ac_tmp=$tmp
14813
14814 # Set up the scripts for CONFIG_FILES section.
14815 # No need to generate them if there are no CONFIG_FILES.
14816 # This happens for instance with `./config.status config.h'.
14817 if test -n "$CONFIG_FILES"; then
14818
14819
14820 ac_cr=`echo X | tr X '\015'`
14821 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14822 # But we know of no other shell where ac_cr would be empty at this
14823 # point, so we can use a bashism as a fallback.
14824 if test "x$ac_cr" = x; then
14825   eval ac_cr=\$\'\\r\'
14826 fi
14827 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14828 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14829   ac_cs_awk_cr='\\r'
14830 else
14831   ac_cs_awk_cr=$ac_cr
14832 fi
14833
14834 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14835 _ACEOF
14836
14837
14838 {
14839   echo "cat >conf$$subs.awk <<_ACEOF" &&
14840   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14841   echo "_ACEOF"
14842 } >conf$$subs.sh ||
14843   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14844 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14845 ac_delim='%!_!# '
14846 for ac_last_try in false false false false false :; do
14847   . ./conf$$subs.sh ||
14848     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14849
14850   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14851   if test $ac_delim_n = $ac_delim_num; then
14852     break
14853   elif $ac_last_try; then
14854     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14855   else
14856     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14857   fi
14858 done
14859 rm -f conf$$subs.sh
14860
14861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14862 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14863 _ACEOF
14864 sed -n '
14865 h
14866 s/^/S["/; s/!.*/"]=/
14867 p
14868 g
14869 s/^[^!]*!//
14870 :repl
14871 t repl
14872 s/'"$ac_delim"'$//
14873 t delim
14874 :nl
14875 h
14876 s/\(.\{148\}\)..*/\1/
14877 t more1
14878 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14879 p
14880 n
14881 b repl
14882 :more1
14883 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14884 p
14885 g
14886 s/.\{148\}//
14887 t nl
14888 :delim
14889 h
14890 s/\(.\{148\}\)..*/\1/
14891 t more2
14892 s/["\\]/\\&/g; s/^/"/; s/$/"/
14893 p
14894 b
14895 :more2
14896 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14897 p
14898 g
14899 s/.\{148\}//
14900 t delim
14901 ' <conf$$subs.awk | sed '
14902 /^[^""]/{
14903   N
14904   s/\n//
14905 }
14906 ' >>$CONFIG_STATUS || ac_write_fail=1
14907 rm -f conf$$subs.awk
14908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14909 _ACAWK
14910 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14911   for (key in S) S_is_set[key] = 1
14912   FS = "\a"
14913
14914 }
14915 {
14916   line = $ 0
14917   nfields = split(line, field, "@")
14918   substed = 0
14919   len = length(field[1])
14920   for (i = 2; i < nfields; i++) {
14921     key = field[i]
14922     keylen = length(key)
14923     if (S_is_set[key]) {
14924       value = S[key]
14925       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14926       len += length(value) + length(field[++i])
14927       substed = 1
14928     } else
14929       len += 1 + keylen
14930   }
14931
14932   print line
14933 }
14934
14935 _ACAWK
14936 _ACEOF
14937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14938 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14939   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14940 else
14941   cat
14942 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14943   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14944 _ACEOF
14945
14946 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14947 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14948 # trailing colons and then remove the whole line if VPATH becomes empty
14949 # (actually we leave an empty line to preserve line numbers).
14950 if test "x$srcdir" = x.; then
14951   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14952 h
14953 s///
14954 s/^/:/
14955 s/[      ]*$/:/
14956 s/:\$(srcdir):/:/g
14957 s/:\${srcdir}:/:/g
14958 s/:@srcdir@:/:/g
14959 s/^:*//
14960 s/:*$//
14961 x
14962 s/\(=[   ]*\).*/\1/
14963 G
14964 s/\n//
14965 s/^[^=]*=[       ]*$//
14966 }'
14967 fi
14968
14969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14970 fi # test -n "$CONFIG_FILES"
14971
14972 # Set up the scripts for CONFIG_HEADERS section.
14973 # No need to generate them if there are no CONFIG_HEADERS.
14974 # This happens for instance with `./config.status Makefile'.
14975 if test -n "$CONFIG_HEADERS"; then
14976 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14977 BEGIN {
14978 _ACEOF
14979
14980 # Transform confdefs.h into an awk script `defines.awk', embedded as
14981 # here-document in config.status, that substitutes the proper values into
14982 # config.h.in to produce config.h.
14983
14984 # Create a delimiter string that does not exist in confdefs.h, to ease
14985 # handling of long lines.
14986 ac_delim='%!_!# '
14987 for ac_last_try in false false :; do
14988   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14989   if test -z "$ac_tt"; then
14990     break
14991   elif $ac_last_try; then
14992     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14993   else
14994     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14995   fi
14996 done
14997
14998 # For the awk script, D is an array of macro values keyed by name,
14999 # likewise P contains macro parameters if any.  Preserve backslash
15000 # newline sequences.
15001
15002 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15003 sed -n '
15004 s/.\{148\}/&'"$ac_delim"'/g
15005 t rset
15006 :rset
15007 s/^[     ]*#[    ]*define[       ][      ]*/ /
15008 t def
15009 d
15010 :def
15011 s/\\$//
15012 t bsnl
15013 s/["\\]/\\&/g
15014 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15015 D["\1"]=" \3"/p
15016 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15017 d
15018 :bsnl
15019 s/["\\]/\\&/g
15020 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15021 D["\1"]=" \3\\\\\\n"\\/p
15022 t cont
15023 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15024 t cont
15025 d
15026 :cont
15027 n
15028 s/.\{148\}/&'"$ac_delim"'/g
15029 t clear
15030 :clear
15031 s/\\$//
15032 t bsnlc
15033 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15034 d
15035 :bsnlc
15036 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15037 b cont
15038 ' <confdefs.h | sed '
15039 s/'"$ac_delim"'/"\\\
15040 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15041
15042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15043   for (key in D) D_is_set[key] = 1
15044   FS = "\a"
15045 }
15046 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15047   line = \$ 0
15048   split(line, arg, " ")
15049   if (arg[1] == "#") {
15050     defundef = arg[2]
15051     mac1 = arg[3]
15052   } else {
15053     defundef = substr(arg[1], 2)
15054     mac1 = arg[2]
15055   }
15056   split(mac1, mac2, "(") #)
15057   macro = mac2[1]
15058   prefix = substr(line, 1, index(line, defundef) - 1)
15059   if (D_is_set[macro]) {
15060     # Preserve the white space surrounding the "#".
15061     print prefix "define", macro P[macro] D[macro]
15062     next
15063   } else {
15064     # Replace #undef with comments.  This is necessary, for example,
15065     # in the case of _POSIX_SOURCE, which is predefined and required
15066     # on some systems where configure will not decide to define it.
15067     if (defundef == "undef") {
15068       print "/*", prefix defundef, macro, "*/"
15069       next
15070     }
15071   }
15072 }
15073 { print }
15074 _ACAWK
15075 _ACEOF
15076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15077   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15078 fi # test -n "$CONFIG_HEADERS"
15079
15080
15081 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15082 shift
15083 for ac_tag
15084 do
15085   case $ac_tag in
15086   :[FHLC]) ac_mode=$ac_tag; continue;;
15087   esac
15088   case $ac_mode$ac_tag in
15089   :[FHL]*:*);;
15090   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15091   :[FH]-) ac_tag=-:-;;
15092   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15093   esac
15094   ac_save_IFS=$IFS
15095   IFS=:
15096   set x $ac_tag
15097   IFS=$ac_save_IFS
15098   shift
15099   ac_file=$1
15100   shift
15101
15102   case $ac_mode in
15103   :L) ac_source=$1;;
15104   :[FH])
15105     ac_file_inputs=
15106     for ac_f
15107     do
15108       case $ac_f in
15109       -) ac_f="$ac_tmp/stdin";;
15110       *) # Look for the file first in the build tree, then in the source tree
15111          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15112          # because $ac_f cannot contain `:'.
15113          test -f "$ac_f" ||
15114            case $ac_f in
15115            [\\/$]*) false;;
15116            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15117            esac ||
15118            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15119       esac
15120       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15121       as_fn_append ac_file_inputs " '$ac_f'"
15122     done
15123
15124     # Let's still pretend it is `configure' which instantiates (i.e., don't
15125     # use $as_me), people would be surprised to read:
15126     #    /* config.h.  Generated by config.status.  */
15127     configure_input='Generated from '`
15128           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15129         `' by configure.'
15130     if test x"$ac_file" != x-; then
15131       configure_input="$ac_file.  $configure_input"
15132       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15133 $as_echo "$as_me: creating $ac_file" >&6;}
15134     fi
15135     # Neutralize special characters interpreted by sed in replacement strings.
15136     case $configure_input in #(
15137     *\&* | *\|* | *\\* )
15138        ac_sed_conf_input=`$as_echo "$configure_input" |
15139        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15140     *) ac_sed_conf_input=$configure_input;;
15141     esac
15142
15143     case $ac_tag in
15144     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15145       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15146     esac
15147     ;;
15148   esac
15149
15150   ac_dir=`$as_dirname -- "$ac_file" ||
15151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15152          X"$ac_file" : 'X\(//\)[^/]' \| \
15153          X"$ac_file" : 'X\(//\)$' \| \
15154          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15155 $as_echo X"$ac_file" |
15156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15157             s//\1/
15158             q
15159           }
15160           /^X\(\/\/\)[^/].*/{
15161             s//\1/
15162             q
15163           }
15164           /^X\(\/\/\)$/{
15165             s//\1/
15166             q
15167           }
15168           /^X\(\/\).*/{
15169             s//\1/
15170             q
15171           }
15172           s/.*/./; q'`
15173   as_dir="$ac_dir"; as_fn_mkdir_p
15174   ac_builddir=.
15175
15176 case "$ac_dir" in
15177 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15178 *)
15179   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15180   # A ".." for each directory in $ac_dir_suffix.
15181   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15182   case $ac_top_builddir_sub in
15183   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15184   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15185   esac ;;
15186 esac
15187 ac_abs_top_builddir=$ac_pwd
15188 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15189 # for backward compatibility:
15190 ac_top_builddir=$ac_top_build_prefix
15191
15192 case $srcdir in
15193   .)  # We are building in place.
15194     ac_srcdir=.
15195     ac_top_srcdir=$ac_top_builddir_sub
15196     ac_abs_top_srcdir=$ac_pwd ;;
15197   [\\/]* | ?:[\\/]* )  # Absolute name.
15198     ac_srcdir=$srcdir$ac_dir_suffix;
15199     ac_top_srcdir=$srcdir
15200     ac_abs_top_srcdir=$srcdir ;;
15201   *) # Relative name.
15202     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15203     ac_top_srcdir=$ac_top_build_prefix$srcdir
15204     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15205 esac
15206 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15207
15208
15209   case $ac_mode in
15210   :F)
15211   #
15212   # CONFIG_FILE
15213   #
15214
15215   case $INSTALL in
15216   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15217   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15218   esac
15219   ac_MKDIR_P=$MKDIR_P
15220   case $MKDIR_P in
15221   [\\/$]* | ?:[\\/]* ) ;;
15222   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15223   esac
15224 _ACEOF
15225
15226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15227 # If the template does not know about datarootdir, expand it.
15228 # FIXME: This hack should be removed a few years after 2.60.
15229 ac_datarootdir_hack=; ac_datarootdir_seen=
15230 ac_sed_dataroot='
15231 /datarootdir/ {
15232   p
15233   q
15234 }
15235 /@datadir@/p
15236 /@docdir@/p
15237 /@infodir@/p
15238 /@localedir@/p
15239 /@mandir@/p'
15240 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15241 *datarootdir*) ac_datarootdir_seen=yes;;
15242 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15243   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15244 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15245 _ACEOF
15246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15247   ac_datarootdir_hack='
15248   s&@datadir@&$datadir&g
15249   s&@docdir@&$docdir&g
15250   s&@infodir@&$infodir&g
15251   s&@localedir@&$localedir&g
15252   s&@mandir@&$mandir&g
15253   s&\\\${datarootdir}&$datarootdir&g' ;;
15254 esac
15255 _ACEOF
15256
15257 # Neutralize VPATH when `$srcdir' = `.'.
15258 # Shell code in configure.ac might set extrasub.
15259 # FIXME: do we really want to maintain this feature?
15260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15261 ac_sed_extra="$ac_vpsub
15262 $extrasub
15263 _ACEOF
15264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15265 :t
15266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15267 s|@configure_input@|$ac_sed_conf_input|;t t
15268 s&@top_builddir@&$ac_top_builddir_sub&;t t
15269 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15270 s&@srcdir@&$ac_srcdir&;t t
15271 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15272 s&@top_srcdir@&$ac_top_srcdir&;t t
15273 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15274 s&@builddir@&$ac_builddir&;t t
15275 s&@abs_builddir@&$ac_abs_builddir&;t t
15276 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15277 s&@INSTALL@&$ac_INSTALL&;t t
15278 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15279 $ac_datarootdir_hack
15280 "
15281 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15282   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15283
15284 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15285   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15286   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15287       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15288   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15289 which seems to be undefined.  Please make sure it is defined" >&5
15290 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15291 which seems to be undefined.  Please make sure it is defined" >&2;}
15292
15293   rm -f "$ac_tmp/stdin"
15294   case $ac_file in
15295   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15296   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15297   esac \
15298   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15299  ;;
15300   :H)
15301   #
15302   # CONFIG_HEADER
15303   #
15304   if test x"$ac_file" != x-; then
15305     {
15306       $as_echo "/* $configure_input  */" \
15307       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15308     } >"$ac_tmp/config.h" \
15309       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15310     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15311       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15312 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15313     else
15314       rm -f "$ac_file"
15315       mv "$ac_tmp/config.h" "$ac_file" \
15316         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15317     fi
15318   else
15319     $as_echo "/* $configure_input  */" \
15320       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15321       || as_fn_error $? "could not create -" "$LINENO" 5
15322   fi
15323 # Compute "$ac_file"'s index in $config_headers.
15324 _am_arg="$ac_file"
15325 _am_stamp_count=1
15326 for _am_header in $config_headers :; do
15327   case $_am_header in
15328     $_am_arg | $_am_arg:* )
15329       break ;;
15330     * )
15331       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15332   esac
15333 done
15334 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15335 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15336          X"$_am_arg" : 'X\(//\)[^/]' \| \
15337          X"$_am_arg" : 'X\(//\)$' \| \
15338          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15339 $as_echo X"$_am_arg" |
15340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15341             s//\1/
15342             q
15343           }
15344           /^X\(\/\/\)[^/].*/{
15345             s//\1/
15346             q
15347           }
15348           /^X\(\/\/\)$/{
15349             s//\1/
15350             q
15351           }
15352           /^X\(\/\).*/{
15353             s//\1/
15354             q
15355           }
15356           s/.*/./; q'`/stamp-h$_am_stamp_count
15357  ;;
15358
15359   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15360 $as_echo "$as_me: executing $ac_file commands" >&6;}
15361  ;;
15362   esac
15363
15364
15365   case $ac_file$ac_mode in
15366     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15367   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15368   # are listed without --file.  Let's play safe and only enable the eval
15369   # if we detect the quoting.
15370   case $CONFIG_FILES in
15371   *\'*) eval set x "$CONFIG_FILES" ;;
15372   *)   set x $CONFIG_FILES ;;
15373   esac
15374   shift
15375   for mf
15376   do
15377     # Strip MF so we end up with the name of the file.
15378     mf=`echo "$mf" | sed -e 's/:.*$//'`
15379     # Check whether this is an Automake generated Makefile or not.
15380     # We used to match only the files named 'Makefile.in', but
15381     # some people rename them; so instead we look at the file content.
15382     # Grep'ing the first line is not enough: some people post-process
15383     # each Makefile.in and add a new line on top of each file to say so.
15384     # Grep'ing the whole file is not good either: AIX grep has a line
15385     # limit of 2048, but all sed's we know have understand at least 4000.
15386     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15387       dirpart=`$as_dirname -- "$mf" ||
15388 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15389          X"$mf" : 'X\(//\)[^/]' \| \
15390          X"$mf" : 'X\(//\)$' \| \
15391          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15392 $as_echo X"$mf" |
15393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15394             s//\1/
15395             q
15396           }
15397           /^X\(\/\/\)[^/].*/{
15398             s//\1/
15399             q
15400           }
15401           /^X\(\/\/\)$/{
15402             s//\1/
15403             q
15404           }
15405           /^X\(\/\).*/{
15406             s//\1/
15407             q
15408           }
15409           s/.*/./; q'`
15410     else
15411       continue
15412     fi
15413     # Extract the definition of DEPDIR, am__include, and am__quote
15414     # from the Makefile without running 'make'.
15415     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15416     test -z "$DEPDIR" && continue
15417     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15418     test -z "am__include" && continue
15419     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15420     # Find all dependency output files, they are included files with
15421     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15422     # simplest approach to changing $(DEPDIR) to its actual value in the
15423     # expansion.
15424     for file in `sed -n "
15425       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15426          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15427       # Make sure the directory exists.
15428       test -f "$dirpart/$file" && continue
15429       fdir=`$as_dirname -- "$file" ||
15430 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15431          X"$file" : 'X\(//\)[^/]' \| \
15432          X"$file" : 'X\(//\)$' \| \
15433          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15434 $as_echo X"$file" |
15435     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15436             s//\1/
15437             q
15438           }
15439           /^X\(\/\/\)[^/].*/{
15440             s//\1/
15441             q
15442           }
15443           /^X\(\/\/\)$/{
15444             s//\1/
15445             q
15446           }
15447           /^X\(\/\).*/{
15448             s//\1/
15449             q
15450           }
15451           s/.*/./; q'`
15452       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15453       # echo "creating $dirpart/$file"
15454       echo '# dummy' > "$dirpart/$file"
15455     done
15456   done
15457 }
15458  ;;
15459     "libtool":C)
15460
15461     # See if we are running on zsh, and set the options which allow our
15462     # commands through without removal of \ escapes.
15463     if test -n "${ZSH_VERSION+set}" ; then
15464       setopt NO_GLOB_SUBST
15465     fi
15466
15467     cfgfile="${ofile}T"
15468     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15469     $RM "$cfgfile"
15470
15471     cat <<_LT_EOF >> "$cfgfile"
15472 #! $SHELL
15473
15474 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15475 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15476 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15477 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15478 #
15479 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15480 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15481 #                 Foundation, Inc.
15482 #   Written by Gordon Matzigkeit, 1996
15483 #
15484 #   This file is part of GNU Libtool.
15485 #
15486 # GNU Libtool is free software; you can redistribute it and/or
15487 # modify it under the terms of the GNU General Public License as
15488 # published by the Free Software Foundation; either version 2 of
15489 # the License, or (at your option) any later version.
15490 #
15491 # As a special exception to the GNU General Public License,
15492 # if you distribute this file as part of a program or library that
15493 # is built using GNU Libtool, you may include this file under the
15494 # same distribution terms that you use for the rest of that program.
15495 #
15496 # GNU Libtool is distributed in the hope that it will be useful,
15497 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15498 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15499 # GNU General Public License for more details.
15500 #
15501 # You should have received a copy of the GNU General Public License
15502 # along with GNU Libtool; see the file COPYING.  If not, a copy
15503 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15504 # obtained by writing to the Free Software Foundation, Inc.,
15505 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15506
15507
15508 # The names of the tagged configurations supported by this script.
15509 available_tags=""
15510
15511 # ### BEGIN LIBTOOL CONFIG
15512
15513 # Which release of libtool.m4 was used?
15514 macro_version=$macro_version
15515 macro_revision=$macro_revision
15516
15517 # Whether or not to build shared libraries.
15518 build_libtool_libs=$enable_shared
15519
15520 # Whether or not to build static libraries.
15521 build_old_libs=$enable_static
15522
15523 # What type of objects to build.
15524 pic_mode=$pic_mode
15525
15526 # Whether or not to optimize for fast installation.
15527 fast_install=$enable_fast_install
15528
15529 # Shell to use when invoking shell scripts.
15530 SHELL=$lt_SHELL
15531
15532 # An echo program that protects backslashes.
15533 ECHO=$lt_ECHO
15534
15535 # The PATH separator for the build system.
15536 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15537
15538 # The host system.
15539 host_alias=$host_alias
15540 host=$host
15541 host_os=$host_os
15542
15543 # The build system.
15544 build_alias=$build_alias
15545 build=$build
15546 build_os=$build_os
15547
15548 # A sed program that does not truncate output.
15549 SED=$lt_SED
15550
15551 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15552 Xsed="\$SED -e 1s/^X//"
15553
15554 # A grep program that handles long lines.
15555 GREP=$lt_GREP
15556
15557 # An ERE matcher.
15558 EGREP=$lt_EGREP
15559
15560 # A literal string matcher.
15561 FGREP=$lt_FGREP
15562
15563 # A BSD- or MS-compatible name lister.
15564 NM=$lt_NM
15565
15566 # Whether we need soft or hard links.
15567 LN_S=$lt_LN_S
15568
15569 # What is the maximum length of a command?
15570 max_cmd_len=$max_cmd_len
15571
15572 # Object file suffix (normally "o").
15573 objext=$ac_objext
15574
15575 # Executable file suffix (normally "").
15576 exeext=$exeext
15577
15578 # whether the shell understands "unset".
15579 lt_unset=$lt_unset
15580
15581 # turn spaces into newlines.
15582 SP2NL=$lt_lt_SP2NL
15583
15584 # turn newlines into spaces.
15585 NL2SP=$lt_lt_NL2SP
15586
15587 # convert \$build file names to \$host format.
15588 to_host_file_cmd=$lt_cv_to_host_file_cmd
15589
15590 # convert \$build files to toolchain format.
15591 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15592
15593 # An object symbol dumper.
15594 OBJDUMP=$lt_OBJDUMP
15595
15596 # Method to check whether dependent libraries are shared objects.
15597 deplibs_check_method=$lt_deplibs_check_method
15598
15599 # Command to use when deplibs_check_method = "file_magic".
15600 file_magic_cmd=$lt_file_magic_cmd
15601
15602 # How to find potential files when deplibs_check_method = "file_magic".
15603 file_magic_glob=$lt_file_magic_glob
15604
15605 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15606 want_nocaseglob=$lt_want_nocaseglob
15607
15608 # DLL creation program.
15609 DLLTOOL=$lt_DLLTOOL
15610
15611 # Command to associate shared and link libraries.
15612 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15613
15614 # The archiver.
15615 AR=$lt_AR
15616
15617 # Flags to create an archive.
15618 AR_FLAGS=$lt_AR_FLAGS
15619
15620 # How to feed a file listing to the archiver.
15621 archiver_list_spec=$lt_archiver_list_spec
15622
15623 # A symbol stripping program.
15624 STRIP=$lt_STRIP
15625
15626 # Commands used to install an old-style archive.
15627 RANLIB=$lt_RANLIB
15628 old_postinstall_cmds=$lt_old_postinstall_cmds
15629 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15630
15631 # Whether to use a lock for old archive extraction.
15632 lock_old_archive_extraction=$lock_old_archive_extraction
15633
15634 # A C compiler.
15635 LTCC=$lt_CC
15636
15637 # LTCC compiler flags.
15638 LTCFLAGS=$lt_CFLAGS
15639
15640 # Take the output of nm and produce a listing of raw symbols and C names.
15641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15642
15643 # Transform the output of nm in a proper C declaration.
15644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15645
15646 # Transform the output of nm in a C name address pair.
15647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15648
15649 # Transform the output of nm in a C name address pair when lib prefix is needed.
15650 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15651
15652 # Specify filename containing input files for \$NM.
15653 nm_file_list_spec=$lt_nm_file_list_spec
15654
15655 # The root where to search for dependent libraries,and in which our libraries should be installed.
15656 lt_sysroot=$lt_sysroot
15657
15658 # The name of the directory that contains temporary libtool files.
15659 objdir=$objdir
15660
15661 # Used to examine libraries when file_magic_cmd begins with "file".
15662 MAGIC_CMD=$MAGIC_CMD
15663
15664 # Must we lock files when doing compilation?
15665 need_locks=$lt_need_locks
15666
15667 # Manifest tool.
15668 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15669
15670 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15671 DSYMUTIL=$lt_DSYMUTIL
15672
15673 # Tool to change global to local symbols on Mac OS X.
15674 NMEDIT=$lt_NMEDIT
15675
15676 # Tool to manipulate fat objects and archives on Mac OS X.
15677 LIPO=$lt_LIPO
15678
15679 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15680 OTOOL=$lt_OTOOL
15681
15682 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15683 OTOOL64=$lt_OTOOL64
15684
15685 # Old archive suffix (normally "a").
15686 libext=$libext
15687
15688 # Shared library suffix (normally ".so").
15689 shrext_cmds=$lt_shrext_cmds
15690
15691 # The commands to extract the exported symbol list from a shared archive.
15692 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15693
15694 # Variables whose values should be saved in libtool wrapper scripts and
15695 # restored at link time.
15696 variables_saved_for_relink=$lt_variables_saved_for_relink
15697
15698 # Do we need the "lib" prefix for modules?
15699 need_lib_prefix=$need_lib_prefix
15700
15701 # Do we need a version for libraries?
15702 need_version=$need_version
15703
15704 # Library versioning type.
15705 version_type=$version_type
15706
15707 # Shared library runtime path variable.
15708 runpath_var=$runpath_var
15709
15710 # Shared library path variable.
15711 shlibpath_var=$shlibpath_var
15712
15713 # Is shlibpath searched before the hard-coded library search path?
15714 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15715
15716 # Format of library name prefix.
15717 libname_spec=$lt_libname_spec
15718
15719 # List of archive names.  First name is the real one, the rest are links.
15720 # The last name is the one that the linker finds with -lNAME
15721 library_names_spec=$lt_library_names_spec
15722
15723 # The coded name of the library, if different from the real name.
15724 soname_spec=$lt_soname_spec
15725
15726 # Permission mode override for installation of shared libraries.
15727 install_override_mode=$lt_install_override_mode
15728
15729 # Command to use after installation of a shared archive.
15730 postinstall_cmds=$lt_postinstall_cmds
15731
15732 # Command to use after uninstallation of a shared archive.
15733 postuninstall_cmds=$lt_postuninstall_cmds
15734
15735 # Commands used to finish a libtool library installation in a directory.
15736 finish_cmds=$lt_finish_cmds
15737
15738 # As "finish_cmds", except a single script fragment to be evaled but
15739 # not shown.
15740 finish_eval=$lt_finish_eval
15741
15742 # Whether we should hardcode library paths into libraries.
15743 hardcode_into_libs=$hardcode_into_libs
15744
15745 # Compile-time system search path for libraries.
15746 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15747
15748 # Run-time system search path for libraries.
15749 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15750
15751 # Whether dlopen is supported.
15752 dlopen_support=$enable_dlopen
15753
15754 # Whether dlopen of programs is supported.
15755 dlopen_self=$enable_dlopen_self
15756
15757 # Whether dlopen of statically linked programs is supported.
15758 dlopen_self_static=$enable_dlopen_self_static
15759
15760 # Commands to strip libraries.
15761 old_striplib=$lt_old_striplib
15762 striplib=$lt_striplib
15763
15764
15765 # The linker used to build libraries.
15766 LD=$lt_LD
15767
15768 # How to create reloadable object files.
15769 reload_flag=$lt_reload_flag
15770 reload_cmds=$lt_reload_cmds
15771
15772 # Commands used to build an old-style archive.
15773 old_archive_cmds=$lt_old_archive_cmds
15774
15775 # A language specific compiler.
15776 CC=$lt_compiler
15777
15778 # Is the compiler the GNU compiler?
15779 with_gcc=$GCC
15780
15781 # Compiler flag to turn off builtin functions.
15782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15783
15784 # Additional compiler flags for building library objects.
15785 pic_flag=$lt_lt_prog_compiler_pic
15786
15787 # How to pass a linker flag through the compiler.
15788 wl=$lt_lt_prog_compiler_wl
15789
15790 # Compiler flag to prevent dynamic linking.
15791 link_static_flag=$lt_lt_prog_compiler_static
15792
15793 # Does compiler simultaneously support -c and -o options?
15794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15795
15796 # Whether or not to add -lc for building shared libraries.
15797 build_libtool_need_lc=$archive_cmds_need_lc
15798
15799 # Whether or not to disallow shared libs when runtime libs are static.
15800 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15801
15802 # Compiler flag to allow reflexive dlopens.
15803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15804
15805 # Compiler flag to generate shared objects directly from archives.
15806 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15807
15808 # Whether the compiler copes with passing no objects directly.
15809 compiler_needs_object=$lt_compiler_needs_object
15810
15811 # Create an old-style archive from a shared archive.
15812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15813
15814 # Create a temporary old-style archive to link instead of a shared archive.
15815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15816
15817 # Commands used to build a shared archive.
15818 archive_cmds=$lt_archive_cmds
15819 archive_expsym_cmds=$lt_archive_expsym_cmds
15820
15821 # Commands used to build a loadable module if different from building
15822 # a shared archive.
15823 module_cmds=$lt_module_cmds
15824 module_expsym_cmds=$lt_module_expsym_cmds
15825
15826 # Whether we are building with GNU ld or not.
15827 with_gnu_ld=$lt_with_gnu_ld
15828
15829 # Flag that allows shared libraries with undefined symbols to be built.
15830 allow_undefined_flag=$lt_allow_undefined_flag
15831
15832 # Flag that enforces no undefined symbols.
15833 no_undefined_flag=$lt_no_undefined_flag
15834
15835 # Flag to hardcode \$libdir into a binary during linking.
15836 # This must work even if \$libdir does not exist
15837 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15838
15839 # Whether we need a single "-rpath" flag with a separated argument.
15840 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15841
15842 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15843 # DIR into the resulting binary.
15844 hardcode_direct=$hardcode_direct
15845
15846 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15847 # DIR into the resulting binary and the resulting library dependency is
15848 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15849 # library is relocated.
15850 hardcode_direct_absolute=$hardcode_direct_absolute
15851
15852 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15853 # into the resulting binary.
15854 hardcode_minus_L=$hardcode_minus_L
15855
15856 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15857 # into the resulting binary.
15858 hardcode_shlibpath_var=$hardcode_shlibpath_var
15859
15860 # Set to "yes" if building a shared library automatically hardcodes DIR
15861 # into the library and all subsequent libraries and executables linked
15862 # against it.
15863 hardcode_automatic=$hardcode_automatic
15864
15865 # Set to yes if linker adds runtime paths of dependent libraries
15866 # to runtime path list.
15867 inherit_rpath=$inherit_rpath
15868
15869 # Whether libtool must link a program against all its dependency libraries.
15870 link_all_deplibs=$link_all_deplibs
15871
15872 # Set to "yes" if exported symbols are required.
15873 always_export_symbols=$always_export_symbols
15874
15875 # The commands to list exported symbols.
15876 export_symbols_cmds=$lt_export_symbols_cmds
15877
15878 # Symbols that should not be listed in the preloaded symbols.
15879 exclude_expsyms=$lt_exclude_expsyms
15880
15881 # Symbols that must always be exported.
15882 include_expsyms=$lt_include_expsyms
15883
15884 # Commands necessary for linking programs (against libraries) with templates.
15885 prelink_cmds=$lt_prelink_cmds
15886
15887 # Commands necessary for finishing linking programs.
15888 postlink_cmds=$lt_postlink_cmds
15889
15890 # Specify filename containing input files.
15891 file_list_spec=$lt_file_list_spec
15892
15893 # How to hardcode a shared library path into an executable.
15894 hardcode_action=$hardcode_action
15895
15896 # ### END LIBTOOL CONFIG
15897
15898 _LT_EOF
15899
15900   case $host_os in
15901   aix3*)
15902     cat <<\_LT_EOF >> "$cfgfile"
15903 # AIX sometimes has problems with the GCC collect2 program.  For some
15904 # reason, if we set the COLLECT_NAMES environment variable, the problems
15905 # vanish in a puff of smoke.
15906 if test "X${COLLECT_NAMES+set}" != Xset; then
15907   COLLECT_NAMES=
15908   export COLLECT_NAMES
15909 fi
15910 _LT_EOF
15911     ;;
15912   esac
15913
15914
15915 ltmain="$ac_aux_dir/ltmain.sh"
15916
15917
15918   # We use sed instead of cat because bash on DJGPP gets confused if
15919   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15920   # text mode, it properly converts lines to CR/LF.  This bash problem
15921   # is reportedly fixed, but why not run on old versions too?
15922   sed '$q' "$ltmain" >> "$cfgfile" \
15923      || (rm -f "$cfgfile"; exit 1)
15924
15925   if test x"$xsi_shell" = xyes; then
15926   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15927 func_dirname ()\
15928 {\
15929 \    case ${1} in\
15930 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15931 \      *  ) func_dirname_result="${3}" ;;\
15932 \    esac\
15933 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15934   && mv -f "$cfgfile.tmp" "$cfgfile" \
15935     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15936 test 0 -eq $? || _lt_function_replace_fail=:
15937
15938
15939   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15940 func_basename ()\
15941 {\
15942 \    func_basename_result="${1##*/}"\
15943 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15944   && mv -f "$cfgfile.tmp" "$cfgfile" \
15945     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15946 test 0 -eq $? || _lt_function_replace_fail=:
15947
15948
15949   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15950 func_dirname_and_basename ()\
15951 {\
15952 \    case ${1} in\
15953 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15954 \      *  ) func_dirname_result="${3}" ;;\
15955 \    esac\
15956 \    func_basename_result="${1##*/}"\
15957 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15958   && mv -f "$cfgfile.tmp" "$cfgfile" \
15959     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15960 test 0 -eq $? || _lt_function_replace_fail=:
15961
15962
15963   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15964 func_stripname ()\
15965 {\
15966 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15967 \    # positional parameters, so assign one to ordinary parameter first.\
15968 \    func_stripname_result=${3}\
15969 \    func_stripname_result=${func_stripname_result#"${1}"}\
15970 \    func_stripname_result=${func_stripname_result%"${2}"}\
15971 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15972   && mv -f "$cfgfile.tmp" "$cfgfile" \
15973     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15974 test 0 -eq $? || _lt_function_replace_fail=:
15975
15976
15977   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15978 func_split_long_opt ()\
15979 {\
15980 \    func_split_long_opt_name=${1%%=*}\
15981 \    func_split_long_opt_arg=${1#*=}\
15982 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15983   && mv -f "$cfgfile.tmp" "$cfgfile" \
15984     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15985 test 0 -eq $? || _lt_function_replace_fail=:
15986
15987
15988   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15989 func_split_short_opt ()\
15990 {\
15991 \    func_split_short_opt_arg=${1#??}\
15992 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15993 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15994   && mv -f "$cfgfile.tmp" "$cfgfile" \
15995     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15996 test 0 -eq $? || _lt_function_replace_fail=:
15997
15998
15999   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16000 func_lo2o ()\
16001 {\
16002 \    case ${1} in\
16003 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16004 \      *)    func_lo2o_result=${1} ;;\
16005 \    esac\
16006 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16007   && mv -f "$cfgfile.tmp" "$cfgfile" \
16008     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16009 test 0 -eq $? || _lt_function_replace_fail=:
16010
16011
16012   sed -e '/^func_xform ()$/,/^} # func_xform /c\
16013 func_xform ()\
16014 {\
16015     func_xform_result=${1%.*}.lo\
16016 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16017   && mv -f "$cfgfile.tmp" "$cfgfile" \
16018     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16019 test 0 -eq $? || _lt_function_replace_fail=:
16020
16021
16022   sed -e '/^func_arith ()$/,/^} # func_arith /c\
16023 func_arith ()\
16024 {\
16025     func_arith_result=$(( $* ))\
16026 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16027   && mv -f "$cfgfile.tmp" "$cfgfile" \
16028     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16029 test 0 -eq $? || _lt_function_replace_fail=:
16030
16031
16032   sed -e '/^func_len ()$/,/^} # func_len /c\
16033 func_len ()\
16034 {\
16035     func_len_result=${#1}\
16036 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16037   && mv -f "$cfgfile.tmp" "$cfgfile" \
16038     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16039 test 0 -eq $? || _lt_function_replace_fail=:
16040
16041 fi
16042
16043 if test x"$lt_shell_append" = xyes; then
16044   sed -e '/^func_append ()$/,/^} # func_append /c\
16045 func_append ()\
16046 {\
16047     eval "${1}+=\\${2}"\
16048 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16049   && mv -f "$cfgfile.tmp" "$cfgfile" \
16050     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16051 test 0 -eq $? || _lt_function_replace_fail=:
16052
16053
16054   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16055 func_append_quoted ()\
16056 {\
16057 \    func_quote_for_eval "${2}"\
16058 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16059 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16060   && mv -f "$cfgfile.tmp" "$cfgfile" \
16061     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16062 test 0 -eq $? || _lt_function_replace_fail=:
16063
16064
16065   # Save a `func_append' function call where possible by direct use of '+='
16066   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16067     && mv -f "$cfgfile.tmp" "$cfgfile" \
16068       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16069   test 0 -eq $? || _lt_function_replace_fail=:
16070 else
16071   # Save a `func_append' function call even when '+=' is not available
16072   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16073     && mv -f "$cfgfile.tmp" "$cfgfile" \
16074       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16075   test 0 -eq $? || _lt_function_replace_fail=:
16076 fi
16077
16078 if test x"$_lt_function_replace_fail" = x":"; then
16079   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16080 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16081 fi
16082
16083
16084    mv -f "$cfgfile" "$ofile" ||
16085     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16086   chmod +x "$ofile"
16087
16088  ;;
16089
16090   esac
16091 done # for ac_tag
16092
16093
16094 as_fn_exit 0
16095 _ACEOF
16096 ac_clean_files=$ac_clean_files_save
16097
16098 test $ac_write_fail = 0 ||
16099   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16100
16101
16102 # configure is writing to config.log, and then calls config.status.
16103 # config.status does its own redirection, appending to config.log.
16104 # Unfortunately, on DOS this fails, as config.log is still kept open
16105 # by configure, so config.status won't be able to write to it; its
16106 # output is simply discarded.  So we exec the FD to /dev/null,
16107 # effectively closing config.log, so it can be properly (re)opened and
16108 # appended to by config.status.  When coming back to configure, we
16109 # need to make the FD available again.
16110 if test "$no_create" != yes; then
16111   ac_cs_success=:
16112   ac_config_status_args=
16113   test "$silent" = yes &&
16114     ac_config_status_args="$ac_config_status_args --quiet"
16115   exec 5>/dev/null
16116   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16117   exec 5>>config.log
16118   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16119   # would make configure fail if this is the last instruction.
16120   $ac_cs_success || as_fn_exit 1
16121 fi
16122 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16123   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16124 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16125 fi
16126