Imported Upstream version 1.0.1
[platform/upstream/libzip.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libzip 1.0.1.
4 #
5 # Report bugs to <libzip@nih.at>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and libzip@nih.at
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: 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='libzip'
592 PACKAGE_TARNAME='libzip'
593 PACKAGE_VERSION='1.0.1'
594 PACKAGE_STRING='libzip 1.0.1'
595 PACKAGE_BUGREPORT='libzip@nih.at'
596 PACKAGE_URL=''
597
598 ac_unique_file="lib/zip_add.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 HAVE_VISIBILITY
639 CFLAG_VISIBILITY
640 MANFMT
641 LIBOBJS
642 CPP
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 MANIFEST_TOOL
649 RANLIB
650 ac_ct_AR
651 AR
652 DLLTOOL
653 OBJDUMP
654 LN_S
655 NM
656 ac_ct_DUMPBIN
657 DUMPBIN
658 LD
659 FGREP
660 EGREP
661 GREP
662 SED
663 LIBTOOL
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 PKG_CONFIG_RPATH
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_silent_rules
759 enable_dependency_tracking
760 enable_largefile
761 with_zlib
762 enable_shared
763 enable_static
764 with_pic
765 enable_fast_install
766 with_gnu_ld
767 with_sysroot
768 enable_libtool_lock
769 '
770       ac_precious_vars='build_alias
771 host_alias
772 target_alias
773 CC
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS
778 CPP'
779
780
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 ac_unrecognized_opts=
785 ac_unrecognized_sep=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
788 cache_file=/dev/null
789 exec_prefix=NONE
790 no_create=
791 no_recursion=
792 prefix=NONE
793 program_prefix=NONE
794 program_suffix=NONE
795 program_transform_name=s,x,x,
796 silent=
797 site=
798 srcdir=
799 verbose=
800 x_includes=NONE
801 x_libraries=NONE
802
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
828
829 ac_prev=
830 ac_dashdash=
831 for ac_option
832 do
833   # If the previous option needs an argument, assign it.
834   if test -n "$ac_prev"; then
835     eval $ac_prev=\$ac_option
836     ac_prev=
837     continue
838   fi
839
840   case $ac_option in
841   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842   *=)   ac_optarg= ;;
843   *)    ac_optarg=yes ;;
844   esac
845
846   # Accept the important Cygnus configure options, so we can diagnose typos.
847
848   case $ac_dashdash$ac_option in
849   --)
850     ac_dashdash=yes ;;
851
852   -bindir | --bindir | --bindi | --bind | --bin | --bi)
853     ac_prev=bindir ;;
854   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855     bindir=$ac_optarg ;;
856
857   -build | --build | --buil | --bui | --bu)
858     ac_prev=build_alias ;;
859   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860     build_alias=$ac_optarg ;;
861
862   -cache-file | --cache-file | --cache-fil | --cache-fi \
863   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864     ac_prev=cache_file ;;
865   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867     cache_file=$ac_optarg ;;
868
869   --config-cache | -C)
870     cache_file=config.cache ;;
871
872   -datadir | --datadir | --datadi | --datad)
873     ac_prev=datadir ;;
874   -datadir=* | --datadir=* | --datadi=* | --datad=*)
875     datadir=$ac_optarg ;;
876
877   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878   | --dataroo | --dataro | --datar)
879     ac_prev=datarootdir ;;
880   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882     datarootdir=$ac_optarg ;;
883
884   -disable-* | --disable-*)
885     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886     # Reject names that are not valid shell variable names.
887     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888       as_fn_error $? "invalid feature name: $ac_useropt"
889     ac_useropt_orig=$ac_useropt
890     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891     case $ac_user_opts in
892       *"
893 "enable_$ac_useropt"
894 "*) ;;
895       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896          ac_unrecognized_sep=', ';;
897     esac
898     eval enable_$ac_useropt=no ;;
899
900   -docdir | --docdir | --docdi | --doc | --do)
901     ac_prev=docdir ;;
902   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903     docdir=$ac_optarg ;;
904
905   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906     ac_prev=dvidir ;;
907   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908     dvidir=$ac_optarg ;;
909
910   -enable-* | --enable-*)
911     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912     # Reject names that are not valid shell variable names.
913     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914       as_fn_error $? "invalid feature name: $ac_useropt"
915     ac_useropt_orig=$ac_useropt
916     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917     case $ac_user_opts in
918       *"
919 "enable_$ac_useropt"
920 "*) ;;
921       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922          ac_unrecognized_sep=', ';;
923     esac
924     eval enable_$ac_useropt=\$ac_optarg ;;
925
926   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928   | --exec | --exe | --ex)
929     ac_prev=exec_prefix ;;
930   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932   | --exec=* | --exe=* | --ex=*)
933     exec_prefix=$ac_optarg ;;
934
935   -gas | --gas | --ga | --g)
936     # Obsolete; use --with-gas.
937     with_gas=yes ;;
938
939   -help | --help | --hel | --he | -h)
940     ac_init_help=long ;;
941   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942     ac_init_help=recursive ;;
943   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944     ac_init_help=short ;;
945
946   -host | --host | --hos | --ho)
947     ac_prev=host_alias ;;
948   -host=* | --host=* | --hos=* | --ho=*)
949     host_alias=$ac_optarg ;;
950
951   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952     ac_prev=htmldir ;;
953   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954   | --ht=*)
955     htmldir=$ac_optarg ;;
956
957   -includedir | --includedir | --includedi | --included | --include \
958   | --includ | --inclu | --incl | --inc)
959     ac_prev=includedir ;;
960   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961   | --includ=* | --inclu=* | --incl=* | --inc=*)
962     includedir=$ac_optarg ;;
963
964   -infodir | --infodir | --infodi | --infod | --info | --inf)
965     ac_prev=infodir ;;
966   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967     infodir=$ac_optarg ;;
968
969   -libdir | --libdir | --libdi | --libd)
970     ac_prev=libdir ;;
971   -libdir=* | --libdir=* | --libdi=* | --libd=*)
972     libdir=$ac_optarg ;;
973
974   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975   | --libexe | --libex | --libe)
976     ac_prev=libexecdir ;;
977   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978   | --libexe=* | --libex=* | --libe=*)
979     libexecdir=$ac_optarg ;;
980
981   -localedir | --localedir | --localedi | --localed | --locale)
982     ac_prev=localedir ;;
983   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984     localedir=$ac_optarg ;;
985
986   -localstatedir | --localstatedir | --localstatedi | --localstated \
987   | --localstate | --localstat | --localsta | --localst | --locals)
988     ac_prev=localstatedir ;;
989   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991     localstatedir=$ac_optarg ;;
992
993   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994     ac_prev=mandir ;;
995   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996     mandir=$ac_optarg ;;
997
998   -nfp | --nfp | --nf)
999     # Obsolete; use --without-fp.
1000     with_fp=no ;;
1001
1002   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003   | --no-cr | --no-c | -n)
1004     no_create=yes ;;
1005
1006   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008     no_recursion=yes ;;
1009
1010   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012   | --oldin | --oldi | --old | --ol | --o)
1013     ac_prev=oldincludedir ;;
1014   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017     oldincludedir=$ac_optarg ;;
1018
1019   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020     ac_prev=prefix ;;
1021   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022     prefix=$ac_optarg ;;
1023
1024   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025   | --program-pre | --program-pr | --program-p)
1026     ac_prev=program_prefix ;;
1027   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029     program_prefix=$ac_optarg ;;
1030
1031   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032   | --program-suf | --program-su | --program-s)
1033     ac_prev=program_suffix ;;
1034   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036     program_suffix=$ac_optarg ;;
1037
1038   -program-transform-name | --program-transform-name \
1039   | --program-transform-nam | --program-transform-na \
1040   | --program-transform-n | --program-transform- \
1041   | --program-transform | --program-transfor \
1042   | --program-transfo | --program-transf \
1043   | --program-trans | --program-tran \
1044   | --progr-tra | --program-tr | --program-t)
1045     ac_prev=program_transform_name ;;
1046   -program-transform-name=* | --program-transform-name=* \
1047   | --program-transform-nam=* | --program-transform-na=* \
1048   | --program-transform-n=* | --program-transform-=* \
1049   | --program-transform=* | --program-transfor=* \
1050   | --program-transfo=* | --program-transf=* \
1051   | --program-trans=* | --program-tran=* \
1052   | --progr-tra=* | --program-tr=* | --program-t=*)
1053     program_transform_name=$ac_optarg ;;
1054
1055   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056     ac_prev=pdfdir ;;
1057   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058     pdfdir=$ac_optarg ;;
1059
1060   -psdir | --psdir | --psdi | --psd | --ps)
1061     ac_prev=psdir ;;
1062   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063     psdir=$ac_optarg ;;
1064
1065   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066   | -silent | --silent | --silen | --sile | --sil)
1067     silent=yes ;;
1068
1069   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070     ac_prev=sbindir ;;
1071   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072   | --sbi=* | --sb=*)
1073     sbindir=$ac_optarg ;;
1074
1075   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077   | --sharedst | --shareds | --shared | --share | --shar \
1078   | --sha | --sh)
1079     ac_prev=sharedstatedir ;;
1080   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083   | --sha=* | --sh=*)
1084     sharedstatedir=$ac_optarg ;;
1085
1086   -site | --site | --sit)
1087     ac_prev=site ;;
1088   -site=* | --site=* | --sit=*)
1089     site=$ac_optarg ;;
1090
1091   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092     ac_prev=srcdir ;;
1093   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094     srcdir=$ac_optarg ;;
1095
1096   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097   | --syscon | --sysco | --sysc | --sys | --sy)
1098     ac_prev=sysconfdir ;;
1099   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101     sysconfdir=$ac_optarg ;;
1102
1103   -target | --target | --targe | --targ | --tar | --ta | --t)
1104     ac_prev=target_alias ;;
1105   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106     target_alias=$ac_optarg ;;
1107
1108   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109     verbose=yes ;;
1110
1111   -version | --version | --versio | --versi | --vers | -V)
1112     ac_init_version=: ;;
1113
1114   -with-* | --with-*)
1115     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116     # Reject names that are not valid shell variable names.
1117     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118       as_fn_error $? "invalid package name: $ac_useropt"
1119     ac_useropt_orig=$ac_useropt
1120     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121     case $ac_user_opts in
1122       *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126          ac_unrecognized_sep=', ';;
1127     esac
1128     eval with_$ac_useropt=\$ac_optarg ;;
1129
1130   -without-* | --without-*)
1131     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132     # Reject names that are not valid shell variable names.
1133     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134       as_fn_error $? "invalid package name: $ac_useropt"
1135     ac_useropt_orig=$ac_useropt
1136     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137     case $ac_user_opts in
1138       *"
1139 "with_$ac_useropt"
1140 "*) ;;
1141       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142          ac_unrecognized_sep=', ';;
1143     esac
1144     eval with_$ac_useropt=no ;;
1145
1146   --x)
1147     # Obsolete; use --with-x.
1148     with_x=yes ;;
1149
1150   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151   | --x-incl | --x-inc | --x-in | --x-i)
1152     ac_prev=x_includes ;;
1153   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155     x_includes=$ac_optarg ;;
1156
1157   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159     ac_prev=x_libraries ;;
1160   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162     x_libraries=$ac_optarg ;;
1163
1164   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information"
1166     ;;
1167
1168   *=*)
1169     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170     # Reject names that are not valid shell variable names.
1171     case $ac_envvar in #(
1172       '' | [0-9]* | *[!_$as_cr_alnum]* )
1173       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174     esac
1175     eval $ac_envvar=\$ac_optarg
1176     export $ac_envvar ;;
1177
1178   *)
1179     # FIXME: should be removed in autoconf 3.0.
1180     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184     ;;
1185
1186   esac
1187 done
1188
1189 if test -n "$ac_prev"; then
1190   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191   as_fn_error $? "missing argument to $ac_option"
1192 fi
1193
1194 if test -n "$ac_unrecognized_opts"; then
1195   case $enable_option_checking in
1196     no) ;;
1197     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199   esac
1200 fi
1201
1202 # Check all directory arguments for consistency.
1203 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204                 datadir sysconfdir sharedstatedir localstatedir includedir \
1205                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206                 libdir localedir mandir
1207 do
1208   eval ac_val=\$$ac_var
1209   # Remove trailing slashes.
1210   case $ac_val in
1211     */ )
1212       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213       eval $ac_var=\$ac_val;;
1214   esac
1215   # Be sure to have absolute directory names.
1216   case $ac_val in
1217     [\\/$]* | ?:[\\/]* )  continue;;
1218     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219   esac
1220   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232   if test "x$build_alias" = x; then
1233     cross_compiling=maybe
1234   elif test "x$build_alias" != "x$host_alias"; then
1235     cross_compiling=yes
1236   fi
1237 fi
1238
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242 test "$silent" = yes && exec 6>/dev/null
1243
1244
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248   as_fn_error $? "working directory cannot be determined"
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250   as_fn_error $? "pwd does not report name of working directory"
1251
1252
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255   ac_srcdir_defaulted=yes
1256   # Try the directory containing this script, then the parent directory.
1257   ac_confdir=`$as_dirname -- "$as_myself" ||
1258 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259          X"$as_myself" : 'X\(//\)[^/]' \| \
1260          X"$as_myself" : 'X\(//\)$' \| \
1261          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262 $as_echo X"$as_myself" |
1263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)[^/].*/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\).*/{
1276             s//\1/
1277             q
1278           }
1279           s/.*/./; q'`
1280   srcdir=$ac_confdir
1281   if test ! -r "$srcdir/$ac_unique_file"; then
1282     srcdir=..
1283   fi
1284 else
1285   ac_srcdir_defaulted=no
1286 fi
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1290 fi
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294         pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297   srcdir=.
1298 fi
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_env_${ac_var}_value=\$${ac_var}
1308   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1311
1312 #
1313 # Report the --help message.
1314 #
1315 if test "$ac_init_help" = "long"; then
1316   # Omit some internal or obsolete options to make the list less imposing.
1317   # This message is too long to be a string in the A/UX 3.1 sh.
1318   cat <<_ACEOF
1319 \`configure' configures libzip 1.0.1 to adapt to many kinds of systems.
1320
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326 Defaults for the options are specified in brackets.
1327
1328 Configuration:
1329   -h, --help              display this help and exit
1330       --help=short        display options specific to this package
1331       --help=recursive    display the short help of all the included packages
1332   -V, --version           display version information and exit
1333   -q, --quiet, --silent   do not print \`checking ...' messages
1334       --cache-file=FILE   cache test results in FILE [disabled]
1335   -C, --config-cache      alias for \`--cache-file=config.cache'
1336   -n, --no-create         do not create output files
1337       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339 Installation directories:
1340   --prefix=PREFIX         install architecture-independent files in PREFIX
1341                           [$ac_default_prefix]
1342   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                           [PREFIX]
1344
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1349
1350 For better control, use the options below.
1351
1352 Fine tuning of the installation directories:
1353   --bindir=DIR            user executables [EPREFIX/bin]
1354   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1355   --libexecdir=DIR        program executables [EPREFIX/libexec]
1356   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1357   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1358   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1359   --libdir=DIR            object code libraries [EPREFIX/lib]
1360   --includedir=DIR        C header files [PREFIX/include]
1361   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1362   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1363   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1364   --infodir=DIR           info documentation [DATAROOTDIR/info]
1365   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1366   --mandir=DIR            man documentation [DATAROOTDIR/man]
1367   --docdir=DIR            documentation root [DATAROOTDIR/doc/libzip]
1368   --htmldir=DIR           html documentation [DOCDIR]
1369   --dvidir=DIR            dvi documentation [DOCDIR]
1370   --pdfdir=DIR            pdf documentation [DOCDIR]
1371   --psdir=DIR             ps documentation [DOCDIR]
1372 _ACEOF
1373
1374   cat <<\_ACEOF
1375
1376 Program names:
1377   --program-prefix=PREFIX            prepend PREFIX to installed program names
1378   --program-suffix=SUFFIX            append SUFFIX to installed program names
1379   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1380
1381 System types:
1382   --build=BUILD     configure for building on BUILD [guessed]
1383   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1384 _ACEOF
1385 fi
1386
1387 if test -n "$ac_init_help"; then
1388   case $ac_init_help in
1389      short | recursive ) echo "Configuration of libzip 1.0.1:";;
1390    esac
1391   cat <<\_ACEOF
1392
1393 Optional Features:
1394   --disable-option-checking  ignore unrecognized --enable/--with options
1395   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1396   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1397   --enable-silent-rules   less verbose build output (undo: "make V=1")
1398   --disable-silent-rules  verbose build output (undo: "make V=0")
1399   --enable-dependency-tracking
1400                           do not reject slow dependency extractors
1401   --disable-dependency-tracking
1402                           speeds up one-time build
1403   --disable-largefile     omit support for large files
1404   --enable-shared[=PKGS]  build shared libraries [default=yes]
1405   --enable-static[=PKGS]  build static libraries [default=yes]
1406   --enable-fast-install[=PKGS]
1407                           optimize for fast installation [default=yes]
1408   --disable-libtool-lock  avoid locking (might break parallel builds)
1409
1410 Optional Packages:
1411   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1412   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1413   --with-zlib=PREFIX  specify prefix for ZLIB library
1414   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1415                           both]
1416   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1417   --with-sysroot=DIR Search for dependent libraries within DIR
1418                         (or the compiler's sysroot if not specified).
1419
1420 Some influential environment variables:
1421   CC          C compiler command
1422   CFLAGS      C compiler flags
1423   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1424               nonstandard directory <lib dir>
1425   LIBS        libraries to pass to the linker, e.g. -l<library>
1426   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427               you have headers in a nonstandard directory <include dir>
1428   CPP         C preprocessor
1429
1430 Use these variables to override the choices made by `configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1432
1433 Report bugs to <libzip@nih.at>.
1434 _ACEOF
1435 ac_status=$?
1436 fi
1437
1438 if test "$ac_init_help" = "recursive"; then
1439   # If there are subdirs, report their specific --help.
1440   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1441     test -d "$ac_dir" ||
1442       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443       continue
1444     ac_builddir=.
1445
1446 case "$ac_dir" in
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *)
1449   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1450   # A ".." for each directory in $ac_dir_suffix.
1451   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1452   case $ac_top_builddir_sub in
1453   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455   esac ;;
1456 esac
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1461
1462 case $srcdir in
1463   .)  # We are building in place.
1464     ac_srcdir=.
1465     ac_top_srcdir=$ac_top_builddir_sub
1466     ac_abs_top_srcdir=$ac_pwd ;;
1467   [\\/]* | ?:[\\/]* )  # Absolute name.
1468     ac_srcdir=$srcdir$ac_dir_suffix;
1469     ac_top_srcdir=$srcdir
1470     ac_abs_top_srcdir=$srcdir ;;
1471   *) # Relative name.
1472     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473     ac_top_srcdir=$ac_top_build_prefix$srcdir
1474     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 esac
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477
1478     cd "$ac_dir" || { ac_status=$?; continue; }
1479     # Check for guested configure.
1480     if test -f "$ac_srcdir/configure.gnu"; then
1481       echo &&
1482       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483     elif test -f "$ac_srcdir/configure"; then
1484       echo &&
1485       $SHELL "$ac_srcdir/configure" --help=recursive
1486     else
1487       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488     fi || ac_status=$?
1489     cd "$ac_pwd" || { ac_status=$?; break; }
1490   done
1491 fi
1492
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1495   cat <<\_ACEOF
1496 libzip configure 1.0.1
1497 generated by GNU Autoconf 2.69
1498
1499 Copyright (C) 2012 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1502 _ACEOF
1503   exit
1504 fi
1505
1506 ## ------------------------ ##
1507 ## Autoconf initialization. ##
1508 ## ------------------------ ##
1509
1510 # ac_fn_c_try_compile LINENO
1511 # --------------------------
1512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_compile ()
1514 {
1515   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516   rm -f conftest.$ac_objext
1517   if { { ac_try="$ac_compile"
1518 case "(($ac_try" in
1519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520   *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524   (eval "$ac_compile") 2>conftest.err
1525   ac_status=$?
1526   if test -s conftest.err; then
1527     grep -v '^ *+' conftest.err >conftest.er1
1528     cat conftest.er1 >&5
1529     mv -f conftest.er1 conftest.err
1530   fi
1531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532   test $ac_status = 0; } && {
1533          test -z "$ac_c_werror_flag" ||
1534          test ! -s conftest.err
1535        } && test -s conftest.$ac_objext; then :
1536   ac_retval=0
1537 else
1538   $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1540
1541         ac_retval=1
1542 fi
1543   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544   as_fn_set_status $ac_retval
1545
1546 } # ac_fn_c_try_compile
1547
1548 # ac_fn_c_try_link LINENO
1549 # -----------------------
1550 # Try to link conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_link ()
1552 {
1553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554   rm -f conftest.$ac_objext conftest$ac_exeext
1555   if { { ac_try="$ac_link"
1556 case "(($ac_try" in
1557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558   *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562   (eval "$ac_link") 2>conftest.err
1563   ac_status=$?
1564   if test -s conftest.err; then
1565     grep -v '^ *+' conftest.err >conftest.er1
1566     cat conftest.er1 >&5
1567     mv -f conftest.er1 conftest.err
1568   fi
1569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570   test $ac_status = 0; } && {
1571          test -z "$ac_c_werror_flag" ||
1572          test ! -s conftest.err
1573        } && test -s conftest$ac_exeext && {
1574          test "$cross_compiling" = yes ||
1575          test -x conftest$ac_exeext
1576        }; then :
1577   ac_retval=0
1578 else
1579   $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582         ac_retval=1
1583 fi
1584   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1585   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1586   # interfere with the next link command; also delete a directory that is
1587   # left behind by Apple's compiler.  We do this before executing the actions.
1588   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590   as_fn_set_status $ac_retval
1591
1592 } # ac_fn_c_try_link
1593
1594 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1595 # -------------------------------------------------------
1596 # Tests whether HEADER exists and can be compiled using the include files in
1597 # INCLUDES, setting the cache variable VAR accordingly.
1598 ac_fn_c_check_header_compile ()
1599 {
1600   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602 $as_echo_n "checking for $2... " >&6; }
1603 if eval \${$3+:} false; then :
1604   $as_echo_n "(cached) " >&6
1605 else
1606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h.  */
1608 $4
1609 #include <$2>
1610 _ACEOF
1611 if ac_fn_c_try_compile "$LINENO"; then :
1612   eval "$3=yes"
1613 else
1614   eval "$3=no"
1615 fi
1616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617 fi
1618 eval ac_res=\$$3
1619                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623 } # ac_fn_c_check_header_compile
1624
1625 # ac_fn_c_try_cpp LINENO
1626 # ----------------------
1627 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_cpp ()
1629 {
1630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631   if { { ac_try="$ac_cpp conftest.$ac_ext"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639   ac_status=$?
1640   if test -s conftest.err; then
1641     grep -v '^ *+' conftest.err >conftest.er1
1642     cat conftest.er1 >&5
1643     mv -f conftest.er1 conftest.err
1644   fi
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } > conftest.i && {
1647          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648          test ! -s conftest.err
1649        }; then :
1650   ac_retval=0
1651 else
1652   $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655     ac_retval=1
1656 fi
1657   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658   as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_cpp
1661
1662 # ac_fn_c_try_run LINENO
1663 # ----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1665 # that executables *can* be run.
1666 ac_fn_c_try_run ()
1667 {
1668   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669   if { { ac_try="$ac_link"
1670 case "(($ac_try" in
1671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672   *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676   (eval "$ac_link") 2>&5
1677   ac_status=$?
1678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1680   { { case "(($ac_try" in
1681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682   *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686   (eval "$ac_try") 2>&5
1687   ac_status=$?
1688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689   test $ac_status = 0; }; }; then :
1690   ac_retval=0
1691 else
1692   $as_echo "$as_me: program exited with status $ac_status" >&5
1693        $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696        ac_retval=$ac_status
1697 fi
1698   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700   as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_run
1703
1704 # ac_fn_c_check_func LINENO FUNC VAR
1705 # ----------------------------------
1706 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1707 ac_fn_c_check_func ()
1708 {
1709   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713   $as_echo_n "(cached) " >&6
1714 else
1715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h.  */
1717 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1719 #define $2 innocuous_$2
1720
1721 /* System header to define __stub macros and hopefully few prototypes,
1722     which can conflict with char $2 (); below.
1723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1724     <limits.h> exists even on freestanding compilers.  */
1725
1726 #ifdef __STDC__
1727 # include <limits.h>
1728 #else
1729 # include <assert.h>
1730 #endif
1731
1732 #undef $2
1733
1734 /* Override any GCC internal prototype to avoid an error.
1735    Use char because int might match the return type of a GCC
1736    builtin and then its argument prototype would still apply.  */
1737 #ifdef __cplusplus
1738 extern "C"
1739 #endif
1740 char $2 ();
1741 /* The GNU C library defines this for functions which it implements
1742     to always fail with ENOSYS.  Some functions are actually named
1743     something starting with __ and the normal name is an alias.  */
1744 #if defined __stub_$2 || defined __stub___$2
1745 choke me
1746 #endif
1747
1748 int
1749 main ()
1750 {
1751 return $2 ();
1752   ;
1753   return 0;
1754 }
1755 _ACEOF
1756 if ac_fn_c_try_link "$LINENO"; then :
1757   eval "$3=yes"
1758 else
1759   eval "$3=no"
1760 fi
1761 rm -f core conftest.err conftest.$ac_objext \
1762     conftest$ac_exeext conftest.$ac_ext
1763 fi
1764 eval ac_res=\$$3
1765                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769 } # ac_fn_c_check_func
1770
1771 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1772 # -------------------------------------------------------
1773 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1774 # the include files in INCLUDES and setting the cache variable VAR
1775 # accordingly.
1776 ac_fn_c_check_header_mongrel ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   if eval \${$3+:} false; then :
1780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783   $as_echo_n "(cached) " >&6
1784 fi
1785 eval ac_res=\$$3
1786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 else
1789   # Is the header compilable?
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1791 $as_echo_n "checking $2 usability... " >&6; }
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h.  */
1794 $4
1795 #include <$2>
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798   ac_header_compiler=yes
1799 else
1800   ac_header_compiler=no
1801 fi
1802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1804 $as_echo "$ac_header_compiler" >&6; }
1805
1806 # Is the header present?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1808 $as_echo_n "checking $2 presence... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_cpp "$LINENO"; then :
1814   ac_header_preproc=yes
1815 else
1816   ac_header_preproc=no
1817 fi
1818 rm -f conftest.err conftest.i conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1820 $as_echo "$ac_header_preproc" >&6; }
1821
1822 # So?  What about this header?
1823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1824   yes:no: )
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1826 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1828 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829     ;;
1830   no:yes:* )
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1832 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1834 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1836 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1837     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1838 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1840 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 ( $as_echo "## ---------------------------- ##
1842 ## Report this to libzip@nih.at ##
1843 ## ---------------------------- ##"
1844      ) | sed "s/^/$as_me: WARNING:     /" >&2
1845     ;;
1846 esac
1847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850   $as_echo_n "(cached) " >&6
1851 else
1852   eval "$3=\$ac_header_compiler"
1853 fi
1854 eval ac_res=\$$3
1855                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 fi
1858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860 } # ac_fn_c_check_header_mongrel
1861
1862 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1863 # -------------------------------------------
1864 # Tests whether TYPE exists after having included INCLUDES, setting cache
1865 # variable VAR accordingly.
1866 ac_fn_c_check_type ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872   $as_echo_n "(cached) " >&6
1873 else
1874   eval "$3=no"
1875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h.  */
1877 $4
1878 int
1879 main ()
1880 {
1881 if (sizeof ($2))
1882          return 0;
1883   ;
1884   return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 $4
1891 int
1892 main ()
1893 {
1894 if (sizeof (($2)))
1895             return 0;
1896   ;
1897   return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901
1902 else
1903   eval "$3=yes"
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 eval ac_res=\$$3
1910                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914 } # ac_fn_c_check_type
1915
1916 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1917 # --------------------------------------------
1918 # Tries to find the compile-time value of EXPR in a program that includes
1919 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1920 # computed
1921 ac_fn_c_compute_int ()
1922 {
1923   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924   if test "$cross_compiling" = yes; then
1925     # Depending upon the size, compute the lo and hi bounds.
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h.  */
1928 $4
1929 int
1930 main ()
1931 {
1932 static int test_array [1 - 2 * !(($2) >= 0)];
1933 test_array [0] = 0;
1934 return test_array [0];
1935
1936   ;
1937   return 0;
1938 }
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941   ac_lo=0 ac_mid=0
1942   while :; do
1943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h.  */
1945 $4
1946 int
1947 main ()
1948 {
1949 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1950 test_array [0] = 0;
1951 return test_array [0];
1952
1953   ;
1954   return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958   ac_hi=$ac_mid; break
1959 else
1960   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1961                         if test $ac_lo -le $ac_mid; then
1962                           ac_lo= ac_hi=
1963                           break
1964                         fi
1965                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968   done
1969 else
1970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h.  */
1972 $4
1973 int
1974 main ()
1975 {
1976 static int test_array [1 - 2 * !(($2) < 0)];
1977 test_array [0] = 0;
1978 return test_array [0];
1979
1980   ;
1981   return 0;
1982 }
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985   ac_hi=-1 ac_mid=-1
1986   while :; do
1987     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 $4
1990 int
1991 main ()
1992 {
1993 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1994 test_array [0] = 0;
1995 return test_array [0];
1996
1997   ;
1998   return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002   ac_lo=$ac_mid; break
2003 else
2004   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2005                         if test $ac_mid -le $ac_hi; then
2006                           ac_lo= ac_hi=
2007                           break
2008                         fi
2009                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012   done
2013 else
2014   ac_lo= ac_hi=
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 # Binary search between lo and hi bounds.
2020 while test "x$ac_lo" != "x$ac_hi"; do
2021   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h.  */
2024 $4
2025 int
2026 main ()
2027 {
2028 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2029 test_array [0] = 0;
2030 return test_array [0];
2031
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037   ac_hi=$ac_mid
2038 else
2039   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 done
2043 case $ac_lo in #((
2044 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2045 '') ac_retval=1 ;;
2046 esac
2047   else
2048     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h.  */
2050 $4
2051 static long int longval () { return $2; }
2052 static unsigned long int ulongval () { return $2; }
2053 #include <stdio.h>
2054 #include <stdlib.h>
2055 int
2056 main ()
2057 {
2058
2059   FILE *f = fopen ("conftest.val", "w");
2060   if (! f)
2061     return 1;
2062   if (($2) < 0)
2063     {
2064       long int i = longval ();
2065       if (i != ($2))
2066         return 1;
2067       fprintf (f, "%ld", i);
2068     }
2069   else
2070     {
2071       unsigned long int i = ulongval ();
2072       if (i != ($2))
2073         return 1;
2074       fprintf (f, "%lu", i);
2075     }
2076   /* Do not output a trailing newline, as this causes \r\n confusion
2077      on some platforms.  */
2078   return ferror (f) || fclose (f) != 0;
2079
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_run "$LINENO"; then :
2085   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2086 else
2087   ac_retval=1
2088 fi
2089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2090   conftest.$ac_objext conftest.beam conftest.$ac_ext
2091 rm -f conftest.val
2092
2093   fi
2094   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095   as_fn_set_status $ac_retval
2096
2097 } # ac_fn_c_compute_int
2098
2099 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2100 # ----------------------------------------------------
2101 # Tries to find if the field MEMBER exists in type AGGR, after including
2102 # INCLUDES, setting cache variable VAR accordingly.
2103 ac_fn_c_check_member ()
2104 {
2105   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2107 $as_echo_n "checking for $2.$3... " >&6; }
2108 if eval \${$4+:} false; then :
2109   $as_echo_n "(cached) " >&6
2110 else
2111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h.  */
2113 $5
2114 int
2115 main ()
2116 {
2117 static $2 ac_aggr;
2118 if (ac_aggr.$3)
2119 return 0;
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125   eval "$4=yes"
2126 else
2127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h.  */
2129 $5
2130 int
2131 main ()
2132 {
2133 static $2 ac_aggr;
2134 if (sizeof ac_aggr.$3)
2135 return 0;
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141   eval "$4=yes"
2142 else
2143   eval "$4=no"
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 fi
2149 eval ac_res=\$$4
2150                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151 $as_echo "$ac_res" >&6; }
2152   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2153
2154 } # ac_fn_c_check_member
2155
2156 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2157 # ---------------------------------------------
2158 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2159 # accordingly.
2160 ac_fn_c_check_decl ()
2161 {
2162   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163   as_decl_name=`echo $2|sed 's/ *(.*//'`
2164   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2166 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2167 if eval \${$3+:} false; then :
2168   $as_echo_n "(cached) " >&6
2169 else
2170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h.  */
2172 $4
2173 int
2174 main ()
2175 {
2176 #ifndef $as_decl_name
2177 #ifdef __cplusplus
2178   (void) $as_decl_use;
2179 #else
2180   (void) $as_decl_name;
2181 #endif
2182 #endif
2183
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189   eval "$3=yes"
2190 else
2191   eval "$3=no"
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 fi
2195 eval ac_res=\$$3
2196                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197 $as_echo "$ac_res" >&6; }
2198   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199
2200 } # ac_fn_c_check_decl
2201 cat >config.log <<_ACEOF
2202 This file contains any messages produced by compilers while
2203 running configure, to aid debugging if configure makes a mistake.
2204
2205 It was created by libzip $as_me 1.0.1, which was
2206 generated by GNU Autoconf 2.69.  Invocation command line was
2207
2208   $ $0 $@
2209
2210 _ACEOF
2211 exec 5>>config.log
2212 {
2213 cat <<_ASUNAME
2214 ## --------- ##
2215 ## Platform. ##
2216 ## --------- ##
2217
2218 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2219 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2220 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2221 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2222 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2223
2224 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2225 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2226
2227 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2228 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2229 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2230 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2231 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2232 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2233 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2234
2235 _ASUNAME
2236
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240   IFS=$as_save_IFS
2241   test -z "$as_dir" && as_dir=.
2242     $as_echo "PATH: $as_dir"
2243   done
2244 IFS=$as_save_IFS
2245
2246 } >&5
2247
2248 cat >&5 <<_ACEOF
2249
2250
2251 ## ----------- ##
2252 ## Core tests. ##
2253 ## ----------- ##
2254
2255 _ACEOF
2256
2257
2258 # Keep a trace of the command line.
2259 # Strip out --no-create and --no-recursion so they do not pile up.
2260 # Strip out --silent because we don't want to record it for future runs.
2261 # Also quote any args containing shell meta-characters.
2262 # Make two passes to allow for proper duplicate-argument suppression.
2263 ac_configure_args=
2264 ac_configure_args0=
2265 ac_configure_args1=
2266 ac_must_keep_next=false
2267 for ac_pass in 1 2
2268 do
2269   for ac_arg
2270   do
2271     case $ac_arg in
2272     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2273     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2274     | -silent | --silent | --silen | --sile | --sil)
2275       continue ;;
2276     *\'*)
2277       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2278     esac
2279     case $ac_pass in
2280     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2281     2)
2282       as_fn_append ac_configure_args1 " '$ac_arg'"
2283       if test $ac_must_keep_next = true; then
2284         ac_must_keep_next=false # Got value, back to normal.
2285       else
2286         case $ac_arg in
2287           *=* | --config-cache | -C | -disable-* | --disable-* \
2288           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2289           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2290           | -with-* | --with-* | -without-* | --without-* | --x)
2291             case "$ac_configure_args0 " in
2292               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2293             esac
2294             ;;
2295           -* ) ac_must_keep_next=true ;;
2296         esac
2297       fi
2298       as_fn_append ac_configure_args " '$ac_arg'"
2299       ;;
2300     esac
2301   done
2302 done
2303 { ac_configure_args0=; unset ac_configure_args0;}
2304 { ac_configure_args1=; unset ac_configure_args1;}
2305
2306 # When interrupted or exit'd, cleanup temporary files, and complete
2307 # config.log.  We remove comments because anyway the quotes in there
2308 # would cause problems or look ugly.
2309 # WARNING: Use '\'' to represent an apostrophe within the trap.
2310 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2311 trap 'exit_status=$?
2312   # Save into config.log some information that might help in debugging.
2313   {
2314     echo
2315
2316     $as_echo "## ---------------- ##
2317 ## Cache variables. ##
2318 ## ---------------- ##"
2319     echo
2320     # The following way of writing the cache mishandles newlines in values,
2321 (
2322   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2323     eval ac_val=\$$ac_var
2324     case $ac_val in #(
2325     *${as_nl}*)
2326       case $ac_var in #(
2327       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2328 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2329       esac
2330       case $ac_var in #(
2331       _ | IFS | as_nl) ;; #(
2332       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2333       *) { eval $ac_var=; unset $ac_var;} ;;
2334       esac ;;
2335     esac
2336   done
2337   (set) 2>&1 |
2338     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2339     *${as_nl}ac_space=\ *)
2340       sed -n \
2341         "s/'\''/'\''\\\\'\'''\''/g;
2342           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2343       ;; #(
2344     *)
2345       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2346       ;;
2347     esac |
2348     sort
2349 )
2350     echo
2351
2352     $as_echo "## ----------------- ##
2353 ## Output variables. ##
2354 ## ----------------- ##"
2355     echo
2356     for ac_var in $ac_subst_vars
2357     do
2358       eval ac_val=\$$ac_var
2359       case $ac_val in
2360       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361       esac
2362       $as_echo "$ac_var='\''$ac_val'\''"
2363     done | sort
2364     echo
2365
2366     if test -n "$ac_subst_files"; then
2367       $as_echo "## ------------------- ##
2368 ## File substitutions. ##
2369 ## ------------------- ##"
2370       echo
2371       for ac_var in $ac_subst_files
2372       do
2373         eval ac_val=\$$ac_var
2374         case $ac_val in
2375         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376         esac
2377         $as_echo "$ac_var='\''$ac_val'\''"
2378       done | sort
2379       echo
2380     fi
2381
2382     if test -s confdefs.h; then
2383       $as_echo "## ----------- ##
2384 ## confdefs.h. ##
2385 ## ----------- ##"
2386       echo
2387       cat confdefs.h
2388       echo
2389     fi
2390     test "$ac_signal" != 0 &&
2391       $as_echo "$as_me: caught signal $ac_signal"
2392     $as_echo "$as_me: exit $exit_status"
2393   } >&5
2394   rm -f core *.core core.conftest.* &&
2395     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2396     exit $exit_status
2397 ' 0
2398 for ac_signal in 1 2 13 15; do
2399   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2400 done
2401 ac_signal=0
2402
2403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2404 rm -f -r conftest* confdefs.h
2405
2406 $as_echo "/* confdefs.h */" > confdefs.h
2407
2408 # Predefined preprocessor variables.
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_NAME "$PACKAGE_NAME"
2412 _ACEOF
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2416 _ACEOF
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_STRING "$PACKAGE_STRING"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_URL "$PACKAGE_URL"
2432 _ACEOF
2433
2434
2435 # Let the site file select an alternate cache file if it wants to.
2436 # Prefer an explicitly selected file to automatically selected ones.
2437 ac_site_file1=NONE
2438 ac_site_file2=NONE
2439 if test -n "$CONFIG_SITE"; then
2440   # We do not want a PATH search for config.site.
2441   case $CONFIG_SITE in #((
2442     -*)  ac_site_file1=./$CONFIG_SITE;;
2443     */*) ac_site_file1=$CONFIG_SITE;;
2444     *)   ac_site_file1=./$CONFIG_SITE;;
2445   esac
2446 elif test "x$prefix" != xNONE; then
2447   ac_site_file1=$prefix/share/config.site
2448   ac_site_file2=$prefix/etc/config.site
2449 else
2450   ac_site_file1=$ac_default_prefix/share/config.site
2451   ac_site_file2=$ac_default_prefix/etc/config.site
2452 fi
2453 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2454 do
2455   test "x$ac_site_file" = xNONE && continue
2456   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2457     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2458 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2459     sed 's/^/| /' "$ac_site_file" >&5
2460     . "$ac_site_file" \
2461       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463 as_fn_error $? "failed to load site script $ac_site_file
2464 See \`config.log' for more details" "$LINENO" 5; }
2465   fi
2466 done
2467
2468 if test -r "$cache_file"; then
2469   # Some versions of bash will fail to source /dev/null (special files
2470   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2471   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2472     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2473 $as_echo "$as_me: loading cache $cache_file" >&6;}
2474     case $cache_file in
2475       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2476       *)                      . "./$cache_file";;
2477     esac
2478   fi
2479 else
2480   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2481 $as_echo "$as_me: creating cache $cache_file" >&6;}
2482   >$cache_file
2483 fi
2484
2485 # Check that the precious variables saved in the cache have kept the same
2486 # value.
2487 ac_cache_corrupted=false
2488 for ac_var in $ac_precious_vars; do
2489   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2490   eval ac_new_set=\$ac_env_${ac_var}_set
2491   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2492   eval ac_new_val=\$ac_env_${ac_var}_value
2493   case $ac_old_set,$ac_new_set in
2494     set,)
2495       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2496 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2497       ac_cache_corrupted=: ;;
2498     ,set)
2499       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2501       ac_cache_corrupted=: ;;
2502     ,);;
2503     *)
2504       if test "x$ac_old_val" != "x$ac_new_val"; then
2505         # differences in whitespace do not lead to failure.
2506         ac_old_val_w=`echo x $ac_old_val`
2507         ac_new_val_w=`echo x $ac_new_val`
2508         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2509           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2510 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2511           ac_cache_corrupted=:
2512         else
2513           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2514 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2515           eval $ac_var=\$ac_old_val
2516         fi
2517         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2518 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2519         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2520 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2521       fi;;
2522   esac
2523   # Pass precious variables to config.status.
2524   if test "$ac_new_set" = set; then
2525     case $ac_new_val in
2526     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2527     *) ac_arg=$ac_var=$ac_new_val ;;
2528     esac
2529     case " $ac_configure_args " in
2530       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2531       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2532     esac
2533   fi
2534 done
2535 if $ac_cache_corrupted; then
2536   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2539 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2540   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2541 fi
2542 ## -------------------- ##
2543 ## Main body of script. ##
2544 ## -------------------- ##
2545
2546 ac_ext=c
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2551
2552
2553
2554 ac_config_headers="$ac_config_headers config.h"
2555
2556
2557 am__api_version='1.14'
2558
2559 ac_aux_dir=
2560 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2561   if test -f "$ac_dir/install-sh"; then
2562     ac_aux_dir=$ac_dir
2563     ac_install_sh="$ac_aux_dir/install-sh -c"
2564     break
2565   elif test -f "$ac_dir/install.sh"; then
2566     ac_aux_dir=$ac_dir
2567     ac_install_sh="$ac_aux_dir/install.sh -c"
2568     break
2569   elif test -f "$ac_dir/shtool"; then
2570     ac_aux_dir=$ac_dir
2571     ac_install_sh="$ac_aux_dir/shtool install -c"
2572     break
2573   fi
2574 done
2575 if test -z "$ac_aux_dir"; then
2576   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2577 fi
2578
2579 # These three variables are undocumented and unsupported,
2580 # and are intended to be withdrawn in a future Autoconf release.
2581 # They can cause serious problems if a builder's source tree is in a directory
2582 # whose full name contains unusual characters.
2583 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2584 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2585 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2586
2587
2588 # Find a good install program.  We prefer a C program (faster),
2589 # so one script is as good as another.  But avoid the broken or
2590 # incompatible versions:
2591 # SysV /etc/install, /usr/sbin/install
2592 # SunOS /usr/etc/install
2593 # IRIX /sbin/install
2594 # AIX /bin/install
2595 # AmigaOS /C/install, which installs bootblocks on floppy discs
2596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2599 # OS/2's system install, which has a completely different semantic
2600 # ./install, which can be erroneously created by make from ./install.sh.
2601 # Reject install programs that cannot install multiple files.
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2603 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2604 if test -z "$INSTALL"; then
2605 if ${ac_cv_path_install+:} false; then :
2606   $as_echo_n "(cached) " >&6
2607 else
2608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611   IFS=$as_save_IFS
2612   test -z "$as_dir" && as_dir=.
2613     # Account for people who put trailing slashes in PATH elements.
2614 case $as_dir/ in #((
2615   ./ | .// | /[cC]/* | \
2616   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2617   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2618   /usr/ucb/* ) ;;
2619   *)
2620     # OSF1 and SCO ODT 3.0 have their own names for install.
2621     # Don't use installbsd from OSF since it installs stuff as root
2622     # by default.
2623     for ac_prog in ginstall scoinst install; do
2624       for ac_exec_ext in '' $ac_executable_extensions; do
2625         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2626           if test $ac_prog = install &&
2627             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2628             # AIX install.  It has an incompatible calling convention.
2629             :
2630           elif test $ac_prog = install &&
2631             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2632             # program-specific install script used by HP pwplus--don't use.
2633             :
2634           else
2635             rm -rf conftest.one conftest.two conftest.dir
2636             echo one > conftest.one
2637             echo two > conftest.two
2638             mkdir conftest.dir
2639             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2640               test -s conftest.one && test -s conftest.two &&
2641               test -s conftest.dir/conftest.one &&
2642               test -s conftest.dir/conftest.two
2643             then
2644               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2645               break 3
2646             fi
2647           fi
2648         fi
2649       done
2650     done
2651     ;;
2652 esac
2653
2654   done
2655 IFS=$as_save_IFS
2656
2657 rm -rf conftest.one conftest.two conftest.dir
2658
2659 fi
2660   if test "${ac_cv_path_install+set}" = set; then
2661     INSTALL=$ac_cv_path_install
2662   else
2663     # As a last resort, use the slow shell script.  Don't cache a
2664     # value for INSTALL within a source directory, because that will
2665     # break other packages using the cache if that directory is
2666     # removed, or if the value is a relative name.
2667     INSTALL=$ac_install_sh
2668   fi
2669 fi
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2671 $as_echo "$INSTALL" >&6; }
2672
2673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2674 # It thinks the first close brace ends the variable substitution.
2675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2676
2677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2678
2679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2680
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2682 $as_echo_n "checking whether build environment is sane... " >&6; }
2683 # Reject unsafe characters in $srcdir or the absolute working directory
2684 # name.  Accept space and tab only in the latter.
2685 am_lf='
2686 '
2687 case `pwd` in
2688   *[\\\"\#\$\&\'\`$am_lf]*)
2689     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2690 esac
2691 case $srcdir in
2692   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2693     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2694 esac
2695
2696 # Do 'set' in a subshell so we don't clobber the current shell's
2697 # arguments.  Must try -L first in case configure is actually a
2698 # symlink; some systems play weird games with the mod time of symlinks
2699 # (eg FreeBSD returns the mod time of the symlink's containing
2700 # directory).
2701 if (
2702    am_has_slept=no
2703    for am_try in 1 2; do
2704      echo "timestamp, slept: $am_has_slept" > conftest.file
2705      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2706      if test "$*" = "X"; then
2707         # -L didn't work.
2708         set X `ls -t "$srcdir/configure" conftest.file`
2709      fi
2710      if test "$*" != "X $srcdir/configure conftest.file" \
2711         && test "$*" != "X conftest.file $srcdir/configure"; then
2712
2713         # If neither matched, then we have a broken ls.  This can happen
2714         # if, for instance, CONFIG_SHELL is bash and it inherits a
2715         # broken ls alias from the environment.  This has actually
2716         # happened.  Such a system could not be considered "sane".
2717         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2718   alias in your environment" "$LINENO" 5
2719      fi
2720      if test "$2" = conftest.file || test $am_try -eq 2; then
2721        break
2722      fi
2723      # Just in case.
2724      sleep 1
2725      am_has_slept=yes
2726    done
2727    test "$2" = conftest.file
2728    )
2729 then
2730    # Ok.
2731    :
2732 else
2733    as_fn_error $? "newly created file is older than distributed files!
2734 Check your system clock" "$LINENO" 5
2735 fi
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2737 $as_echo "yes" >&6; }
2738 # If we didn't sleep, we still need to ensure time stamps of config.status and
2739 # generated files are strictly newer.
2740 am_sleep_pid=
2741 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2742   ( sleep 1 ) &
2743   am_sleep_pid=$!
2744 fi
2745
2746 rm -f conftest.file
2747
2748 test "$program_prefix" != NONE &&
2749   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2750 # Use a double $ so make ignores it.
2751 test "$program_suffix" != NONE &&
2752   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2753 # Double any \ or $.
2754 # By default was `s,x,x', remove it if useless.
2755 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2756 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2757
2758 # expand $ac_aux_dir to an absolute path
2759 am_aux_dir=`cd $ac_aux_dir && pwd`
2760
2761 if test x"${MISSING+set}" != xset; then
2762   case $am_aux_dir in
2763   *\ * | *\     *)
2764     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2765   *)
2766     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2767   esac
2768 fi
2769 # Use eval to expand $SHELL
2770 if eval "$MISSING --is-lightweight"; then
2771   am_missing_run="$MISSING "
2772 else
2773   am_missing_run=
2774   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2775 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2776 fi
2777
2778 if test x"${install_sh}" != xset; then
2779   case $am_aux_dir in
2780   *\ * | *\     *)
2781     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2782   *)
2783     install_sh="\${SHELL} $am_aux_dir/install-sh"
2784   esac
2785 fi
2786
2787 # Installed binaries are usually stripped using 'strip' when the user
2788 # run "make install-strip".  However 'strip' might not be the right
2789 # tool to use in cross-compilation environments, therefore Automake
2790 # will honor the 'STRIP' environment variable to overrule this program.
2791 if test "$cross_compiling" != no; then
2792   if test -n "$ac_tool_prefix"; then
2793   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2794 set dummy ${ac_tool_prefix}strip; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if ${ac_cv_prog_STRIP+:} false; then :
2798   $as_echo_n "(cached) " >&6
2799 else
2800   if test -n "$STRIP"; then
2801   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806   IFS=$as_save_IFS
2807   test -z "$as_dir" && as_dir=.
2808     for ac_exec_ext in '' $ac_executable_extensions; do
2809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812     break 2
2813   fi
2814 done
2815   done
2816 IFS=$as_save_IFS
2817
2818 fi
2819 fi
2820 STRIP=$ac_cv_prog_STRIP
2821 if test -n "$STRIP"; then
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2823 $as_echo "$STRIP" >&6; }
2824 else
2825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 fi
2828
2829
2830 fi
2831 if test -z "$ac_cv_prog_STRIP"; then
2832   ac_ct_STRIP=$STRIP
2833   # Extract the first word of "strip", so it can be a program name with args.
2834 set dummy strip; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2838   $as_echo_n "(cached) " >&6
2839 else
2840   if test -n "$ac_ct_STRIP"; then
2841   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846   IFS=$as_save_IFS
2847   test -z "$as_dir" && as_dir=.
2848     for ac_exec_ext in '' $ac_executable_extensions; do
2849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850     ac_cv_prog_ac_ct_STRIP="strip"
2851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852     break 2
2853   fi
2854 done
2855   done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2861 if test -n "$ac_ct_STRIP"; then
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2863 $as_echo "$ac_ct_STRIP" >&6; }
2864 else
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2867 fi
2868
2869   if test "x$ac_ct_STRIP" = x; then
2870     STRIP=":"
2871   else
2872     case $cross_compiling:$ac_tool_warned in
2873 yes:)
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876 ac_tool_warned=yes ;;
2877 esac
2878     STRIP=$ac_ct_STRIP
2879   fi
2880 else
2881   STRIP="$ac_cv_prog_STRIP"
2882 fi
2883
2884 fi
2885 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2886
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2888 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2889 if test -z "$MKDIR_P"; then
2890   if ${ac_cv_path_mkdir+:} false; then :
2891   $as_echo_n "(cached) " >&6
2892 else
2893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2895 do
2896   IFS=$as_save_IFS
2897   test -z "$as_dir" && as_dir=.
2898     for ac_prog in mkdir gmkdir; do
2899          for ac_exec_ext in '' $ac_executable_extensions; do
2900            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2901            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2902              'mkdir (GNU coreutils) '* | \
2903              'mkdir (coreutils) '* | \
2904              'mkdir (fileutils) '4.1*)
2905                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2906                break 3;;
2907            esac
2908          done
2909        done
2910   done
2911 IFS=$as_save_IFS
2912
2913 fi
2914
2915   test -d ./--version && rmdir ./--version
2916   if test "${ac_cv_path_mkdir+set}" = set; then
2917     MKDIR_P="$ac_cv_path_mkdir -p"
2918   else
2919     # As a last resort, use the slow shell script.  Don't cache a
2920     # value for MKDIR_P within a source directory, because that will
2921     # break other packages using the cache if that directory is
2922     # removed, or if the value is a relative name.
2923     MKDIR_P="$ac_install_sh -d"
2924   fi
2925 fi
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2927 $as_echo "$MKDIR_P" >&6; }
2928
2929 for ac_prog in gawk mawk nawk awk
2930 do
2931   # Extract the first word of "$ac_prog", so it can be a program name with args.
2932 set dummy $ac_prog; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_AWK+:} false; then :
2936   $as_echo_n "(cached) " >&6
2937 else
2938   if test -n "$AWK"; then
2939   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946     for ac_exec_ext in '' $ac_executable_extensions; do
2947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948     ac_cv_prog_AWK="$ac_prog"
2949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950     break 2
2951   fi
2952 done
2953   done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 AWK=$ac_cv_prog_AWK
2959 if test -n "$AWK"; then
2960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2961 $as_echo "$AWK" >&6; }
2962 else
2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968   test -n "$AWK" && break
2969 done
2970
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2972 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2973 set x ${MAKE-make}
2974 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2975 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2976   $as_echo_n "(cached) " >&6
2977 else
2978   cat >conftest.make <<\_ACEOF
2979 SHELL = /bin/sh
2980 all:
2981         @echo '@@@%%%=$(MAKE)=@@@%%%'
2982 _ACEOF
2983 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2984 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2985   *@@@%%%=?*=@@@%%%*)
2986     eval ac_cv_prog_make_${ac_make}_set=yes;;
2987   *)
2988     eval ac_cv_prog_make_${ac_make}_set=no;;
2989 esac
2990 rm -f conftest.make
2991 fi
2992 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2994 $as_echo "yes" >&6; }
2995   SET_MAKE=
2996 else
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999   SET_MAKE="MAKE=${MAKE-make}"
3000 fi
3001
3002 rm -rf .tst 2>/dev/null
3003 mkdir .tst 2>/dev/null
3004 if test -d .tst; then
3005   am__leading_dot=.
3006 else
3007   am__leading_dot=_
3008 fi
3009 rmdir .tst 2>/dev/null
3010
3011 # Check whether --enable-silent-rules was given.
3012 if test "${enable_silent_rules+set}" = set; then :
3013   enableval=$enable_silent_rules;
3014 fi
3015
3016 case $enable_silent_rules in # (((
3017   yes) AM_DEFAULT_VERBOSITY=0;;
3018    no) AM_DEFAULT_VERBOSITY=1;;
3019     *) AM_DEFAULT_VERBOSITY=1;;
3020 esac
3021 am_make=${MAKE-make}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3023 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3024 if ${am_cv_make_support_nested_variables+:} false; then :
3025   $as_echo_n "(cached) " >&6
3026 else
3027   if $as_echo 'TRUE=$(BAR$(V))
3028 BAR0=false
3029 BAR1=true
3030 V=1
3031 am__doit:
3032         @$(TRUE)
3033 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3034   am_cv_make_support_nested_variables=yes
3035 else
3036   am_cv_make_support_nested_variables=no
3037 fi
3038 fi
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3040 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3041 if test $am_cv_make_support_nested_variables = yes; then
3042     AM_V='$(V)'
3043   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3044 else
3045   AM_V=$AM_DEFAULT_VERBOSITY
3046   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3047 fi
3048 AM_BACKSLASH='\'
3049
3050 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3051   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3052   # is not polluted with repeated "-I."
3053   am__isrc=' -I$(srcdir)'
3054   # test to see if srcdir already configured
3055   if test -f $srcdir/config.status; then
3056     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3057   fi
3058 fi
3059
3060 # test whether we have cygpath
3061 if test -z "$CYGPATH_W"; then
3062   if (cygpath --version) >/dev/null 2>/dev/null; then
3063     CYGPATH_W='cygpath -w'
3064   else
3065     CYGPATH_W=echo
3066   fi
3067 fi
3068
3069
3070 # Define the identity of the package.
3071  PACKAGE='libzip'
3072  VERSION='1.0.1'
3073
3074
3075 cat >>confdefs.h <<_ACEOF
3076 #define PACKAGE "$PACKAGE"
3077 _ACEOF
3078
3079
3080 cat >>confdefs.h <<_ACEOF
3081 #define VERSION "$VERSION"
3082 _ACEOF
3083
3084 # Some tools Automake needs.
3085
3086 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3087
3088
3089 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3090
3091
3092 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3093
3094
3095 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3096
3097
3098 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3099
3100 # For better backward compatibility.  To be removed once Automake 1.9.x
3101 # dies out for good.  For more background, see:
3102 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3103 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3104 mkdir_p='$(MKDIR_P)'
3105
3106 # We need awk for the "check" target.  The system "awk" is bad on
3107 # some platforms.
3108 # Always define AMTAR for backward compatibility.  Yes, it's still used
3109 # in the wild :-(  We should find a proper way to deprecate it ...
3110 AMTAR='$${TAR-tar}'
3111
3112
3113 # We'll loop over all known methods to create a tar archive until one works.
3114 _am_tools='gnutar  pax cpio none'
3115
3116 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3117
3118
3119
3120
3121
3122
3123 # POSIX will say in a future version that running "rm -f" with no argument
3124 # is OK; and we want to be able to make that assumption in our Makefile
3125 # recipes.  So use an aggressive probe to check that the usage we want is
3126 # actually supported "in the wild" to an acceptable degree.
3127 # See automake bug#10828.
3128 # To make any issue more visible, cause the running configure to be aborted
3129 # by default if the 'rm' program in use doesn't match our expectations; the
3130 # user can still override this though.
3131 if rm -f && rm -fr && rm -rf; then : OK; else
3132   cat >&2 <<'END'
3133 Oops!
3134
3135 Your 'rm' program seems unable to run without file operands specified
3136 on the command line, even when the '-f' option is present.  This is contrary
3137 to the behaviour of most rm programs out there, and not conforming with
3138 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3139
3140 Please tell bug-automake@gnu.org about your system, including the value
3141 of your $PATH and any error possibly output before this message.  This
3142 can help us improve future automake versions.
3143
3144 END
3145   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3146     echo 'Configuration will proceed anyway, since you have set the' >&2
3147     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3148     echo >&2
3149   else
3150     cat >&2 <<'END'
3151 Aborting the configuration process, to ensure you take notice of the issue.
3152
3153 You can download and install GNU coreutils to get an 'rm' implementation
3154 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3155
3156 If you want to complete the configuration process using your problematic
3157 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3158 to "yes", and re-run configure.
3159
3160 END
3161     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3162   fi
3163 fi
3164
3165 # Make sure we can run config.sub.
3166 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3167   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3168
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3170 $as_echo_n "checking build system type... " >&6; }
3171 if ${ac_cv_build+:} false; then :
3172   $as_echo_n "(cached) " >&6
3173 else
3174   ac_build_alias=$build_alias
3175 test "x$ac_build_alias" = x &&
3176   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3177 test "x$ac_build_alias" = x &&
3178   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3179 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3180   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3181
3182 fi
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3184 $as_echo "$ac_cv_build" >&6; }
3185 case $ac_cv_build in
3186 *-*-*) ;;
3187 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3188 esac
3189 build=$ac_cv_build
3190 ac_save_IFS=$IFS; IFS='-'
3191 set x $ac_cv_build
3192 shift
3193 build_cpu=$1
3194 build_vendor=$2
3195 shift; shift
3196 # Remember, the first character of IFS is used to create $*,
3197 # except with old shells:
3198 build_os=$*
3199 IFS=$ac_save_IFS
3200 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3201
3202
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3204 $as_echo_n "checking host system type... " >&6; }
3205 if ${ac_cv_host+:} false; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   if test "x$host_alias" = x; then
3209   ac_cv_host=$ac_cv_build
3210 else
3211   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3212     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3213 fi
3214
3215 fi
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3217 $as_echo "$ac_cv_host" >&6; }
3218 case $ac_cv_host in
3219 *-*-*) ;;
3220 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3221 esac
3222 host=$ac_cv_host
3223 ac_save_IFS=$IFS; IFS='-'
3224 set x $ac_cv_host
3225 shift
3226 host_cpu=$1
3227 host_vendor=$2
3228 shift; shift
3229 # Remember, the first character of IFS is used to create $*,
3230 # except with old shells:
3231 host_os=$*
3232 IFS=$ac_save_IFS
3233 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3234
3235
3236 case $host_os in
3237     *bsd*)
3238         PKG_CONFIG_RPATH=-Wl,-R\${libdir};;
3239     *)
3240         PKG_CONFIG_RPATH=;;
3241 esac
3242
3243
3244
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250 if test -n "$ac_tool_prefix"; then
3251   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if ${ac_cv_prog_CC+:} false; then :
3256   $as_echo_n "(cached) " >&6
3257 else
3258   if test -n "$CC"; then
3259   ac_cv_prog_CC="$CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264   IFS=$as_save_IFS
3265   test -z "$as_dir" && as_dir=.
3266     for ac_exec_ext in '' $ac_executable_extensions; do
3267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270     break 2
3271   fi
3272 done
3273   done
3274 IFS=$as_save_IFS
3275
3276 fi
3277 fi
3278 CC=$ac_cv_prog_CC
3279 if test -n "$CC"; then
3280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281 $as_echo "$CC" >&6; }
3282 else
3283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
3286
3287
3288 fi
3289 if test -z "$ac_cv_prog_CC"; then
3290   ac_ct_CC=$CC
3291   # Extract the first word of "gcc", so it can be a program name with args.
3292 set dummy gcc; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3296   $as_echo_n "(cached) " >&6
3297 else
3298   if test -n "$ac_ct_CC"; then
3299   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304   IFS=$as_save_IFS
3305   test -z "$as_dir" && as_dir=.
3306     for ac_exec_ext in '' $ac_executable_extensions; do
3307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308     ac_cv_prog_ac_ct_CC="gcc"
3309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310     break 2
3311   fi
3312 done
3313   done
3314 IFS=$as_save_IFS
3315
3316 fi
3317 fi
3318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319 if test -n "$ac_ct_CC"; then
3320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3321 $as_echo "$ac_ct_CC" >&6; }
3322 else
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 fi
3326
3327   if test "x$ac_ct_CC" = x; then
3328     CC=""
3329   else
3330     case $cross_compiling:$ac_tool_warned in
3331 yes:)
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3334 ac_tool_warned=yes ;;
3335 esac
3336     CC=$ac_ct_CC
3337   fi
3338 else
3339   CC="$ac_cv_prog_CC"
3340 fi
3341
3342 if test -z "$CC"; then
3343           if test -n "$ac_tool_prefix"; then
3344     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}cc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_CC+:} false; then :
3349   $as_echo_n "(cached) " >&6
3350 else
3351   if test -n "$CC"; then
3352   ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357   IFS=$as_save_IFS
3358   test -z "$as_dir" && as_dir=.
3359     for ac_exec_ext in '' $ac_executable_extensions; do
3360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361     ac_cv_prog_CC="${ac_tool_prefix}cc"
3362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363     break 2
3364   fi
3365 done
3366   done
3367 IFS=$as_save_IFS
3368
3369 fi
3370 fi
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3375 else
3376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 fi
3379
3380
3381   fi
3382 fi
3383 if test -z "$CC"; then
3384   # Extract the first word of "cc", so it can be a program name with args.
3385 set dummy cc; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_prog_CC+:} false; then :
3389   $as_echo_n "(cached) " >&6
3390 else
3391   if test -n "$CC"; then
3392   ac_cv_prog_CC="$CC" # Let the user override the test.
3393 else
3394   ac_prog_rejected=no
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400     for ac_exec_ext in '' $ac_executable_extensions; do
3401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3403        ac_prog_rejected=yes
3404        continue
3405      fi
3406     ac_cv_prog_CC="cc"
3407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408     break 2
3409   fi
3410 done
3411   done
3412 IFS=$as_save_IFS
3413
3414 if test $ac_prog_rejected = yes; then
3415   # We found a bogon in the path, so make sure we never use it.
3416   set dummy $ac_cv_prog_CC
3417   shift
3418   if test $# != 0; then
3419     # We chose a different compiler from the bogus one.
3420     # However, it has the same basename, so the bogon will be chosen
3421     # first if we set CC to just the basename; use the full file name.
3422     shift
3423     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3424   fi
3425 fi
3426 fi
3427 fi
3428 CC=$ac_cv_prog_CC
3429 if test -n "$CC"; then
3430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3431 $as_echo "$CC" >&6; }
3432 else
3433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3435 fi
3436
3437
3438 fi
3439 if test -z "$CC"; then
3440   if test -n "$ac_tool_prefix"; then
3441   for ac_prog in cl.exe
3442   do
3443     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446 $as_echo_n "checking for $ac_word... " >&6; }
3447 if ${ac_cv_prog_CC+:} false; then :
3448   $as_echo_n "(cached) " >&6
3449 else
3450   if test -n "$CC"; then
3451   ac_cv_prog_CC="$CC" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456   IFS=$as_save_IFS
3457   test -z "$as_dir" && as_dir=.
3458     for ac_exec_ext in '' $ac_executable_extensions; do
3459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462     break 2
3463   fi
3464 done
3465   done
3466 IFS=$as_save_IFS
3467
3468 fi
3469 fi
3470 CC=$ac_cv_prog_CC
3471 if test -n "$CC"; then
3472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473 $as_echo "$CC" >&6; }
3474 else
3475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3477 fi
3478
3479
3480     test -n "$CC" && break
3481   done
3482 fi
3483 if test -z "$CC"; then
3484   ac_ct_CC=$CC
3485   for ac_prog in cl.exe
3486 do
3487   # Extract the first word of "$ac_prog", so it can be a program name with args.
3488 set dummy $ac_prog; ac_word=$2
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490 $as_echo_n "checking for $ac_word... " >&6; }
3491 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3492   $as_echo_n "(cached) " >&6
3493 else
3494   if test -n "$ac_ct_CC"; then
3495   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3499 do
3500   IFS=$as_save_IFS
3501   test -z "$as_dir" && as_dir=.
3502     for ac_exec_ext in '' $ac_executable_extensions; do
3503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504     ac_cv_prog_ac_ct_CC="$ac_prog"
3505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506     break 2
3507   fi
3508 done
3509   done
3510 IFS=$as_save_IFS
3511
3512 fi
3513 fi
3514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3515 if test -n "$ac_ct_CC"; then
3516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3517 $as_echo "$ac_ct_CC" >&6; }
3518 else
3519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3521 fi
3522
3523
3524   test -n "$ac_ct_CC" && break
3525 done
3526
3527   if test "x$ac_ct_CC" = x; then
3528     CC=""
3529   else
3530     case $cross_compiling:$ac_tool_warned in
3531 yes:)
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3534 ac_tool_warned=yes ;;
3535 esac
3536     CC=$ac_ct_CC
3537   fi
3538 fi
3539
3540 fi
3541
3542
3543 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "no acceptable C compiler found in \$PATH
3546 See \`config.log' for more details" "$LINENO" 5; }
3547
3548 # Provide some information about the compiler.
3549 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3550 set X $ac_compile
3551 ac_compiler=$2
3552 for ac_option in --version -v -V -qversion; do
3553   { { ac_try="$ac_compiler $ac_option >&5"
3554 case "(($ac_try" in
3555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556   *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3561   ac_status=$?
3562   if test -s conftest.err; then
3563     sed '10a\
3564 ... rest of stderr output deleted ...
3565          10q' conftest.err >conftest.er1
3566     cat conftest.er1 >&5
3567   fi
3568   rm -f conftest.er1 conftest.err
3569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570   test $ac_status = 0; }
3571 done
3572
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h.  */
3575
3576 int
3577 main ()
3578 {
3579
3580   ;
3581   return 0;
3582 }
3583 _ACEOF
3584 ac_clean_files_save=$ac_clean_files
3585 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3586 # Try to create an executable without -o first, disregard a.out.
3587 # It will help us diagnose broken compilers, and finding out an intuition
3588 # of exeext.
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3590 $as_echo_n "checking whether the C compiler works... " >&6; }
3591 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3592
3593 # The possible output files:
3594 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3595
3596 ac_rmfiles=
3597 for ac_file in $ac_files
3598 do
3599   case $ac_file in
3600     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3601     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3602   esac
3603 done
3604 rm -f $ac_rmfiles
3605
3606 if { { ac_try="$ac_link_default"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613   (eval "$ac_link_default") 2>&5
3614   ac_status=$?
3615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616   test $ac_status = 0; }; then :
3617   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3618 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3619 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3620 # so that the user can short-circuit this test for compilers unknown to
3621 # Autoconf.
3622 for ac_file in $ac_files ''
3623 do
3624   test -f "$ac_file" || continue
3625   case $ac_file in
3626     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3627         ;;
3628     [ab].out )
3629         # We found the default executable, but exeext='' is most
3630         # certainly right.
3631         break;;
3632     *.* )
3633         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3634         then :; else
3635            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3636         fi
3637         # We set ac_cv_exeext here because the later test for it is not
3638         # safe: cross compilers may not add the suffix if given an `-o'
3639         # argument, so we may need to know it at that point already.
3640         # Even if this section looks crufty: it has the advantage of
3641         # actually working.
3642         break;;
3643     * )
3644         break;;
3645   esac
3646 done
3647 test "$ac_cv_exeext" = no && ac_cv_exeext=
3648
3649 else
3650   ac_file=''
3651 fi
3652 if test -z "$ac_file"; then :
3653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 $as_echo "no" >&6; }
3655 $as_echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3657
3658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3660 as_fn_error 77 "C compiler cannot create executables
3661 See \`config.log' for more details" "$LINENO" 5; }
3662 else
3663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3664 $as_echo "yes" >&6; }
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3667 $as_echo_n "checking for C compiler default output file name... " >&6; }
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3669 $as_echo "$ac_file" >&6; }
3670 ac_exeext=$ac_cv_exeext
3671
3672 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3673 ac_clean_files=$ac_clean_files_save
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3675 $as_echo_n "checking for suffix of executables... " >&6; }
3676 if { { ac_try="$ac_link"
3677 case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683   (eval "$ac_link") 2>&5
3684   ac_status=$?
3685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686   test $ac_status = 0; }; then :
3687   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3688 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3689 # work properly (i.e., refer to `conftest.exe'), while it won't with
3690 # `rm'.
3691 for ac_file in conftest.exe conftest conftest.*; do
3692   test -f "$ac_file" || continue
3693   case $ac_file in
3694     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3695     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3696           break;;
3697     * ) break;;
3698   esac
3699 done
3700 else
3701   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3703 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3704 See \`config.log' for more details" "$LINENO" 5; }
3705 fi
3706 rm -f conftest conftest$ac_cv_exeext
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3708 $as_echo "$ac_cv_exeext" >&6; }
3709
3710 rm -f conftest.$ac_ext
3711 EXEEXT=$ac_cv_exeext
3712 ac_exeext=$EXEEXT
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h.  */
3715 #include <stdio.h>
3716 int
3717 main ()
3718 {
3719 FILE *f = fopen ("conftest.out", "w");
3720  return ferror (f) || fclose (f) != 0;
3721
3722   ;
3723   return 0;
3724 }
3725 _ACEOF
3726 ac_clean_files="$ac_clean_files conftest.out"
3727 # Check that the compiler produces executables we can run.  If not, either
3728 # the compiler is broken, or we cross compile.
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3730 $as_echo_n "checking whether we are cross compiling... " >&6; }
3731 if test "$cross_compiling" != yes; then
3732   { { ac_try="$ac_link"
3733 case "(($ac_try" in
3734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735   *) ac_try_echo=$ac_try;;
3736 esac
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739   (eval "$ac_link") 2>&5
3740   ac_status=$?
3741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742   test $ac_status = 0; }
3743   if { ac_try='./conftest$ac_cv_exeext'
3744   { { case "(($ac_try" in
3745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746   *) ac_try_echo=$ac_try;;
3747 esac
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750   (eval "$ac_try") 2>&5
3751   ac_status=$?
3752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753   test $ac_status = 0; }; }; then
3754     cross_compiling=no
3755   else
3756     if test "$cross_compiling" = maybe; then
3757         cross_compiling=yes
3758     else
3759         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 as_fn_error $? "cannot run C compiled programs.
3762 If you meant to cross compile, use \`--host'.
3763 See \`config.log' for more details" "$LINENO" 5; }
3764     fi
3765   fi
3766 fi
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3768 $as_echo "$cross_compiling" >&6; }
3769
3770 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3771 ac_clean_files=$ac_clean_files_save
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3773 $as_echo_n "checking for suffix of object files... " >&6; }
3774 if ${ac_cv_objext+:} false; then :
3775   $as_echo_n "(cached) " >&6
3776 else
3777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h.  */
3779
3780 int
3781 main ()
3782 {
3783
3784   ;
3785   return 0;
3786 }
3787 _ACEOF
3788 rm -f conftest.o conftest.obj
3789 if { { ac_try="$ac_compile"
3790 case "(($ac_try" in
3791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792   *) ac_try_echo=$ac_try;;
3793 esac
3794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795 $as_echo "$ac_try_echo"; } >&5
3796   (eval "$ac_compile") 2>&5
3797   ac_status=$?
3798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799   test $ac_status = 0; }; then :
3800   for ac_file in conftest.o conftest.obj conftest.*; do
3801   test -f "$ac_file" || continue;
3802   case $ac_file in
3803     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3804     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3805        break;;
3806   esac
3807 done
3808 else
3809   $as_echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 as_fn_error $? "cannot compute suffix of object files: cannot compile
3815 See \`config.log' for more details" "$LINENO" 5; }
3816 fi
3817 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3820 $as_echo "$ac_cv_objext" >&6; }
3821 OBJEXT=$ac_cv_objext
3822 ac_objext=$OBJEXT
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3824 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3825 if ${ac_cv_c_compiler_gnu+:} false; then :
3826   $as_echo_n "(cached) " >&6
3827 else
3828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h.  */
3830
3831 int
3832 main ()
3833 {
3834 #ifndef __GNUC__
3835        choke me
3836 #endif
3837
3838   ;
3839   return 0;
3840 }
3841 _ACEOF
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843   ac_compiler_gnu=yes
3844 else
3845   ac_compiler_gnu=no
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3849
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3852 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3853 if test $ac_compiler_gnu = yes; then
3854   GCC=yes
3855 else
3856   GCC=
3857 fi
3858 ac_test_CFLAGS=${CFLAGS+set}
3859 ac_save_CFLAGS=$CFLAGS
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3861 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3862 if ${ac_cv_prog_cc_g+:} false; then :
3863   $as_echo_n "(cached) " >&6
3864 else
3865   ac_save_c_werror_flag=$ac_c_werror_flag
3866    ac_c_werror_flag=yes
3867    ac_cv_prog_cc_g=no
3868    CFLAGS="-g"
3869    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h.  */
3871
3872 int
3873 main ()
3874 {
3875
3876   ;
3877   return 0;
3878 }
3879 _ACEOF
3880 if ac_fn_c_try_compile "$LINENO"; then :
3881   ac_cv_prog_cc_g=yes
3882 else
3883   CFLAGS=""
3884       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h.  */
3886
3887 int
3888 main ()
3889 {
3890
3891   ;
3892   return 0;
3893 }
3894 _ACEOF
3895 if ac_fn_c_try_compile "$LINENO"; then :
3896
3897 else
3898   ac_c_werror_flag=$ac_save_c_werror_flag
3899          CFLAGS="-g"
3900          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h.  */
3902
3903 int
3904 main ()
3905 {
3906
3907   ;
3908   return 0;
3909 }
3910 _ACEOF
3911 if ac_fn_c_try_compile "$LINENO"; then :
3912   ac_cv_prog_cc_g=yes
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 fi
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 fi
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919    ac_c_werror_flag=$ac_save_c_werror_flag
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3922 $as_echo "$ac_cv_prog_cc_g" >&6; }
3923 if test "$ac_test_CFLAGS" = set; then
3924   CFLAGS=$ac_save_CFLAGS
3925 elif test $ac_cv_prog_cc_g = yes; then
3926   if test "$GCC" = yes; then
3927     CFLAGS="-g -O2"
3928   else
3929     CFLAGS="-g"
3930   fi
3931 else
3932   if test "$GCC" = yes; then
3933     CFLAGS="-O2"
3934   else
3935     CFLAGS=
3936   fi
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3939 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3940 if ${ac_cv_prog_cc_c89+:} false; then :
3941   $as_echo_n "(cached) " >&6
3942 else
3943   ac_cv_prog_cc_c89=no
3944 ac_save_CC=$CC
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h.  */
3947 #include <stdarg.h>
3948 #include <stdio.h>
3949 struct stat;
3950 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3951 struct buf { int x; };
3952 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3953 static char *e (p, i)
3954      char **p;
3955      int i;
3956 {
3957   return p[i];
3958 }
3959 static char *f (char * (*g) (char **, int), char **p, ...)
3960 {
3961   char *s;
3962   va_list v;
3963   va_start (v,p);
3964   s = g (p, va_arg (v,int));
3965   va_end (v);
3966   return s;
3967 }
3968
3969 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3970    function prototypes and stuff, but not '\xHH' hex character constants.
3971    These don't provoke an error unfortunately, instead are silently treated
3972    as 'x'.  The following induces an error, until -std is added to get
3973    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3974    array size at least.  It's necessary to write '\x00'==0 to get something
3975    that's true only with -std.  */
3976 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3977
3978 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3979    inside strings and character constants.  */
3980 #define FOO(x) 'x'
3981 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3982
3983 int test (int i, double x);
3984 struct s1 {int (*f) (int a);};
3985 struct s2 {int (*f) (double a);};
3986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3987 int argc;
3988 char **argv;
3989 int
3990 main ()
3991 {
3992 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3993   ;
3994   return 0;
3995 }
3996 _ACEOF
3997 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3998         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3999 do
4000   CC="$ac_save_CC $ac_arg"
4001   if ac_fn_c_try_compile "$LINENO"; then :
4002   ac_cv_prog_cc_c89=$ac_arg
4003 fi
4004 rm -f core conftest.err conftest.$ac_objext
4005   test "x$ac_cv_prog_cc_c89" != "xno" && break
4006 done
4007 rm -f conftest.$ac_ext
4008 CC=$ac_save_CC
4009
4010 fi
4011 # AC_CACHE_VAL
4012 case "x$ac_cv_prog_cc_c89" in
4013   x)
4014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4015 $as_echo "none needed" >&6; } ;;
4016   xno)
4017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4018 $as_echo "unsupported" >&6; } ;;
4019   *)
4020     CC="$CC $ac_cv_prog_cc_c89"
4021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4022 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4023 esac
4024 if test "x$ac_cv_prog_cc_c89" != xno; then :
4025
4026 fi
4027
4028 ac_ext=c
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033
4034 ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4040 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4041 if ${am_cv_prog_cc_c_o+:} false; then :
4042   $as_echo_n "(cached) " >&6
4043 else
4044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h.  */
4046
4047 int
4048 main ()
4049 {
4050
4051   ;
4052   return 0;
4053 }
4054 _ACEOF
4055   # Make sure it works both with $CC and with simple cc.
4056   # Following AC_PROG_CC_C_O, we do the test twice because some
4057   # compilers refuse to overwrite an existing .o file with -o,
4058   # though they will create one.
4059   am_cv_prog_cc_c_o=yes
4060   for am_i in 1 2; do
4061     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4062    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4063    ac_status=$?
4064    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065    (exit $ac_status); } \
4066          && test -f conftest2.$ac_objext; then
4067       : OK
4068     else
4069       am_cv_prog_cc_c_o=no
4070       break
4071     fi
4072   done
4073   rm -f core conftest*
4074   unset am_i
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4077 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4078 if test "$am_cv_prog_cc_c_o" != yes; then
4079    # Losing compiler, so override with the script.
4080    # FIXME: It is wrong to rewrite CC.
4081    # But if we don't then we get into trouble of one sort or another.
4082    # A longer-term fix would be to have automake use am__CC in this case,
4083    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4084    CC="$am_aux_dir/compile $CC"
4085 fi
4086 ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091
4092 DEPDIR="${am__leading_dot}deps"
4093
4094 ac_config_commands="$ac_config_commands depfiles"
4095
4096
4097 am_make=${MAKE-make}
4098 cat > confinc << 'END'
4099 am__doit:
4100         @echo this is the am__doit target
4101 .PHONY: am__doit
4102 END
4103 # If we don't find an include directive, just comment out the code.
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4105 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4106 am__include="#"
4107 am__quote=
4108 _am_result=none
4109 # First try GNU make style include.
4110 echo "include confinc" > confmf
4111 # Ignore all kinds of additional output from 'make'.
4112 case `$am_make -s -f confmf 2> /dev/null` in #(
4113 *the\ am__doit\ target*)
4114   am__include=include
4115   am__quote=
4116   _am_result=GNU
4117   ;;
4118 esac
4119 # Now try BSD make style include.
4120 if test "$am__include" = "#"; then
4121    echo '.include "confinc"' > confmf
4122    case `$am_make -s -f confmf 2> /dev/null` in #(
4123    *the\ am__doit\ target*)
4124      am__include=.include
4125      am__quote="\""
4126      _am_result=BSD
4127      ;;
4128    esac
4129 fi
4130
4131
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4133 $as_echo "$_am_result" >&6; }
4134 rm -f confinc confmf
4135
4136 # Check whether --enable-dependency-tracking was given.
4137 if test "${enable_dependency_tracking+set}" = set; then :
4138   enableval=$enable_dependency_tracking;
4139 fi
4140
4141 if test "x$enable_dependency_tracking" != xno; then
4142   am_depcomp="$ac_aux_dir/depcomp"
4143   AMDEPBACKSLASH='\'
4144   am__nodep='_no'
4145 fi
4146  if test "x$enable_dependency_tracking" != xno; then
4147   AMDEP_TRUE=
4148   AMDEP_FALSE='#'
4149 else
4150   AMDEP_TRUE='#'
4151   AMDEP_FALSE=
4152 fi
4153
4154
4155
4156 depcc="$CC"   am_compiler_list=
4157
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4159 $as_echo_n "checking dependency style of $depcc... " >&6; }
4160 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4161   $as_echo_n "(cached) " >&6
4162 else
4163   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4164   # We make a subdir and do the tests there.  Otherwise we can end up
4165   # making bogus files that we don't know about and never remove.  For
4166   # instance it was reported that on HP-UX the gcc test will end up
4167   # making a dummy file named 'D' -- because '-MD' means "put the output
4168   # in D".
4169   rm -rf conftest.dir
4170   mkdir conftest.dir
4171   # Copy depcomp to subdir because otherwise we won't find it if we're
4172   # using a relative directory.
4173   cp "$am_depcomp" conftest.dir
4174   cd conftest.dir
4175   # We will build objects and dependencies in a subdirectory because
4176   # it helps to detect inapplicable dependency modes.  For instance
4177   # both Tru64's cc and ICC support -MD to output dependencies as a
4178   # side effect of compilation, but ICC will put the dependencies in
4179   # the current directory while Tru64 will put them in the object
4180   # directory.
4181   mkdir sub
4182
4183   am_cv_CC_dependencies_compiler_type=none
4184   if test "$am_compiler_list" = ""; then
4185      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4186   fi
4187   am__universal=false
4188   case " $depcc " in #(
4189      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4190      esac
4191
4192   for depmode in $am_compiler_list; do
4193     # Setup a source with many dependencies, because some compilers
4194     # like to wrap large dependency lists on column 80 (with \), and
4195     # we should not choose a depcomp mode which is confused by this.
4196     #
4197     # We need to recreate these files for each test, as the compiler may
4198     # overwrite some of them when testing with obscure command lines.
4199     # This happens at least with the AIX C compiler.
4200     : > sub/conftest.c
4201     for i in 1 2 3 4 5 6; do
4202       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4203       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4204       # Solaris 10 /bin/sh.
4205       echo '/* dummy */' > sub/conftst$i.h
4206     done
4207     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4208
4209     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4210     # mode.  It turns out that the SunPro C++ compiler does not properly
4211     # handle '-M -o', and we need to detect this.  Also, some Intel
4212     # versions had trouble with output in subdirs.
4213     am__obj=sub/conftest.${OBJEXT-o}
4214     am__minus_obj="-o $am__obj"
4215     case $depmode in
4216     gcc)
4217       # This depmode causes a compiler race in universal mode.
4218       test "$am__universal" = false || continue
4219       ;;
4220     nosideeffect)
4221       # After this tag, mechanisms are not by side-effect, so they'll
4222       # only be used when explicitly requested.
4223       if test "x$enable_dependency_tracking" = xyes; then
4224         continue
4225       else
4226         break
4227       fi
4228       ;;
4229     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4230       # This compiler won't grok '-c -o', but also, the minuso test has
4231       # not run yet.  These depmodes are late enough in the game, and
4232       # so weak that their functioning should not be impacted.
4233       am__obj=conftest.${OBJEXT-o}
4234       am__minus_obj=
4235       ;;
4236     none) break ;;
4237     esac
4238     if depmode=$depmode \
4239        source=sub/conftest.c object=$am__obj \
4240        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4241        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4242          >/dev/null 2>conftest.err &&
4243        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4244        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4245        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4246        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4247       # icc doesn't choke on unknown options, it will just issue warnings
4248       # or remarks (even with -Werror).  So we grep stderr for any message
4249       # that says an option was ignored or not supported.
4250       # When given -MP, icc 7.0 and 7.1 complain thusly:
4251       #   icc: Command line warning: ignoring option '-M'; no argument required
4252       # The diagnosis changed in icc 8.0:
4253       #   icc: Command line remark: option '-MP' not supported
4254       if (grep 'ignoring option' conftest.err ||
4255           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4256         am_cv_CC_dependencies_compiler_type=$depmode
4257         break
4258       fi
4259     fi
4260   done
4261
4262   cd ..
4263   rm -rf conftest.dir
4264 else
4265   am_cv_CC_dependencies_compiler_type=none
4266 fi
4267
4268 fi
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4270 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4271 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4272
4273  if
4274   test "x$enable_dependency_tracking" != xno \
4275   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4276   am__fastdepCC_TRUE=
4277   am__fastdepCC_FALSE='#'
4278 else
4279   am__fastdepCC_TRUE='#'
4280   am__fastdepCC_FALSE=
4281 fi
4282
4283
4284
4285 # Check whether --enable-largefile was given.
4286 if test "${enable_largefile+set}" = set; then :
4287   enableval=$enable_largefile;
4288 fi
4289
4290 if test "$enable_largefile" != no; then
4291
4292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4293 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4294 if ${ac_cv_sys_largefile_CC+:} false; then :
4295   $as_echo_n "(cached) " >&6
4296 else
4297   ac_cv_sys_largefile_CC=no
4298      if test "$GCC" != yes; then
4299        ac_save_CC=$CC
4300        while :; do
4301          # IRIX 6.2 and later do not support large files by default,
4302          # so use the C compiler's -n32 option if that helps.
4303          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h.  */
4305 #include <sys/types.h>
4306  /* Check that off_t can represent 2**63 - 1 correctly.
4307     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4308     since some C++ compilers masquerading as C compilers
4309     incorrectly reject 9223372036854775807.  */
4310 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4311   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4312                        && LARGE_OFF_T % 2147483647 == 1)
4313                       ? 1 : -1];
4314 int
4315 main ()
4316 {
4317
4318   ;
4319   return 0;
4320 }
4321 _ACEOF
4322          if ac_fn_c_try_compile "$LINENO"; then :
4323   break
4324 fi
4325 rm -f core conftest.err conftest.$ac_objext
4326          CC="$CC -n32"
4327          if ac_fn_c_try_compile "$LINENO"; then :
4328   ac_cv_sys_largefile_CC=' -n32'; break
4329 fi
4330 rm -f core conftest.err conftest.$ac_objext
4331          break
4332        done
4333        CC=$ac_save_CC
4334        rm -f conftest.$ac_ext
4335     fi
4336 fi
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4338 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4339   if test "$ac_cv_sys_largefile_CC" != no; then
4340     CC=$CC$ac_cv_sys_largefile_CC
4341   fi
4342
4343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4344 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4345 if ${ac_cv_sys_file_offset_bits+:} false; then :
4346   $as_echo_n "(cached) " >&6
4347 else
4348   while :; do
4349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h.  */
4351 #include <sys/types.h>
4352  /* Check that off_t can represent 2**63 - 1 correctly.
4353     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4354     since some C++ compilers masquerading as C compilers
4355     incorrectly reject 9223372036854775807.  */
4356 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4357   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4358                        && LARGE_OFF_T % 2147483647 == 1)
4359                       ? 1 : -1];
4360 int
4361 main ()
4362 {
4363
4364   ;
4365   return 0;
4366 }
4367 _ACEOF
4368 if ac_fn_c_try_compile "$LINENO"; then :
4369   ac_cv_sys_file_offset_bits=no; break
4370 fi
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h.  */
4374 #define _FILE_OFFSET_BITS 64
4375 #include <sys/types.h>
4376  /* Check that off_t can represent 2**63 - 1 correctly.
4377     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4378     since some C++ compilers masquerading as C compilers
4379     incorrectly reject 9223372036854775807.  */
4380 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4381   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4382                        && LARGE_OFF_T % 2147483647 == 1)
4383                       ? 1 : -1];
4384 int
4385 main ()
4386 {
4387
4388   ;
4389   return 0;
4390 }
4391 _ACEOF
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393   ac_cv_sys_file_offset_bits=64; break
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396   ac_cv_sys_file_offset_bits=unknown
4397   break
4398 done
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4401 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4402 case $ac_cv_sys_file_offset_bits in #(
4403   no | unknown) ;;
4404   *)
4405 cat >>confdefs.h <<_ACEOF
4406 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4407 _ACEOF
4408 ;;
4409 esac
4410 rm -rf conftest*
4411   if test $ac_cv_sys_file_offset_bits = unknown; then
4412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4413 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4414 if ${ac_cv_sys_large_files+:} false; then :
4415   $as_echo_n "(cached) " >&6
4416 else
4417   while :; do
4418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h.  */
4420 #include <sys/types.h>
4421  /* Check that off_t can represent 2**63 - 1 correctly.
4422     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4423     since some C++ compilers masquerading as C compilers
4424     incorrectly reject 9223372036854775807.  */
4425 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4426   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4427                        && LARGE_OFF_T % 2147483647 == 1)
4428                       ? 1 : -1];
4429 int
4430 main ()
4431 {
4432
4433   ;
4434   return 0;
4435 }
4436 _ACEOF
4437 if ac_fn_c_try_compile "$LINENO"; then :
4438   ac_cv_sys_large_files=no; break
4439 fi
4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h.  */
4443 #define _LARGE_FILES 1
4444 #include <sys/types.h>
4445  /* Check that off_t can represent 2**63 - 1 correctly.
4446     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4447     since some C++ compilers masquerading as C compilers
4448     incorrectly reject 9223372036854775807.  */
4449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4450   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4451                        && LARGE_OFF_T % 2147483647 == 1)
4452                       ? 1 : -1];
4453 int
4454 main ()
4455 {
4456
4457   ;
4458   return 0;
4459 }
4460 _ACEOF
4461 if ac_fn_c_try_compile "$LINENO"; then :
4462   ac_cv_sys_large_files=1; break
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465   ac_cv_sys_large_files=unknown
4466   break
4467 done
4468 fi
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4470 $as_echo "$ac_cv_sys_large_files" >&6; }
4471 case $ac_cv_sys_large_files in #(
4472   no | unknown) ;;
4473   *)
4474 cat >>confdefs.h <<_ACEOF
4475 #define _LARGE_FILES $ac_cv_sys_large_files
4476 _ACEOF
4477 ;;
4478 esac
4479 rm -rf conftest*
4480   fi
4481
4482
4483 fi
4484
4485
4486
4487
4488 # Check whether --with-zlib was given.
4489 if test "${with_zlib+set}" = set; then :
4490   withval=$with_zlib;
4491 else
4492   with_zlib=yes
4493 fi
4494
4495
4496 if test "$with_zlib" != "yes"
4497 then
4498     if test -f "$with_zlib"/zlib.h
4499     then
4500         # PREFIX is to uninstalled version in distribution directory
4501         CFLAGS="$CFLAGS -I$with_zlib"
4502         LDFLAGS="$LDFLAGS -L$with_zlib"
4503     else if test -f "$with_zlib"/include/zlib.h
4504     then
4505         # PREFIX is installation prefix
4506         CFLAGS="$CFLAGS -I$with_zlib/include"
4507         LDFLAGS="$LDFLAGS -L$with_zlib/lib"
4508     fi
4509     fi
4510 fi
4511
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
4513 $as_echo_n "checking for main in -lz... " >&6; }
4514 if ${ac_cv_lib_z_main+:} false; then :
4515   $as_echo_n "(cached) " >&6
4516 else
4517   ac_check_lib_save_LIBS=$LIBS
4518 LIBS="-lz  $LIBS"
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h.  */
4521
4522
4523 int
4524 main ()
4525 {
4526 return main ();
4527   ;
4528   return 0;
4529 }
4530 _ACEOF
4531 if ac_fn_c_try_link "$LINENO"; then :
4532   ac_cv_lib_z_main=yes
4533 else
4534   ac_cv_lib_z_main=no
4535 fi
4536 rm -f core conftest.err conftest.$ac_objext \
4537     conftest$ac_exeext conftest.$ac_ext
4538 LIBS=$ac_check_lib_save_LIBS
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
4541 $as_echo "$ac_cv_lib_z_main" >&6; }
4542 if test "x$ac_cv_lib_z_main" = xyes; then :
4543   cat >>confdefs.h <<_ACEOF
4544 #define HAVE_LIBZ 1
4545 _ACEOF
4546
4547   LIBS="-lz $LIBS"
4548
4549 fi
4550
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking new ZLIB version" >&5
4552 $as_echo_n "checking new ZLIB version... " >&6; }
4553 if ${id_cv_lib_zlib_ok+:} false; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h.  */
4558 #include <zlib.h>
4559 int
4560 main ()
4561 {
4562 extern ZEXPORT int unzOpen (const char *path);
4563   ;
4564   return 0;
4565 }
4566 _ACEOF
4567 if ac_fn_c_try_compile "$LINENO"; then :
4568   id_cv_lib_zlib_ok=yes
4569 else
4570   id_cv_lib_zlib_ok=no
4571 fi
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 fi
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $id_cv_lib_zlib_ok" >&5
4575 $as_echo "$id_cv_lib_zlib_ok" >&6; }
4576 if test "$id_cv_lib_zlib_ok" = "no"
4577 then
4578     as_fn_error $? "ZLIB version too old, please install at least v1.1.2" "$LINENO" 5
4579 fi
4580
4581
4582
4583 case `pwd` in
4584   *\ * | *\     *)
4585     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4586 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4587 esac
4588
4589
4590
4591 macro_version='2.4.2'
4592 macro_revision='1.3337'
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606 ltmain="$ac_aux_dir/ltmain.sh"
4607
4608 # Backslashify metacharacters that are still active within
4609 # double-quoted strings.
4610 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4611
4612 # Same as above, but do not quote variable references.
4613 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4614
4615 # Sed substitution to delay expansion of an escaped shell variable in a
4616 # double_quote_subst'ed string.
4617 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4618
4619 # Sed substitution to delay expansion of an escaped single quote.
4620 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4621
4622 # Sed substitution to avoid accidental globbing in evaled expressions
4623 no_glob_subst='s/\*/\\\*/g'
4624
4625 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4626 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4627 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4628
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4630 $as_echo_n "checking how to print strings... " >&6; }
4631 # Test print first, because it will be a builtin if present.
4632 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4633    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4634   ECHO='print -r --'
4635 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4636   ECHO='printf %s\n'
4637 else
4638   # Use this function as a fallback that always works.
4639   func_fallback_echo ()
4640   {
4641     eval 'cat <<_LTECHO_EOF
4642 $1
4643 _LTECHO_EOF'
4644   }
4645   ECHO='func_fallback_echo'
4646 fi
4647
4648 # func_echo_all arg...
4649 # Invoke $ECHO with all args, space-separated.
4650 func_echo_all ()
4651 {
4652     $ECHO ""
4653 }
4654
4655 case "$ECHO" in
4656   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4657 $as_echo "printf" >&6; } ;;
4658   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4659 $as_echo "print -r" >&6; } ;;
4660   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4661 $as_echo "cat" >&6; } ;;
4662 esac
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4678 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4679 if ${ac_cv_path_SED+:} false; then :
4680   $as_echo_n "(cached) " >&6
4681 else
4682             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4683      for ac_i in 1 2 3 4 5 6 7; do
4684        ac_script="$ac_script$as_nl$ac_script"
4685      done
4686      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4687      { ac_script=; unset ac_script;}
4688      if test -z "$SED"; then
4689   ac_path_SED_found=false
4690   # Loop through the user's path and test for each of PROGNAME-LIST
4691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694   IFS=$as_save_IFS
4695   test -z "$as_dir" && as_dir=.
4696     for ac_prog in sed gsed; do
4697     for ac_exec_ext in '' $ac_executable_extensions; do
4698       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4699       as_fn_executable_p "$ac_path_SED" || continue
4700 # Check for GNU ac_path_SED and select it if it is found.
4701   # Check for GNU $ac_path_SED
4702 case `"$ac_path_SED" --version 2>&1` in
4703 *GNU*)
4704   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4705 *)
4706   ac_count=0
4707   $as_echo_n 0123456789 >"conftest.in"
4708   while :
4709   do
4710     cat "conftest.in" "conftest.in" >"conftest.tmp"
4711     mv "conftest.tmp" "conftest.in"
4712     cp "conftest.in" "conftest.nl"
4713     $as_echo '' >> "conftest.nl"
4714     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4715     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4716     as_fn_arith $ac_count + 1 && ac_count=$as_val
4717     if test $ac_count -gt ${ac_path_SED_max-0}; then
4718       # Best one so far, save it but keep looking for a better one
4719       ac_cv_path_SED="$ac_path_SED"
4720       ac_path_SED_max=$ac_count
4721     fi
4722     # 10*(2^10) chars as input seems more than enough
4723     test $ac_count -gt 10 && break
4724   done
4725   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4726 esac
4727
4728       $ac_path_SED_found && break 3
4729     done
4730   done
4731   done
4732 IFS=$as_save_IFS
4733   if test -z "$ac_cv_path_SED"; then
4734     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4735   fi
4736 else
4737   ac_cv_path_SED=$SED
4738 fi
4739
4740 fi
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4742 $as_echo "$ac_cv_path_SED" >&6; }
4743  SED="$ac_cv_path_SED"
4744   rm -f conftest.sed
4745
4746 test -z "$SED" && SED=sed
4747 Xsed="$SED -e 1s/^X//"
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4760 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4761 if ${ac_cv_path_GREP+:} false; then :
4762   $as_echo_n "(cached) " >&6
4763 else
4764   if test -z "$GREP"; then
4765   ac_path_GREP_found=false
4766   # Loop through the user's path and test for each of PROGNAME-LIST
4767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4769 do
4770   IFS=$as_save_IFS
4771   test -z "$as_dir" && as_dir=.
4772     for ac_prog in grep ggrep; do
4773     for ac_exec_ext in '' $ac_executable_extensions; do
4774       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4775       as_fn_executable_p "$ac_path_GREP" || continue
4776 # Check for GNU ac_path_GREP and select it if it is found.
4777   # Check for GNU $ac_path_GREP
4778 case `"$ac_path_GREP" --version 2>&1` in
4779 *GNU*)
4780   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4781 *)
4782   ac_count=0
4783   $as_echo_n 0123456789 >"conftest.in"
4784   while :
4785   do
4786     cat "conftest.in" "conftest.in" >"conftest.tmp"
4787     mv "conftest.tmp" "conftest.in"
4788     cp "conftest.in" "conftest.nl"
4789     $as_echo 'GREP' >> "conftest.nl"
4790     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4791     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4792     as_fn_arith $ac_count + 1 && ac_count=$as_val
4793     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4794       # Best one so far, save it but keep looking for a better one
4795       ac_cv_path_GREP="$ac_path_GREP"
4796       ac_path_GREP_max=$ac_count
4797     fi
4798     # 10*(2^10) chars as input seems more than enough
4799     test $ac_count -gt 10 && break
4800   done
4801   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4802 esac
4803
4804       $ac_path_GREP_found && break 3
4805     done
4806   done
4807   done
4808 IFS=$as_save_IFS
4809   if test -z "$ac_cv_path_GREP"; then
4810     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4811   fi
4812 else
4813   ac_cv_path_GREP=$GREP
4814 fi
4815
4816 fi
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4818 $as_echo "$ac_cv_path_GREP" >&6; }
4819  GREP="$ac_cv_path_GREP"
4820
4821
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4823 $as_echo_n "checking for egrep... " >&6; }
4824 if ${ac_cv_path_EGREP+:} false; then :
4825   $as_echo_n "(cached) " >&6
4826 else
4827   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4828    then ac_cv_path_EGREP="$GREP -E"
4829    else
4830      if test -z "$EGREP"; then
4831   ac_path_EGREP_found=false
4832   # Loop through the user's path and test for each of PROGNAME-LIST
4833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838     for ac_prog in egrep; do
4839     for ac_exec_ext in '' $ac_executable_extensions; do
4840       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4841       as_fn_executable_p "$ac_path_EGREP" || continue
4842 # Check for GNU ac_path_EGREP and select it if it is found.
4843   # Check for GNU $ac_path_EGREP
4844 case `"$ac_path_EGREP" --version 2>&1` in
4845 *GNU*)
4846   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4847 *)
4848   ac_count=0
4849   $as_echo_n 0123456789 >"conftest.in"
4850   while :
4851   do
4852     cat "conftest.in" "conftest.in" >"conftest.tmp"
4853     mv "conftest.tmp" "conftest.in"
4854     cp "conftest.in" "conftest.nl"
4855     $as_echo 'EGREP' >> "conftest.nl"
4856     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4857     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4858     as_fn_arith $ac_count + 1 && ac_count=$as_val
4859     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4860       # Best one so far, save it but keep looking for a better one
4861       ac_cv_path_EGREP="$ac_path_EGREP"
4862       ac_path_EGREP_max=$ac_count
4863     fi
4864     # 10*(2^10) chars as input seems more than enough
4865     test $ac_count -gt 10 && break
4866   done
4867   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4868 esac
4869
4870       $ac_path_EGREP_found && break 3
4871     done
4872   done
4873   done
4874 IFS=$as_save_IFS
4875   if test -z "$ac_cv_path_EGREP"; then
4876     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4877   fi
4878 else
4879   ac_cv_path_EGREP=$EGREP
4880 fi
4881
4882    fi
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4885 $as_echo "$ac_cv_path_EGREP" >&6; }
4886  EGREP="$ac_cv_path_EGREP"
4887
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4890 $as_echo_n "checking for fgrep... " >&6; }
4891 if ${ac_cv_path_FGREP+:} false; then :
4892   $as_echo_n "(cached) " >&6
4893 else
4894   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4895    then ac_cv_path_FGREP="$GREP -F"
4896    else
4897      if test -z "$FGREP"; then
4898   ac_path_FGREP_found=false
4899   # Loop through the user's path and test for each of PROGNAME-LIST
4900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905     for ac_prog in fgrep; do
4906     for ac_exec_ext in '' $ac_executable_extensions; do
4907       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4908       as_fn_executable_p "$ac_path_FGREP" || continue
4909 # Check for GNU ac_path_FGREP and select it if it is found.
4910   # Check for GNU $ac_path_FGREP
4911 case `"$ac_path_FGREP" --version 2>&1` in
4912 *GNU*)
4913   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4914 *)
4915   ac_count=0
4916   $as_echo_n 0123456789 >"conftest.in"
4917   while :
4918   do
4919     cat "conftest.in" "conftest.in" >"conftest.tmp"
4920     mv "conftest.tmp" "conftest.in"
4921     cp "conftest.in" "conftest.nl"
4922     $as_echo 'FGREP' >> "conftest.nl"
4923     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925     as_fn_arith $ac_count + 1 && ac_count=$as_val
4926     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4927       # Best one so far, save it but keep looking for a better one
4928       ac_cv_path_FGREP="$ac_path_FGREP"
4929       ac_path_FGREP_max=$ac_count
4930     fi
4931     # 10*(2^10) chars as input seems more than enough
4932     test $ac_count -gt 10 && break
4933   done
4934   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935 esac
4936
4937       $ac_path_FGREP_found && break 3
4938     done
4939   done
4940   done
4941 IFS=$as_save_IFS
4942   if test -z "$ac_cv_path_FGREP"; then
4943     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4944   fi
4945 else
4946   ac_cv_path_FGREP=$FGREP
4947 fi
4948
4949    fi
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4952 $as_echo "$ac_cv_path_FGREP" >&6; }
4953  FGREP="$ac_cv_path_FGREP"
4954
4955
4956 test -z "$GREP" && GREP=grep
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976 # Check whether --with-gnu-ld was given.
4977 if test "${with_gnu_ld+set}" = set; then :
4978   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4979 else
4980   with_gnu_ld=no
4981 fi
4982
4983 ac_prog=ld
4984 if test "$GCC" = yes; then
4985   # Check if gcc -print-prog-name=ld gives a path.
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4987 $as_echo_n "checking for ld used by $CC... " >&6; }
4988   case $host in
4989   *-*-mingw*)
4990     # gcc leaves a trailing carriage return which upsets mingw
4991     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4992   *)
4993     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4994   esac
4995   case $ac_prog in
4996     # Accept absolute paths.
4997     [\\/]* | ?:[\\/]*)
4998       re_direlt='/[^/][^/]*/\.\./'
4999       # Canonicalize the pathname of ld
5000       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5001       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5002         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5003       done
5004       test -z "$LD" && LD="$ac_prog"
5005       ;;
5006   "")
5007     # If it fails, then pretend we aren't using GCC.
5008     ac_prog=ld
5009     ;;
5010   *)
5011     # If it is relative, then search for the first ld in PATH.
5012     with_gnu_ld=unknown
5013     ;;
5014   esac
5015 elif test "$with_gnu_ld" = yes; then
5016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5017 $as_echo_n "checking for GNU ld... " >&6; }
5018 else
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5020 $as_echo_n "checking for non-GNU ld... " >&6; }
5021 fi
5022 if ${lt_cv_path_LD+:} false; then :
5023   $as_echo_n "(cached) " >&6
5024 else
5025   if test -z "$LD"; then
5026   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5027   for ac_dir in $PATH; do
5028     IFS="$lt_save_ifs"
5029     test -z "$ac_dir" && ac_dir=.
5030     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5031       lt_cv_path_LD="$ac_dir/$ac_prog"
5032       # Check to see if the program is GNU ld.  I'd rather use --version,
5033       # but apparently some variants of GNU ld only accept -v.
5034       # Break only if it was the GNU/non-GNU ld that we prefer.
5035       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5036       *GNU* | *'with BFD'*)
5037         test "$with_gnu_ld" != no && break
5038         ;;
5039       *)
5040         test "$with_gnu_ld" != yes && break
5041         ;;
5042       esac
5043     fi
5044   done
5045   IFS="$lt_save_ifs"
5046 else
5047   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5048 fi
5049 fi
5050
5051 LD="$lt_cv_path_LD"
5052 if test -n "$LD"; then
5053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5054 $as_echo "$LD" >&6; }
5055 else
5056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5058 fi
5059 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5061 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5062 if ${lt_cv_prog_gnu_ld+:} false; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5066 case `$LD -v 2>&1 </dev/null` in
5067 *GNU* | *'with BFD'*)
5068   lt_cv_prog_gnu_ld=yes
5069   ;;
5070 *)
5071   lt_cv_prog_gnu_ld=no
5072   ;;
5073 esac
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5076 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5077 with_gnu_ld=$lt_cv_prog_gnu_ld
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5088 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5089 if ${lt_cv_path_NM+:} false; then :
5090   $as_echo_n "(cached) " >&6
5091 else
5092   if test -n "$NM"; then
5093   # Let the user override the test.
5094   lt_cv_path_NM="$NM"
5095 else
5096   lt_nm_to_check="${ac_tool_prefix}nm"
5097   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5098     lt_nm_to_check="$lt_nm_to_check nm"
5099   fi
5100   for lt_tmp_nm in $lt_nm_to_check; do
5101     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5102     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5103       IFS="$lt_save_ifs"
5104       test -z "$ac_dir" && ac_dir=.
5105       tmp_nm="$ac_dir/$lt_tmp_nm"
5106       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5107         # Check to see if the nm accepts a BSD-compat flag.
5108         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5109         #   nm: unknown option "B" ignored
5110         # Tru64's nm complains that /dev/null is an invalid object file
5111         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5112         */dev/null* | *'Invalid file or object type'*)
5113           lt_cv_path_NM="$tmp_nm -B"
5114           break
5115           ;;
5116         *)
5117           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5118           */dev/null*)
5119             lt_cv_path_NM="$tmp_nm -p"
5120             break
5121             ;;
5122           *)
5123             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5124             continue # so that we can try to find one that supports BSD flags
5125             ;;
5126           esac
5127           ;;
5128         esac
5129       fi
5130     done
5131     IFS="$lt_save_ifs"
5132   done
5133   : ${lt_cv_path_NM=no}
5134 fi
5135 fi
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5137 $as_echo "$lt_cv_path_NM" >&6; }
5138 if test "$lt_cv_path_NM" != "no"; then
5139   NM="$lt_cv_path_NM"
5140 else
5141   # Didn't find any BSD compatible name lister, look for dumpbin.
5142   if test -n "$DUMPBIN"; then :
5143     # Let the user override the test.
5144   else
5145     if test -n "$ac_tool_prefix"; then
5146   for ac_prog in dumpbin "link -dump"
5147   do
5148     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_DUMPBIN+:} false; then :
5153   $as_echo_n "(cached) " >&6
5154 else
5155   if test -n "$DUMPBIN"; then
5156   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161   IFS=$as_save_IFS
5162   test -z "$as_dir" && as_dir=.
5163     for ac_exec_ext in '' $ac_executable_extensions; do
5164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167     break 2
5168   fi
5169 done
5170   done
5171 IFS=$as_save_IFS
5172
5173 fi
5174 fi
5175 DUMPBIN=$ac_cv_prog_DUMPBIN
5176 if test -n "$DUMPBIN"; then
5177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5178 $as_echo "$DUMPBIN" >&6; }
5179 else
5180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182 fi
5183
5184
5185     test -n "$DUMPBIN" && break
5186   done
5187 fi
5188 if test -z "$DUMPBIN"; then
5189   ac_ct_DUMPBIN=$DUMPBIN
5190   for ac_prog in dumpbin "link -dump"
5191 do
5192   # Extract the first word of "$ac_prog", so it can be a program name with args.
5193 set dummy $ac_prog; ac_word=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5197   $as_echo_n "(cached) " >&6
5198 else
5199   if test -n "$ac_ct_DUMPBIN"; then
5200   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5201 else
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205   IFS=$as_save_IFS
5206   test -z "$as_dir" && as_dir=.
5207     for ac_exec_ext in '' $ac_executable_extensions; do
5208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211     break 2
5212   fi
5213 done
5214   done
5215 IFS=$as_save_IFS
5216
5217 fi
5218 fi
5219 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5220 if test -n "$ac_ct_DUMPBIN"; then
5221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5222 $as_echo "$ac_ct_DUMPBIN" >&6; }
5223 else
5224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225 $as_echo "no" >&6; }
5226 fi
5227
5228
5229   test -n "$ac_ct_DUMPBIN" && break
5230 done
5231
5232   if test "x$ac_ct_DUMPBIN" = x; then
5233     DUMPBIN=":"
5234   else
5235     case $cross_compiling:$ac_tool_warned in
5236 yes:)
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5239 ac_tool_warned=yes ;;
5240 esac
5241     DUMPBIN=$ac_ct_DUMPBIN
5242   fi
5243 fi
5244
5245     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5246     *COFF*)
5247       DUMPBIN="$DUMPBIN -symbols"
5248       ;;
5249     *)
5250       DUMPBIN=:
5251       ;;
5252     esac
5253   fi
5254
5255   if test "$DUMPBIN" != ":"; then
5256     NM="$DUMPBIN"
5257   fi
5258 fi
5259 test -z "$NM" && NM=nm
5260
5261
5262
5263
5264
5265
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5267 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5268 if ${lt_cv_nm_interface+:} false; then :
5269   $as_echo_n "(cached) " >&6
5270 else
5271   lt_cv_nm_interface="BSD nm"
5272   echo "int some_variable = 0;" > conftest.$ac_ext
5273   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5274   (eval "$ac_compile" 2>conftest.err)
5275   cat conftest.err >&5
5276   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5277   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5278   cat conftest.err >&5
5279   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5280   cat conftest.out >&5
5281   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5282     lt_cv_nm_interface="MS dumpbin"
5283   fi
5284   rm -f conftest*
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5287 $as_echo "$lt_cv_nm_interface" >&6; }
5288
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5290 $as_echo_n "checking whether ln -s works... " >&6; }
5291 LN_S=$as_ln_s
5292 if test "$LN_S" = "ln -s"; then
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5294 $as_echo "yes" >&6; }
5295 else
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5297 $as_echo "no, using $LN_S" >&6; }
5298 fi
5299
5300 # find the maximum length of command line arguments
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5302 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5303 if ${lt_cv_sys_max_cmd_len+:} false; then :
5304   $as_echo_n "(cached) " >&6
5305 else
5306     i=0
5307   teststring="ABCD"
5308
5309   case $build_os in
5310   msdosdjgpp*)
5311     # On DJGPP, this test can blow up pretty badly due to problems in libc
5312     # (any single argument exceeding 2000 bytes causes a buffer overrun
5313     # during glob expansion).  Even if it were fixed, the result of this
5314     # check would be larger than it should be.
5315     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5316     ;;
5317
5318   gnu*)
5319     # Under GNU Hurd, this test is not required because there is
5320     # no limit to the length of command line arguments.
5321     # Libtool will interpret -1 as no limit whatsoever
5322     lt_cv_sys_max_cmd_len=-1;
5323     ;;
5324
5325   cygwin* | mingw* | cegcc*)
5326     # On Win9x/ME, this test blows up -- it succeeds, but takes
5327     # about 5 minutes as the teststring grows exponentially.
5328     # Worse, since 9x/ME are not pre-emptively multitasking,
5329     # you end up with a "frozen" computer, even though with patience
5330     # the test eventually succeeds (with a max line length of 256k).
5331     # Instead, let's just punt: use the minimum linelength reported by
5332     # all of the supported platforms: 8192 (on NT/2K/XP).
5333     lt_cv_sys_max_cmd_len=8192;
5334     ;;
5335
5336   mint*)
5337     # On MiNT this can take a long time and run out of memory.
5338     lt_cv_sys_max_cmd_len=8192;
5339     ;;
5340
5341   amigaos*)
5342     # On AmigaOS with pdksh, this test takes hours, literally.
5343     # So we just punt and use a minimum line length of 8192.
5344     lt_cv_sys_max_cmd_len=8192;
5345     ;;
5346
5347   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5348     # This has been around since 386BSD, at least.  Likely further.
5349     if test -x /sbin/sysctl; then
5350       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5351     elif test -x /usr/sbin/sysctl; then
5352       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5353     else
5354       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5355     fi
5356     # And add a safety zone
5357     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5358     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5359     ;;
5360
5361   interix*)
5362     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5363     lt_cv_sys_max_cmd_len=196608
5364     ;;
5365
5366   os2*)
5367     # The test takes a long time on OS/2.
5368     lt_cv_sys_max_cmd_len=8192
5369     ;;
5370
5371   osf*)
5372     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5373     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5374     # nice to cause kernel panics so lets avoid the loop below.
5375     # First set a reasonable default.
5376     lt_cv_sys_max_cmd_len=16384
5377     #
5378     if test -x /sbin/sysconfig; then
5379       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5380         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5381       esac
5382     fi
5383     ;;
5384   sco3.2v5*)
5385     lt_cv_sys_max_cmd_len=102400
5386     ;;
5387   sysv5* | sco5v6* | sysv4.2uw2*)
5388     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5389     if test -n "$kargmax"; then
5390       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5391     else
5392       lt_cv_sys_max_cmd_len=32768
5393     fi
5394     ;;
5395   *)
5396     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5397     if test -n "$lt_cv_sys_max_cmd_len"; then
5398       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5399       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5400     else
5401       # Make teststring a little bigger before we do anything with it.
5402       # a 1K string should be a reasonable start.
5403       for i in 1 2 3 4 5 6 7 8 ; do
5404         teststring=$teststring$teststring
5405       done
5406       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5407       # If test is not a shell built-in, we'll probably end up computing a
5408       # maximum length that is only half of the actual maximum length, but
5409       # we can't tell.
5410       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5411                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5412               test $i != 17 # 1/2 MB should be enough
5413       do
5414         i=`expr $i + 1`
5415         teststring=$teststring$teststring
5416       done
5417       # Only check the string length outside the loop.
5418       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5419       teststring=
5420       # Add a significant safety factor because C++ compilers can tack on
5421       # massive amounts of additional arguments before passing them to the
5422       # linker.  It appears as though 1/2 is a usable value.
5423       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5424     fi
5425     ;;
5426   esac
5427
5428 fi
5429
5430 if test -n $lt_cv_sys_max_cmd_len ; then
5431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5432 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5433 else
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5435 $as_echo "none" >&6; }
5436 fi
5437 max_cmd_len=$lt_cv_sys_max_cmd_len
5438
5439
5440
5441
5442
5443
5444 : ${CP="cp -f"}
5445 : ${MV="mv -f"}
5446 : ${RM="rm -f"}
5447
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5449 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5450 # Try some XSI features
5451 xsi_shell=no
5452 ( _lt_dummy="a/b/c"
5453   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5454       = c,a/b,b/c, \
5455     && eval 'test $(( 1 + 1 )) -eq 2 \
5456     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5457   && xsi_shell=yes
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5459 $as_echo "$xsi_shell" >&6; }
5460
5461
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5463 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5464 lt_shell_append=no
5465 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5466     >/dev/null 2>&1 \
5467   && lt_shell_append=yes
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5469 $as_echo "$lt_shell_append" >&6; }
5470
5471
5472 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5473   lt_unset=unset
5474 else
5475   lt_unset=false
5476 fi
5477
5478
5479
5480
5481
5482 # test EBCDIC or ASCII
5483 case `echo X|tr X '\101'` in
5484  A) # ASCII based system
5485     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5486   lt_SP2NL='tr \040 \012'
5487   lt_NL2SP='tr \015\012 \040\040'
5488   ;;
5489  *) # EBCDIC based system
5490   lt_SP2NL='tr \100 \n'
5491   lt_NL2SP='tr \r\n \100\100'
5492   ;;
5493 esac
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5504 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5505 if ${lt_cv_to_host_file_cmd+:} false; then :
5506   $as_echo_n "(cached) " >&6
5507 else
5508   case $host in
5509   *-*-mingw* )
5510     case $build in
5511       *-*-mingw* ) # actually msys
5512         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5513         ;;
5514       *-*-cygwin* )
5515         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5516         ;;
5517       * ) # otherwise, assume *nix
5518         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5519         ;;
5520     esac
5521     ;;
5522   *-*-cygwin* )
5523     case $build in
5524       *-*-mingw* ) # actually msys
5525         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5526         ;;
5527       *-*-cygwin* )
5528         lt_cv_to_host_file_cmd=func_convert_file_noop
5529         ;;
5530       * ) # otherwise, assume *nix
5531         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5532         ;;
5533     esac
5534     ;;
5535   * ) # unhandled hosts (and "normal" native builds)
5536     lt_cv_to_host_file_cmd=func_convert_file_noop
5537     ;;
5538 esac
5539
5540 fi
5541
5542 to_host_file_cmd=$lt_cv_to_host_file_cmd
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5544 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5545
5546
5547
5548
5549
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5551 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5552 if ${lt_cv_to_tool_file_cmd+:} false; then :
5553   $as_echo_n "(cached) " >&6
5554 else
5555   #assume ordinary cross tools, or native build.
5556 lt_cv_to_tool_file_cmd=func_convert_file_noop
5557 case $host in
5558   *-*-mingw* )
5559     case $build in
5560       *-*-mingw* ) # actually msys
5561         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5562         ;;
5563     esac
5564     ;;
5565 esac
5566
5567 fi
5568
5569 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5571 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5572
5573
5574
5575
5576
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5578 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5579 if ${lt_cv_ld_reload_flag+:} false; then :
5580   $as_echo_n "(cached) " >&6
5581 else
5582   lt_cv_ld_reload_flag='-r'
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5585 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5586 reload_flag=$lt_cv_ld_reload_flag
5587 case $reload_flag in
5588 "" | " "*) ;;
5589 *) reload_flag=" $reload_flag" ;;
5590 esac
5591 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5592 case $host_os in
5593   cygwin* | mingw* | pw32* | cegcc*)
5594     if test "$GCC" != yes; then
5595       reload_cmds=false
5596     fi
5597     ;;
5598   darwin*)
5599     if test "$GCC" = yes; then
5600       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5601     else
5602       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5603     fi
5604     ;;
5605 esac
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615 if test -n "$ac_tool_prefix"; then
5616   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5617 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_OBJDUMP+:} false; then :
5621   $as_echo_n "(cached) " >&6
5622 else
5623   if test -n "$OBJDUMP"; then
5624   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629   IFS=$as_save_IFS
5630   test -z "$as_dir" && as_dir=.
5631     for ac_exec_ext in '' $ac_executable_extensions; do
5632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635     break 2
5636   fi
5637 done
5638   done
5639 IFS=$as_save_IFS
5640
5641 fi
5642 fi
5643 OBJDUMP=$ac_cv_prog_OBJDUMP
5644 if test -n "$OBJDUMP"; then
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5646 $as_echo "$OBJDUMP" >&6; }
5647 else
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651
5652
5653 fi
5654 if test -z "$ac_cv_prog_OBJDUMP"; then
5655   ac_ct_OBJDUMP=$OBJDUMP
5656   # Extract the first word of "objdump", so it can be a program name with args.
5657 set dummy objdump; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5661   $as_echo_n "(cached) " >&6
5662 else
5663   if test -n "$ac_ct_OBJDUMP"; then
5664   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669   IFS=$as_save_IFS
5670   test -z "$as_dir" && as_dir=.
5671     for ac_exec_ext in '' $ac_executable_extensions; do
5672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675     break 2
5676   fi
5677 done
5678   done
5679 IFS=$as_save_IFS
5680
5681 fi
5682 fi
5683 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5684 if test -n "$ac_ct_OBJDUMP"; then
5685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5686 $as_echo "$ac_ct_OBJDUMP" >&6; }
5687 else
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5690 fi
5691
5692   if test "x$ac_ct_OBJDUMP" = x; then
5693     OBJDUMP="false"
5694   else
5695     case $cross_compiling:$ac_tool_warned in
5696 yes:)
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699 ac_tool_warned=yes ;;
5700 esac
5701     OBJDUMP=$ac_ct_OBJDUMP
5702   fi
5703 else
5704   OBJDUMP="$ac_cv_prog_OBJDUMP"
5705 fi
5706
5707 test -z "$OBJDUMP" && OBJDUMP=objdump
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5718 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5719 if ${lt_cv_deplibs_check_method+:} false; then :
5720   $as_echo_n "(cached) " >&6
5721 else
5722   lt_cv_file_magic_cmd='$MAGIC_CMD'
5723 lt_cv_file_magic_test_file=
5724 lt_cv_deplibs_check_method='unknown'
5725 # Need to set the preceding variable on all platforms that support
5726 # interlibrary dependencies.
5727 # 'none' -- dependencies not supported.
5728 # `unknown' -- same as none, but documents that we really don't know.
5729 # 'pass_all' -- all dependencies passed with no checks.
5730 # 'test_compile' -- check by making test program.
5731 # 'file_magic [[regex]]' -- check by looking for files in library path
5732 # which responds to the $file_magic_cmd with a given extended regex.
5733 # If you have `file' or equivalent on your system and you're not sure
5734 # whether `pass_all' will *always* work, you probably want this one.
5735
5736 case $host_os in
5737 aix[4-9]*)
5738   lt_cv_deplibs_check_method=pass_all
5739   ;;
5740
5741 beos*)
5742   lt_cv_deplibs_check_method=pass_all
5743   ;;
5744
5745 bsdi[45]*)
5746   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5747   lt_cv_file_magic_cmd='/usr/bin/file -L'
5748   lt_cv_file_magic_test_file=/shlib/libc.so
5749   ;;
5750
5751 cygwin*)
5752   # func_win32_libid is a shell function defined in ltmain.sh
5753   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5754   lt_cv_file_magic_cmd='func_win32_libid'
5755   ;;
5756
5757 mingw* | pw32*)
5758   # Base MSYS/MinGW do not provide the 'file' command needed by
5759   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5760   # unless we find 'file', for example because we are cross-compiling.
5761   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5762   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5763     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5764     lt_cv_file_magic_cmd='func_win32_libid'
5765   else
5766     # Keep this pattern in sync with the one in func_win32_libid.
5767     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5768     lt_cv_file_magic_cmd='$OBJDUMP -f'
5769   fi
5770   ;;
5771
5772 cegcc*)
5773   # use the weaker test based on 'objdump'. See mingw*.
5774   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5775   lt_cv_file_magic_cmd='$OBJDUMP -f'
5776   ;;
5777
5778 darwin* | rhapsody*)
5779   lt_cv_deplibs_check_method=pass_all
5780   ;;
5781
5782 freebsd* | dragonfly*)
5783   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5784     case $host_cpu in
5785     i*86 )
5786       # Not sure whether the presence of OpenBSD here was a mistake.
5787       # Let's accept both of them until this is cleared up.
5788       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5789       lt_cv_file_magic_cmd=/usr/bin/file
5790       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5791       ;;
5792     esac
5793   else
5794     lt_cv_deplibs_check_method=pass_all
5795   fi
5796   ;;
5797
5798 gnu*)
5799   lt_cv_deplibs_check_method=pass_all
5800   ;;
5801
5802 haiku*)
5803   lt_cv_deplibs_check_method=pass_all
5804   ;;
5805
5806 hpux10.20* | hpux11*)
5807   lt_cv_file_magic_cmd=/usr/bin/file
5808   case $host_cpu in
5809   ia64*)
5810     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5811     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5812     ;;
5813   hppa*64*)
5814     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]'
5815     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5816     ;;
5817   *)
5818     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5819     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5820     ;;
5821   esac
5822   ;;
5823
5824 interix[3-9]*)
5825   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5826   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5827   ;;
5828
5829 irix5* | irix6* | nonstopux*)
5830   case $LD in
5831   *-32|*"-32 ") libmagic=32-bit;;
5832   *-n32|*"-n32 ") libmagic=N32;;
5833   *-64|*"-64 ") libmagic=64-bit;;
5834   *) libmagic=never-match;;
5835   esac
5836   lt_cv_deplibs_check_method=pass_all
5837   ;;
5838
5839 # This must be glibc/ELF.
5840 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5841   lt_cv_deplibs_check_method=pass_all
5842   ;;
5843
5844 netbsd*)
5845   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5846     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5847   else
5848     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5849   fi
5850   ;;
5851
5852 newos6*)
5853   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5854   lt_cv_file_magic_cmd=/usr/bin/file
5855   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5856   ;;
5857
5858 *nto* | *qnx*)
5859   lt_cv_deplibs_check_method=pass_all
5860   ;;
5861
5862 openbsd*)
5863   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5864     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5865   else
5866     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5867   fi
5868   ;;
5869
5870 osf3* | osf4* | osf5*)
5871   lt_cv_deplibs_check_method=pass_all
5872   ;;
5873
5874 rdos*)
5875   lt_cv_deplibs_check_method=pass_all
5876   ;;
5877
5878 solaris*)
5879   lt_cv_deplibs_check_method=pass_all
5880   ;;
5881
5882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5883   lt_cv_deplibs_check_method=pass_all
5884   ;;
5885
5886 sysv4 | sysv4.3*)
5887   case $host_vendor in
5888   motorola)
5889     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]'
5890     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5891     ;;
5892   ncr)
5893     lt_cv_deplibs_check_method=pass_all
5894     ;;
5895   sequent)
5896     lt_cv_file_magic_cmd='/bin/file'
5897     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5898     ;;
5899   sni)
5900     lt_cv_file_magic_cmd='/bin/file'
5901     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5902     lt_cv_file_magic_test_file=/lib/libc.so
5903     ;;
5904   siemens)
5905     lt_cv_deplibs_check_method=pass_all
5906     ;;
5907   pc)
5908     lt_cv_deplibs_check_method=pass_all
5909     ;;
5910   esac
5911   ;;
5912
5913 tpf*)
5914   lt_cv_deplibs_check_method=pass_all
5915   ;;
5916 esac
5917
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5920 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5921
5922 file_magic_glob=
5923 want_nocaseglob=no
5924 if test "$build" = "$host"; then
5925   case $host_os in
5926   mingw* | pw32*)
5927     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5928       want_nocaseglob=yes
5929     else
5930       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5931     fi
5932     ;;
5933   esac
5934 fi
5935
5936 file_magic_cmd=$lt_cv_file_magic_cmd
5937 deplibs_check_method=$lt_cv_deplibs_check_method
5938 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961 if test -n "$ac_tool_prefix"; then
5962   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5963 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if ${ac_cv_prog_DLLTOOL+:} false; then :
5967   $as_echo_n "(cached) " >&6
5968 else
5969   if test -n "$DLLTOOL"; then
5970   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5974 do
5975   IFS=$as_save_IFS
5976   test -z "$as_dir" && as_dir=.
5977     for ac_exec_ext in '' $ac_executable_extensions; do
5978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981     break 2
5982   fi
5983 done
5984   done
5985 IFS=$as_save_IFS
5986
5987 fi
5988 fi
5989 DLLTOOL=$ac_cv_prog_DLLTOOL
5990 if test -n "$DLLTOOL"; then
5991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5992 $as_echo "$DLLTOOL" >&6; }
5993 else
5994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5996 fi
5997
5998
5999 fi
6000 if test -z "$ac_cv_prog_DLLTOOL"; then
6001   ac_ct_DLLTOOL=$DLLTOOL
6002   # Extract the first word of "dlltool", so it can be a program name with args.
6003 set dummy dlltool; ac_word=$2
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005 $as_echo_n "checking for $ac_word... " >&6; }
6006 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6007   $as_echo_n "(cached) " >&6
6008 else
6009   if test -n "$ac_ct_DLLTOOL"; then
6010   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6011 else
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6014 do
6015   IFS=$as_save_IFS
6016   test -z "$as_dir" && as_dir=.
6017     for ac_exec_ext in '' $ac_executable_extensions; do
6018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6019     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021     break 2
6022   fi
6023 done
6024   done
6025 IFS=$as_save_IFS
6026
6027 fi
6028 fi
6029 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6030 if test -n "$ac_ct_DLLTOOL"; then
6031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6032 $as_echo "$ac_ct_DLLTOOL" >&6; }
6033 else
6034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035 $as_echo "no" >&6; }
6036 fi
6037
6038   if test "x$ac_ct_DLLTOOL" = x; then
6039     DLLTOOL="false"
6040   else
6041     case $cross_compiling:$ac_tool_warned in
6042 yes:)
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6045 ac_tool_warned=yes ;;
6046 esac
6047     DLLTOOL=$ac_ct_DLLTOOL
6048   fi
6049 else
6050   DLLTOOL="$ac_cv_prog_DLLTOOL"
6051 fi
6052
6053 test -z "$DLLTOOL" && DLLTOOL=dlltool
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6065 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6066 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6067   $as_echo_n "(cached) " >&6
6068 else
6069   lt_cv_sharedlib_from_linklib_cmd='unknown'
6070
6071 case $host_os in
6072 cygwin* | mingw* | pw32* | cegcc*)
6073   # two different shell functions defined in ltmain.sh
6074   # decide which to use based on capabilities of $DLLTOOL
6075   case `$DLLTOOL --help 2>&1` in
6076   *--identify-strict*)
6077     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6078     ;;
6079   *)
6080     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6081     ;;
6082   esac
6083   ;;
6084 *)
6085   # fallback: assume linklib IS sharedlib
6086   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6087   ;;
6088 esac
6089
6090 fi
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6092 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6093 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6094 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6095
6096
6097
6098
6099
6100
6101
6102 if test -n "$ac_tool_prefix"; then
6103   for ac_prog in ar
6104   do
6105     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if ${ac_cv_prog_AR+:} false; then :
6110   $as_echo_n "(cached) " >&6
6111 else
6112   if test -n "$AR"; then
6113   ac_cv_prog_AR="$AR" # Let the user override the test.
6114 else
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118   IFS=$as_save_IFS
6119   test -z "$as_dir" && as_dir=.
6120     for ac_exec_ext in '' $ac_executable_extensions; do
6121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6122     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124     break 2
6125   fi
6126 done
6127   done
6128 IFS=$as_save_IFS
6129
6130 fi
6131 fi
6132 AR=$ac_cv_prog_AR
6133 if test -n "$AR"; then
6134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6135 $as_echo "$AR" >&6; }
6136 else
6137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 $as_echo "no" >&6; }
6139 fi
6140
6141
6142     test -n "$AR" && break
6143   done
6144 fi
6145 if test -z "$AR"; then
6146   ac_ct_AR=$AR
6147   for ac_prog in ar
6148 do
6149   # Extract the first word of "$ac_prog", so it can be a program name with args.
6150 set dummy $ac_prog; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6154   $as_echo_n "(cached) " >&6
6155 else
6156   if test -n "$ac_ct_AR"; then
6157   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162   IFS=$as_save_IFS
6163   test -z "$as_dir" && as_dir=.
6164     for ac_exec_ext in '' $ac_executable_extensions; do
6165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166     ac_cv_prog_ac_ct_AR="$ac_prog"
6167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168     break 2
6169   fi
6170 done
6171   done
6172 IFS=$as_save_IFS
6173
6174 fi
6175 fi
6176 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6177 if test -n "$ac_ct_AR"; then
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6179 $as_echo "$ac_ct_AR" >&6; }
6180 else
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6183 fi
6184
6185
6186   test -n "$ac_ct_AR" && break
6187 done
6188
6189   if test "x$ac_ct_AR" = x; then
6190     AR="false"
6191   else
6192     case $cross_compiling:$ac_tool_warned in
6193 yes:)
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196 ac_tool_warned=yes ;;
6197 esac
6198     AR=$ac_ct_AR
6199   fi
6200 fi
6201
6202 : ${AR=ar}
6203 : ${AR_FLAGS=cru}
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6216 $as_echo_n "checking for archiver @FILE support... " >&6; }
6217 if ${lt_cv_ar_at_file+:} false; then :
6218   $as_echo_n "(cached) " >&6
6219 else
6220   lt_cv_ar_at_file=no
6221    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h.  */
6223
6224 int
6225 main ()
6226 {
6227
6228   ;
6229   return 0;
6230 }
6231 _ACEOF
6232 if ac_fn_c_try_compile "$LINENO"; then :
6233   echo conftest.$ac_objext > conftest.lst
6234       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6235       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6236   (eval $lt_ar_try) 2>&5
6237   ac_status=$?
6238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239   test $ac_status = 0; }
6240       if test "$ac_status" -eq 0; then
6241         # Ensure the archiver fails upon bogus file names.
6242         rm -f conftest.$ac_objext libconftest.a
6243         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6244   (eval $lt_ar_try) 2>&5
6245   ac_status=$?
6246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247   test $ac_status = 0; }
6248         if test "$ac_status" -ne 0; then
6249           lt_cv_ar_at_file=@
6250         fi
6251       fi
6252       rm -f conftest.* libconftest.a
6253
6254 fi
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256
6257 fi
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6259 $as_echo "$lt_cv_ar_at_file" >&6; }
6260
6261 if test "x$lt_cv_ar_at_file" = xno; then
6262   archiver_list_spec=
6263 else
6264   archiver_list_spec=$lt_cv_ar_at_file
6265 fi
6266
6267
6268
6269
6270
6271
6272
6273 if test -n "$ac_tool_prefix"; then
6274   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}strip; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_STRIP+:} false; then :
6279   $as_echo_n "(cached) " >&6
6280 else
6281   if test -n "$STRIP"; then
6282   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287   IFS=$as_save_IFS
6288   test -z "$as_dir" && as_dir=.
6289     for ac_exec_ext in '' $ac_executable_extensions; do
6290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293     break 2
6294   fi
6295 done
6296   done
6297 IFS=$as_save_IFS
6298
6299 fi
6300 fi
6301 STRIP=$ac_cv_prog_STRIP
6302 if test -n "$STRIP"; then
6303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6304 $as_echo "$STRIP" >&6; }
6305 else
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309
6310
6311 fi
6312 if test -z "$ac_cv_prog_STRIP"; then
6313   ac_ct_STRIP=$STRIP
6314   # Extract the first word of "strip", so it can be a program name with args.
6315 set dummy strip; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6319   $as_echo_n "(cached) " >&6
6320 else
6321   if test -n "$ac_ct_STRIP"; then
6322   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327   IFS=$as_save_IFS
6328   test -z "$as_dir" && as_dir=.
6329     for ac_exec_ext in '' $ac_executable_extensions; do
6330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6331     ac_cv_prog_ac_ct_STRIP="strip"
6332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333     break 2
6334   fi
6335 done
6336   done
6337 IFS=$as_save_IFS
6338
6339 fi
6340 fi
6341 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6342 if test -n "$ac_ct_STRIP"; then
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6344 $as_echo "$ac_ct_STRIP" >&6; }
6345 else
6346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349
6350   if test "x$ac_ct_STRIP" = x; then
6351     STRIP=":"
6352   else
6353     case $cross_compiling:$ac_tool_warned in
6354 yes:)
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6358 esac
6359     STRIP=$ac_ct_STRIP
6360   fi
6361 else
6362   STRIP="$ac_cv_prog_STRIP"
6363 fi
6364
6365 test -z "$STRIP" && STRIP=:
6366
6367
6368
6369
6370
6371
6372 if test -n "$ac_tool_prefix"; then
6373   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6374 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if ${ac_cv_prog_RANLIB+:} false; then :
6378   $as_echo_n "(cached) " >&6
6379 else
6380   if test -n "$RANLIB"; then
6381   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6382 else
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386   IFS=$as_save_IFS
6387   test -z "$as_dir" && as_dir=.
6388     for ac_exec_ext in '' $ac_executable_extensions; do
6389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392     break 2
6393   fi
6394 done
6395   done
6396 IFS=$as_save_IFS
6397
6398 fi
6399 fi
6400 RANLIB=$ac_cv_prog_RANLIB
6401 if test -n "$RANLIB"; then
6402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6403 $as_echo "$RANLIB" >&6; }
6404 else
6405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6407 fi
6408
6409
6410 fi
6411 if test -z "$ac_cv_prog_RANLIB"; then
6412   ac_ct_RANLIB=$RANLIB
6413   # Extract the first word of "ranlib", so it can be a program name with args.
6414 set dummy ranlib; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6418   $as_echo_n "(cached) " >&6
6419 else
6420   if test -n "$ac_ct_RANLIB"; then
6421   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426   IFS=$as_save_IFS
6427   test -z "$as_dir" && as_dir=.
6428     for ac_exec_ext in '' $ac_executable_extensions; do
6429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6430     ac_cv_prog_ac_ct_RANLIB="ranlib"
6431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435   done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6441 if test -n "$ac_ct_RANLIB"; then
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6443 $as_echo "$ac_ct_RANLIB" >&6; }
6444 else
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449   if test "x$ac_ct_RANLIB" = x; then
6450     RANLIB=":"
6451   else
6452     case $cross_compiling:$ac_tool_warned in
6453 yes:)
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456 ac_tool_warned=yes ;;
6457 esac
6458     RANLIB=$ac_ct_RANLIB
6459   fi
6460 else
6461   RANLIB="$ac_cv_prog_RANLIB"
6462 fi
6463
6464 test -z "$RANLIB" && RANLIB=:
6465
6466
6467
6468
6469
6470
6471 # Determine commands to create old-style static archives.
6472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6473 old_postinstall_cmds='chmod 644 $oldlib'
6474 old_postuninstall_cmds=
6475
6476 if test -n "$RANLIB"; then
6477   case $host_os in
6478   openbsd*)
6479     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6480     ;;
6481   *)
6482     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6483     ;;
6484   esac
6485   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6486 fi
6487
6488 case $host_os in
6489   darwin*)
6490     lock_old_archive_extraction=yes ;;
6491   *)
6492     lock_old_archive_extraction=no ;;
6493 esac
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533 # If no C compiler was specified, use CC.
6534 LTCC=${LTCC-"$CC"}
6535
6536 # If no C compiler flags were specified, use CFLAGS.
6537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6538
6539 # Allow CC to be a program name with arguments.
6540 compiler=$CC
6541
6542
6543 # Check for command to grab the raw symbol name followed by C symbol from nm.
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6545 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6546 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549
6550 # These are sane defaults that work on at least a few old systems.
6551 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6552
6553 # Character class describing NM global symbol codes.
6554 symcode='[BCDEGRST]'
6555
6556 # Regexp to match symbols that can be accessed directly from C.
6557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6558
6559 # Define system-specific variables.
6560 case $host_os in
6561 aix*)
6562   symcode='[BCDT]'
6563   ;;
6564 cygwin* | mingw* | pw32* | cegcc*)
6565   symcode='[ABCDGISTW]'
6566   ;;
6567 hpux*)
6568   if test "$host_cpu" = ia64; then
6569     symcode='[ABCDEGRST]'
6570   fi
6571   ;;
6572 irix* | nonstopux*)
6573   symcode='[BCDEGRST]'
6574   ;;
6575 osf*)
6576   symcode='[BCDEGQRST]'
6577   ;;
6578 solaris*)
6579   symcode='[BDRT]'
6580   ;;
6581 sco3.2v5*)
6582   symcode='[DT]'
6583   ;;
6584 sysv4.2uw2*)
6585   symcode='[DT]'
6586   ;;
6587 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6588   symcode='[ABDT]'
6589   ;;
6590 sysv4)
6591   symcode='[DFNSTU]'
6592   ;;
6593 esac
6594
6595 # If we're using GNU nm, then use its standard symbol codes.
6596 case `$NM -V 2>&1` in
6597 *GNU* | *'with BFD'*)
6598   symcode='[ABCDGIRSTW]' ;;
6599 esac
6600
6601 # Transform an extracted symbol line into a proper C declaration.
6602 # Some systems (esp. on ia64) link data and code symbols differently,
6603 # so use this general approach.
6604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6605
6606 # Transform an extracted symbol line into symbol name and symbol address
6607 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6608 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'"
6609
6610 # Handle CRLF in mingw tool chain
6611 opt_cr=
6612 case $build_os in
6613 mingw*)
6614   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6615   ;;
6616 esac
6617
6618 # Try without a prefix underscore, then with it.
6619 for ac_symprfx in "" "_"; do
6620
6621   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6622   symxfrm="\\1 $ac_symprfx\\2 \\2"
6623
6624   # Write the raw and C identifiers.
6625   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6626     # Fake it for dumpbin and say T for any non-static function
6627     # and D for any global variable.
6628     # Also find C++ and __fastcall symbols from MSVC++,
6629     # which start with @ or ?.
6630     lt_cv_sys_global_symbol_pipe="$AWK '"\
6631 "     {last_section=section; section=\$ 3};"\
6632 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6633 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6634 "     \$ 0!~/External *\|/{next};"\
6635 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6636 "     {if(hide[section]) next};"\
6637 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6638 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6639 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6640 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6641 "     ' prfx=^$ac_symprfx"
6642   else
6643     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6644   fi
6645   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6646
6647   # Check to see that the pipe works correctly.
6648   pipe_works=no
6649
6650   rm -f conftest*
6651   cat > conftest.$ac_ext <<_LT_EOF
6652 #ifdef __cplusplus
6653 extern "C" {
6654 #endif
6655 char nm_test_var;
6656 void nm_test_func(void);
6657 void nm_test_func(void){}
6658 #ifdef __cplusplus
6659 }
6660 #endif
6661 int main(){nm_test_var='a';nm_test_func();return(0);}
6662 _LT_EOF
6663
6664   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6665   (eval $ac_compile) 2>&5
6666   ac_status=$?
6667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6668   test $ac_status = 0; }; then
6669     # Now try to grab the symbols.
6670     nlist=conftest.nm
6671     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6672   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6673   ac_status=$?
6674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6675   test $ac_status = 0; } && test -s "$nlist"; then
6676       # Try sorting and uniquifying the output.
6677       if sort "$nlist" | uniq > "$nlist"T; then
6678         mv -f "$nlist"T "$nlist"
6679       else
6680         rm -f "$nlist"T
6681       fi
6682
6683       # Make sure that we snagged all the symbols we need.
6684       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6685         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6686           cat <<_LT_EOF > conftest.$ac_ext
6687 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6688 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6689 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6690    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6691 # define LT_DLSYM_CONST
6692 #elif defined(__osf__)
6693 /* This system does not cope well with relocations in const data.  */
6694 # define LT_DLSYM_CONST
6695 #else
6696 # define LT_DLSYM_CONST const
6697 #endif
6698
6699 #ifdef __cplusplus
6700 extern "C" {
6701 #endif
6702
6703 _LT_EOF
6704           # Now generate the symbol file.
6705           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6706
6707           cat <<_LT_EOF >> conftest.$ac_ext
6708
6709 /* The mapping between symbol names and symbols.  */
6710 LT_DLSYM_CONST struct {
6711   const char *name;
6712   void       *address;
6713 }
6714 lt__PROGRAM__LTX_preloaded_symbols[] =
6715 {
6716   { "@PROGRAM@", (void *) 0 },
6717 _LT_EOF
6718           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6719           cat <<\_LT_EOF >> conftest.$ac_ext
6720   {0, (void *) 0}
6721 };
6722
6723 /* This works around a problem in FreeBSD linker */
6724 #ifdef FREEBSD_WORKAROUND
6725 static const void *lt_preloaded_setup() {
6726   return lt__PROGRAM__LTX_preloaded_symbols;
6727 }
6728 #endif
6729
6730 #ifdef __cplusplus
6731 }
6732 #endif
6733 _LT_EOF
6734           # Now try linking the two files.
6735           mv conftest.$ac_objext conftstm.$ac_objext
6736           lt_globsym_save_LIBS=$LIBS
6737           lt_globsym_save_CFLAGS=$CFLAGS
6738           LIBS="conftstm.$ac_objext"
6739           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6740           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6741   (eval $ac_link) 2>&5
6742   ac_status=$?
6743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6744   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6745             pipe_works=yes
6746           fi
6747           LIBS=$lt_globsym_save_LIBS
6748           CFLAGS=$lt_globsym_save_CFLAGS
6749         else
6750           echo "cannot find nm_test_func in $nlist" >&5
6751         fi
6752       else
6753         echo "cannot find nm_test_var in $nlist" >&5
6754       fi
6755     else
6756       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6757     fi
6758   else
6759     echo "$progname: failed program was:" >&5
6760     cat conftest.$ac_ext >&5
6761   fi
6762   rm -rf conftest* conftst*
6763
6764   # Do not use the global_symbol_pipe unless it works.
6765   if test "$pipe_works" = yes; then
6766     break
6767   else
6768     lt_cv_sys_global_symbol_pipe=
6769   fi
6770 done
6771
6772 fi
6773
6774 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6775   lt_cv_sys_global_symbol_to_cdecl=
6776 fi
6777 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6779 $as_echo "failed" >&6; }
6780 else
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6782 $as_echo "ok" >&6; }
6783 fi
6784
6785 # Response file support.
6786 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6787   nm_file_list_spec='@'
6788 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6789   nm_file_list_spec='@'
6790 fi
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6819 $as_echo_n "checking for sysroot... " >&6; }
6820
6821 # Check whether --with-sysroot was given.
6822 if test "${with_sysroot+set}" = set; then :
6823   withval=$with_sysroot;
6824 else
6825   with_sysroot=no
6826 fi
6827
6828
6829 lt_sysroot=
6830 case ${with_sysroot} in #(
6831  yes)
6832    if test "$GCC" = yes; then
6833      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6834    fi
6835    ;; #(
6836  /*)
6837    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6838    ;; #(
6839  no|'')
6840    ;; #(
6841  *)
6842    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6843 $as_echo "${with_sysroot}" >&6; }
6844    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6845    ;;
6846 esac
6847
6848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6849 $as_echo "${lt_sysroot:-no}" >&6; }
6850
6851
6852
6853
6854
6855 # Check whether --enable-libtool-lock was given.
6856 if test "${enable_libtool_lock+set}" = set; then :
6857   enableval=$enable_libtool_lock;
6858 fi
6859
6860 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6861
6862 # Some flags need to be propagated to the compiler or linker for good
6863 # libtool support.
6864 case $host in
6865 ia64-*-hpux*)
6866   # Find out which ABI we are using.
6867   echo 'int i;' > conftest.$ac_ext
6868   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6869   (eval $ac_compile) 2>&5
6870   ac_status=$?
6871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872   test $ac_status = 0; }; then
6873     case `/usr/bin/file conftest.$ac_objext` in
6874       *ELF-32*)
6875         HPUX_IA64_MODE="32"
6876         ;;
6877       *ELF-64*)
6878         HPUX_IA64_MODE="64"
6879         ;;
6880     esac
6881   fi
6882   rm -rf conftest*
6883   ;;
6884 *-*-irix6*)
6885   # Find out which ABI we are using.
6886   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6887   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6888   (eval $ac_compile) 2>&5
6889   ac_status=$?
6890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891   test $ac_status = 0; }; then
6892     if test "$lt_cv_prog_gnu_ld" = yes; then
6893       case `/usr/bin/file conftest.$ac_objext` in
6894         *32-bit*)
6895           LD="${LD-ld} -melf32bsmip"
6896           ;;
6897         *N32*)
6898           LD="${LD-ld} -melf32bmipn32"
6899           ;;
6900         *64-bit*)
6901           LD="${LD-ld} -melf64bmip"
6902         ;;
6903       esac
6904     else
6905       case `/usr/bin/file conftest.$ac_objext` in
6906         *32-bit*)
6907           LD="${LD-ld} -32"
6908           ;;
6909         *N32*)
6910           LD="${LD-ld} -n32"
6911           ;;
6912         *64-bit*)
6913           LD="${LD-ld} -64"
6914           ;;
6915       esac
6916     fi
6917   fi
6918   rm -rf conftest*
6919   ;;
6920
6921 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6922 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6923   # Find out which ABI we are using.
6924   echo 'int i;' > conftest.$ac_ext
6925   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6926   (eval $ac_compile) 2>&5
6927   ac_status=$?
6928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6929   test $ac_status = 0; }; then
6930     case `/usr/bin/file conftest.o` in
6931       *32-bit*)
6932         case $host in
6933           x86_64-*kfreebsd*-gnu)
6934             LD="${LD-ld} -m elf_i386_fbsd"
6935             ;;
6936           x86_64-*linux*)
6937             LD="${LD-ld} -m elf_i386"
6938             ;;
6939           ppc64-*linux*|powerpc64-*linux*)
6940             LD="${LD-ld} -m elf32ppclinux"
6941             ;;
6942           s390x-*linux*)
6943             LD="${LD-ld} -m elf_s390"
6944             ;;
6945           sparc64-*linux*)
6946             LD="${LD-ld} -m elf32_sparc"
6947             ;;
6948         esac
6949         ;;
6950       *64-bit*)
6951         case $host in
6952           x86_64-*kfreebsd*-gnu)
6953             LD="${LD-ld} -m elf_x86_64_fbsd"
6954             ;;
6955           x86_64-*linux*)
6956             LD="${LD-ld} -m elf_x86_64"
6957             ;;
6958           ppc*-*linux*|powerpc*-*linux*)
6959             LD="${LD-ld} -m elf64ppc"
6960             ;;
6961           s390*-*linux*|s390*-*tpf*)
6962             LD="${LD-ld} -m elf64_s390"
6963             ;;
6964           sparc*-*linux*)
6965             LD="${LD-ld} -m elf64_sparc"
6966             ;;
6967         esac
6968         ;;
6969     esac
6970   fi
6971   rm -rf conftest*
6972   ;;
6973
6974 *-*-sco3.2v5*)
6975   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6976   SAVE_CFLAGS="$CFLAGS"
6977   CFLAGS="$CFLAGS -belf"
6978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6979 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6980 if ${lt_cv_cc_needs_belf+:} false; then :
6981   $as_echo_n "(cached) " >&6
6982 else
6983   ac_ext=c
6984 ac_cpp='$CPP $CPPFLAGS'
6985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6988
6989      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h.  */
6991
6992 int
6993 main ()
6994 {
6995
6996   ;
6997   return 0;
6998 }
6999 _ACEOF
7000 if ac_fn_c_try_link "$LINENO"; then :
7001   lt_cv_cc_needs_belf=yes
7002 else
7003   lt_cv_cc_needs_belf=no
7004 fi
7005 rm -f core conftest.err conftest.$ac_objext \
7006     conftest$ac_exeext conftest.$ac_ext
7007      ac_ext=c
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012
7013 fi
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7015 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7016   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7017     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7018     CFLAGS="$SAVE_CFLAGS"
7019   fi
7020   ;;
7021 *-*solaris*)
7022   # Find out which ABI we are using.
7023   echo 'int i;' > conftest.$ac_ext
7024   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7025   (eval $ac_compile) 2>&5
7026   ac_status=$?
7027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028   test $ac_status = 0; }; then
7029     case `/usr/bin/file conftest.o` in
7030     *64-bit*)
7031       case $lt_cv_prog_gnu_ld in
7032       yes*)
7033         case $host in
7034         i?86-*-solaris*)
7035           LD="${LD-ld} -m elf_x86_64"
7036           ;;
7037         sparc*-*-solaris*)
7038           LD="${LD-ld} -m elf64_sparc"
7039           ;;
7040         esac
7041         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7042         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7043           LD="${LD-ld}_sol2"
7044         fi
7045         ;;
7046       *)
7047         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7048           LD="${LD-ld} -64"
7049         fi
7050         ;;
7051       esac
7052       ;;
7053     esac
7054   fi
7055   rm -rf conftest*
7056   ;;
7057 esac
7058
7059 need_locks="$enable_libtool_lock"
7060
7061 if test -n "$ac_tool_prefix"; then
7062   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7063 set dummy ${ac_tool_prefix}mt; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7067   $as_echo_n "(cached) " >&6
7068 else
7069   if test -n "$MANIFEST_TOOL"; then
7070   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075   IFS=$as_save_IFS
7076   test -z "$as_dir" && as_dir=.
7077     for ac_exec_ext in '' $ac_executable_extensions; do
7078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081     break 2
7082   fi
7083 done
7084   done
7085 IFS=$as_save_IFS
7086
7087 fi
7088 fi
7089 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7090 if test -n "$MANIFEST_TOOL"; then
7091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7092 $as_echo "$MANIFEST_TOOL" >&6; }
7093 else
7094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7096 fi
7097
7098
7099 fi
7100 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7101   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7102   # Extract the first word of "mt", so it can be a program name with args.
7103 set dummy mt; ac_word=$2
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105 $as_echo_n "checking for $ac_word... " >&6; }
7106 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7107   $as_echo_n "(cached) " >&6
7108 else
7109   if test -n "$ac_ct_MANIFEST_TOOL"; then
7110   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7111 else
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7114 do
7115   IFS=$as_save_IFS
7116   test -z "$as_dir" && as_dir=.
7117     for ac_exec_ext in '' $ac_executable_extensions; do
7118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121     break 2
7122   fi
7123 done
7124   done
7125 IFS=$as_save_IFS
7126
7127 fi
7128 fi
7129 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7130 if test -n "$ac_ct_MANIFEST_TOOL"; then
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7132 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7133 else
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7136 fi
7137
7138   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7139     MANIFEST_TOOL=":"
7140   else
7141     case $cross_compiling:$ac_tool_warned in
7142 yes:)
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7145 ac_tool_warned=yes ;;
7146 esac
7147     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7148   fi
7149 else
7150   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7151 fi
7152
7153 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7155 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7156 if ${lt_cv_path_mainfest_tool+:} false; then :
7157   $as_echo_n "(cached) " >&6
7158 else
7159   lt_cv_path_mainfest_tool=no
7160   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7161   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7162   cat conftest.err >&5
7163   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7164     lt_cv_path_mainfest_tool=yes
7165   fi
7166   rm -f conftest*
7167 fi
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7169 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7170 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7171   MANIFEST_TOOL=:
7172 fi
7173
7174
7175
7176
7177
7178
7179   case $host_os in
7180     rhapsody* | darwin*)
7181     if test -n "$ac_tool_prefix"; then
7182   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7183 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185 $as_echo_n "checking for $ac_word... " >&6; }
7186 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7187   $as_echo_n "(cached) " >&6
7188 else
7189   if test -n "$DSYMUTIL"; then
7190   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7191 else
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7194 do
7195   IFS=$as_save_IFS
7196   test -z "$as_dir" && as_dir=.
7197     for ac_exec_ext in '' $ac_executable_extensions; do
7198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201     break 2
7202   fi
7203 done
7204   done
7205 IFS=$as_save_IFS
7206
7207 fi
7208 fi
7209 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7210 if test -n "$DSYMUTIL"; then
7211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7212 $as_echo "$DSYMUTIL" >&6; }
7213 else
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7216 fi
7217
7218
7219 fi
7220 if test -z "$ac_cv_prog_DSYMUTIL"; then
7221   ac_ct_DSYMUTIL=$DSYMUTIL
7222   # Extract the first word of "dsymutil", so it can be a program name with args.
7223 set dummy dsymutil; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7227   $as_echo_n "(cached) " >&6
7228 else
7229   if test -n "$ac_ct_DSYMUTIL"; then
7230   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237     for ac_exec_ext in '' $ac_executable_extensions; do
7238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244   done
7245 IFS=$as_save_IFS
7246
7247 fi
7248 fi
7249 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7250 if test -n "$ac_ct_DSYMUTIL"; then
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7252 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7253 else
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257
7258   if test "x$ac_ct_DSYMUTIL" = x; then
7259     DSYMUTIL=":"
7260   else
7261     case $cross_compiling:$ac_tool_warned in
7262 yes:)
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7265 ac_tool_warned=yes ;;
7266 esac
7267     DSYMUTIL=$ac_ct_DSYMUTIL
7268   fi
7269 else
7270   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7271 fi
7272
7273     if test -n "$ac_tool_prefix"; then
7274   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7275 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277 $as_echo_n "checking for $ac_word... " >&6; }
7278 if ${ac_cv_prog_NMEDIT+:} false; then :
7279   $as_echo_n "(cached) " >&6
7280 else
7281   if test -n "$NMEDIT"; then
7282   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7283 else
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 for as_dir in $PATH
7286 do
7287   IFS=$as_save_IFS
7288   test -z "$as_dir" && as_dir=.
7289     for ac_exec_ext in '' $ac_executable_extensions; do
7290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7291     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293     break 2
7294   fi
7295 done
7296   done
7297 IFS=$as_save_IFS
7298
7299 fi
7300 fi
7301 NMEDIT=$ac_cv_prog_NMEDIT
7302 if test -n "$NMEDIT"; then
7303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7304 $as_echo "$NMEDIT" >&6; }
7305 else
7306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7308 fi
7309
7310
7311 fi
7312 if test -z "$ac_cv_prog_NMEDIT"; then
7313   ac_ct_NMEDIT=$NMEDIT
7314   # Extract the first word of "nmedit", so it can be a program name with args.
7315 set dummy nmedit; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7319   $as_echo_n "(cached) " >&6
7320 else
7321   if test -n "$ac_ct_NMEDIT"; then
7322   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7323 else
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327   IFS=$as_save_IFS
7328   test -z "$as_dir" && as_dir=.
7329     for ac_exec_ext in '' $ac_executable_extensions; do
7330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333     break 2
7334   fi
7335 done
7336   done
7337 IFS=$as_save_IFS
7338
7339 fi
7340 fi
7341 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7342 if test -n "$ac_ct_NMEDIT"; then
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7344 $as_echo "$ac_ct_NMEDIT" >&6; }
7345 else
7346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7348 fi
7349
7350   if test "x$ac_ct_NMEDIT" = x; then
7351     NMEDIT=":"
7352   else
7353     case $cross_compiling:$ac_tool_warned in
7354 yes:)
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7357 ac_tool_warned=yes ;;
7358 esac
7359     NMEDIT=$ac_ct_NMEDIT
7360   fi
7361 else
7362   NMEDIT="$ac_cv_prog_NMEDIT"
7363 fi
7364
7365     if test -n "$ac_tool_prefix"; then
7366   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7367 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369 $as_echo_n "checking for $ac_word... " >&6; }
7370 if ${ac_cv_prog_LIPO+:} false; then :
7371   $as_echo_n "(cached) " >&6
7372 else
7373   if test -n "$LIPO"; then
7374   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7375 else
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7378 do
7379   IFS=$as_save_IFS
7380   test -z "$as_dir" && as_dir=.
7381     for ac_exec_ext in '' $ac_executable_extensions; do
7382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385     break 2
7386   fi
7387 done
7388   done
7389 IFS=$as_save_IFS
7390
7391 fi
7392 fi
7393 LIPO=$ac_cv_prog_LIPO
7394 if test -n "$LIPO"; then
7395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7396 $as_echo "$LIPO" >&6; }
7397 else
7398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7400 fi
7401
7402
7403 fi
7404 if test -z "$ac_cv_prog_LIPO"; then
7405   ac_ct_LIPO=$LIPO
7406   # Extract the first word of "lipo", so it can be a program name with args.
7407 set dummy lipo; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7411   $as_echo_n "(cached) " >&6
7412 else
7413   if test -n "$ac_ct_LIPO"; then
7414   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421     for ac_exec_ext in '' $ac_executable_extensions; do
7422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423     ac_cv_prog_ac_ct_LIPO="lipo"
7424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425     break 2
7426   fi
7427 done
7428   done
7429 IFS=$as_save_IFS
7430
7431 fi
7432 fi
7433 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7434 if test -n "$ac_ct_LIPO"; then
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7436 $as_echo "$ac_ct_LIPO" >&6; }
7437 else
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7440 fi
7441
7442   if test "x$ac_ct_LIPO" = x; then
7443     LIPO=":"
7444   else
7445     case $cross_compiling:$ac_tool_warned in
7446 yes:)
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7449 ac_tool_warned=yes ;;
7450 esac
7451     LIPO=$ac_ct_LIPO
7452   fi
7453 else
7454   LIPO="$ac_cv_prog_LIPO"
7455 fi
7456
7457     if test -n "$ac_tool_prefix"; then
7458   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7459 set dummy ${ac_tool_prefix}otool; ac_word=$2
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if ${ac_cv_prog_OTOOL+:} false; then :
7463   $as_echo_n "(cached) " >&6
7464 else
7465   if test -n "$OTOOL"; then
7466   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473     for ac_exec_ext in '' $ac_executable_extensions; do
7474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480   done
7481 IFS=$as_save_IFS
7482
7483 fi
7484 fi
7485 OTOOL=$ac_cv_prog_OTOOL
7486 if test -n "$OTOOL"; then
7487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7488 $as_echo "$OTOOL" >&6; }
7489 else
7490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7492 fi
7493
7494
7495 fi
7496 if test -z "$ac_cv_prog_OTOOL"; then
7497   ac_ct_OTOOL=$OTOOL
7498   # Extract the first word of "otool", so it can be a program name with args.
7499 set dummy otool; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   if test -n "$ac_ct_OTOOL"; then
7506   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513     for ac_exec_ext in '' $ac_executable_extensions; do
7514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515     ac_cv_prog_ac_ct_OTOOL="otool"
7516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520   done
7521 IFS=$as_save_IFS
7522
7523 fi
7524 fi
7525 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7526 if test -n "$ac_ct_OTOOL"; then
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7528 $as_echo "$ac_ct_OTOOL" >&6; }
7529 else
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7532 fi
7533
7534   if test "x$ac_ct_OTOOL" = x; then
7535     OTOOL=":"
7536   else
7537     case $cross_compiling:$ac_tool_warned in
7538 yes:)
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7541 ac_tool_warned=yes ;;
7542 esac
7543     OTOOL=$ac_ct_OTOOL
7544   fi
7545 else
7546   OTOOL="$ac_cv_prog_OTOOL"
7547 fi
7548
7549     if test -n "$ac_tool_prefix"; then
7550   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7551 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if ${ac_cv_prog_OTOOL64+:} false; then :
7555   $as_echo_n "(cached) " >&6
7556 else
7557   if test -n "$OTOOL64"; then
7558   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565     for ac_exec_ext in '' $ac_executable_extensions; do
7566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7567     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572   done
7573 IFS=$as_save_IFS
7574
7575 fi
7576 fi
7577 OTOOL64=$ac_cv_prog_OTOOL64
7578 if test -n "$OTOOL64"; then
7579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7580 $as_echo "$OTOOL64" >&6; }
7581 else
7582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7584 fi
7585
7586
7587 fi
7588 if test -z "$ac_cv_prog_OTOOL64"; then
7589   ac_ct_OTOOL64=$OTOOL64
7590   # Extract the first word of "otool64", so it can be a program name with args.
7591 set dummy otool64; ac_word=$2
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593 $as_echo_n "checking for $ac_word... " >&6; }
7594 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597   if test -n "$ac_ct_OTOOL64"; then
7598   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7599 else
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7602 do
7603   IFS=$as_save_IFS
7604   test -z "$as_dir" && as_dir=.
7605     for ac_exec_ext in '' $ac_executable_extensions; do
7606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607     ac_cv_prog_ac_ct_OTOOL64="otool64"
7608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609     break 2
7610   fi
7611 done
7612   done
7613 IFS=$as_save_IFS
7614
7615 fi
7616 fi
7617 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7618 if test -n "$ac_ct_OTOOL64"; then
7619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7620 $as_echo "$ac_ct_OTOOL64" >&6; }
7621 else
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7624 fi
7625
7626   if test "x$ac_ct_OTOOL64" = x; then
7627     OTOOL64=":"
7628   else
7629     case $cross_compiling:$ac_tool_warned in
7630 yes:)
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7633 ac_tool_warned=yes ;;
7634 esac
7635     OTOOL64=$ac_ct_OTOOL64
7636   fi
7637 else
7638   OTOOL64="$ac_cv_prog_OTOOL64"
7639 fi
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7668 $as_echo_n "checking for -single_module linker flag... " >&6; }
7669 if ${lt_cv_apple_cc_single_mod+:} false; then :
7670   $as_echo_n "(cached) " >&6
7671 else
7672   lt_cv_apple_cc_single_mod=no
7673       if test -z "${LT_MULTI_MODULE}"; then
7674         # By default we will add the -single_module flag. You can override
7675         # by either setting the environment variable LT_MULTI_MODULE
7676         # non-empty at configure time, or by adding -multi_module to the
7677         # link flags.
7678         rm -rf libconftest.dylib*
7679         echo "int foo(void){return 1;}" > conftest.c
7680         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7681 -dynamiclib -Wl,-single_module conftest.c" >&5
7682         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7683           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7684         _lt_result=$?
7685         # If there is a non-empty error log, and "single_module"
7686         # appears in it, assume the flag caused a linker warning
7687         if test -s conftest.err && $GREP single_module conftest.err; then
7688           cat conftest.err >&5
7689         # Otherwise, if the output was created with a 0 exit code from
7690         # the compiler, it worked.
7691         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7692           lt_cv_apple_cc_single_mod=yes
7693         else
7694           cat conftest.err >&5
7695         fi
7696         rm -rf libconftest.dylib*
7697         rm -f conftest.*
7698       fi
7699 fi
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7701 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7702
7703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7704 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7705 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7706   $as_echo_n "(cached) " >&6
7707 else
7708   lt_cv_ld_exported_symbols_list=no
7709       save_LDFLAGS=$LDFLAGS
7710       echo "_main" > conftest.sym
7711       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7712       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h.  */
7714
7715 int
7716 main ()
7717 {
7718
7719   ;
7720   return 0;
7721 }
7722 _ACEOF
7723 if ac_fn_c_try_link "$LINENO"; then :
7724   lt_cv_ld_exported_symbols_list=yes
7725 else
7726   lt_cv_ld_exported_symbols_list=no
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext \
7729     conftest$ac_exeext conftest.$ac_ext
7730         LDFLAGS="$save_LDFLAGS"
7731
7732 fi
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7734 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7735
7736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7737 $as_echo_n "checking for -force_load linker flag... " >&6; }
7738 if ${lt_cv_ld_force_load+:} false; then :
7739   $as_echo_n "(cached) " >&6
7740 else
7741   lt_cv_ld_force_load=no
7742       cat > conftest.c << _LT_EOF
7743 int forced_loaded() { return 2;}
7744 _LT_EOF
7745       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7746       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7747       echo "$AR cru libconftest.a conftest.o" >&5
7748       $AR cru libconftest.a conftest.o 2>&5
7749       echo "$RANLIB libconftest.a" >&5
7750       $RANLIB libconftest.a 2>&5
7751       cat > conftest.c << _LT_EOF
7752 int main() { return 0;}
7753 _LT_EOF
7754       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7755       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7756       _lt_result=$?
7757       if test -s conftest.err && $GREP force_load conftest.err; then
7758         cat conftest.err >&5
7759       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7760         lt_cv_ld_force_load=yes
7761       else
7762         cat conftest.err >&5
7763       fi
7764         rm -f conftest.err libconftest.a conftest conftest.c
7765         rm -rf conftest.dSYM
7766
7767 fi
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7769 $as_echo "$lt_cv_ld_force_load" >&6; }
7770     case $host_os in
7771     rhapsody* | darwin1.[012])
7772       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7773     darwin1.*)
7774       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7775     darwin*) # darwin 5.x on
7776       # if running on 10.5 or later, the deployment target defaults
7777       # to the OS version, if on x86, and 10.4, the deployment
7778       # target defaults to 10.4. Don't you love it?
7779       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7780         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7781           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7782         10.[012]*)
7783           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7784         10.*)
7785           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7786       esac
7787     ;;
7788   esac
7789     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7790       _lt_dar_single_mod='$single_module'
7791     fi
7792     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7793       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7794     else
7795       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7796     fi
7797     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7798       _lt_dsymutil='~$DSYMUTIL $lib || :'
7799     else
7800       _lt_dsymutil=
7801     fi
7802     ;;
7803   esac
7804
7805 ac_ext=c
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7811 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7812 # On Suns, sometimes $CPP names a directory.
7813 if test -n "$CPP" && test -d "$CPP"; then
7814   CPP=
7815 fi
7816 if test -z "$CPP"; then
7817   if ${ac_cv_prog_CPP+:} false; then :
7818   $as_echo_n "(cached) " >&6
7819 else
7820       # Double quotes because CPP needs to be expanded
7821     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7822     do
7823       ac_preproc_ok=false
7824 for ac_c_preproc_warn_flag in '' yes
7825 do
7826   # Use a header file that comes with gcc, so configuring glibc
7827   # with a fresh cross-compiler works.
7828   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7829   # <limits.h> exists even on freestanding compilers.
7830   # On the NeXT, cc -E runs the code through the compiler's parser,
7831   # not just through cpp. "Syntax error" is here to catch this case.
7832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h.  */
7834 #ifdef __STDC__
7835 # include <limits.h>
7836 #else
7837 # include <assert.h>
7838 #endif
7839                      Syntax error
7840 _ACEOF
7841 if ac_fn_c_try_cpp "$LINENO"; then :
7842
7843 else
7844   # Broken: fails on valid input.
7845 continue
7846 fi
7847 rm -f conftest.err conftest.i conftest.$ac_ext
7848
7849   # OK, works on sane cases.  Now check whether nonexistent headers
7850   # can be detected and how.
7851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h.  */
7853 #include <ac_nonexistent.h>
7854 _ACEOF
7855 if ac_fn_c_try_cpp "$LINENO"; then :
7856   # Broken: success on invalid input.
7857 continue
7858 else
7859   # Passes both tests.
7860 ac_preproc_ok=:
7861 break
7862 fi
7863 rm -f conftest.err conftest.i conftest.$ac_ext
7864
7865 done
7866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7867 rm -f conftest.i conftest.err conftest.$ac_ext
7868 if $ac_preproc_ok; then :
7869   break
7870 fi
7871
7872     done
7873     ac_cv_prog_CPP=$CPP
7874
7875 fi
7876   CPP=$ac_cv_prog_CPP
7877 else
7878   ac_cv_prog_CPP=$CPP
7879 fi
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7881 $as_echo "$CPP" >&6; }
7882 ac_preproc_ok=false
7883 for ac_c_preproc_warn_flag in '' yes
7884 do
7885   # Use a header file that comes with gcc, so configuring glibc
7886   # with a fresh cross-compiler works.
7887   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7888   # <limits.h> exists even on freestanding compilers.
7889   # On the NeXT, cc -E runs the code through the compiler's parser,
7890   # not just through cpp. "Syntax error" is here to catch this case.
7891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h.  */
7893 #ifdef __STDC__
7894 # include <limits.h>
7895 #else
7896 # include <assert.h>
7897 #endif
7898                      Syntax error
7899 _ACEOF
7900 if ac_fn_c_try_cpp "$LINENO"; then :
7901
7902 else
7903   # Broken: fails on valid input.
7904 continue
7905 fi
7906 rm -f conftest.err conftest.i conftest.$ac_ext
7907
7908   # OK, works on sane cases.  Now check whether nonexistent headers
7909   # can be detected and how.
7910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h.  */
7912 #include <ac_nonexistent.h>
7913 _ACEOF
7914 if ac_fn_c_try_cpp "$LINENO"; then :
7915   # Broken: success on invalid input.
7916 continue
7917 else
7918   # Passes both tests.
7919 ac_preproc_ok=:
7920 break
7921 fi
7922 rm -f conftest.err conftest.i conftest.$ac_ext
7923
7924 done
7925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7926 rm -f conftest.i conftest.err conftest.$ac_ext
7927 if $ac_preproc_ok; then :
7928
7929 else
7930   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7932 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7933 See \`config.log' for more details" "$LINENO" 5; }
7934 fi
7935
7936 ac_ext=c
7937 ac_cpp='$CPP $CPPFLAGS'
7938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941
7942
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7944 $as_echo_n "checking for ANSI C header files... " >&6; }
7945 if ${ac_cv_header_stdc+:} false; then :
7946   $as_echo_n "(cached) " >&6
7947 else
7948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h.  */
7950 #include <stdlib.h>
7951 #include <stdarg.h>
7952 #include <string.h>
7953 #include <float.h>
7954
7955 int
7956 main ()
7957 {
7958
7959   ;
7960   return 0;
7961 }
7962 _ACEOF
7963 if ac_fn_c_try_compile "$LINENO"; then :
7964   ac_cv_header_stdc=yes
7965 else
7966   ac_cv_header_stdc=no
7967 fi
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969
7970 if test $ac_cv_header_stdc = yes; then
7971   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h.  */
7974 #include <string.h>
7975
7976 _ACEOF
7977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7978   $EGREP "memchr" >/dev/null 2>&1; then :
7979
7980 else
7981   ac_cv_header_stdc=no
7982 fi
7983 rm -f conftest*
7984
7985 fi
7986
7987 if test $ac_cv_header_stdc = yes; then
7988   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h.  */
7991 #include <stdlib.h>
7992
7993 _ACEOF
7994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7995   $EGREP "free" >/dev/null 2>&1; then :
7996
7997 else
7998   ac_cv_header_stdc=no
7999 fi
8000 rm -f conftest*
8001
8002 fi
8003
8004 if test $ac_cv_header_stdc = yes; then
8005   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8006   if test "$cross_compiling" = yes; then :
8007   :
8008 else
8009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h.  */
8011 #include <ctype.h>
8012 #include <stdlib.h>
8013 #if ((' ' & 0x0FF) == 0x020)
8014 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8015 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8016 #else
8017 # define ISLOWER(c) \
8018                    (('a' <= (c) && (c) <= 'i') \
8019                      || ('j' <= (c) && (c) <= 'r') \
8020                      || ('s' <= (c) && (c) <= 'z'))
8021 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8022 #endif
8023
8024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8025 int
8026 main ()
8027 {
8028   int i;
8029   for (i = 0; i < 256; i++)
8030     if (XOR (islower (i), ISLOWER (i))
8031         || toupper (i) != TOUPPER (i))
8032       return 2;
8033   return 0;
8034 }
8035 _ACEOF
8036 if ac_fn_c_try_run "$LINENO"; then :
8037
8038 else
8039   ac_cv_header_stdc=no
8040 fi
8041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8042   conftest.$ac_objext conftest.beam conftest.$ac_ext
8043 fi
8044
8045 fi
8046 fi
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8048 $as_echo "$ac_cv_header_stdc" >&6; }
8049 if test $ac_cv_header_stdc = yes; then
8050
8051 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8052
8053 fi
8054
8055 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8056 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8057                   inttypes.h stdint.h unistd.h
8058 do :
8059   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8060 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8061 "
8062 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8063   cat >>confdefs.h <<_ACEOF
8064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8065 _ACEOF
8066
8067 fi
8068
8069 done
8070
8071
8072 for ac_header in dlfcn.h
8073 do :
8074   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8075 "
8076 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8077   cat >>confdefs.h <<_ACEOF
8078 #define HAVE_DLFCN_H 1
8079 _ACEOF
8080
8081 fi
8082
8083 done
8084
8085
8086
8087
8088
8089 # Set options
8090
8091
8092
8093         enable_dlopen=no
8094
8095
8096   enable_win32_dll=no
8097
8098
8099             # Check whether --enable-shared was given.
8100 if test "${enable_shared+set}" = set; then :
8101   enableval=$enable_shared; p=${PACKAGE-default}
8102     case $enableval in
8103     yes) enable_shared=yes ;;
8104     no) enable_shared=no ;;
8105     *)
8106       enable_shared=no
8107       # Look at the argument we got.  We use all the common list separators.
8108       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8109       for pkg in $enableval; do
8110         IFS="$lt_save_ifs"
8111         if test "X$pkg" = "X$p"; then
8112           enable_shared=yes
8113         fi
8114       done
8115       IFS="$lt_save_ifs"
8116       ;;
8117     esac
8118 else
8119   enable_shared=yes
8120 fi
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130   # Check whether --enable-static was given.
8131 if test "${enable_static+set}" = set; then :
8132   enableval=$enable_static; p=${PACKAGE-default}
8133     case $enableval in
8134     yes) enable_static=yes ;;
8135     no) enable_static=no ;;
8136     *)
8137      enable_static=no
8138       # Look at the argument we got.  We use all the common list separators.
8139       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8140       for pkg in $enableval; do
8141         IFS="$lt_save_ifs"
8142         if test "X$pkg" = "X$p"; then
8143           enable_static=yes
8144         fi
8145       done
8146       IFS="$lt_save_ifs"
8147       ;;
8148     esac
8149 else
8150   enable_static=yes
8151 fi
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162 # Check whether --with-pic was given.
8163 if test "${with_pic+set}" = set; then :
8164   withval=$with_pic; lt_p=${PACKAGE-default}
8165     case $withval in
8166     yes|no) pic_mode=$withval ;;
8167     *)
8168       pic_mode=default
8169       # Look at the argument we got.  We use all the common list separators.
8170       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8171       for lt_pkg in $withval; do
8172         IFS="$lt_save_ifs"
8173         if test "X$lt_pkg" = "X$lt_p"; then
8174           pic_mode=yes
8175         fi
8176       done
8177       IFS="$lt_save_ifs"
8178       ;;
8179     esac
8180 else
8181   pic_mode=default
8182 fi
8183
8184
8185 test -z "$pic_mode" && pic_mode=default
8186
8187
8188
8189
8190
8191
8192
8193   # Check whether --enable-fast-install was given.
8194 if test "${enable_fast_install+set}" = set; then :
8195   enableval=$enable_fast_install; p=${PACKAGE-default}
8196     case $enableval in
8197     yes) enable_fast_install=yes ;;
8198     no) enable_fast_install=no ;;
8199     *)
8200       enable_fast_install=no
8201       # Look at the argument we got.  We use all the common list separators.
8202       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8203       for pkg in $enableval; do
8204         IFS="$lt_save_ifs"
8205         if test "X$pkg" = "X$p"; then
8206           enable_fast_install=yes
8207         fi
8208       done
8209       IFS="$lt_save_ifs"
8210       ;;
8211     esac
8212 else
8213   enable_fast_install=yes
8214 fi
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226 # This can be used to rebuild libtool when needed
8227 LIBTOOL_DEPS="$ltmain"
8228
8229 # Always use our own libtool.
8230 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261 test -z "$LN_S" && LN_S="ln -s"
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276 if test -n "${ZSH_VERSION+set}" ; then
8277    setopt NO_GLOB_SUBST
8278 fi
8279
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8281 $as_echo_n "checking for objdir... " >&6; }
8282 if ${lt_cv_objdir+:} false; then :
8283   $as_echo_n "(cached) " >&6
8284 else
8285   rm -f .libs 2>/dev/null
8286 mkdir .libs 2>/dev/null
8287 if test -d .libs; then
8288   lt_cv_objdir=.libs
8289 else
8290   # MS-DOS does not allow filenames that begin with a dot.
8291   lt_cv_objdir=_libs
8292 fi
8293 rmdir .libs 2>/dev/null
8294 fi
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8296 $as_echo "$lt_cv_objdir" >&6; }
8297 objdir=$lt_cv_objdir
8298
8299
8300
8301
8302
8303 cat >>confdefs.h <<_ACEOF
8304 #define LT_OBJDIR "$lt_cv_objdir/"
8305 _ACEOF
8306
8307
8308
8309
8310 case $host_os in
8311 aix3*)
8312   # AIX sometimes has problems with the GCC collect2 program.  For some
8313   # reason, if we set the COLLECT_NAMES environment variable, the problems
8314   # vanish in a puff of smoke.
8315   if test "X${COLLECT_NAMES+set}" != Xset; then
8316     COLLECT_NAMES=
8317     export COLLECT_NAMES
8318   fi
8319   ;;
8320 esac
8321
8322 # Global variables:
8323 ofile=libtool
8324 can_build_shared=yes
8325
8326 # All known linkers require a `.a' archive for static linking (except MSVC,
8327 # which needs '.lib').
8328 libext=a
8329
8330 with_gnu_ld="$lt_cv_prog_gnu_ld"
8331
8332 old_CC="$CC"
8333 old_CFLAGS="$CFLAGS"
8334
8335 # Set sane defaults for various variables
8336 test -z "$CC" && CC=cc
8337 test -z "$LTCC" && LTCC=$CC
8338 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8339 test -z "$LD" && LD=ld
8340 test -z "$ac_objext" && ac_objext=o
8341
8342 for cc_temp in $compiler""; do
8343   case $cc_temp in
8344     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8345     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8346     \-*) ;;
8347     *) break;;
8348   esac
8349 done
8350 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8351
8352
8353 # Only perform the check for file, if the check method requires it
8354 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8355 case $deplibs_check_method in
8356 file_magic*)
8357   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8359 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8360 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8361   $as_echo_n "(cached) " >&6
8362 else
8363   case $MAGIC_CMD in
8364 [\\/*] |  ?:[\\/]*)
8365   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8366   ;;
8367 *)
8368   lt_save_MAGIC_CMD="$MAGIC_CMD"
8369   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8370   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8371   for ac_dir in $ac_dummy; do
8372     IFS="$lt_save_ifs"
8373     test -z "$ac_dir" && ac_dir=.
8374     if test -f $ac_dir/${ac_tool_prefix}file; then
8375       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8376       if test -n "$file_magic_test_file"; then
8377         case $deplibs_check_method in
8378         "file_magic "*)
8379           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8380           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8381           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8382             $EGREP "$file_magic_regex" > /dev/null; then
8383             :
8384           else
8385             cat <<_LT_EOF 1>&2
8386
8387 *** Warning: the command libtool uses to detect shared libraries,
8388 *** $file_magic_cmd, produces output that libtool cannot recognize.
8389 *** The result is that libtool may fail to recognize shared libraries
8390 *** as such.  This will affect the creation of libtool libraries that
8391 *** depend on shared libraries, but programs linked with such libtool
8392 *** libraries will work regardless of this problem.  Nevertheless, you
8393 *** may want to report the problem to your system manager and/or to
8394 *** bug-libtool@gnu.org
8395
8396 _LT_EOF
8397           fi ;;
8398         esac
8399       fi
8400       break
8401     fi
8402   done
8403   IFS="$lt_save_ifs"
8404   MAGIC_CMD="$lt_save_MAGIC_CMD"
8405   ;;
8406 esac
8407 fi
8408
8409 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8410 if test -n "$MAGIC_CMD"; then
8411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8412 $as_echo "$MAGIC_CMD" >&6; }
8413 else
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8416 fi
8417
8418
8419
8420
8421
8422 if test -z "$lt_cv_path_MAGIC_CMD"; then
8423   if test -n "$ac_tool_prefix"; then
8424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8425 $as_echo_n "checking for file... " >&6; }
8426 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8427   $as_echo_n "(cached) " >&6
8428 else
8429   case $MAGIC_CMD in
8430 [\\/*] |  ?:[\\/]*)
8431   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8432   ;;
8433 *)
8434   lt_save_MAGIC_CMD="$MAGIC_CMD"
8435   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8436   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8437   for ac_dir in $ac_dummy; do
8438     IFS="$lt_save_ifs"
8439     test -z "$ac_dir" && ac_dir=.
8440     if test -f $ac_dir/file; then
8441       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8442       if test -n "$file_magic_test_file"; then
8443         case $deplibs_check_method in
8444         "file_magic "*)
8445           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8446           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8447           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8448             $EGREP "$file_magic_regex" > /dev/null; then
8449             :
8450           else
8451             cat <<_LT_EOF 1>&2
8452
8453 *** Warning: the command libtool uses to detect shared libraries,
8454 *** $file_magic_cmd, produces output that libtool cannot recognize.
8455 *** The result is that libtool may fail to recognize shared libraries
8456 *** as such.  This will affect the creation of libtool libraries that
8457 *** depend on shared libraries, but programs linked with such libtool
8458 *** libraries will work regardless of this problem.  Nevertheless, you
8459 *** may want to report the problem to your system manager and/or to
8460 *** bug-libtool@gnu.org
8461
8462 _LT_EOF
8463           fi ;;
8464         esac
8465       fi
8466       break
8467     fi
8468   done
8469   IFS="$lt_save_ifs"
8470   MAGIC_CMD="$lt_save_MAGIC_CMD"
8471   ;;
8472 esac
8473 fi
8474
8475 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8476 if test -n "$MAGIC_CMD"; then
8477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8478 $as_echo "$MAGIC_CMD" >&6; }
8479 else
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8482 fi
8483
8484
8485   else
8486     MAGIC_CMD=:
8487   fi
8488 fi
8489
8490   fi
8491   ;;
8492 esac
8493
8494 # Use C for the default configuration in the libtool script
8495
8496 lt_save_CC="$CC"
8497 ac_ext=c
8498 ac_cpp='$CPP $CPPFLAGS'
8499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8502
8503
8504 # Source file extension for C test sources.
8505 ac_ext=c
8506
8507 # Object file extension for compiled C test sources.
8508 objext=o
8509 objext=$objext
8510
8511 # Code to be used in simple compile tests
8512 lt_simple_compile_test_code="int some_variable = 0;"
8513
8514 # Code to be used in simple link tests
8515 lt_simple_link_test_code='int main(){return(0);}'
8516
8517
8518
8519
8520
8521
8522
8523 # If no C compiler was specified, use CC.
8524 LTCC=${LTCC-"$CC"}
8525
8526 # If no C compiler flags were specified, use CFLAGS.
8527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8528
8529 # Allow CC to be a program name with arguments.
8530 compiler=$CC
8531
8532 # Save the default compiler, since it gets overwritten when the other
8533 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8534 compiler_DEFAULT=$CC
8535
8536 # save warnings/boilerplate of simple test code
8537 ac_outfile=conftest.$ac_objext
8538 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8539 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8540 _lt_compiler_boilerplate=`cat conftest.err`
8541 $RM conftest*
8542
8543 ac_outfile=conftest.$ac_objext
8544 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8545 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8546 _lt_linker_boilerplate=`cat conftest.err`
8547 $RM -r conftest*
8548
8549
8550 ## CAVEAT EMPTOR:
8551 ## There is no encapsulation within the following macros, do not change
8552 ## the running order or otherwise move them around unless you know exactly
8553 ## what you are doing...
8554 if test -n "$compiler"; then
8555
8556 lt_prog_compiler_no_builtin_flag=
8557
8558 if test "$GCC" = yes; then
8559   case $cc_basename in
8560   nvcc*)
8561     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8562   *)
8563     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8564   esac
8565
8566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8567 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8568 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8569   $as_echo_n "(cached) " >&6
8570 else
8571   lt_cv_prog_compiler_rtti_exceptions=no
8572    ac_outfile=conftest.$ac_objext
8573    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8574    lt_compiler_flag="-fno-rtti -fno-exceptions"
8575    # Insert the option either (1) after the last *FLAGS variable, or
8576    # (2) before a word containing "conftest.", or (3) at the end.
8577    # Note that $ac_compile itself does not contain backslashes and begins
8578    # with a dollar sign (not a hyphen), so the echo should work correctly.
8579    # The option is referenced via a variable to avoid confusing sed.
8580    lt_compile=`echo "$ac_compile" | $SED \
8581    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8582    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8583    -e 's:$: $lt_compiler_flag:'`
8584    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8585    (eval "$lt_compile" 2>conftest.err)
8586    ac_status=$?
8587    cat conftest.err >&5
8588    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589    if (exit $ac_status) && test -s "$ac_outfile"; then
8590      # The compiler can only warn and ignore the option if not recognized
8591      # So say no if there are warnings other than the usual output.
8592      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8593      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8594      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8595        lt_cv_prog_compiler_rtti_exceptions=yes
8596      fi
8597    fi
8598    $RM conftest*
8599
8600 fi
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8602 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8603
8604 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8605     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8606 else
8607     :
8608 fi
8609
8610 fi
8611
8612
8613
8614
8615
8616
8617   lt_prog_compiler_wl=
8618 lt_prog_compiler_pic=
8619 lt_prog_compiler_static=
8620
8621
8622   if test "$GCC" = yes; then
8623     lt_prog_compiler_wl='-Wl,'
8624     lt_prog_compiler_static='-static'
8625
8626     case $host_os in
8627       aix*)
8628       # All AIX code is PIC.
8629       if test "$host_cpu" = ia64; then
8630         # AIX 5 now supports IA64 processor
8631         lt_prog_compiler_static='-Bstatic'
8632       fi
8633       ;;
8634
8635     amigaos*)
8636       case $host_cpu in
8637       powerpc)
8638             # see comment about AmigaOS4 .so support
8639             lt_prog_compiler_pic='-fPIC'
8640         ;;
8641       m68k)
8642             # FIXME: we need at least 68020 code to build shared libraries, but
8643             # adding the `-m68020' flag to GCC prevents building anything better,
8644             # like `-m68040'.
8645             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8646         ;;
8647       esac
8648       ;;
8649
8650     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8651       # PIC is the default for these OSes.
8652       ;;
8653
8654     mingw* | cygwin* | pw32* | os2* | cegcc*)
8655       # This hack is so that the source file can tell whether it is being
8656       # built for inclusion in a dll (and should export symbols for example).
8657       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8658       # (--disable-auto-import) libraries
8659       lt_prog_compiler_pic='-DDLL_EXPORT'
8660       ;;
8661
8662     darwin* | rhapsody*)
8663       # PIC is the default on this platform
8664       # Common symbols not allowed in MH_DYLIB files
8665       lt_prog_compiler_pic='-fno-common'
8666       ;;
8667
8668     haiku*)
8669       # PIC is the default for Haiku.
8670       # The "-static" flag exists, but is broken.
8671       lt_prog_compiler_static=
8672       ;;
8673
8674     hpux*)
8675       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8676       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8677       # sets the default TLS model and affects inlining.
8678       case $host_cpu in
8679       hppa*64*)
8680         # +Z the default
8681         ;;
8682       *)
8683         lt_prog_compiler_pic='-fPIC'
8684         ;;
8685       esac
8686       ;;
8687
8688     interix[3-9]*)
8689       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8690       # Instead, we relocate shared libraries at runtime.
8691       ;;
8692
8693     msdosdjgpp*)
8694       # Just because we use GCC doesn't mean we suddenly get shared libraries
8695       # on systems that don't support them.
8696       lt_prog_compiler_can_build_shared=no
8697       enable_shared=no
8698       ;;
8699
8700     *nto* | *qnx*)
8701       # QNX uses GNU C++, but need to define -shared option too, otherwise
8702       # it will coredump.
8703       lt_prog_compiler_pic='-fPIC -shared'
8704       ;;
8705
8706     sysv4*MP*)
8707       if test -d /usr/nec; then
8708         lt_prog_compiler_pic=-Kconform_pic
8709       fi
8710       ;;
8711
8712     *)
8713       lt_prog_compiler_pic='-fPIC'
8714       ;;
8715     esac
8716
8717     case $cc_basename in
8718     nvcc*) # Cuda Compiler Driver 2.2
8719       lt_prog_compiler_wl='-Xlinker '
8720       if test -n "$lt_prog_compiler_pic"; then
8721         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8722       fi
8723       ;;
8724     esac
8725   else
8726     # PORTME Check for flag to pass linker flags through the system compiler.
8727     case $host_os in
8728     aix*)
8729       lt_prog_compiler_wl='-Wl,'
8730       if test "$host_cpu" = ia64; then
8731         # AIX 5 now supports IA64 processor
8732         lt_prog_compiler_static='-Bstatic'
8733       else
8734         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8735       fi
8736       ;;
8737
8738     mingw* | cygwin* | pw32* | os2* | cegcc*)
8739       # This hack is so that the source file can tell whether it is being
8740       # built for inclusion in a dll (and should export symbols for example).
8741       lt_prog_compiler_pic='-DDLL_EXPORT'
8742       ;;
8743
8744     hpux9* | hpux10* | hpux11*)
8745       lt_prog_compiler_wl='-Wl,'
8746       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8747       # not for PA HP-UX.
8748       case $host_cpu in
8749       hppa*64*|ia64*)
8750         # +Z the default
8751         ;;
8752       *)
8753         lt_prog_compiler_pic='+Z'
8754         ;;
8755       esac
8756       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8757       lt_prog_compiler_static='${wl}-a ${wl}archive'
8758       ;;
8759
8760     irix5* | irix6* | nonstopux*)
8761       lt_prog_compiler_wl='-Wl,'
8762       # PIC (with -KPIC) is the default.
8763       lt_prog_compiler_static='-non_shared'
8764       ;;
8765
8766     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8767       case $cc_basename in
8768       # old Intel for x86_64 which still supported -KPIC.
8769       ecc*)
8770         lt_prog_compiler_wl='-Wl,'
8771         lt_prog_compiler_pic='-KPIC'
8772         lt_prog_compiler_static='-static'
8773         ;;
8774       # icc used to be incompatible with GCC.
8775       # ICC 10 doesn't accept -KPIC any more.
8776       icc* | ifort*)
8777         lt_prog_compiler_wl='-Wl,'
8778         lt_prog_compiler_pic='-fPIC'
8779         lt_prog_compiler_static='-static'
8780         ;;
8781       # Lahey Fortran 8.1.
8782       lf95*)
8783         lt_prog_compiler_wl='-Wl,'
8784         lt_prog_compiler_pic='--shared'
8785         lt_prog_compiler_static='--static'
8786         ;;
8787       nagfor*)
8788         # NAG Fortran compiler
8789         lt_prog_compiler_wl='-Wl,-Wl,,'
8790         lt_prog_compiler_pic='-PIC'
8791         lt_prog_compiler_static='-Bstatic'
8792         ;;
8793       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8794         # Portland Group compilers (*not* the Pentium gcc compiler,
8795         # which looks to be a dead project)
8796         lt_prog_compiler_wl='-Wl,'
8797         lt_prog_compiler_pic='-fpic'
8798         lt_prog_compiler_static='-Bstatic'
8799         ;;
8800       ccc*)
8801         lt_prog_compiler_wl='-Wl,'
8802         # All Alpha code is PIC.
8803         lt_prog_compiler_static='-non_shared'
8804         ;;
8805       xl* | bgxl* | bgf* | mpixl*)
8806         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8807         lt_prog_compiler_wl='-Wl,'
8808         lt_prog_compiler_pic='-qpic'
8809         lt_prog_compiler_static='-qstaticlink'
8810         ;;
8811       *)
8812         case `$CC -V 2>&1 | sed 5q` in
8813         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8814           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8815           lt_prog_compiler_pic='-KPIC'
8816           lt_prog_compiler_static='-Bstatic'
8817           lt_prog_compiler_wl=''
8818           ;;
8819         *Sun\ F* | *Sun*Fortran*)
8820           lt_prog_compiler_pic='-KPIC'
8821           lt_prog_compiler_static='-Bstatic'
8822           lt_prog_compiler_wl='-Qoption ld '
8823           ;;
8824         *Sun\ C*)
8825           # Sun C 5.9
8826           lt_prog_compiler_pic='-KPIC'
8827           lt_prog_compiler_static='-Bstatic'
8828           lt_prog_compiler_wl='-Wl,'
8829           ;;
8830         *Intel*\ [CF]*Compiler*)
8831           lt_prog_compiler_wl='-Wl,'
8832           lt_prog_compiler_pic='-fPIC'
8833           lt_prog_compiler_static='-static'
8834           ;;
8835         *Portland\ Group*)
8836           lt_prog_compiler_wl='-Wl,'
8837           lt_prog_compiler_pic='-fpic'
8838           lt_prog_compiler_static='-Bstatic'
8839           ;;
8840         esac
8841         ;;
8842       esac
8843       ;;
8844
8845     newsos6)
8846       lt_prog_compiler_pic='-KPIC'
8847       lt_prog_compiler_static='-Bstatic'
8848       ;;
8849
8850     *nto* | *qnx*)
8851       # QNX uses GNU C++, but need to define -shared option too, otherwise
8852       # it will coredump.
8853       lt_prog_compiler_pic='-fPIC -shared'
8854       ;;
8855
8856     osf3* | osf4* | osf5*)
8857       lt_prog_compiler_wl='-Wl,'
8858       # All OSF/1 code is PIC.
8859       lt_prog_compiler_static='-non_shared'
8860       ;;
8861
8862     rdos*)
8863       lt_prog_compiler_static='-non_shared'
8864       ;;
8865
8866     solaris*)
8867       lt_prog_compiler_pic='-KPIC'
8868       lt_prog_compiler_static='-Bstatic'
8869       case $cc_basename in
8870       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8871         lt_prog_compiler_wl='-Qoption ld ';;
8872       *)
8873         lt_prog_compiler_wl='-Wl,';;
8874       esac
8875       ;;
8876
8877     sunos4*)
8878       lt_prog_compiler_wl='-Qoption ld '
8879       lt_prog_compiler_pic='-PIC'
8880       lt_prog_compiler_static='-Bstatic'
8881       ;;
8882
8883     sysv4 | sysv4.2uw2* | sysv4.3*)
8884       lt_prog_compiler_wl='-Wl,'
8885       lt_prog_compiler_pic='-KPIC'
8886       lt_prog_compiler_static='-Bstatic'
8887       ;;
8888
8889     sysv4*MP*)
8890       if test -d /usr/nec ;then
8891         lt_prog_compiler_pic='-Kconform_pic'
8892         lt_prog_compiler_static='-Bstatic'
8893       fi
8894       ;;
8895
8896     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8897       lt_prog_compiler_wl='-Wl,'
8898       lt_prog_compiler_pic='-KPIC'
8899       lt_prog_compiler_static='-Bstatic'
8900       ;;
8901
8902     unicos*)
8903       lt_prog_compiler_wl='-Wl,'
8904       lt_prog_compiler_can_build_shared=no
8905       ;;
8906
8907     uts4*)
8908       lt_prog_compiler_pic='-pic'
8909       lt_prog_compiler_static='-Bstatic'
8910       ;;
8911
8912     *)
8913       lt_prog_compiler_can_build_shared=no
8914       ;;
8915     esac
8916   fi
8917
8918 case $host_os in
8919   # For platforms which do not support PIC, -DPIC is meaningless:
8920   *djgpp*)
8921     lt_prog_compiler_pic=
8922     ;;
8923   *)
8924     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8925     ;;
8926 esac
8927
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8929 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8930 if ${lt_cv_prog_compiler_pic+:} false; then :
8931   $as_echo_n "(cached) " >&6
8932 else
8933   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8934 fi
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8936 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8937 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8938
8939 #
8940 # Check to make sure the PIC flag actually works.
8941 #
8942 if test -n "$lt_prog_compiler_pic"; then
8943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8944 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8945 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8946   $as_echo_n "(cached) " >&6
8947 else
8948   lt_cv_prog_compiler_pic_works=no
8949    ac_outfile=conftest.$ac_objext
8950    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8951    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8952    # Insert the option either (1) after the last *FLAGS variable, or
8953    # (2) before a word containing "conftest.", or (3) at the end.
8954    # Note that $ac_compile itself does not contain backslashes and begins
8955    # with a dollar sign (not a hyphen), so the echo should work correctly.
8956    # The option is referenced via a variable to avoid confusing sed.
8957    lt_compile=`echo "$ac_compile" | $SED \
8958    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8959    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8960    -e 's:$: $lt_compiler_flag:'`
8961    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8962    (eval "$lt_compile" 2>conftest.err)
8963    ac_status=$?
8964    cat conftest.err >&5
8965    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966    if (exit $ac_status) && test -s "$ac_outfile"; then
8967      # The compiler can only warn and ignore the option if not recognized
8968      # So say no if there are warnings other than the usual output.
8969      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8970      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8971      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8972        lt_cv_prog_compiler_pic_works=yes
8973      fi
8974    fi
8975    $RM conftest*
8976
8977 fi
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8979 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8980
8981 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8982     case $lt_prog_compiler_pic in
8983      "" | " "*) ;;
8984      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8985      esac
8986 else
8987     lt_prog_compiler_pic=
8988      lt_prog_compiler_can_build_shared=no
8989 fi
8990
8991 fi
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003 #
9004 # Check to make sure the static flag actually works.
9005 #
9006 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9008 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9009 if ${lt_cv_prog_compiler_static_works+:} false; then :
9010   $as_echo_n "(cached) " >&6
9011 else
9012   lt_cv_prog_compiler_static_works=no
9013    save_LDFLAGS="$LDFLAGS"
9014    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9015    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9016    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9017      # The linker can only warn and ignore the option if not recognized
9018      # So say no if there are warnings
9019      if test -s conftest.err; then
9020        # Append any errors to the config.log.
9021        cat conftest.err 1>&5
9022        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9023        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9024        if diff conftest.exp conftest.er2 >/dev/null; then
9025          lt_cv_prog_compiler_static_works=yes
9026        fi
9027      else
9028        lt_cv_prog_compiler_static_works=yes
9029      fi
9030    fi
9031    $RM -r conftest*
9032    LDFLAGS="$save_LDFLAGS"
9033
9034 fi
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9036 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9037
9038 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9039     :
9040 else
9041     lt_prog_compiler_static=
9042 fi
9043
9044
9045
9046
9047
9048
9049
9050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9051 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9052 if ${lt_cv_prog_compiler_c_o+:} false; then :
9053   $as_echo_n "(cached) " >&6
9054 else
9055   lt_cv_prog_compiler_c_o=no
9056    $RM -r conftest 2>/dev/null
9057    mkdir conftest
9058    cd conftest
9059    mkdir out
9060    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9061
9062    lt_compiler_flag="-o out/conftest2.$ac_objext"
9063    # Insert the option either (1) after the last *FLAGS variable, or
9064    # (2) before a word containing "conftest.", or (3) at the end.
9065    # Note that $ac_compile itself does not contain backslashes and begins
9066    # with a dollar sign (not a hyphen), so the echo should work correctly.
9067    lt_compile=`echo "$ac_compile" | $SED \
9068    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9070    -e 's:$: $lt_compiler_flag:'`
9071    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9072    (eval "$lt_compile" 2>out/conftest.err)
9073    ac_status=$?
9074    cat out/conftest.err >&5
9075    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9077    then
9078      # The compiler can only warn and ignore the option if not recognized
9079      # So say no if there are warnings
9080      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9081      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9082      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9083        lt_cv_prog_compiler_c_o=yes
9084      fi
9085    fi
9086    chmod u+w . 2>&5
9087    $RM conftest*
9088    # SGI C++ compiler will create directory out/ii_files/ for
9089    # template instantiation
9090    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9091    $RM out/* && rmdir out
9092    cd ..
9093    $RM -r conftest
9094    $RM conftest*
9095
9096 fi
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9098 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9099
9100
9101
9102
9103
9104
9105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9106 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9107 if ${lt_cv_prog_compiler_c_o+:} false; then :
9108   $as_echo_n "(cached) " >&6
9109 else
9110   lt_cv_prog_compiler_c_o=no
9111    $RM -r conftest 2>/dev/null
9112    mkdir conftest
9113    cd conftest
9114    mkdir out
9115    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9116
9117    lt_compiler_flag="-o out/conftest2.$ac_objext"
9118    # Insert the option either (1) after the last *FLAGS variable, or
9119    # (2) before a word containing "conftest.", or (3) at the end.
9120    # Note that $ac_compile itself does not contain backslashes and begins
9121    # with a dollar sign (not a hyphen), so the echo should work correctly.
9122    lt_compile=`echo "$ac_compile" | $SED \
9123    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9124    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9125    -e 's:$: $lt_compiler_flag:'`
9126    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9127    (eval "$lt_compile" 2>out/conftest.err)
9128    ac_status=$?
9129    cat out/conftest.err >&5
9130    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9132    then
9133      # The compiler can only warn and ignore the option if not recognized
9134      # So say no if there are warnings
9135      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9136      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9137      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9138        lt_cv_prog_compiler_c_o=yes
9139      fi
9140    fi
9141    chmod u+w . 2>&5
9142    $RM conftest*
9143    # SGI C++ compiler will create directory out/ii_files/ for
9144    # template instantiation
9145    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9146    $RM out/* && rmdir out
9147    cd ..
9148    $RM -r conftest
9149    $RM conftest*
9150
9151 fi
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9153 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9154
9155
9156
9157
9158 hard_links="nottested"
9159 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9160   # do not overwrite the value of need_locks provided by the user
9161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9162 $as_echo_n "checking if we can lock with hard links... " >&6; }
9163   hard_links=yes
9164   $RM conftest*
9165   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9166   touch conftest.a
9167   ln conftest.a conftest.b 2>&5 || hard_links=no
9168   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9170 $as_echo "$hard_links" >&6; }
9171   if test "$hard_links" = no; then
9172     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9173 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9174     need_locks=warn
9175   fi
9176 else
9177   need_locks=no
9178 fi
9179
9180
9181
9182
9183
9184
9185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9186 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9187
9188   runpath_var=
9189   allow_undefined_flag=
9190   always_export_symbols=no
9191   archive_cmds=
9192   archive_expsym_cmds=
9193   compiler_needs_object=no
9194   enable_shared_with_static_runtimes=no
9195   export_dynamic_flag_spec=
9196   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9197   hardcode_automatic=no
9198   hardcode_direct=no
9199   hardcode_direct_absolute=no
9200   hardcode_libdir_flag_spec=
9201   hardcode_libdir_separator=
9202   hardcode_minus_L=no
9203   hardcode_shlibpath_var=unsupported
9204   inherit_rpath=no
9205   link_all_deplibs=unknown
9206   module_cmds=
9207   module_expsym_cmds=
9208   old_archive_from_new_cmds=
9209   old_archive_from_expsyms_cmds=
9210   thread_safe_flag_spec=
9211   whole_archive_flag_spec=
9212   # include_expsyms should be a list of space-separated symbols to be *always*
9213   # included in the symbol list
9214   include_expsyms=
9215   # exclude_expsyms can be an extended regexp of symbols to exclude
9216   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9217   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9218   # as well as any symbol that contains `d'.
9219   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9220   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9221   # platforms (ab)use it in PIC code, but their linkers get confused if
9222   # the symbol is explicitly referenced.  Since portable code cannot
9223   # rely on this symbol name, it's probably fine to never include it in
9224   # preloaded symbol tables.
9225   # Exclude shared library initialization/finalization symbols.
9226   extract_expsyms_cmds=
9227
9228   case $host_os in
9229   cygwin* | mingw* | pw32* | cegcc*)
9230     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9231     # When not using gcc, we currently assume that we are using
9232     # Microsoft Visual C++.
9233     if test "$GCC" != yes; then
9234       with_gnu_ld=no
9235     fi
9236     ;;
9237   interix*)
9238     # we just hope/assume this is gcc and not c89 (= MSVC++)
9239     with_gnu_ld=yes
9240     ;;
9241   openbsd*)
9242     with_gnu_ld=no
9243     ;;
9244   esac
9245
9246   ld_shlibs=yes
9247
9248   # On some targets, GNU ld is compatible enough with the native linker
9249   # that we're better off using the native interface for both.
9250   lt_use_gnu_ld_interface=no
9251   if test "$with_gnu_ld" = yes; then
9252     case $host_os in
9253       aix*)
9254         # The AIX port of GNU ld has always aspired to compatibility
9255         # with the native linker.  However, as the warning in the GNU ld
9256         # block says, versions before 2.19.5* couldn't really create working
9257         # shared libraries, regardless of the interface used.
9258         case `$LD -v 2>&1` in
9259           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9260           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9261           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9262           *)
9263             lt_use_gnu_ld_interface=yes
9264             ;;
9265         esac
9266         ;;
9267       *)
9268         lt_use_gnu_ld_interface=yes
9269         ;;
9270     esac
9271   fi
9272
9273   if test "$lt_use_gnu_ld_interface" = yes; then
9274     # If archive_cmds runs LD, not CC, wlarc should be empty
9275     wlarc='${wl}'
9276
9277     # Set some defaults for GNU ld with shared library support. These
9278     # are reset later if shared libraries are not supported. Putting them
9279     # here allows them to be overridden if necessary.
9280     runpath_var=LD_RUN_PATH
9281     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9282     export_dynamic_flag_spec='${wl}--export-dynamic'
9283     # ancient GNU ld didn't support --whole-archive et. al.
9284     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9285       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9286     else
9287       whole_archive_flag_spec=
9288     fi
9289     supports_anon_versioning=no
9290     case `$LD -v 2>&1` in
9291       *GNU\ gold*) supports_anon_versioning=yes ;;
9292       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9293       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9294       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9295       *\ 2.11.*) ;; # other 2.11 versions
9296       *) supports_anon_versioning=yes ;;
9297     esac
9298
9299     # See if GNU ld supports shared libraries.
9300     case $host_os in
9301     aix[3-9]*)
9302       # On AIX/PPC, the GNU linker is very broken
9303       if test "$host_cpu" != ia64; then
9304         ld_shlibs=no
9305         cat <<_LT_EOF 1>&2
9306
9307 *** Warning: the GNU linker, at least up to release 2.19, is reported
9308 *** to be unable to reliably create shared libraries on AIX.
9309 *** Therefore, libtool is disabling shared libraries support.  If you
9310 *** really care for shared libraries, you may want to install binutils
9311 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9312 *** You will then need to restart the configuration process.
9313
9314 _LT_EOF
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     beos*)
9334       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9335         allow_undefined_flag=unsupported
9336         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9337         # support --undefined.  This deserves some investigation.  FIXME
9338         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9339       else
9340         ld_shlibs=no
9341       fi
9342       ;;
9343
9344     cygwin* | mingw* | pw32* | cegcc*)
9345       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9346       # as there is no search path for DLLs.
9347       hardcode_libdir_flag_spec='-L$libdir'
9348       export_dynamic_flag_spec='${wl}--export-all-symbols'
9349       allow_undefined_flag=unsupported
9350       always_export_symbols=no
9351       enable_shared_with_static_runtimes=yes
9352       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'
9353       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9354
9355       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9356         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9357         # If the export-symbols file already is a .def file (1st line
9358         # is EXPORTS), use it as is; otherwise, prepend...
9359         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9360           cp $export_symbols $output_objdir/$soname.def;
9361         else
9362           echo EXPORTS > $output_objdir/$soname.def;
9363           cat $export_symbols >> $output_objdir/$soname.def;
9364         fi~
9365         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9366       else
9367         ld_shlibs=no
9368       fi
9369       ;;
9370
9371     haiku*)
9372       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9373       link_all_deplibs=yes
9374       ;;
9375
9376     interix[3-9]*)
9377       hardcode_direct=no
9378       hardcode_shlibpath_var=no
9379       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9380       export_dynamic_flag_spec='${wl}-E'
9381       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9382       # Instead, shared libraries are loaded at an image base (0x10000000 by
9383       # default) and relocated if they conflict, which is a slow very memory
9384       # consuming and fragmenting process.  To avoid this, we pick a random,
9385       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9386       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9387       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9388       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'
9389       ;;
9390
9391     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9392       tmp_diet=no
9393       if test "$host_os" = linux-dietlibc; then
9394         case $cc_basename in
9395           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9396         esac
9397       fi
9398       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9399          && test "$tmp_diet" = no
9400       then
9401         tmp_addflag=' $pic_flag'
9402         tmp_sharedflag='-shared'
9403         case $cc_basename,$host_cpu in
9404         pgcc*)                          # Portland Group C compiler
9405           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'
9406           tmp_addflag=' $pic_flag'
9407           ;;
9408         pgf77* | pgf90* | pgf95* | pgfortran*)
9409                                         # Portland Group f77 and f90 compilers
9410           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'
9411           tmp_addflag=' $pic_flag -Mnomain' ;;
9412         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9413           tmp_addflag=' -i_dynamic' ;;
9414         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9415           tmp_addflag=' -i_dynamic -nofor_main' ;;
9416         ifc* | ifort*)                  # Intel Fortran compiler
9417           tmp_addflag=' -nofor_main' ;;
9418         lf95*)                          # Lahey Fortran 8.1
9419           whole_archive_flag_spec=
9420           tmp_sharedflag='--shared' ;;
9421         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9422           tmp_sharedflag='-qmkshrobj'
9423           tmp_addflag= ;;
9424         nvcc*)  # Cuda Compiler Driver 2.2
9425           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'
9426           compiler_needs_object=yes
9427           ;;
9428         esac
9429         case `$CC -V 2>&1 | sed 5q` in
9430         *Sun\ C*)                       # Sun C 5.9
9431           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'
9432           compiler_needs_object=yes
9433           tmp_sharedflag='-G' ;;
9434         *Sun\ F*)                       # Sun Fortran 8.3
9435           tmp_sharedflag='-G' ;;
9436         esac
9437         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9438
9439         if test "x$supports_anon_versioning" = xyes; then
9440           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9441             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9442             echo "local: *; };" >> $output_objdir/$libname.ver~
9443             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9444         fi
9445
9446         case $cc_basename in
9447         xlf* | bgf* | bgxlf* | mpixlf*)
9448           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9449           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9450           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9451           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9452           if test "x$supports_anon_versioning" = xyes; then
9453             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9454               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9455               echo "local: *; };" >> $output_objdir/$libname.ver~
9456               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9457           fi
9458           ;;
9459         esac
9460       else
9461         ld_shlibs=no
9462       fi
9463       ;;
9464
9465     netbsd*)
9466       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9467         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9468         wlarc=
9469       else
9470         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9471         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9472       fi
9473       ;;
9474
9475     solaris*)
9476       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9477         ld_shlibs=no
9478         cat <<_LT_EOF 1>&2
9479
9480 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9481 *** create shared libraries on Solaris systems.  Therefore, libtool
9482 *** is disabling shared libraries support.  We urge you to upgrade GNU
9483 *** binutils to release 2.9.1 or newer.  Another option is to modify
9484 *** your PATH or compiler configuration so that the native linker is
9485 *** used, and then restart.
9486
9487 _LT_EOF
9488       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9489         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9490         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9491       else
9492         ld_shlibs=no
9493       fi
9494       ;;
9495
9496     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9497       case `$LD -v 2>&1` in
9498         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9499         ld_shlibs=no
9500         cat <<_LT_EOF 1>&2
9501
9502 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9503 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9504 *** is disabling shared libraries support.  We urge you to upgrade GNU
9505 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9506 *** your PATH or compiler configuration so that the native linker is
9507 *** used, and then restart.
9508
9509 _LT_EOF
9510         ;;
9511         *)
9512           # For security reasons, it is highly recommended that you always
9513           # use absolute paths for naming shared libraries, and exclude the
9514           # DT_RUNPATH tag from executables and libraries.  But doing so
9515           # requires that you compile everything twice, which is a pain.
9516           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9517             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9518             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9519             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9520           else
9521             ld_shlibs=no
9522           fi
9523         ;;
9524       esac
9525       ;;
9526
9527     sunos4*)
9528       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9529       wlarc=
9530       hardcode_direct=yes
9531       hardcode_shlibpath_var=no
9532       ;;
9533
9534     *)
9535       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9536         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9537         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9538       else
9539         ld_shlibs=no
9540       fi
9541       ;;
9542     esac
9543
9544     if test "$ld_shlibs" = no; then
9545       runpath_var=
9546       hardcode_libdir_flag_spec=
9547       export_dynamic_flag_spec=
9548       whole_archive_flag_spec=
9549     fi
9550   else
9551     # PORTME fill in a description of your system's linker (not GNU ld)
9552     case $host_os in
9553     aix3*)
9554       allow_undefined_flag=unsupported
9555       always_export_symbols=yes
9556       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'
9557       # Note: this linker hardcodes the directories in LIBPATH if there
9558       # are no directories specified by -L.
9559       hardcode_minus_L=yes
9560       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9561         # Neither direct hardcoding nor static linking is supported with a
9562         # broken collect2.
9563         hardcode_direct=unsupported
9564       fi
9565       ;;
9566
9567     aix[4-9]*)
9568       if test "$host_cpu" = ia64; then
9569         # On IA64, the linker does run time linking by default, so we don't
9570         # have to do anything special.
9571         aix_use_runtimelinking=no
9572         exp_sym_flag='-Bexport'
9573         no_entry_flag=""
9574       else
9575         # If we're using GNU nm, then we don't want the "-C" option.
9576         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9577         # Also, AIX nm treats weak defined symbols like other global
9578         # defined symbols, whereas GNU nm marks them as "W".
9579         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9580           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'
9581         else
9582           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'
9583         fi
9584         aix_use_runtimelinking=no
9585
9586         # Test if we are trying to use run time linking or normal
9587         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9588         # need to do runtime linking.
9589         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9590           for ld_flag in $LDFLAGS; do
9591           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9592             aix_use_runtimelinking=yes
9593             break
9594           fi
9595           done
9596           ;;
9597         esac
9598
9599         exp_sym_flag='-bexport'
9600         no_entry_flag='-bnoentry'
9601       fi
9602
9603       # When large executables or shared objects are built, AIX ld can
9604       # have problems creating the table of contents.  If linking a library
9605       # or program results in "error TOC overflow" add -mminimal-toc to
9606       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9607       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9608
9609       archive_cmds=''
9610       hardcode_direct=yes
9611       hardcode_direct_absolute=yes
9612       hardcode_libdir_separator=':'
9613       link_all_deplibs=yes
9614       file_list_spec='${wl}-f,'
9615
9616       if test "$GCC" = yes; then
9617         case $host_os in aix4.[012]|aix4.[012].*)
9618         # We only want to do this on AIX 4.2 and lower, the check
9619         # below for broken collect2 doesn't work under 4.3+
9620           collect2name=`${CC} -print-prog-name=collect2`
9621           if test -f "$collect2name" &&
9622            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9623           then
9624           # We have reworked collect2
9625           :
9626           else
9627           # We have old collect2
9628           hardcode_direct=unsupported
9629           # It fails to find uninstalled libraries when the uninstalled
9630           # path is not listed in the libpath.  Setting hardcode_minus_L
9631           # to unsupported forces relinking
9632           hardcode_minus_L=yes
9633           hardcode_libdir_flag_spec='-L$libdir'
9634           hardcode_libdir_separator=
9635           fi
9636           ;;
9637         esac
9638         shared_flag='-shared'
9639         if test "$aix_use_runtimelinking" = yes; then
9640           shared_flag="$shared_flag "'${wl}-G'
9641         fi
9642       else
9643         # not using gcc
9644         if test "$host_cpu" = ia64; then
9645         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9646         # chokes on -Wl,-G. The following line is correct:
9647           shared_flag='-G'
9648         else
9649           if test "$aix_use_runtimelinking" = yes; then
9650             shared_flag='${wl}-G'
9651           else
9652             shared_flag='${wl}-bM:SRE'
9653           fi
9654         fi
9655       fi
9656
9657       export_dynamic_flag_spec='${wl}-bexpall'
9658       # It seems that -bexpall does not export symbols beginning with
9659       # underscore (_), so it is better to generate a list of symbols to export.
9660       always_export_symbols=yes
9661       if test "$aix_use_runtimelinking" = yes; then
9662         # Warning - without using the other runtime loading flags (-brtl),
9663         # -berok will link without error, but may produce a broken library.
9664         allow_undefined_flag='-berok'
9665         # Determine the default libpath from the value encoded in an
9666         # empty executable.
9667         if test "${lt_cv_aix_libpath+set}" = set; then
9668   aix_libpath=$lt_cv_aix_libpath
9669 else
9670   if ${lt_cv_aix_libpath_+:} false; then :
9671   $as_echo_n "(cached) " >&6
9672 else
9673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h.  */
9675
9676 int
9677 main ()
9678 {
9679
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 if ac_fn_c_try_link "$LINENO"; then :
9685
9686   lt_aix_libpath_sed='
9687       /Import File Strings/,/^$/ {
9688           /^0/ {
9689               s/^0  *\([^ ]*\) *$/\1/
9690               p
9691           }
9692       }'
9693   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9694   # Check for a 64-bit object if we didn't find anything.
9695   if test -z "$lt_cv_aix_libpath_"; then
9696     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9697   fi
9698 fi
9699 rm -f core conftest.err conftest.$ac_objext \
9700     conftest$ac_exeext conftest.$ac_ext
9701   if test -z "$lt_cv_aix_libpath_"; then
9702     lt_cv_aix_libpath_="/usr/lib:/lib"
9703   fi
9704
9705 fi
9706
9707   aix_libpath=$lt_cv_aix_libpath_
9708 fi
9709
9710         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9711         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"
9712       else
9713         if test "$host_cpu" = ia64; then
9714           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9715           allow_undefined_flag="-z nodefs"
9716           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"
9717         else
9718          # Determine the default libpath from the value encoded in an
9719          # empty executable.
9720          if test "${lt_cv_aix_libpath+set}" = set; then
9721   aix_libpath=$lt_cv_aix_libpath
9722 else
9723   if ${lt_cv_aix_libpath_+:} false; then :
9724   $as_echo_n "(cached) " >&6
9725 else
9726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h.  */
9728
9729 int
9730 main ()
9731 {
9732
9733   ;
9734   return 0;
9735 }
9736 _ACEOF
9737 if ac_fn_c_try_link "$LINENO"; then :
9738
9739   lt_aix_libpath_sed='
9740       /Import File Strings/,/^$/ {
9741           /^0/ {
9742               s/^0  *\([^ ]*\) *$/\1/
9743               p
9744           }
9745       }'
9746   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9747   # Check for a 64-bit object if we didn't find anything.
9748   if test -z "$lt_cv_aix_libpath_"; then
9749     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9750   fi
9751 fi
9752 rm -f core conftest.err conftest.$ac_objext \
9753     conftest$ac_exeext conftest.$ac_ext
9754   if test -z "$lt_cv_aix_libpath_"; then
9755     lt_cv_aix_libpath_="/usr/lib:/lib"
9756   fi
9757
9758 fi
9759
9760   aix_libpath=$lt_cv_aix_libpath_
9761 fi
9762
9763          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9764           # Warning - without using the other run time loading flags,
9765           # -berok will link without error, but may produce a broken library.
9766           no_undefined_flag=' ${wl}-bernotok'
9767           allow_undefined_flag=' ${wl}-berok'
9768           if test "$with_gnu_ld" = yes; then
9769             # We only use this code for GNU lds that support --whole-archive.
9770             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9771           else
9772             # Exported symbols can be pulled into shared objects from archives
9773             whole_archive_flag_spec='$convenience'
9774           fi
9775           archive_cmds_need_lc=yes
9776           # This is similar to how AIX traditionally builds its shared libraries.
9777           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'
9778         fi
9779       fi
9780       ;;
9781
9782     amigaos*)
9783       case $host_cpu in
9784       powerpc)
9785             # see comment about AmigaOS4 .so support
9786             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9787             archive_expsym_cmds=''
9788         ;;
9789       m68k)
9790             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)'
9791             hardcode_libdir_flag_spec='-L$libdir'
9792             hardcode_minus_L=yes
9793         ;;
9794       esac
9795       ;;
9796
9797     bsdi[45]*)
9798       export_dynamic_flag_spec=-rdynamic
9799       ;;
9800
9801     cygwin* | mingw* | pw32* | cegcc*)
9802       # When not using gcc, we currently assume that we are using
9803       # Microsoft Visual C++.
9804       # hardcode_libdir_flag_spec is actually meaningless, as there is
9805       # no search path for DLLs.
9806       case $cc_basename in
9807       cl*)
9808         # Native MSVC
9809         hardcode_libdir_flag_spec=' '
9810         allow_undefined_flag=unsupported
9811         always_export_symbols=yes
9812         file_list_spec='@'
9813         # Tell ltmain to make .lib files, not .a files.
9814         libext=lib
9815         # Tell ltmain to make .dll files, not .so files.
9816         shrext_cmds=".dll"
9817         # FIXME: Setting linknames here is a bad hack.
9818         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9819         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9820             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9821           else
9822             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9823           fi~
9824           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9825           linknames='
9826         # The linker will not automatically build a static lib if we build a DLL.
9827         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9828         enable_shared_with_static_runtimes=yes
9829         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9830         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9831         # Don't use ranlib
9832         old_postinstall_cmds='chmod 644 $oldlib'
9833         postlink_cmds='lt_outputfile="@OUTPUT@"~
9834           lt_tool_outputfile="@TOOL_OUTPUT@"~
9835           case $lt_outputfile in
9836             *.exe|*.EXE) ;;
9837             *)
9838               lt_outputfile="$lt_outputfile.exe"
9839               lt_tool_outputfile="$lt_tool_outputfile.exe"
9840               ;;
9841           esac~
9842           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9843             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9844             $RM "$lt_outputfile.manifest";
9845           fi'
9846         ;;
9847       *)
9848         # Assume MSVC wrapper
9849         hardcode_libdir_flag_spec=' '
9850         allow_undefined_flag=unsupported
9851         # Tell ltmain to make .lib files, not .a files.
9852         libext=lib
9853         # Tell ltmain to make .dll files, not .so files.
9854         shrext_cmds=".dll"
9855         # FIXME: Setting linknames here is a bad hack.
9856         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9857         # The linker will automatically build a .lib file if we build a DLL.
9858         old_archive_from_new_cmds='true'
9859         # FIXME: Should let the user specify the lib program.
9860         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9861         enable_shared_with_static_runtimes=yes
9862         ;;
9863       esac
9864       ;;
9865
9866     darwin* | rhapsody*)
9867
9868
9869   archive_cmds_need_lc=no
9870   hardcode_direct=no
9871   hardcode_automatic=yes
9872   hardcode_shlibpath_var=unsupported
9873   if test "$lt_cv_ld_force_load" = "yes"; then
9874     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\"`'
9875
9876   else
9877     whole_archive_flag_spec=''
9878   fi
9879   link_all_deplibs=yes
9880   allow_undefined_flag="$_lt_dar_allow_undefined"
9881   case $cc_basename in
9882      ifort*) _lt_dar_can_shared=yes ;;
9883      *) _lt_dar_can_shared=$GCC ;;
9884   esac
9885   if test "$_lt_dar_can_shared" = "yes"; then
9886     output_verbose_link_cmd=func_echo_all
9887     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9888     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9889     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}"
9890     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}"
9891
9892   else
9893   ld_shlibs=no
9894   fi
9895
9896       ;;
9897
9898     dgux*)
9899       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9900       hardcode_libdir_flag_spec='-L$libdir'
9901       hardcode_shlibpath_var=no
9902       ;;
9903
9904     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9905     # support.  Future versions do this automatically, but an explicit c++rt0.o
9906     # does not break anything, and helps significantly (at the cost of a little
9907     # extra space).
9908     freebsd2.2*)
9909       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9910       hardcode_libdir_flag_spec='-R$libdir'
9911       hardcode_direct=yes
9912       hardcode_shlibpath_var=no
9913       ;;
9914
9915     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9916     freebsd2.*)
9917       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9918       hardcode_direct=yes
9919       hardcode_minus_L=yes
9920       hardcode_shlibpath_var=no
9921       ;;
9922
9923     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9924     freebsd* | dragonfly*)
9925       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9926       hardcode_libdir_flag_spec='-R$libdir'
9927       hardcode_direct=yes
9928       hardcode_shlibpath_var=no
9929       ;;
9930
9931     hpux9*)
9932       if test "$GCC" = yes; then
9933         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'
9934       else
9935         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'
9936       fi
9937       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9938       hardcode_libdir_separator=:
9939       hardcode_direct=yes
9940
9941       # hardcode_minus_L: Not really in the search PATH,
9942       # but as the default location of the library.
9943       hardcode_minus_L=yes
9944       export_dynamic_flag_spec='${wl}-E'
9945       ;;
9946
9947     hpux10*)
9948       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9949         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9950       else
9951         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9952       fi
9953       if test "$with_gnu_ld" = no; then
9954         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9955         hardcode_libdir_separator=:
9956         hardcode_direct=yes
9957         hardcode_direct_absolute=yes
9958         export_dynamic_flag_spec='${wl}-E'
9959         # hardcode_minus_L: Not really in the search PATH,
9960         # but as the default location of the library.
9961         hardcode_minus_L=yes
9962       fi
9963       ;;
9964
9965     hpux11*)
9966       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9967         case $host_cpu in
9968         hppa*64*)
9969           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9970           ;;
9971         ia64*)
9972           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9973           ;;
9974         *)
9975           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9976           ;;
9977         esac
9978       else
9979         case $host_cpu in
9980         hppa*64*)
9981           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9982           ;;
9983         ia64*)
9984           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9985           ;;
9986         *)
9987
9988           # Older versions of the 11.00 compiler do not understand -b yet
9989           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9990           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9991 $as_echo_n "checking if $CC understands -b... " >&6; }
9992 if ${lt_cv_prog_compiler__b+:} false; then :
9993   $as_echo_n "(cached) " >&6
9994 else
9995   lt_cv_prog_compiler__b=no
9996    save_LDFLAGS="$LDFLAGS"
9997    LDFLAGS="$LDFLAGS -b"
9998    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9999    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10000      # The linker can only warn and ignore the option if not recognized
10001      # So say no if there are warnings
10002      if test -s conftest.err; then
10003        # Append any errors to the config.log.
10004        cat conftest.err 1>&5
10005        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10006        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10007        if diff conftest.exp conftest.er2 >/dev/null; then
10008          lt_cv_prog_compiler__b=yes
10009        fi
10010      else
10011        lt_cv_prog_compiler__b=yes
10012      fi
10013    fi
10014    $RM -r conftest*
10015    LDFLAGS="$save_LDFLAGS"
10016
10017 fi
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10019 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10020
10021 if test x"$lt_cv_prog_compiler__b" = xyes; then
10022     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10023 else
10024     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10025 fi
10026
10027           ;;
10028         esac
10029       fi
10030       if test "$with_gnu_ld" = no; then
10031         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10032         hardcode_libdir_separator=:
10033
10034         case $host_cpu in
10035         hppa*64*|ia64*)
10036           hardcode_direct=no
10037           hardcode_shlibpath_var=no
10038           ;;
10039         *)
10040           hardcode_direct=yes
10041           hardcode_direct_absolute=yes
10042           export_dynamic_flag_spec='${wl}-E'
10043
10044           # hardcode_minus_L: Not really in the search PATH,
10045           # but as the default location of the library.
10046           hardcode_minus_L=yes
10047           ;;
10048         esac
10049       fi
10050       ;;
10051
10052     irix5* | irix6* | nonstopux*)
10053       if test "$GCC" = yes; then
10054         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'
10055         # Try to use the -exported_symbol ld option, if it does not
10056         # work, assume that -exports_file does not work either and
10057         # implicitly export all symbols.
10058         # This should be the same for all languages, so no per-tag cache variable.
10059         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10060 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10061 if ${lt_cv_irix_exported_symbol+:} false; then :
10062   $as_echo_n "(cached) " >&6
10063 else
10064   save_LDFLAGS="$LDFLAGS"
10065            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10066            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h.  */
10068 int foo (void) { return 0; }
10069 _ACEOF
10070 if ac_fn_c_try_link "$LINENO"; then :
10071   lt_cv_irix_exported_symbol=yes
10072 else
10073   lt_cv_irix_exported_symbol=no
10074 fi
10075 rm -f core conftest.err conftest.$ac_objext \
10076     conftest$ac_exeext conftest.$ac_ext
10077            LDFLAGS="$save_LDFLAGS"
10078 fi
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10080 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10081         if test "$lt_cv_irix_exported_symbol" = yes; then
10082           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'
10083         fi
10084       else
10085         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'
10086         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'
10087       fi
10088       archive_cmds_need_lc='no'
10089       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10090       hardcode_libdir_separator=:
10091       inherit_rpath=yes
10092       link_all_deplibs=yes
10093       ;;
10094
10095     netbsd*)
10096       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10097         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10098       else
10099         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10100       fi
10101       hardcode_libdir_flag_spec='-R$libdir'
10102       hardcode_direct=yes
10103       hardcode_shlibpath_var=no
10104       ;;
10105
10106     newsos6)
10107       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10108       hardcode_direct=yes
10109       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10110       hardcode_libdir_separator=:
10111       hardcode_shlibpath_var=no
10112       ;;
10113
10114     *nto* | *qnx*)
10115       ;;
10116
10117     openbsd*)
10118       if test -f /usr/libexec/ld.so; then
10119         hardcode_direct=yes
10120         hardcode_shlibpath_var=no
10121         hardcode_direct_absolute=yes
10122         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10123           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10124           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10125           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10126           export_dynamic_flag_spec='${wl}-E'
10127         else
10128           case $host_os in
10129            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10130              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10131              hardcode_libdir_flag_spec='-R$libdir'
10132              ;;
10133            *)
10134              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10135              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10136              ;;
10137           esac
10138         fi
10139       else
10140         ld_shlibs=no
10141       fi
10142       ;;
10143
10144     os2*)
10145       hardcode_libdir_flag_spec='-L$libdir'
10146       hardcode_minus_L=yes
10147       allow_undefined_flag=unsupported
10148       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'
10149       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10150       ;;
10151
10152     osf3*)
10153       if test "$GCC" = yes; then
10154         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10155         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'
10156       else
10157         allow_undefined_flag=' -expect_unresolved \*'
10158         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'
10159       fi
10160       archive_cmds_need_lc='no'
10161       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10162       hardcode_libdir_separator=:
10163       ;;
10164
10165     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10166       if test "$GCC" = yes; then
10167         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10168         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'
10169         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10170       else
10171         allow_undefined_flag=' -expect_unresolved \*'
10172         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'
10173         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~
10174         $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'
10175
10176         # Both c and cxx compiler support -rpath directly
10177         hardcode_libdir_flag_spec='-rpath $libdir'
10178       fi
10179       archive_cmds_need_lc='no'
10180       hardcode_libdir_separator=:
10181       ;;
10182
10183     solaris*)
10184       no_undefined_flag=' -z defs'
10185       if test "$GCC" = yes; then
10186         wlarc='${wl}'
10187         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10188         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10189           $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'
10190       else
10191         case `$CC -V 2>&1` in
10192         *"Compilers 5.0"*)
10193           wlarc=''
10194           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10196           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10197           ;;
10198         *)
10199           wlarc='${wl}'
10200           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10201           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10202           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10203           ;;
10204         esac
10205       fi
10206       hardcode_libdir_flag_spec='-R$libdir'
10207       hardcode_shlibpath_var=no
10208       case $host_os in
10209       solaris2.[0-5] | solaris2.[0-5].*) ;;
10210       *)
10211         # The compiler driver will combine and reorder linker options,
10212         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10213         # but is careful enough not to reorder.
10214         # Supported since Solaris 2.6 (maybe 2.5.1?)
10215         if test "$GCC" = yes; then
10216           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10217         else
10218           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10219         fi
10220         ;;
10221       esac
10222       link_all_deplibs=yes
10223       ;;
10224
10225     sunos4*)
10226       if test "x$host_vendor" = xsequent; then
10227         # Use $CC to link under sequent, because it throws in some extra .o
10228         # files that make .init and .fini sections work.
10229         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10230       else
10231         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10232       fi
10233       hardcode_libdir_flag_spec='-L$libdir'
10234       hardcode_direct=yes
10235       hardcode_minus_L=yes
10236       hardcode_shlibpath_var=no
10237       ;;
10238
10239     sysv4)
10240       case $host_vendor in
10241         sni)
10242           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10243           hardcode_direct=yes # is this really true???
10244         ;;
10245         siemens)
10246           ## LD is ld it makes a PLAMLIB
10247           ## CC just makes a GrossModule.
10248           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10249           reload_cmds='$CC -r -o $output$reload_objs'
10250           hardcode_direct=no
10251         ;;
10252         motorola)
10253           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10255         ;;
10256       esac
10257       runpath_var='LD_RUN_PATH'
10258       hardcode_shlibpath_var=no
10259       ;;
10260
10261     sysv4.3*)
10262       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10263       hardcode_shlibpath_var=no
10264       export_dynamic_flag_spec='-Bexport'
10265       ;;
10266
10267     sysv4*MP*)
10268       if test -d /usr/nec; then
10269         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270         hardcode_shlibpath_var=no
10271         runpath_var=LD_RUN_PATH
10272         hardcode_runpath_var=yes
10273         ld_shlibs=yes
10274       fi
10275       ;;
10276
10277     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10278       no_undefined_flag='${wl}-z,text'
10279       archive_cmds_need_lc=no
10280       hardcode_shlibpath_var=no
10281       runpath_var='LD_RUN_PATH'
10282
10283       if test "$GCC" = yes; then
10284         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10285         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10286       else
10287         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10288         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289       fi
10290       ;;
10291
10292     sysv5* | sco3.2v5* | sco5v6*)
10293       # Note: We can NOT use -z defs as we might desire, because we do not
10294       # link with -lc, and that would cause any symbols used from libc to
10295       # always be unresolved, which means just about no library would
10296       # ever link correctly.  If we're not using GNU ld we use -z text
10297       # though, which does catch some bad symbols but isn't as heavy-handed
10298       # as -z defs.
10299       no_undefined_flag='${wl}-z,text'
10300       allow_undefined_flag='${wl}-z,nodefs'
10301       archive_cmds_need_lc=no
10302       hardcode_shlibpath_var=no
10303       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10304       hardcode_libdir_separator=':'
10305       link_all_deplibs=yes
10306       export_dynamic_flag_spec='${wl}-Bexport'
10307       runpath_var='LD_RUN_PATH'
10308
10309       if test "$GCC" = yes; then
10310         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10312       else
10313         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10315       fi
10316       ;;
10317
10318     uts4*)
10319       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10320       hardcode_libdir_flag_spec='-L$libdir'
10321       hardcode_shlibpath_var=no
10322       ;;
10323
10324     *)
10325       ld_shlibs=no
10326       ;;
10327     esac
10328
10329     if test x$host_vendor = xsni; then
10330       case $host in
10331       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10332         export_dynamic_flag_spec='${wl}-Blargedynsym'
10333         ;;
10334       esac
10335     fi
10336   fi
10337
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10339 $as_echo "$ld_shlibs" >&6; }
10340 test "$ld_shlibs" = no && can_build_shared=no
10341
10342 with_gnu_ld=$with_gnu_ld
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358 #
10359 # Do we need to explicitly link libc?
10360 #
10361 case "x$archive_cmds_need_lc" in
10362 x|xyes)
10363   # Assume -lc should be added
10364   archive_cmds_need_lc=yes
10365
10366   if test "$enable_shared" = yes && test "$GCC" = yes; then
10367     case $archive_cmds in
10368     *'~'*)
10369       # FIXME: we may have to deal with multi-command sequences.
10370       ;;
10371     '$CC '*)
10372       # Test whether the compiler implicitly links with -lc since on some
10373       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10374       # to ld, don't add -lc before -lgcc.
10375       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10376 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10377 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10378   $as_echo_n "(cached) " >&6
10379 else
10380   $RM conftest*
10381         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10382
10383         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10384   (eval $ac_compile) 2>&5
10385   ac_status=$?
10386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10387   test $ac_status = 0; } 2>conftest.err; then
10388           soname=conftest
10389           lib=conftest
10390           libobjs=conftest.$ac_objext
10391           deplibs=
10392           wl=$lt_prog_compiler_wl
10393           pic_flag=$lt_prog_compiler_pic
10394           compiler_flags=-v
10395           linker_flags=-v
10396           verstring=
10397           output_objdir=.
10398           libname=conftest
10399           lt_save_allow_undefined_flag=$allow_undefined_flag
10400           allow_undefined_flag=
10401           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10402   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10403   ac_status=$?
10404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10405   test $ac_status = 0; }
10406           then
10407             lt_cv_archive_cmds_need_lc=no
10408           else
10409             lt_cv_archive_cmds_need_lc=yes
10410           fi
10411           allow_undefined_flag=$lt_save_allow_undefined_flag
10412         else
10413           cat conftest.err 1>&5
10414         fi
10415         $RM conftest*
10416
10417 fi
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10419 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10420       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10421       ;;
10422     esac
10423   fi
10424   ;;
10425 esac
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10579 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10580
10581 if test "$GCC" = yes; then
10582   case $host_os in
10583     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10584     *) lt_awk_arg="/^libraries:/" ;;
10585   esac
10586   case $host_os in
10587     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10588     *) lt_sed_strip_eq="s,=/,/,g" ;;
10589   esac
10590   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10591   case $lt_search_path_spec in
10592   *\;*)
10593     # if the path contains ";" then we assume it to be the separator
10594     # otherwise default to the standard path separator (i.e. ":") - it is
10595     # assumed that no part of a normal pathname contains ";" but that should
10596     # okay in the real world where ";" in dirpaths is itself problematic.
10597     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10598     ;;
10599   *)
10600     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10601     ;;
10602   esac
10603   # Ok, now we have the path, separated by spaces, we can step through it
10604   # and add multilib dir if necessary.
10605   lt_tmp_lt_search_path_spec=
10606   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10607   for lt_sys_path in $lt_search_path_spec; do
10608     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10609       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10610     else
10611       test -d "$lt_sys_path" && \
10612         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10613     fi
10614   done
10615   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10616 BEGIN {RS=" "; FS="/|\n";} {
10617   lt_foo="";
10618   lt_count=0;
10619   for (lt_i = NF; lt_i > 0; lt_i--) {
10620     if ($lt_i != "" && $lt_i != ".") {
10621       if ($lt_i == "..") {
10622         lt_count++;
10623       } else {
10624         if (lt_count == 0) {
10625           lt_foo="/" $lt_i lt_foo;
10626         } else {
10627           lt_count--;
10628         }
10629       }
10630     }
10631   }
10632   if (lt_foo != "") { lt_freq[lt_foo]++; }
10633   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10634 }'`
10635   # AWK program above erroneously prepends '/' to C:/dos/paths
10636   # for these hosts.
10637   case $host_os in
10638     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10639       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10640   esac
10641   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10642 else
10643   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10644 fi
10645 library_names_spec=
10646 libname_spec='lib$name'
10647 soname_spec=
10648 shrext_cmds=".so"
10649 postinstall_cmds=
10650 postuninstall_cmds=
10651 finish_cmds=
10652 finish_eval=
10653 shlibpath_var=
10654 shlibpath_overrides_runpath=unknown
10655 version_type=none
10656 dynamic_linker="$host_os ld.so"
10657 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10658 need_lib_prefix=unknown
10659 hardcode_into_libs=no
10660
10661 # when you set need_version to no, make sure it does not cause -set_version
10662 # flags to be left without arguments
10663 need_version=unknown
10664
10665 case $host_os in
10666 aix3*)
10667   version_type=linux # correct to gnu/linux during the next big refactor
10668   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10669   shlibpath_var=LIBPATH
10670
10671   # AIX 3 has no versioning support, so we append a major version to the name.
10672   soname_spec='${libname}${release}${shared_ext}$major'
10673   ;;
10674
10675 aix[4-9]*)
10676   version_type=linux # correct to gnu/linux during the next big refactor
10677   need_lib_prefix=no
10678   need_version=no
10679   hardcode_into_libs=yes
10680   if test "$host_cpu" = ia64; then
10681     # AIX 5 supports IA64
10682     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10683     shlibpath_var=LD_LIBRARY_PATH
10684   else
10685     # With GCC up to 2.95.x, collect2 would create an import file
10686     # for dependence libraries.  The import file would start with
10687     # the line `#! .'.  This would cause the generated library to
10688     # depend on `.', always an invalid library.  This was fixed in
10689     # development snapshots of GCC prior to 3.0.
10690     case $host_os in
10691       aix4 | aix4.[01] | aix4.[01].*)
10692       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10693            echo ' yes '
10694            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10695         :
10696       else
10697         can_build_shared=no
10698       fi
10699       ;;
10700     esac
10701     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10702     # soname into executable. Probably we can add versioning support to
10703     # collect2, so additional links can be useful in future.
10704     if test "$aix_use_runtimelinking" = yes; then
10705       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10706       # instead of lib<name>.a to let people know that these are not
10707       # typical AIX shared libraries.
10708       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709     else
10710       # We preserve .a as extension for shared libraries through AIX4.2
10711       # and later when we are not doing run time linking.
10712       library_names_spec='${libname}${release}.a $libname.a'
10713       soname_spec='${libname}${release}${shared_ext}$major'
10714     fi
10715     shlibpath_var=LIBPATH
10716   fi
10717   ;;
10718
10719 amigaos*)
10720   case $host_cpu in
10721   powerpc)
10722     # Since July 2007 AmigaOS4 officially supports .so libraries.
10723     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10724     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725     ;;
10726   m68k)
10727     library_names_spec='$libname.ixlibrary $libname.a'
10728     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10729     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'
10730     ;;
10731   esac
10732   ;;
10733
10734 beos*)
10735   library_names_spec='${libname}${shared_ext}'
10736   dynamic_linker="$host_os ld.so"
10737   shlibpath_var=LIBRARY_PATH
10738   ;;
10739
10740 bsdi[45]*)
10741   version_type=linux # correct to gnu/linux during the next big refactor
10742   need_version=no
10743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744   soname_spec='${libname}${release}${shared_ext}$major'
10745   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10746   shlibpath_var=LD_LIBRARY_PATH
10747   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10748   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10749   # the default ld.so.conf also contains /usr/contrib/lib and
10750   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10751   # libtool to hard-code these into programs
10752   ;;
10753
10754 cygwin* | mingw* | pw32* | cegcc*)
10755   version_type=windows
10756   shrext_cmds=".dll"
10757   need_version=no
10758   need_lib_prefix=no
10759
10760   case $GCC,$cc_basename in
10761   yes,*)
10762     # gcc
10763     library_names_spec='$libname.dll.a'
10764     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10765     postinstall_cmds='base_file=`basename \${file}`~
10766       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10767       dldir=$destdir/`dirname \$dlpath`~
10768       test -d \$dldir || mkdir -p \$dldir~
10769       $install_prog $dir/$dlname \$dldir/$dlname~
10770       chmod a+x \$dldir/$dlname~
10771       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10772         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10773       fi'
10774     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10775       dlpath=$dir/\$dldll~
10776        $RM \$dlpath'
10777     shlibpath_overrides_runpath=yes
10778
10779     case $host_os in
10780     cygwin*)
10781       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10782       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10783
10784       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10785       ;;
10786     mingw* | cegcc*)
10787       # MinGW DLLs use traditional 'lib' prefix
10788       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10789       ;;
10790     pw32*)
10791       # pw32 DLLs use 'pw' prefix rather than 'lib'
10792       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10793       ;;
10794     esac
10795     dynamic_linker='Win32 ld.exe'
10796     ;;
10797
10798   *,cl*)
10799     # Native MSVC
10800     libname_spec='$name'
10801     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10802     library_names_spec='${libname}.dll.lib'
10803
10804     case $build_os in
10805     mingw*)
10806       sys_lib_search_path_spec=
10807       lt_save_ifs=$IFS
10808       IFS=';'
10809       for lt_path in $LIB
10810       do
10811         IFS=$lt_save_ifs
10812         # Let DOS variable expansion print the short 8.3 style file name.
10813         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10814         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10815       done
10816       IFS=$lt_save_ifs
10817       # Convert to MSYS style.
10818       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10819       ;;
10820     cygwin*)
10821       # Convert to unix form, then to dos form, then back to unix form
10822       # but this time dos style (no spaces!) so that the unix form looks
10823       # like /cygdrive/c/PROGRA~1:/cygdr...
10824       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10825       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10826       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10827       ;;
10828     *)
10829       sys_lib_search_path_spec="$LIB"
10830       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10831         # It is most probably a Windows format PATH.
10832         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10833       else
10834         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10835       fi
10836       # FIXME: find the short name or the path components, as spaces are
10837       # common. (e.g. "Program Files" -> "PROGRA~1")
10838       ;;
10839     esac
10840
10841     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10842     postinstall_cmds='base_file=`basename \${file}`~
10843       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10844       dldir=$destdir/`dirname \$dlpath`~
10845       test -d \$dldir || mkdir -p \$dldir~
10846       $install_prog $dir/$dlname \$dldir/$dlname'
10847     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10848       dlpath=$dir/\$dldll~
10849        $RM \$dlpath'
10850     shlibpath_overrides_runpath=yes
10851     dynamic_linker='Win32 link.exe'
10852     ;;
10853
10854   *)
10855     # Assume MSVC wrapper
10856     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10857     dynamic_linker='Win32 ld.exe'
10858     ;;
10859   esac
10860   # FIXME: first we should search . and the directory the executable is in
10861   shlibpath_var=PATH
10862   ;;
10863
10864 darwin* | rhapsody*)
10865   dynamic_linker="$host_os dyld"
10866   version_type=darwin
10867   need_lib_prefix=no
10868   need_version=no
10869   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10870   soname_spec='${libname}${release}${major}$shared_ext'
10871   shlibpath_overrides_runpath=yes
10872   shlibpath_var=DYLD_LIBRARY_PATH
10873   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10874
10875   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10876   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10877   ;;
10878
10879 dgux*)
10880   version_type=linux # correct to gnu/linux during the next big refactor
10881   need_lib_prefix=no
10882   need_version=no
10883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10884   soname_spec='${libname}${release}${shared_ext}$major'
10885   shlibpath_var=LD_LIBRARY_PATH
10886   ;;
10887
10888 freebsd* | dragonfly*)
10889   # DragonFly does not have aout.  When/if they implement a new
10890   # versioning mechanism, adjust this.
10891   if test -x /usr/bin/objformat; then
10892     objformat=`/usr/bin/objformat`
10893   else
10894     case $host_os in
10895     freebsd[23].*) objformat=aout ;;
10896     *) objformat=elf ;;
10897     esac
10898   fi
10899   version_type=freebsd-$objformat
10900   case $version_type in
10901     freebsd-elf*)
10902       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10903       need_version=no
10904       need_lib_prefix=no
10905       ;;
10906     freebsd-*)
10907       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10908       need_version=yes
10909       ;;
10910   esac
10911   shlibpath_var=LD_LIBRARY_PATH
10912   case $host_os in
10913   freebsd2.*)
10914     shlibpath_overrides_runpath=yes
10915     ;;
10916   freebsd3.[01]* | freebsdelf3.[01]*)
10917     shlibpath_overrides_runpath=yes
10918     hardcode_into_libs=yes
10919     ;;
10920   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10921   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10922     shlibpath_overrides_runpath=no
10923     hardcode_into_libs=yes
10924     ;;
10925   *) # from 4.6 on, and DragonFly
10926     shlibpath_overrides_runpath=yes
10927     hardcode_into_libs=yes
10928     ;;
10929   esac
10930   ;;
10931
10932 gnu*)
10933   version_type=linux # correct to gnu/linux during the next big refactor
10934   need_lib_prefix=no
10935   need_version=no
10936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10937   soname_spec='${libname}${release}${shared_ext}$major'
10938   shlibpath_var=LD_LIBRARY_PATH
10939   shlibpath_overrides_runpath=no
10940   hardcode_into_libs=yes
10941   ;;
10942
10943 haiku*)
10944   version_type=linux # correct to gnu/linux during the next big refactor
10945   need_lib_prefix=no
10946   need_version=no
10947   dynamic_linker="$host_os runtime_loader"
10948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10949   soname_spec='${libname}${release}${shared_ext}$major'
10950   shlibpath_var=LIBRARY_PATH
10951   shlibpath_overrides_runpath=yes
10952   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10953   hardcode_into_libs=yes
10954   ;;
10955
10956 hpux9* | hpux10* | hpux11*)
10957   # Give a soname corresponding to the major version so that dld.sl refuses to
10958   # link against other versions.
10959   version_type=sunos
10960   need_lib_prefix=no
10961   need_version=no
10962   case $host_cpu in
10963   ia64*)
10964     shrext_cmds='.so'
10965     hardcode_into_libs=yes
10966     dynamic_linker="$host_os dld.so"
10967     shlibpath_var=LD_LIBRARY_PATH
10968     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970     soname_spec='${libname}${release}${shared_ext}$major'
10971     if test "X$HPUX_IA64_MODE" = X32; then
10972       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10973     else
10974       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10975     fi
10976     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10977     ;;
10978   hppa*64*)
10979     shrext_cmds='.sl'
10980     hardcode_into_libs=yes
10981     dynamic_linker="$host_os dld.sl"
10982     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10983     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985     soname_spec='${libname}${release}${shared_ext}$major'
10986     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10987     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10988     ;;
10989   *)
10990     shrext_cmds='.sl'
10991     dynamic_linker="$host_os dld.sl"
10992     shlibpath_var=SHLIB_PATH
10993     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995     soname_spec='${libname}${release}${shared_ext}$major'
10996     ;;
10997   esac
10998   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10999   postinstall_cmds='chmod 555 $lib'
11000   # or fails outright, so override atomically:
11001   install_override_mode=555
11002   ;;
11003
11004 interix[3-9]*)
11005   version_type=linux # correct to gnu/linux during the next big refactor
11006   need_lib_prefix=no
11007   need_version=no
11008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11009   soname_spec='${libname}${release}${shared_ext}$major'
11010   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11011   shlibpath_var=LD_LIBRARY_PATH
11012   shlibpath_overrides_runpath=no
11013   hardcode_into_libs=yes
11014   ;;
11015
11016 irix5* | irix6* | nonstopux*)
11017   case $host_os in
11018     nonstopux*) version_type=nonstopux ;;
11019     *)
11020         if test "$lt_cv_prog_gnu_ld" = yes; then
11021                 version_type=linux # correct to gnu/linux during the next big refactor
11022         else
11023                 version_type=irix
11024         fi ;;
11025   esac
11026   need_lib_prefix=no
11027   need_version=no
11028   soname_spec='${libname}${release}${shared_ext}$major'
11029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11030   case $host_os in
11031   irix5* | nonstopux*)
11032     libsuff= shlibsuff=
11033     ;;
11034   *)
11035     case $LD in # libtool.m4 will add one of these switches to LD
11036     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11037       libsuff= shlibsuff= libmagic=32-bit;;
11038     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11039       libsuff=32 shlibsuff=N32 libmagic=N32;;
11040     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11041       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11042     *) libsuff= shlibsuff= libmagic=never-match;;
11043     esac
11044     ;;
11045   esac
11046   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11047   shlibpath_overrides_runpath=no
11048   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11049   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11050   hardcode_into_libs=yes
11051   ;;
11052
11053 # No shared lib support for Linux oldld, aout, or coff.
11054 linux*oldld* | linux*aout* | linux*coff*)
11055   dynamic_linker=no
11056   ;;
11057
11058 # This must be glibc/ELF.
11059 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11060   version_type=linux # correct to gnu/linux during the next big refactor
11061   need_lib_prefix=no
11062   need_version=no
11063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064   soname_spec='${libname}${release}${shared_ext}$major'
11065   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11066   shlibpath_var=LD_LIBRARY_PATH
11067   shlibpath_overrides_runpath=no
11068
11069   # Some binutils ld are patched to set DT_RUNPATH
11070   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11071   $as_echo_n "(cached) " >&6
11072 else
11073   lt_cv_shlibpath_overrides_runpath=no
11074     save_LDFLAGS=$LDFLAGS
11075     save_libdir=$libdir
11076     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11077          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11078     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h.  */
11080
11081 int
11082 main ()
11083 {
11084
11085   ;
11086   return 0;
11087 }
11088 _ACEOF
11089 if ac_fn_c_try_link "$LINENO"; then :
11090   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11091   lt_cv_shlibpath_overrides_runpath=yes
11092 fi
11093 fi
11094 rm -f core conftest.err conftest.$ac_objext \
11095     conftest$ac_exeext conftest.$ac_ext
11096     LDFLAGS=$save_LDFLAGS
11097     libdir=$save_libdir
11098
11099 fi
11100
11101   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11102
11103   # This implies no fast_install, which is unacceptable.
11104   # Some rework will be needed to allow for fast_install
11105   # before this can be enabled.
11106   hardcode_into_libs=yes
11107
11108   # Append ld.so.conf contents to the search path
11109   if test -f /etc/ld.so.conf; then
11110     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' ' '`
11111     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11112   fi
11113
11114   # We used to test for /lib/ld.so.1 and disable shared libraries on
11115   # powerpc, because MkLinux only supported shared libraries with the
11116   # GNU dynamic linker.  Since this was broken with cross compilers,
11117   # most powerpc-linux boxes support dynamic linking these days and
11118   # people can always --disable-shared, the test was removed, and we
11119   # assume the GNU/Linux dynamic linker is in use.
11120   dynamic_linker='GNU/Linux ld.so'
11121   ;;
11122
11123 netbsd*)
11124   version_type=sunos
11125   need_lib_prefix=no
11126   need_version=no
11127   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11129     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11130     dynamic_linker='NetBSD (a.out) ld.so'
11131   else
11132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11133     soname_spec='${libname}${release}${shared_ext}$major'
11134     dynamic_linker='NetBSD ld.elf_so'
11135   fi
11136   shlibpath_var=LD_LIBRARY_PATH
11137   shlibpath_overrides_runpath=yes
11138   hardcode_into_libs=yes
11139   ;;
11140
11141 newsos6)
11142   version_type=linux # correct to gnu/linux during the next big refactor
11143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144   shlibpath_var=LD_LIBRARY_PATH
11145   shlibpath_overrides_runpath=yes
11146   ;;
11147
11148 *nto* | *qnx*)
11149   version_type=qnx
11150   need_lib_prefix=no
11151   need_version=no
11152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153   soname_spec='${libname}${release}${shared_ext}$major'
11154   shlibpath_var=LD_LIBRARY_PATH
11155   shlibpath_overrides_runpath=no
11156   hardcode_into_libs=yes
11157   dynamic_linker='ldqnx.so'
11158   ;;
11159
11160 openbsd*)
11161   version_type=sunos
11162   sys_lib_dlsearch_path_spec="/usr/lib"
11163   need_lib_prefix=no
11164   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11165   case $host_os in
11166     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11167     *)                          need_version=no  ;;
11168   esac
11169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11170   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11171   shlibpath_var=LD_LIBRARY_PATH
11172   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11173     case $host_os in
11174       openbsd2.[89] | openbsd2.[89].*)
11175         shlibpath_overrides_runpath=no
11176         ;;
11177       *)
11178         shlibpath_overrides_runpath=yes
11179         ;;
11180       esac
11181   else
11182     shlibpath_overrides_runpath=yes
11183   fi
11184   ;;
11185
11186 os2*)
11187   libname_spec='$name'
11188   shrext_cmds=".dll"
11189   need_lib_prefix=no
11190   library_names_spec='$libname${shared_ext} $libname.a'
11191   dynamic_linker='OS/2 ld.exe'
11192   shlibpath_var=LIBPATH
11193   ;;
11194
11195 osf3* | osf4* | osf5*)
11196   version_type=osf
11197   need_lib_prefix=no
11198   need_version=no
11199   soname_spec='${libname}${release}${shared_ext}$major'
11200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201   shlibpath_var=LD_LIBRARY_PATH
11202   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11203   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11204   ;;
11205
11206 rdos*)
11207   dynamic_linker=no
11208   ;;
11209
11210 solaris*)
11211   version_type=linux # correct to gnu/linux during the next big refactor
11212   need_lib_prefix=no
11213   need_version=no
11214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215   soname_spec='${libname}${release}${shared_ext}$major'
11216   shlibpath_var=LD_LIBRARY_PATH
11217   shlibpath_overrides_runpath=yes
11218   hardcode_into_libs=yes
11219   # ldd complains unless libraries are executable
11220   postinstall_cmds='chmod +x $lib'
11221   ;;
11222
11223 sunos4*)
11224   version_type=sunos
11225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11226   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11227   shlibpath_var=LD_LIBRARY_PATH
11228   shlibpath_overrides_runpath=yes
11229   if test "$with_gnu_ld" = yes; then
11230     need_lib_prefix=no
11231   fi
11232   need_version=yes
11233   ;;
11234
11235 sysv4 | sysv4.3*)
11236   version_type=linux # correct to gnu/linux during the next big refactor
11237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11238   soname_spec='${libname}${release}${shared_ext}$major'
11239   shlibpath_var=LD_LIBRARY_PATH
11240   case $host_vendor in
11241     sni)
11242       shlibpath_overrides_runpath=no
11243       need_lib_prefix=no
11244       runpath_var=LD_RUN_PATH
11245       ;;
11246     siemens)
11247       need_lib_prefix=no
11248       ;;
11249     motorola)
11250       need_lib_prefix=no
11251       need_version=no
11252       shlibpath_overrides_runpath=no
11253       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11254       ;;
11255   esac
11256   ;;
11257
11258 sysv4*MP*)
11259   if test -d /usr/nec ;then
11260     version_type=linux # correct to gnu/linux during the next big refactor
11261     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11262     soname_spec='$libname${shared_ext}.$major'
11263     shlibpath_var=LD_LIBRARY_PATH
11264   fi
11265   ;;
11266
11267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11268   version_type=freebsd-elf
11269   need_lib_prefix=no
11270   need_version=no
11271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11272   soname_spec='${libname}${release}${shared_ext}$major'
11273   shlibpath_var=LD_LIBRARY_PATH
11274   shlibpath_overrides_runpath=yes
11275   hardcode_into_libs=yes
11276   if test "$with_gnu_ld" = yes; then
11277     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11278   else
11279     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11280     case $host_os in
11281       sco3.2v5*)
11282         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11283         ;;
11284     esac
11285   fi
11286   sys_lib_dlsearch_path_spec='/usr/lib'
11287   ;;
11288
11289 tpf*)
11290   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11291   version_type=linux # correct to gnu/linux during the next big refactor
11292   need_lib_prefix=no
11293   need_version=no
11294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11295   shlibpath_var=LD_LIBRARY_PATH
11296   shlibpath_overrides_runpath=no
11297   hardcode_into_libs=yes
11298   ;;
11299
11300 uts4*)
11301   version_type=linux # correct to gnu/linux during the next big refactor
11302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303   soname_spec='${libname}${release}${shared_ext}$major'
11304   shlibpath_var=LD_LIBRARY_PATH
11305   ;;
11306
11307 *)
11308   dynamic_linker=no
11309   ;;
11310 esac
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11312 $as_echo "$dynamic_linker" >&6; }
11313 test "$dynamic_linker" = no && can_build_shared=no
11314
11315 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11316 if test "$GCC" = yes; then
11317   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11318 fi
11319
11320 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11321   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11322 fi
11323 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11324   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11325 fi
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11419 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11420 hardcode_action=
11421 if test -n "$hardcode_libdir_flag_spec" ||
11422    test -n "$runpath_var" ||
11423    test "X$hardcode_automatic" = "Xyes" ; then
11424
11425   # We can hardcode non-existent directories.
11426   if test "$hardcode_direct" != no &&
11427      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11428      # have to relink, otherwise we might link with an installed library
11429      # when we should be linking with a yet-to-be-installed one
11430      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11431      test "$hardcode_minus_L" != no; then
11432     # Linking always hardcodes the temporary library directory.
11433     hardcode_action=relink
11434   else
11435     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11436     hardcode_action=immediate
11437   fi
11438 else
11439   # We cannot hardcode anything, or else we can only hardcode existing
11440   # directories.
11441   hardcode_action=unsupported
11442 fi
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11444 $as_echo "$hardcode_action" >&6; }
11445
11446 if test "$hardcode_action" = relink ||
11447    test "$inherit_rpath" = yes; then
11448   # Fast installation is not supported
11449   enable_fast_install=no
11450 elif test "$shlibpath_overrides_runpath" = yes ||
11451      test "$enable_shared" = no; then
11452   # Fast installation is not necessary
11453   enable_fast_install=needless
11454 fi
11455
11456
11457
11458
11459
11460
11461   if test "x$enable_dlopen" != xyes; then
11462   enable_dlopen=unknown
11463   enable_dlopen_self=unknown
11464   enable_dlopen_self_static=unknown
11465 else
11466   lt_cv_dlopen=no
11467   lt_cv_dlopen_libs=
11468
11469   case $host_os in
11470   beos*)
11471     lt_cv_dlopen="load_add_on"
11472     lt_cv_dlopen_libs=
11473     lt_cv_dlopen_self=yes
11474     ;;
11475
11476   mingw* | pw32* | cegcc*)
11477     lt_cv_dlopen="LoadLibrary"
11478     lt_cv_dlopen_libs=
11479     ;;
11480
11481   cygwin*)
11482     lt_cv_dlopen="dlopen"
11483     lt_cv_dlopen_libs=
11484     ;;
11485
11486   darwin*)
11487   # if libdl is installed we need to link against it
11488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11489 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11490 if ${ac_cv_lib_dl_dlopen+:} false; then :
11491   $as_echo_n "(cached) " >&6
11492 else
11493   ac_check_lib_save_LIBS=$LIBS
11494 LIBS="-ldl  $LIBS"
11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h.  */
11497
11498 /* Override any GCC internal prototype to avoid an error.
11499    Use char because int might match the return type of a GCC
11500    builtin and then its argument prototype would still apply.  */
11501 #ifdef __cplusplus
11502 extern "C"
11503 #endif
11504 char dlopen ();
11505 int
11506 main ()
11507 {
11508 return dlopen ();
11509   ;
11510   return 0;
11511 }
11512 _ACEOF
11513 if ac_fn_c_try_link "$LINENO"; then :
11514   ac_cv_lib_dl_dlopen=yes
11515 else
11516   ac_cv_lib_dl_dlopen=no
11517 fi
11518 rm -f core conftest.err conftest.$ac_objext \
11519     conftest$ac_exeext conftest.$ac_ext
11520 LIBS=$ac_check_lib_save_LIBS
11521 fi
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11523 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11524 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11525   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11526 else
11527
11528     lt_cv_dlopen="dyld"
11529     lt_cv_dlopen_libs=
11530     lt_cv_dlopen_self=yes
11531
11532 fi
11533
11534     ;;
11535
11536   *)
11537     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11538 if test "x$ac_cv_func_shl_load" = xyes; then :
11539   lt_cv_dlopen="shl_load"
11540 else
11541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11542 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11543 if ${ac_cv_lib_dld_shl_load+:} false; then :
11544   $as_echo_n "(cached) " >&6
11545 else
11546   ac_check_lib_save_LIBS=$LIBS
11547 LIBS="-ldld  $LIBS"
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h.  */
11550
11551 /* Override any GCC internal prototype to avoid an error.
11552    Use char because int might match the return type of a GCC
11553    builtin and then its argument prototype would still apply.  */
11554 #ifdef __cplusplus
11555 extern "C"
11556 #endif
11557 char shl_load ();
11558 int
11559 main ()
11560 {
11561 return shl_load ();
11562   ;
11563   return 0;
11564 }
11565 _ACEOF
11566 if ac_fn_c_try_link "$LINENO"; then :
11567   ac_cv_lib_dld_shl_load=yes
11568 else
11569   ac_cv_lib_dld_shl_load=no
11570 fi
11571 rm -f core conftest.err conftest.$ac_objext \
11572     conftest$ac_exeext conftest.$ac_ext
11573 LIBS=$ac_check_lib_save_LIBS
11574 fi
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11576 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11577 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11578   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11579 else
11580   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11581 if test "x$ac_cv_func_dlopen" = xyes; then :
11582   lt_cv_dlopen="dlopen"
11583 else
11584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11585 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11586 if ${ac_cv_lib_dl_dlopen+:} false; then :
11587   $as_echo_n "(cached) " >&6
11588 else
11589   ac_check_lib_save_LIBS=$LIBS
11590 LIBS="-ldl  $LIBS"
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h.  */
11593
11594 /* Override any GCC internal prototype to avoid an error.
11595    Use char because int might match the return type of a GCC
11596    builtin and then its argument prototype would still apply.  */
11597 #ifdef __cplusplus
11598 extern "C"
11599 #endif
11600 char dlopen ();
11601 int
11602 main ()
11603 {
11604 return dlopen ();
11605   ;
11606   return 0;
11607 }
11608 _ACEOF
11609 if ac_fn_c_try_link "$LINENO"; then :
11610   ac_cv_lib_dl_dlopen=yes
11611 else
11612   ac_cv_lib_dl_dlopen=no
11613 fi
11614 rm -f core conftest.err conftest.$ac_objext \
11615     conftest$ac_exeext conftest.$ac_ext
11616 LIBS=$ac_check_lib_save_LIBS
11617 fi
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11619 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11620 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11621   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11622 else
11623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11624 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11625 if ${ac_cv_lib_svld_dlopen+:} false; then :
11626   $as_echo_n "(cached) " >&6
11627 else
11628   ac_check_lib_save_LIBS=$LIBS
11629 LIBS="-lsvld  $LIBS"
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h.  */
11632
11633 /* Override any GCC internal prototype to avoid an error.
11634    Use char because int might match the return type of a GCC
11635    builtin and then its argument prototype would still apply.  */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 char dlopen ();
11640 int
11641 main ()
11642 {
11643 return dlopen ();
11644   ;
11645   return 0;
11646 }
11647 _ACEOF
11648 if ac_fn_c_try_link "$LINENO"; then :
11649   ac_cv_lib_svld_dlopen=yes
11650 else
11651   ac_cv_lib_svld_dlopen=no
11652 fi
11653 rm -f core conftest.err conftest.$ac_objext \
11654     conftest$ac_exeext conftest.$ac_ext
11655 LIBS=$ac_check_lib_save_LIBS
11656 fi
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11658 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11659 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11660   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11661 else
11662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11663 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11664 if ${ac_cv_lib_dld_dld_link+:} false; then :
11665   $as_echo_n "(cached) " >&6
11666 else
11667   ac_check_lib_save_LIBS=$LIBS
11668 LIBS="-ldld  $LIBS"
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h.  */
11671
11672 /* Override any GCC internal prototype to avoid an error.
11673    Use char because int might match the return type of a GCC
11674    builtin and then its argument prototype would still apply.  */
11675 #ifdef __cplusplus
11676 extern "C"
11677 #endif
11678 char dld_link ();
11679 int
11680 main ()
11681 {
11682 return dld_link ();
11683   ;
11684   return 0;
11685 }
11686 _ACEOF
11687 if ac_fn_c_try_link "$LINENO"; then :
11688   ac_cv_lib_dld_dld_link=yes
11689 else
11690   ac_cv_lib_dld_dld_link=no
11691 fi
11692 rm -f core conftest.err conftest.$ac_objext \
11693     conftest$ac_exeext conftest.$ac_ext
11694 LIBS=$ac_check_lib_save_LIBS
11695 fi
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11697 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11698 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11699   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11700 fi
11701
11702
11703 fi
11704
11705
11706 fi
11707
11708
11709 fi
11710
11711
11712 fi
11713
11714
11715 fi
11716
11717     ;;
11718   esac
11719
11720   if test "x$lt_cv_dlopen" != xno; then
11721     enable_dlopen=yes
11722   else
11723     enable_dlopen=no
11724   fi
11725
11726   case $lt_cv_dlopen in
11727   dlopen)
11728     save_CPPFLAGS="$CPPFLAGS"
11729     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11730
11731     save_LDFLAGS="$LDFLAGS"
11732     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11733
11734     save_LIBS="$LIBS"
11735     LIBS="$lt_cv_dlopen_libs $LIBS"
11736
11737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11738 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11739 if ${lt_cv_dlopen_self+:} false; then :
11740   $as_echo_n "(cached) " >&6
11741 else
11742           if test "$cross_compiling" = yes; then :
11743   lt_cv_dlopen_self=cross
11744 else
11745   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11746   lt_status=$lt_dlunknown
11747   cat > conftest.$ac_ext <<_LT_EOF
11748 #line $LINENO "configure"
11749 #include "confdefs.h"
11750
11751 #if HAVE_DLFCN_H
11752 #include <dlfcn.h>
11753 #endif
11754
11755 #include <stdio.h>
11756
11757 #ifdef RTLD_GLOBAL
11758 #  define LT_DLGLOBAL           RTLD_GLOBAL
11759 #else
11760 #  ifdef DL_GLOBAL
11761 #    define LT_DLGLOBAL         DL_GLOBAL
11762 #  else
11763 #    define LT_DLGLOBAL         0
11764 #  endif
11765 #endif
11766
11767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11768    find out it does not work in some platform. */
11769 #ifndef LT_DLLAZY_OR_NOW
11770 #  ifdef RTLD_LAZY
11771 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11772 #  else
11773 #    ifdef DL_LAZY
11774 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11775 #    else
11776 #      ifdef RTLD_NOW
11777 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11778 #      else
11779 #        ifdef DL_NOW
11780 #          define LT_DLLAZY_OR_NOW      DL_NOW
11781 #        else
11782 #          define LT_DLLAZY_OR_NOW      0
11783 #        endif
11784 #      endif
11785 #    endif
11786 #  endif
11787 #endif
11788
11789 /* When -fvisbility=hidden is used, assume the code has been annotated
11790    correspondingly for the symbols needed.  */
11791 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11792 int fnord () __attribute__((visibility("default")));
11793 #endif
11794
11795 int fnord () { return 42; }
11796 int main ()
11797 {
11798   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11799   int status = $lt_dlunknown;
11800
11801   if (self)
11802     {
11803       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11804       else
11805         {
11806           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11807           else puts (dlerror ());
11808         }
11809       /* dlclose (self); */
11810     }
11811   else
11812     puts (dlerror ());
11813
11814   return status;
11815 }
11816 _LT_EOF
11817   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11818   (eval $ac_link) 2>&5
11819   ac_status=$?
11820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11821   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11822     (./conftest; exit; ) >&5 2>/dev/null
11823     lt_status=$?
11824     case x$lt_status in
11825       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11826       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11827       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11828     esac
11829   else :
11830     # compilation failed
11831     lt_cv_dlopen_self=no
11832   fi
11833 fi
11834 rm -fr conftest*
11835
11836
11837 fi
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11839 $as_echo "$lt_cv_dlopen_self" >&6; }
11840
11841     if test "x$lt_cv_dlopen_self" = xyes; then
11842       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11843       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11844 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11845 if ${lt_cv_dlopen_self_static+:} false; then :
11846   $as_echo_n "(cached) " >&6
11847 else
11848           if test "$cross_compiling" = yes; then :
11849   lt_cv_dlopen_self_static=cross
11850 else
11851   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11852   lt_status=$lt_dlunknown
11853   cat > conftest.$ac_ext <<_LT_EOF
11854 #line $LINENO "configure"
11855 #include "confdefs.h"
11856
11857 #if HAVE_DLFCN_H
11858 #include <dlfcn.h>
11859 #endif
11860
11861 #include <stdio.h>
11862
11863 #ifdef RTLD_GLOBAL
11864 #  define LT_DLGLOBAL           RTLD_GLOBAL
11865 #else
11866 #  ifdef DL_GLOBAL
11867 #    define LT_DLGLOBAL         DL_GLOBAL
11868 #  else
11869 #    define LT_DLGLOBAL         0
11870 #  endif
11871 #endif
11872
11873 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11874    find out it does not work in some platform. */
11875 #ifndef LT_DLLAZY_OR_NOW
11876 #  ifdef RTLD_LAZY
11877 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11878 #  else
11879 #    ifdef DL_LAZY
11880 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11881 #    else
11882 #      ifdef RTLD_NOW
11883 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11884 #      else
11885 #        ifdef DL_NOW
11886 #          define LT_DLLAZY_OR_NOW      DL_NOW
11887 #        else
11888 #          define LT_DLLAZY_OR_NOW      0
11889 #        endif
11890 #      endif
11891 #    endif
11892 #  endif
11893 #endif
11894
11895 /* When -fvisbility=hidden is used, assume the code has been annotated
11896    correspondingly for the symbols needed.  */
11897 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11898 int fnord () __attribute__((visibility("default")));
11899 #endif
11900
11901 int fnord () { return 42; }
11902 int main ()
11903 {
11904   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11905   int status = $lt_dlunknown;
11906
11907   if (self)
11908     {
11909       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11910       else
11911         {
11912           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11913           else puts (dlerror ());
11914         }
11915       /* dlclose (self); */
11916     }
11917   else
11918     puts (dlerror ());
11919
11920   return status;
11921 }
11922 _LT_EOF
11923   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11924   (eval $ac_link) 2>&5
11925   ac_status=$?
11926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11927   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11928     (./conftest; exit; ) >&5 2>/dev/null
11929     lt_status=$?
11930     case x$lt_status in
11931       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11932       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11933       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11934     esac
11935   else :
11936     # compilation failed
11937     lt_cv_dlopen_self_static=no
11938   fi
11939 fi
11940 rm -fr conftest*
11941
11942
11943 fi
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11945 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11946     fi
11947
11948     CPPFLAGS="$save_CPPFLAGS"
11949     LDFLAGS="$save_LDFLAGS"
11950     LIBS="$save_LIBS"
11951     ;;
11952   esac
11953
11954   case $lt_cv_dlopen_self in
11955   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11956   *) enable_dlopen_self=unknown ;;
11957   esac
11958
11959   case $lt_cv_dlopen_self_static in
11960   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11961   *) enable_dlopen_self_static=unknown ;;
11962   esac
11963 fi
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981 striplib=
11982 old_striplib=
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11984 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11985 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11986   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11987   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11989 $as_echo "yes" >&6; }
11990 else
11991 # FIXME - insert some real tests, host_os isn't really good enough
11992   case $host_os in
11993   darwin*)
11994     if test -n "$STRIP" ; then
11995       striplib="$STRIP -x"
11996       old_striplib="$STRIP -S"
11997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11998 $as_echo "yes" >&6; }
11999     else
12000       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001 $as_echo "no" >&6; }
12002     fi
12003     ;;
12004   *)
12005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006 $as_echo "no" >&6; }
12007     ;;
12008   esac
12009 fi
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022   # Report which library types will actually be built
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12024 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12026 $as_echo "$can_build_shared" >&6; }
12027
12028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12029 $as_echo_n "checking whether to build shared libraries... " >&6; }
12030   test "$can_build_shared" = "no" && enable_shared=no
12031
12032   # On AIX, shared libraries and static libraries use the same namespace, and
12033   # are all built from PIC.
12034   case $host_os in
12035   aix3*)
12036     test "$enable_shared" = yes && enable_static=no
12037     if test -n "$RANLIB"; then
12038       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12039       postinstall_cmds='$RANLIB $lib'
12040     fi
12041     ;;
12042
12043   aix[4-9]*)
12044     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12045       test "$enable_shared" = yes && enable_static=no
12046     fi
12047     ;;
12048   esac
12049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12050 $as_echo "$enable_shared" >&6; }
12051
12052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12053 $as_echo_n "checking whether to build static libraries... " >&6; }
12054   # Make sure either enable_shared or enable_static is yes.
12055   test "$enable_shared" = yes || enable_static=yes
12056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12057 $as_echo "$enable_static" >&6; }
12058
12059
12060
12061
12062 fi
12063 ac_ext=c
12064 ac_cpp='$CPP $CPPFLAGS'
12065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12068
12069 CC="$lt_save_CC"
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085         ac_config_commands="$ac_config_commands libtool"
12086
12087
12088
12089
12090 # Only expand once:
12091
12092
12093
12094 for ac_func in _close _dup _fdopen _fileno _open _snprintf _strdup _stricmp fseeko ftello getopt open snprintf strcasecmp strdup
12095 do :
12096   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12098 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12099   cat >>confdefs.h <<_ACEOF
12100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12101 _ACEOF
12102
12103 fi
12104 done
12105
12106 for ac_func in mkstemp
12107 do :
12108   ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12109 if test "x$ac_cv_func_mkstemp" = xyes; then :
12110   cat >>confdefs.h <<_ACEOF
12111 #define HAVE_MKSTEMP 1
12112 _ACEOF
12113
12114 else
12115   case " $LIBOBJS " in
12116   *" mkstemp.$ac_objext "* ) ;;
12117   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
12118  ;;
12119 esac
12120
12121 fi
12122 done
12123
12124
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MoveFileExA" >&5
12126 $as_echo_n "checking MoveFileExA... " >&6; }
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h.  */
12129 #include <windows.h>
12130 int
12131 main ()
12132 {
12133 MoveFileExA("", "", 0);
12134   ;
12135   return 0;
12136 }
12137 _ACEOF
12138 if ac_fn_c_try_link "$LINENO"; then :
12139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12140 $as_echo "yes" >&6; }
12141
12142 $as_echo "#define HAVE_MOVEFILEEXA 1" >>confdefs.h
12143
12144 else
12145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12147 fi
12148 rm -f core conftest.err conftest.$ac_objext \
12149     conftest$ac_exeext conftest.$ac_ext
12150
12151 for ac_header in fts.h stdbool.h strings.h unistd.h
12152 do :
12153   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12154 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12155 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12156   cat >>confdefs.h <<_ACEOF
12157 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12158 _ACEOF
12159
12160 fi
12161
12162 done
12163
12164
12165 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12166 if test "x$ac_cv_type_int8_t" = xyes; then :
12167
12168 cat >>confdefs.h <<_ACEOF
12169 #define HAVE_INT8_T 1
12170 _ACEOF
12171
12172
12173 fi
12174
12175 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12176 if test "x$ac_cv_type_int16_t" = xyes; then :
12177
12178 cat >>confdefs.h <<_ACEOF
12179 #define HAVE_INT16_T 1
12180 _ACEOF
12181
12182
12183 fi
12184
12185 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12186 if test "x$ac_cv_type_int32_t" = xyes; then :
12187
12188 cat >>confdefs.h <<_ACEOF
12189 #define HAVE_INT32_T 1
12190 _ACEOF
12191
12192
12193 fi
12194
12195 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12196 if test "x$ac_cv_type_int64_t" = xyes; then :
12197
12198 cat >>confdefs.h <<_ACEOF
12199 #define HAVE_INT64_T 1
12200 _ACEOF
12201
12202
12203 fi
12204
12205 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
12206 if test "x$ac_cv_type_uint8_t" = xyes; then :
12207
12208 cat >>confdefs.h <<_ACEOF
12209 #define HAVE_UINT8_T 1
12210 _ACEOF
12211
12212
12213 fi
12214
12215 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
12216 if test "x$ac_cv_type_uint16_t" = xyes; then :
12217
12218 cat >>confdefs.h <<_ACEOF
12219 #define HAVE_UINT16_T 1
12220 _ACEOF
12221
12222
12223 fi
12224
12225 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12226 if test "x$ac_cv_type_uint32_t" = xyes; then :
12227
12228 cat >>confdefs.h <<_ACEOF
12229 #define HAVE_UINT32_T 1
12230 _ACEOF
12231
12232
12233 fi
12234
12235 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12236 if test "x$ac_cv_type_uint64_t" = xyes; then :
12237
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_UINT64_T 1
12240 _ACEOF
12241
12242
12243 fi
12244
12245 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12246 if test "x$ac_cv_type_ssize_t" = xyes; then :
12247
12248 cat >>confdefs.h <<_ACEOF
12249 #define HAVE_SSIZE_T 1
12250 _ACEOF
12251
12252
12253 fi
12254
12255
12256 # The cast to long int works around a bug in the HP C Compiler
12257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12259 # This bug is HP SR number 8606223364.
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12261 $as_echo_n "checking size of short... " >&6; }
12262 if ${ac_cv_sizeof_short+:} false; then :
12263   $as_echo_n "(cached) " >&6
12264 else
12265   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12266
12267 else
12268   if test "$ac_cv_type_short" = yes; then
12269      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12271 as_fn_error 77 "cannot compute sizeof (short)
12272 See \`config.log' for more details" "$LINENO" 5; }
12273    else
12274      ac_cv_sizeof_short=0
12275    fi
12276 fi
12277
12278 fi
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12280 $as_echo "$ac_cv_sizeof_short" >&6; }
12281
12282
12283
12284 cat >>confdefs.h <<_ACEOF
12285 #define SIZEOF_SHORT $ac_cv_sizeof_short
12286 _ACEOF
12287
12288
12289 # The cast to long int works around a bug in the HP C Compiler
12290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12292 # This bug is HP SR number 8606223364.
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12294 $as_echo_n "checking size of int... " >&6; }
12295 if ${ac_cv_sizeof_int+:} false; then :
12296   $as_echo_n "(cached) " >&6
12297 else
12298   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12299
12300 else
12301   if test "$ac_cv_type_int" = yes; then
12302      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12304 as_fn_error 77 "cannot compute sizeof (int)
12305 See \`config.log' for more details" "$LINENO" 5; }
12306    else
12307      ac_cv_sizeof_int=0
12308    fi
12309 fi
12310
12311 fi
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12313 $as_echo "$ac_cv_sizeof_int" >&6; }
12314
12315
12316
12317 cat >>confdefs.h <<_ACEOF
12318 #define SIZEOF_INT $ac_cv_sizeof_int
12319 _ACEOF
12320
12321
12322 # The cast to long int works around a bug in the HP C Compiler
12323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12325 # This bug is HP SR number 8606223364.
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12327 $as_echo_n "checking size of long... " >&6; }
12328 if ${ac_cv_sizeof_long+:} false; then :
12329   $as_echo_n "(cached) " >&6
12330 else
12331   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12332
12333 else
12334   if test "$ac_cv_type_long" = yes; then
12335      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12337 as_fn_error 77 "cannot compute sizeof (long)
12338 See \`config.log' for more details" "$LINENO" 5; }
12339    else
12340      ac_cv_sizeof_long=0
12341    fi
12342 fi
12343
12344 fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12346 $as_echo "$ac_cv_sizeof_long" >&6; }
12347
12348
12349
12350 cat >>confdefs.h <<_ACEOF
12351 #define SIZEOF_LONG $ac_cv_sizeof_long
12352 _ACEOF
12353
12354
12355 # The cast to long int works around a bug in the HP C Compiler
12356 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12357 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12358 # This bug is HP SR number 8606223364.
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12360 $as_echo_n "checking size of long long... " >&6; }
12361 if ${ac_cv_sizeof_long_long+:} false; then :
12362   $as_echo_n "(cached) " >&6
12363 else
12364   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12365
12366 else
12367   if test "$ac_cv_type_long_long" = yes; then
12368      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12370 as_fn_error 77 "cannot compute sizeof (long long)
12371 See \`config.log' for more details" "$LINENO" 5; }
12372    else
12373      ac_cv_sizeof_long_long=0
12374    fi
12375 fi
12376
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12379 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12380
12381
12382
12383 cat >>confdefs.h <<_ACEOF
12384 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12385 _ACEOF
12386
12387
12388 # The cast to long int works around a bug in the HP C Compiler
12389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12391 # This bug is HP SR number 8606223364.
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12393 $as_echo_n "checking size of off_t... " >&6; }
12394 if ${ac_cv_sizeof_off_t+:} false; then :
12395   $as_echo_n "(cached) " >&6
12396 else
12397   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12398
12399 else
12400   if test "$ac_cv_type_off_t" = yes; then
12401      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12403 as_fn_error 77 "cannot compute sizeof (off_t)
12404 See \`config.log' for more details" "$LINENO" 5; }
12405    else
12406      ac_cv_sizeof_off_t=0
12407    fi
12408 fi
12409
12410 fi
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12412 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12413
12414
12415
12416 cat >>confdefs.h <<_ACEOF
12417 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12418 _ACEOF
12419
12420
12421 # The cast to long int works around a bug in the HP C Compiler
12422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12424 # This bug is HP SR number 8606223364.
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12426 $as_echo_n "checking size of size_t... " >&6; }
12427 if ${ac_cv_sizeof_size_t+:} false; then :
12428   $as_echo_n "(cached) " >&6
12429 else
12430   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
12431
12432 else
12433   if test "$ac_cv_type_size_t" = yes; then
12434      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12436 as_fn_error 77 "cannot compute sizeof (size_t)
12437 See \`config.log' for more details" "$LINENO" 5; }
12438    else
12439      ac_cv_sizeof_size_t=0
12440    fi
12441 fi
12442
12443 fi
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12445 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12446
12447
12448
12449 cat >>confdefs.h <<_ACEOF
12450 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12451 _ACEOF
12452
12453
12454
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12456 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12457 if ${ac_cv_struct_tm+:} false; then :
12458   $as_echo_n "(cached) " >&6
12459 else
12460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h.  */
12462 #include <sys/types.h>
12463 #include <time.h>
12464
12465 int
12466 main ()
12467 {
12468 struct tm tm;
12469                                      int *p = &tm.tm_sec;
12470                                      return !p;
12471   ;
12472   return 0;
12473 }
12474 _ACEOF
12475 if ac_fn_c_try_compile "$LINENO"; then :
12476   ac_cv_struct_tm=time.h
12477 else
12478   ac_cv_struct_tm=sys/time.h
12479 fi
12480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12481 fi
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12483 $as_echo "$ac_cv_struct_tm" >&6; }
12484 if test $ac_cv_struct_tm = sys/time.h; then
12485
12486 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12487
12488 fi
12489
12490 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12491 #include <$ac_cv_struct_tm>
12492
12493 "
12494 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12495
12496 cat >>confdefs.h <<_ACEOF
12497 #define HAVE_STRUCT_TM_TM_ZONE 1
12498 _ACEOF
12499
12500
12501 fi
12502
12503 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12504
12505 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12506
12507 else
12508   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12509 "
12510 if test "x$ac_cv_have_decl_tzname" = xyes; then :
12511   ac_have_decl=1
12512 else
12513   ac_have_decl=0
12514 fi
12515
12516 cat >>confdefs.h <<_ACEOF
12517 #define HAVE_DECL_TZNAME $ac_have_decl
12518 _ACEOF
12519
12520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12521 $as_echo_n "checking for tzname... " >&6; }
12522 if ${ac_cv_var_tzname+:} false; then :
12523   $as_echo_n "(cached) " >&6
12524 else
12525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h.  */
12527 #include <time.h>
12528 #if !HAVE_DECL_TZNAME
12529 extern char *tzname[];
12530 #endif
12531
12532 int
12533 main ()
12534 {
12535 return tzname[0][0];
12536   ;
12537   return 0;
12538 }
12539 _ACEOF
12540 if ac_fn_c_try_link "$LINENO"; then :
12541   ac_cv_var_tzname=yes
12542 else
12543   ac_cv_var_tzname=no
12544 fi
12545 rm -f core conftest.err conftest.$ac_objext \
12546     conftest$ac_exeext conftest.$ac_ext
12547 fi
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12549 $as_echo "$ac_cv_var_tzname" >&6; }
12550   if test $ac_cv_var_tzname = yes; then
12551
12552 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12553
12554   fi
12555 fi
12556
12557
12558 case $host_os
12559 in
12560     *bsd*) MANFMT=mdoc;;
12561     *) MANFMT=man;;
12562 esac
12563
12564
12565
12566
12567
12568
12569   CFLAG_VISIBILITY=
12570   HAVE_VISIBILITY=0
12571   if test -n "$GCC"; then
12572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
12573 $as_echo_n "checking for simple visibility declarations... " >&6; }
12574     if ${gl_cv_cc_visibility+:} false; then :
12575   $as_echo_n "(cached) " >&6
12576 else
12577
12578       gl_save_CFLAGS="$CFLAGS"
12579       CFLAGS="$CFLAGS -fvisibility=hidden"
12580       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h.  */
12582 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
12583          extern __attribute__((__visibility__("default"))) int exportedvar;
12584          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
12585          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
12586 int
12587 main ()
12588 {
12589
12590   ;
12591   return 0;
12592 }
12593 _ACEOF
12594 if ac_fn_c_try_compile "$LINENO"; then :
12595   gl_cv_cc_visibility=yes
12596 else
12597   gl_cv_cc_visibility=no
12598 fi
12599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12600       CFLAGS="$gl_save_CFLAGS"
12601 fi
12602
12603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
12604 $as_echo "$gl_cv_cc_visibility" >&6; }
12605     if test $gl_cv_cc_visibility = yes; then
12606       CFLAG_VISIBILITY="-fvisibility=hidden"
12607       HAVE_VISIBILITY=1
12608     fi
12609   fi
12610
12611
12612
12613 cat >>confdefs.h <<_ACEOF
12614 #define HAVE_VISIBILITY $HAVE_VISIBILITY
12615 _ACEOF
12616
12617
12618
12619 ac_config_files="$ac_config_files Makefile libzip.pc libzip-uninstalled.pc examples/Makefile man/Makefile lib/Makefile regress/Makefile src/Makefile"
12620
12621 cat >confcache <<\_ACEOF
12622 # This file is a shell script that caches the results of configure
12623 # tests run on this system so they can be shared between configure
12624 # scripts and configure runs, see configure's option --config-cache.
12625 # It is not useful on other systems.  If it contains results you don't
12626 # want to keep, you may remove or edit it.
12627 #
12628 # config.status only pays attention to the cache file if you give it
12629 # the --recheck option to rerun configure.
12630 #
12631 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12632 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12633 # following values.
12634
12635 _ACEOF
12636
12637 # The following way of writing the cache mishandles newlines in values,
12638 # but we know of no workaround that is simple, portable, and efficient.
12639 # So, we kill variables containing newlines.
12640 # Ultrix sh set writes to stderr and can't be redirected directly,
12641 # and sets the high bit in the cache file unless we assign to the vars.
12642 (
12643   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12644     eval ac_val=\$$ac_var
12645     case $ac_val in #(
12646     *${as_nl}*)
12647       case $ac_var in #(
12648       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12649 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12650       esac
12651       case $ac_var in #(
12652       _ | IFS | as_nl) ;; #(
12653       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12654       *) { eval $ac_var=; unset $ac_var;} ;;
12655       esac ;;
12656     esac
12657   done
12658
12659   (set) 2>&1 |
12660     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12661     *${as_nl}ac_space=\ *)
12662       # `set' does not quote correctly, so add quotes: double-quote
12663       # substitution turns \\\\ into \\, and sed turns \\ into \.
12664       sed -n \
12665         "s/'/'\\\\''/g;
12666           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12667       ;; #(
12668     *)
12669       # `set' quotes correctly as required by POSIX, so do not add quotes.
12670       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12671       ;;
12672     esac |
12673     sort
12674 ) |
12675   sed '
12676      /^ac_cv_env_/b end
12677      t clear
12678      :clear
12679      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12680      t end
12681      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12682      :end' >>confcache
12683 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12684   if test -w "$cache_file"; then
12685     if test "x$cache_file" != "x/dev/null"; then
12686       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12687 $as_echo "$as_me: updating cache $cache_file" >&6;}
12688       if test ! -f "$cache_file" || test -h "$cache_file"; then
12689         cat confcache >"$cache_file"
12690       else
12691         case $cache_file in #(
12692         */* | ?:*)
12693           mv -f confcache "$cache_file"$$ &&
12694           mv -f "$cache_file"$$ "$cache_file" ;; #(
12695         *)
12696           mv -f confcache "$cache_file" ;;
12697         esac
12698       fi
12699     fi
12700   else
12701     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12702 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12703   fi
12704 fi
12705 rm -f confcache
12706
12707 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12708 # Let make expand exec_prefix.
12709 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12710
12711 DEFS=-DHAVE_CONFIG_H
12712
12713 ac_libobjs=
12714 ac_ltlibobjs=
12715 U=
12716 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12717   # 1. Remove the extension, and $U if already installed.
12718   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12719   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12720   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12721   #    will be set to the directory where LIBOBJS objects are built.
12722   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12723   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12724 done
12725 LIBOBJS=$ac_libobjs
12726
12727 LTLIBOBJS=$ac_ltlibobjs
12728
12729
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12731 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12732    if test -n "$am_sleep_pid"; then
12733      # Hide warnings about reused PIDs.
12734      wait $am_sleep_pid 2>/dev/null
12735    fi
12736    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12737 $as_echo "done" >&6; }
12738  if test -n "$EXEEXT"; then
12739   am__EXEEXT_TRUE=
12740   am__EXEEXT_FALSE='#'
12741 else
12742   am__EXEEXT_TRUE='#'
12743   am__EXEEXT_FALSE=
12744 fi
12745
12746 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12747   as_fn_error $? "conditional \"AMDEP\" was never defined.
12748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12749 fi
12750 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12751   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12753 fi
12754
12755 : "${CONFIG_STATUS=./config.status}"
12756 ac_write_fail=0
12757 ac_clean_files_save=$ac_clean_files
12758 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12760 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12761 as_write_fail=0
12762 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12763 #! $SHELL
12764 # Generated by $as_me.
12765 # Run this file to recreate the current configuration.
12766 # Compiler output produced by configure, useful for debugging
12767 # configure, is in config.log if it exists.
12768
12769 debug=false
12770 ac_cs_recheck=false
12771 ac_cs_silent=false
12772
12773 SHELL=\${CONFIG_SHELL-$SHELL}
12774 export SHELL
12775 _ASEOF
12776 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12777 ## -------------------- ##
12778 ## M4sh Initialization. ##
12779 ## -------------------- ##
12780
12781 # Be more Bourne compatible
12782 DUALCASE=1; export DUALCASE # for MKS sh
12783 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12784   emulate sh
12785   NULLCMD=:
12786   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12787   # is contrary to our usage.  Disable this feature.
12788   alias -g '${1+"$@"}'='"$@"'
12789   setopt NO_GLOB_SUBST
12790 else
12791   case `(set -o) 2>/dev/null` in #(
12792   *posix*) :
12793     set -o posix ;; #(
12794   *) :
12795      ;;
12796 esac
12797 fi
12798
12799
12800 as_nl='
12801 '
12802 export as_nl
12803 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12804 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12805 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12806 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12807 # Prefer a ksh shell builtin over an external printf program on Solaris,
12808 # but without wasting forks for bash or zsh.
12809 if test -z "$BASH_VERSION$ZSH_VERSION" \
12810     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12811   as_echo='print -r --'
12812   as_echo_n='print -rn --'
12813 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12814   as_echo='printf %s\n'
12815   as_echo_n='printf %s'
12816 else
12817   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12818     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12819     as_echo_n='/usr/ucb/echo -n'
12820   else
12821     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12822     as_echo_n_body='eval
12823       arg=$1;
12824       case $arg in #(
12825       *"$as_nl"*)
12826         expr "X$arg" : "X\\(.*\\)$as_nl";
12827         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12828       esac;
12829       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12830     '
12831     export as_echo_n_body
12832     as_echo_n='sh -c $as_echo_n_body as_echo'
12833   fi
12834   export as_echo_body
12835   as_echo='sh -c $as_echo_body as_echo'
12836 fi
12837
12838 # The user is always right.
12839 if test "${PATH_SEPARATOR+set}" != set; then
12840   PATH_SEPARATOR=:
12841   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12842     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12843       PATH_SEPARATOR=';'
12844   }
12845 fi
12846
12847
12848 # IFS
12849 # We need space, tab and new line, in precisely that order.  Quoting is
12850 # there to prevent editors from complaining about space-tab.
12851 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12852 # splitting by setting IFS to empty value.)
12853 IFS=" ""        $as_nl"
12854
12855 # Find who we are.  Look in the path if we contain no directory separator.
12856 as_myself=
12857 case $0 in #((
12858   *[\\/]* ) as_myself=$0 ;;
12859   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12861 do
12862   IFS=$as_save_IFS
12863   test -z "$as_dir" && as_dir=.
12864     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12865   done
12866 IFS=$as_save_IFS
12867
12868      ;;
12869 esac
12870 # We did not find ourselves, most probably we were run as `sh COMMAND'
12871 # in which case we are not to be found in the path.
12872 if test "x$as_myself" = x; then
12873   as_myself=$0
12874 fi
12875 if test ! -f "$as_myself"; then
12876   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12877   exit 1
12878 fi
12879
12880 # Unset variables that we do not need and which cause bugs (e.g. in
12881 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12882 # suppresses any "Segmentation fault" message there.  '((' could
12883 # trigger a bug in pdksh 5.2.14.
12884 for as_var in BASH_ENV ENV MAIL MAILPATH
12885 do eval test x\${$as_var+set} = xset \
12886   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12887 done
12888 PS1='$ '
12889 PS2='> '
12890 PS4='+ '
12891
12892 # NLS nuisances.
12893 LC_ALL=C
12894 export LC_ALL
12895 LANGUAGE=C
12896 export LANGUAGE
12897
12898 # CDPATH.
12899 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12900
12901
12902 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12903 # ----------------------------------------
12904 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12905 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12906 # script with STATUS, using 1 if that was 0.
12907 as_fn_error ()
12908 {
12909   as_status=$1; test $as_status -eq 0 && as_status=1
12910   if test "$4"; then
12911     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12912     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12913   fi
12914   $as_echo "$as_me: error: $2" >&2
12915   as_fn_exit $as_status
12916 } # as_fn_error
12917
12918
12919 # as_fn_set_status STATUS
12920 # -----------------------
12921 # Set $? to STATUS, without forking.
12922 as_fn_set_status ()
12923 {
12924   return $1
12925 } # as_fn_set_status
12926
12927 # as_fn_exit STATUS
12928 # -----------------
12929 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12930 as_fn_exit ()
12931 {
12932   set +e
12933   as_fn_set_status $1
12934   exit $1
12935 } # as_fn_exit
12936
12937 # as_fn_unset VAR
12938 # ---------------
12939 # Portably unset VAR.
12940 as_fn_unset ()
12941 {
12942   { eval $1=; unset $1;}
12943 }
12944 as_unset=as_fn_unset
12945 # as_fn_append VAR VALUE
12946 # ----------------------
12947 # Append the text in VALUE to the end of the definition contained in VAR. Take
12948 # advantage of any shell optimizations that allow amortized linear growth over
12949 # repeated appends, instead of the typical quadratic growth present in naive
12950 # implementations.
12951 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12952   eval 'as_fn_append ()
12953   {
12954     eval $1+=\$2
12955   }'
12956 else
12957   as_fn_append ()
12958   {
12959     eval $1=\$$1\$2
12960   }
12961 fi # as_fn_append
12962
12963 # as_fn_arith ARG...
12964 # ------------------
12965 # Perform arithmetic evaluation on the ARGs, and store the result in the
12966 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12967 # must be portable across $(()) and expr.
12968 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12969   eval 'as_fn_arith ()
12970   {
12971     as_val=$(( $* ))
12972   }'
12973 else
12974   as_fn_arith ()
12975   {
12976     as_val=`expr "$@" || test $? -eq 1`
12977   }
12978 fi # as_fn_arith
12979
12980
12981 if expr a : '\(a\)' >/dev/null 2>&1 &&
12982    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12983   as_expr=expr
12984 else
12985   as_expr=false
12986 fi
12987
12988 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12989   as_basename=basename
12990 else
12991   as_basename=false
12992 fi
12993
12994 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12995   as_dirname=dirname
12996 else
12997   as_dirname=false
12998 fi
12999
13000 as_me=`$as_basename -- "$0" ||
13001 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13002          X"$0" : 'X\(//\)$' \| \
13003          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13004 $as_echo X/"$0" |
13005     sed '/^.*\/\([^/][^/]*\)\/*$/{
13006             s//\1/
13007             q
13008           }
13009           /^X\/\(\/\/\)$/{
13010             s//\1/
13011             q
13012           }
13013           /^X\/\(\/\).*/{
13014             s//\1/
13015             q
13016           }
13017           s/.*/./; q'`
13018
13019 # Avoid depending upon Character Ranges.
13020 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13021 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13022 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13023 as_cr_digits='0123456789'
13024 as_cr_alnum=$as_cr_Letters$as_cr_digits
13025
13026 ECHO_C= ECHO_N= ECHO_T=
13027 case `echo -n x` in #(((((
13028 -n*)
13029   case `echo 'xy\c'` in
13030   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13031   xy)  ECHO_C='\c';;
13032   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13033        ECHO_T=' ';;
13034   esac;;
13035 *)
13036   ECHO_N='-n';;
13037 esac
13038
13039 rm -f conf$$ conf$$.exe conf$$.file
13040 if test -d conf$$.dir; then
13041   rm -f conf$$.dir/conf$$.file
13042 else
13043   rm -f conf$$.dir
13044   mkdir conf$$.dir 2>/dev/null
13045 fi
13046 if (echo >conf$$.file) 2>/dev/null; then
13047   if ln -s conf$$.file conf$$ 2>/dev/null; then
13048     as_ln_s='ln -s'
13049     # ... but there are two gotchas:
13050     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13051     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13052     # In both cases, we have to default to `cp -pR'.
13053     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13054       as_ln_s='cp -pR'
13055   elif ln conf$$.file conf$$ 2>/dev/null; then
13056     as_ln_s=ln
13057   else
13058     as_ln_s='cp -pR'
13059   fi
13060 else
13061   as_ln_s='cp -pR'
13062 fi
13063 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13064 rmdir conf$$.dir 2>/dev/null
13065
13066
13067 # as_fn_mkdir_p
13068 # -------------
13069 # Create "$as_dir" as a directory, including parents if necessary.
13070 as_fn_mkdir_p ()
13071 {
13072
13073   case $as_dir in #(
13074   -*) as_dir=./$as_dir;;
13075   esac
13076   test -d "$as_dir" || eval $as_mkdir_p || {
13077     as_dirs=
13078     while :; do
13079       case $as_dir in #(
13080       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13081       *) as_qdir=$as_dir;;
13082       esac
13083       as_dirs="'$as_qdir' $as_dirs"
13084       as_dir=`$as_dirname -- "$as_dir" ||
13085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13086          X"$as_dir" : 'X\(//\)[^/]' \| \
13087          X"$as_dir" : 'X\(//\)$' \| \
13088          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13089 $as_echo X"$as_dir" |
13090     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13091             s//\1/
13092             q
13093           }
13094           /^X\(\/\/\)[^/].*/{
13095             s//\1/
13096             q
13097           }
13098           /^X\(\/\/\)$/{
13099             s//\1/
13100             q
13101           }
13102           /^X\(\/\).*/{
13103             s//\1/
13104             q
13105           }
13106           s/.*/./; q'`
13107       test -d "$as_dir" && break
13108     done
13109     test -z "$as_dirs" || eval "mkdir $as_dirs"
13110   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13111
13112
13113 } # as_fn_mkdir_p
13114 if mkdir -p . 2>/dev/null; then
13115   as_mkdir_p='mkdir -p "$as_dir"'
13116 else
13117   test -d ./-p && rmdir ./-p
13118   as_mkdir_p=false
13119 fi
13120
13121
13122 # as_fn_executable_p FILE
13123 # -----------------------
13124 # Test if FILE is an executable regular file.
13125 as_fn_executable_p ()
13126 {
13127   test -f "$1" && test -x "$1"
13128 } # as_fn_executable_p
13129 as_test_x='test -x'
13130 as_executable_p=as_fn_executable_p
13131
13132 # Sed expression to map a string onto a valid CPP name.
13133 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13134
13135 # Sed expression to map a string onto a valid variable name.
13136 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13137
13138
13139 exec 6>&1
13140 ## ----------------------------------- ##
13141 ## Main body of $CONFIG_STATUS script. ##
13142 ## ----------------------------------- ##
13143 _ASEOF
13144 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13145
13146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13147 # Save the log message, to keep $0 and so on meaningful, and to
13148 # report actual input values of CONFIG_FILES etc. instead of their
13149 # values after options handling.
13150 ac_log="
13151 This file was extended by libzip $as_me 1.0.1, which was
13152 generated by GNU Autoconf 2.69.  Invocation command line was
13153
13154   CONFIG_FILES    = $CONFIG_FILES
13155   CONFIG_HEADERS  = $CONFIG_HEADERS
13156   CONFIG_LINKS    = $CONFIG_LINKS
13157   CONFIG_COMMANDS = $CONFIG_COMMANDS
13158   $ $0 $@
13159
13160 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13161 "
13162
13163 _ACEOF
13164
13165 case $ac_config_files in *"
13166 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13167 esac
13168
13169 case $ac_config_headers in *"
13170 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13171 esac
13172
13173
13174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13175 # Files that config.status was made for.
13176 config_files="$ac_config_files"
13177 config_headers="$ac_config_headers"
13178 config_commands="$ac_config_commands"
13179
13180 _ACEOF
13181
13182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13183 ac_cs_usage="\
13184 \`$as_me' instantiates files and other configuration actions
13185 from templates according to the current configuration.  Unless the files
13186 and actions are specified as TAGs, all are instantiated by default.
13187
13188 Usage: $0 [OPTION]... [TAG]...
13189
13190   -h, --help       print this help, then exit
13191   -V, --version    print version number and configuration settings, then exit
13192       --config     print configuration, then exit
13193   -q, --quiet, --silent
13194                    do not print progress messages
13195   -d, --debug      don't remove temporary files
13196       --recheck    update $as_me by reconfiguring in the same conditions
13197       --file=FILE[:TEMPLATE]
13198                    instantiate the configuration file FILE
13199       --header=FILE[:TEMPLATE]
13200                    instantiate the configuration header FILE
13201
13202 Configuration files:
13203 $config_files
13204
13205 Configuration headers:
13206 $config_headers
13207
13208 Configuration commands:
13209 $config_commands
13210
13211 Report bugs to <libzip@nih.at>."
13212
13213 _ACEOF
13214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13215 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13216 ac_cs_version="\\
13217 libzip config.status 1.0.1
13218 configured by $0, generated by GNU Autoconf 2.69,
13219   with options \\"\$ac_cs_config\\"
13220
13221 Copyright (C) 2012 Free Software Foundation, Inc.
13222 This config.status script is free software; the Free Software Foundation
13223 gives unlimited permission to copy, distribute and modify it."
13224
13225 ac_pwd='$ac_pwd'
13226 srcdir='$srcdir'
13227 INSTALL='$INSTALL'
13228 MKDIR_P='$MKDIR_P'
13229 AWK='$AWK'
13230 test -n "\$AWK" || AWK=awk
13231 _ACEOF
13232
13233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13234 # The default lists apply if the user does not specify any file.
13235 ac_need_defaults=:
13236 while test $# != 0
13237 do
13238   case $1 in
13239   --*=?*)
13240     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13241     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13242     ac_shift=:
13243     ;;
13244   --*=)
13245     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13246     ac_optarg=
13247     ac_shift=:
13248     ;;
13249   *)
13250     ac_option=$1
13251     ac_optarg=$2
13252     ac_shift=shift
13253     ;;
13254   esac
13255
13256   case $ac_option in
13257   # Handling of the options.
13258   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13259     ac_cs_recheck=: ;;
13260   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13261     $as_echo "$ac_cs_version"; exit ;;
13262   --config | --confi | --conf | --con | --co | --c )
13263     $as_echo "$ac_cs_config"; exit ;;
13264   --debug | --debu | --deb | --de | --d | -d )
13265     debug=: ;;
13266   --file | --fil | --fi | --f )
13267     $ac_shift
13268     case $ac_optarg in
13269     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13270     '') as_fn_error $? "missing file argument" ;;
13271     esac
13272     as_fn_append CONFIG_FILES " '$ac_optarg'"
13273     ac_need_defaults=false;;
13274   --header | --heade | --head | --hea )
13275     $ac_shift
13276     case $ac_optarg in
13277     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13278     esac
13279     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13280     ac_need_defaults=false;;
13281   --he | --h)
13282     # Conflict between --help and --header
13283     as_fn_error $? "ambiguous option: \`$1'
13284 Try \`$0 --help' for more information.";;
13285   --help | --hel | -h )
13286     $as_echo "$ac_cs_usage"; exit ;;
13287   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13288   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13289     ac_cs_silent=: ;;
13290
13291   # This is an error.
13292   -*) as_fn_error $? "unrecognized option: \`$1'
13293 Try \`$0 --help' for more information." ;;
13294
13295   *) as_fn_append ac_config_targets " $1"
13296      ac_need_defaults=false ;;
13297
13298   esac
13299   shift
13300 done
13301
13302 ac_configure_extra_args=
13303
13304 if $ac_cs_silent; then
13305   exec 6>/dev/null
13306   ac_configure_extra_args="$ac_configure_extra_args --silent"
13307 fi
13308
13309 _ACEOF
13310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13311 if \$ac_cs_recheck; then
13312   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13313   shift
13314   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13315   CONFIG_SHELL='$SHELL'
13316   export CONFIG_SHELL
13317   exec "\$@"
13318 fi
13319
13320 _ACEOF
13321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13322 exec 5>>config.log
13323 {
13324   echo
13325   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13326 ## Running $as_me. ##
13327 _ASBOX
13328   $as_echo "$ac_log"
13329 } >&5
13330
13331 _ACEOF
13332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13333 #
13334 # INIT-COMMANDS
13335 #
13336 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13337
13338
13339 # The HP-UX ksh and POSIX shell print the target directory to stdout
13340 # if CDPATH is set.
13341 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13342
13343 sed_quote_subst='$sed_quote_subst'
13344 double_quote_subst='$double_quote_subst'
13345 delay_variable_subst='$delay_variable_subst'
13346 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13347 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13348 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13349 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13350 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13351 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13352 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13353 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13354 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13355 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13356 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13357 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13358 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13359 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13360 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13361 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13362 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13363 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13364 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13365 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13366 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13367 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13368 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13369 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13370 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13371 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13372 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13373 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13374 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13375 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13376 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13377 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13378 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13379 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13380 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13381 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13382 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13383 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13384 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13385 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13386 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13387 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13388 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13389 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13390 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13391 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13392 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13393 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13394 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13395 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13396 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13397 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13398 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13399 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13400 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13401 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13402 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"`'
13403 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13404 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13405 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13406 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13407 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13408 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13409 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13410 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13411 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13412 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13413 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13414 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13415 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13416 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13417 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13418 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13419 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13420 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13421 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13422 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13423 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13424 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13425 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13426 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13427 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13428 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13429 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13430 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13431 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13432 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13433 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13434 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13435 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13436 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13437 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13438 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13439 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13440 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13441 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13442 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13443 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13444 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13445 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13446 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13447 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13448 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13449 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13450 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13451 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13452 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13453 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13454 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13455 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13456 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13457 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13458 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13459 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13460 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13461 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13462 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13463 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13464 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13465 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13466 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13467 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13468 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13469 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13470 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13471 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13472 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13473 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13474 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13475 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13476
13477 LTCC='$LTCC'
13478 LTCFLAGS='$LTCFLAGS'
13479 compiler='$compiler_DEFAULT'
13480
13481 # A function that is used when there is no print builtin or printf.
13482 func_fallback_echo ()
13483 {
13484   eval 'cat <<_LTECHO_EOF
13485 \$1
13486 _LTECHO_EOF'
13487 }
13488
13489 # Quote evaled strings.
13490 for var in SHELL \
13491 ECHO \
13492 PATH_SEPARATOR \
13493 SED \
13494 GREP \
13495 EGREP \
13496 FGREP \
13497 LD \
13498 NM \
13499 LN_S \
13500 lt_SP2NL \
13501 lt_NL2SP \
13502 reload_flag \
13503 OBJDUMP \
13504 deplibs_check_method \
13505 file_magic_cmd \
13506 file_magic_glob \
13507 want_nocaseglob \
13508 DLLTOOL \
13509 sharedlib_from_linklib_cmd \
13510 AR \
13511 AR_FLAGS \
13512 archiver_list_spec \
13513 STRIP \
13514 RANLIB \
13515 CC \
13516 CFLAGS \
13517 compiler \
13518 lt_cv_sys_global_symbol_pipe \
13519 lt_cv_sys_global_symbol_to_cdecl \
13520 lt_cv_sys_global_symbol_to_c_name_address \
13521 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13522 nm_file_list_spec \
13523 lt_prog_compiler_no_builtin_flag \
13524 lt_prog_compiler_pic \
13525 lt_prog_compiler_wl \
13526 lt_prog_compiler_static \
13527 lt_cv_prog_compiler_c_o \
13528 need_locks \
13529 MANIFEST_TOOL \
13530 DSYMUTIL \
13531 NMEDIT \
13532 LIPO \
13533 OTOOL \
13534 OTOOL64 \
13535 shrext_cmds \
13536 export_dynamic_flag_spec \
13537 whole_archive_flag_spec \
13538 compiler_needs_object \
13539 with_gnu_ld \
13540 allow_undefined_flag \
13541 no_undefined_flag \
13542 hardcode_libdir_flag_spec \
13543 hardcode_libdir_separator \
13544 exclude_expsyms \
13545 include_expsyms \
13546 file_list_spec \
13547 variables_saved_for_relink \
13548 libname_spec \
13549 library_names_spec \
13550 soname_spec \
13551 install_override_mode \
13552 finish_eval \
13553 old_striplib \
13554 striplib; do
13555     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13556     *[\\\\\\\`\\"\\\$]*)
13557       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13558       ;;
13559     *)
13560       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13561       ;;
13562     esac
13563 done
13564
13565 # Double-quote double-evaled strings.
13566 for var in reload_cmds \
13567 old_postinstall_cmds \
13568 old_postuninstall_cmds \
13569 old_archive_cmds \
13570 extract_expsyms_cmds \
13571 old_archive_from_new_cmds \
13572 old_archive_from_expsyms_cmds \
13573 archive_cmds \
13574 archive_expsym_cmds \
13575 module_cmds \
13576 module_expsym_cmds \
13577 export_symbols_cmds \
13578 prelink_cmds \
13579 postlink_cmds \
13580 postinstall_cmds \
13581 postuninstall_cmds \
13582 finish_cmds \
13583 sys_lib_search_path_spec \
13584 sys_lib_dlsearch_path_spec; do
13585     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13586     *[\\\\\\\`\\"\\\$]*)
13587       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13588       ;;
13589     *)
13590       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13591       ;;
13592     esac
13593 done
13594
13595 ac_aux_dir='$ac_aux_dir'
13596 xsi_shell='$xsi_shell'
13597 lt_shell_append='$lt_shell_append'
13598
13599 # See if we are running on zsh, and set the options which allow our
13600 # commands through without removal of \ escapes INIT.
13601 if test -n "\${ZSH_VERSION+set}" ; then
13602    setopt NO_GLOB_SUBST
13603 fi
13604
13605
13606     PACKAGE='$PACKAGE'
13607     VERSION='$VERSION'
13608     TIMESTAMP='$TIMESTAMP'
13609     RM='$RM'
13610     ofile='$ofile'
13611
13612
13613
13614
13615 _ACEOF
13616
13617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13618
13619 # Handling of arguments.
13620 for ac_config_target in $ac_config_targets
13621 do
13622   case $ac_config_target in
13623     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13624     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13625     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13626     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13627     "libzip.pc") CONFIG_FILES="$CONFIG_FILES libzip.pc" ;;
13628     "libzip-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libzip-uninstalled.pc" ;;
13629     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13630     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13631     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13632     "regress/Makefile") CONFIG_FILES="$CONFIG_FILES regress/Makefile" ;;
13633     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13634
13635   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13636   esac
13637 done
13638
13639
13640 # If the user did not use the arguments to specify the items to instantiate,
13641 # then the envvar interface is used.  Set only those that are not.
13642 # We use the long form for the default assignment because of an extremely
13643 # bizarre bug on SunOS 4.1.3.
13644 if $ac_need_defaults; then
13645   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13646   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13647   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13648 fi
13649
13650 # Have a temporary directory for convenience.  Make it in the build tree
13651 # simply because there is no reason against having it here, and in addition,
13652 # creating and moving files from /tmp can sometimes cause problems.
13653 # Hook for its removal unless debugging.
13654 # Note that there is a small window in which the directory will not be cleaned:
13655 # after its creation but before its name has been assigned to `$tmp'.
13656 $debug ||
13657 {
13658   tmp= ac_tmp=
13659   trap 'exit_status=$?
13660   : "${ac_tmp:=$tmp}"
13661   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13662 ' 0
13663   trap 'as_fn_exit 1' 1 2 13 15
13664 }
13665 # Create a (secure) tmp directory for tmp files.
13666
13667 {
13668   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13669   test -d "$tmp"
13670 }  ||
13671 {
13672   tmp=./conf$$-$RANDOM
13673   (umask 077 && mkdir "$tmp")
13674 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13675 ac_tmp=$tmp
13676
13677 # Set up the scripts for CONFIG_FILES section.
13678 # No need to generate them if there are no CONFIG_FILES.
13679 # This happens for instance with `./config.status config.h'.
13680 if test -n "$CONFIG_FILES"; then
13681
13682
13683 ac_cr=`echo X | tr X '\015'`
13684 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13685 # But we know of no other shell where ac_cr would be empty at this
13686 # point, so we can use a bashism as a fallback.
13687 if test "x$ac_cr" = x; then
13688   eval ac_cr=\$\'\\r\'
13689 fi
13690 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13691 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13692   ac_cs_awk_cr='\\r'
13693 else
13694   ac_cs_awk_cr=$ac_cr
13695 fi
13696
13697 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13698 _ACEOF
13699
13700
13701 {
13702   echo "cat >conf$$subs.awk <<_ACEOF" &&
13703   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13704   echo "_ACEOF"
13705 } >conf$$subs.sh ||
13706   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13707 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13708 ac_delim='%!_!# '
13709 for ac_last_try in false false false false false :; do
13710   . ./conf$$subs.sh ||
13711     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13712
13713   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13714   if test $ac_delim_n = $ac_delim_num; then
13715     break
13716   elif $ac_last_try; then
13717     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13718   else
13719     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13720   fi
13721 done
13722 rm -f conf$$subs.sh
13723
13724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13725 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13726 _ACEOF
13727 sed -n '
13728 h
13729 s/^/S["/; s/!.*/"]=/
13730 p
13731 g
13732 s/^[^!]*!//
13733 :repl
13734 t repl
13735 s/'"$ac_delim"'$//
13736 t delim
13737 :nl
13738 h
13739 s/\(.\{148\}\)..*/\1/
13740 t more1
13741 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13742 p
13743 n
13744 b repl
13745 :more1
13746 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13747 p
13748 g
13749 s/.\{148\}//
13750 t nl
13751 :delim
13752 h
13753 s/\(.\{148\}\)..*/\1/
13754 t more2
13755 s/["\\]/\\&/g; s/^/"/; s/$/"/
13756 p
13757 b
13758 :more2
13759 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13760 p
13761 g
13762 s/.\{148\}//
13763 t delim
13764 ' <conf$$subs.awk | sed '
13765 /^[^""]/{
13766   N
13767   s/\n//
13768 }
13769 ' >>$CONFIG_STATUS || ac_write_fail=1
13770 rm -f conf$$subs.awk
13771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13772 _ACAWK
13773 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13774   for (key in S) S_is_set[key] = 1
13775   FS = "\a"
13776
13777 }
13778 {
13779   line = $ 0
13780   nfields = split(line, field, "@")
13781   substed = 0
13782   len = length(field[1])
13783   for (i = 2; i < nfields; i++) {
13784     key = field[i]
13785     keylen = length(key)
13786     if (S_is_set[key]) {
13787       value = S[key]
13788       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13789       len += length(value) + length(field[++i])
13790       substed = 1
13791     } else
13792       len += 1 + keylen
13793   }
13794
13795   print line
13796 }
13797
13798 _ACAWK
13799 _ACEOF
13800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13801 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13802   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13803 else
13804   cat
13805 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13806   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13807 _ACEOF
13808
13809 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13810 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13811 # trailing colons and then remove the whole line if VPATH becomes empty
13812 # (actually we leave an empty line to preserve line numbers).
13813 if test "x$srcdir" = x.; then
13814   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13815 h
13816 s///
13817 s/^/:/
13818 s/[      ]*$/:/
13819 s/:\$(srcdir):/:/g
13820 s/:\${srcdir}:/:/g
13821 s/:@srcdir@:/:/g
13822 s/^:*//
13823 s/:*$//
13824 x
13825 s/\(=[   ]*\).*/\1/
13826 G
13827 s/\n//
13828 s/^[^=]*=[       ]*$//
13829 }'
13830 fi
13831
13832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13833 fi # test -n "$CONFIG_FILES"
13834
13835 # Set up the scripts for CONFIG_HEADERS section.
13836 # No need to generate them if there are no CONFIG_HEADERS.
13837 # This happens for instance with `./config.status Makefile'.
13838 if test -n "$CONFIG_HEADERS"; then
13839 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13840 BEGIN {
13841 _ACEOF
13842
13843 # Transform confdefs.h into an awk script `defines.awk', embedded as
13844 # here-document in config.status, that substitutes the proper values into
13845 # config.h.in to produce config.h.
13846
13847 # Create a delimiter string that does not exist in confdefs.h, to ease
13848 # handling of long lines.
13849 ac_delim='%!_!# '
13850 for ac_last_try in false false :; do
13851   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13852   if test -z "$ac_tt"; then
13853     break
13854   elif $ac_last_try; then
13855     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13856   else
13857     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13858   fi
13859 done
13860
13861 # For the awk script, D is an array of macro values keyed by name,
13862 # likewise P contains macro parameters if any.  Preserve backslash
13863 # newline sequences.
13864
13865 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13866 sed -n '
13867 s/.\{148\}/&'"$ac_delim"'/g
13868 t rset
13869 :rset
13870 s/^[     ]*#[    ]*define[       ][      ]*/ /
13871 t def
13872 d
13873 :def
13874 s/\\$//
13875 t bsnl
13876 s/["\\]/\\&/g
13877 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13878 D["\1"]=" \3"/p
13879 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13880 d
13881 :bsnl
13882 s/["\\]/\\&/g
13883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13884 D["\1"]=" \3\\\\\\n"\\/p
13885 t cont
13886 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13887 t cont
13888 d
13889 :cont
13890 n
13891 s/.\{148\}/&'"$ac_delim"'/g
13892 t clear
13893 :clear
13894 s/\\$//
13895 t bsnlc
13896 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13897 d
13898 :bsnlc
13899 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13900 b cont
13901 ' <confdefs.h | sed '
13902 s/'"$ac_delim"'/"\\\
13903 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13904
13905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13906   for (key in D) D_is_set[key] = 1
13907   FS = "\a"
13908 }
13909 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13910   line = \$ 0
13911   split(line, arg, " ")
13912   if (arg[1] == "#") {
13913     defundef = arg[2]
13914     mac1 = arg[3]
13915   } else {
13916     defundef = substr(arg[1], 2)
13917     mac1 = arg[2]
13918   }
13919   split(mac1, mac2, "(") #)
13920   macro = mac2[1]
13921   prefix = substr(line, 1, index(line, defundef) - 1)
13922   if (D_is_set[macro]) {
13923     # Preserve the white space surrounding the "#".
13924     print prefix "define", macro P[macro] D[macro]
13925     next
13926   } else {
13927     # Replace #undef with comments.  This is necessary, for example,
13928     # in the case of _POSIX_SOURCE, which is predefined and required
13929     # on some systems where configure will not decide to define it.
13930     if (defundef == "undef") {
13931       print "/*", prefix defundef, macro, "*/"
13932       next
13933     }
13934   }
13935 }
13936 { print }
13937 _ACAWK
13938 _ACEOF
13939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13940   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13941 fi # test -n "$CONFIG_HEADERS"
13942
13943
13944 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13945 shift
13946 for ac_tag
13947 do
13948   case $ac_tag in
13949   :[FHLC]) ac_mode=$ac_tag; continue;;
13950   esac
13951   case $ac_mode$ac_tag in
13952   :[FHL]*:*);;
13953   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13954   :[FH]-) ac_tag=-:-;;
13955   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13956   esac
13957   ac_save_IFS=$IFS
13958   IFS=:
13959   set x $ac_tag
13960   IFS=$ac_save_IFS
13961   shift
13962   ac_file=$1
13963   shift
13964
13965   case $ac_mode in
13966   :L) ac_source=$1;;
13967   :[FH])
13968     ac_file_inputs=
13969     for ac_f
13970     do
13971       case $ac_f in
13972       -) ac_f="$ac_tmp/stdin";;
13973       *) # Look for the file first in the build tree, then in the source tree
13974          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13975          # because $ac_f cannot contain `:'.
13976          test -f "$ac_f" ||
13977            case $ac_f in
13978            [\\/$]*) false;;
13979            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13980            esac ||
13981            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13982       esac
13983       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13984       as_fn_append ac_file_inputs " '$ac_f'"
13985     done
13986
13987     # Let's still pretend it is `configure' which instantiates (i.e., don't
13988     # use $as_me), people would be surprised to read:
13989     #    /* config.h.  Generated by config.status.  */
13990     configure_input='Generated from '`
13991           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13992         `' by configure.'
13993     if test x"$ac_file" != x-; then
13994       configure_input="$ac_file.  $configure_input"
13995       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13996 $as_echo "$as_me: creating $ac_file" >&6;}
13997     fi
13998     # Neutralize special characters interpreted by sed in replacement strings.
13999     case $configure_input in #(
14000     *\&* | *\|* | *\\* )
14001        ac_sed_conf_input=`$as_echo "$configure_input" |
14002        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14003     *) ac_sed_conf_input=$configure_input;;
14004     esac
14005
14006     case $ac_tag in
14007     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14008       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14009     esac
14010     ;;
14011   esac
14012
14013   ac_dir=`$as_dirname -- "$ac_file" ||
14014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14015          X"$ac_file" : 'X\(//\)[^/]' \| \
14016          X"$ac_file" : 'X\(//\)$' \| \
14017          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14018 $as_echo X"$ac_file" |
14019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14020             s//\1/
14021             q
14022           }
14023           /^X\(\/\/\)[^/].*/{
14024             s//\1/
14025             q
14026           }
14027           /^X\(\/\/\)$/{
14028             s//\1/
14029             q
14030           }
14031           /^X\(\/\).*/{
14032             s//\1/
14033             q
14034           }
14035           s/.*/./; q'`
14036   as_dir="$ac_dir"; as_fn_mkdir_p
14037   ac_builddir=.
14038
14039 case "$ac_dir" in
14040 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14041 *)
14042   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14043   # A ".." for each directory in $ac_dir_suffix.
14044   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14045   case $ac_top_builddir_sub in
14046   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14047   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14048   esac ;;
14049 esac
14050 ac_abs_top_builddir=$ac_pwd
14051 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14052 # for backward compatibility:
14053 ac_top_builddir=$ac_top_build_prefix
14054
14055 case $srcdir in
14056   .)  # We are building in place.
14057     ac_srcdir=.
14058     ac_top_srcdir=$ac_top_builddir_sub
14059     ac_abs_top_srcdir=$ac_pwd ;;
14060   [\\/]* | ?:[\\/]* )  # Absolute name.
14061     ac_srcdir=$srcdir$ac_dir_suffix;
14062     ac_top_srcdir=$srcdir
14063     ac_abs_top_srcdir=$srcdir ;;
14064   *) # Relative name.
14065     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14066     ac_top_srcdir=$ac_top_build_prefix$srcdir
14067     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14068 esac
14069 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14070
14071
14072   case $ac_mode in
14073   :F)
14074   #
14075   # CONFIG_FILE
14076   #
14077
14078   case $INSTALL in
14079   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14080   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14081   esac
14082   ac_MKDIR_P=$MKDIR_P
14083   case $MKDIR_P in
14084   [\\/$]* | ?:[\\/]* ) ;;
14085   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14086   esac
14087 _ACEOF
14088
14089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14090 # If the template does not know about datarootdir, expand it.
14091 # FIXME: This hack should be removed a few years after 2.60.
14092 ac_datarootdir_hack=; ac_datarootdir_seen=
14093 ac_sed_dataroot='
14094 /datarootdir/ {
14095   p
14096   q
14097 }
14098 /@datadir@/p
14099 /@docdir@/p
14100 /@infodir@/p
14101 /@localedir@/p
14102 /@mandir@/p'
14103 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14104 *datarootdir*) ac_datarootdir_seen=yes;;
14105 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14106   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14107 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14108 _ACEOF
14109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14110   ac_datarootdir_hack='
14111   s&@datadir@&$datadir&g
14112   s&@docdir@&$docdir&g
14113   s&@infodir@&$infodir&g
14114   s&@localedir@&$localedir&g
14115   s&@mandir@&$mandir&g
14116   s&\\\${datarootdir}&$datarootdir&g' ;;
14117 esac
14118 _ACEOF
14119
14120 # Neutralize VPATH when `$srcdir' = `.'.
14121 # Shell code in configure.ac might set extrasub.
14122 # FIXME: do we really want to maintain this feature?
14123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14124 ac_sed_extra="$ac_vpsub
14125 $extrasub
14126 _ACEOF
14127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14128 :t
14129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14130 s|@configure_input@|$ac_sed_conf_input|;t t
14131 s&@top_builddir@&$ac_top_builddir_sub&;t t
14132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14133 s&@srcdir@&$ac_srcdir&;t t
14134 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14135 s&@top_srcdir@&$ac_top_srcdir&;t t
14136 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14137 s&@builddir@&$ac_builddir&;t t
14138 s&@abs_builddir@&$ac_abs_builddir&;t t
14139 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14140 s&@INSTALL@&$ac_INSTALL&;t t
14141 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14142 $ac_datarootdir_hack
14143 "
14144 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14145   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14146
14147 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14148   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14149   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14150       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14151   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14152 which seems to be undefined.  Please make sure it is defined" >&5
14153 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14154 which seems to be undefined.  Please make sure it is defined" >&2;}
14155
14156   rm -f "$ac_tmp/stdin"
14157   case $ac_file in
14158   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14159   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14160   esac \
14161   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14162  ;;
14163   :H)
14164   #
14165   # CONFIG_HEADER
14166   #
14167   if test x"$ac_file" != x-; then
14168     {
14169       $as_echo "/* $configure_input  */" \
14170       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14171     } >"$ac_tmp/config.h" \
14172       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14173     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14174       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14175 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14176     else
14177       rm -f "$ac_file"
14178       mv "$ac_tmp/config.h" "$ac_file" \
14179         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14180     fi
14181   else
14182     $as_echo "/* $configure_input  */" \
14183       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14184       || as_fn_error $? "could not create -" "$LINENO" 5
14185   fi
14186 # Compute "$ac_file"'s index in $config_headers.
14187 _am_arg="$ac_file"
14188 _am_stamp_count=1
14189 for _am_header in $config_headers :; do
14190   case $_am_header in
14191     $_am_arg | $_am_arg:* )
14192       break ;;
14193     * )
14194       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14195   esac
14196 done
14197 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14198 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14199          X"$_am_arg" : 'X\(//\)[^/]' \| \
14200          X"$_am_arg" : 'X\(//\)$' \| \
14201          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14202 $as_echo X"$_am_arg" |
14203     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14204             s//\1/
14205             q
14206           }
14207           /^X\(\/\/\)[^/].*/{
14208             s//\1/
14209             q
14210           }
14211           /^X\(\/\/\)$/{
14212             s//\1/
14213             q
14214           }
14215           /^X\(\/\).*/{
14216             s//\1/
14217             q
14218           }
14219           s/.*/./; q'`/stamp-h$_am_stamp_count
14220  ;;
14221
14222   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14223 $as_echo "$as_me: executing $ac_file commands" >&6;}
14224  ;;
14225   esac
14226
14227
14228   case $ac_file$ac_mode in
14229     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14230   # Older Autoconf quotes --file arguments for eval, but not when files
14231   # are listed without --file.  Let's play safe and only enable the eval
14232   # if we detect the quoting.
14233   case $CONFIG_FILES in
14234   *\'*) eval set x "$CONFIG_FILES" ;;
14235   *)   set x $CONFIG_FILES ;;
14236   esac
14237   shift
14238   for mf
14239   do
14240     # Strip MF so we end up with the name of the file.
14241     mf=`echo "$mf" | sed -e 's/:.*$//'`
14242     # Check whether this is an Automake generated Makefile or not.
14243     # We used to match only the files named 'Makefile.in', but
14244     # some people rename them; so instead we look at the file content.
14245     # Grep'ing the first line is not enough: some people post-process
14246     # each Makefile.in and add a new line on top of each file to say so.
14247     # Grep'ing the whole file is not good either: AIX grep has a line
14248     # limit of 2048, but all sed's we know have understand at least 4000.
14249     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14250       dirpart=`$as_dirname -- "$mf" ||
14251 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14252          X"$mf" : 'X\(//\)[^/]' \| \
14253          X"$mf" : 'X\(//\)$' \| \
14254          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14255 $as_echo X"$mf" |
14256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14257             s//\1/
14258             q
14259           }
14260           /^X\(\/\/\)[^/].*/{
14261             s//\1/
14262             q
14263           }
14264           /^X\(\/\/\)$/{
14265             s//\1/
14266             q
14267           }
14268           /^X\(\/\).*/{
14269             s//\1/
14270             q
14271           }
14272           s/.*/./; q'`
14273     else
14274       continue
14275     fi
14276     # Extract the definition of DEPDIR, am__include, and am__quote
14277     # from the Makefile without running 'make'.
14278     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14279     test -z "$DEPDIR" && continue
14280     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14281     test -z "$am__include" && continue
14282     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14283     # Find all dependency output files, they are included files with
14284     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14285     # simplest approach to changing $(DEPDIR) to its actual value in the
14286     # expansion.
14287     for file in `sed -n "
14288       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14289          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14290       # Make sure the directory exists.
14291       test -f "$dirpart/$file" && continue
14292       fdir=`$as_dirname -- "$file" ||
14293 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14294          X"$file" : 'X\(//\)[^/]' \| \
14295          X"$file" : 'X\(//\)$' \| \
14296          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14297 $as_echo X"$file" |
14298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14299             s//\1/
14300             q
14301           }
14302           /^X\(\/\/\)[^/].*/{
14303             s//\1/
14304             q
14305           }
14306           /^X\(\/\/\)$/{
14307             s//\1/
14308             q
14309           }
14310           /^X\(\/\).*/{
14311             s//\1/
14312             q
14313           }
14314           s/.*/./; q'`
14315       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14316       # echo "creating $dirpart/$file"
14317       echo '# dummy' > "$dirpart/$file"
14318     done
14319   done
14320 }
14321  ;;
14322     "libtool":C)
14323
14324     # See if we are running on zsh, and set the options which allow our
14325     # commands through without removal of \ escapes.
14326     if test -n "${ZSH_VERSION+set}" ; then
14327       setopt NO_GLOB_SUBST
14328     fi
14329
14330     cfgfile="${ofile}T"
14331     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14332     $RM "$cfgfile"
14333
14334     cat <<_LT_EOF >> "$cfgfile"
14335 #! $SHELL
14336
14337 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14338 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14340 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14341 #
14342 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14343 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14344 #                 Foundation, Inc.
14345 #   Written by Gordon Matzigkeit, 1996
14346 #
14347 #   This file is part of GNU Libtool.
14348 #
14349 # GNU Libtool is free software; you can redistribute it and/or
14350 # modify it under the terms of the GNU General Public License as
14351 # published by the Free Software Foundation; either version 2 of
14352 # the License, or (at your option) any later version.
14353 #
14354 # As a special exception to the GNU General Public License,
14355 # if you distribute this file as part of a program or library that
14356 # is built using GNU Libtool, you may include this file under the
14357 # same distribution terms that you use for the rest of that program.
14358 #
14359 # GNU Libtool is distributed in the hope that it will be useful,
14360 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14361 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14362 # GNU General Public License for more details.
14363 #
14364 # You should have received a copy of the GNU General Public License
14365 # along with GNU Libtool; see the file COPYING.  If not, a copy
14366 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14367 # obtained by writing to the Free Software Foundation, Inc.,
14368 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14369
14370
14371 # The names of the tagged configurations supported by this script.
14372 available_tags=""
14373
14374 # ### BEGIN LIBTOOL CONFIG
14375
14376 # Which release of libtool.m4 was used?
14377 macro_version=$macro_version
14378 macro_revision=$macro_revision
14379
14380 # Whether or not to build shared libraries.
14381 build_libtool_libs=$enable_shared
14382
14383 # Whether or not to build static libraries.
14384 build_old_libs=$enable_static
14385
14386 # What type of objects to build.
14387 pic_mode=$pic_mode
14388
14389 # Whether or not to optimize for fast installation.
14390 fast_install=$enable_fast_install
14391
14392 # Shell to use when invoking shell scripts.
14393 SHELL=$lt_SHELL
14394
14395 # An echo program that protects backslashes.
14396 ECHO=$lt_ECHO
14397
14398 # The PATH separator for the build system.
14399 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14400
14401 # The host system.
14402 host_alias=$host_alias
14403 host=$host
14404 host_os=$host_os
14405
14406 # The build system.
14407 build_alias=$build_alias
14408 build=$build
14409 build_os=$build_os
14410
14411 # A sed program that does not truncate output.
14412 SED=$lt_SED
14413
14414 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14415 Xsed="\$SED -e 1s/^X//"
14416
14417 # A grep program that handles long lines.
14418 GREP=$lt_GREP
14419
14420 # An ERE matcher.
14421 EGREP=$lt_EGREP
14422
14423 # A literal string matcher.
14424 FGREP=$lt_FGREP
14425
14426 # A BSD- or MS-compatible name lister.
14427 NM=$lt_NM
14428
14429 # Whether we need soft or hard links.
14430 LN_S=$lt_LN_S
14431
14432 # What is the maximum length of a command?
14433 max_cmd_len=$max_cmd_len
14434
14435 # Object file suffix (normally "o").
14436 objext=$ac_objext
14437
14438 # Executable file suffix (normally "").
14439 exeext=$exeext
14440
14441 # whether the shell understands "unset".
14442 lt_unset=$lt_unset
14443
14444 # turn spaces into newlines.
14445 SP2NL=$lt_lt_SP2NL
14446
14447 # turn newlines into spaces.
14448 NL2SP=$lt_lt_NL2SP
14449
14450 # convert \$build file names to \$host format.
14451 to_host_file_cmd=$lt_cv_to_host_file_cmd
14452
14453 # convert \$build files to toolchain format.
14454 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14455
14456 # An object symbol dumper.
14457 OBJDUMP=$lt_OBJDUMP
14458
14459 # Method to check whether dependent libraries are shared objects.
14460 deplibs_check_method=$lt_deplibs_check_method
14461
14462 # Command to use when deplibs_check_method = "file_magic".
14463 file_magic_cmd=$lt_file_magic_cmd
14464
14465 # How to find potential files when deplibs_check_method = "file_magic".
14466 file_magic_glob=$lt_file_magic_glob
14467
14468 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14469 want_nocaseglob=$lt_want_nocaseglob
14470
14471 # DLL creation program.
14472 DLLTOOL=$lt_DLLTOOL
14473
14474 # Command to associate shared and link libraries.
14475 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14476
14477 # The archiver.
14478 AR=$lt_AR
14479
14480 # Flags to create an archive.
14481 AR_FLAGS=$lt_AR_FLAGS
14482
14483 # How to feed a file listing to the archiver.
14484 archiver_list_spec=$lt_archiver_list_spec
14485
14486 # A symbol stripping program.
14487 STRIP=$lt_STRIP
14488
14489 # Commands used to install an old-style archive.
14490 RANLIB=$lt_RANLIB
14491 old_postinstall_cmds=$lt_old_postinstall_cmds
14492 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14493
14494 # Whether to use a lock for old archive extraction.
14495 lock_old_archive_extraction=$lock_old_archive_extraction
14496
14497 # A C compiler.
14498 LTCC=$lt_CC
14499
14500 # LTCC compiler flags.
14501 LTCFLAGS=$lt_CFLAGS
14502
14503 # Take the output of nm and produce a listing of raw symbols and C names.
14504 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14505
14506 # Transform the output of nm in a proper C declaration.
14507 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14508
14509 # Transform the output of nm in a C name address pair.
14510 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14511
14512 # Transform the output of nm in a C name address pair when lib prefix is needed.
14513 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14514
14515 # Specify filename containing input files for \$NM.
14516 nm_file_list_spec=$lt_nm_file_list_spec
14517
14518 # The root where to search for dependent libraries,and in which our libraries should be installed.
14519 lt_sysroot=$lt_sysroot
14520
14521 # The name of the directory that contains temporary libtool files.
14522 objdir=$objdir
14523
14524 # Used to examine libraries when file_magic_cmd begins with "file".
14525 MAGIC_CMD=$MAGIC_CMD
14526
14527 # Must we lock files when doing compilation?
14528 need_locks=$lt_need_locks
14529
14530 # Manifest tool.
14531 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14532
14533 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14534 DSYMUTIL=$lt_DSYMUTIL
14535
14536 # Tool to change global to local symbols on Mac OS X.
14537 NMEDIT=$lt_NMEDIT
14538
14539 # Tool to manipulate fat objects and archives on Mac OS X.
14540 LIPO=$lt_LIPO
14541
14542 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14543 OTOOL=$lt_OTOOL
14544
14545 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14546 OTOOL64=$lt_OTOOL64
14547
14548 # Old archive suffix (normally "a").
14549 libext=$libext
14550
14551 # Shared library suffix (normally ".so").
14552 shrext_cmds=$lt_shrext_cmds
14553
14554 # The commands to extract the exported symbol list from a shared archive.
14555 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14556
14557 # Variables whose values should be saved in libtool wrapper scripts and
14558 # restored at link time.
14559 variables_saved_for_relink=$lt_variables_saved_for_relink
14560
14561 # Do we need the "lib" prefix for modules?
14562 need_lib_prefix=$need_lib_prefix
14563
14564 # Do we need a version for libraries?
14565 need_version=$need_version
14566
14567 # Library versioning type.
14568 version_type=$version_type
14569
14570 # Shared library runtime path variable.
14571 runpath_var=$runpath_var
14572
14573 # Shared library path variable.
14574 shlibpath_var=$shlibpath_var
14575
14576 # Is shlibpath searched before the hard-coded library search path?
14577 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14578
14579 # Format of library name prefix.
14580 libname_spec=$lt_libname_spec
14581
14582 # List of archive names.  First name is the real one, the rest are links.
14583 # The last name is the one that the linker finds with -lNAME
14584 library_names_spec=$lt_library_names_spec
14585
14586 # The coded name of the library, if different from the real name.
14587 soname_spec=$lt_soname_spec
14588
14589 # Permission mode override for installation of shared libraries.
14590 install_override_mode=$lt_install_override_mode
14591
14592 # Command to use after installation of a shared archive.
14593 postinstall_cmds=$lt_postinstall_cmds
14594
14595 # Command to use after uninstallation of a shared archive.
14596 postuninstall_cmds=$lt_postuninstall_cmds
14597
14598 # Commands used to finish a libtool library installation in a directory.
14599 finish_cmds=$lt_finish_cmds
14600
14601 # As "finish_cmds", except a single script fragment to be evaled but
14602 # not shown.
14603 finish_eval=$lt_finish_eval
14604
14605 # Whether we should hardcode library paths into libraries.
14606 hardcode_into_libs=$hardcode_into_libs
14607
14608 # Compile-time system search path for libraries.
14609 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14610
14611 # Run-time system search path for libraries.
14612 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14613
14614 # Whether dlopen is supported.
14615 dlopen_support=$enable_dlopen
14616
14617 # Whether dlopen of programs is supported.
14618 dlopen_self=$enable_dlopen_self
14619
14620 # Whether dlopen of statically linked programs is supported.
14621 dlopen_self_static=$enable_dlopen_self_static
14622
14623 # Commands to strip libraries.
14624 old_striplib=$lt_old_striplib
14625 striplib=$lt_striplib
14626
14627
14628 # The linker used to build libraries.
14629 LD=$lt_LD
14630
14631 # How to create reloadable object files.
14632 reload_flag=$lt_reload_flag
14633 reload_cmds=$lt_reload_cmds
14634
14635 # Commands used to build an old-style archive.
14636 old_archive_cmds=$lt_old_archive_cmds
14637
14638 # A language specific compiler.
14639 CC=$lt_compiler
14640
14641 # Is the compiler the GNU compiler?
14642 with_gcc=$GCC
14643
14644 # Compiler flag to turn off builtin functions.
14645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14646
14647 # Additional compiler flags for building library objects.
14648 pic_flag=$lt_lt_prog_compiler_pic
14649
14650 # How to pass a linker flag through the compiler.
14651 wl=$lt_lt_prog_compiler_wl
14652
14653 # Compiler flag to prevent dynamic linking.
14654 link_static_flag=$lt_lt_prog_compiler_static
14655
14656 # Does compiler simultaneously support -c and -o options?
14657 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14658
14659 # Whether or not to add -lc for building shared libraries.
14660 build_libtool_need_lc=$archive_cmds_need_lc
14661
14662 # Whether or not to disallow shared libs when runtime libs are static.
14663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14664
14665 # Compiler flag to allow reflexive dlopens.
14666 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14667
14668 # Compiler flag to generate shared objects directly from archives.
14669 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14670
14671 # Whether the compiler copes with passing no objects directly.
14672 compiler_needs_object=$lt_compiler_needs_object
14673
14674 # Create an old-style archive from a shared archive.
14675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14676
14677 # Create a temporary old-style archive to link instead of a shared archive.
14678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14679
14680 # Commands used to build a shared archive.
14681 archive_cmds=$lt_archive_cmds
14682 archive_expsym_cmds=$lt_archive_expsym_cmds
14683
14684 # Commands used to build a loadable module if different from building
14685 # a shared archive.
14686 module_cmds=$lt_module_cmds
14687 module_expsym_cmds=$lt_module_expsym_cmds
14688
14689 # Whether we are building with GNU ld or not.
14690 with_gnu_ld=$lt_with_gnu_ld
14691
14692 # Flag that allows shared libraries with undefined symbols to be built.
14693 allow_undefined_flag=$lt_allow_undefined_flag
14694
14695 # Flag that enforces no undefined symbols.
14696 no_undefined_flag=$lt_no_undefined_flag
14697
14698 # Flag to hardcode \$libdir into a binary during linking.
14699 # This must work even if \$libdir does not exist
14700 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14701
14702 # Whether we need a single "-rpath" flag with a separated argument.
14703 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14704
14705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14706 # DIR into the resulting binary.
14707 hardcode_direct=$hardcode_direct
14708
14709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14710 # DIR into the resulting binary and the resulting library dependency is
14711 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14712 # library is relocated.
14713 hardcode_direct_absolute=$hardcode_direct_absolute
14714
14715 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14716 # into the resulting binary.
14717 hardcode_minus_L=$hardcode_minus_L
14718
14719 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14720 # into the resulting binary.
14721 hardcode_shlibpath_var=$hardcode_shlibpath_var
14722
14723 # Set to "yes" if building a shared library automatically hardcodes DIR
14724 # into the library and all subsequent libraries and executables linked
14725 # against it.
14726 hardcode_automatic=$hardcode_automatic
14727
14728 # Set to yes if linker adds runtime paths of dependent libraries
14729 # to runtime path list.
14730 inherit_rpath=$inherit_rpath
14731
14732 # Whether libtool must link a program against all its dependency libraries.
14733 link_all_deplibs=$link_all_deplibs
14734
14735 # Set to "yes" if exported symbols are required.
14736 always_export_symbols=$always_export_symbols
14737
14738 # The commands to list exported symbols.
14739 export_symbols_cmds=$lt_export_symbols_cmds
14740
14741 # Symbols that should not be listed in the preloaded symbols.
14742 exclude_expsyms=$lt_exclude_expsyms
14743
14744 # Symbols that must always be exported.
14745 include_expsyms=$lt_include_expsyms
14746
14747 # Commands necessary for linking programs (against libraries) with templates.
14748 prelink_cmds=$lt_prelink_cmds
14749
14750 # Commands necessary for finishing linking programs.
14751 postlink_cmds=$lt_postlink_cmds
14752
14753 # Specify filename containing input files.
14754 file_list_spec=$lt_file_list_spec
14755
14756 # How to hardcode a shared library path into an executable.
14757 hardcode_action=$hardcode_action
14758
14759 # ### END LIBTOOL CONFIG
14760
14761 _LT_EOF
14762
14763   case $host_os in
14764   aix3*)
14765     cat <<\_LT_EOF >> "$cfgfile"
14766 # AIX sometimes has problems with the GCC collect2 program.  For some
14767 # reason, if we set the COLLECT_NAMES environment variable, the problems
14768 # vanish in a puff of smoke.
14769 if test "X${COLLECT_NAMES+set}" != Xset; then
14770   COLLECT_NAMES=
14771   export COLLECT_NAMES
14772 fi
14773 _LT_EOF
14774     ;;
14775   esac
14776
14777
14778 ltmain="$ac_aux_dir/ltmain.sh"
14779
14780
14781   # We use sed instead of cat because bash on DJGPP gets confused if
14782   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14783   # text mode, it properly converts lines to CR/LF.  This bash problem
14784   # is reportedly fixed, but why not run on old versions too?
14785   sed '$q' "$ltmain" >> "$cfgfile" \
14786      || (rm -f "$cfgfile"; exit 1)
14787
14788   if test x"$xsi_shell" = xyes; then
14789   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14790 func_dirname ()\
14791 {\
14792 \    case ${1} in\
14793 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14794 \      *  ) func_dirname_result="${3}" ;;\
14795 \    esac\
14796 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14797   && mv -f "$cfgfile.tmp" "$cfgfile" \
14798     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14799 test 0 -eq $? || _lt_function_replace_fail=:
14800
14801
14802   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14803 func_basename ()\
14804 {\
14805 \    func_basename_result="${1##*/}"\
14806 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14807   && mv -f "$cfgfile.tmp" "$cfgfile" \
14808     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14809 test 0 -eq $? || _lt_function_replace_fail=:
14810
14811
14812   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14813 func_dirname_and_basename ()\
14814 {\
14815 \    case ${1} in\
14816 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14817 \      *  ) func_dirname_result="${3}" ;;\
14818 \    esac\
14819 \    func_basename_result="${1##*/}"\
14820 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14821   && mv -f "$cfgfile.tmp" "$cfgfile" \
14822     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14823 test 0 -eq $? || _lt_function_replace_fail=:
14824
14825
14826   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14827 func_stripname ()\
14828 {\
14829 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14830 \    # positional parameters, so assign one to ordinary parameter first.\
14831 \    func_stripname_result=${3}\
14832 \    func_stripname_result=${func_stripname_result#"${1}"}\
14833 \    func_stripname_result=${func_stripname_result%"${2}"}\
14834 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14835   && mv -f "$cfgfile.tmp" "$cfgfile" \
14836     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14837 test 0 -eq $? || _lt_function_replace_fail=:
14838
14839
14840   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14841 func_split_long_opt ()\
14842 {\
14843 \    func_split_long_opt_name=${1%%=*}\
14844 \    func_split_long_opt_arg=${1#*=}\
14845 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14846   && mv -f "$cfgfile.tmp" "$cfgfile" \
14847     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14848 test 0 -eq $? || _lt_function_replace_fail=:
14849
14850
14851   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14852 func_split_short_opt ()\
14853 {\
14854 \    func_split_short_opt_arg=${1#??}\
14855 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14856 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14857   && mv -f "$cfgfile.tmp" "$cfgfile" \
14858     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14859 test 0 -eq $? || _lt_function_replace_fail=:
14860
14861
14862   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14863 func_lo2o ()\
14864 {\
14865 \    case ${1} in\
14866 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14867 \      *)    func_lo2o_result=${1} ;;\
14868 \    esac\
14869 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14870   && mv -f "$cfgfile.tmp" "$cfgfile" \
14871     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14872 test 0 -eq $? || _lt_function_replace_fail=:
14873
14874
14875   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14876 func_xform ()\
14877 {\
14878     func_xform_result=${1%.*}.lo\
14879 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14880   && mv -f "$cfgfile.tmp" "$cfgfile" \
14881     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14882 test 0 -eq $? || _lt_function_replace_fail=:
14883
14884
14885   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14886 func_arith ()\
14887 {\
14888     func_arith_result=$(( $* ))\
14889 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14890   && mv -f "$cfgfile.tmp" "$cfgfile" \
14891     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14892 test 0 -eq $? || _lt_function_replace_fail=:
14893
14894
14895   sed -e '/^func_len ()$/,/^} # func_len /c\
14896 func_len ()\
14897 {\
14898     func_len_result=${#1}\
14899 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14900   && mv -f "$cfgfile.tmp" "$cfgfile" \
14901     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14902 test 0 -eq $? || _lt_function_replace_fail=:
14903
14904 fi
14905
14906 if test x"$lt_shell_append" = xyes; then
14907   sed -e '/^func_append ()$/,/^} # func_append /c\
14908 func_append ()\
14909 {\
14910     eval "${1}+=\\${2}"\
14911 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14912   && mv -f "$cfgfile.tmp" "$cfgfile" \
14913     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14914 test 0 -eq $? || _lt_function_replace_fail=:
14915
14916
14917   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14918 func_append_quoted ()\
14919 {\
14920 \    func_quote_for_eval "${2}"\
14921 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14922 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14923   && mv -f "$cfgfile.tmp" "$cfgfile" \
14924     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14925 test 0 -eq $? || _lt_function_replace_fail=:
14926
14927
14928   # Save a `func_append' function call where possible by direct use of '+='
14929   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14930     && mv -f "$cfgfile.tmp" "$cfgfile" \
14931       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14932   test 0 -eq $? || _lt_function_replace_fail=:
14933 else
14934   # Save a `func_append' function call even when '+=' is not available
14935   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14936     && mv -f "$cfgfile.tmp" "$cfgfile" \
14937       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14938   test 0 -eq $? || _lt_function_replace_fail=:
14939 fi
14940
14941 if test x"$_lt_function_replace_fail" = x":"; then
14942   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14943 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14944 fi
14945
14946
14947    mv -f "$cfgfile" "$ofile" ||
14948     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14949   chmod +x "$ofile"
14950
14951  ;;
14952
14953   esac
14954 done # for ac_tag
14955
14956
14957 as_fn_exit 0
14958 _ACEOF
14959 ac_clean_files=$ac_clean_files_save
14960
14961 test $ac_write_fail = 0 ||
14962   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14963
14964
14965 # configure is writing to config.log, and then calls config.status.
14966 # config.status does its own redirection, appending to config.log.
14967 # Unfortunately, on DOS this fails, as config.log is still kept open
14968 # by configure, so config.status won't be able to write to it; its
14969 # output is simply discarded.  So we exec the FD to /dev/null,
14970 # effectively closing config.log, so it can be properly (re)opened and
14971 # appended to by config.status.  When coming back to configure, we
14972 # need to make the FD available again.
14973 if test "$no_create" != yes; then
14974   ac_cs_success=:
14975   ac_config_status_args=
14976   test "$silent" = yes &&
14977     ac_config_status_args="$ac_config_status_args --quiet"
14978   exec 5>/dev/null
14979   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14980   exec 5>>config.log
14981   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14982   # would make configure fail if this is the last instruction.
14983   $ac_cs_success || as_fn_exit 1
14984 fi
14985 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14986   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14987 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14988 fi
14989