]> granicus.if.org Git - zziplib/blob - configure
test_63119 should reproduce #11 but it is ok
[zziplib] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.15 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 #
13 # Guido Draheim <guido@gmx.de> for ZZipLib.SF.net
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='print -r --'
49   as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='printf %s\n'
52   as_echo_n='printf %s'
53 else
54   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57   else
58     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60       arg=$1;
61       case $arg in #(
62       *"$as_nl"*)
63         expr "X$arg" : "X\\(.*\\)$as_nl";
64         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65       esac;
66       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70   fi
71   export as_echo_body
72   as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order.  Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" ""        $as_nl"
91
92 # Find who we are.  Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139   # into an infinite loop, continuously re-executing ourselves.
140   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141     _as_can_reexec=no; export _as_can_reexec;
142     # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150   *v*x* | *x*v* ) as_opts=-vx ;;
151   *v* ) as_opts=-v ;;
152   *x* ) as_opts=-x ;;
153   * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160   fi
161   # We don't want this to propagate to other subprocesses.
162           { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165   emulate sh
166   NULLCMD=:
167   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168   # is contrary to our usage.  Disable this feature.
169   alias -g '\${1+\"\$@\"}'='\"\$@\"'
170   setopt NO_GLOB_SUBST
171 else
172   case \`(set -o) 2>/dev/null\` in #(
173   *posix*) :
174     set -o posix ;; #(
175   *) :
176      ;;
177 esac
178 fi
179 "
180   as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194   exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1"
203   if (eval "$as_required") 2>/dev/null; then :
204   as_have_required=yes
205 else
206   as_have_required=no
207 fi
208   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210 else
211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 as_found=false
213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 do
215   IFS=$as_save_IFS
216   test -z "$as_dir" && as_dir=.
217   as_found=:
218   case $as_dir in #(
219          /*)
220            for as_base in sh bash ksh sh5; do
221              # Try only shells that exist, to save several forks.
222              as_shell=$as_dir/$as_base
223              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225   CONFIG_SHELL=$as_shell as_have_required=yes
226                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227   break 2
228 fi
229 fi
230            done;;
231        esac
232   as_found=false
233 done
234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236   CONFIG_SHELL=$SHELL as_have_required=yes
237 fi; }
238 IFS=$as_save_IFS
239
240
241       if test "x$CONFIG_SHELL" != x; then :
242   export CONFIG_SHELL
243              # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251   *v*x* | *x*v* ) as_opts=-vx ;;
252   *v* ) as_opts=-v ;;
253   *x* ) as_opts=-x ;;
254   * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
261 fi
262
263     if test x$as_have_required = xno; then :
264   $as_echo "$0: This script requires a shell more modern than all"
265   $as_echo "$0: the shells that I found on your system."
266   if test x${ZSH_VERSION+set} = xset ; then
267     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269   else
270     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560
561 # Check that we are running under the correct shell.
562 SHELL=${CONFIG_SHELL-/bin/sh}
563
564 case X$lt_ECHO in
565 X*--fallback-echo)
566   # Remove one level of quotation (which was required for Make).
567   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
568   ;;
569 esac
570
571 ECHO=${lt_ECHO-echo}
572 if test "X$1" = X--no-reexec; then
573   # Discard the --no-reexec flag, and continue.
574   shift
575 elif test "X$1" = X--fallback-echo; then
576   # Avoid inline document here, it may be left over
577   :
578 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
579   # Yippee, $ECHO works!
580   :
581 else
582   # Restart under the correct shell.
583   exec $SHELL "$0" --no-reexec ${1+"$@"}
584 fi
585
586 if test "X$1" = X--fallback-echo; then
587   # used as fallback echo
588   shift
589   cat <<_LT_EOF
590 $*
591 _LT_EOF
592   exit 0
593 fi
594
595 # The HP-UX ksh and POSIX shell print the target directory to stdout
596 # if CDPATH is set.
597 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
598
599 if test -z "$lt_ECHO"; then
600   if test "X${echo_test_string+set}" != Xset; then
601     # find a string as large as possible, as long as the shell can cope with it
602     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
603       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
604       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
605          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
606       then
607         break
608       fi
609     done
610   fi
611
612   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
613      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
614      test "X$echo_testing_string" = "X$echo_test_string"; then
615     :
616   else
617     # The Solaris, AIX, and Digital Unix default echo programs unquote
618     # backslashes.  This makes it impossible to quote backslashes using
619     #   echo "$something" | sed 's/\\/\\\\/g'
620     #
621     # So, first we look for a working echo in the user's PATH.
622
623     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
624     for dir in $PATH /usr/ucb; do
625       IFS="$lt_save_ifs"
626       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
627          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
628          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
629          test "X$echo_testing_string" = "X$echo_test_string"; then
630         ECHO="$dir/echo"
631         break
632       fi
633     done
634     IFS="$lt_save_ifs"
635
636     if test "X$ECHO" = Xecho; then
637       # We didn't find a better echo, so look for alternatives.
638       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
639          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
640          test "X$echo_testing_string" = "X$echo_test_string"; then
641         # This shell has a builtin print -r that does the trick.
642         ECHO='print -r'
643       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
644            test "X$CONFIG_SHELL" != X/bin/ksh; then
645         # If we have ksh, try running configure again with it.
646         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
647         export ORIGINAL_CONFIG_SHELL
648         CONFIG_SHELL=/bin/ksh
649         export CONFIG_SHELL
650         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
651       else
652         # Try using printf.
653         ECHO='printf %s\n'
654         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
655            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
656            test "X$echo_testing_string" = "X$echo_test_string"; then
657           # Cool, printf works
658           :
659         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
660              test "X$echo_testing_string" = 'X\t' &&
661              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
662              test "X$echo_testing_string" = "X$echo_test_string"; then
663           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
664           export CONFIG_SHELL
665           SHELL="$CONFIG_SHELL"
666           export SHELL
667           ECHO="$CONFIG_SHELL $0 --fallback-echo"
668         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
669              test "X$echo_testing_string" = 'X\t' &&
670              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
671              test "X$echo_testing_string" = "X$echo_test_string"; then
672           ECHO="$CONFIG_SHELL $0 --fallback-echo"
673         else
674           # maybe with a smaller string...
675           prev=:
676
677           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
678             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
679             then
680               break
681             fi
682             prev="$cmd"
683           done
684
685           if test "$prev" != 'sed 50q "$0"'; then
686             echo_test_string=`eval $prev`
687             export echo_test_string
688             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
689           else
690             # Oops.  We lost completely, so just stick with echo.
691             ECHO=echo
692           fi
693         fi
694       fi
695     fi
696   fi
697 fi
698
699 # Copy echo and quote the copy suitably for passing to libtool from
700 # the Makefile, instead of quoting the original, which is used later.
701 lt_ECHO=$ECHO
702 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
703    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 fi
705
706
707
708
709 test -n "$DJDIR" || exec 7<&0 </dev/null
710 exec 6>&1
711
712 # Name of the host.
713 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
714 # so uname gets run too.
715 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
717 #
718 # Initializations.
719 #
720 ac_default_prefix=/usr/local
721 ac_clean_files=
722 ac_config_libobj_dir=.
723 LIBOBJS=
724 cross_compiling=no
725 subdirs=
726 MFLAGS=
727 MAKEFLAGS=
728
729 # Identity of this package.
730 PACKAGE_NAME=
731 PACKAGE_TARNAME=
732 PACKAGE_VERSION=
733 PACKAGE_STRING=
734 PACKAGE_BUGREPORT=
735 PACKAGE_URL=
736
737 ac_unique_file="zziplib.spec"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
740 #include <stdio.h>
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
743 #endif
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
746 #endif
747 #ifdef STDC_HEADERS
748 # include <stdlib.h>
749 # include <stddef.h>
750 #else
751 # ifdef HAVE_STDLIB_H
752 #  include <stdlib.h>
753 # endif
754 #endif
755 #ifdef HAVE_STRING_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #  include <memory.h>
758 # endif
759 # include <string.h>
760 #endif
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
763 #endif
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
766 #endif
767 #ifdef HAVE_STDINT_H
768 # include <stdint.h>
769 #endif
770 #ifdef HAVE_UNISTD_H
771 # include <unistd.h>
772 #endif"
773
774 ac_subst_vars='am__EXEEXT_FALSE
775 am__EXEEXT_TRUE
776 LTLIBOBJS
777 LIBOBJS
778 CONFIG_FILES
779 aclocaldir
780 pkgconfigdir
781 PKG_CONFIG
782 RESOLVES
783 ZZIPLIB_LDFLAGS
784 ZIPTESTS
785 SDL_GENERATE
786 SDL
787 ZLIB_VERSION
788 LARGEFILE_CFLAGS
789 XMLTO
790 MKZIP
791 PYTHON
792 PERL
793 PAX_TAR_EXTRACT
794 PAX_TAR_CREATE
795 TAR
796 GTAR
797 GNUTAR
798 PAX
799 pkgconfig_libfile
800 pkgconfig_libdir
801 MAINT
802 MAINTAINER_MODE_FALSE
803 MAINTAINER_MODE_TRUE
804 VERSION_INFO
805 RELEASE_INFO
806 CPP
807 OTOOL64
808 OTOOL
809 LIPO
810 NMEDIT
811 DSYMUTIL
812 lt_ECHO
813 RANLIB
814 AR
815 LN_S
816 NM
817 ac_ct_DUMPBIN
818 DUMPBIN
819 LD
820 FGREP
821 EGREP
822 GREP
823 SED
824 LIBTOOL
825 OBJDUMP
826 DLLTOOL
827 AS
828 am__fastdepCC_FALSE
829 am__fastdepCC_TRUE
830 CCDEPMODE
831 am__nodep
832 AMDEPBACKSLASH
833 AMDEP_FALSE
834 AMDEP_TRUE
835 am__quote
836 am__include
837 DEPDIR
838 OBJEXT
839 EXEEXT
840 ac_ct_CC
841 CPPFLAGS
842 LDFLAGS
843 CFLAGS
844 CC
845 AM_BACKSLASH
846 AM_DEFAULT_VERBOSITY
847 AM_DEFAULT_V
848 AM_V
849 am__untar
850 am__tar
851 AMTAR
852 am__leading_dot
853 SET_MAKE
854 AWK
855 mkdir_p
856 MKDIR_P
857 INSTALL_STRIP_PROGRAM
858 STRIP
859 install_sh
860 MAKEINFO
861 AUTOHEADER
862 AUTOMAKE
863 AUTOCONF
864 ACLOCAL
865 VERSION
866 PACKAGE
867 CYGPATH_W
868 am__isrc
869 INSTALL_DATA
870 INSTALL_SCRIPT
871 INSTALL_PROGRAM
872 ZLIB_LDIR
873 ZLIB_INCL
874 THREAD_SAFE
875 ax_enable_builddir_sed
876 target_os
877 target_vendor
878 target_cpu
879 target
880 host_os
881 host_vendor
882 host_cpu
883 host
884 build_os
885 build_vendor
886 build_cpu
887 build
888 target_alias
889 host_alias
890 build_alias
891 LIBS
892 ECHO_T
893 ECHO_N
894 ECHO_C
895 DEFS
896 mandir
897 localedir
898 libdir
899 psdir
900 pdfdir
901 dvidir
902 htmldir
903 infodir
904 docdir
905 oldincludedir
906 includedir
907 localstatedir
908 sharedstatedir
909 sysconfdir
910 datadir
911 datarootdir
912 libexecdir
913 sbindir
914 bindir
915 program_transform_name
916 prefix
917 exec_prefix
918 PACKAGE_URL
919 PACKAGE_BUGREPORT
920 PACKAGE_STRING
921 PACKAGE_VERSION
922 PACKAGE_TARNAME
923 PACKAGE_NAME
924 PATH_SEPARATOR
925 SHELL'
926 ac_subst_files=''
927 ac_user_opts='
928 enable_option_checking
929 enable_builddir
930 enable_thread_safe
931 with_zlib
932 enable_silent_rules
933 enable_dependency_tracking
934 enable_shared
935 enable_static
936 with_pic
937 enable_fast_install
938 with_gnu_ld
939 enable_libtool_lock
940 enable_maintainer_mode
941 enable_largefile
942 with_largefile
943 with_docdir
944 with_debug
945 with_lowstk
946 enable_mmap
947 enable_sdl
948 with_defines
949 enable_frame_pointer
950 enable_enable_default_pkgconfigdir
951 enable_enable_default_aclocaldir
952 '
953       ac_precious_vars='build_alias
954 host_alias
955 target_alias
956 CC
957 CFLAGS
958 LDFLAGS
959 LIBS
960 CPPFLAGS
961 CPP'
962
963
964 # Initialize some variables set by options.
965 ac_init_help=
966 ac_init_version=false
967 ac_unrecognized_opts=
968 ac_unrecognized_sep=
969 # The variables have the same names as the options, with
970 # dashes changed to underlines.
971 cache_file=/dev/null
972 exec_prefix=NONE
973 no_create=
974 no_recursion=
975 prefix=NONE
976 program_prefix=NONE
977 program_suffix=NONE
978 program_transform_name=s,x,x,
979 silent=
980 site=
981 srcdir=
982 verbose=
983 x_includes=NONE
984 x_libraries=NONE
985
986 # Installation directory options.
987 # These are left unexpanded so users can "make install exec_prefix=/foo"
988 # and all the variables that are supposed to be based on exec_prefix
989 # by default will actually change.
990 # Use braces instead of parens because sh, perl, etc. also accept them.
991 # (The list follows the same order as the GNU Coding Standards.)
992 bindir='${exec_prefix}/bin'
993 sbindir='${exec_prefix}/sbin'
994 libexecdir='${exec_prefix}/libexec'
995 datarootdir='${prefix}/share'
996 datadir='${datarootdir}'
997 sysconfdir='${prefix}/etc'
998 sharedstatedir='${prefix}/com'
999 localstatedir='${prefix}/var'
1000 includedir='${prefix}/include'
1001 oldincludedir='/usr/include'
1002 docdir='${datarootdir}/doc/${PACKAGE}'
1003 infodir='${datarootdir}/info'
1004 htmldir='${docdir}'
1005 dvidir='${docdir}'
1006 pdfdir='${docdir}'
1007 psdir='${docdir}'
1008 libdir='${exec_prefix}/lib'
1009 localedir='${datarootdir}/locale'
1010 mandir='${datarootdir}/man'
1011
1012 ac_prev=
1013 ac_dashdash=
1014 for ac_option
1015 do
1016   # If the previous option needs an argument, assign it.
1017   if test -n "$ac_prev"; then
1018     eval $ac_prev=\$ac_option
1019     ac_prev=
1020     continue
1021   fi
1022
1023   case $ac_option in
1024   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025   *=)   ac_optarg= ;;
1026   *)    ac_optarg=yes ;;
1027   esac
1028
1029   # Accept the important Cygnus configure options, so we can diagnose typos.
1030
1031   case $ac_dashdash$ac_option in
1032   --)
1033     ac_dashdash=yes ;;
1034
1035   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036     ac_prev=bindir ;;
1037   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038     bindir=$ac_optarg ;;
1039
1040   -build | --build | --buil | --bui | --bu)
1041     ac_prev=build_alias ;;
1042   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043     build_alias=$ac_optarg ;;
1044
1045   -cache-file | --cache-file | --cache-fil | --cache-fi \
1046   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047     ac_prev=cache_file ;;
1048   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050     cache_file=$ac_optarg ;;
1051
1052   --config-cache | -C)
1053     cache_file=config.cache ;;
1054
1055   -datadir | --datadir | --datadi | --datad)
1056     ac_prev=datadir ;;
1057   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058     datadir=$ac_optarg ;;
1059
1060   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061   | --dataroo | --dataro | --datar)
1062     ac_prev=datarootdir ;;
1063   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065     datarootdir=$ac_optarg ;;
1066
1067   -disable-* | --disable-*)
1068     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071       as_fn_error $? "invalid feature name: $ac_useropt"
1072     ac_useropt_orig=$ac_useropt
1073     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074     case $ac_user_opts in
1075       *"
1076 "enable_$ac_useropt"
1077 "*) ;;
1078       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079          ac_unrecognized_sep=', ';;
1080     esac
1081     eval enable_$ac_useropt=no ;;
1082
1083   -docdir | --docdir | --docdi | --doc | --do)
1084     ac_prev=docdir ;;
1085   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086     docdir=$ac_optarg ;;
1087
1088   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089     ac_prev=dvidir ;;
1090   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091     dvidir=$ac_optarg ;;
1092
1093   -enable-* | --enable-*)
1094     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095     # Reject names that are not valid shell variable names.
1096     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097       as_fn_error $? "invalid feature name: $ac_useropt"
1098     ac_useropt_orig=$ac_useropt
1099     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100     case $ac_user_opts in
1101       *"
1102 "enable_$ac_useropt"
1103 "*) ;;
1104       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105          ac_unrecognized_sep=', ';;
1106     esac
1107     eval enable_$ac_useropt=\$ac_optarg ;;
1108
1109   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111   | --exec | --exe | --ex)
1112     ac_prev=exec_prefix ;;
1113   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115   | --exec=* | --exe=* | --ex=*)
1116     exec_prefix=$ac_optarg ;;
1117
1118   -gas | --gas | --ga | --g)
1119     # Obsolete; use --with-gas.
1120     with_gas=yes ;;
1121
1122   -help | --help | --hel | --he | -h)
1123     ac_init_help=long ;;
1124   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125     ac_init_help=recursive ;;
1126   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127     ac_init_help=short ;;
1128
1129   -host | --host | --hos | --ho)
1130     ac_prev=host_alias ;;
1131   -host=* | --host=* | --hos=* | --ho=*)
1132     host_alias=$ac_optarg ;;
1133
1134   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135     ac_prev=htmldir ;;
1136   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137   | --ht=*)
1138     htmldir=$ac_optarg ;;
1139
1140   -includedir | --includedir | --includedi | --included | --include \
1141   | --includ | --inclu | --incl | --inc)
1142     ac_prev=includedir ;;
1143   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144   | --includ=* | --inclu=* | --incl=* | --inc=*)
1145     includedir=$ac_optarg ;;
1146
1147   -infodir | --infodir | --infodi | --infod | --info | --inf)
1148     ac_prev=infodir ;;
1149   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150     infodir=$ac_optarg ;;
1151
1152   -libdir | --libdir | --libdi | --libd)
1153     ac_prev=libdir ;;
1154   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155     libdir=$ac_optarg ;;
1156
1157   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158   | --libexe | --libex | --libe)
1159     ac_prev=libexecdir ;;
1160   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161   | --libexe=* | --libex=* | --libe=*)
1162     libexecdir=$ac_optarg ;;
1163
1164   -localedir | --localedir | --localedi | --localed | --locale)
1165     ac_prev=localedir ;;
1166   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167     localedir=$ac_optarg ;;
1168
1169   -localstatedir | --localstatedir | --localstatedi | --localstated \
1170   | --localstate | --localstat | --localsta | --localst | --locals)
1171     ac_prev=localstatedir ;;
1172   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174     localstatedir=$ac_optarg ;;
1175
1176   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177     ac_prev=mandir ;;
1178   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179     mandir=$ac_optarg ;;
1180
1181   -nfp | --nfp | --nf)
1182     # Obsolete; use --without-fp.
1183     with_fp=no ;;
1184
1185   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186   | --no-cr | --no-c | -n)
1187     no_create=yes ;;
1188
1189   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191     no_recursion=yes ;;
1192
1193   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195   | --oldin | --oldi | --old | --ol | --o)
1196     ac_prev=oldincludedir ;;
1197   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200     oldincludedir=$ac_optarg ;;
1201
1202   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203     ac_prev=prefix ;;
1204   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205     prefix=$ac_optarg ;;
1206
1207   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208   | --program-pre | --program-pr | --program-p)
1209     ac_prev=program_prefix ;;
1210   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212     program_prefix=$ac_optarg ;;
1213
1214   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215   | --program-suf | --program-su | --program-s)
1216     ac_prev=program_suffix ;;
1217   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219     program_suffix=$ac_optarg ;;
1220
1221   -program-transform-name | --program-transform-name \
1222   | --program-transform-nam | --program-transform-na \
1223   | --program-transform-n | --program-transform- \
1224   | --program-transform | --program-transfor \
1225   | --program-transfo | --program-transf \
1226   | --program-trans | --program-tran \
1227   | --progr-tra | --program-tr | --program-t)
1228     ac_prev=program_transform_name ;;
1229   -program-transform-name=* | --program-transform-name=* \
1230   | --program-transform-nam=* | --program-transform-na=* \
1231   | --program-transform-n=* | --program-transform-=* \
1232   | --program-transform=* | --program-transfor=* \
1233   | --program-transfo=* | --program-transf=* \
1234   | --program-trans=* | --program-tran=* \
1235   | --progr-tra=* | --program-tr=* | --program-t=*)
1236     program_transform_name=$ac_optarg ;;
1237
1238   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239     ac_prev=pdfdir ;;
1240   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241     pdfdir=$ac_optarg ;;
1242
1243   -psdir | --psdir | --psdi | --psd | --ps)
1244     ac_prev=psdir ;;
1245   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246     psdir=$ac_optarg ;;
1247
1248   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249   | -silent | --silent | --silen | --sile | --sil)
1250     silent=yes ;;
1251
1252   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253     ac_prev=sbindir ;;
1254   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255   | --sbi=* | --sb=*)
1256     sbindir=$ac_optarg ;;
1257
1258   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260   | --sharedst | --shareds | --shared | --share | --shar \
1261   | --sha | --sh)
1262     ac_prev=sharedstatedir ;;
1263   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266   | --sha=* | --sh=*)
1267     sharedstatedir=$ac_optarg ;;
1268
1269   -site | --site | --sit)
1270     ac_prev=site ;;
1271   -site=* | --site=* | --sit=*)
1272     site=$ac_optarg ;;
1273
1274   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275     ac_prev=srcdir ;;
1276   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277     srcdir=$ac_optarg ;;
1278
1279   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280   | --syscon | --sysco | --sysc | --sys | --sy)
1281     ac_prev=sysconfdir ;;
1282   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284     sysconfdir=$ac_optarg ;;
1285
1286   -target | --target | --targe | --targ | --tar | --ta | --t)
1287     ac_prev=target_alias ;;
1288   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289     target_alias=$ac_optarg ;;
1290
1291   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292     verbose=yes ;;
1293
1294   -version | --version | --versio | --versi | --vers | -V)
1295     ac_init_version=: ;;
1296
1297   -with-* | --with-*)
1298     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299     # Reject names that are not valid shell variable names.
1300     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301       as_fn_error $? "invalid package name: $ac_useropt"
1302     ac_useropt_orig=$ac_useropt
1303     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304     case $ac_user_opts in
1305       *"
1306 "with_$ac_useropt"
1307 "*) ;;
1308       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309          ac_unrecognized_sep=', ';;
1310     esac
1311     eval with_$ac_useropt=\$ac_optarg ;;
1312
1313   -without-* | --without-*)
1314     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315     # Reject names that are not valid shell variable names.
1316     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317       as_fn_error $? "invalid package name: $ac_useropt"
1318     ac_useropt_orig=$ac_useropt
1319     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320     case $ac_user_opts in
1321       *"
1322 "with_$ac_useropt"
1323 "*) ;;
1324       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325          ac_unrecognized_sep=', ';;
1326     esac
1327     eval with_$ac_useropt=no ;;
1328
1329   --x)
1330     # Obsolete; use --with-x.
1331     with_x=yes ;;
1332
1333   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334   | --x-incl | --x-inc | --x-in | --x-i)
1335     ac_prev=x_includes ;;
1336   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338     x_includes=$ac_optarg ;;
1339
1340   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342     ac_prev=x_libraries ;;
1343   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345     x_libraries=$ac_optarg ;;
1346
1347   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1348 Try \`$0 --help' for more information"
1349     ;;
1350
1351   *=*)
1352     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1353     # Reject names that are not valid shell variable names.
1354     case $ac_envvar in #(
1355       '' | [0-9]* | *[!_$as_cr_alnum]* )
1356       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1357     esac
1358     eval $ac_envvar=\$ac_optarg
1359     export $ac_envvar ;;
1360
1361   *)
1362     # FIXME: should be removed in autoconf 3.0.
1363     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1367     ;;
1368
1369   esac
1370 done
1371
1372 if test -n "$ac_prev"; then
1373   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374   as_fn_error $? "missing argument to $ac_option"
1375 fi
1376
1377 if test -n "$ac_unrecognized_opts"; then
1378   case $enable_option_checking in
1379     no) ;;
1380     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1381     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382   esac
1383 fi
1384
1385 # Check all directory arguments for consistency.
1386 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387                 datadir sysconfdir sharedstatedir localstatedir includedir \
1388                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389                 libdir localedir mandir
1390 do
1391   eval ac_val=\$$ac_var
1392   # Remove trailing slashes.
1393   case $ac_val in
1394     */ )
1395       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396       eval $ac_var=\$ac_val;;
1397   esac
1398   # Be sure to have absolute directory names.
1399   case $ac_val in
1400     [\\/$]* | ?:[\\/]* )  continue;;
1401     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402   esac
1403   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1404 done
1405
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1409 build=$build_alias
1410 host=$host_alias
1411 target=$target_alias
1412
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x; then
1415   if test "x$build_alias" = x; then
1416     cross_compiling=maybe
1417   elif test "x$build_alias" != "x$host_alias"; then
1418     cross_compiling=yes
1419   fi
1420 fi
1421
1422 ac_tool_prefix=
1423 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1424
1425 test "$silent" = yes && exec 6>/dev/null
1426
1427
1428 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1429 ac_ls_di=`ls -di .` &&
1430 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1431   as_fn_error $? "working directory cannot be determined"
1432 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1433   as_fn_error $? "pwd does not report name of working directory"
1434
1435
1436 # Find the source files, if location was not specified.
1437 if test -z "$srcdir"; then
1438   ac_srcdir_defaulted=yes
1439   # Try the directory containing this script, then the parent directory.
1440   ac_confdir=`$as_dirname -- "$as_myself" ||
1441 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1442          X"$as_myself" : 'X\(//\)[^/]' \| \
1443          X"$as_myself" : 'X\(//\)$' \| \
1444          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1445 $as_echo X"$as_myself" |
1446     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447             s//\1/
1448             q
1449           }
1450           /^X\(\/\/\)[^/].*/{
1451             s//\1/
1452             q
1453           }
1454           /^X\(\/\/\)$/{
1455             s//\1/
1456             q
1457           }
1458           /^X\(\/\).*/{
1459             s//\1/
1460             q
1461           }
1462           s/.*/./; q'`
1463   srcdir=$ac_confdir
1464   if test ! -r "$srcdir/$ac_unique_file"; then
1465     srcdir=..
1466   fi
1467 else
1468   ac_srcdir_defaulted=no
1469 fi
1470 if test ! -r "$srcdir/$ac_unique_file"; then
1471   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1472   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1473 fi
1474 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1475 ac_abs_confdir=`(
1476         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1477         pwd)`
1478 # When building in place, set srcdir=.
1479 if test "$ac_abs_confdir" = "$ac_pwd"; then
1480   srcdir=.
1481 fi
1482 # Remove unnecessary trailing slashes from srcdir.
1483 # Double slashes in file names in object file debugging info
1484 # mess up M-x gdb in Emacs.
1485 case $srcdir in
1486 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1487 esac
1488 for ac_var in $ac_precious_vars; do
1489   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1490   eval ac_env_${ac_var}_value=\$${ac_var}
1491   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1492   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1493 done
1494
1495 #
1496 # Report the --help message.
1497 #
1498 if test "$ac_init_help" = "long"; then
1499   # Omit some internal or obsolete options to make the list less imposing.
1500   # This message is too long to be a string in the A/UX 3.1 sh.
1501   cat <<_ACEOF
1502 \`configure' configures this package to adapt to many kinds of systems.
1503
1504 Usage: $0 [OPTION]... [VAR=VALUE]...
1505
1506 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1507 VAR=VALUE.  See below for descriptions of some of the useful variables.
1508
1509 Defaults for the options are specified in brackets.
1510
1511 Configuration:
1512   -h, --help              display this help and exit
1513       --help=short        display options specific to this package
1514       --help=recursive    display the short help of all the included packages
1515   -V, --version           display version information and exit
1516   -q, --quiet, --silent   do not print \`checking ...' messages
1517       --cache-file=FILE   cache test results in FILE [disabled]
1518   -C, --config-cache      alias for \`--cache-file=config.cache'
1519   -n, --no-create         do not create output files
1520       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1521
1522 Installation directories:
1523   --prefix=PREFIX         install architecture-independent files in PREFIX
1524                           [$ac_default_prefix]
1525   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1526                           [PREFIX]
1527
1528 By default, \`make install' will install all the files in
1529 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1530 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1531 for instance \`--prefix=\$HOME'.
1532
1533 For better control, use the options below.
1534
1535 Fine tuning of the installation directories:
1536   --bindir=DIR            user executables [EPREFIX/bin]
1537   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1538   --libexecdir=DIR        program executables [EPREFIX/libexec]
1539   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1540   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1541   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1542   --libdir=DIR            object code libraries [EPREFIX/lib]
1543   --includedir=DIR        C header files [PREFIX/include]
1544   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1545   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1546   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1547   --infodir=DIR           info documentation [DATAROOTDIR/info]
1548   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1549   --mandir=DIR            man documentation [DATAROOTDIR/man]
1550   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1551   --htmldir=DIR           html documentation [DOCDIR]
1552   --dvidir=DIR            dvi documentation [DOCDIR]
1553   --pdfdir=DIR            pdf documentation [DOCDIR]
1554   --psdir=DIR             ps documentation [DOCDIR]
1555 _ACEOF
1556
1557   cat <<\_ACEOF
1558
1559 Program names:
1560   --program-prefix=PREFIX            prepend PREFIX to installed program names
1561   --program-suffix=SUFFIX            append SUFFIX to installed program names
1562   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1563
1564 System types:
1565   --build=BUILD     configure for building on BUILD [guessed]
1566   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1567   --target=TARGET   configure for building compilers for TARGET [HOST]
1568 _ACEOF
1569 fi
1570
1571 if test -n "$ac_init_help"; then
1572
1573   cat <<\_ACEOF
1574
1575 Optional Features:
1576   --disable-option-checking  ignore unrecognized --enable/--with options
1577   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1578   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1579   --disable-builddir      disable automatic build in subdir of sources
1580
1581   --disable-thread-safe   disable thread-safe libtool option
1582
1583   --enable-silent-rules   less verbose build output (undo: "make V=1")
1584   --disable-silent-rules  verbose build output (undo: "make V=0")
1585   --enable-dependency-tracking
1586                           do not reject slow dependency extractors
1587   --disable-dependency-tracking
1588                           speeds up one-time build
1589   --enable-shared[=PKGS]  build shared libraries [default=yes]
1590   --enable-static[=PKGS]  build static libraries [default=yes]
1591   --enable-fast-install[=PKGS]
1592                           optimize for fast installation [default=yes]
1593   --disable-libtool-lock  avoid locking (might break parallel builds)
1594   --enable-maintainer-mode
1595                           enable make rules and dependencies not useful (and
1596                           sometimes confusing) to the casual installer
1597   --disable-largefile     omit support for large files
1598   --disable-mmap          disable mmap usage
1599
1600   --enable-sdl            enable SDL usage (if present)
1601
1602   --enable-frame-pointer  enable callframe generation for debugging
1603   --enable-default-pkgconfigdir(=PATH) override the libdir/pkgconfig default
1604   --enable-default-aclocaldir(=PATH)   override the datadir/aclocal default
1605
1606 Optional Packages:
1607   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1608   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1609   --with-zlib             zlib prefix (e.g. '$HOME/software')
1610
1611   --with-pic              try to use only PIC/non-PIC objects [default=use
1612                           both]
1613   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1614   --with-largefile        compile as off64_t instead of 32bit off_t
1615
1616   --with-docdir           docdir prefix (prefix/share/doc)
1617
1618   --with-debug            debug messages in library
1619
1620   --with-lowstk           limited thread stack
1621
1622   --with-defines          easy,harden,allow_modulo_entries
1623
1624 Some influential environment variables:
1625   CC          C compiler command
1626   CFLAGS      C compiler flags
1627   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1628               nonstandard directory <lib dir>
1629   LIBS        libraries to pass to the linker, e.g. -l<library>
1630   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1631               you have headers in a nonstandard directory <include dir>
1632   CPP         C preprocessor
1633
1634 Use these variables to override the choices made by `configure' or to help
1635 it to find libraries and programs with nonstandard names/locations.
1636
1637 Report bugs to the package provider.
1638 _ACEOF
1639 ac_status=$?
1640 fi
1641
1642 if test "$ac_init_help" = "recursive"; then
1643   # If there are subdirs, report their specific --help.
1644   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1645     test -d "$ac_dir" ||
1646       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1647       continue
1648     ac_builddir=.
1649
1650 case "$ac_dir" in
1651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *)
1653   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1654   # A ".." for each directory in $ac_dir_suffix.
1655   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1656   case $ac_top_builddir_sub in
1657   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659   esac ;;
1660 esac
1661 ac_abs_top_builddir=$ac_pwd
1662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663 # for backward compatibility:
1664 ac_top_builddir=$ac_top_build_prefix
1665
1666 case $srcdir in
1667   .)  # We are building in place.
1668     ac_srcdir=.
1669     ac_top_srcdir=$ac_top_builddir_sub
1670     ac_abs_top_srcdir=$ac_pwd ;;
1671   [\\/]* | ?:[\\/]* )  # Absolute name.
1672     ac_srcdir=$srcdir$ac_dir_suffix;
1673     ac_top_srcdir=$srcdir
1674     ac_abs_top_srcdir=$srcdir ;;
1675   *) # Relative name.
1676     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677     ac_top_srcdir=$ac_top_build_prefix$srcdir
1678     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1679 esac
1680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681
1682     cd "$ac_dir" || { ac_status=$?; continue; }
1683     # Check for guested configure.
1684     if test -f "$ac_srcdir/configure.gnu"; then
1685       echo &&
1686       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687     elif test -f "$ac_srcdir/configure"; then
1688       echo &&
1689       $SHELL "$ac_srcdir/configure" --help=recursive
1690     else
1691       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692     fi || ac_status=$?
1693     cd "$ac_pwd" || { ac_status=$?; break; }
1694   done
1695 fi
1696
1697 test -n "$ac_init_help" && exit $ac_status
1698 if $ac_init_version; then
1699   cat <<\_ACEOF
1700 configure
1701 generated by GNU Autoconf 2.69
1702
1703 Copyright (C) 2012 Free Software Foundation, Inc.
1704 This configure script is free software; the Free Software Foundation
1705 gives unlimited permission to copy, distribute and modify it.
1706
1707 Guido Draheim <guido@gmx.de> for ZZipLib.SF.net
1708 _ACEOF
1709   exit
1710 fi
1711
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1715
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1720 {
1721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722   rm -f conftest.$ac_objext
1723   if { { ac_try="$ac_compile"
1724 case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_compile") 2>conftest.err
1731   ac_status=$?
1732   if test -s conftest.err; then
1733     grep -v '^ *+' conftest.err >conftest.er1
1734     cat conftest.er1 >&5
1735     mv -f conftest.er1 conftest.err
1736   fi
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; } && {
1739          test -z "$ac_c_werror_flag" ||
1740          test ! -s conftest.err
1741        } && test -s conftest.$ac_objext; then :
1742   ac_retval=0
1743 else
1744   $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747         ac_retval=1
1748 fi
1749   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750   as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_compile
1753
1754 # ac_fn_c_try_link LINENO
1755 # -----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_link ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   rm -f conftest.$ac_objext conftest$ac_exeext
1761   if { { ac_try="$ac_link"
1762 case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_link") 2>conftest.err
1769   ac_status=$?
1770   if test -s conftest.err; then
1771     grep -v '^ *+' conftest.err >conftest.er1
1772     cat conftest.er1 >&5
1773     mv -f conftest.er1 conftest.err
1774   fi
1775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776   test $ac_status = 0; } && {
1777          test -z "$ac_c_werror_flag" ||
1778          test ! -s conftest.err
1779        } && test -s conftest$ac_exeext && {
1780          test "$cross_compiling" = yes ||
1781          test -x conftest$ac_exeext
1782        }; then :
1783   ac_retval=0
1784 else
1785   $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788         ac_retval=1
1789 fi
1790   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1791   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1792   # interfere with the next link command; also delete a directory that is
1793   # left behind by Apple's compiler.  We do this before executing the actions.
1794   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796   as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_link
1799
1800 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists and can be compiled using the include files in
1803 # INCLUDES, setting the cache variable VAR accordingly.
1804 ac_fn_c_check_header_compile ()
1805 {
1806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810   $as_echo_n "(cached) " >&6
1811 else
1812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h.  */
1814 $4
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818   eval "$3=yes"
1819 else
1820   eval "$3=no"
1821 fi
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 fi
1824 eval ac_res=\$$3
1825                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
1829 } # ac_fn_c_check_header_compile
1830
1831 # ac_fn_c_try_cpp LINENO
1832 # ----------------------
1833 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_cpp ()
1835 {
1836   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837   if { { ac_try="$ac_cpp conftest.$ac_ext"
1838 case "(($ac_try" in
1839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840   *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1845   ac_status=$?
1846   if test -s conftest.err; then
1847     grep -v '^ *+' conftest.err >conftest.er1
1848     cat conftest.er1 >&5
1849     mv -f conftest.er1 conftest.err
1850   fi
1851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852   test $ac_status = 0; } > conftest.i && {
1853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1854          test ! -s conftest.err
1855        }; then :
1856   ac_retval=0
1857 else
1858   $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1860
1861     ac_retval=1
1862 fi
1863   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864   as_fn_set_status $ac_retval
1865
1866 } # ac_fn_c_try_cpp
1867
1868 # ac_fn_c_try_run LINENO
1869 # ----------------------
1870 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1871 # that executables *can* be run.
1872 ac_fn_c_try_run ()
1873 {
1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875   if { { ac_try="$ac_link"
1876 case "(($ac_try" in
1877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878   *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882   (eval "$ac_link") 2>&5
1883   ac_status=$?
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1886   { { case "(($ac_try" in
1887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888   *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892   (eval "$ac_try") 2>&5
1893   ac_status=$?
1894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895   test $ac_status = 0; }; }; then :
1896   ac_retval=0
1897 else
1898   $as_echo "$as_me: program exited with status $ac_status" >&5
1899        $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1901
1902        ac_retval=$ac_status
1903 fi
1904   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906   as_fn_set_status $ac_retval
1907
1908 } # ac_fn_c_try_run
1909
1910 # ac_fn_c_check_func LINENO FUNC VAR
1911 # ----------------------------------
1912 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1913 ac_fn_c_check_func ()
1914 {
1915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919   $as_echo_n "(cached) " >&6
1920 else
1921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h.  */
1923 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1925 #define $2 innocuous_$2
1926
1927 /* System header to define __stub macros and hopefully few prototypes,
1928     which can conflict with char $2 (); below.
1929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1930     <limits.h> exists even on freestanding compilers.  */
1931
1932 #ifdef __STDC__
1933 # include <limits.h>
1934 #else
1935 # include <assert.h>
1936 #endif
1937
1938 #undef $2
1939
1940 /* Override any GCC internal prototype to avoid an error.
1941    Use char because int might match the return type of a GCC
1942    builtin and then its argument prototype would still apply.  */
1943 #ifdef __cplusplus
1944 extern "C"
1945 #endif
1946 char $2 ();
1947 /* The GNU C library defines this for functions which it implements
1948     to always fail with ENOSYS.  Some functions are actually named
1949     something starting with __ and the normal name is an alias.  */
1950 #if defined __stub_$2 || defined __stub___$2
1951 choke me
1952 #endif
1953
1954 int
1955 main ()
1956 {
1957 return $2 ();
1958   ;
1959   return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_link "$LINENO"; then :
1963   eval "$3=yes"
1964 else
1965   eval "$3=no"
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext \
1968     conftest$ac_exeext conftest.$ac_ext
1969 fi
1970 eval ac_res=\$$3
1971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975 } # ac_fn_c_check_func
1976
1977 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1978 # -------------------------------------------------------
1979 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1980 # the include files in INCLUDES and setting the cache variable VAR
1981 # accordingly.
1982 ac_fn_c_check_header_mongrel ()
1983 {
1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985   if eval \${$3+:} false; then :
1986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \${$3+:} false; then :
1989   $as_echo_n "(cached) " >&6
1990 fi
1991 eval ac_res=\$$3
1992                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 else
1995   # Is the header compilable?
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1997 $as_echo_n "checking $2 usability... " >&6; }
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h.  */
2000 $4
2001 #include <$2>
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004   ac_header_compiler=yes
2005 else
2006   ac_header_compiler=no
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2010 $as_echo "$ac_header_compiler" >&6; }
2011
2012 # Is the header present?
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2014 $as_echo_n "checking $2 presence... " >&6; }
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h.  */
2017 #include <$2>
2018 _ACEOF
2019 if ac_fn_c_try_cpp "$LINENO"; then :
2020   ac_header_preproc=yes
2021 else
2022   ac_header_preproc=no
2023 fi
2024 rm -f conftest.err conftest.i conftest.$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2026 $as_echo "$ac_header_preproc" >&6; }
2027
2028 # So?  What about this header?
2029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2030   yes:no: )
2031     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2032 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2033     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035     ;;
2036   no:yes:* )
2037     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2038 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2039     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2040 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2041     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2042 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2043     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2044 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2045     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2046 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047     ;;
2048 esac
2049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if eval \${$3+:} false; then :
2052   $as_echo_n "(cached) " >&6
2053 else
2054   eval "$3=\$ac_header_compiler"
2055 fi
2056 eval ac_res=\$$3
2057                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 fi
2060   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061
2062 } # ac_fn_c_check_header_mongrel
2063
2064 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2065 # -------------------------------------------
2066 # Tests whether TYPE exists after having included INCLUDES, setting cache
2067 # variable VAR accordingly.
2068 ac_fn_c_check_type ()
2069 {
2070   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074   $as_echo_n "(cached) " >&6
2075 else
2076   eval "$3=no"
2077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h.  */
2079 $4
2080 int
2081 main ()
2082 {
2083 if (sizeof ($2))
2084          return 0;
2085   ;
2086   return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h.  */
2092 $4
2093 int
2094 main ()
2095 {
2096 if (sizeof (($2)))
2097             return 0;
2098   ;
2099   return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103
2104 else
2105   eval "$3=yes"
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 fi
2111 eval ac_res=\$$3
2112                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115
2116 } # ac_fn_c_check_type
2117 cat >config.log <<_ACEOF
2118 This file contains any messages produced by compilers while
2119 running configure, to aid debugging if configure makes a mistake.
2120
2121 It was created by $as_me, which was
2122 generated by GNU Autoconf 2.69.  Invocation command line was
2123
2124   $ $0 $@
2125
2126 _ACEOF
2127 exec 5>>config.log
2128 {
2129 cat <<_ASUNAME
2130 ## --------- ##
2131 ## Platform. ##
2132 ## --------- ##
2133
2134 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2135 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2136 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2137 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2138 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2139
2140 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2141 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2142
2143 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2144 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2145 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2146 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2147 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2148 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2149 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2150
2151 _ASUNAME
2152
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156   IFS=$as_save_IFS
2157   test -z "$as_dir" && as_dir=.
2158     $as_echo "PATH: $as_dir"
2159   done
2160 IFS=$as_save_IFS
2161
2162 } >&5
2163
2164 cat >&5 <<_ACEOF
2165
2166
2167 ## ----------- ##
2168 ## Core tests. ##
2169 ## ----------- ##
2170
2171 _ACEOF
2172
2173
2174 # Keep a trace of the command line.
2175 # Strip out --no-create and --no-recursion so they do not pile up.
2176 # Strip out --silent because we don't want to record it for future runs.
2177 # Also quote any args containing shell meta-characters.
2178 # Make two passes to allow for proper duplicate-argument suppression.
2179 ac_configure_args=
2180 ac_configure_args0=
2181 ac_configure_args1=
2182 ac_must_keep_next=false
2183 for ac_pass in 1 2
2184 do
2185   for ac_arg
2186   do
2187     case $ac_arg in
2188     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2189     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2190     | -silent | --silent | --silen | --sile | --sil)
2191       continue ;;
2192     *\'*)
2193       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2194     esac
2195     case $ac_pass in
2196     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2197     2)
2198       as_fn_append ac_configure_args1 " '$ac_arg'"
2199       if test $ac_must_keep_next = true; then
2200         ac_must_keep_next=false # Got value, back to normal.
2201       else
2202         case $ac_arg in
2203           *=* | --config-cache | -C | -disable-* | --disable-* \
2204           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2205           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2206           | -with-* | --with-* | -without-* | --without-* | --x)
2207             case "$ac_configure_args0 " in
2208               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2209             esac
2210             ;;
2211           -* ) ac_must_keep_next=true ;;
2212         esac
2213       fi
2214       as_fn_append ac_configure_args " '$ac_arg'"
2215       ;;
2216     esac
2217   done
2218 done
2219 { ac_configure_args0=; unset ac_configure_args0;}
2220 { ac_configure_args1=; unset ac_configure_args1;}
2221
2222 # When interrupted or exit'd, cleanup temporary files, and complete
2223 # config.log.  We remove comments because anyway the quotes in there
2224 # would cause problems or look ugly.
2225 # WARNING: Use '\'' to represent an apostrophe within the trap.
2226 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2227 trap 'exit_status=$?
2228   # Save into config.log some information that might help in debugging.
2229   {
2230     echo
2231
2232     $as_echo "## ---------------- ##
2233 ## Cache variables. ##
2234 ## ---------------- ##"
2235     echo
2236     # The following way of writing the cache mishandles newlines in values,
2237 (
2238   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2239     eval ac_val=\$$ac_var
2240     case $ac_val in #(
2241     *${as_nl}*)
2242       case $ac_var in #(
2243       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2244 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2245       esac
2246       case $ac_var in #(
2247       _ | IFS | as_nl) ;; #(
2248       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2249       *) { eval $ac_var=; unset $ac_var;} ;;
2250       esac ;;
2251     esac
2252   done
2253   (set) 2>&1 |
2254     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2255     *${as_nl}ac_space=\ *)
2256       sed -n \
2257         "s/'\''/'\''\\\\'\'''\''/g;
2258           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2259       ;; #(
2260     *)
2261       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2262       ;;
2263     esac |
2264     sort
2265 )
2266     echo
2267
2268     $as_echo "## ----------------- ##
2269 ## Output variables. ##
2270 ## ----------------- ##"
2271     echo
2272     for ac_var in $ac_subst_vars
2273     do
2274       eval ac_val=\$$ac_var
2275       case $ac_val in
2276       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277       esac
2278       $as_echo "$ac_var='\''$ac_val'\''"
2279     done | sort
2280     echo
2281
2282     if test -n "$ac_subst_files"; then
2283       $as_echo "## ------------------- ##
2284 ## File substitutions. ##
2285 ## ------------------- ##"
2286       echo
2287       for ac_var in $ac_subst_files
2288       do
2289         eval ac_val=\$$ac_var
2290         case $ac_val in
2291         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2292         esac
2293         $as_echo "$ac_var='\''$ac_val'\''"
2294       done | sort
2295       echo
2296     fi
2297
2298     if test -s confdefs.h; then
2299       $as_echo "## ----------- ##
2300 ## confdefs.h. ##
2301 ## ----------- ##"
2302       echo
2303       cat confdefs.h
2304       echo
2305     fi
2306     test "$ac_signal" != 0 &&
2307       $as_echo "$as_me: caught signal $ac_signal"
2308     $as_echo "$as_me: exit $exit_status"
2309   } >&5
2310   rm -f core *.core core.conftest.* &&
2311     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2312     exit $exit_status
2313 ' 0
2314 for ac_signal in 1 2 13 15; do
2315   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2316 done
2317 ac_signal=0
2318
2319 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2320 rm -f -r conftest* confdefs.h
2321
2322 $as_echo "/* confdefs.h */" > confdefs.h
2323
2324 # Predefined preprocessor variables.
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_NAME "$PACKAGE_NAME"
2328 _ACEOF
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2332 _ACEOF
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2336 _ACEOF
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_STRING "$PACKAGE_STRING"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_URL "$PACKAGE_URL"
2348 _ACEOF
2349
2350
2351 # Let the site file select an alternate cache file if it wants to.
2352 # Prefer an explicitly selected file to automatically selected ones.
2353 ac_site_file1=NONE
2354 ac_site_file2=NONE
2355 if test -n "$CONFIG_SITE"; then
2356   # We do not want a PATH search for config.site.
2357   case $CONFIG_SITE in #((
2358     -*)  ac_site_file1=./$CONFIG_SITE;;
2359     */*) ac_site_file1=$CONFIG_SITE;;
2360     *)   ac_site_file1=./$CONFIG_SITE;;
2361   esac
2362 elif test "x$prefix" != xNONE; then
2363   ac_site_file1=$prefix/share/config.site
2364   ac_site_file2=$prefix/etc/config.site
2365 else
2366   ac_site_file1=$ac_default_prefix/share/config.site
2367   ac_site_file2=$ac_default_prefix/etc/config.site
2368 fi
2369 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2370 do
2371   test "x$ac_site_file" = xNONE && continue
2372   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2374 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2375     sed 's/^/| /' "$ac_site_file" >&5
2376     . "$ac_site_file" \
2377       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2379 as_fn_error $? "failed to load site script $ac_site_file
2380 See \`config.log' for more details" "$LINENO" 5; }
2381   fi
2382 done
2383
2384 if test -r "$cache_file"; then
2385   # Some versions of bash will fail to source /dev/null (special files
2386   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2387   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2388     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2389 $as_echo "$as_me: loading cache $cache_file" >&6;}
2390     case $cache_file in
2391       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2392       *)                      . "./$cache_file";;
2393     esac
2394   fi
2395 else
2396   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2397 $as_echo "$as_me: creating cache $cache_file" >&6;}
2398   >$cache_file
2399 fi
2400
2401 # Check that the precious variables saved in the cache have kept the same
2402 # value.
2403 ac_cache_corrupted=false
2404 for ac_var in $ac_precious_vars; do
2405   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2406   eval ac_new_set=\$ac_env_${ac_var}_set
2407   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2408   eval ac_new_val=\$ac_env_${ac_var}_value
2409   case $ac_old_set,$ac_new_set in
2410     set,)
2411       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2412 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2413       ac_cache_corrupted=: ;;
2414     ,set)
2415       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2416 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2417       ac_cache_corrupted=: ;;
2418     ,);;
2419     *)
2420       if test "x$ac_old_val" != "x$ac_new_val"; then
2421         # differences in whitespace do not lead to failure.
2422         ac_old_val_w=`echo x $ac_old_val`
2423         ac_new_val_w=`echo x $ac_new_val`
2424         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2425           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2426 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2427           ac_cache_corrupted=:
2428         else
2429           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2430 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2431           eval $ac_var=\$ac_old_val
2432         fi
2433         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2434 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2435         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2436 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2437       fi;;
2438   esac
2439   # Pass precious variables to config.status.
2440   if test "$ac_new_set" = set; then
2441     case $ac_new_val in
2442     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2443     *) ac_arg=$ac_var=$ac_new_val ;;
2444     esac
2445     case " $ac_configure_args " in
2446       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2447       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2448     esac
2449   fi
2450 done
2451 if $ac_cache_corrupted; then
2452   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2454   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2455 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2456   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2457 fi
2458 ## -------------------- ##
2459 ## Main body of script. ##
2460 ## -------------------- ##
2461
2462 ac_ext=c
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467
2468
2469
2470
2471
2472 ac_aux_dir=
2473 for ac_dir in uses "$srcdir"/uses; do
2474   if test -f "$ac_dir/install-sh"; then
2475     ac_aux_dir=$ac_dir
2476     ac_install_sh="$ac_aux_dir/install-sh -c"
2477     break
2478   elif test -f "$ac_dir/install.sh"; then
2479     ac_aux_dir=$ac_dir
2480     ac_install_sh="$ac_aux_dir/install.sh -c"
2481     break
2482   elif test -f "$ac_dir/shtool"; then
2483     ac_aux_dir=$ac_dir
2484     ac_install_sh="$ac_aux_dir/shtool install -c"
2485     break
2486   fi
2487 done
2488 if test -z "$ac_aux_dir"; then
2489   as_fn_error $? "cannot find install-sh, install.sh, or shtool in uses \"$srcdir\"/uses" "$LINENO" 5
2490 fi
2491
2492 # These three variables are undocumented and unsupported,
2493 # and are intended to be withdrawn in a future Autoconf release.
2494 # They can cause serious problems if a builder's source tree is in a directory
2495 # whose full name contains unusual characters.
2496 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2497 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2498 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2499
2500
2501
2502 # =======================================================================
2503 # Make sure we can run config.sub.
2504 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2505   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2506
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2508 $as_echo_n "checking build system type... " >&6; }
2509 if ${ac_cv_build+:} false; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512   ac_build_alias=$build_alias
2513 test "x$ac_build_alias" = x &&
2514   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2515 test "x$ac_build_alias" = x &&
2516   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2517 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2518   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2519
2520 fi
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2522 $as_echo "$ac_cv_build" >&6; }
2523 case $ac_cv_build in
2524 *-*-*) ;;
2525 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2526 esac
2527 build=$ac_cv_build
2528 ac_save_IFS=$IFS; IFS='-'
2529 set x $ac_cv_build
2530 shift
2531 build_cpu=$1
2532 build_vendor=$2
2533 shift; shift
2534 # Remember, the first character of IFS is used to create $*,
2535 # except with old shells:
2536 build_os=$*
2537 IFS=$ac_save_IFS
2538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2539
2540
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2542 $as_echo_n "checking host system type... " >&6; }
2543 if ${ac_cv_host+:} false; then :
2544   $as_echo_n "(cached) " >&6
2545 else
2546   if test "x$host_alias" = x; then
2547   ac_cv_host=$ac_cv_build
2548 else
2549   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2550     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2551 fi
2552
2553 fi
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2555 $as_echo "$ac_cv_host" >&6; }
2556 case $ac_cv_host in
2557 *-*-*) ;;
2558 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2559 esac
2560 host=$ac_cv_host
2561 ac_save_IFS=$IFS; IFS='-'
2562 set x $ac_cv_host
2563 shift
2564 host_cpu=$1
2565 host_vendor=$2
2566 shift; shift
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2569 host_os=$*
2570 IFS=$ac_save_IFS
2571 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2572
2573
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2575 $as_echo_n "checking target system type... " >&6; }
2576 if ${ac_cv_target+:} false; then :
2577   $as_echo_n "(cached) " >&6
2578 else
2579   if test "x$target_alias" = x; then
2580   ac_cv_target=$ac_cv_host
2581 else
2582   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2583     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2584 fi
2585
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2588 $as_echo "$ac_cv_target" >&6; }
2589 case $ac_cv_target in
2590 *-*-*) ;;
2591 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2592 esac
2593 target=$ac_cv_target
2594 ac_save_IFS=$IFS; IFS='-'
2595 set x $ac_cv_target
2596 shift
2597 target_cpu=$1
2598 target_vendor=$2
2599 shift; shift
2600 # Remember, the first character of IFS is used to create $*,
2601 # except with old shells:
2602 target_os=$*
2603 IFS=$ac_save_IFS
2604 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2605
2606
2607 # The aliases save the names the user supplied, while $host etc.
2608 # will get canonicalized.
2609 test -n "$target_alias" &&
2610   test "$program_prefix$program_suffix$program_transform_name" = \
2611     NONENONEs,x,x, &&
2612   program_prefix=${target_alias}-
2613
2614
2615    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2616    if test "${ac_configure_args+set}" != "set" ; then
2617       ac_configure_args=
2618       for ac_arg in ${1+"$@"}; do
2619          ac_configure_args="$ac_configure_args '$ac_arg'"
2620       done
2621    fi
2622
2623
2624 ax_enable_builddir="."
2625 # Check whether --enable-builddir was given.
2626 if test "${enable_builddir+set}" = set; then :
2627   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2628 else
2629   ax_enable_builddir="yes"
2630 fi
2631
2632 if test ".$ac_srcdir_defaulted" != ".no" ; then
2633 if test ".$srcdir" = ".." ; then
2634   if test -f config.status ; then
2635     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2636 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2637   else
2638     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2639     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2640     test ".$TARGET" = "." && TARGET="$target"
2641     test ".$ax_enable_builddir" = ".yes" && ax_enable_builddir="$TARGET"
2642     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2643       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2644       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2645       cd $ax_enable_builddir
2646       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2647         rm conftest.tmp
2648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2649 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2650       else
2651         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2652       fi
2653       srcdir=`echo "$ax_enable_builddir" |
2654               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2655       # going to restart from subdirectory location
2656       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2657       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2658       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2659       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2661 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2662       case "$0" in # restart
2663        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2664        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2665       esac ; exit $?
2666     fi
2667   fi
2668 fi fi
2669 # Extract the first word of "gsed sed", so it can be a program name with args.
2670 set dummy gsed sed; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2674   $as_echo_n "(cached) " >&6
2675 else
2676   case $ax_enable_builddir_sed in
2677   [\\/]* | ?:[\\/]*)
2678   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2679   ;;
2680   *)
2681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684   IFS=$as_save_IFS
2685   test -z "$as_dir" && as_dir=.
2686     for ac_exec_ext in '' $ac_executable_extensions; do
2687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690     break 2
2691   fi
2692 done
2693   done
2694 IFS=$as_save_IFS
2695
2696   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2697   ;;
2698 esac
2699 fi
2700 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2701 if test -n "$ax_enable_builddir_sed"; then
2702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2703 $as_echo "$ax_enable_builddir_sed" >&6; }
2704 else
2705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 $as_echo "no" >&6; }
2707 fi
2708
2709
2710 ax_enable_builddir_auxdir="$ac_aux_dir"
2711 ax_enable_builddir_auxdir=`echo "$ax_enable_builddir_auxdir" | $ax_enable_builddir_sed -e "s|$ac_top_srcdir|.|"`
2712 test ".$ax_enable_builddir_auxdir" = "." && ax_enable_builddir_auxdir="$ac_aux_dir"
2713 test ".$ax_enable_builddir_auxdir" = "." && ax_enable_builddir_auxdir="."
2714 ac_config_commands="$ac_config_commands buildir"
2715
2716  # --------------------------------------------
2717 case "$prefix:$ac_default_prefix" in
2718   NONE:/usr/local)
2719     result=""
2720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking default prefix path" >&5
2721 $as_echo_n "checking default prefix path... " >&6; }
2722     case "${target_os}" in
2723       *cygwin* | *mingw* | *uwin* | *djgpp | *emx* )
2724         if test "${host_os}" = "${target_os}" ; then
2725            ac_default_prefix="/programs"
2726            result="(win/dos target)"
2727         else
2728            case "$PATH" in
2729               *:/usr/local/cross-tools/$target_alias/bin:*)
2730                   ac_default_prefix="/usr/local/cross-tools/$target_alias" ;;
2731               *:/usr/local/$target_alias/bin:*)
2732                   ac_default_prefix="/usr/local/$target_alias" ;;
2733               *:/usr/local/$target_cpu-$target_os/bin:*)
2734                   ac_default_prefix="/usr/local/$target_cpu-$target_os" ;;
2735               *)
2736                   ac_default_prefix="/programs" ;;
2737            esac
2738            result="(win/dos cross-compiler)"
2739         fi
2740     ;;
2741     esac
2742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_default_prefix $result" >&5
2743 $as_echo "$ac_default_prefix $result" >&6; }
2744   ;;
2745 esac
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default prefix system" >&5
2747 $as_echo_n "checking default prefix system... " >&6; }
2748 result="$prefix" ; test "$result" = "NONE" && result="$ac_default_prefix"
2749 case ${result} in
2750   /programs | /programs/*) result="is win-/programs"
2751      # on win/dos, .exe .dll and .cfg live in the same directory
2752      libdir=`echo $libdir |sed -e 's:^..exec_prefix./lib$:${bindir}:'`
2753      sbindir=`echo $sbindir |sed -e 's:^..exec_prefix./sbin$:${libdir}:'`
2754      sysconfdir=`echo $sysconfdir |sed -e 's:^..prefix./etc$:${sbindir}:'`
2755      libexecdir=`echo $libexecdir |sed -e 's:/libexec$:/system:'`
2756      # help-files shall be set with --infodir, docprefix is datadir
2757      docprefix="${datadir}"
2758      mandir=`echo $mandir \
2759                              |sed -e 's:^..prefix./man$:${datadir}/info:'`
2760      includedir=`echo $includedir \
2761                 |sed -e 's:^..prefix./include$:${datadir}/include:'`
2762      # other state files (but /etc) are moved to datadir
2763      sharedstatedir=`echo $sharedstatedir \
2764                      |sed -e 's:^..prefix./com$:${datadir}/default:'`
2765      localstatedir=`echo $localstatedir \
2766                      |sed -e 's:^..prefix./var$:${datadir}/current:'`
2767   ;;
2768   /usr) result="is /usr-shipped"
2769      # doc files are left at prefix
2770      docprefix="${prefix}"
2771      # state files go under /top
2772      sysconfdir=`echo $sysconfdir |sed -e 's:^..prefix./etc$:/etc:'`
2773      sharedstatedir=`echo $sharedstatedir \
2774                      |sed -e 's:^..prefix./com$:/etc/default:'`
2775      # $prefix/var is going to end up in /var/lib
2776      localstatedir=`echo $localstatedir \
2777                      |sed -e 's:^..prefix./var$:/var/lib:'`
2778   ;;
2779   /opt | /opt/*) result="is /opt-package"
2780      # state files go under /top/prefix
2781      sysconfdir=`echo $sysconfdir \
2782                      |sed -e 's:^..prefix./etc$:/etc${prefix}:'`
2783      sharedstatedir=`echo $sharedstatedir \
2784                      |sed -e 's:^..prefix./com$:/etc/default${prefix}:'`
2785      # $prefix/var is going to to be /var$prefix... once again
2786      localstatedir=`echo $localstatedir \
2787                      |sed -e 's:^..prefix./var$:/var${prefix}:'`
2788      # doc files are left at prefix
2789      docprefix="${prefix}"
2790   ;;
2791   *) result="is /local-package"
2792      # doc files are moved from prefix down to datadir
2793      docprefix="${datadir}"
2794      mandir=`echo $mandir \
2795                      |sed -e 's:^..prefix./man$:${datadir}/man:'`
2796      infodir=`echo $infodir \
2797                      |sed -e 's:^..prefix./infodir$:${datadir}/info:'`
2798      # never use $prefix/com - that is no good idea
2799      sharedstatedir=`echo $sharedstatedir \
2800                      |sed -e 's:^..prefix./com$:${sysconfdir}/default:'`
2801   ;;
2802 esac
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
2804 $as_echo "$result" >&6; }
2805 # --------------------------------------------------------
2806
2807 # -----------------------------------------------------------------------
2808 # Check whether --enable-thread-safe was given.
2809 if test "${enable_thread_safe+set}" = set; then :
2810   enableval=$enable_thread_safe;
2811 else
2812    enable_thread_safe="yes"
2813 fi
2814
2815 THREAD_SAFE=""
2816 test "$enable_thread_safe" = "yes" && THREAD_SAFE="-thread-safe"
2817 test "$enable_thread_safe" = "$host_os" && THREAD_SAFE="-thread-safe"
2818
2819 if test -n "$THREAD_SAFE" ; then
2820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...using thread-safe linkage" >&5
2821 $as_echo "...using thread-safe linkage" >&6; }
2822 else
2823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled thread-safe linkage" >&5
2824 $as_echo "disabled thread-safe linkage" >&6; }
2825 fi
2826 # ----------------------------------------------------------------
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib install prefix" >&5
2828 $as_echo_n "checking zlib install prefix... " >&6; }
2829
2830 # Check whether --with-zlib was given.
2831 if test "${with_zlib+set}" = set; then :
2832   withval=$with_zlib;
2833 else
2834   with_zlib="no"
2835 fi
2836
2837 if test "${with_zlib}" = yes ; then # choose --prefix paths
2838    if test "${prefix}" = NONE ; then
2839       { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops, but only itself..." >&5
2840 $as_echo "oops, but only itself..." >&6; }
2841       as_fn_error $? "--with-zlib requires a path argument or a --prefix path set" "$LINENO" 5
2842    fi
2843    with_zlib="$prefix"
2844 fi
2845
2846 case ".$with_zlib" in
2847    .no|.no,*)
2848       { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
2849 $as_echo "none" >&6; }
2850       with_zlib="no, not configured" ;;
2851   ./usr)
2852       { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops, ignored (may try --with-zlib=/usr/.)" >&5
2853 $as_echo "oops, ignored (may try --with-zlib=/usr/.)" >&6; }
2854       with_zlib="no, /usr ignored" ;;
2855   *)  if test ! -d "$with_zlib/include" ; then
2856          { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops, given but..." >&5
2857 $as_echo "oops, given but..." >&6; }
2858          as_fn_error $? "\"$with_zlib/include\" is not a directory" "$LINENO" 5
2859       fi
2860       if test ! -d "$with_zlib/lib" ; then
2861          { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops, given but..." >&5
2862 $as_echo "oops, given but..." >&6; }
2863          as_fn_error $? "\"$with_zlib/lib\" is not a directory" "$LINENO" 5
2864       fi
2865       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zlib" >&5
2866 $as_echo "$with_zlib" >&6; }
2867       ZLIB_INCL="-I$with_zlib/include"
2868       ZLIB_LDIR="-L$with_zlib/lib"
2869       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CPPFLAGS $ZLIB_INCL" >&5
2870 $as_echo "..adding CPPFLAGS $ZLIB_INCL" >&6; }
2871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding LDFLAGS  $ZLIB_LDIR" >&5
2872 $as_echo "..adding LDFLAGS  $ZLIB_LDIR" >&6; }
2873       CPPFLAGS="$CPPFLAGS $ZLIB_INCL"
2874       LDFLAGS="$LDFLAGS $ZLIB_LDIR"
2875   ;;
2876 esac
2877
2878
2879 # -----------------------------------------------------------------------
2880
2881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking rpm spec file" >&5
2882 $as_echo_n "checking rpm spec file... " >&6; }
2883   if test "." != "." ; then
2884     ax_spec_file_=""
2885     ax_spec_file=`basename `
2886   else
2887     case ".$ac_unique_file" in
2888       *.spec) ax_spec_file="$ac_unique_file"
2889               ax_spec_file_="$ac_unique_file" ;;
2890       *) ax_spec_file="TODO"
2891          if test ".$PACKAGE" != "."
2892          then ax_spec_file_="$PACKAGE.spec"
2893          else ax_spec_file_="README"
2894          fi
2895    cat >&5 <<EOF
2896          no ax_spec_file argument has been given, using defaults of
2897          (1) $ax_spec_file_
2898          (2) $ax_spec_file
2899 EOF
2900          ;;
2901     esac
2902   fi
2903   # find specfile
2904   for i in  . $srcdir $srcdir/.. .. ; do
2905     if test -f "$i/$ax_spec_file_" ; then
2906       ax_spec_dir="$i"
2907       ax_spec_file="$ax_spec_dir/$ax_spec_file_"
2908       break
2909     fi
2910     if test -f "$i/$ax_spec_file" ; then
2911       ax_spec_dir="$i"
2912       ax_spec_file="$ax_spec_dir/$ax_spec_file"
2913       break
2914     fi
2915   done
2916   case "$ax_spec_file" in
2917    ./*) if test "$ax_spec_file" = "./$ax_spec_file_" ; then
2918           ax_spec_file="$ax_spec_file_"
2919         fi
2920         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_spec_file" >&5
2921 $as_echo "$ax_spec_file" >&6; } ;;
2922    */*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_spec_file" >&5
2923 $as_echo "$ax_spec_file" >&6; } ;;
2924    *)   as_fn_error $? "no rpm spec file found" "$LINENO" 5 ;;
2925   esac
2926
2927
2928       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec package" >&5
2929 $as_echo_n "checking for spec package... " >&6; }
2930   if test ".$PACKAGE_NAME" = "." ; then if test ! -f $ax_spec_file
2931   then k="(w/o spec)"
2932   else k=""
2933
2934     if test ".$PACKAGE_NAME" = "." ; then
2935     PACKAGE_NAME=`grep -i '^[   ]*name[         ]*:'   "$ax_spec_file" | sed -e 's/.*:[         ]*//'     -e 's/[       ][      ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
2936     if test ".$PACKAGE_NAME" = "." ; then
2937   for PACKAGE_NAME in name PACKAGE_NAME package_name ; do
2938     PACKAGE_NAME=`echo "$PACKAGE_NAME" | sed -e 's/^%//g'`
2939     PACKAGE_NAME=`sed     -e  "/^%[     ]*define[       ][      ]*$PACKAGE_NAME[        ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_NAME[        ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
2940     test ".PACKAGE_NAME" != "." && break
2941   done
2942     fi
2943   case ".$PACKAGE_NAME" in
2944     .%{*)
2945     PACKAGE_NAME=`echo "$PACKAGE_NAME" | sed -e 's/%{//' -e 's/}$//'`
2946     PACKAGE_NAME=`sed    -e  "/^%[      ]*define[       ][      ]*$PACKAGE_NAME[        ]/!d"     -e "s/^%[     ]*define[       ][      ]*$PACKAGE_NAME[        ]*//"    -e 's/[        ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2947     .%*)
2948     PACKAGE_NAME=`echo "$PACKAGE_NAME" | sed -e 's/%//'`
2949     PACKAGE_NAME=`sed     -e  "/^%[     ]*define[       ][      ]*$PACKAGE_NAME[        ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_NAME[        ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2950   esac
2951
2952     fi # test ".$[]PACKAGE_NAME" = "."
2953
2954     PACKAGE_NAME=`echo $PACKAGE_NAME | sed -e 's/ /-/g'`
2955   fi fi
2956   test ".$PACKAGE_NAME" = "." && k="(fallback)"
2957     test ".$PACKAGE_NAME"   = "."  && PACKAGE_NAME=`basename $ax_spec_file .spec`
2958   test ".$PACKAGE_NAME"   = ".README" && PACKAGE_NAME="TODO"
2959   test ".$PACKAGE_NAME"   = ".TODO" && PACKAGE_NAME="foo"
2960
2961   test "PACKAGE_NAME" = "PACKAGE_NAME" && test ".$PACKAGE" = "." && PACKAGE="$PACKAGE_NAME"
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_NAME $k" >&5
2963 $as_echo "$PACKAGE_NAME $k" >&6; }
2964
2965       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec version" >&5
2966 $as_echo_n "checking for spec version... " >&6; }
2967   if test ".$PACKAGE_VERSION" = "." ; then if test ! -f $ax_spec_file
2968   then k="(w/o spec)"
2969   else k=""
2970
2971     if test ".$PACKAGE_VERSION" = "." ; then
2972     PACKAGE_VERSION=`grep -i '^[        ]*version[      ]*:'   "$ax_spec_file" | sed -e 's/.*:[         ]*//'     -e 's/[       ][      ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
2973     if test ".$PACKAGE_VERSION" = "." ; then
2974   for PACKAGE_VERSION in version PACKAGE_VERSION package_version ; do
2975     PACKAGE_VERSION=`echo "$PACKAGE_VERSION" | sed -e 's/^%//g'`
2976     PACKAGE_VERSION=`sed     -e  "/^%[  ]*define[       ][      ]*$PACKAGE_VERSION[     ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_VERSION[     ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
2977     test ".PACKAGE_VERSION" != "." && break
2978   done
2979     fi
2980   case ".$PACKAGE_VERSION" in
2981     .%{*)
2982     PACKAGE_VERSION=`echo "$PACKAGE_VERSION" | sed -e 's/%{//' -e 's/}$//'`
2983     PACKAGE_VERSION=`sed    -e  "/^%[   ]*define[       ][      ]*$PACKAGE_VERSION[     ]/!d"     -e "s/^%[     ]*define[       ][      ]*$PACKAGE_VERSION[     ]*//"    -e 's/[        ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2984     .%*)
2985     PACKAGE_VERSION=`echo "$PACKAGE_VERSION" | sed -e 's/%//'`
2986     PACKAGE_VERSION=`sed     -e  "/^%[  ]*define[       ][      ]*$PACKAGE_VERSION[     ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_VERSION[     ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2987   esac
2988
2989     fi # test ".$[]PACKAGE_VERSION" = "."
2990
2991     PACKAGE_VERSION=`echo $PACKAGE_VERSION | sed -e 's/ /-/g'`
2992   fi fi
2993   test ".$PACKAGE_VERSION" = "." && k="(fallback)"
2994     test ".$PACKAGE_VERSION"   = "."  && PACKAGE_VERSION=`date +0.%y.%W%w`
2995
2996   test "PACKAGE_VERSION" = "PACKAGE_VERSION" && test ".$VERSION" = "." && VERSION="$PACKAGE_VERSION"
2997   case "$PACKAGE_VERSION" in  # note we set traditional VERSION before cleaning things up
2998   *.*.) PACKAGE_VERSION="$PACKAGE_VERSION"`date +%W%w` ;;
2999   *.*.*) ;;
3000   *.)  PACKAGE_VERSION="$PACKAGE_VERSION"`date +%y.%W%w` ;;
3001   *.*) PACKAGE_VERSION="$PACKAGE_VERSION.0" ;;
3002   *) PACKAGE_VERSION=`$as_echo "$PACKAGE_VERSION" | $as_tr_sh` ; PACKAGE_VERSION="$PACKAGE_VERSION.`date +%y.%W%w`" ;;
3003   esac
3004   PACKAGE_VERSION=`echo $PACKAGE_VERSION | sed -e "s/[.]0\\(0-9\\)/.\\1/g"`
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_VERSION $k" >&5
3006 $as_echo "$PACKAGE_VERSION $k" >&6; }
3007
3008       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec license type" >&5
3009 $as_echo_n "checking for spec license type... " >&6; }
3010   if test ".$PACKAGE_LICENSE" = "." ; then if test ! -f $ax_spec_file
3011   then k="(w/o spec)"
3012   else k=""
3013
3014     if test ".$PACKAGE_LICENSE" = "." ; then
3015     PACKAGE_LICENSE=`grep -i '^[        ]*license[      ]*:'   "$ax_spec_file" | sed -e 's/.*:[         ]*//'     -e 's/[       ][      ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
3016     if test ".$PACKAGE_LICENSE" = "." ; then
3017   for PACKAGE_LICENSE in license PACKAGE_LICENSE package_license ; do
3018     PACKAGE_LICENSE=`echo "$PACKAGE_LICENSE" | sed -e 's/^%//g'`
3019     PACKAGE_LICENSE=`sed     -e  "/^%[  ]*define[       ][      ]*$PACKAGE_LICENSE[     ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_LICENSE[     ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
3020     test ".PACKAGE_LICENSE" != "." && break
3021   done
3022     fi
3023   case ".$PACKAGE_LICENSE" in
3024     .%{*)
3025     PACKAGE_LICENSE=`echo "$PACKAGE_LICENSE" | sed -e 's/%{//' -e 's/}$//'`
3026     PACKAGE_LICENSE=`sed    -e  "/^%[   ]*define[       ][      ]*$PACKAGE_LICENSE[     ]/!d"     -e "s/^%[     ]*define[       ][      ]*$PACKAGE_LICENSE[     ]*//"    -e 's/[        ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
3027     .%*)
3028     PACKAGE_LICENSE=`echo "$PACKAGE_LICENSE" | sed -e 's/%//'`
3029     PACKAGE_LICENSE=`sed     -e  "/^%[  ]*define[       ][      ]*$PACKAGE_LICENSE[     ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_LICENSE[     ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
3030   esac
3031
3032     fi # test ".$[]PACKAGE_LICENSE" = "."
3033
3034     PACKAGE_LICENSE=`echo $PACKAGE_LICENSE | sed -e 's/ *License//g'`
3035   fi fi
3036   test ".$PACKAGE_LICENSE" = "." && k="(fallback)"
3037     if test ".$PACKAGE_LICENSE"   = "."  ; then
3038     for ac_file in "$srcdir/COPYING" "$srcdir/COPYING" "$srcdir/LICENSE" ; do
3039       test -f "$ac_file" || continue
3040       if grep "GNU LESSER GENERAL PUBLIC LICENSE" "$ac_file" >/dev/null
3041       then PACKAGE_LICENSE="GNU LGPL" ; break
3042       elif grep "GNU GENERAL PUBLIC LICENSE" "$ac_file" >/dev/null
3043       then PACKAGE_LICENSE="GNU GPL" ; break
3044       elif grep "MOZILLA PUBLIC LICENSE" "$ac_file" >/dev/null
3045       then PACKAGE_LICENSE="MPL" ; break
3046       elif grep "Mozilla Public License" "$ac_file" >/dev/null
3047       then PACKAGE_LICENSE="MPL" ; break
3048       elif grep -i "artistic license" "$ac_file" >/dev/null
3049       then PACKAGE_LICENSE="Artistic" ; break
3050       elif grep -i "artistic control" "$ac_file" >/dev/null
3051       then PACKAGE_LICENSE="Artistic" ; break
3052       elif grep -i "semblance of artistic" "$ac_file" >/dev/null
3053       then PACKAGE_LICENSE="Artistic" ; break
3054       elif grep -i "above copyright notice" "$ac_file" >/dev/null
3055       then PACKAGE_LICENSE="BSD" ; break
3056       fi
3057     done
3058     if test ".$PACKAGE_LICENSE" = "." ; then
3059       if test "$srcdir/COPYING.LIB" ; then PACKAGE_LICENSE="GNU LGPL"
3060       elif test ".$ltmain" != "."   ; then PACKAGE_LICENSE="GNU LGPL"
3061        else PACKAGE_LICENSE="GNU GPL"
3062       fi
3063     fi
3064   fi
3065
3066   test "$PACKAGE_LICENSE" = "GPL" && PACKAGE_LICENSE="GNU GPL"
3067   test "$PACKAGE_LICENSE" = "LGPL" && PACKAGE_LICENSE="GNU LGPL"
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_LICENSE $k" >&5
3069 $as_echo "$PACKAGE_LICENSE $k" >&6; }
3070
3071       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec summary" >&5
3072 $as_echo_n "checking for spec summary... " >&6; }
3073   if test ".$PACKAGE_SUMMARY" = "." ; then if test ! -f $ax_spec_file
3074   then k="(w/o spec)"
3075   else k=""
3076
3077     if test ".$PACKAGE_SUMMARY" = "." ; then
3078     PACKAGE_SUMMARY=`grep -i '^[        ]*summary[      ]*:'   "$ax_spec_file" | sed -e 's/.*:[         ]*//'     -e 's/[       ][      ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
3079     if test ".$PACKAGE_SUMMARY" = "." ; then
3080   for PACKAGE_SUMMARY in summary PACKAGE_SUMMARY package_summary ; do
3081     PACKAGE_SUMMARY=`echo "$PACKAGE_SUMMARY" | sed -e 's/^%//g'`
3082     PACKAGE_SUMMARY=`sed     -e  "/^%[  ]*define[       ][      ]*$PACKAGE_SUMMARY[     ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_SUMMARY[     ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
3083     test ".PACKAGE_SUMMARY" != "." && break
3084   done
3085     fi
3086   case ".$PACKAGE_SUMMARY" in
3087     .%{*)
3088     PACKAGE_SUMMARY=`echo "$PACKAGE_SUMMARY" | sed -e 's/%{//' -e 's/}$//'`
3089     PACKAGE_SUMMARY=`sed    -e  "/^%[   ]*define[       ][      ]*$PACKAGE_SUMMARY[     ]/!d"     -e "s/^%[     ]*define[       ][      ]*$PACKAGE_SUMMARY[     ]*//"    -e 's/[        ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
3090     .%*)
3091     PACKAGE_SUMMARY=`echo "$PACKAGE_SUMMARY" | sed -e 's/%//'`
3092     PACKAGE_SUMMARY=`sed     -e  "/^%[  ]*define[       ][      ]*$PACKAGE_SUMMARY[     ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_SUMMARY[     ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
3093   esac
3094
3095     fi # test ".$[]PACKAGE_SUMMARY" = "."
3096
3097   fi fi
3098   test ".$PACKAGE_SUMMARY" = "." && k="(fallback)"
3099     if test ".$PACKAGE_SUMMARY"   = "."  ; then PACKAGE_SUMMARY="$PACKAGE"
3100      test ".$PACKAGE_SUMMARY" = "." && PACKAGE_SUMMARY="foo"
3101      test ".$ltmain" != "." && PACKAGE_SUMMARY="$PACKAGE_SUMMARY library"
3102   fi
3103
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_SUMMARY $k" >&5
3105 $as_echo "$PACKAGE_SUMMARY $k" >&6; }
3106
3107       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec category" >&5
3108 $as_echo_n "checking for spec category... " >&6; }
3109   if test ".$PACKAGE_CATEGORY" = "." ; then if test ! -f $ax_spec_file
3110   then k="(w/o spec)"
3111   else k=""
3112
3113     if test ".$PACKAGE_CATEGORY" = "." ; then
3114     PACKAGE_CATEGORY=`grep -i '^[       ]*group[        ]*:'   "$ax_spec_file" | sed -e 's/.*:[         ]*//'     -e 's/[       ][      ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
3115     if test ".$PACKAGE_CATEGORY" = "." ; then
3116   for PACKAGE_CATEGORY in group PACKAGE_CATEGORY package_category ; do
3117     PACKAGE_CATEGORY=`echo "$PACKAGE_CATEGORY" | sed -e 's/^%//g'`
3118     PACKAGE_CATEGORY=`sed     -e  "/^%[         ]*define[       ][      ]*$PACKAGE_CATEGORY[    ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_CATEGORY[    ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
3119     test ".PACKAGE_CATEGORY" != "." && break
3120   done
3121     fi
3122   case ".$PACKAGE_CATEGORY" in
3123     .%{*)
3124     PACKAGE_CATEGORY=`echo "$PACKAGE_CATEGORY" | sed -e 's/%{//' -e 's/}$//'`
3125     PACKAGE_CATEGORY=`sed    -e  "/^%[  ]*define[       ][      ]*$PACKAGE_CATEGORY[    ]/!d"     -e "s/^%[     ]*define[       ][      ]*$PACKAGE_CATEGORY[    ]*//"    -e 's/[        ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
3126     .%*)
3127     PACKAGE_CATEGORY=`echo "$PACKAGE_CATEGORY" | sed -e 's/%//'`
3128     PACKAGE_CATEGORY=`sed     -e  "/^%[         ]*define[       ][      ]*$PACKAGE_CATEGORY[    ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_CATEGORY[    ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
3129   esac
3130
3131     fi # test ".$[]PACKAGE_CATEGORY" = "."
3132
3133     PACKAGE_CATEGORY=`echo $PACKAGE_CATEGORY | sed -e 's/ /-/g'`
3134   fi fi
3135   test ".$PACKAGE_CATEGORY" = "." && k="(fallback)"
3136     if test ".$PACKAGE_CATEGORY" = "."  ; then if test ".$ltmain" != "."
3137      then PACKAGE_CATEGORY="Development/Library"
3138      else PACKAGE_CATEGORY="Development/Other"
3139   fi fi
3140
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_CATEGORY $k" >&5
3142 $as_echo "$PACKAGE_CATEGORY $k" >&6; }
3143
3144       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec icon" >&5
3145 $as_echo_n "checking for spec icon... " >&6; }
3146   if test ".$PACKAGE_ICON" = "." ; then if test ! -f $ax_spec_file
3147   then k="(w/o spec)"
3148   else k=""
3149
3150     if test ".$PACKAGE_ICON" = "." ; then
3151     PACKAGE_ICON=`grep -i '^[   ]*icon[         ]*:'   "$ax_spec_file" | sed -e 's/.*:[         ]*//'     -e 's/[       ][      ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
3152     if test ".$PACKAGE_ICON" = "." ; then
3153   for PACKAGE_ICON in icon PACKAGE_ICON package_icon ; do
3154     PACKAGE_ICON=`echo "$PACKAGE_ICON" | sed -e 's/^%//g'`
3155     PACKAGE_ICON=`sed     -e  "/^%[     ]*define[       ][      ]*$PACKAGE_ICON[        ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_ICON[        ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
3156     test ".PACKAGE_ICON" != "." && break
3157   done
3158     fi
3159   case ".$PACKAGE_ICON" in
3160     .%{*)
3161     PACKAGE_ICON=`echo "$PACKAGE_ICON" | sed -e 's/%{//' -e 's/}$//'`
3162     PACKAGE_ICON=`sed    -e  "/^%[      ]*define[       ][      ]*$PACKAGE_ICON[        ]/!d"     -e "s/^%[     ]*define[       ][      ]*$PACKAGE_ICON[        ]*//"    -e 's/[        ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
3163     .%*)
3164     PACKAGE_ICON=`echo "$PACKAGE_ICON" | sed -e 's/%//'`
3165     PACKAGE_ICON=`sed     -e  "/^%[     ]*define[       ][      ]*$PACKAGE_ICON[        ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_ICON[        ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
3166   esac
3167
3168     fi # test ".$[]PACKAGE_ICON" = "."
3169
3170   fi fi
3171   test ".$PACKAGE_ICON" = "." && k="(fallback)"
3172     if test ".$PACKAGE_ICON"   = "."  ; then PACKAGE_ICON="$PACKAGE-icon.png" ; fi
3173
3174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_ICON $k" >&5
3175 $as_echo "$PACKAGE_ICON $k" >&6; }
3176
3177
3178 am__api_version='1.13'
3179
3180 # Find a good install program.  We prefer a C program (faster),
3181 # so one script is as good as another.  But avoid the broken or
3182 # incompatible versions:
3183 # SysV /etc/install, /usr/sbin/install
3184 # SunOS /usr/etc/install
3185 # IRIX /sbin/install
3186 # AIX /bin/install
3187 # AmigaOS /C/install, which installs bootblocks on floppy discs
3188 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3189 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3190 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3191 # OS/2's system install, which has a completely different semantic
3192 # ./install, which can be erroneously created by make from ./install.sh.
3193 # Reject install programs that cannot install multiple files.
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3195 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3196 if test -z "$INSTALL"; then
3197 if ${ac_cv_path_install+:} false; then :
3198   $as_echo_n "(cached) " >&6
3199 else
3200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205     # Account for people who put trailing slashes in PATH elements.
3206 case $as_dir/ in #((
3207   ./ | .// | /[cC]/* | \
3208   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3209   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3210   /usr/ucb/* ) ;;
3211   *)
3212     # OSF1 and SCO ODT 3.0 have their own names for install.
3213     # Don't use installbsd from OSF since it installs stuff as root
3214     # by default.
3215     for ac_prog in ginstall scoinst install; do
3216       for ac_exec_ext in '' $ac_executable_extensions; do
3217         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3218           if test $ac_prog = install &&
3219             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3220             # AIX install.  It has an incompatible calling convention.
3221             :
3222           elif test $ac_prog = install &&
3223             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3224             # program-specific install script used by HP pwplus--don't use.
3225             :
3226           else
3227             rm -rf conftest.one conftest.two conftest.dir
3228             echo one > conftest.one
3229             echo two > conftest.two
3230             mkdir conftest.dir
3231             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3232               test -s conftest.one && test -s conftest.two &&
3233               test -s conftest.dir/conftest.one &&
3234               test -s conftest.dir/conftest.two
3235             then
3236               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3237               break 3
3238             fi
3239           fi
3240         fi
3241       done
3242     done
3243     ;;
3244 esac
3245
3246   done
3247 IFS=$as_save_IFS
3248
3249 rm -rf conftest.one conftest.two conftest.dir
3250
3251 fi
3252   if test "${ac_cv_path_install+set}" = set; then
3253     INSTALL=$ac_cv_path_install
3254   else
3255     # As a last resort, use the slow shell script.  Don't cache a
3256     # value for INSTALL within a source directory, because that will
3257     # break other packages using the cache if that directory is
3258     # removed, or if the value is a relative name.
3259     INSTALL=$ac_install_sh
3260   fi
3261 fi
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3263 $as_echo "$INSTALL" >&6; }
3264
3265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3266 # It thinks the first close brace ends the variable substitution.
3267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3268
3269 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3270
3271 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3272
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3274 $as_echo_n "checking whether build environment is sane... " >&6; }
3275 # Reject unsafe characters in $srcdir or the absolute working directory
3276 # name.  Accept space and tab only in the latter.
3277 am_lf='
3278 '
3279 case `pwd` in
3280   *[\\\"\#\$\&\'\`$am_lf]*)
3281     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3282 esac
3283 case $srcdir in
3284   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3285     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3286 esac
3287
3288 # Do 'set' in a subshell so we don't clobber the current shell's
3289 # arguments.  Must try -L first in case configure is actually a
3290 # symlink; some systems play weird games with the mod time of symlinks
3291 # (eg FreeBSD returns the mod time of the symlink's containing
3292 # directory).
3293 if (
3294    am_has_slept=no
3295    for am_try in 1 2; do
3296      echo "timestamp, slept: $am_has_slept" > conftest.file
3297      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3298      if test "$*" = "X"; then
3299         # -L didn't work.
3300         set X `ls -t "$srcdir/configure" conftest.file`
3301      fi
3302      if test "$*" != "X $srcdir/configure conftest.file" \
3303         && test "$*" != "X conftest.file $srcdir/configure"; then
3304
3305         # If neither matched, then we have a broken ls.  This can happen
3306         # if, for instance, CONFIG_SHELL is bash and it inherits a
3307         # broken ls alias from the environment.  This has actually
3308         # happened.  Such a system could not be considered "sane".
3309         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3310   alias in your environment" "$LINENO" 5
3311      fi
3312      if test "$2" = conftest.file || test $am_try -eq 2; then
3313        break
3314      fi
3315      # Just in case.
3316      sleep 1
3317      am_has_slept=yes
3318    done
3319    test "$2" = conftest.file
3320    )
3321 then
3322    # Ok.
3323    :
3324 else
3325    as_fn_error $? "newly created file is older than distributed files!
3326 Check your system clock" "$LINENO" 5
3327 fi
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329 $as_echo "yes" >&6; }
3330 # If we didn't sleep, we still need to ensure time stamps of config.status and
3331 # generated files are strictly newer.
3332 am_sleep_pid=
3333 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3334   ( sleep 1 ) &
3335   am_sleep_pid=$!
3336 fi
3337
3338 rm -f conftest.file
3339
3340 test "$program_prefix" != NONE &&
3341   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3342 # Use a double $ so make ignores it.
3343 test "$program_suffix" != NONE &&
3344   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3345 # Double any \ or $.
3346 # By default was `s,x,x', remove it if useless.
3347 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3348 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3349
3350 # Expand $ac_aux_dir to an absolute path.
3351 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3352
3353 if test x"${MISSING+set}" != xset; then
3354   case $am_aux_dir in
3355   *\ * | *\     *)
3356     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3357   *)
3358     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3359   esac
3360 fi
3361 # Use eval to expand $SHELL
3362 if eval "$MISSING --is-lightweight"; then
3363   am_missing_run="$MISSING "
3364 else
3365   am_missing_run=
3366   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3367 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3368 fi
3369
3370 if test x"${install_sh}" != xset; then
3371   case $am_aux_dir in
3372   *\ * | *\     *)
3373     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3374   *)
3375     install_sh="\${SHELL} $am_aux_dir/install-sh"
3376   esac
3377 fi
3378
3379 # Installed binaries are usually stripped using 'strip' when the user
3380 # run "make install-strip".  However 'strip' might not be the right
3381 # tool to use in cross-compilation environments, therefore Automake
3382 # will honor the 'STRIP' environment variable to overrule this program.
3383 if test "$cross_compiling" != no; then
3384   if test -n "$ac_tool_prefix"; then
3385   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3386 set dummy ${ac_tool_prefix}strip; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_prog_STRIP+:} false; then :
3390   $as_echo_n "(cached) " >&6
3391 else
3392   if test -n "$STRIP"; then
3393   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400     for ac_exec_ext in '' $ac_executable_extensions; do
3401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404     break 2
3405   fi
3406 done
3407   done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 STRIP=$ac_cv_prog_STRIP
3413 if test -n "$STRIP"; then
3414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3415 $as_echo "$STRIP" >&6; }
3416 else
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421
3422 fi
3423 if test -z "$ac_cv_prog_STRIP"; then
3424   ac_ct_STRIP=$STRIP
3425   # Extract the first word of "strip", so it can be a program name with args.
3426 set dummy strip; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3430   $as_echo_n "(cached) " >&6
3431 else
3432   if test -n "$ac_ct_STRIP"; then
3433   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438   IFS=$as_save_IFS
3439   test -z "$as_dir" && as_dir=.
3440     for ac_exec_ext in '' $ac_executable_extensions; do
3441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442     ac_cv_prog_ac_ct_STRIP="strip"
3443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444     break 2
3445   fi
3446 done
3447   done
3448 IFS=$as_save_IFS
3449
3450 fi
3451 fi
3452 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3453 if test -n "$ac_ct_STRIP"; then
3454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3455 $as_echo "$ac_ct_STRIP" >&6; }
3456 else
3457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3459 fi
3460
3461   if test "x$ac_ct_STRIP" = x; then
3462     STRIP=":"
3463   else
3464     case $cross_compiling:$ac_tool_warned in
3465 yes:)
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3468 ac_tool_warned=yes ;;
3469 esac
3470     STRIP=$ac_ct_STRIP
3471   fi
3472 else
3473   STRIP="$ac_cv_prog_STRIP"
3474 fi
3475
3476 fi
3477 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3478
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3480 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3481 if test -z "$MKDIR_P"; then
3482   if ${ac_cv_path_mkdir+:} false; then :
3483   $as_echo_n "(cached) " >&6
3484 else
3485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3487 do
3488   IFS=$as_save_IFS
3489   test -z "$as_dir" && as_dir=.
3490     for ac_prog in mkdir gmkdir; do
3491          for ac_exec_ext in '' $ac_executable_extensions; do
3492            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3493            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3494              'mkdir (GNU coreutils) '* | \
3495              'mkdir (coreutils) '* | \
3496              'mkdir (fileutils) '4.1*)
3497                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3498                break 3;;
3499            esac
3500          done
3501        done
3502   done
3503 IFS=$as_save_IFS
3504
3505 fi
3506
3507   test -d ./--version && rmdir ./--version
3508   if test "${ac_cv_path_mkdir+set}" = set; then
3509     MKDIR_P="$ac_cv_path_mkdir -p"
3510   else
3511     # As a last resort, use the slow shell script.  Don't cache a
3512     # value for MKDIR_P within a source directory, because that will
3513     # break other packages using the cache if that directory is
3514     # removed, or if the value is a relative name.
3515     MKDIR_P="$ac_install_sh -d"
3516   fi
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3519 $as_echo "$MKDIR_P" >&6; }
3520
3521 for ac_prog in gawk mawk nawk awk
3522 do
3523   # Extract the first word of "$ac_prog", so it can be a program name with args.
3524 set dummy $ac_prog; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if ${ac_cv_prog_AWK+:} false; then :
3528   $as_echo_n "(cached) " >&6
3529 else
3530   if test -n "$AWK"; then
3531   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536   IFS=$as_save_IFS
3537   test -z "$as_dir" && as_dir=.
3538     for ac_exec_ext in '' $ac_executable_extensions; do
3539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540     ac_cv_prog_AWK="$ac_prog"
3541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542     break 2
3543   fi
3544 done
3545   done
3546 IFS=$as_save_IFS
3547
3548 fi
3549 fi
3550 AWK=$ac_cv_prog_AWK
3551 if test -n "$AWK"; then
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3553 $as_echo "$AWK" >&6; }
3554 else
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3557 fi
3558
3559
3560   test -n "$AWK" && break
3561 done
3562
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3564 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3565 set x ${MAKE-make}
3566 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3567 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3568   $as_echo_n "(cached) " >&6
3569 else
3570   cat >conftest.make <<\_ACEOF
3571 SHELL = /bin/sh
3572 all:
3573         @echo '@@@%%%=$(MAKE)=@@@%%%'
3574 _ACEOF
3575 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3576 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3577   *@@@%%%=?*=@@@%%%*)
3578     eval ac_cv_prog_make_${ac_make}_set=yes;;
3579   *)
3580     eval ac_cv_prog_make_${ac_make}_set=no;;
3581 esac
3582 rm -f conftest.make
3583 fi
3584 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3586 $as_echo "yes" >&6; }
3587   SET_MAKE=
3588 else
3589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3591   SET_MAKE="MAKE=${MAKE-make}"
3592 fi
3593
3594 rm -rf .tst 2>/dev/null
3595 mkdir .tst 2>/dev/null
3596 if test -d .tst; then
3597   am__leading_dot=.
3598 else
3599   am__leading_dot=_
3600 fi
3601 rmdir .tst 2>/dev/null
3602
3603 # Check whether --enable-silent-rules was given.
3604 if test "${enable_silent_rules+set}" = set; then :
3605   enableval=$enable_silent_rules;
3606 fi
3607
3608 case $enable_silent_rules in # (((
3609   yes) AM_DEFAULT_VERBOSITY=0;;
3610    no) AM_DEFAULT_VERBOSITY=1;;
3611     *) AM_DEFAULT_VERBOSITY=1;;
3612 esac
3613 am_make=${MAKE-make}
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3615 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3616 if ${am_cv_make_support_nested_variables+:} false; then :
3617   $as_echo_n "(cached) " >&6
3618 else
3619   if $as_echo 'TRUE=$(BAR$(V))
3620 BAR0=false
3621 BAR1=true
3622 V=1
3623 am__doit:
3624         @$(TRUE)
3625 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3626   am_cv_make_support_nested_variables=yes
3627 else
3628   am_cv_make_support_nested_variables=no
3629 fi
3630 fi
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3632 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3633 if test $am_cv_make_support_nested_variables = yes; then
3634     AM_V='$(V)'
3635   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3636 else
3637   AM_V=$AM_DEFAULT_VERBOSITY
3638   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3639 fi
3640 AM_BACKSLASH='\'
3641
3642 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3643   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3644   # is not polluted with repeated "-I."
3645   am__isrc=' -I$(srcdir)'
3646   # test to see if srcdir already configured
3647   if test -f $srcdir/config.status; then
3648     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3649   fi
3650 fi
3651
3652 # test whether we have cygpath
3653 if test -z "$CYGPATH_W"; then
3654   if (cygpath --version) >/dev/null 2>/dev/null; then
3655     CYGPATH_W='cygpath -w'
3656   else
3657     CYGPATH_W=echo
3658   fi
3659 fi
3660
3661
3662 # Define the identity of the package.
3663
3664  PACKAGE=$PACKAGE
3665  VERSION=$VERSION
3666
3667
3668 cat >>confdefs.h <<_ACEOF
3669 #define PACKAGE "$PACKAGE"
3670 _ACEOF
3671
3672
3673 cat >>confdefs.h <<_ACEOF
3674 #define VERSION "$VERSION"
3675 _ACEOF
3676
3677 # Some tools Automake needs.
3678
3679 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3680
3681
3682 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3683
3684
3685 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3686
3687
3688 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3689
3690
3691 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3692
3693 # For better backward compatibility.  To be removed once Automake 1.9.x
3694 # dies out for good.  For more background, see:
3695 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3696 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3697 mkdir_p='$(MKDIR_P)'
3698
3699 # We need awk for the "check" target.  The system "awk" is bad on
3700 # some platforms.
3701 # Always define AMTAR for backward compatibility.  Yes, it's still used
3702 # in the wild :-(  We should find a proper way to deprecate it ...
3703 AMTAR='$${TAR-tar}'
3704
3705
3706 # We'll loop over all known methods to create a tar archive until one works.
3707 _am_tools='gnutar  pax cpio none'
3708
3709 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3710
3711
3712
3713
3714
3715
3716 ac_ext=c
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721 if test -n "$ac_tool_prefix"; then
3722   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3723 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 $as_echo_n "checking for $ac_word... " >&6; }
3726 if ${ac_cv_prog_CC+:} false; then :
3727   $as_echo_n "(cached) " >&6
3728 else
3729   if test -n "$CC"; then
3730   ac_cv_prog_CC="$CC" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3734 do
3735   IFS=$as_save_IFS
3736   test -z "$as_dir" && as_dir=.
3737     for ac_exec_ext in '' $ac_executable_extensions; do
3738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741     break 2
3742   fi
3743 done
3744   done
3745 IFS=$as_save_IFS
3746
3747 fi
3748 fi
3749 CC=$ac_cv_prog_CC
3750 if test -n "$CC"; then
3751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752 $as_echo "$CC" >&6; }
3753 else
3754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756 fi
3757
3758
3759 fi
3760 if test -z "$ac_cv_prog_CC"; then
3761   ac_ct_CC=$CC
3762   # Extract the first word of "gcc", so it can be a program name with args.
3763 set dummy gcc; ac_word=$2
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 $as_echo_n "checking for $ac_word... " >&6; }
3766 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3767   $as_echo_n "(cached) " >&6
3768 else
3769   if test -n "$ac_ct_CC"; then
3770   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775   IFS=$as_save_IFS
3776   test -z "$as_dir" && as_dir=.
3777     for ac_exec_ext in '' $ac_executable_extensions; do
3778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779     ac_cv_prog_ac_ct_CC="gcc"
3780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781     break 2
3782   fi
3783 done
3784   done
3785 IFS=$as_save_IFS
3786
3787 fi
3788 fi
3789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3790 if test -n "$ac_ct_CC"; then
3791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3792 $as_echo "$ac_ct_CC" >&6; }
3793 else
3794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3796 fi
3797
3798   if test "x$ac_ct_CC" = x; then
3799     CC=""
3800   else
3801     case $cross_compiling:$ac_tool_warned in
3802 yes:)
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3805 ac_tool_warned=yes ;;
3806 esac
3807     CC=$ac_ct_CC
3808   fi
3809 else
3810   CC="$ac_cv_prog_CC"
3811 fi
3812
3813 if test -z "$CC"; then
3814           if test -n "$ac_tool_prefix"; then
3815     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3816 set dummy ${ac_tool_prefix}cc; ac_word=$2
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818 $as_echo_n "checking for $ac_word... " >&6; }
3819 if ${ac_cv_prog_CC+:} false; then :
3820   $as_echo_n "(cached) " >&6
3821 else
3822   if test -n "$CC"; then
3823   ac_cv_prog_CC="$CC" # Let the user override the test.
3824 else
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 for as_dir in $PATH
3827 do
3828   IFS=$as_save_IFS
3829   test -z "$as_dir" && as_dir=.
3830     for ac_exec_ext in '' $ac_executable_extensions; do
3831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3832     ac_cv_prog_CC="${ac_tool_prefix}cc"
3833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834     break 2
3835   fi
3836 done
3837   done
3838 IFS=$as_save_IFS
3839
3840 fi
3841 fi
3842 CC=$ac_cv_prog_CC
3843 if test -n "$CC"; then
3844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845 $as_echo "$CC" >&6; }
3846 else
3847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 $as_echo "no" >&6; }
3849 fi
3850
3851
3852   fi
3853 fi
3854 if test -z "$CC"; then
3855   # Extract the first word of "cc", so it can be a program name with args.
3856 set dummy cc; ac_word=$2
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858 $as_echo_n "checking for $ac_word... " >&6; }
3859 if ${ac_cv_prog_CC+:} false; then :
3860   $as_echo_n "(cached) " >&6
3861 else
3862   if test -n "$CC"; then
3863   ac_cv_prog_CC="$CC" # Let the user override the test.
3864 else
3865   ac_prog_rejected=no
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH
3868 do
3869   IFS=$as_save_IFS
3870   test -z "$as_dir" && as_dir=.
3871     for ac_exec_ext in '' $ac_executable_extensions; do
3872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3873     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3874        ac_prog_rejected=yes
3875        continue
3876      fi
3877     ac_cv_prog_CC="cc"
3878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879     break 2
3880   fi
3881 done
3882   done
3883 IFS=$as_save_IFS
3884
3885 if test $ac_prog_rejected = yes; then
3886   # We found a bogon in the path, so make sure we never use it.
3887   set dummy $ac_cv_prog_CC
3888   shift
3889   if test $# != 0; then
3890     # We chose a different compiler from the bogus one.
3891     # However, it has the same basename, so the bogon will be chosen
3892     # first if we set CC to just the basename; use the full file name.
3893     shift
3894     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3895   fi
3896 fi
3897 fi
3898 fi
3899 CC=$ac_cv_prog_CC
3900 if test -n "$CC"; then
3901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3902 $as_echo "$CC" >&6; }
3903 else
3904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3906 fi
3907
3908
3909 fi
3910 if test -z "$CC"; then
3911   if test -n "$ac_tool_prefix"; then
3912   for ac_prog in cl.exe
3913   do
3914     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 $as_echo_n "checking for $ac_word... " >&6; }
3918 if ${ac_cv_prog_CC+:} false; then :
3919   $as_echo_n "(cached) " >&6
3920 else
3921   if test -n "$CC"; then
3922   ac_cv_prog_CC="$CC" # Let the user override the test.
3923 else
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 for as_dir in $PATH
3926 do
3927   IFS=$as_save_IFS
3928   test -z "$as_dir" && as_dir=.
3929     for ac_exec_ext in '' $ac_executable_extensions; do
3930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3931     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933     break 2
3934   fi
3935 done
3936   done
3937 IFS=$as_save_IFS
3938
3939 fi
3940 fi
3941 CC=$ac_cv_prog_CC
3942 if test -n "$CC"; then
3943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3944 $as_echo "$CC" >&6; }
3945 else
3946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 $as_echo "no" >&6; }
3948 fi
3949
3950
3951     test -n "$CC" && break
3952   done
3953 fi
3954 if test -z "$CC"; then
3955   ac_ct_CC=$CC
3956   for ac_prog in cl.exe
3957 do
3958   # Extract the first word of "$ac_prog", so it can be a program name with args.
3959 set dummy $ac_prog; ac_word=$2
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961 $as_echo_n "checking for $ac_word... " >&6; }
3962 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3963   $as_echo_n "(cached) " >&6
3964 else
3965   if test -n "$ac_ct_CC"; then
3966   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3967 else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3970 do
3971   IFS=$as_save_IFS
3972   test -z "$as_dir" && as_dir=.
3973     for ac_exec_ext in '' $ac_executable_extensions; do
3974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3975     ac_cv_prog_ac_ct_CC="$ac_prog"
3976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977     break 2
3978   fi
3979 done
3980   done
3981 IFS=$as_save_IFS
3982
3983 fi
3984 fi
3985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3986 if test -n "$ac_ct_CC"; then
3987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3988 $as_echo "$ac_ct_CC" >&6; }
3989 else
3990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3992 fi
3993
3994
3995   test -n "$ac_ct_CC" && break
3996 done
3997
3998   if test "x$ac_ct_CC" = x; then
3999     CC=""
4000   else
4001     case $cross_compiling:$ac_tool_warned in
4002 yes:)
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005 ac_tool_warned=yes ;;
4006 esac
4007     CC=$ac_ct_CC
4008   fi
4009 fi
4010
4011 fi
4012
4013
4014 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error $? "no acceptable C compiler found in \$PATH
4017 See \`config.log' for more details" "$LINENO" 5; }
4018
4019 # Provide some information about the compiler.
4020 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4021 set X $ac_compile
4022 ac_compiler=$2
4023 for ac_option in --version -v -V -qversion; do
4024   { { ac_try="$ac_compiler $ac_option >&5"
4025 case "(($ac_try" in
4026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027   *) ac_try_echo=$ac_try;;
4028 esac
4029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030 $as_echo "$ac_try_echo"; } >&5
4031   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4032   ac_status=$?
4033   if test -s conftest.err; then
4034     sed '10a\
4035 ... rest of stderr output deleted ...
4036          10q' conftest.err >conftest.er1
4037     cat conftest.er1 >&5
4038   fi
4039   rm -f conftest.er1 conftest.err
4040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041   test $ac_status = 0; }
4042 done
4043
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 ac_clean_files_save=$ac_clean_files
4056 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4057 # Try to create an executable without -o first, disregard a.out.
4058 # It will help us diagnose broken compilers, and finding out an intuition
4059 # of exeext.
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4061 $as_echo_n "checking whether the C compiler works... " >&6; }
4062 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4063
4064 # The possible output files:
4065 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4066
4067 ac_rmfiles=
4068 for ac_file in $ac_files
4069 do
4070   case $ac_file in
4071     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4072     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4073   esac
4074 done
4075 rm -f $ac_rmfiles
4076
4077 if { { ac_try="$ac_link_default"
4078 case "(($ac_try" in
4079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080   *) ac_try_echo=$ac_try;;
4081 esac
4082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083 $as_echo "$ac_try_echo"; } >&5
4084   (eval "$ac_link_default") 2>&5
4085   ac_status=$?
4086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087   test $ac_status = 0; }; then :
4088   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4089 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4090 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4091 # so that the user can short-circuit this test for compilers unknown to
4092 # Autoconf.
4093 for ac_file in $ac_files ''
4094 do
4095   test -f "$ac_file" || continue
4096   case $ac_file in
4097     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4098         ;;
4099     [ab].out )
4100         # We found the default executable, but exeext='' is most
4101         # certainly right.
4102         break;;
4103     *.* )
4104         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4105         then :; else
4106            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4107         fi
4108         # We set ac_cv_exeext here because the later test for it is not
4109         # safe: cross compilers may not add the suffix if given an `-o'
4110         # argument, so we may need to know it at that point already.
4111         # Even if this section looks crufty: it has the advantage of
4112         # actually working.
4113         break;;
4114     * )
4115         break;;
4116   esac
4117 done
4118 test "$ac_cv_exeext" = no && ac_cv_exeext=
4119
4120 else
4121   ac_file=''
4122 fi
4123 if test -z "$ac_file"; then :
4124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4126 $as_echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4131 as_fn_error 77 "C compiler cannot create executables
4132 See \`config.log' for more details" "$LINENO" 5; }
4133 else
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4135 $as_echo "yes" >&6; }
4136 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4138 $as_echo_n "checking for C compiler default output file name... " >&6; }
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4140 $as_echo "$ac_file" >&6; }
4141 ac_exeext=$ac_cv_exeext
4142
4143 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4144 ac_clean_files=$ac_clean_files_save
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4146 $as_echo_n "checking for suffix of executables... " >&6; }
4147 if { { ac_try="$ac_link"
4148 case "(($ac_try" in
4149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150   *) ac_try_echo=$ac_try;;
4151 esac
4152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4153 $as_echo "$ac_try_echo"; } >&5
4154   (eval "$ac_link") 2>&5
4155   ac_status=$?
4156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4157   test $ac_status = 0; }; then :
4158   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4159 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4160 # work properly (i.e., refer to `conftest.exe'), while it won't with
4161 # `rm'.
4162 for ac_file in conftest.exe conftest conftest.*; do
4163   test -f "$ac_file" || continue
4164   case $ac_file in
4165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4166     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4167           break;;
4168     * ) break;;
4169   esac
4170 done
4171 else
4172   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4174 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4175 See \`config.log' for more details" "$LINENO" 5; }
4176 fi
4177 rm -f conftest conftest$ac_cv_exeext
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4179 $as_echo "$ac_cv_exeext" >&6; }
4180
4181 rm -f conftest.$ac_ext
4182 EXEEXT=$ac_cv_exeext
4183 ac_exeext=$EXEEXT
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h.  */
4186 #include <stdio.h>
4187 int
4188 main ()
4189 {
4190 FILE *f = fopen ("conftest.out", "w");
4191  return ferror (f) || fclose (f) != 0;
4192
4193   ;
4194   return 0;
4195 }
4196 _ACEOF
4197 ac_clean_files="$ac_clean_files conftest.out"
4198 # Check that the compiler produces executables we can run.  If not, either
4199 # the compiler is broken, or we cross compile.
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4201 $as_echo_n "checking whether we are cross compiling... " >&6; }
4202 if test "$cross_compiling" != yes; then
4203   { { ac_try="$ac_link"
4204 case "(($ac_try" in
4205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206   *) ac_try_echo=$ac_try;;
4207 esac
4208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209 $as_echo "$ac_try_echo"; } >&5
4210   (eval "$ac_link") 2>&5
4211   ac_status=$?
4212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213   test $ac_status = 0; }
4214   if { ac_try='./conftest$ac_cv_exeext'
4215   { { case "(($ac_try" in
4216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217   *) ac_try_echo=$ac_try;;
4218 esac
4219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4220 $as_echo "$ac_try_echo"; } >&5
4221   (eval "$ac_try") 2>&5
4222   ac_status=$?
4223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224   test $ac_status = 0; }; }; then
4225     cross_compiling=no
4226   else
4227     if test "$cross_compiling" = maybe; then
4228         cross_compiling=yes
4229     else
4230         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4232 as_fn_error $? "cannot run C compiled programs.
4233 If you meant to cross compile, use \`--host'.
4234 See \`config.log' for more details" "$LINENO" 5; }
4235     fi
4236   fi
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4239 $as_echo "$cross_compiling" >&6; }
4240
4241 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4242 ac_clean_files=$ac_clean_files_save
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4244 $as_echo_n "checking for suffix of object files... " >&6; }
4245 if ${ac_cv_objext+:} false; then :
4246   $as_echo_n "(cached) " >&6
4247 else
4248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h.  */
4250
4251 int
4252 main ()
4253 {
4254
4255   ;
4256   return 0;
4257 }
4258 _ACEOF
4259 rm -f conftest.o conftest.obj
4260 if { { ac_try="$ac_compile"
4261 case "(($ac_try" in
4262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263   *) ac_try_echo=$ac_try;;
4264 esac
4265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4266 $as_echo "$ac_try_echo"; } >&5
4267   (eval "$ac_compile") 2>&5
4268   ac_status=$?
4269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4270   test $ac_status = 0; }; then :
4271   for ac_file in conftest.o conftest.obj conftest.*; do
4272   test -f "$ac_file" || continue;
4273   case $ac_file in
4274     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4275     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4276        break;;
4277   esac
4278 done
4279 else
4280   $as_echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error $? "cannot compute suffix of object files: cannot compile
4286 See \`config.log' for more details" "$LINENO" 5; }
4287 fi
4288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4291 $as_echo "$ac_cv_objext" >&6; }
4292 OBJEXT=$ac_cv_objext
4293 ac_objext=$OBJEXT
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4295 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4296 if ${ac_cv_c_compiler_gnu+:} false; then :
4297   $as_echo_n "(cached) " >&6
4298 else
4299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h.  */
4301
4302 int
4303 main ()
4304 {
4305 #ifndef __GNUC__
4306        choke me
4307 #endif
4308
4309   ;
4310   return 0;
4311 }
4312 _ACEOF
4313 if ac_fn_c_try_compile "$LINENO"; then :
4314   ac_compiler_gnu=yes
4315 else
4316   ac_compiler_gnu=no
4317 fi
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4320
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4323 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4324 if test $ac_compiler_gnu = yes; then
4325   GCC=yes
4326 else
4327   GCC=
4328 fi
4329 ac_test_CFLAGS=${CFLAGS+set}
4330 ac_save_CFLAGS=$CFLAGS
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4332 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4333 if ${ac_cv_prog_cc_g+:} false; then :
4334   $as_echo_n "(cached) " >&6
4335 else
4336   ac_save_c_werror_flag=$ac_c_werror_flag
4337    ac_c_werror_flag=yes
4338    ac_cv_prog_cc_g=no
4339    CFLAGS="-g"
4340    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h.  */
4342
4343 int
4344 main ()
4345 {
4346
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352   ac_cv_prog_cc_g=yes
4353 else
4354   CFLAGS=""
4355       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h.  */
4357
4358 int
4359 main ()
4360 {
4361
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367
4368 else
4369   ac_c_werror_flag=$ac_save_c_werror_flag
4370          CFLAGS="-g"
4371          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h.  */
4373
4374 int
4375 main ()
4376 {
4377
4378   ;
4379   return 0;
4380 }
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383   ac_cv_prog_cc_g=yes
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 fi
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390    ac_c_werror_flag=$ac_save_c_werror_flag
4391 fi
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4393 $as_echo "$ac_cv_prog_cc_g" >&6; }
4394 if test "$ac_test_CFLAGS" = set; then
4395   CFLAGS=$ac_save_CFLAGS
4396 elif test $ac_cv_prog_cc_g = yes; then
4397   if test "$GCC" = yes; then
4398     CFLAGS="-g -O2"
4399   else
4400     CFLAGS="-g"
4401   fi
4402 else
4403   if test "$GCC" = yes; then
4404     CFLAGS="-O2"
4405   else
4406     CFLAGS=
4407   fi
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4410 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4411 if ${ac_cv_prog_cc_c89+:} false; then :
4412   $as_echo_n "(cached) " >&6
4413 else
4414   ac_cv_prog_cc_c89=no
4415 ac_save_CC=$CC
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h.  */
4418 #include <stdarg.h>
4419 #include <stdio.h>
4420 struct stat;
4421 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4422 struct buf { int x; };
4423 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4424 static char *e (p, i)
4425      char **p;
4426      int i;
4427 {
4428   return p[i];
4429 }
4430 static char *f (char * (*g) (char **, int), char **p, ...)
4431 {
4432   char *s;
4433   va_list v;
4434   va_start (v,p);
4435   s = g (p, va_arg (v,int));
4436   va_end (v);
4437   return s;
4438 }
4439
4440 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4441    function prototypes and stuff, but not '\xHH' hex character constants.
4442    These don't provoke an error unfortunately, instead are silently treated
4443    as 'x'.  The following induces an error, until -std is added to get
4444    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4445    array size at least.  It's necessary to write '\x00'==0 to get something
4446    that's true only with -std.  */
4447 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4448
4449 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4450    inside strings and character constants.  */
4451 #define FOO(x) 'x'
4452 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4453
4454 int test (int i, double x);
4455 struct s1 {int (*f) (int a);};
4456 struct s2 {int (*f) (double a);};
4457 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4458 int argc;
4459 char **argv;
4460 int
4461 main ()
4462 {
4463 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4469         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4470 do
4471   CC="$ac_save_CC $ac_arg"
4472   if ac_fn_c_try_compile "$LINENO"; then :
4473   ac_cv_prog_cc_c89=$ac_arg
4474 fi
4475 rm -f core conftest.err conftest.$ac_objext
4476   test "x$ac_cv_prog_cc_c89" != "xno" && break
4477 done
4478 rm -f conftest.$ac_ext
4479 CC=$ac_save_CC
4480
4481 fi
4482 # AC_CACHE_VAL
4483 case "x$ac_cv_prog_cc_c89" in
4484   x)
4485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4486 $as_echo "none needed" >&6; } ;;
4487   xno)
4488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4489 $as_echo "unsupported" >&6; } ;;
4490   *)
4491     CC="$CC $ac_cv_prog_cc_c89"
4492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4493 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4494 esac
4495 if test "x$ac_cv_prog_cc_c89" != xno; then :
4496
4497 fi
4498
4499 ac_ext=c
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504 DEPDIR="${am__leading_dot}deps"
4505
4506 ac_config_commands="$ac_config_commands depfiles"
4507
4508
4509 am_make=${MAKE-make}
4510 cat > confinc << 'END'
4511 am__doit:
4512         @echo this is the am__doit target
4513 .PHONY: am__doit
4514 END
4515 # If we don't find an include directive, just comment out the code.
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4517 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4518 am__include="#"
4519 am__quote=
4520 _am_result=none
4521 # First try GNU make style include.
4522 echo "include confinc" > confmf
4523 # Ignore all kinds of additional output from 'make'.
4524 case `$am_make -s -f confmf 2> /dev/null` in #(
4525 *the\ am__doit\ target*)
4526   am__include=include
4527   am__quote=
4528   _am_result=GNU
4529   ;;
4530 esac
4531 # Now try BSD make style include.
4532 if test "$am__include" = "#"; then
4533    echo '.include "confinc"' > confmf
4534    case `$am_make -s -f confmf 2> /dev/null` in #(
4535    *the\ am__doit\ target*)
4536      am__include=.include
4537      am__quote="\""
4538      _am_result=BSD
4539      ;;
4540    esac
4541 fi
4542
4543
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4545 $as_echo "$_am_result" >&6; }
4546 rm -f confinc confmf
4547
4548 # Check whether --enable-dependency-tracking was given.
4549 if test "${enable_dependency_tracking+set}" = set; then :
4550   enableval=$enable_dependency_tracking;
4551 fi
4552
4553 if test "x$enable_dependency_tracking" != xno; then
4554   am_depcomp="$ac_aux_dir/depcomp"
4555   AMDEPBACKSLASH='\'
4556   am__nodep='_no'
4557 fi
4558  if test "x$enable_dependency_tracking" != xno; then
4559   AMDEP_TRUE=
4560   AMDEP_FALSE='#'
4561 else
4562   AMDEP_TRUE='#'
4563   AMDEP_FALSE=
4564 fi
4565
4566
4567
4568 depcc="$CC"   am_compiler_list=
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4571 $as_echo_n "checking dependency style of $depcc... " >&6; }
4572 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4573   $as_echo_n "(cached) " >&6
4574 else
4575   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4576   # We make a subdir and do the tests there.  Otherwise we can end up
4577   # making bogus files that we don't know about and never remove.  For
4578   # instance it was reported that on HP-UX the gcc test will end up
4579   # making a dummy file named 'D' -- because '-MD' means "put the output
4580   # in D".
4581   rm -rf conftest.dir
4582   mkdir conftest.dir
4583   # Copy depcomp to subdir because otherwise we won't find it if we're
4584   # using a relative directory.
4585   cp "$am_depcomp" conftest.dir
4586   cd conftest.dir
4587   # We will build objects and dependencies in a subdirectory because
4588   # it helps to detect inapplicable dependency modes.  For instance
4589   # both Tru64's cc and ICC support -MD to output dependencies as a
4590   # side effect of compilation, but ICC will put the dependencies in
4591   # the current directory while Tru64 will put them in the object
4592   # directory.
4593   mkdir sub
4594
4595   am_cv_CC_dependencies_compiler_type=none
4596   if test "$am_compiler_list" = ""; then
4597      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4598   fi
4599   am__universal=false
4600   case " $depcc " in #(
4601      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4602      esac
4603
4604   for depmode in $am_compiler_list; do
4605     # Setup a source with many dependencies, because some compilers
4606     # like to wrap large dependency lists on column 80 (with \), and
4607     # we should not choose a depcomp mode which is confused by this.
4608     #
4609     # We need to recreate these files for each test, as the compiler may
4610     # overwrite some of them when testing with obscure command lines.
4611     # This happens at least with the AIX C compiler.
4612     : > sub/conftest.c
4613     for i in 1 2 3 4 5 6; do
4614       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4615       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4616       # Solaris 10 /bin/sh.
4617       echo '/* dummy */' > sub/conftst$i.h
4618     done
4619     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4620
4621     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4622     # mode.  It turns out that the SunPro C++ compiler does not properly
4623     # handle '-M -o', and we need to detect this.  Also, some Intel
4624     # versions had trouble with output in subdirs.
4625     am__obj=sub/conftest.${OBJEXT-o}
4626     am__minus_obj="-o $am__obj"
4627     case $depmode in
4628     gcc)
4629       # This depmode causes a compiler race in universal mode.
4630       test "$am__universal" = false || continue
4631       ;;
4632     nosideeffect)
4633       # After this tag, mechanisms are not by side-effect, so they'll
4634       # only be used when explicitly requested.
4635       if test "x$enable_dependency_tracking" = xyes; then
4636         continue
4637       else
4638         break
4639       fi
4640       ;;
4641     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4642       # This compiler won't grok '-c -o', but also, the minuso test has
4643       # not run yet.  These depmodes are late enough in the game, and
4644       # so weak that their functioning should not be impacted.
4645       am__obj=conftest.${OBJEXT-o}
4646       am__minus_obj=
4647       ;;
4648     none) break ;;
4649     esac
4650     if depmode=$depmode \
4651        source=sub/conftest.c object=$am__obj \
4652        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4653        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4654          >/dev/null 2>conftest.err &&
4655        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4656        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4657        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4658        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4659       # icc doesn't choke on unknown options, it will just issue warnings
4660       # or remarks (even with -Werror).  So we grep stderr for any message
4661       # that says an option was ignored or not supported.
4662       # When given -MP, icc 7.0 and 7.1 complain thusly:
4663       #   icc: Command line warning: ignoring option '-M'; no argument required
4664       # The diagnosis changed in icc 8.0:
4665       #   icc: Command line remark: option '-MP' not supported
4666       if (grep 'ignoring option' conftest.err ||
4667           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4668         am_cv_CC_dependencies_compiler_type=$depmode
4669         break
4670       fi
4671     fi
4672   done
4673
4674   cd ..
4675   rm -rf conftest.dir
4676 else
4677   am_cv_CC_dependencies_compiler_type=none
4678 fi
4679
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4682 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4683 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4684
4685  if
4686   test "x$enable_dependency_tracking" != xno \
4687   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4688   am__fastdepCC_TRUE=
4689   am__fastdepCC_FALSE='#'
4690 else
4691   am__fastdepCC_TRUE='#'
4692   am__fastdepCC_FALSE=
4693 fi
4694
4695
4696
4697 enable_win32_dll=yes
4698
4699 case $host in
4700 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4701   if test -n "$ac_tool_prefix"; then
4702   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4703 set dummy ${ac_tool_prefix}as; ac_word=$2
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705 $as_echo_n "checking for $ac_word... " >&6; }
4706 if ${ac_cv_prog_AS+:} false; then :
4707   $as_echo_n "(cached) " >&6
4708 else
4709   if test -n "$AS"; then
4710   ac_cv_prog_AS="$AS" # Let the user override the test.
4711 else
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715   IFS=$as_save_IFS
4716   test -z "$as_dir" && as_dir=.
4717     for ac_exec_ext in '' $ac_executable_extensions; do
4718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719     ac_cv_prog_AS="${ac_tool_prefix}as"
4720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721     break 2
4722   fi
4723 done
4724   done
4725 IFS=$as_save_IFS
4726
4727 fi
4728 fi
4729 AS=$ac_cv_prog_AS
4730 if test -n "$AS"; then
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4732 $as_echo "$AS" >&6; }
4733 else
4734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735 $as_echo "no" >&6; }
4736 fi
4737
4738
4739 fi
4740 if test -z "$ac_cv_prog_AS"; then
4741   ac_ct_AS=$AS
4742   # Extract the first word of "as", so it can be a program name with args.
4743 set dummy as; ac_word=$2
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4747   $as_echo_n "(cached) " >&6
4748 else
4749   if test -n "$ac_ct_AS"; then
4750   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755   IFS=$as_save_IFS
4756   test -z "$as_dir" && as_dir=.
4757     for ac_exec_ext in '' $ac_executable_extensions; do
4758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759     ac_cv_prog_ac_ct_AS="as"
4760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761     break 2
4762   fi
4763 done
4764   done
4765 IFS=$as_save_IFS
4766
4767 fi
4768 fi
4769 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4770 if test -n "$ac_ct_AS"; then
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4772 $as_echo "$ac_ct_AS" >&6; }
4773 else
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4776 fi
4777
4778   if test "x$ac_ct_AS" = x; then
4779     AS="false"
4780   else
4781     case $cross_compiling:$ac_tool_warned in
4782 yes:)
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4785 ac_tool_warned=yes ;;
4786 esac
4787     AS=$ac_ct_AS
4788   fi
4789 else
4790   AS="$ac_cv_prog_AS"
4791 fi
4792
4793   if test -n "$ac_tool_prefix"; then
4794   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4795 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if ${ac_cv_prog_DLLTOOL+:} false; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   if test -n "$DLLTOOL"; then
4802   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807   IFS=$as_save_IFS
4808   test -z "$as_dir" && as_dir=.
4809     for ac_exec_ext in '' $ac_executable_extensions; do
4810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813     break 2
4814   fi
4815 done
4816   done
4817 IFS=$as_save_IFS
4818
4819 fi
4820 fi
4821 DLLTOOL=$ac_cv_prog_DLLTOOL
4822 if test -n "$DLLTOOL"; then
4823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4824 $as_echo "$DLLTOOL" >&6; }
4825 else
4826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4828 fi
4829
4830
4831 fi
4832 if test -z "$ac_cv_prog_DLLTOOL"; then
4833   ac_ct_DLLTOOL=$DLLTOOL
4834   # Extract the first word of "dlltool", so it can be a program name with args.
4835 set dummy dlltool; ac_word=$2
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837 $as_echo_n "checking for $ac_word... " >&6; }
4838 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4839   $as_echo_n "(cached) " >&6
4840 else
4841   if test -n "$ac_ct_DLLTOOL"; then
4842   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4846 do
4847   IFS=$as_save_IFS
4848   test -z "$as_dir" && as_dir=.
4849     for ac_exec_ext in '' $ac_executable_extensions; do
4850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853     break 2
4854   fi
4855 done
4856   done
4857 IFS=$as_save_IFS
4858
4859 fi
4860 fi
4861 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4862 if test -n "$ac_ct_DLLTOOL"; then
4863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4864 $as_echo "$ac_ct_DLLTOOL" >&6; }
4865 else
4866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4868 fi
4869
4870   if test "x$ac_ct_DLLTOOL" = x; then
4871     DLLTOOL="false"
4872   else
4873     case $cross_compiling:$ac_tool_warned in
4874 yes:)
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4877 ac_tool_warned=yes ;;
4878 esac
4879     DLLTOOL=$ac_ct_DLLTOOL
4880   fi
4881 else
4882   DLLTOOL="$ac_cv_prog_DLLTOOL"
4883 fi
4884
4885   if test -n "$ac_tool_prefix"; then
4886   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4887 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if ${ac_cv_prog_OBJDUMP+:} false; then :
4891   $as_echo_n "(cached) " >&6
4892 else
4893   if test -n "$OBJDUMP"; then
4894   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901     for ac_exec_ext in '' $ac_executable_extensions; do
4902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905     break 2
4906   fi
4907 done
4908   done
4909 IFS=$as_save_IFS
4910
4911 fi
4912 fi
4913 OBJDUMP=$ac_cv_prog_OBJDUMP
4914 if test -n "$OBJDUMP"; then
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4916 $as_echo "$OBJDUMP" >&6; }
4917 else
4918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4920 fi
4921
4922
4923 fi
4924 if test -z "$ac_cv_prog_OBJDUMP"; then
4925   ac_ct_OBJDUMP=$OBJDUMP
4926   # Extract the first word of "objdump", so it can be a program name with args.
4927 set dummy objdump; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4931   $as_echo_n "(cached) " >&6
4932 else
4933   if test -n "$ac_ct_OBJDUMP"; then
4934   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939   IFS=$as_save_IFS
4940   test -z "$as_dir" && as_dir=.
4941     for ac_exec_ext in '' $ac_executable_extensions; do
4942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945     break 2
4946   fi
4947 done
4948   done
4949 IFS=$as_save_IFS
4950
4951 fi
4952 fi
4953 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4954 if test -n "$ac_ct_OBJDUMP"; then
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4956 $as_echo "$ac_ct_OBJDUMP" >&6; }
4957 else
4958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961
4962   if test "x$ac_ct_OBJDUMP" = x; then
4963     OBJDUMP="false"
4964   else
4965     case $cross_compiling:$ac_tool_warned in
4966 yes:)
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4969 ac_tool_warned=yes ;;
4970 esac
4971     OBJDUMP=$ac_ct_OBJDUMP
4972   fi
4973 else
4974   OBJDUMP="$ac_cv_prog_OBJDUMP"
4975 fi
4976
4977   ;;
4978 esac
4979
4980 test -z "$AS" && AS=as
4981
4982
4983
4984
4985
4986 test -z "$DLLTOOL" && DLLTOOL=dlltool
4987
4988
4989
4990
4991
4992 test -z "$OBJDUMP" && OBJDUMP=objdump
4993
4994
4995
4996
4997
4998
4999
5000 case `pwd` in
5001   *\ * | *\     *)
5002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5003 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5004 esac
5005
5006
5007
5008 macro_version='2.2.6'
5009 macro_revision='1.3012'
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023 ltmain="$ac_aux_dir/ltmain.sh"
5024
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5026 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5027 if ${ac_cv_path_SED+:} false; then :
5028   $as_echo_n "(cached) " >&6
5029 else
5030             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5031      for ac_i in 1 2 3 4 5 6 7; do
5032        ac_script="$ac_script$as_nl$ac_script"
5033      done
5034      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5035      { ac_script=; unset ac_script;}
5036      if test -z "$SED"; then
5037   ac_path_SED_found=false
5038   # Loop through the user's path and test for each of PROGNAME-LIST
5039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044     for ac_prog in sed gsed; do
5045     for ac_exec_ext in '' $ac_executable_extensions; do
5046       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5047       as_fn_executable_p "$ac_path_SED" || continue
5048 # Check for GNU ac_path_SED and select it if it is found.
5049   # Check for GNU $ac_path_SED
5050 case `"$ac_path_SED" --version 2>&1` in
5051 *GNU*)
5052   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5053 *)
5054   ac_count=0
5055   $as_echo_n 0123456789 >"conftest.in"
5056   while :
5057   do
5058     cat "conftest.in" "conftest.in" >"conftest.tmp"
5059     mv "conftest.tmp" "conftest.in"
5060     cp "conftest.in" "conftest.nl"
5061     $as_echo '' >> "conftest.nl"
5062     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5063     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5064     as_fn_arith $ac_count + 1 && ac_count=$as_val
5065     if test $ac_count -gt ${ac_path_SED_max-0}; then
5066       # Best one so far, save it but keep looking for a better one
5067       ac_cv_path_SED="$ac_path_SED"
5068       ac_path_SED_max=$ac_count
5069     fi
5070     # 10*(2^10) chars as input seems more than enough
5071     test $ac_count -gt 10 && break
5072   done
5073   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5074 esac
5075
5076       $ac_path_SED_found && break 3
5077     done
5078   done
5079   done
5080 IFS=$as_save_IFS
5081   if test -z "$ac_cv_path_SED"; then
5082     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5083   fi
5084 else
5085   ac_cv_path_SED=$SED
5086 fi
5087
5088 fi
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5090 $as_echo "$ac_cv_path_SED" >&6; }
5091  SED="$ac_cv_path_SED"
5092   rm -f conftest.sed
5093
5094 test -z "$SED" && SED=sed
5095 Xsed="$SED -e 1s/^X//"
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5108 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5109 if ${ac_cv_path_GREP+:} false; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112   if test -z "$GREP"; then
5113   ac_path_GREP_found=false
5114   # Loop through the user's path and test for each of PROGNAME-LIST
5115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5117 do
5118   IFS=$as_save_IFS
5119   test -z "$as_dir" && as_dir=.
5120     for ac_prog in grep ggrep; do
5121     for ac_exec_ext in '' $ac_executable_extensions; do
5122       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5123       as_fn_executable_p "$ac_path_GREP" || continue
5124 # Check for GNU ac_path_GREP and select it if it is found.
5125   # Check for GNU $ac_path_GREP
5126 case `"$ac_path_GREP" --version 2>&1` in
5127 *GNU*)
5128   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5129 *)
5130   ac_count=0
5131   $as_echo_n 0123456789 >"conftest.in"
5132   while :
5133   do
5134     cat "conftest.in" "conftest.in" >"conftest.tmp"
5135     mv "conftest.tmp" "conftest.in"
5136     cp "conftest.in" "conftest.nl"
5137     $as_echo 'GREP' >> "conftest.nl"
5138     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5139     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5140     as_fn_arith $ac_count + 1 && ac_count=$as_val
5141     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5142       # Best one so far, save it but keep looking for a better one
5143       ac_cv_path_GREP="$ac_path_GREP"
5144       ac_path_GREP_max=$ac_count
5145     fi
5146     # 10*(2^10) chars as input seems more than enough
5147     test $ac_count -gt 10 && break
5148   done
5149   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5150 esac
5151
5152       $ac_path_GREP_found && break 3
5153     done
5154   done
5155   done
5156 IFS=$as_save_IFS
5157   if test -z "$ac_cv_path_GREP"; then
5158     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5159   fi
5160 else
5161   ac_cv_path_GREP=$GREP
5162 fi
5163
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5166 $as_echo "$ac_cv_path_GREP" >&6; }
5167  GREP="$ac_cv_path_GREP"
5168
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5171 $as_echo_n "checking for egrep... " >&6; }
5172 if ${ac_cv_path_EGREP+:} false; then :
5173   $as_echo_n "(cached) " >&6
5174 else
5175   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5176    then ac_cv_path_EGREP="$GREP -E"
5177    else
5178      if test -z "$EGREP"; then
5179   ac_path_EGREP_found=false
5180   # Loop through the user's path and test for each of PROGNAME-LIST
5181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5183 do
5184   IFS=$as_save_IFS
5185   test -z "$as_dir" && as_dir=.
5186     for ac_prog in egrep; do
5187     for ac_exec_ext in '' $ac_executable_extensions; do
5188       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5189       as_fn_executable_p "$ac_path_EGREP" || continue
5190 # Check for GNU ac_path_EGREP and select it if it is found.
5191   # Check for GNU $ac_path_EGREP
5192 case `"$ac_path_EGREP" --version 2>&1` in
5193 *GNU*)
5194   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5195 *)
5196   ac_count=0
5197   $as_echo_n 0123456789 >"conftest.in"
5198   while :
5199   do
5200     cat "conftest.in" "conftest.in" >"conftest.tmp"
5201     mv "conftest.tmp" "conftest.in"
5202     cp "conftest.in" "conftest.nl"
5203     $as_echo 'EGREP' >> "conftest.nl"
5204     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5205     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5206     as_fn_arith $ac_count + 1 && ac_count=$as_val
5207     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5208       # Best one so far, save it but keep looking for a better one
5209       ac_cv_path_EGREP="$ac_path_EGREP"
5210       ac_path_EGREP_max=$ac_count
5211     fi
5212     # 10*(2^10) chars as input seems more than enough
5213     test $ac_count -gt 10 && break
5214   done
5215   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5216 esac
5217
5218       $ac_path_EGREP_found && break 3
5219     done
5220   done
5221   done
5222 IFS=$as_save_IFS
5223   if test -z "$ac_cv_path_EGREP"; then
5224     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5225   fi
5226 else
5227   ac_cv_path_EGREP=$EGREP
5228 fi
5229
5230    fi
5231 fi
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5233 $as_echo "$ac_cv_path_EGREP" >&6; }
5234  EGREP="$ac_cv_path_EGREP"
5235
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5238 $as_echo_n "checking for fgrep... " >&6; }
5239 if ${ac_cv_path_FGREP+:} false; then :
5240   $as_echo_n "(cached) " >&6
5241 else
5242   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5243    then ac_cv_path_FGREP="$GREP -F"
5244    else
5245      if test -z "$FGREP"; then
5246   ac_path_FGREP_found=false
5247   # Loop through the user's path and test for each of PROGNAME-LIST
5248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5250 do
5251   IFS=$as_save_IFS
5252   test -z "$as_dir" && as_dir=.
5253     for ac_prog in fgrep; do
5254     for ac_exec_ext in '' $ac_executable_extensions; do
5255       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5256       as_fn_executable_p "$ac_path_FGREP" || continue
5257 # Check for GNU ac_path_FGREP and select it if it is found.
5258   # Check for GNU $ac_path_FGREP
5259 case `"$ac_path_FGREP" --version 2>&1` in
5260 *GNU*)
5261   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5262 *)
5263   ac_count=0
5264   $as_echo_n 0123456789 >"conftest.in"
5265   while :
5266   do
5267     cat "conftest.in" "conftest.in" >"conftest.tmp"
5268     mv "conftest.tmp" "conftest.in"
5269     cp "conftest.in" "conftest.nl"
5270     $as_echo 'FGREP' >> "conftest.nl"
5271     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5272     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5273     as_fn_arith $ac_count + 1 && ac_count=$as_val
5274     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5275       # Best one so far, save it but keep looking for a better one
5276       ac_cv_path_FGREP="$ac_path_FGREP"
5277       ac_path_FGREP_max=$ac_count
5278     fi
5279     # 10*(2^10) chars as input seems more than enough
5280     test $ac_count -gt 10 && break
5281   done
5282   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5283 esac
5284
5285       $ac_path_FGREP_found && break 3
5286     done
5287   done
5288   done
5289 IFS=$as_save_IFS
5290   if test -z "$ac_cv_path_FGREP"; then
5291     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5292   fi
5293 else
5294   ac_cv_path_FGREP=$FGREP
5295 fi
5296
5297    fi
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5300 $as_echo "$ac_cv_path_FGREP" >&6; }
5301  FGREP="$ac_cv_path_FGREP"
5302
5303
5304 test -z "$GREP" && GREP=grep
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324 # Check whether --with-gnu-ld was given.
5325 if test "${with_gnu_ld+set}" = set; then :
5326   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5327 else
5328   with_gnu_ld=no
5329 fi
5330
5331 ac_prog=ld
5332 if test "$GCC" = yes; then
5333   # Check if gcc -print-prog-name=ld gives a path.
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5335 $as_echo_n "checking for ld used by $CC... " >&6; }
5336   case $host in
5337   *-*-mingw*)
5338     # gcc leaves a trailing carriage return which upsets mingw
5339     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5340   *)
5341     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5342   esac
5343   case $ac_prog in
5344     # Accept absolute paths.
5345     [\\/]* | ?:[\\/]*)
5346       re_direlt='/[^/][^/]*/\.\./'
5347       # Canonicalize the pathname of ld
5348       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5349       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5350         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5351       done
5352       test -z "$LD" && LD="$ac_prog"
5353       ;;
5354   "")
5355     # If it fails, then pretend we aren't using GCC.
5356     ac_prog=ld
5357     ;;
5358   *)
5359     # If it is relative, then search for the first ld in PATH.
5360     with_gnu_ld=unknown
5361     ;;
5362   esac
5363 elif test "$with_gnu_ld" = yes; then
5364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5365 $as_echo_n "checking for GNU ld... " >&6; }
5366 else
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5368 $as_echo_n "checking for non-GNU ld... " >&6; }
5369 fi
5370 if ${lt_cv_path_LD+:} false; then :
5371   $as_echo_n "(cached) " >&6
5372 else
5373   if test -z "$LD"; then
5374   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5375   for ac_dir in $PATH; do
5376     IFS="$lt_save_ifs"
5377     test -z "$ac_dir" && ac_dir=.
5378     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5379       lt_cv_path_LD="$ac_dir/$ac_prog"
5380       # Check to see if the program is GNU ld.  I'd rather use --version,
5381       # but apparently some variants of GNU ld only accept -v.
5382       # Break only if it was the GNU/non-GNU ld that we prefer.
5383       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5384       *GNU* | *'with BFD'*)
5385         test "$with_gnu_ld" != no && break
5386         ;;
5387       *)
5388         test "$with_gnu_ld" != yes && break
5389         ;;
5390       esac
5391     fi
5392   done
5393   IFS="$lt_save_ifs"
5394 else
5395   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5396 fi
5397 fi
5398
5399 LD="$lt_cv_path_LD"
5400 if test -n "$LD"; then
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5402 $as_echo "$LD" >&6; }
5403 else
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5409 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5410 if ${lt_cv_prog_gnu_ld+:} false; then :
5411   $as_echo_n "(cached) " >&6
5412 else
5413   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5414 case `$LD -v 2>&1 </dev/null` in
5415 *GNU* | *'with BFD'*)
5416   lt_cv_prog_gnu_ld=yes
5417   ;;
5418 *)
5419   lt_cv_prog_gnu_ld=no
5420   ;;
5421 esac
5422 fi
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5424 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5425 with_gnu_ld=$lt_cv_prog_gnu_ld
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5436 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5437 if ${lt_cv_path_NM+:} false; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   if test -n "$NM"; then
5441   # Let the user override the test.
5442   lt_cv_path_NM="$NM"
5443 else
5444   lt_nm_to_check="${ac_tool_prefix}nm"
5445   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5446     lt_nm_to_check="$lt_nm_to_check nm"
5447   fi
5448   for lt_tmp_nm in $lt_nm_to_check; do
5449     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5450     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5451       IFS="$lt_save_ifs"
5452       test -z "$ac_dir" && ac_dir=.
5453       tmp_nm="$ac_dir/$lt_tmp_nm"
5454       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5455         # Check to see if the nm accepts a BSD-compat flag.
5456         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5457         #   nm: unknown option "B" ignored
5458         # Tru64's nm complains that /dev/null is an invalid object file
5459         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5460         */dev/null* | *'Invalid file or object type'*)
5461           lt_cv_path_NM="$tmp_nm -B"
5462           break
5463           ;;
5464         *)
5465           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5466           */dev/null*)
5467             lt_cv_path_NM="$tmp_nm -p"
5468             break
5469             ;;
5470           *)
5471             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5472             continue # so that we can try to find one that supports BSD flags
5473             ;;
5474           esac
5475           ;;
5476         esac
5477       fi
5478     done
5479     IFS="$lt_save_ifs"
5480   done
5481   : ${lt_cv_path_NM=no}
5482 fi
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5485 $as_echo "$lt_cv_path_NM" >&6; }
5486 if test "$lt_cv_path_NM" != "no"; then
5487   NM="$lt_cv_path_NM"
5488 else
5489   # Didn't find any BSD compatible name lister, look for dumpbin.
5490   if test -n "$ac_tool_prefix"; then
5491   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5492   do
5493     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if ${ac_cv_prog_DUMPBIN+:} false; then :
5498   $as_echo_n "(cached) " >&6
5499 else
5500   if test -n "$DUMPBIN"; then
5501   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506   IFS=$as_save_IFS
5507   test -z "$as_dir" && as_dir=.
5508     for ac_exec_ext in '' $ac_executable_extensions; do
5509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512     break 2
5513   fi
5514 done
5515   done
5516 IFS=$as_save_IFS
5517
5518 fi
5519 fi
5520 DUMPBIN=$ac_cv_prog_DUMPBIN
5521 if test -n "$DUMPBIN"; then
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5523 $as_echo "$DUMPBIN" >&6; }
5524 else
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529
5530     test -n "$DUMPBIN" && break
5531   done
5532 fi
5533 if test -z "$DUMPBIN"; then
5534   ac_ct_DUMPBIN=$DUMPBIN
5535   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5536 do
5537   # Extract the first word of "$ac_prog", so it can be a program name with args.
5538 set dummy $ac_prog; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5542   $as_echo_n "(cached) " >&6
5543 else
5544   if test -n "$ac_ct_DUMPBIN"; then
5545   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550   IFS=$as_save_IFS
5551   test -z "$as_dir" && as_dir=.
5552     for ac_exec_ext in '' $ac_executable_extensions; do
5553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556     break 2
5557   fi
5558 done
5559   done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5565 if test -n "$ac_ct_DUMPBIN"; then
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5567 $as_echo "$ac_ct_DUMPBIN" >&6; }
5568 else
5569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572
5573
5574   test -n "$ac_ct_DUMPBIN" && break
5575 done
5576
5577   if test "x$ac_ct_DUMPBIN" = x; then
5578     DUMPBIN=":"
5579   else
5580     case $cross_compiling:$ac_tool_warned in
5581 yes:)
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5584 ac_tool_warned=yes ;;
5585 esac
5586     DUMPBIN=$ac_ct_DUMPBIN
5587   fi
5588 fi
5589
5590
5591   if test "$DUMPBIN" != ":"; then
5592     NM="$DUMPBIN"
5593   fi
5594 fi
5595 test -z "$NM" && NM=nm
5596
5597
5598
5599
5600
5601
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5603 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5604 if ${lt_cv_nm_interface+:} false; then :
5605   $as_echo_n "(cached) " >&6
5606 else
5607   lt_cv_nm_interface="BSD nm"
5608   echo "int some_variable = 0;" > conftest.$ac_ext
5609   (eval echo "\"\$as_me:5609: $ac_compile\"" >&5)
5610   (eval "$ac_compile" 2>conftest.err)
5611   cat conftest.err >&5
5612   (eval echo "\"\$as_me:5612: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5613   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5614   cat conftest.err >&5
5615   (eval echo "\"\$as_me:5615: output\"" >&5)
5616   cat conftest.out >&5
5617   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5618     lt_cv_nm_interface="MS dumpbin"
5619   fi
5620   rm -f conftest*
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5623 $as_echo "$lt_cv_nm_interface" >&6; }
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5626 $as_echo_n "checking whether ln -s works... " >&6; }
5627 LN_S=$as_ln_s
5628 if test "$LN_S" = "ln -s"; then
5629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5630 $as_echo "yes" >&6; }
5631 else
5632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5633 $as_echo "no, using $LN_S" >&6; }
5634 fi
5635
5636 # find the maximum length of command line arguments
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5638 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5639 if ${lt_cv_sys_max_cmd_len+:} false; then :
5640   $as_echo_n "(cached) " >&6
5641 else
5642     i=0
5643   teststring="ABCD"
5644
5645   case $build_os in
5646   msdosdjgpp*)
5647     # On DJGPP, this test can blow up pretty badly due to problems in libc
5648     # (any single argument exceeding 2000 bytes causes a buffer overrun
5649     # during glob expansion).  Even if it were fixed, the result of this
5650     # check would be larger than it should be.
5651     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5652     ;;
5653
5654   gnu*)
5655     # Under GNU Hurd, this test is not required because there is
5656     # no limit to the length of command line arguments.
5657     # Libtool will interpret -1 as no limit whatsoever
5658     lt_cv_sys_max_cmd_len=-1;
5659     ;;
5660
5661   cygwin* | mingw* | cegcc*)
5662     # On Win9x/ME, this test blows up -- it succeeds, but takes
5663     # about 5 minutes as the teststring grows exponentially.
5664     # Worse, since 9x/ME are not pre-emptively multitasking,
5665     # you end up with a "frozen" computer, even though with patience
5666     # the test eventually succeeds (with a max line length of 256k).
5667     # Instead, let's just punt: use the minimum linelength reported by
5668     # all of the supported platforms: 8192 (on NT/2K/XP).
5669     lt_cv_sys_max_cmd_len=8192;
5670     ;;
5671
5672   amigaos*)
5673     # On AmigaOS with pdksh, this test takes hours, literally.
5674     # So we just punt and use a minimum line length of 8192.
5675     lt_cv_sys_max_cmd_len=8192;
5676     ;;
5677
5678   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5679     # This has been around since 386BSD, at least.  Likely further.
5680     if test -x /sbin/sysctl; then
5681       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5682     elif test -x /usr/sbin/sysctl; then
5683       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5684     else
5685       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5686     fi
5687     # And add a safety zone
5688     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5689     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5690     ;;
5691
5692   interix*)
5693     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5694     lt_cv_sys_max_cmd_len=196608
5695     ;;
5696
5697   osf*)
5698     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5699     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5700     # nice to cause kernel panics so lets avoid the loop below.
5701     # First set a reasonable default.
5702     lt_cv_sys_max_cmd_len=16384
5703     #
5704     if test -x /sbin/sysconfig; then
5705       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5706         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5707       esac
5708     fi
5709     ;;
5710   sco3.2v5*)
5711     lt_cv_sys_max_cmd_len=102400
5712     ;;
5713   sysv5* | sco5v6* | sysv4.2uw2*)
5714     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5715     if test -n "$kargmax"; then
5716       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5717     else
5718       lt_cv_sys_max_cmd_len=32768
5719     fi
5720     ;;
5721   *)
5722     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5723     if test -n "$lt_cv_sys_max_cmd_len"; then
5724       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5725       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5726     else
5727       # Make teststring a little bigger before we do anything with it.
5728       # a 1K string should be a reasonable start.
5729       for i in 1 2 3 4 5 6 7 8 ; do
5730         teststring=$teststring$teststring
5731       done
5732       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5733       # If test is not a shell built-in, we'll probably end up computing a
5734       # maximum length that is only half of the actual maximum length, but
5735       # we can't tell.
5736       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5737                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5738               test $i != 17 # 1/2 MB should be enough
5739       do
5740         i=`expr $i + 1`
5741         teststring=$teststring$teststring
5742       done
5743       # Only check the string length outside the loop.
5744       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5745       teststring=
5746       # Add a significant safety factor because C++ compilers can tack on
5747       # massive amounts of additional arguments before passing them to the
5748       # linker.  It appears as though 1/2 is a usable value.
5749       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5750     fi
5751     ;;
5752   esac
5753
5754 fi
5755
5756 if test -n $lt_cv_sys_max_cmd_len ; then
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5758 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5759 else
5760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5761 $as_echo "none" >&6; }
5762 fi
5763 max_cmd_len=$lt_cv_sys_max_cmd_len
5764
5765
5766
5767
5768
5769
5770 : ${CP="cp -f"}
5771 : ${MV="mv -f"}
5772 : ${RM="rm -f"}
5773
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5775 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5776 # Try some XSI features
5777 xsi_shell=no
5778 ( _lt_dummy="a/b/c"
5779   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5780       = c,a/b,, \
5781     && eval 'test $(( 1 + 1 )) -eq 2 \
5782     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5783   && xsi_shell=yes
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5785 $as_echo "$xsi_shell" >&6; }
5786
5787
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5789 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5790 lt_shell_append=no
5791 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5792     >/dev/null 2>&1 \
5793   && lt_shell_append=yes
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5795 $as_echo "$lt_shell_append" >&6; }
5796
5797
5798 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5799   lt_unset=unset
5800 else
5801   lt_unset=false
5802 fi
5803
5804
5805
5806
5807
5808 # test EBCDIC or ASCII
5809 case `echo X|tr X '\101'` in
5810  A) # ASCII based system
5811     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5812   lt_SP2NL='tr \040 \012'
5813   lt_NL2SP='tr \015\012 \040\040'
5814   ;;
5815  *) # EBCDIC based system
5816   lt_SP2NL='tr \100 \n'
5817   lt_NL2SP='tr \r\n \100\100'
5818   ;;
5819 esac
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5830 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5831 if ${lt_cv_ld_reload_flag+:} false; then :
5832   $as_echo_n "(cached) " >&6
5833 else
5834   lt_cv_ld_reload_flag='-r'
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5837 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5838 reload_flag=$lt_cv_ld_reload_flag
5839 case $reload_flag in
5840 "" | " "*) ;;
5841 *) reload_flag=" $reload_flag" ;;
5842 esac
5843 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5844 case $host_os in
5845   darwin*)
5846     if test "$GCC" = yes; then
5847       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5848     else
5849       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5850     fi
5851     ;;
5852 esac
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862 if test -n "$ac_tool_prefix"; then
5863   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5864 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866 $as_echo_n "checking for $ac_word... " >&6; }
5867 if ${ac_cv_prog_OBJDUMP+:} false; then :
5868   $as_echo_n "(cached) " >&6
5869 else
5870   if test -n "$OBJDUMP"; then
5871   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5872 else
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878     for ac_exec_ext in '' $ac_executable_extensions; do
5879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885   done
5886 IFS=$as_save_IFS
5887
5888 fi
5889 fi
5890 OBJDUMP=$ac_cv_prog_OBJDUMP
5891 if test -n "$OBJDUMP"; then
5892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5893 $as_echo "$OBJDUMP" >&6; }
5894 else
5895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896 $as_echo "no" >&6; }
5897 fi
5898
5899
5900 fi
5901 if test -z "$ac_cv_prog_OBJDUMP"; then
5902   ac_ct_OBJDUMP=$OBJDUMP
5903   # Extract the first word of "objdump", so it can be a program name with args.
5904 set dummy objdump; ac_word=$2
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906 $as_echo_n "checking for $ac_word... " >&6; }
5907 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   if test -n "$ac_ct_OBJDUMP"; then
5911   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916   IFS=$as_save_IFS
5917   test -z "$as_dir" && as_dir=.
5918     for ac_exec_ext in '' $ac_executable_extensions; do
5919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922     break 2
5923   fi
5924 done
5925   done
5926 IFS=$as_save_IFS
5927
5928 fi
5929 fi
5930 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5931 if test -n "$ac_ct_OBJDUMP"; then
5932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5933 $as_echo "$ac_ct_OBJDUMP" >&6; }
5934 else
5935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5937 fi
5938
5939   if test "x$ac_ct_OBJDUMP" = x; then
5940     OBJDUMP="false"
5941   else
5942     case $cross_compiling:$ac_tool_warned in
5943 yes:)
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5946 ac_tool_warned=yes ;;
5947 esac
5948     OBJDUMP=$ac_ct_OBJDUMP
5949   fi
5950 else
5951   OBJDUMP="$ac_cv_prog_OBJDUMP"
5952 fi
5953
5954 test -z "$OBJDUMP" && OBJDUMP=objdump
5955
5956
5957
5958
5959
5960
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5962 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5963 if ${lt_cv_deplibs_check_method+:} false; then :
5964   $as_echo_n "(cached) " >&6
5965 else
5966   lt_cv_file_magic_cmd='$MAGIC_CMD'
5967 lt_cv_file_magic_test_file=
5968 lt_cv_deplibs_check_method='unknown'
5969 # Need to set the preceding variable on all platforms that support
5970 # interlibrary dependencies.
5971 # 'none' -- dependencies not supported.
5972 # `unknown' -- same as none, but documents that we really don't know.
5973 # 'pass_all' -- all dependencies passed with no checks.
5974 # 'test_compile' -- check by making test program.
5975 # 'file_magic [[regex]]' -- check by looking for files in library path
5976 # which responds to the $file_magic_cmd with a given extended regex.
5977 # If you have `file' or equivalent on your system and you're not sure
5978 # whether `pass_all' will *always* work, you probably want this one.
5979
5980 case $host_os in
5981 aix[4-9]*)
5982   lt_cv_deplibs_check_method=pass_all
5983   ;;
5984
5985 beos*)
5986   lt_cv_deplibs_check_method=pass_all
5987   ;;
5988
5989 bsdi[45]*)
5990   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5991   lt_cv_file_magic_cmd='/usr/bin/file -L'
5992   lt_cv_file_magic_test_file=/shlib/libc.so
5993   ;;
5994
5995 cygwin*)
5996   # func_win32_libid is a shell function defined in ltmain.sh
5997   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5998   lt_cv_file_magic_cmd='func_win32_libid'
5999   ;;
6000
6001 mingw* | pw32*)
6002   # Base MSYS/MinGW do not provide the 'file' command needed by
6003   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6004   # unless we find 'file', for example because we are cross-compiling.
6005   if ( file / ) >/dev/null 2>&1; then
6006     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6007     lt_cv_file_magic_cmd='func_win32_libid'
6008   else
6009     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6010     lt_cv_file_magic_cmd='$OBJDUMP -f'
6011   fi
6012   ;;
6013
6014 cegcc)
6015   # use the weaker test based on 'objdump'. See mingw*.
6016   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6017   lt_cv_file_magic_cmd='$OBJDUMP -f'
6018   ;;
6019
6020 darwin* | rhapsody*)
6021   lt_cv_deplibs_check_method=pass_all
6022   ;;
6023
6024 freebsd* | dragonfly*)
6025   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6026     case $host_cpu in
6027     i*86 )
6028       # Not sure whether the presence of OpenBSD here was a mistake.
6029       # Let's accept both of them until this is cleared up.
6030       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6031       lt_cv_file_magic_cmd=/usr/bin/file
6032       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6033       ;;
6034     esac
6035   else
6036     lt_cv_deplibs_check_method=pass_all
6037   fi
6038   ;;
6039
6040 gnu*)
6041   lt_cv_deplibs_check_method=pass_all
6042   ;;
6043
6044 hpux10.20* | hpux11*)
6045   lt_cv_file_magic_cmd=/usr/bin/file
6046   case $host_cpu in
6047   ia64*)
6048     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6049     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6050     ;;
6051   hppa*64*)
6052     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6053     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6054     ;;
6055   *)
6056     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6057     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6058     ;;
6059   esac
6060   ;;
6061
6062 interix[3-9]*)
6063   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6064   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6065   ;;
6066
6067 irix5* | irix6* | nonstopux*)
6068   case $LD in
6069   *-32|*"-32 ") libmagic=32-bit;;
6070   *-n32|*"-n32 ") libmagic=N32;;
6071   *-64|*"-64 ") libmagic=64-bit;;
6072   *) libmagic=never-match;;
6073   esac
6074   lt_cv_deplibs_check_method=pass_all
6075   ;;
6076
6077 # This must be Linux ELF.
6078 linux* | k*bsd*-gnu)
6079   lt_cv_deplibs_check_method=pass_all
6080   ;;
6081
6082 netbsd*)
6083   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6084     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6085   else
6086     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6087   fi
6088   ;;
6089
6090 newos6*)
6091   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6092   lt_cv_file_magic_cmd=/usr/bin/file
6093   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6094   ;;
6095
6096 *nto* | *qnx*)
6097   lt_cv_deplibs_check_method=pass_all
6098   ;;
6099
6100 openbsd*)
6101   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6102     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6103   else
6104     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6105   fi
6106   ;;
6107
6108 osf3* | osf4* | osf5*)
6109   lt_cv_deplibs_check_method=pass_all
6110   ;;
6111
6112 rdos*)
6113   lt_cv_deplibs_check_method=pass_all
6114   ;;
6115
6116 solaris*)
6117   lt_cv_deplibs_check_method=pass_all
6118   ;;
6119
6120 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6121   lt_cv_deplibs_check_method=pass_all
6122   ;;
6123
6124 sysv4 | sysv4.3*)
6125   case $host_vendor in
6126   motorola)
6127     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]'
6128     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6129     ;;
6130   ncr)
6131     lt_cv_deplibs_check_method=pass_all
6132     ;;
6133   sequent)
6134     lt_cv_file_magic_cmd='/bin/file'
6135     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6136     ;;
6137   sni)
6138     lt_cv_file_magic_cmd='/bin/file'
6139     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6140     lt_cv_file_magic_test_file=/lib/libc.so
6141     ;;
6142   siemens)
6143     lt_cv_deplibs_check_method=pass_all
6144     ;;
6145   pc)
6146     lt_cv_deplibs_check_method=pass_all
6147     ;;
6148   esac
6149   ;;
6150
6151 tpf*)
6152   lt_cv_deplibs_check_method=pass_all
6153   ;;
6154 esac
6155
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6158 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6159 file_magic_cmd=$lt_cv_file_magic_cmd
6160 deplibs_check_method=$lt_cv_deplibs_check_method
6161 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174 if test -n "$ac_tool_prefix"; then
6175   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6176 set dummy ${ac_tool_prefix}ar; ac_word=$2
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178 $as_echo_n "checking for $ac_word... " >&6; }
6179 if ${ac_cv_prog_AR+:} false; then :
6180   $as_echo_n "(cached) " >&6
6181 else
6182   if test -n "$AR"; then
6183   ac_cv_prog_AR="$AR" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188   IFS=$as_save_IFS
6189   test -z "$as_dir" && as_dir=.
6190     for ac_exec_ext in '' $ac_executable_extensions; do
6191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6192     ac_cv_prog_AR="${ac_tool_prefix}ar"
6193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194     break 2
6195   fi
6196 done
6197   done
6198 IFS=$as_save_IFS
6199
6200 fi
6201 fi
6202 AR=$ac_cv_prog_AR
6203 if test -n "$AR"; then
6204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6205 $as_echo "$AR" >&6; }
6206 else
6207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6209 fi
6210
6211
6212 fi
6213 if test -z "$ac_cv_prog_AR"; then
6214   ac_ct_AR=$AR
6215   # Extract the first word of "ar", so it can be a program name with args.
6216 set dummy ar; ac_word=$2
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6218 $as_echo_n "checking for $ac_word... " >&6; }
6219 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6220   $as_echo_n "(cached) " >&6
6221 else
6222   if test -n "$ac_ct_AR"; then
6223   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6224 else
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH
6227 do
6228   IFS=$as_save_IFS
6229   test -z "$as_dir" && as_dir=.
6230     for ac_exec_ext in '' $ac_executable_extensions; do
6231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6232     ac_cv_prog_ac_ct_AR="ar"
6233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6234     break 2
6235   fi
6236 done
6237   done
6238 IFS=$as_save_IFS
6239
6240 fi
6241 fi
6242 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6243 if test -n "$ac_ct_AR"; then
6244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6245 $as_echo "$ac_ct_AR" >&6; }
6246 else
6247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248 $as_echo "no" >&6; }
6249 fi
6250
6251   if test "x$ac_ct_AR" = x; then
6252     AR="false"
6253   else
6254     case $cross_compiling:$ac_tool_warned in
6255 yes:)
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6258 ac_tool_warned=yes ;;
6259 esac
6260     AR=$ac_ct_AR
6261   fi
6262 else
6263   AR="$ac_cv_prog_AR"
6264 fi
6265
6266 test -z "$AR" && AR=ar
6267 test -z "$AR_FLAGS" && AR_FLAGS=cru
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279 if test -n "$ac_tool_prefix"; then
6280   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}strip; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if ${ac_cv_prog_STRIP+:} false; then :
6285   $as_echo_n "(cached) " >&6
6286 else
6287   if test -n "$STRIP"; then
6288   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293   IFS=$as_save_IFS
6294   test -z "$as_dir" && as_dir=.
6295     for ac_exec_ext in '' $ac_executable_extensions; do
6296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299     break 2
6300   fi
6301 done
6302   done
6303 IFS=$as_save_IFS
6304
6305 fi
6306 fi
6307 STRIP=$ac_cv_prog_STRIP
6308 if test -n "$STRIP"; then
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6310 $as_echo "$STRIP" >&6; }
6311 else
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6314 fi
6315
6316
6317 fi
6318 if test -z "$ac_cv_prog_STRIP"; then
6319   ac_ct_STRIP=$STRIP
6320   # Extract the first word of "strip", so it can be a program name with args.
6321 set dummy strip; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6325   $as_echo_n "(cached) " >&6
6326 else
6327   if test -n "$ac_ct_STRIP"; then
6328   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6332 do
6333   IFS=$as_save_IFS
6334   test -z "$as_dir" && as_dir=.
6335     for ac_exec_ext in '' $ac_executable_extensions; do
6336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337     ac_cv_prog_ac_ct_STRIP="strip"
6338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339     break 2
6340   fi
6341 done
6342   done
6343 IFS=$as_save_IFS
6344
6345 fi
6346 fi
6347 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6348 if test -n "$ac_ct_STRIP"; then
6349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6350 $as_echo "$ac_ct_STRIP" >&6; }
6351 else
6352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6354 fi
6355
6356   if test "x$ac_ct_STRIP" = x; then
6357     STRIP=":"
6358   else
6359     case $cross_compiling:$ac_tool_warned in
6360 yes:)
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363 ac_tool_warned=yes ;;
6364 esac
6365     STRIP=$ac_ct_STRIP
6366   fi
6367 else
6368   STRIP="$ac_cv_prog_STRIP"
6369 fi
6370
6371 test -z "$STRIP" && STRIP=:
6372
6373
6374
6375
6376
6377
6378 if test -n "$ac_tool_prefix"; then
6379   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_prog_RANLIB+:} false; then :
6384   $as_echo_n "(cached) " >&6
6385 else
6386   if test -n "$RANLIB"; then
6387   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394     for ac_exec_ext in '' $ac_executable_extensions; do
6395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401   done
6402 IFS=$as_save_IFS
6403
6404 fi
6405 fi
6406 RANLIB=$ac_cv_prog_RANLIB
6407 if test -n "$RANLIB"; then
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6409 $as_echo "$RANLIB" >&6; }
6410 else
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6413 fi
6414
6415
6416 fi
6417 if test -z "$ac_cv_prog_RANLIB"; then
6418   ac_ct_RANLIB=$RANLIB
6419   # Extract the first word of "ranlib", so it can be a program name with args.
6420 set dummy ranlib; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6424   $as_echo_n "(cached) " >&6
6425 else
6426   if test -n "$ac_ct_RANLIB"; then
6427   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432   IFS=$as_save_IFS
6433   test -z "$as_dir" && as_dir=.
6434     for ac_exec_ext in '' $ac_executable_extensions; do
6435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436     ac_cv_prog_ac_ct_RANLIB="ranlib"
6437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438     break 2
6439   fi
6440 done
6441   done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6447 if test -n "$ac_ct_RANLIB"; then
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6449 $as_echo "$ac_ct_RANLIB" >&6; }
6450 else
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454
6455   if test "x$ac_ct_RANLIB" = x; then
6456     RANLIB=":"
6457   else
6458     case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464     RANLIB=$ac_ct_RANLIB
6465   fi
6466 else
6467   RANLIB="$ac_cv_prog_RANLIB"
6468 fi
6469
6470 test -z "$RANLIB" && RANLIB=:
6471
6472
6473
6474
6475
6476
6477 # Determine commands to create old-style static archives.
6478 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6479 old_postinstall_cmds='chmod 644 $oldlib'
6480 old_postuninstall_cmds=
6481
6482 if test -n "$RANLIB"; then
6483   case $host_os in
6484   openbsd*)
6485     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6486     ;;
6487   *)
6488     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6489     ;;
6490   esac
6491   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6492 fi
6493
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 # If no C compiler was specified, use CC.
6528 LTCC=${LTCC-"$CC"}
6529
6530 # If no C compiler flags were specified, use CFLAGS.
6531 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6532
6533 # Allow CC to be a program name with arguments.
6534 compiler=$CC
6535
6536
6537 # Check for command to grab the raw symbol name followed by C symbol from nm.
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6539 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6540 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6541   $as_echo_n "(cached) " >&6
6542 else
6543
6544 # These are sane defaults that work on at least a few old systems.
6545 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6546
6547 # Character class describing NM global symbol codes.
6548 symcode='[BCDEGRST]'
6549
6550 # Regexp to match symbols that can be accessed directly from C.
6551 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6552
6553 # Define system-specific variables.
6554 case $host_os in
6555 aix*)
6556   symcode='[BCDT]'
6557   ;;
6558 cygwin* | mingw* | pw32* | cegcc*)
6559   symcode='[ABCDGISTW]'
6560   ;;
6561 hpux*)
6562   if test "$host_cpu" = ia64; then
6563     symcode='[ABCDEGRST]'
6564   fi
6565   ;;
6566 irix* | nonstopux*)
6567   symcode='[BCDEGRST]'
6568   ;;
6569 osf*)
6570   symcode='[BCDEGQRST]'
6571   ;;
6572 solaris*)
6573   symcode='[BDRT]'
6574   ;;
6575 sco3.2v5*)
6576   symcode='[DT]'
6577   ;;
6578 sysv4.2uw2*)
6579   symcode='[DT]'
6580   ;;
6581 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6582   symcode='[ABDT]'
6583   ;;
6584 sysv4)
6585   symcode='[DFNSTU]'
6586   ;;
6587 esac
6588
6589 # If we're using GNU nm, then use its standard symbol codes.
6590 case `$NM -V 2>&1` in
6591 *GNU* | *'with BFD'*)
6592   symcode='[ABCDGIRSTW]' ;;
6593 esac
6594
6595 # Transform an extracted symbol line into a proper C declaration.
6596 # Some systems (esp. on ia64) link data and code symbols differently,
6597 # so use this general approach.
6598 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6599
6600 # Transform an extracted symbol line into symbol name and symbol address
6601 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6602 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'"
6603
6604 # Handle CRLF in mingw tool chain
6605 opt_cr=
6606 case $build_os in
6607 mingw*)
6608   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6609   ;;
6610 esac
6611
6612 # Try without a prefix underscore, then with it.
6613 for ac_symprfx in "" "_"; do
6614
6615   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6616   symxfrm="\\1 $ac_symprfx\\2 \\2"
6617
6618   # Write the raw and C identifiers.
6619   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6620     # Fake it for dumpbin and say T for any non-static function
6621     # and D for any global variable.
6622     # Also find C++ and __fastcall symbols from MSVC++,
6623     # which start with @ or ?.
6624     lt_cv_sys_global_symbol_pipe="$AWK '"\
6625 "     {last_section=section; section=\$ 3};"\
6626 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6627 "     \$ 0!~/External *\|/{next};"\
6628 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6629 "     {if(hide[section]) next};"\
6630 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6631 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6632 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6633 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6634 "     ' prfx=^$ac_symprfx"
6635   else
6636     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6637   fi
6638
6639   # Check to see that the pipe works correctly.
6640   pipe_works=no
6641
6642   rm -f conftest*
6643   cat > conftest.$ac_ext <<_LT_EOF
6644 #ifdef __cplusplus
6645 extern "C" {
6646 #endif
6647 char nm_test_var;
6648 void nm_test_func(void);
6649 void nm_test_func(void){}
6650 #ifdef __cplusplus
6651 }
6652 #endif
6653 int main(){nm_test_var='a';nm_test_func();return(0);}
6654 _LT_EOF
6655
6656   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6657   (eval $ac_compile) 2>&5
6658   ac_status=$?
6659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6660   test $ac_status = 0; }; then
6661     # Now try to grab the symbols.
6662     nlist=conftest.nm
6663     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6664   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6665   ac_status=$?
6666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667   test $ac_status = 0; } && test -s "$nlist"; then
6668       # Try sorting and uniquifying the output.
6669       if sort "$nlist" | uniq > "$nlist"T; then
6670         mv -f "$nlist"T "$nlist"
6671       else
6672         rm -f "$nlist"T
6673       fi
6674
6675       # Make sure that we snagged all the symbols we need.
6676       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6677         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6678           cat <<_LT_EOF > conftest.$ac_ext
6679 #ifdef __cplusplus
6680 extern "C" {
6681 #endif
6682
6683 _LT_EOF
6684           # Now generate the symbol file.
6685           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6686
6687           cat <<_LT_EOF >> conftest.$ac_ext
6688
6689 /* The mapping between symbol names and symbols.  */
6690 const struct {
6691   const char *name;
6692   void       *address;
6693 }
6694 lt__PROGRAM__LTX_preloaded_symbols[] =
6695 {
6696   { "@PROGRAM@", (void *) 0 },
6697 _LT_EOF
6698           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6699           cat <<\_LT_EOF >> conftest.$ac_ext
6700   {0, (void *) 0}
6701 };
6702
6703 /* This works around a problem in FreeBSD linker */
6704 #ifdef FREEBSD_WORKAROUND
6705 static const void *lt_preloaded_setup() {
6706   return lt__PROGRAM__LTX_preloaded_symbols;
6707 }
6708 #endif
6709
6710 #ifdef __cplusplus
6711 }
6712 #endif
6713 _LT_EOF
6714           # Now try linking the two files.
6715           mv conftest.$ac_objext conftstm.$ac_objext
6716           lt_save_LIBS="$LIBS"
6717           lt_save_CFLAGS="$CFLAGS"
6718           LIBS="conftstm.$ac_objext"
6719           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6720           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6721   (eval $ac_link) 2>&5
6722   ac_status=$?
6723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6725             pipe_works=yes
6726           fi
6727           LIBS="$lt_save_LIBS"
6728           CFLAGS="$lt_save_CFLAGS"
6729         else
6730           echo "cannot find nm_test_func in $nlist" >&5
6731         fi
6732       else
6733         echo "cannot find nm_test_var in $nlist" >&5
6734       fi
6735     else
6736       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6737     fi
6738   else
6739     echo "$progname: failed program was:" >&5
6740     cat conftest.$ac_ext >&5
6741   fi
6742   rm -rf conftest* conftst*
6743
6744   # Do not use the global_symbol_pipe unless it works.
6745   if test "$pipe_works" = yes; then
6746     break
6747   else
6748     lt_cv_sys_global_symbol_pipe=
6749   fi
6750 done
6751
6752 fi
6753
6754 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6755   lt_cv_sys_global_symbol_to_cdecl=
6756 fi
6757 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6759 $as_echo "failed" >&6; }
6760 else
6761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6762 $as_echo "ok" >&6; }
6763 fi
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787 # Check whether --enable-libtool-lock was given.
6788 if test "${enable_libtool_lock+set}" = set; then :
6789   enableval=$enable_libtool_lock;
6790 fi
6791
6792 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6793
6794 # Some flags need to be propagated to the compiler or linker for good
6795 # libtool support.
6796 case $host in
6797 ia64-*-hpux*)
6798   # Find out which ABI we are using.
6799   echo 'int i;' > conftest.$ac_ext
6800   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6801   (eval $ac_compile) 2>&5
6802   ac_status=$?
6803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804   test $ac_status = 0; }; then
6805     case `/usr/bin/file conftest.$ac_objext` in
6806       *ELF-32*)
6807         HPUX_IA64_MODE="32"
6808         ;;
6809       *ELF-64*)
6810         HPUX_IA64_MODE="64"
6811         ;;
6812     esac
6813   fi
6814   rm -rf conftest*
6815   ;;
6816 *-*-irix6*)
6817   # Find out which ABI we are using.
6818   echo '#line 6818 "configure"' > conftest.$ac_ext
6819   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6820   (eval $ac_compile) 2>&5
6821   ac_status=$?
6822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6823   test $ac_status = 0; }; then
6824     if test "$lt_cv_prog_gnu_ld" = yes; then
6825       case `/usr/bin/file conftest.$ac_objext` in
6826         *32-bit*)
6827           LD="${LD-ld} -melf32bsmip"
6828           ;;
6829         *N32*)
6830           LD="${LD-ld} -melf32bmipn32"
6831           ;;
6832         *64-bit*)
6833           LD="${LD-ld} -melf64bmip"
6834         ;;
6835       esac
6836     else
6837       case `/usr/bin/file conftest.$ac_objext` in
6838         *32-bit*)
6839           LD="${LD-ld} -32"
6840           ;;
6841         *N32*)
6842           LD="${LD-ld} -n32"
6843           ;;
6844         *64-bit*)
6845           LD="${LD-ld} -64"
6846           ;;
6847       esac
6848     fi
6849   fi
6850   rm -rf conftest*
6851   ;;
6852
6853 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6854 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6855   # Find out which ABI we are using.
6856   echo 'int i;' > conftest.$ac_ext
6857   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6858   (eval $ac_compile) 2>&5
6859   ac_status=$?
6860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6861   test $ac_status = 0; }; then
6862     case `/usr/bin/file conftest.o` in
6863       *32-bit*)
6864         case $host in
6865           x86_64-*kfreebsd*-gnu)
6866             LD="${LD-ld} -m elf_i386_fbsd"
6867             ;;
6868           x86_64-*linux*)
6869             LD="${LD-ld} -m elf_i386"
6870             ;;
6871           ppc64-*linux*|powerpc64-*linux*)
6872             LD="${LD-ld} -m elf32ppclinux"
6873             ;;
6874           s390x-*linux*)
6875             LD="${LD-ld} -m elf_s390"
6876             ;;
6877           sparc64-*linux*)
6878             LD="${LD-ld} -m elf32_sparc"
6879             ;;
6880         esac
6881         ;;
6882       *64-bit*)
6883         case $host in
6884           x86_64-*kfreebsd*-gnu)
6885             LD="${LD-ld} -m elf_x86_64_fbsd"
6886             ;;
6887           x86_64-*linux*)
6888             LD="${LD-ld} -m elf_x86_64"
6889             ;;
6890           ppc*-*linux*|powerpc*-*linux*)
6891             LD="${LD-ld} -m elf64ppc"
6892             ;;
6893           s390*-*linux*|s390*-*tpf*)
6894             LD="${LD-ld} -m elf64_s390"
6895             ;;
6896           sparc*-*linux*)
6897             LD="${LD-ld} -m elf64_sparc"
6898             ;;
6899         esac
6900         ;;
6901     esac
6902   fi
6903   rm -rf conftest*
6904   ;;
6905
6906 *-*-sco3.2v5*)
6907   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6908   SAVE_CFLAGS="$CFLAGS"
6909   CFLAGS="$CFLAGS -belf"
6910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6911 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6912 if ${lt_cv_cc_needs_belf+:} false; then :
6913   $as_echo_n "(cached) " >&6
6914 else
6915   ac_ext=c
6916 ac_cpp='$CPP $CPPFLAGS'
6917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6920
6921      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h.  */
6923
6924 int
6925 main ()
6926 {
6927
6928   ;
6929   return 0;
6930 }
6931 _ACEOF
6932 if ac_fn_c_try_link "$LINENO"; then :
6933   lt_cv_cc_needs_belf=yes
6934 else
6935   lt_cv_cc_needs_belf=no
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext \
6938     conftest$ac_exeext conftest.$ac_ext
6939      ac_ext=c
6940 ac_cpp='$CPP $CPPFLAGS'
6941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6944
6945 fi
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6947 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6948   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6949     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6950     CFLAGS="$SAVE_CFLAGS"
6951   fi
6952   ;;
6953 sparc*-*solaris*)
6954   # Find out which ABI we are using.
6955   echo 'int i;' > conftest.$ac_ext
6956   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6957   (eval $ac_compile) 2>&5
6958   ac_status=$?
6959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6960   test $ac_status = 0; }; then
6961     case `/usr/bin/file conftest.o` in
6962     *64-bit*)
6963       case $lt_cv_prog_gnu_ld in
6964       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6965       *)
6966         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6967           LD="${LD-ld} -64"
6968         fi
6969         ;;
6970       esac
6971       ;;
6972     esac
6973   fi
6974   rm -rf conftest*
6975   ;;
6976 esac
6977
6978 need_locks="$enable_libtool_lock"
6979
6980
6981   case $host_os in
6982     rhapsody* | darwin*)
6983     if test -n "$ac_tool_prefix"; then
6984   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6989   $as_echo_n "(cached) " >&6
6990 else
6991   if test -n "$DSYMUTIL"; then
6992   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997   IFS=$as_save_IFS
6998   test -z "$as_dir" && as_dir=.
6999     for ac_exec_ext in '' $ac_executable_extensions; do
7000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003     break 2
7004   fi
7005 done
7006   done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7012 if test -n "$DSYMUTIL"; then
7013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7014 $as_echo "$DSYMUTIL" >&6; }
7015 else
7016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019
7020
7021 fi
7022 if test -z "$ac_cv_prog_DSYMUTIL"; then
7023   ac_ct_DSYMUTIL=$DSYMUTIL
7024   # Extract the first word of "dsymutil", so it can be a program name with args.
7025 set dummy dsymutil; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7029   $as_echo_n "(cached) " >&6
7030 else
7031   if test -n "$ac_ct_DSYMUTIL"; then
7032   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037   IFS=$as_save_IFS
7038   test -z "$as_dir" && as_dir=.
7039     for ac_exec_ext in '' $ac_executable_extensions; do
7040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043     break 2
7044   fi
7045 done
7046   done
7047 IFS=$as_save_IFS
7048
7049 fi
7050 fi
7051 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7052 if test -n "$ac_ct_DSYMUTIL"; then
7053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7054 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7055 else
7056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060   if test "x$ac_ct_DSYMUTIL" = x; then
7061     DSYMUTIL=":"
7062   else
7063     case $cross_compiling:$ac_tool_warned in
7064 yes:)
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067 ac_tool_warned=yes ;;
7068 esac
7069     DSYMUTIL=$ac_ct_DSYMUTIL
7070   fi
7071 else
7072   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7073 fi
7074
7075     if test -n "$ac_tool_prefix"; then
7076   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7077 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_NMEDIT+:} false; then :
7081   $as_echo_n "(cached) " >&6
7082 else
7083   if test -n "$NMEDIT"; then
7084   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089   IFS=$as_save_IFS
7090   test -z "$as_dir" && as_dir=.
7091     for ac_exec_ext in '' $ac_executable_extensions; do
7092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095     break 2
7096   fi
7097 done
7098   done
7099 IFS=$as_save_IFS
7100
7101 fi
7102 fi
7103 NMEDIT=$ac_cv_prog_NMEDIT
7104 if test -n "$NMEDIT"; then
7105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7106 $as_echo "$NMEDIT" >&6; }
7107 else
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112
7113 fi
7114 if test -z "$ac_cv_prog_NMEDIT"; then
7115   ac_ct_NMEDIT=$NMEDIT
7116   # Extract the first word of "nmedit", so it can be a program name with args.
7117 set dummy nmedit; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7121   $as_echo_n "(cached) " >&6
7122 else
7123   if test -n "$ac_ct_NMEDIT"; then
7124   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131     for ac_exec_ext in '' $ac_executable_extensions; do
7132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135     break 2
7136   fi
7137 done
7138   done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7144 if test -n "$ac_ct_NMEDIT"; then
7145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7146 $as_echo "$ac_ct_NMEDIT" >&6; }
7147 else
7148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7150 fi
7151
7152   if test "x$ac_ct_NMEDIT" = x; then
7153     NMEDIT=":"
7154   else
7155     case $cross_compiling:$ac_tool_warned in
7156 yes:)
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159 ac_tool_warned=yes ;;
7160 esac
7161     NMEDIT=$ac_ct_NMEDIT
7162   fi
7163 else
7164   NMEDIT="$ac_cv_prog_NMEDIT"
7165 fi
7166
7167     if test -n "$ac_tool_prefix"; then
7168   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7169 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_prog_LIPO+:} false; then :
7173   $as_echo_n "(cached) " >&6
7174 else
7175   if test -n "$LIPO"; then
7176   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181   IFS=$as_save_IFS
7182   test -z "$as_dir" && as_dir=.
7183     for ac_exec_ext in '' $ac_executable_extensions; do
7184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187     break 2
7188   fi
7189 done
7190   done
7191 IFS=$as_save_IFS
7192
7193 fi
7194 fi
7195 LIPO=$ac_cv_prog_LIPO
7196 if test -n "$LIPO"; then
7197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7198 $as_echo "$LIPO" >&6; }
7199 else
7200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7202 fi
7203
7204
7205 fi
7206 if test -z "$ac_cv_prog_LIPO"; then
7207   ac_ct_LIPO=$LIPO
7208   # Extract the first word of "lipo", so it can be a program name with args.
7209 set dummy lipo; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7213   $as_echo_n "(cached) " >&6
7214 else
7215   if test -n "$ac_ct_LIPO"; then
7216   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221   IFS=$as_save_IFS
7222   test -z "$as_dir" && as_dir=.
7223     for ac_exec_ext in '' $ac_executable_extensions; do
7224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225     ac_cv_prog_ac_ct_LIPO="lipo"
7226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227     break 2
7228   fi
7229 done
7230   done
7231 IFS=$as_save_IFS
7232
7233 fi
7234 fi
7235 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7236 if test -n "$ac_ct_LIPO"; then
7237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7238 $as_echo "$ac_ct_LIPO" >&6; }
7239 else
7240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 fi
7243
7244   if test "x$ac_ct_LIPO" = x; then
7245     LIPO=":"
7246   else
7247     case $cross_compiling:$ac_tool_warned in
7248 yes:)
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251 ac_tool_warned=yes ;;
7252 esac
7253     LIPO=$ac_ct_LIPO
7254   fi
7255 else
7256   LIPO="$ac_cv_prog_LIPO"
7257 fi
7258
7259     if test -n "$ac_tool_prefix"; then
7260   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7261 set dummy ${ac_tool_prefix}otool; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_OTOOL+:} false; then :
7265   $as_echo_n "(cached) " >&6
7266 else
7267   if test -n "$OTOOL"; then
7268   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273   IFS=$as_save_IFS
7274   test -z "$as_dir" && as_dir=.
7275     for ac_exec_ext in '' $ac_executable_extensions; do
7276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279     break 2
7280   fi
7281 done
7282   done
7283 IFS=$as_save_IFS
7284
7285 fi
7286 fi
7287 OTOOL=$ac_cv_prog_OTOOL
7288 if test -n "$OTOOL"; then
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7290 $as_echo "$OTOOL" >&6; }
7291 else
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295
7296
7297 fi
7298 if test -z "$ac_cv_prog_OTOOL"; then
7299   ac_ct_OTOOL=$OTOOL
7300   # Extract the first word of "otool", so it can be a program name with args.
7301 set dummy otool; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7305   $as_echo_n "(cached) " >&6
7306 else
7307   if test -n "$ac_ct_OTOOL"; then
7308   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313   IFS=$as_save_IFS
7314   test -z "$as_dir" && as_dir=.
7315     for ac_exec_ext in '' $ac_executable_extensions; do
7316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317     ac_cv_prog_ac_ct_OTOOL="otool"
7318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319     break 2
7320   fi
7321 done
7322   done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7328 if test -n "$ac_ct_OTOOL"; then
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7330 $as_echo "$ac_ct_OTOOL" >&6; }
7331 else
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336   if test "x$ac_ct_OTOOL" = x; then
7337     OTOOL=":"
7338   else
7339     case $cross_compiling:$ac_tool_warned in
7340 yes:)
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343 ac_tool_warned=yes ;;
7344 esac
7345     OTOOL=$ac_ct_OTOOL
7346   fi
7347 else
7348   OTOOL="$ac_cv_prog_OTOOL"
7349 fi
7350
7351     if test -n "$ac_tool_prefix"; then
7352   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_OTOOL64+:} false; then :
7357   $as_echo_n "(cached) " >&6
7358 else
7359   if test -n "$OTOOL64"; then
7360   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365   IFS=$as_save_IFS
7366   test -z "$as_dir" && as_dir=.
7367     for ac_exec_ext in '' $ac_executable_extensions; do
7368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371     break 2
7372   fi
7373 done
7374   done
7375 IFS=$as_save_IFS
7376
7377 fi
7378 fi
7379 OTOOL64=$ac_cv_prog_OTOOL64
7380 if test -n "$OTOOL64"; then
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7382 $as_echo "$OTOOL64" >&6; }
7383 else
7384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 fi
7387
7388
7389 fi
7390 if test -z "$ac_cv_prog_OTOOL64"; then
7391   ac_ct_OTOOL64=$OTOOL64
7392   # Extract the first word of "otool64", so it can be a program name with args.
7393 set dummy otool64; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7397   $as_echo_n "(cached) " >&6
7398 else
7399   if test -n "$ac_ct_OTOOL64"; then
7400   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407     for ac_exec_ext in '' $ac_executable_extensions; do
7408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409     ac_cv_prog_ac_ct_OTOOL64="otool64"
7410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414   done
7415 IFS=$as_save_IFS
7416
7417 fi
7418 fi
7419 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7420 if test -n "$ac_ct_OTOOL64"; then
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7422 $as_echo "$ac_ct_OTOOL64" >&6; }
7423 else
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 fi
7427
7428   if test "x$ac_ct_OTOOL64" = x; then
7429     OTOOL64=":"
7430   else
7431     case $cross_compiling:$ac_tool_warned in
7432 yes:)
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435 ac_tool_warned=yes ;;
7436 esac
7437     OTOOL64=$ac_ct_OTOOL64
7438   fi
7439 else
7440   OTOOL64="$ac_cv_prog_OTOOL64"
7441 fi
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7470 $as_echo_n "checking for -single_module linker flag... " >&6; }
7471 if ${lt_cv_apple_cc_single_mod+:} false; then :
7472   $as_echo_n "(cached) " >&6
7473 else
7474   lt_cv_apple_cc_single_mod=no
7475       if test -z "${LT_MULTI_MODULE}"; then
7476         # By default we will add the -single_module flag. You can override
7477         # by either setting the environment variable LT_MULTI_MODULE
7478         # non-empty at configure time, or by adding -multi_module to the
7479         # link flags.
7480         rm -rf libconftest.dylib*
7481         echo "int foo(void){return 1;}" > conftest.c
7482         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7483 -dynamiclib -Wl,-single_module conftest.c" >&5
7484         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7485           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7486         _lt_result=$?
7487         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7488           lt_cv_apple_cc_single_mod=yes
7489         else
7490           cat conftest.err >&5
7491         fi
7492         rm -rf libconftest.dylib*
7493         rm -f conftest.*
7494       fi
7495 fi
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7497 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7499 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7500 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7501   $as_echo_n "(cached) " >&6
7502 else
7503   lt_cv_ld_exported_symbols_list=no
7504       save_LDFLAGS=$LDFLAGS
7505       echo "_main" > conftest.sym
7506       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7507       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h.  */
7509
7510 int
7511 main ()
7512 {
7513
7514   ;
7515   return 0;
7516 }
7517 _ACEOF
7518 if ac_fn_c_try_link "$LINENO"; then :
7519   lt_cv_ld_exported_symbols_list=yes
7520 else
7521   lt_cv_ld_exported_symbols_list=no
7522 fi
7523 rm -f core conftest.err conftest.$ac_objext \
7524     conftest$ac_exeext conftest.$ac_ext
7525         LDFLAGS="$save_LDFLAGS"
7526
7527 fi
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7529 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7530     case $host_os in
7531     rhapsody* | darwin1.[012])
7532       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7533     darwin1.*)
7534       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7535     darwin*) # darwin 5.x on
7536       # if running on 10.5 or later, the deployment target defaults
7537       # to the OS version, if on x86, and 10.4, the deployment
7538       # target defaults to 10.4. Don't you love it?
7539       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7540         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7541           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7542         10.[012]*)
7543           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7544         10.*)
7545           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7546       esac
7547     ;;
7548   esac
7549     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7550       _lt_dar_single_mod='$single_module'
7551     fi
7552     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7553       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7554     else
7555       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7556     fi
7557     if test "$DSYMUTIL" != ":"; then
7558       _lt_dsymutil='~$DSYMUTIL $lib || :'
7559     else
7560       _lt_dsymutil=
7561     fi
7562     ;;
7563   esac
7564
7565 ac_ext=c
7566 ac_cpp='$CPP $CPPFLAGS'
7567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7571 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7572 # On Suns, sometimes $CPP names a directory.
7573 if test -n "$CPP" && test -d "$CPP"; then
7574   CPP=
7575 fi
7576 if test -z "$CPP"; then
7577   if ${ac_cv_prog_CPP+:} false; then :
7578   $as_echo_n "(cached) " >&6
7579 else
7580       # Double quotes because CPP needs to be expanded
7581     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7582     do
7583       ac_preproc_ok=false
7584 for ac_c_preproc_warn_flag in '' yes
7585 do
7586   # Use a header file that comes with gcc, so configuring glibc
7587   # with a fresh cross-compiler works.
7588   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7589   # <limits.h> exists even on freestanding compilers.
7590   # On the NeXT, cc -E runs the code through the compiler's parser,
7591   # not just through cpp. "Syntax error" is here to catch this case.
7592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h.  */
7594 #ifdef __STDC__
7595 # include <limits.h>
7596 #else
7597 # include <assert.h>
7598 #endif
7599                      Syntax error
7600 _ACEOF
7601 if ac_fn_c_try_cpp "$LINENO"; then :
7602
7603 else
7604   # Broken: fails on valid input.
7605 continue
7606 fi
7607 rm -f conftest.err conftest.i conftest.$ac_ext
7608
7609   # OK, works on sane cases.  Now check whether nonexistent headers
7610   # can be detected and how.
7611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h.  */
7613 #include <ac_nonexistent.h>
7614 _ACEOF
7615 if ac_fn_c_try_cpp "$LINENO"; then :
7616   # Broken: success on invalid input.
7617 continue
7618 else
7619   # Passes both tests.
7620 ac_preproc_ok=:
7621 break
7622 fi
7623 rm -f conftest.err conftest.i conftest.$ac_ext
7624
7625 done
7626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7627 rm -f conftest.i conftest.err conftest.$ac_ext
7628 if $ac_preproc_ok; then :
7629   break
7630 fi
7631
7632     done
7633     ac_cv_prog_CPP=$CPP
7634
7635 fi
7636   CPP=$ac_cv_prog_CPP
7637 else
7638   ac_cv_prog_CPP=$CPP
7639 fi
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7641 $as_echo "$CPP" >&6; }
7642 ac_preproc_ok=false
7643 for ac_c_preproc_warn_flag in '' yes
7644 do
7645   # Use a header file that comes with gcc, so configuring glibc
7646   # with a fresh cross-compiler works.
7647   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7648   # <limits.h> exists even on freestanding compilers.
7649   # On the NeXT, cc -E runs the code through the compiler's parser,
7650   # not just through cpp. "Syntax error" is here to catch this case.
7651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h.  */
7653 #ifdef __STDC__
7654 # include <limits.h>
7655 #else
7656 # include <assert.h>
7657 #endif
7658                      Syntax error
7659 _ACEOF
7660 if ac_fn_c_try_cpp "$LINENO"; then :
7661
7662 else
7663   # Broken: fails on valid input.
7664 continue
7665 fi
7666 rm -f conftest.err conftest.i conftest.$ac_ext
7667
7668   # OK, works on sane cases.  Now check whether nonexistent headers
7669   # can be detected and how.
7670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h.  */
7672 #include <ac_nonexistent.h>
7673 _ACEOF
7674 if ac_fn_c_try_cpp "$LINENO"; then :
7675   # Broken: success on invalid input.
7676 continue
7677 else
7678   # Passes both tests.
7679 ac_preproc_ok=:
7680 break
7681 fi
7682 rm -f conftest.err conftest.i conftest.$ac_ext
7683
7684 done
7685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7686 rm -f conftest.i conftest.err conftest.$ac_ext
7687 if $ac_preproc_ok; then :
7688
7689 else
7690   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7692 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7693 See \`config.log' for more details" "$LINENO" 5; }
7694 fi
7695
7696 ac_ext=c
7697 ac_cpp='$CPP $CPPFLAGS'
7698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7701
7702
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7704 $as_echo_n "checking for ANSI C header files... " >&6; }
7705 if ${ac_cv_header_stdc+:} false; then :
7706   $as_echo_n "(cached) " >&6
7707 else
7708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h.  */
7710 #include <stdlib.h>
7711 #include <stdarg.h>
7712 #include <string.h>
7713 #include <float.h>
7714
7715 int
7716 main ()
7717 {
7718
7719   ;
7720   return 0;
7721 }
7722 _ACEOF
7723 if ac_fn_c_try_compile "$LINENO"; then :
7724   ac_cv_header_stdc=yes
7725 else
7726   ac_cv_header_stdc=no
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729
7730 if test $ac_cv_header_stdc = yes; then
7731   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h.  */
7734 #include <string.h>
7735
7736 _ACEOF
7737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7738   $EGREP "memchr" >/dev/null 2>&1; then :
7739
7740 else
7741   ac_cv_header_stdc=no
7742 fi
7743 rm -f conftest*
7744
7745 fi
7746
7747 if test $ac_cv_header_stdc = yes; then
7748   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h.  */
7751 #include <stdlib.h>
7752
7753 _ACEOF
7754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7755   $EGREP "free" >/dev/null 2>&1; then :
7756
7757 else
7758   ac_cv_header_stdc=no
7759 fi
7760 rm -f conftest*
7761
7762 fi
7763
7764 if test $ac_cv_header_stdc = yes; then
7765   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7766   if test "$cross_compiling" = yes; then :
7767   :
7768 else
7769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h.  */
7771 #include <ctype.h>
7772 #include <stdlib.h>
7773 #if ((' ' & 0x0FF) == 0x020)
7774 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7775 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7776 #else
7777 # define ISLOWER(c) \
7778                    (('a' <= (c) && (c) <= 'i') \
7779                      || ('j' <= (c) && (c) <= 'r') \
7780                      || ('s' <= (c) && (c) <= 'z'))
7781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7782 #endif
7783
7784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7785 int
7786 main ()
7787 {
7788   int i;
7789   for (i = 0; i < 256; i++)
7790     if (XOR (islower (i), ISLOWER (i))
7791         || toupper (i) != TOUPPER (i))
7792       return 2;
7793   return 0;
7794 }
7795 _ACEOF
7796 if ac_fn_c_try_run "$LINENO"; then :
7797
7798 else
7799   ac_cv_header_stdc=no
7800 fi
7801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7802   conftest.$ac_objext conftest.beam conftest.$ac_ext
7803 fi
7804
7805 fi
7806 fi
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7808 $as_echo "$ac_cv_header_stdc" >&6; }
7809 if test $ac_cv_header_stdc = yes; then
7810
7811 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7812
7813 fi
7814
7815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7816 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7817                   inttypes.h stdint.h unistd.h
7818 do :
7819   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7820 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7821 "
7822 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7823   cat >>confdefs.h <<_ACEOF
7824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7825 _ACEOF
7826
7827 fi
7828
7829 done
7830
7831
7832 for ac_header in dlfcn.h
7833 do :
7834   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7835 "
7836 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7837   cat >>confdefs.h <<_ACEOF
7838 #define HAVE_DLFCN_H 1
7839 _ACEOF
7840
7841 fi
7842
7843 done
7844
7845
7846
7847 # Set options
7848
7849
7850
7851         enable_dlopen=no
7852
7853
7854
7855             # Check whether --enable-shared was given.
7856 if test "${enable_shared+set}" = set; then :
7857   enableval=$enable_shared; p=${PACKAGE-default}
7858     case $enableval in
7859     yes) enable_shared=yes ;;
7860     no) enable_shared=no ;;
7861     *)
7862       enable_shared=no
7863       # Look at the argument we got.  We use all the common list separators.
7864       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7865       for pkg in $enableval; do
7866         IFS="$lt_save_ifs"
7867         if test "X$pkg" = "X$p"; then
7868           enable_shared=yes
7869         fi
7870       done
7871       IFS="$lt_save_ifs"
7872       ;;
7873     esac
7874 else
7875   enable_shared=yes
7876 fi
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886   # Check whether --enable-static was given.
7887 if test "${enable_static+set}" = set; then :
7888   enableval=$enable_static; p=${PACKAGE-default}
7889     case $enableval in
7890     yes) enable_static=yes ;;
7891     no) enable_static=no ;;
7892     *)
7893      enable_static=no
7894       # Look at the argument we got.  We use all the common list separators.
7895       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7896       for pkg in $enableval; do
7897         IFS="$lt_save_ifs"
7898         if test "X$pkg" = "X$p"; then
7899           enable_static=yes
7900         fi
7901       done
7902       IFS="$lt_save_ifs"
7903       ;;
7904     esac
7905 else
7906   enable_static=yes
7907 fi
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918 # Check whether --with-pic was given.
7919 if test "${with_pic+set}" = set; then :
7920   withval=$with_pic; pic_mode="$withval"
7921 else
7922   pic_mode=default
7923 fi
7924
7925
7926 test -z "$pic_mode" && pic_mode=default
7927
7928
7929
7930
7931
7932
7933
7934   # Check whether --enable-fast-install was given.
7935 if test "${enable_fast_install+set}" = set; then :
7936   enableval=$enable_fast_install; p=${PACKAGE-default}
7937     case $enableval in
7938     yes) enable_fast_install=yes ;;
7939     no) enable_fast_install=no ;;
7940     *)
7941       enable_fast_install=no
7942       # Look at the argument we got.  We use all the common list separators.
7943       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7944       for pkg in $enableval; do
7945         IFS="$lt_save_ifs"
7946         if test "X$pkg" = "X$p"; then
7947           enable_fast_install=yes
7948         fi
7949       done
7950       IFS="$lt_save_ifs"
7951       ;;
7952     esac
7953 else
7954   enable_fast_install=yes
7955 fi
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967 # This can be used to rebuild libtool when needed
7968 LIBTOOL_DEPS="$ltmain"
7969
7970 # Always use our own libtool.
7971 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997 test -z "$LN_S" && LN_S="ln -s"
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012 if test -n "${ZSH_VERSION+set}" ; then
8013    setopt NO_GLOB_SUBST
8014 fi
8015
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8017 $as_echo_n "checking for objdir... " >&6; }
8018 if ${lt_cv_objdir+:} false; then :
8019   $as_echo_n "(cached) " >&6
8020 else
8021   rm -f .libs 2>/dev/null
8022 mkdir .libs 2>/dev/null
8023 if test -d .libs; then
8024   lt_cv_objdir=.libs
8025 else
8026   # MS-DOS does not allow filenames that begin with a dot.
8027   lt_cv_objdir=_libs
8028 fi
8029 rmdir .libs 2>/dev/null
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8032 $as_echo "$lt_cv_objdir" >&6; }
8033 objdir=$lt_cv_objdir
8034
8035
8036
8037
8038
8039 cat >>confdefs.h <<_ACEOF
8040 #define LT_OBJDIR "$lt_cv_objdir/"
8041 _ACEOF
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059 case $host_os in
8060 aix3*)
8061   # AIX sometimes has problems with the GCC collect2 program.  For some
8062   # reason, if we set the COLLECT_NAMES environment variable, the problems
8063   # vanish in a puff of smoke.
8064   if test "X${COLLECT_NAMES+set}" != Xset; then
8065     COLLECT_NAMES=
8066     export COLLECT_NAMES
8067   fi
8068   ;;
8069 esac
8070
8071 # Sed substitution that helps us do robust quoting.  It backslashifies
8072 # metacharacters that are still active within double-quoted strings.
8073 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8074
8075 # Same as above, but do not quote variable references.
8076 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8077
8078 # Sed substitution to delay expansion of an escaped shell variable in a
8079 # double_quote_subst'ed string.
8080 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8081
8082 # Sed substitution to delay expansion of an escaped single quote.
8083 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8084
8085 # Sed substitution to avoid accidental globbing in evaled expressions
8086 no_glob_subst='s/\*/\\\*/g'
8087
8088 # Global variables:
8089 ofile=libtool
8090 can_build_shared=yes
8091
8092 # All known linkers require a `.a' archive for static linking (except MSVC,
8093 # which needs '.lib').
8094 libext=a
8095
8096 with_gnu_ld="$lt_cv_prog_gnu_ld"
8097
8098 old_CC="$CC"
8099 old_CFLAGS="$CFLAGS"
8100
8101 # Set sane defaults for various variables
8102 test -z "$CC" && CC=cc
8103 test -z "$LTCC" && LTCC=$CC
8104 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8105 test -z "$LD" && LD=ld
8106 test -z "$ac_objext" && ac_objext=o
8107
8108 for cc_temp in $compiler""; do
8109   case $cc_temp in
8110     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8111     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8112     \-*) ;;
8113     *) break;;
8114   esac
8115 done
8116 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8117
8118
8119 # Only perform the check for file, if the check method requires it
8120 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8121 case $deplibs_check_method in
8122 file_magic*)
8123   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8125 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8126 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129   case $MAGIC_CMD in
8130 [\\/*] |  ?:[\\/]*)
8131   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8132   ;;
8133 *)
8134   lt_save_MAGIC_CMD="$MAGIC_CMD"
8135   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8136   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8137   for ac_dir in $ac_dummy; do
8138     IFS="$lt_save_ifs"
8139     test -z "$ac_dir" && ac_dir=.
8140     if test -f $ac_dir/${ac_tool_prefix}file; then
8141       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8142       if test -n "$file_magic_test_file"; then
8143         case $deplibs_check_method in
8144         "file_magic "*)
8145           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8146           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8147           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8148             $EGREP "$file_magic_regex" > /dev/null; then
8149             :
8150           else
8151             cat <<_LT_EOF 1>&2
8152
8153 *** Warning: the command libtool uses to detect shared libraries,
8154 *** $file_magic_cmd, produces output that libtool cannot recognize.
8155 *** The result is that libtool may fail to recognize shared libraries
8156 *** as such.  This will affect the creation of libtool libraries that
8157 *** depend on shared libraries, but programs linked with such libtool
8158 *** libraries will work regardless of this problem.  Nevertheless, you
8159 *** may want to report the problem to your system manager and/or to
8160 *** bug-libtool@gnu.org
8161
8162 _LT_EOF
8163           fi ;;
8164         esac
8165       fi
8166       break
8167     fi
8168   done
8169   IFS="$lt_save_ifs"
8170   MAGIC_CMD="$lt_save_MAGIC_CMD"
8171   ;;
8172 esac
8173 fi
8174
8175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8176 if test -n "$MAGIC_CMD"; then
8177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8178 $as_echo "$MAGIC_CMD" >&6; }
8179 else
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8182 fi
8183
8184
8185
8186
8187
8188 if test -z "$lt_cv_path_MAGIC_CMD"; then
8189   if test -n "$ac_tool_prefix"; then
8190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8191 $as_echo_n "checking for file... " >&6; }
8192 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8193   $as_echo_n "(cached) " >&6
8194 else
8195   case $MAGIC_CMD in
8196 [\\/*] |  ?:[\\/]*)
8197   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8198   ;;
8199 *)
8200   lt_save_MAGIC_CMD="$MAGIC_CMD"
8201   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8202   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8203   for ac_dir in $ac_dummy; do
8204     IFS="$lt_save_ifs"
8205     test -z "$ac_dir" && ac_dir=.
8206     if test -f $ac_dir/file; then
8207       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8208       if test -n "$file_magic_test_file"; then
8209         case $deplibs_check_method in
8210         "file_magic "*)
8211           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8212           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8213           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8214             $EGREP "$file_magic_regex" > /dev/null; then
8215             :
8216           else
8217             cat <<_LT_EOF 1>&2
8218
8219 *** Warning: the command libtool uses to detect shared libraries,
8220 *** $file_magic_cmd, produces output that libtool cannot recognize.
8221 *** The result is that libtool may fail to recognize shared libraries
8222 *** as such.  This will affect the creation of libtool libraries that
8223 *** depend on shared libraries, but programs linked with such libtool
8224 *** libraries will work regardless of this problem.  Nevertheless, you
8225 *** may want to report the problem to your system manager and/or to
8226 *** bug-libtool@gnu.org
8227
8228 _LT_EOF
8229           fi ;;
8230         esac
8231       fi
8232       break
8233     fi
8234   done
8235   IFS="$lt_save_ifs"
8236   MAGIC_CMD="$lt_save_MAGIC_CMD"
8237   ;;
8238 esac
8239 fi
8240
8241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8242 if test -n "$MAGIC_CMD"; then
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8244 $as_echo "$MAGIC_CMD" >&6; }
8245 else
8246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8248 fi
8249
8250
8251   else
8252     MAGIC_CMD=:
8253   fi
8254 fi
8255
8256   fi
8257   ;;
8258 esac
8259
8260 # Use C for the default configuration in the libtool script
8261
8262 lt_save_CC="$CC"
8263 ac_ext=c
8264 ac_cpp='$CPP $CPPFLAGS'
8265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8268
8269
8270 # Source file extension for C test sources.
8271 ac_ext=c
8272
8273 # Object file extension for compiled C test sources.
8274 objext=o
8275 objext=$objext
8276
8277 # Code to be used in simple compile tests
8278 lt_simple_compile_test_code="int some_variable = 0;"
8279
8280 # Code to be used in simple link tests
8281 lt_simple_link_test_code='int main(){return(0);}'
8282
8283
8284
8285
8286
8287
8288
8289 # If no C compiler was specified, use CC.
8290 LTCC=${LTCC-"$CC"}
8291
8292 # If no C compiler flags were specified, use CFLAGS.
8293 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8294
8295 # Allow CC to be a program name with arguments.
8296 compiler=$CC
8297
8298 # Save the default compiler, since it gets overwritten when the other
8299 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8300 compiler_DEFAULT=$CC
8301
8302 # save warnings/boilerplate of simple test code
8303 ac_outfile=conftest.$ac_objext
8304 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8305 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8306 _lt_compiler_boilerplate=`cat conftest.err`
8307 $RM conftest*
8308
8309 ac_outfile=conftest.$ac_objext
8310 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8311 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8312 _lt_linker_boilerplate=`cat conftest.err`
8313 $RM -r conftest*
8314
8315
8316 ## CAVEAT EMPTOR:
8317 ## There is no encapsulation within the following macros, do not change
8318 ## the running order or otherwise move them around unless you know exactly
8319 ## what you are doing...
8320 if test -n "$compiler"; then
8321
8322 lt_prog_compiler_no_builtin_flag=
8323
8324 if test "$GCC" = yes; then
8325   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8326
8327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8328 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8329 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8330   $as_echo_n "(cached) " >&6
8331 else
8332   lt_cv_prog_compiler_rtti_exceptions=no
8333    ac_outfile=conftest.$ac_objext
8334    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8335    lt_compiler_flag="-fno-rtti -fno-exceptions"
8336    # Insert the option either (1) after the last *FLAGS variable, or
8337    # (2) before a word containing "conftest.", or (3) at the end.
8338    # Note that $ac_compile itself does not contain backslashes and begins
8339    # with a dollar sign (not a hyphen), so the echo should work correctly.
8340    # The option is referenced via a variable to avoid confusing sed.
8341    lt_compile=`echo "$ac_compile" | $SED \
8342    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8343    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8344    -e 's:$: $lt_compiler_flag:'`
8345    (eval echo "\"\$as_me:8345: $lt_compile\"" >&5)
8346    (eval "$lt_compile" 2>conftest.err)
8347    ac_status=$?
8348    cat conftest.err >&5
8349    echo "$as_me:8349: \$? = $ac_status" >&5
8350    if (exit $ac_status) && test -s "$ac_outfile"; then
8351      # The compiler can only warn and ignore the option if not recognized
8352      # So say no if there are warnings other than the usual output.
8353      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8354      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8355      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8356        lt_cv_prog_compiler_rtti_exceptions=yes
8357      fi
8358    fi
8359    $RM conftest*
8360
8361 fi
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8363 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8364
8365 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8366     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8367 else
8368     :
8369 fi
8370
8371 fi
8372
8373
8374
8375
8376
8377
8378   lt_prog_compiler_wl=
8379 lt_prog_compiler_pic=
8380 lt_prog_compiler_static=
8381
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8383 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8384
8385   if test "$GCC" = yes; then
8386     lt_prog_compiler_wl='-Wl,'
8387     lt_prog_compiler_static='-static'
8388
8389     case $host_os in
8390       aix*)
8391       # All AIX code is PIC.
8392       if test "$host_cpu" = ia64; then
8393         # AIX 5 now supports IA64 processor
8394         lt_prog_compiler_static='-Bstatic'
8395       fi
8396       ;;
8397
8398     amigaos*)
8399       case $host_cpu in
8400       powerpc)
8401             # see comment about AmigaOS4 .so support
8402             lt_prog_compiler_pic='-fPIC'
8403         ;;
8404       m68k)
8405             # FIXME: we need at least 68020 code to build shared libraries, but
8406             # adding the `-m68020' flag to GCC prevents building anything better,
8407             # like `-m68040'.
8408             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8409         ;;
8410       esac
8411       ;;
8412
8413     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8414       # PIC is the default for these OSes.
8415       ;;
8416
8417     mingw* | cygwin* | pw32* | os2* | cegcc*)
8418       # This hack is so that the source file can tell whether it is being
8419       # built for inclusion in a dll (and should export symbols for example).
8420       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8421       # (--disable-auto-import) libraries
8422       lt_prog_compiler_pic='-DDLL_EXPORT'
8423       ;;
8424
8425     darwin* | rhapsody*)
8426       # PIC is the default on this platform
8427       # Common symbols not allowed in MH_DYLIB files
8428       lt_prog_compiler_pic='-fno-common'
8429       ;;
8430
8431     hpux*)
8432       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8433       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8434       # sets the default TLS model and affects inlining.
8435       case $host_cpu in
8436       hppa*64*)
8437         # +Z the default
8438         ;;
8439       *)
8440         lt_prog_compiler_pic='-fPIC'
8441         ;;
8442       esac
8443       ;;
8444
8445     interix[3-9]*)
8446       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8447       # Instead, we relocate shared libraries at runtime.
8448       ;;
8449
8450     msdosdjgpp*)
8451       # Just because we use GCC doesn't mean we suddenly get shared libraries
8452       # on systems that don't support them.
8453       lt_prog_compiler_can_build_shared=no
8454       enable_shared=no
8455       ;;
8456
8457     *nto* | *qnx*)
8458       # QNX uses GNU C++, but need to define -shared option too, otherwise
8459       # it will coredump.
8460       lt_prog_compiler_pic='-fPIC -shared'
8461       ;;
8462
8463     sysv4*MP*)
8464       if test -d /usr/nec; then
8465         lt_prog_compiler_pic=-Kconform_pic
8466       fi
8467       ;;
8468
8469     *)
8470       lt_prog_compiler_pic='-fPIC'
8471       ;;
8472     esac
8473   else
8474     # PORTME Check for flag to pass linker flags through the system compiler.
8475     case $host_os in
8476     aix*)
8477       lt_prog_compiler_wl='-Wl,'
8478       if test "$host_cpu" = ia64; then
8479         # AIX 5 now supports IA64 processor
8480         lt_prog_compiler_static='-Bstatic'
8481       else
8482         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8483       fi
8484       ;;
8485
8486     mingw* | cygwin* | pw32* | os2* | cegcc*)
8487       # This hack is so that the source file can tell whether it is being
8488       # built for inclusion in a dll (and should export symbols for example).
8489       lt_prog_compiler_pic='-DDLL_EXPORT'
8490       ;;
8491
8492     hpux9* | hpux10* | hpux11*)
8493       lt_prog_compiler_wl='-Wl,'
8494       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8495       # not for PA HP-UX.
8496       case $host_cpu in
8497       hppa*64*|ia64*)
8498         # +Z the default
8499         ;;
8500       *)
8501         lt_prog_compiler_pic='+Z'
8502         ;;
8503       esac
8504       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8505       lt_prog_compiler_static='${wl}-a ${wl}archive'
8506       ;;
8507
8508     irix5* | irix6* | nonstopux*)
8509       lt_prog_compiler_wl='-Wl,'
8510       # PIC (with -KPIC) is the default.
8511       lt_prog_compiler_static='-non_shared'
8512       ;;
8513
8514     linux* | k*bsd*-gnu)
8515       case $cc_basename in
8516       # old Intel for x86_64 which still supported -KPIC.
8517       ecc*)
8518         lt_prog_compiler_wl='-Wl,'
8519         lt_prog_compiler_pic='-KPIC'
8520         lt_prog_compiler_static='-static'
8521         ;;
8522       # icc used to be incompatible with GCC.
8523       # ICC 10 doesn't accept -KPIC any more.
8524       icc* | ifort*)
8525         lt_prog_compiler_wl='-Wl,'
8526         lt_prog_compiler_pic='-fPIC'
8527         lt_prog_compiler_static='-static'
8528         ;;
8529       # Lahey Fortran 8.1.
8530       lf95*)
8531         lt_prog_compiler_wl='-Wl,'
8532         lt_prog_compiler_pic='--shared'
8533         lt_prog_compiler_static='--static'
8534         ;;
8535       pgcc* | pgf77* | pgf90* | pgf95*)
8536         # Portland Group compilers (*not* the Pentium gcc compiler,
8537         # which looks to be a dead project)
8538         lt_prog_compiler_wl='-Wl,'
8539         lt_prog_compiler_pic='-fpic'
8540         lt_prog_compiler_static='-Bstatic'
8541         ;;
8542       ccc*)
8543         lt_prog_compiler_wl='-Wl,'
8544         # All Alpha code is PIC.
8545         lt_prog_compiler_static='-non_shared'
8546         ;;
8547       xl*)
8548         # IBM XL C 8.0/Fortran 10.1 on PPC
8549         lt_prog_compiler_wl='-Wl,'
8550         lt_prog_compiler_pic='-qpic'
8551         lt_prog_compiler_static='-qstaticlink'
8552         ;;
8553       *)
8554         case `$CC -V 2>&1 | sed 5q` in
8555         *Sun\ C*)
8556           # Sun C 5.9
8557           lt_prog_compiler_pic='-KPIC'
8558           lt_prog_compiler_static='-Bstatic'
8559           lt_prog_compiler_wl='-Wl,'
8560           ;;
8561         *Sun\ F*)
8562           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8563           lt_prog_compiler_pic='-KPIC'
8564           lt_prog_compiler_static='-Bstatic'
8565           lt_prog_compiler_wl=''
8566           ;;
8567         esac
8568         ;;
8569       esac
8570       ;;
8571
8572     newsos6)
8573       lt_prog_compiler_pic='-KPIC'
8574       lt_prog_compiler_static='-Bstatic'
8575       ;;
8576
8577     *nto* | *qnx*)
8578       # QNX uses GNU C++, but need to define -shared option too, otherwise
8579       # it will coredump.
8580       lt_prog_compiler_pic='-fPIC -shared'
8581       ;;
8582
8583     osf3* | osf4* | osf5*)
8584       lt_prog_compiler_wl='-Wl,'
8585       # All OSF/1 code is PIC.
8586       lt_prog_compiler_static='-non_shared'
8587       ;;
8588
8589     rdos*)
8590       lt_prog_compiler_static='-non_shared'
8591       ;;
8592
8593     solaris*)
8594       lt_prog_compiler_pic='-KPIC'
8595       lt_prog_compiler_static='-Bstatic'
8596       case $cc_basename in
8597       f77* | f90* | f95*)
8598         lt_prog_compiler_wl='-Qoption ld ';;
8599       *)
8600         lt_prog_compiler_wl='-Wl,';;
8601       esac
8602       ;;
8603
8604     sunos4*)
8605       lt_prog_compiler_wl='-Qoption ld '
8606       lt_prog_compiler_pic='-PIC'
8607       lt_prog_compiler_static='-Bstatic'
8608       ;;
8609
8610     sysv4 | sysv4.2uw2* | sysv4.3*)
8611       lt_prog_compiler_wl='-Wl,'
8612       lt_prog_compiler_pic='-KPIC'
8613       lt_prog_compiler_static='-Bstatic'
8614       ;;
8615
8616     sysv4*MP*)
8617       if test -d /usr/nec ;then
8618         lt_prog_compiler_pic='-Kconform_pic'
8619         lt_prog_compiler_static='-Bstatic'
8620       fi
8621       ;;
8622
8623     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8624       lt_prog_compiler_wl='-Wl,'
8625       lt_prog_compiler_pic='-KPIC'
8626       lt_prog_compiler_static='-Bstatic'
8627       ;;
8628
8629     unicos*)
8630       lt_prog_compiler_wl='-Wl,'
8631       lt_prog_compiler_can_build_shared=no
8632       ;;
8633
8634     uts4*)
8635       lt_prog_compiler_pic='-pic'
8636       lt_prog_compiler_static='-Bstatic'
8637       ;;
8638
8639     *)
8640       lt_prog_compiler_can_build_shared=no
8641       ;;
8642     esac
8643   fi
8644
8645 case $host_os in
8646   # For platforms which do not support PIC, -DPIC is meaningless:
8647   *djgpp*)
8648     lt_prog_compiler_pic=
8649     ;;
8650   *)
8651     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8652     ;;
8653 esac
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8655 $as_echo "$lt_prog_compiler_pic" >&6; }
8656
8657
8658
8659
8660
8661
8662 #
8663 # Check to make sure the PIC flag actually works.
8664 #
8665 if test -n "$lt_prog_compiler_pic"; then
8666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8667 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8668 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8669   $as_echo_n "(cached) " >&6
8670 else
8671   lt_cv_prog_compiler_pic_works=no
8672    ac_outfile=conftest.$ac_objext
8673    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8674    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8675    # Insert the option either (1) after the last *FLAGS variable, or
8676    # (2) before a word containing "conftest.", or (3) at the end.
8677    # Note that $ac_compile itself does not contain backslashes and begins
8678    # with a dollar sign (not a hyphen), so the echo should work correctly.
8679    # The option is referenced via a variable to avoid confusing sed.
8680    lt_compile=`echo "$ac_compile" | $SED \
8681    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8682    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8683    -e 's:$: $lt_compiler_flag:'`
8684    (eval echo "\"\$as_me:8684: $lt_compile\"" >&5)
8685    (eval "$lt_compile" 2>conftest.err)
8686    ac_status=$?
8687    cat conftest.err >&5
8688    echo "$as_me:8688: \$? = $ac_status" >&5
8689    if (exit $ac_status) && test -s "$ac_outfile"; then
8690      # The compiler can only warn and ignore the option if not recognized
8691      # So say no if there are warnings other than the usual output.
8692      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8693      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8694      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8695        lt_cv_prog_compiler_pic_works=yes
8696      fi
8697    fi
8698    $RM conftest*
8699
8700 fi
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8702 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8703
8704 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8705     case $lt_prog_compiler_pic in
8706      "" | " "*) ;;
8707      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8708      esac
8709 else
8710     lt_prog_compiler_pic=
8711      lt_prog_compiler_can_build_shared=no
8712 fi
8713
8714 fi
8715
8716
8717
8718
8719
8720
8721 #
8722 # Check to make sure the static flag actually works.
8723 #
8724 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8726 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8727 if ${lt_cv_prog_compiler_static_works+:} false; then :
8728   $as_echo_n "(cached) " >&6
8729 else
8730   lt_cv_prog_compiler_static_works=no
8731    save_LDFLAGS="$LDFLAGS"
8732    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8733    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8734    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8735      # The linker can only warn and ignore the option if not recognized
8736      # So say no if there are warnings
8737      if test -s conftest.err; then
8738        # Append any errors to the config.log.
8739        cat conftest.err 1>&5
8740        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8741        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8742        if diff conftest.exp conftest.er2 >/dev/null; then
8743          lt_cv_prog_compiler_static_works=yes
8744        fi
8745      else
8746        lt_cv_prog_compiler_static_works=yes
8747      fi
8748    fi
8749    $RM -r conftest*
8750    LDFLAGS="$save_LDFLAGS"
8751
8752 fi
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8754 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8755
8756 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8757     :
8758 else
8759     lt_prog_compiler_static=
8760 fi
8761
8762
8763
8764
8765
8766
8767
8768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8769 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8770 if ${lt_cv_prog_compiler_c_o+:} false; then :
8771   $as_echo_n "(cached) " >&6
8772 else
8773   lt_cv_prog_compiler_c_o=no
8774    $RM -r conftest 2>/dev/null
8775    mkdir conftest
8776    cd conftest
8777    mkdir out
8778    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8779
8780    lt_compiler_flag="-o out/conftest2.$ac_objext"
8781    # Insert the option either (1) after the last *FLAGS variable, or
8782    # (2) before a word containing "conftest.", or (3) at the end.
8783    # Note that $ac_compile itself does not contain backslashes and begins
8784    # with a dollar sign (not a hyphen), so the echo should work correctly.
8785    lt_compile=`echo "$ac_compile" | $SED \
8786    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8787    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8788    -e 's:$: $lt_compiler_flag:'`
8789    (eval echo "\"\$as_me:8789: $lt_compile\"" >&5)
8790    (eval "$lt_compile" 2>out/conftest.err)
8791    ac_status=$?
8792    cat out/conftest.err >&5
8793    echo "$as_me:8793: \$? = $ac_status" >&5
8794    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8795    then
8796      # The compiler can only warn and ignore the option if not recognized
8797      # So say no if there are warnings
8798      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8799      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8800      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8801        lt_cv_prog_compiler_c_o=yes
8802      fi
8803    fi
8804    chmod u+w . 2>&5
8805    $RM conftest*
8806    # SGI C++ compiler will create directory out/ii_files/ for
8807    # template instantiation
8808    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8809    $RM out/* && rmdir out
8810    cd ..
8811    $RM -r conftest
8812    $RM conftest*
8813
8814 fi
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8816 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8817
8818
8819
8820
8821
8822
8823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8824 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8825 if ${lt_cv_prog_compiler_c_o+:} false; then :
8826   $as_echo_n "(cached) " >&6
8827 else
8828   lt_cv_prog_compiler_c_o=no
8829    $RM -r conftest 2>/dev/null
8830    mkdir conftest
8831    cd conftest
8832    mkdir out
8833    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8834
8835    lt_compiler_flag="-o out/conftest2.$ac_objext"
8836    # Insert the option either (1) after the last *FLAGS variable, or
8837    # (2) before a word containing "conftest.", or (3) at the end.
8838    # Note that $ac_compile itself does not contain backslashes and begins
8839    # with a dollar sign (not a hyphen), so the echo should work correctly.
8840    lt_compile=`echo "$ac_compile" | $SED \
8841    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8842    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8843    -e 's:$: $lt_compiler_flag:'`
8844    (eval echo "\"\$as_me:8844: $lt_compile\"" >&5)
8845    (eval "$lt_compile" 2>out/conftest.err)
8846    ac_status=$?
8847    cat out/conftest.err >&5
8848    echo "$as_me:8848: \$? = $ac_status" >&5
8849    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8850    then
8851      # The compiler can only warn and ignore the option if not recognized
8852      # So say no if there are warnings
8853      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8854      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8855      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8856        lt_cv_prog_compiler_c_o=yes
8857      fi
8858    fi
8859    chmod u+w . 2>&5
8860    $RM conftest*
8861    # SGI C++ compiler will create directory out/ii_files/ for
8862    # template instantiation
8863    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8864    $RM out/* && rmdir out
8865    cd ..
8866    $RM -r conftest
8867    $RM conftest*
8868
8869 fi
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8871 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8872
8873
8874
8875
8876 hard_links="nottested"
8877 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8878   # do not overwrite the value of need_locks provided by the user
8879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8880 $as_echo_n "checking if we can lock with hard links... " >&6; }
8881   hard_links=yes
8882   $RM conftest*
8883   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8884   touch conftest.a
8885   ln conftest.a conftest.b 2>&5 || hard_links=no
8886   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8888 $as_echo "$hard_links" >&6; }
8889   if test "$hard_links" = no; then
8890     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8891 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8892     need_locks=warn
8893   fi
8894 else
8895   need_locks=no
8896 fi
8897
8898
8899
8900
8901
8902
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8904 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8905
8906   runpath_var=
8907   allow_undefined_flag=
8908   always_export_symbols=no
8909   archive_cmds=
8910   archive_expsym_cmds=
8911   compiler_needs_object=no
8912   enable_shared_with_static_runtimes=no
8913   export_dynamic_flag_spec=
8914   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8915   hardcode_automatic=no
8916   hardcode_direct=no
8917   hardcode_direct_absolute=no
8918   hardcode_libdir_flag_spec=
8919   hardcode_libdir_flag_spec_ld=
8920   hardcode_libdir_separator=
8921   hardcode_minus_L=no
8922   hardcode_shlibpath_var=unsupported
8923   inherit_rpath=no
8924   link_all_deplibs=unknown
8925   module_cmds=
8926   module_expsym_cmds=
8927   old_archive_from_new_cmds=
8928   old_archive_from_expsyms_cmds=
8929   thread_safe_flag_spec=
8930   whole_archive_flag_spec=
8931   # include_expsyms should be a list of space-separated symbols to be *always*
8932   # included in the symbol list
8933   include_expsyms=
8934   # exclude_expsyms can be an extended regexp of symbols to exclude
8935   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8936   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8937   # as well as any symbol that contains `d'.
8938   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8939   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8940   # platforms (ab)use it in PIC code, but their linkers get confused if
8941   # the symbol is explicitly referenced.  Since portable code cannot
8942   # rely on this symbol name, it's probably fine to never include it in
8943   # preloaded symbol tables.
8944   # Exclude shared library initialization/finalization symbols.
8945   extract_expsyms_cmds=
8946
8947   case $host_os in
8948   cygwin* | mingw* | pw32* | cegcc*)
8949     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8950     # When not using gcc, we currently assume that we are using
8951     # Microsoft Visual C++.
8952     if test "$GCC" != yes; then
8953       with_gnu_ld=no
8954     fi
8955     ;;
8956   interix*)
8957     # we just hope/assume this is gcc and not c89 (= MSVC++)
8958     with_gnu_ld=yes
8959     ;;
8960   openbsd*)
8961     with_gnu_ld=no
8962     ;;
8963   esac
8964
8965   ld_shlibs=yes
8966   if test "$with_gnu_ld" = yes; then
8967     # If archive_cmds runs LD, not CC, wlarc should be empty
8968     wlarc='${wl}'
8969
8970     # Set some defaults for GNU ld with shared library support. These
8971     # are reset later if shared libraries are not supported. Putting them
8972     # here allows them to be overridden if necessary.
8973     runpath_var=LD_RUN_PATH
8974     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8975     export_dynamic_flag_spec='${wl}--export-dynamic'
8976     # ancient GNU ld didn't support --whole-archive et. al.
8977     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8978       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8979     else
8980       whole_archive_flag_spec=
8981     fi
8982     supports_anon_versioning=no
8983     case `$LD -v 2>&1` in
8984       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8985       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8986       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8987       *\ 2.11.*) ;; # other 2.11 versions
8988       *) supports_anon_versioning=yes ;;
8989     esac
8990
8991     # See if GNU ld supports shared libraries.
8992     case $host_os in
8993     aix[3-9]*)
8994       # On AIX/PPC, the GNU linker is very broken
8995       if test "$host_cpu" != ia64; then
8996         ld_shlibs=no
8997         cat <<_LT_EOF 1>&2
8998
8999 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9000 *** to be unable to reliably create shared libraries on AIX.
9001 *** Therefore, libtool is disabling shared libraries support.  If you
9002 *** really care for shared libraries, you may want to modify your PATH
9003 *** so that a non-GNU linker is found, and then restart.
9004
9005 _LT_EOF
9006       fi
9007       ;;
9008
9009     amigaos*)
9010       case $host_cpu in
9011       powerpc)
9012             # see comment about AmigaOS4 .so support
9013             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9014             archive_expsym_cmds=''
9015         ;;
9016       m68k)
9017             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)'
9018             hardcode_libdir_flag_spec='-L$libdir'
9019             hardcode_minus_L=yes
9020         ;;
9021       esac
9022       ;;
9023
9024     beos*)
9025       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9026         allow_undefined_flag=unsupported
9027         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9028         # support --undefined.  This deserves some investigation.  FIXME
9029         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030       else
9031         ld_shlibs=no
9032       fi
9033       ;;
9034
9035     cygwin* | mingw* | pw32* | cegcc*)
9036       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9037       # as there is no search path for DLLs.
9038       hardcode_libdir_flag_spec='-L$libdir'
9039       allow_undefined_flag=unsupported
9040       always_export_symbols=no
9041       enable_shared_with_static_runtimes=yes
9042       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9043
9044       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9045         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9046         # If the export-symbols file already is a .def file (1st line
9047         # is EXPORTS), use it as is; otherwise, prepend...
9048         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9049           cp $export_symbols $output_objdir/$soname.def;
9050         else
9051           echo EXPORTS > $output_objdir/$soname.def;
9052           cat $export_symbols >> $output_objdir/$soname.def;
9053         fi~
9054         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9055       else
9056         ld_shlibs=no
9057       fi
9058       ;;
9059
9060     interix[3-9]*)
9061       hardcode_direct=no
9062       hardcode_shlibpath_var=no
9063       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9064       export_dynamic_flag_spec='${wl}-E'
9065       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9066       # Instead, shared libraries are loaded at an image base (0x10000000 by
9067       # default) and relocated if they conflict, which is a slow very memory
9068       # consuming and fragmenting process.  To avoid this, we pick a random,
9069       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9070       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9071       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9072       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'
9073       ;;
9074
9075     gnu* | linux* | tpf* | k*bsd*-gnu)
9076       tmp_diet=no
9077       if test "$host_os" = linux-dietlibc; then
9078         case $cc_basename in
9079           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9080         esac
9081       fi
9082       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9083          && test "$tmp_diet" = no
9084       then
9085         tmp_addflag=
9086         tmp_sharedflag='-shared'
9087         case $cc_basename,$host_cpu in
9088         pgcc*)                          # Portland Group C compiler
9089           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9090           tmp_addflag=' $pic_flag'
9091           ;;
9092         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9093           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9094           tmp_addflag=' $pic_flag -Mnomain' ;;
9095         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9096           tmp_addflag=' -i_dynamic' ;;
9097         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9098           tmp_addflag=' -i_dynamic -nofor_main' ;;
9099         ifc* | ifort*)                  # Intel Fortran compiler
9100           tmp_addflag=' -nofor_main' ;;
9101         lf95*)                          # Lahey Fortran 8.1
9102           whole_archive_flag_spec=
9103           tmp_sharedflag='--shared' ;;
9104         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9105           tmp_sharedflag='-qmkshrobj'
9106           tmp_addflag= ;;
9107         esac
9108         case `$CC -V 2>&1 | sed 5q` in
9109         *Sun\ C*)                       # Sun C 5.9
9110           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9111           compiler_needs_object=yes
9112           tmp_sharedflag='-G' ;;
9113         *Sun\ F*)                       # Sun Fortran 8.3
9114           tmp_sharedflag='-G' ;;
9115         esac
9116         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9117
9118         if test "x$supports_anon_versioning" = xyes; then
9119           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9120             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9121             echo "local: *; };" >> $output_objdir/$libname.ver~
9122             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9123         fi
9124
9125         case $cc_basename in
9126         xlf*)
9127           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9128           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9129           hardcode_libdir_flag_spec=
9130           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9131           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9132           if test "x$supports_anon_versioning" = xyes; then
9133             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9134               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9135               echo "local: *; };" >> $output_objdir/$libname.ver~
9136               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9137           fi
9138           ;;
9139         esac
9140       else
9141         ld_shlibs=no
9142       fi
9143       ;;
9144
9145     netbsd*)
9146       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9147         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9148         wlarc=
9149       else
9150         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9152       fi
9153       ;;
9154
9155     solaris*)
9156       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9157         ld_shlibs=no
9158         cat <<_LT_EOF 1>&2
9159
9160 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9161 *** create shared libraries on Solaris systems.  Therefore, libtool
9162 *** is disabling shared libraries support.  We urge you to upgrade GNU
9163 *** binutils to release 2.9.1 or newer.  Another option is to modify
9164 *** your PATH or compiler configuration so that the native linker is
9165 *** used, and then restart.
9166
9167 _LT_EOF
9168       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9169         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9170         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9171       else
9172         ld_shlibs=no
9173       fi
9174       ;;
9175
9176     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9177       case `$LD -v 2>&1` in
9178         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9179         ld_shlibs=no
9180         cat <<_LT_EOF 1>&2
9181
9182 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9183 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9184 *** is disabling shared libraries support.  We urge you to upgrade GNU
9185 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9186 *** your PATH or compiler configuration so that the native linker is
9187 *** used, and then restart.
9188
9189 _LT_EOF
9190         ;;
9191         *)
9192           # For security reasons, it is highly recommended that you always
9193           # use absolute paths for naming shared libraries, and exclude the
9194           # DT_RUNPATH tag from executables and libraries.  But doing so
9195           # requires that you compile everything twice, which is a pain.
9196           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9197             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9198             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9199             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9200           else
9201             ld_shlibs=no
9202           fi
9203         ;;
9204       esac
9205       ;;
9206
9207     sunos4*)
9208       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9209       wlarc=
9210       hardcode_direct=yes
9211       hardcode_shlibpath_var=no
9212       ;;
9213
9214     *)
9215       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9216         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9218       else
9219         ld_shlibs=no
9220       fi
9221       ;;
9222     esac
9223
9224     if test "$ld_shlibs" = no; then
9225       runpath_var=
9226       hardcode_libdir_flag_spec=
9227       export_dynamic_flag_spec=
9228       whole_archive_flag_spec=
9229     fi
9230   else
9231     # PORTME fill in a description of your system's linker (not GNU ld)
9232     case $host_os in
9233     aix3*)
9234       allow_undefined_flag=unsupported
9235       always_export_symbols=yes
9236       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'
9237       # Note: this linker hardcodes the directories in LIBPATH if there
9238       # are no directories specified by -L.
9239       hardcode_minus_L=yes
9240       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9241         # Neither direct hardcoding nor static linking is supported with a
9242         # broken collect2.
9243         hardcode_direct=unsupported
9244       fi
9245       ;;
9246
9247     aix[4-9]*)
9248       if test "$host_cpu" = ia64; then
9249         # On IA64, the linker does run time linking by default, so we don't
9250         # have to do anything special.
9251         aix_use_runtimelinking=no
9252         exp_sym_flag='-Bexport'
9253         no_entry_flag=""
9254       else
9255         # If we're using GNU nm, then we don't want the "-C" option.
9256         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9257         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9258           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9259         else
9260           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'
9261         fi
9262         aix_use_runtimelinking=no
9263
9264         # Test if we are trying to use run time linking or normal
9265         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9266         # need to do runtime linking.
9267         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9268           for ld_flag in $LDFLAGS; do
9269           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9270             aix_use_runtimelinking=yes
9271             break
9272           fi
9273           done
9274           ;;
9275         esac
9276
9277         exp_sym_flag='-bexport'
9278         no_entry_flag='-bnoentry'
9279       fi
9280
9281       # When large executables or shared objects are built, AIX ld can
9282       # have problems creating the table of contents.  If linking a library
9283       # or program results in "error TOC overflow" add -mminimal-toc to
9284       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9285       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9286
9287       archive_cmds=''
9288       hardcode_direct=yes
9289       hardcode_direct_absolute=yes
9290       hardcode_libdir_separator=':'
9291       link_all_deplibs=yes
9292       file_list_spec='${wl}-f,'
9293
9294       if test "$GCC" = yes; then
9295         case $host_os in aix4.[012]|aix4.[012].*)
9296         # We only want to do this on AIX 4.2 and lower, the check
9297         # below for broken collect2 doesn't work under 4.3+
9298           collect2name=`${CC} -print-prog-name=collect2`
9299           if test -f "$collect2name" &&
9300            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9301           then
9302           # We have reworked collect2
9303           :
9304           else
9305           # We have old collect2
9306           hardcode_direct=unsupported
9307           # It fails to find uninstalled libraries when the uninstalled
9308           # path is not listed in the libpath.  Setting hardcode_minus_L
9309           # to unsupported forces relinking
9310           hardcode_minus_L=yes
9311           hardcode_libdir_flag_spec='-L$libdir'
9312           hardcode_libdir_separator=
9313           fi
9314           ;;
9315         esac
9316         shared_flag='-shared'
9317         if test "$aix_use_runtimelinking" = yes; then
9318           shared_flag="$shared_flag "'${wl}-G'
9319         fi
9320       else
9321         # not using gcc
9322         if test "$host_cpu" = ia64; then
9323         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9324         # chokes on -Wl,-G. The following line is correct:
9325           shared_flag='-G'
9326         else
9327           if test "$aix_use_runtimelinking" = yes; then
9328             shared_flag='${wl}-G'
9329           else
9330             shared_flag='${wl}-bM:SRE'
9331           fi
9332         fi
9333       fi
9334
9335       export_dynamic_flag_spec='${wl}-bexpall'
9336       # It seems that -bexpall does not export symbols beginning with
9337       # underscore (_), so it is better to generate a list of symbols to export.
9338       always_export_symbols=yes
9339       if test "$aix_use_runtimelinking" = yes; then
9340         # Warning - without using the other runtime loading flags (-brtl),
9341         # -berok will link without error, but may produce a broken library.
9342         allow_undefined_flag='-berok'
9343         # Determine the default libpath from the value encoded in an
9344         # empty executable.
9345         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h.  */
9347
9348 int
9349 main ()
9350 {
9351
9352   ;
9353   return 0;
9354 }
9355 _ACEOF
9356 if ac_fn_c_try_link "$LINENO"; then :
9357
9358 lt_aix_libpath_sed='
9359     /Import File Strings/,/^$/ {
9360         /^0/ {
9361             s/^0  *\(.*\)$/\1/
9362             p
9363         }
9364     }'
9365 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9366 # Check for a 64-bit object if we didn't find anything.
9367 if test -z "$aix_libpath"; then
9368   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9369 fi
9370 fi
9371 rm -f core conftest.err conftest.$ac_objext \
9372     conftest$ac_exeext conftest.$ac_ext
9373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9374
9375         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9376         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9377       else
9378         if test "$host_cpu" = ia64; then
9379           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9380           allow_undefined_flag="-z nodefs"
9381           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"
9382         else
9383          # Determine the default libpath from the value encoded in an
9384          # empty executable.
9385          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h.  */
9387
9388 int
9389 main ()
9390 {
9391
9392   ;
9393   return 0;
9394 }
9395 _ACEOF
9396 if ac_fn_c_try_link "$LINENO"; then :
9397
9398 lt_aix_libpath_sed='
9399     /Import File Strings/,/^$/ {
9400         /^0/ {
9401             s/^0  *\(.*\)$/\1/
9402             p
9403         }
9404     }'
9405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9406 # Check for a 64-bit object if we didn't find anything.
9407 if test -z "$aix_libpath"; then
9408   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9409 fi
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext \
9412     conftest$ac_exeext conftest.$ac_ext
9413 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9414
9415          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9416           # Warning - without using the other run time loading flags,
9417           # -berok will link without error, but may produce a broken library.
9418           no_undefined_flag=' ${wl}-bernotok'
9419           allow_undefined_flag=' ${wl}-berok'
9420           # Exported symbols can be pulled into shared objects from archives
9421           whole_archive_flag_spec='$convenience'
9422           archive_cmds_need_lc=yes
9423           # This is similar to how AIX traditionally builds its shared libraries.
9424           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'
9425         fi
9426       fi
9427       ;;
9428
9429     amigaos*)
9430       case $host_cpu in
9431       powerpc)
9432             # see comment about AmigaOS4 .so support
9433             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9434             archive_expsym_cmds=''
9435         ;;
9436       m68k)
9437             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)'
9438             hardcode_libdir_flag_spec='-L$libdir'
9439             hardcode_minus_L=yes
9440         ;;
9441       esac
9442       ;;
9443
9444     bsdi[45]*)
9445       export_dynamic_flag_spec=-rdynamic
9446       ;;
9447
9448     cygwin* | mingw* | pw32* | cegcc*)
9449       # When not using gcc, we currently assume that we are using
9450       # Microsoft Visual C++.
9451       # hardcode_libdir_flag_spec is actually meaningless, as there is
9452       # no search path for DLLs.
9453       hardcode_libdir_flag_spec=' '
9454       allow_undefined_flag=unsupported
9455       # Tell ltmain to make .lib files, not .a files.
9456       libext=lib
9457       # Tell ltmain to make .dll files, not .so files.
9458       shrext_cmds=".dll"
9459       # FIXME: Setting linknames here is a bad hack.
9460       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9461       # The linker will automatically build a .lib file if we build a DLL.
9462       old_archive_from_new_cmds='true'
9463       # FIXME: Should let the user specify the lib program.
9464       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9465       fix_srcfile_path='`cygpath -w "$srcfile"`'
9466       enable_shared_with_static_runtimes=yes
9467       ;;
9468
9469     darwin* | rhapsody*)
9470
9471
9472   archive_cmds_need_lc=no
9473   hardcode_direct=no
9474   hardcode_automatic=yes
9475   hardcode_shlibpath_var=unsupported
9476   whole_archive_flag_spec=''
9477   link_all_deplibs=yes
9478   allow_undefined_flag="$_lt_dar_allow_undefined"
9479   case $cc_basename in
9480      ifort*) _lt_dar_can_shared=yes ;;
9481      *) _lt_dar_can_shared=$GCC ;;
9482   esac
9483   if test "$_lt_dar_can_shared" = "yes"; then
9484     output_verbose_link_cmd=echo
9485     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9486     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9487     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}"
9488     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}"
9489
9490   else
9491   ld_shlibs=no
9492   fi
9493
9494       ;;
9495
9496     dgux*)
9497       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9498       hardcode_libdir_flag_spec='-L$libdir'
9499       hardcode_shlibpath_var=no
9500       ;;
9501
9502     freebsd1*)
9503       ld_shlibs=no
9504       ;;
9505
9506     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9507     # support.  Future versions do this automatically, but an explicit c++rt0.o
9508     # does not break anything, and helps significantly (at the cost of a little
9509     # extra space).
9510     freebsd2.2*)
9511       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9512       hardcode_libdir_flag_spec='-R$libdir'
9513       hardcode_direct=yes
9514       hardcode_shlibpath_var=no
9515       ;;
9516
9517     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9518     freebsd2*)
9519       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9520       hardcode_direct=yes
9521       hardcode_minus_L=yes
9522       hardcode_shlibpath_var=no
9523       ;;
9524
9525     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9526     freebsd* | dragonfly*)
9527       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9528       hardcode_libdir_flag_spec='-R$libdir'
9529       hardcode_direct=yes
9530       hardcode_shlibpath_var=no
9531       ;;
9532
9533     hpux9*)
9534       if test "$GCC" = yes; then
9535         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9536       else
9537         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'
9538       fi
9539       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9540       hardcode_libdir_separator=:
9541       hardcode_direct=yes
9542
9543       # hardcode_minus_L: Not really in the search PATH,
9544       # but as the default location of the library.
9545       hardcode_minus_L=yes
9546       export_dynamic_flag_spec='${wl}-E'
9547       ;;
9548
9549     hpux10*)
9550       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9551         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9552       else
9553         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9554       fi
9555       if test "$with_gnu_ld" = no; then
9556         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9557         hardcode_libdir_flag_spec_ld='+b $libdir'
9558         hardcode_libdir_separator=:
9559         hardcode_direct=yes
9560         hardcode_direct_absolute=yes
9561         export_dynamic_flag_spec='${wl}-E'
9562         # hardcode_minus_L: Not really in the search PATH,
9563         # but as the default location of the library.
9564         hardcode_minus_L=yes
9565       fi
9566       ;;
9567
9568     hpux11*)
9569       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9570         case $host_cpu in
9571         hppa*64*)
9572           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9573           ;;
9574         ia64*)
9575           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9576           ;;
9577         *)
9578           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9579           ;;
9580         esac
9581       else
9582         case $host_cpu in
9583         hppa*64*)
9584           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9585           ;;
9586         ia64*)
9587           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9588           ;;
9589         *)
9590           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9591           ;;
9592         esac
9593       fi
9594       if test "$with_gnu_ld" = no; then
9595         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9596         hardcode_libdir_separator=:
9597
9598         case $host_cpu in
9599         hppa*64*|ia64*)
9600           hardcode_direct=no
9601           hardcode_shlibpath_var=no
9602           ;;
9603         *)
9604           hardcode_direct=yes
9605           hardcode_direct_absolute=yes
9606           export_dynamic_flag_spec='${wl}-E'
9607
9608           # hardcode_minus_L: Not really in the search PATH,
9609           # but as the default location of the library.
9610           hardcode_minus_L=yes
9611           ;;
9612         esac
9613       fi
9614       ;;
9615
9616     irix5* | irix6* | nonstopux*)
9617       if test "$GCC" = yes; then
9618         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9619         # Try to use the -exported_symbol ld option, if it does not
9620         # work, assume that -exports_file does not work either and
9621         # implicitly export all symbols.
9622         save_LDFLAGS="$LDFLAGS"
9623         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9624         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h.  */
9626 int foo(void) {}
9627 _ACEOF
9628 if ac_fn_c_try_link "$LINENO"; then :
9629   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9630
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext \
9633     conftest$ac_exeext conftest.$ac_ext
9634         LDFLAGS="$save_LDFLAGS"
9635       else
9636         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9637         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9638       fi
9639       archive_cmds_need_lc='no'
9640       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9641       hardcode_libdir_separator=:
9642       inherit_rpath=yes
9643       link_all_deplibs=yes
9644       ;;
9645
9646     netbsd*)
9647       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9648         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9649       else
9650         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9651       fi
9652       hardcode_libdir_flag_spec='-R$libdir'
9653       hardcode_direct=yes
9654       hardcode_shlibpath_var=no
9655       ;;
9656
9657     newsos6)
9658       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659       hardcode_direct=yes
9660       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9661       hardcode_libdir_separator=:
9662       hardcode_shlibpath_var=no
9663       ;;
9664
9665     *nto* | *qnx*)
9666       ;;
9667
9668     openbsd*)
9669       if test -f /usr/libexec/ld.so; then
9670         hardcode_direct=yes
9671         hardcode_shlibpath_var=no
9672         hardcode_direct_absolute=yes
9673         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9674           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9675           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9676           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9677           export_dynamic_flag_spec='${wl}-E'
9678         else
9679           case $host_os in
9680            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9681              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9682              hardcode_libdir_flag_spec='-R$libdir'
9683              ;;
9684            *)
9685              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9686              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9687              ;;
9688           esac
9689         fi
9690       else
9691         ld_shlibs=no
9692       fi
9693       ;;
9694
9695     os2*)
9696       hardcode_libdir_flag_spec='-L$libdir'
9697       hardcode_minus_L=yes
9698       allow_undefined_flag=unsupported
9699       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'
9700       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9701       ;;
9702
9703     osf3*)
9704       if test "$GCC" = yes; then
9705         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9706         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9707       else
9708         allow_undefined_flag=' -expect_unresolved \*'
9709         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9710       fi
9711       archive_cmds_need_lc='no'
9712       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9713       hardcode_libdir_separator=:
9714       ;;
9715
9716     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9717       if test "$GCC" = yes; then
9718         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9719         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9720         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9721       else
9722         allow_undefined_flag=' -expect_unresolved \*'
9723         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9724         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~
9725         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9726
9727         # Both c and cxx compiler support -rpath directly
9728         hardcode_libdir_flag_spec='-rpath $libdir'
9729       fi
9730       archive_cmds_need_lc='no'
9731       hardcode_libdir_separator=:
9732       ;;
9733
9734     solaris*)
9735       no_undefined_flag=' -z defs'
9736       if test "$GCC" = yes; then
9737         wlarc='${wl}'
9738         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9739         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9740           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9741       else
9742         case `$CC -V 2>&1` in
9743         *"Compilers 5.0"*)
9744           wlarc=''
9745           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9747           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9748           ;;
9749         *)
9750           wlarc='${wl}'
9751           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9752           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9753           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9754           ;;
9755         esac
9756       fi
9757       hardcode_libdir_flag_spec='-R$libdir'
9758       hardcode_shlibpath_var=no
9759       case $host_os in
9760       solaris2.[0-5] | solaris2.[0-5].*) ;;
9761       *)
9762         # The compiler driver will combine and reorder linker options,
9763         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9764         # but is careful enough not to reorder.
9765         # Supported since Solaris 2.6 (maybe 2.5.1?)
9766         if test "$GCC" = yes; then
9767           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9768         else
9769           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9770         fi
9771         ;;
9772       esac
9773       link_all_deplibs=yes
9774       ;;
9775
9776     sunos4*)
9777       if test "x$host_vendor" = xsequent; then
9778         # Use $CC to link under sequent, because it throws in some extra .o
9779         # files that make .init and .fini sections work.
9780         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9781       else
9782         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9783       fi
9784       hardcode_libdir_flag_spec='-L$libdir'
9785       hardcode_direct=yes
9786       hardcode_minus_L=yes
9787       hardcode_shlibpath_var=no
9788       ;;
9789
9790     sysv4)
9791       case $host_vendor in
9792         sni)
9793           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794           hardcode_direct=yes # is this really true???
9795         ;;
9796         siemens)
9797           ## LD is ld it makes a PLAMLIB
9798           ## CC just makes a GrossModule.
9799           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9800           reload_cmds='$CC -r -o $output$reload_objs'
9801           hardcode_direct=no
9802         ;;
9803         motorola)
9804           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9806         ;;
9807       esac
9808       runpath_var='LD_RUN_PATH'
9809       hardcode_shlibpath_var=no
9810       ;;
9811
9812     sysv4.3*)
9813       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9814       hardcode_shlibpath_var=no
9815       export_dynamic_flag_spec='-Bexport'
9816       ;;
9817
9818     sysv4*MP*)
9819       if test -d /usr/nec; then
9820         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9821         hardcode_shlibpath_var=no
9822         runpath_var=LD_RUN_PATH
9823         hardcode_runpath_var=yes
9824         ld_shlibs=yes
9825       fi
9826       ;;
9827
9828     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9829       no_undefined_flag='${wl}-z,text'
9830       archive_cmds_need_lc=no
9831       hardcode_shlibpath_var=no
9832       runpath_var='LD_RUN_PATH'
9833
9834       if test "$GCC" = yes; then
9835         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9836         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9837       else
9838         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9840       fi
9841       ;;
9842
9843     sysv5* | sco3.2v5* | sco5v6*)
9844       # Note: We can NOT use -z defs as we might desire, because we do not
9845       # link with -lc, and that would cause any symbols used from libc to
9846       # always be unresolved, which means just about no library would
9847       # ever link correctly.  If we're not using GNU ld we use -z text
9848       # though, which does catch some bad symbols but isn't as heavy-handed
9849       # as -z defs.
9850       no_undefined_flag='${wl}-z,text'
9851       allow_undefined_flag='${wl}-z,nodefs'
9852       archive_cmds_need_lc=no
9853       hardcode_shlibpath_var=no
9854       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9855       hardcode_libdir_separator=':'
9856       link_all_deplibs=yes
9857       export_dynamic_flag_spec='${wl}-Bexport'
9858       runpath_var='LD_RUN_PATH'
9859
9860       if test "$GCC" = yes; then
9861         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9862         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9863       else
9864         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9865         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9866       fi
9867       ;;
9868
9869     uts4*)
9870       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9871       hardcode_libdir_flag_spec='-L$libdir'
9872       hardcode_shlibpath_var=no
9873       ;;
9874
9875     *)
9876       ld_shlibs=no
9877       ;;
9878     esac
9879
9880     if test x$host_vendor = xsni; then
9881       case $host in
9882       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9883         export_dynamic_flag_spec='${wl}-Blargedynsym'
9884         ;;
9885       esac
9886     fi
9887   fi
9888
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9890 $as_echo "$ld_shlibs" >&6; }
9891 test "$ld_shlibs" = no && can_build_shared=no
9892
9893 with_gnu_ld=$with_gnu_ld
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909 #
9910 # Do we need to explicitly link libc?
9911 #
9912 case "x$archive_cmds_need_lc" in
9913 x|xyes)
9914   # Assume -lc should be added
9915   archive_cmds_need_lc=yes
9916
9917   if test "$enable_shared" = yes && test "$GCC" = yes; then
9918     case $archive_cmds in
9919     *'~'*)
9920       # FIXME: we may have to deal with multi-command sequences.
9921       ;;
9922     '$CC '*)
9923       # Test whether the compiler implicitly links with -lc since on some
9924       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9925       # to ld, don't add -lc before -lgcc.
9926       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9927 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9928       $RM conftest*
9929       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9930
9931       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9932   (eval $ac_compile) 2>&5
9933   ac_status=$?
9934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9935   test $ac_status = 0; } 2>conftest.err; then
9936         soname=conftest
9937         lib=conftest
9938         libobjs=conftest.$ac_objext
9939         deplibs=
9940         wl=$lt_prog_compiler_wl
9941         pic_flag=$lt_prog_compiler_pic
9942         compiler_flags=-v
9943         linker_flags=-v
9944         verstring=
9945         output_objdir=.
9946         libname=conftest
9947         lt_save_allow_undefined_flag=$allow_undefined_flag
9948         allow_undefined_flag=
9949         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9950   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9951   ac_status=$?
9952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9953   test $ac_status = 0; }
9954         then
9955           archive_cmds_need_lc=no
9956         else
9957           archive_cmds_need_lc=yes
9958         fi
9959         allow_undefined_flag=$lt_save_allow_undefined_flag
9960       else
9961         cat conftest.err 1>&5
9962       fi
9963       $RM conftest*
9964       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9965 $as_echo "$archive_cmds_need_lc" >&6; }
9966       ;;
9967     esac
9968   fi
9969   ;;
9970 esac
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10129 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10130
10131 if test "$GCC" = yes; then
10132   case $host_os in
10133     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10134     *) lt_awk_arg="/^libraries:/" ;;
10135   esac
10136   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10137   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10138     # if the path contains ";" then we assume it to be the separator
10139     # otherwise default to the standard path separator (i.e. ":") - it is
10140     # assumed that no part of a normal pathname contains ";" but that should
10141     # okay in the real world where ";" in dirpaths is itself problematic.
10142     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10143   else
10144     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10145   fi
10146   # Ok, now we have the path, separated by spaces, we can step through it
10147   # and add multilib dir if necessary.
10148   lt_tmp_lt_search_path_spec=
10149   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10150   for lt_sys_path in $lt_search_path_spec; do
10151     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10152       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10153     else
10154       test -d "$lt_sys_path" && \
10155         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10156     fi
10157   done
10158   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10159 BEGIN {RS=" "; FS="/|\n";} {
10160   lt_foo="";
10161   lt_count=0;
10162   for (lt_i = NF; lt_i > 0; lt_i--) {
10163     if ($lt_i != "" && $lt_i != ".") {
10164       if ($lt_i == "..") {
10165         lt_count++;
10166       } else {
10167         if (lt_count == 0) {
10168           lt_foo="/" $lt_i lt_foo;
10169         } else {
10170           lt_count--;
10171         }
10172       }
10173     }
10174   }
10175   if (lt_foo != "") { lt_freq[lt_foo]++; }
10176   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10177 }'`
10178   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10179 else
10180   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10181 fi
10182 library_names_spec=
10183 libname_spec='lib$name'
10184 soname_spec=
10185 shrext_cmds=".so"
10186 postinstall_cmds=
10187 postuninstall_cmds=
10188 finish_cmds=
10189 finish_eval=
10190 shlibpath_var=
10191 shlibpath_overrides_runpath=unknown
10192 version_type=none
10193 dynamic_linker="$host_os ld.so"
10194 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10195 need_lib_prefix=unknown
10196 hardcode_into_libs=no
10197
10198 # when you set need_version to no, make sure it does not cause -set_version
10199 # flags to be left without arguments
10200 need_version=unknown
10201
10202 case $host_os in
10203 aix3*)
10204   version_type=linux
10205   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10206   shlibpath_var=LIBPATH
10207
10208   # AIX 3 has no versioning support, so we append a major version to the name.
10209   soname_spec='${libname}${release}${shared_ext}$major'
10210   ;;
10211
10212 aix[4-9]*)
10213   version_type=linux
10214   need_lib_prefix=no
10215   need_version=no
10216   hardcode_into_libs=yes
10217   if test "$host_cpu" = ia64; then
10218     # AIX 5 supports IA64
10219     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10220     shlibpath_var=LD_LIBRARY_PATH
10221   else
10222     # With GCC up to 2.95.x, collect2 would create an import file
10223     # for dependence libraries.  The import file would start with
10224     # the line `#! .'.  This would cause the generated library to
10225     # depend on `.', always an invalid library.  This was fixed in
10226     # development snapshots of GCC prior to 3.0.
10227     case $host_os in
10228       aix4 | aix4.[01] | aix4.[01].*)
10229       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10230            echo ' yes '
10231            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10232         :
10233       else
10234         can_build_shared=no
10235       fi
10236       ;;
10237     esac
10238     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10239     # soname into executable. Probably we can add versioning support to
10240     # collect2, so additional links can be useful in future.
10241     if test "$aix_use_runtimelinking" = yes; then
10242       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10243       # instead of lib<name>.a to let people know that these are not
10244       # typical AIX shared libraries.
10245       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246     else
10247       # We preserve .a as extension for shared libraries through AIX4.2
10248       # and later when we are not doing run time linking.
10249       library_names_spec='${libname}${release}.a $libname.a'
10250       soname_spec='${libname}${release}${shared_ext}$major'
10251     fi
10252     shlibpath_var=LIBPATH
10253   fi
10254   ;;
10255
10256 amigaos*)
10257   case $host_cpu in
10258   powerpc)
10259     # Since July 2007 AmigaOS4 officially supports .so libraries.
10260     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262     ;;
10263   m68k)
10264     library_names_spec='$libname.ixlibrary $libname.a'
10265     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10266     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10267     ;;
10268   esac
10269   ;;
10270
10271 beos*)
10272   library_names_spec='${libname}${shared_ext}'
10273   dynamic_linker="$host_os ld.so"
10274   shlibpath_var=LIBRARY_PATH
10275   ;;
10276
10277 bsdi[45]*)
10278   version_type=linux
10279   need_version=no
10280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281   soname_spec='${libname}${release}${shared_ext}$major'
10282   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10283   shlibpath_var=LD_LIBRARY_PATH
10284   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10285   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10286   # the default ld.so.conf also contains /usr/contrib/lib and
10287   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10288   # libtool to hard-code these into programs
10289   ;;
10290
10291 cygwin* | mingw* | pw32* | cegcc*)
10292   version_type=windows
10293   shrext_cmds=".dll"
10294   need_version=no
10295   need_lib_prefix=no
10296
10297   case $GCC,$host_os in
10298   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10299     library_names_spec='$libname.dll.a'
10300     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10301     postinstall_cmds='base_file=`basename \${file}`~
10302       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10303       dldir=$destdir/`dirname \$dlpath`~
10304       test -d \$dldir || mkdir -p \$dldir~
10305       $install_prog $dir/$dlname \$dldir/$dlname~
10306       chmod a+x \$dldir/$dlname~
10307       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10308         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10309       fi'
10310     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10311       dlpath=$dir/\$dldll~
10312        $RM \$dlpath'
10313     shlibpath_overrides_runpath=yes
10314
10315     case $host_os in
10316     cygwin*)
10317       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10318       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10319       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10320       ;;
10321     mingw* | cegcc*)
10322       # MinGW DLLs use traditional 'lib' prefix
10323       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10324       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10325       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10326         # It is most probably a Windows format PATH printed by
10327         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10328         # path with ; separators, and with drive letters. We can handle the
10329         # drive letters (cygwin fileutils understands them), so leave them,
10330         # especially as we might pass files found there to a mingw objdump,
10331         # which wouldn't understand a cygwinified path. Ahh.
10332         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10333       else
10334         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10335       fi
10336       ;;
10337     pw32*)
10338       # pw32 DLLs use 'pw' prefix rather than 'lib'
10339       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10340       ;;
10341     esac
10342     ;;
10343
10344   *)
10345     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10346     ;;
10347   esac
10348   dynamic_linker='Win32 ld.exe'
10349   # FIXME: first we should search . and the directory the executable is in
10350   shlibpath_var=PATH
10351   ;;
10352
10353 darwin* | rhapsody*)
10354   dynamic_linker="$host_os dyld"
10355   version_type=darwin
10356   need_lib_prefix=no
10357   need_version=no
10358   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10359   soname_spec='${libname}${release}${major}$shared_ext'
10360   shlibpath_overrides_runpath=yes
10361   shlibpath_var=DYLD_LIBRARY_PATH
10362   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10363
10364   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10365   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10366   ;;
10367
10368 dgux*)
10369   version_type=linux
10370   need_lib_prefix=no
10371   need_version=no
10372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10373   soname_spec='${libname}${release}${shared_ext}$major'
10374   shlibpath_var=LD_LIBRARY_PATH
10375   ;;
10376
10377 freebsd1*)
10378   dynamic_linker=no
10379   ;;
10380
10381 freebsd* | dragonfly*)
10382   # DragonFly does not have aout.  When/if they implement a new
10383   # versioning mechanism, adjust this.
10384   if test -x /usr/bin/objformat; then
10385     objformat=`/usr/bin/objformat`
10386   else
10387     case $host_os in
10388     freebsd[123]*) objformat=aout ;;
10389     *) objformat=elf ;;
10390     esac
10391   fi
10392   version_type=freebsd-$objformat
10393   case $version_type in
10394     freebsd-elf*)
10395       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10396       need_version=no
10397       need_lib_prefix=no
10398       ;;
10399     freebsd-*)
10400       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10401       need_version=yes
10402       ;;
10403   esac
10404   shlibpath_var=LD_LIBRARY_PATH
10405   case $host_os in
10406   freebsd2*)
10407     shlibpath_overrides_runpath=yes
10408     ;;
10409   freebsd3.[01]* | freebsdelf3.[01]*)
10410     shlibpath_overrides_runpath=yes
10411     hardcode_into_libs=yes
10412     ;;
10413   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10414   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10415     shlibpath_overrides_runpath=no
10416     hardcode_into_libs=yes
10417     ;;
10418   *) # from 4.6 on, and DragonFly
10419     shlibpath_overrides_runpath=yes
10420     hardcode_into_libs=yes
10421     ;;
10422   esac
10423   ;;
10424
10425 gnu*)
10426   version_type=linux
10427   need_lib_prefix=no
10428   need_version=no
10429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10430   soname_spec='${libname}${release}${shared_ext}$major'
10431   shlibpath_var=LD_LIBRARY_PATH
10432   hardcode_into_libs=yes
10433   ;;
10434
10435 hpux9* | hpux10* | hpux11*)
10436   # Give a soname corresponding to the major version so that dld.sl refuses to
10437   # link against other versions.
10438   version_type=sunos
10439   need_lib_prefix=no
10440   need_version=no
10441   case $host_cpu in
10442   ia64*)
10443     shrext_cmds='.so'
10444     hardcode_into_libs=yes
10445     dynamic_linker="$host_os dld.so"
10446     shlibpath_var=LD_LIBRARY_PATH
10447     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10448     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449     soname_spec='${libname}${release}${shared_ext}$major'
10450     if test "X$HPUX_IA64_MODE" = X32; then
10451       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10452     else
10453       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10454     fi
10455     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10456     ;;
10457   hppa*64*)
10458     shrext_cmds='.sl'
10459     hardcode_into_libs=yes
10460     dynamic_linker="$host_os dld.sl"
10461     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10462     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464     soname_spec='${libname}${release}${shared_ext}$major'
10465     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10466     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10467     ;;
10468   *)
10469     shrext_cmds='.sl'
10470     dynamic_linker="$host_os dld.sl"
10471     shlibpath_var=SHLIB_PATH
10472     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474     soname_spec='${libname}${release}${shared_ext}$major'
10475     ;;
10476   esac
10477   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10478   postinstall_cmds='chmod 555 $lib'
10479   ;;
10480
10481 interix[3-9]*)
10482   version_type=linux
10483   need_lib_prefix=no
10484   need_version=no
10485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10486   soname_spec='${libname}${release}${shared_ext}$major'
10487   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10488   shlibpath_var=LD_LIBRARY_PATH
10489   shlibpath_overrides_runpath=no
10490   hardcode_into_libs=yes
10491   ;;
10492
10493 irix5* | irix6* | nonstopux*)
10494   case $host_os in
10495     nonstopux*) version_type=nonstopux ;;
10496     *)
10497         if test "$lt_cv_prog_gnu_ld" = yes; then
10498                 version_type=linux
10499         else
10500                 version_type=irix
10501         fi ;;
10502   esac
10503   need_lib_prefix=no
10504   need_version=no
10505   soname_spec='${libname}${release}${shared_ext}$major'
10506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10507   case $host_os in
10508   irix5* | nonstopux*)
10509     libsuff= shlibsuff=
10510     ;;
10511   *)
10512     case $LD in # libtool.m4 will add one of these switches to LD
10513     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10514       libsuff= shlibsuff= libmagic=32-bit;;
10515     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10516       libsuff=32 shlibsuff=N32 libmagic=N32;;
10517     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10518       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10519     *) libsuff= shlibsuff= libmagic=never-match;;
10520     esac
10521     ;;
10522   esac
10523   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10524   shlibpath_overrides_runpath=no
10525   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10526   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10527   hardcode_into_libs=yes
10528   ;;
10529
10530 # No shared lib support for Linux oldld, aout, or coff.
10531 linux*oldld* | linux*aout* | linux*coff*)
10532   dynamic_linker=no
10533   ;;
10534
10535 # This must be Linux ELF.
10536 linux* | k*bsd*-gnu)
10537   version_type=linux
10538   need_lib_prefix=no
10539   need_version=no
10540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541   soname_spec='${libname}${release}${shared_ext}$major'
10542   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10543   shlibpath_var=LD_LIBRARY_PATH
10544   shlibpath_overrides_runpath=no
10545   # Some binutils ld are patched to set DT_RUNPATH
10546   save_LDFLAGS=$LDFLAGS
10547   save_libdir=$libdir
10548   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10549        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h.  */
10552
10553 int
10554 main ()
10555 {
10556
10557   ;
10558   return 0;
10559 }
10560 _ACEOF
10561 if ac_fn_c_try_link "$LINENO"; then :
10562   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10563   shlibpath_overrides_runpath=yes
10564 fi
10565 fi
10566 rm -f core conftest.err conftest.$ac_objext \
10567     conftest$ac_exeext conftest.$ac_ext
10568   LDFLAGS=$save_LDFLAGS
10569   libdir=$save_libdir
10570
10571   # This implies no fast_install, which is unacceptable.
10572   # Some rework will be needed to allow for fast_install
10573   # before this can be enabled.
10574   hardcode_into_libs=yes
10575
10576   # Append ld.so.conf contents to the search path
10577   if test -f /etc/ld.so.conf; then
10578     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;/^$/d' | tr '\n' ' '`
10579     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10580   fi
10581
10582   # We used to test for /lib/ld.so.1 and disable shared libraries on
10583   # powerpc, because MkLinux only supported shared libraries with the
10584   # GNU dynamic linker.  Since this was broken with cross compilers,
10585   # most powerpc-linux boxes support dynamic linking these days and
10586   # people can always --disable-shared, the test was removed, and we
10587   # assume the GNU/Linux dynamic linker is in use.
10588   dynamic_linker='GNU/Linux ld.so'
10589   ;;
10590
10591 netbsd*)
10592   version_type=sunos
10593   need_lib_prefix=no
10594   need_version=no
10595   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10596     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10597     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10598     dynamic_linker='NetBSD (a.out) ld.so'
10599   else
10600     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10601     soname_spec='${libname}${release}${shared_ext}$major'
10602     dynamic_linker='NetBSD ld.elf_so'
10603   fi
10604   shlibpath_var=LD_LIBRARY_PATH
10605   shlibpath_overrides_runpath=yes
10606   hardcode_into_libs=yes
10607   ;;
10608
10609 newsos6)
10610   version_type=linux
10611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612   shlibpath_var=LD_LIBRARY_PATH
10613   shlibpath_overrides_runpath=yes
10614   ;;
10615
10616 *nto* | *qnx*)
10617   version_type=qnx
10618   need_lib_prefix=no
10619   need_version=no
10620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621   soname_spec='${libname}${release}${shared_ext}$major'
10622   shlibpath_var=LD_LIBRARY_PATH
10623   shlibpath_overrides_runpath=no
10624   hardcode_into_libs=yes
10625   dynamic_linker='ldqnx.so'
10626   ;;
10627
10628 openbsd*)
10629   version_type=sunos
10630   sys_lib_dlsearch_path_spec="/usr/lib"
10631   need_lib_prefix=no
10632   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10633   case $host_os in
10634     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10635     *)                          need_version=no  ;;
10636   esac
10637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10638   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10639   shlibpath_var=LD_LIBRARY_PATH
10640   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10641     case $host_os in
10642       openbsd2.[89] | openbsd2.[89].*)
10643         shlibpath_overrides_runpath=no
10644         ;;
10645       *)
10646         shlibpath_overrides_runpath=yes
10647         ;;
10648       esac
10649   else
10650     shlibpath_overrides_runpath=yes
10651   fi
10652   ;;
10653
10654 os2*)
10655   libname_spec='$name'
10656   shrext_cmds=".dll"
10657   need_lib_prefix=no
10658   library_names_spec='$libname${shared_ext} $libname.a'
10659   dynamic_linker='OS/2 ld.exe'
10660   shlibpath_var=LIBPATH
10661   ;;
10662
10663 osf3* | osf4* | osf5*)
10664   version_type=osf
10665   need_lib_prefix=no
10666   need_version=no
10667   soname_spec='${libname}${release}${shared_ext}$major'
10668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669   shlibpath_var=LD_LIBRARY_PATH
10670   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10671   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10672   ;;
10673
10674 rdos*)
10675   dynamic_linker=no
10676   ;;
10677
10678 solaris*)
10679   version_type=linux
10680   need_lib_prefix=no
10681   need_version=no
10682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10683   soname_spec='${libname}${release}${shared_ext}$major'
10684   shlibpath_var=LD_LIBRARY_PATH
10685   shlibpath_overrides_runpath=yes
10686   hardcode_into_libs=yes
10687   # ldd complains unless libraries are executable
10688   postinstall_cmds='chmod +x $lib'
10689   ;;
10690
10691 sunos4*)
10692   version_type=sunos
10693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10694   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10695   shlibpath_var=LD_LIBRARY_PATH
10696   shlibpath_overrides_runpath=yes
10697   if test "$with_gnu_ld" = yes; then
10698     need_lib_prefix=no
10699   fi
10700   need_version=yes
10701   ;;
10702
10703 sysv4 | sysv4.3*)
10704   version_type=linux
10705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706   soname_spec='${libname}${release}${shared_ext}$major'
10707   shlibpath_var=LD_LIBRARY_PATH
10708   case $host_vendor in
10709     sni)
10710       shlibpath_overrides_runpath=no
10711       need_lib_prefix=no
10712       runpath_var=LD_RUN_PATH
10713       ;;
10714     siemens)
10715       need_lib_prefix=no
10716       ;;
10717     motorola)
10718       need_lib_prefix=no
10719       need_version=no
10720       shlibpath_overrides_runpath=no
10721       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10722       ;;
10723   esac
10724   ;;
10725
10726 sysv4*MP*)
10727   if test -d /usr/nec ;then
10728     version_type=linux
10729     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10730     soname_spec='$libname${shared_ext}.$major'
10731     shlibpath_var=LD_LIBRARY_PATH
10732   fi
10733   ;;
10734
10735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10736   version_type=freebsd-elf
10737   need_lib_prefix=no
10738   need_version=no
10739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10740   soname_spec='${libname}${release}${shared_ext}$major'
10741   shlibpath_var=LD_LIBRARY_PATH
10742   shlibpath_overrides_runpath=yes
10743   hardcode_into_libs=yes
10744   if test "$with_gnu_ld" = yes; then
10745     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10746   else
10747     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10748     case $host_os in
10749       sco3.2v5*)
10750         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10751         ;;
10752     esac
10753   fi
10754   sys_lib_dlsearch_path_spec='/usr/lib'
10755   ;;
10756
10757 tpf*)
10758   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10759   version_type=linux
10760   need_lib_prefix=no
10761   need_version=no
10762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763   shlibpath_var=LD_LIBRARY_PATH
10764   shlibpath_overrides_runpath=no
10765   hardcode_into_libs=yes
10766   ;;
10767
10768 uts4*)
10769   version_type=linux
10770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771   soname_spec='${libname}${release}${shared_ext}$major'
10772   shlibpath_var=LD_LIBRARY_PATH
10773   ;;
10774
10775 *)
10776   dynamic_linker=no
10777   ;;
10778 esac
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10780 $as_echo "$dynamic_linker" >&6; }
10781 test "$dynamic_linker" = no && can_build_shared=no
10782
10783 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10784 if test "$GCC" = yes; then
10785   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10786 fi
10787
10788 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10789   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10790 fi
10791 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10792   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10793 fi
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10882 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10883 hardcode_action=
10884 if test -n "$hardcode_libdir_flag_spec" ||
10885    test -n "$runpath_var" ||
10886    test "X$hardcode_automatic" = "Xyes" ; then
10887
10888   # We can hardcode non-existent directories.
10889   if test "$hardcode_direct" != no &&
10890      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10891      # have to relink, otherwise we might link with an installed library
10892      # when we should be linking with a yet-to-be-installed one
10893      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10894      test "$hardcode_minus_L" != no; then
10895     # Linking always hardcodes the temporary library directory.
10896     hardcode_action=relink
10897   else
10898     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10899     hardcode_action=immediate
10900   fi
10901 else
10902   # We cannot hardcode anything, or else we can only hardcode existing
10903   # directories.
10904   hardcode_action=unsupported
10905 fi
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10907 $as_echo "$hardcode_action" >&6; }
10908
10909 if test "$hardcode_action" = relink ||
10910    test "$inherit_rpath" = yes; then
10911   # Fast installation is not supported
10912   enable_fast_install=no
10913 elif test "$shlibpath_overrides_runpath" = yes ||
10914      test "$enable_shared" = no; then
10915   # Fast installation is not necessary
10916   enable_fast_install=needless
10917 fi
10918
10919
10920
10921
10922
10923
10924   if test "x$enable_dlopen" != xyes; then
10925   enable_dlopen=unknown
10926   enable_dlopen_self=unknown
10927   enable_dlopen_self_static=unknown
10928 else
10929   lt_cv_dlopen=no
10930   lt_cv_dlopen_libs=
10931
10932   case $host_os in
10933   beos*)
10934     lt_cv_dlopen="load_add_on"
10935     lt_cv_dlopen_libs=
10936     lt_cv_dlopen_self=yes
10937     ;;
10938
10939   mingw* | pw32* | cegcc*)
10940     lt_cv_dlopen="LoadLibrary"
10941     lt_cv_dlopen_libs=
10942     ;;
10943
10944   cygwin*)
10945     lt_cv_dlopen="dlopen"
10946     lt_cv_dlopen_libs=
10947     ;;
10948
10949   darwin*)
10950   # if libdl is installed we need to link against it
10951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10953 if ${ac_cv_lib_dl_dlopen+:} false; then :
10954   $as_echo_n "(cached) " >&6
10955 else
10956   ac_check_lib_save_LIBS=$LIBS
10957 LIBS="-ldl  $LIBS"
10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h.  */
10960
10961 /* Override any GCC internal prototype to avoid an error.
10962    Use char because int might match the return type of a GCC
10963    builtin and then its argument prototype would still apply.  */
10964 #ifdef __cplusplus
10965 extern "C"
10966 #endif
10967 char dlopen ();
10968 int
10969 main ()
10970 {
10971 return dlopen ();
10972   ;
10973   return 0;
10974 }
10975 _ACEOF
10976 if ac_fn_c_try_link "$LINENO"; then :
10977   ac_cv_lib_dl_dlopen=yes
10978 else
10979   ac_cv_lib_dl_dlopen=no
10980 fi
10981 rm -f core conftest.err conftest.$ac_objext \
10982     conftest$ac_exeext conftest.$ac_ext
10983 LIBS=$ac_check_lib_save_LIBS
10984 fi
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10987 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10988   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10989 else
10990
10991     lt_cv_dlopen="dyld"
10992     lt_cv_dlopen_libs=
10993     lt_cv_dlopen_self=yes
10994
10995 fi
10996
10997     ;;
10998
10999   *)
11000     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11001 if test "x$ac_cv_func_shl_load" = xyes; then :
11002   lt_cv_dlopen="shl_load"
11003 else
11004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11005 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11006 if ${ac_cv_lib_dld_shl_load+:} false; then :
11007   $as_echo_n "(cached) " >&6
11008 else
11009   ac_check_lib_save_LIBS=$LIBS
11010 LIBS="-ldld  $LIBS"
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h.  */
11013
11014 /* Override any GCC internal prototype to avoid an error.
11015    Use char because int might match the return type of a GCC
11016    builtin and then its argument prototype would still apply.  */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 char shl_load ();
11021 int
11022 main ()
11023 {
11024 return shl_load ();
11025   ;
11026   return 0;
11027 }
11028 _ACEOF
11029 if ac_fn_c_try_link "$LINENO"; then :
11030   ac_cv_lib_dld_shl_load=yes
11031 else
11032   ac_cv_lib_dld_shl_load=no
11033 fi
11034 rm -f core conftest.err conftest.$ac_objext \
11035     conftest$ac_exeext conftest.$ac_ext
11036 LIBS=$ac_check_lib_save_LIBS
11037 fi
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11039 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11040 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11041   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11042 else
11043   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11044 if test "x$ac_cv_func_dlopen" = xyes; then :
11045   lt_cv_dlopen="dlopen"
11046 else
11047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11048 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11049 if ${ac_cv_lib_dl_dlopen+:} false; then :
11050   $as_echo_n "(cached) " >&6
11051 else
11052   ac_check_lib_save_LIBS=$LIBS
11053 LIBS="-ldl  $LIBS"
11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h.  */
11056
11057 /* Override any GCC internal prototype to avoid an error.
11058    Use char because int might match the return type of a GCC
11059    builtin and then its argument prototype would still apply.  */
11060 #ifdef __cplusplus
11061 extern "C"
11062 #endif
11063 char dlopen ();
11064 int
11065 main ()
11066 {
11067 return dlopen ();
11068   ;
11069   return 0;
11070 }
11071 _ACEOF
11072 if ac_fn_c_try_link "$LINENO"; then :
11073   ac_cv_lib_dl_dlopen=yes
11074 else
11075   ac_cv_lib_dl_dlopen=no
11076 fi
11077 rm -f core conftest.err conftest.$ac_objext \
11078     conftest$ac_exeext conftest.$ac_ext
11079 LIBS=$ac_check_lib_save_LIBS
11080 fi
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11082 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11083 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11084   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11085 else
11086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11087 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11088 if ${ac_cv_lib_svld_dlopen+:} false; then :
11089   $as_echo_n "(cached) " >&6
11090 else
11091   ac_check_lib_save_LIBS=$LIBS
11092 LIBS="-lsvld  $LIBS"
11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h.  */
11095
11096 /* Override any GCC internal prototype to avoid an error.
11097    Use char because int might match the return type of a GCC
11098    builtin and then its argument prototype would still apply.  */
11099 #ifdef __cplusplus
11100 extern "C"
11101 #endif
11102 char dlopen ();
11103 int
11104 main ()
11105 {
11106 return dlopen ();
11107   ;
11108   return 0;
11109 }
11110 _ACEOF
11111 if ac_fn_c_try_link "$LINENO"; then :
11112   ac_cv_lib_svld_dlopen=yes
11113 else
11114   ac_cv_lib_svld_dlopen=no
11115 fi
11116 rm -f core conftest.err conftest.$ac_objext \
11117     conftest$ac_exeext conftest.$ac_ext
11118 LIBS=$ac_check_lib_save_LIBS
11119 fi
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11121 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11122 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11123   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11124 else
11125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11126 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11127 if ${ac_cv_lib_dld_dld_link+:} false; then :
11128   $as_echo_n "(cached) " >&6
11129 else
11130   ac_check_lib_save_LIBS=$LIBS
11131 LIBS="-ldld  $LIBS"
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h.  */
11134
11135 /* Override any GCC internal prototype to avoid an error.
11136    Use char because int might match the return type of a GCC
11137    builtin and then its argument prototype would still apply.  */
11138 #ifdef __cplusplus
11139 extern "C"
11140 #endif
11141 char dld_link ();
11142 int
11143 main ()
11144 {
11145 return dld_link ();
11146   ;
11147   return 0;
11148 }
11149 _ACEOF
11150 if ac_fn_c_try_link "$LINENO"; then :
11151   ac_cv_lib_dld_dld_link=yes
11152 else
11153   ac_cv_lib_dld_dld_link=no
11154 fi
11155 rm -f core conftest.err conftest.$ac_objext \
11156     conftest$ac_exeext conftest.$ac_ext
11157 LIBS=$ac_check_lib_save_LIBS
11158 fi
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11160 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11161 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11162   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11163 fi
11164
11165
11166 fi
11167
11168
11169 fi
11170
11171
11172 fi
11173
11174
11175 fi
11176
11177
11178 fi
11179
11180     ;;
11181   esac
11182
11183   if test "x$lt_cv_dlopen" != xno; then
11184     enable_dlopen=yes
11185   else
11186     enable_dlopen=no
11187   fi
11188
11189   case $lt_cv_dlopen in
11190   dlopen)
11191     save_CPPFLAGS="$CPPFLAGS"
11192     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11193
11194     save_LDFLAGS="$LDFLAGS"
11195     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11196
11197     save_LIBS="$LIBS"
11198     LIBS="$lt_cv_dlopen_libs $LIBS"
11199
11200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11201 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11202 if ${lt_cv_dlopen_self+:} false; then :
11203   $as_echo_n "(cached) " >&6
11204 else
11205           if test "$cross_compiling" = yes; then :
11206   lt_cv_dlopen_self=cross
11207 else
11208   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11209   lt_status=$lt_dlunknown
11210   cat > conftest.$ac_ext <<_LT_EOF
11211 #line 11211 "configure"
11212 #include "confdefs.h"
11213
11214 #if HAVE_DLFCN_H
11215 #include <dlfcn.h>
11216 #endif
11217
11218 #include <stdio.h>
11219
11220 #ifdef RTLD_GLOBAL
11221 #  define LT_DLGLOBAL           RTLD_GLOBAL
11222 #else
11223 #  ifdef DL_GLOBAL
11224 #    define LT_DLGLOBAL         DL_GLOBAL
11225 #  else
11226 #    define LT_DLGLOBAL         0
11227 #  endif
11228 #endif
11229
11230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11231    find out it does not work in some platform. */
11232 #ifndef LT_DLLAZY_OR_NOW
11233 #  ifdef RTLD_LAZY
11234 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11235 #  else
11236 #    ifdef DL_LAZY
11237 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11238 #    else
11239 #      ifdef RTLD_NOW
11240 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11241 #      else
11242 #        ifdef DL_NOW
11243 #          define LT_DLLAZY_OR_NOW      DL_NOW
11244 #        else
11245 #          define LT_DLLAZY_OR_NOW      0
11246 #        endif
11247 #      endif
11248 #    endif
11249 #  endif
11250 #endif
11251
11252 void fnord() { int i=42;}
11253 int main ()
11254 {
11255   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11256   int status = $lt_dlunknown;
11257
11258   if (self)
11259     {
11260       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11261       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11262       /* dlclose (self); */
11263     }
11264   else
11265     puts (dlerror ());
11266
11267   return status;
11268 }
11269 _LT_EOF
11270   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11271   (eval $ac_link) 2>&5
11272   ac_status=$?
11273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11274   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11275     (./conftest; exit; ) >&5 2>/dev/null
11276     lt_status=$?
11277     case x$lt_status in
11278       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11279       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11280       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11281     esac
11282   else :
11283     # compilation failed
11284     lt_cv_dlopen_self=no
11285   fi
11286 fi
11287 rm -fr conftest*
11288
11289
11290 fi
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11292 $as_echo "$lt_cv_dlopen_self" >&6; }
11293
11294     if test "x$lt_cv_dlopen_self" = xyes; then
11295       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11296       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11297 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11298 if ${lt_cv_dlopen_self_static+:} false; then :
11299   $as_echo_n "(cached) " >&6
11300 else
11301           if test "$cross_compiling" = yes; then :
11302   lt_cv_dlopen_self_static=cross
11303 else
11304   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11305   lt_status=$lt_dlunknown
11306   cat > conftest.$ac_ext <<_LT_EOF
11307 #line 11307 "configure"
11308 #include "confdefs.h"
11309
11310 #if HAVE_DLFCN_H
11311 #include <dlfcn.h>
11312 #endif
11313
11314 #include <stdio.h>
11315
11316 #ifdef RTLD_GLOBAL
11317 #  define LT_DLGLOBAL           RTLD_GLOBAL
11318 #else
11319 #  ifdef DL_GLOBAL
11320 #    define LT_DLGLOBAL         DL_GLOBAL
11321 #  else
11322 #    define LT_DLGLOBAL         0
11323 #  endif
11324 #endif
11325
11326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11327    find out it does not work in some platform. */
11328 #ifndef LT_DLLAZY_OR_NOW
11329 #  ifdef RTLD_LAZY
11330 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11331 #  else
11332 #    ifdef DL_LAZY
11333 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11334 #    else
11335 #      ifdef RTLD_NOW
11336 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11337 #      else
11338 #        ifdef DL_NOW
11339 #          define LT_DLLAZY_OR_NOW      DL_NOW
11340 #        else
11341 #          define LT_DLLAZY_OR_NOW      0
11342 #        endif
11343 #      endif
11344 #    endif
11345 #  endif
11346 #endif
11347
11348 void fnord() { int i=42;}
11349 int main ()
11350 {
11351   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11352   int status = $lt_dlunknown;
11353
11354   if (self)
11355     {
11356       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11357       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11358       /* dlclose (self); */
11359     }
11360   else
11361     puts (dlerror ());
11362
11363   return status;
11364 }
11365 _LT_EOF
11366   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11367   (eval $ac_link) 2>&5
11368   ac_status=$?
11369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11370   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11371     (./conftest; exit; ) >&5 2>/dev/null
11372     lt_status=$?
11373     case x$lt_status in
11374       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11375       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11376       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11377     esac
11378   else :
11379     # compilation failed
11380     lt_cv_dlopen_self_static=no
11381   fi
11382 fi
11383 rm -fr conftest*
11384
11385
11386 fi
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11388 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11389     fi
11390
11391     CPPFLAGS="$save_CPPFLAGS"
11392     LDFLAGS="$save_LDFLAGS"
11393     LIBS="$save_LIBS"
11394     ;;
11395   esac
11396
11397   case $lt_cv_dlopen_self in
11398   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11399   *) enable_dlopen_self=unknown ;;
11400   esac
11401
11402   case $lt_cv_dlopen_self_static in
11403   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11404   *) enable_dlopen_self_static=unknown ;;
11405   esac
11406 fi
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424 striplib=
11425 old_striplib=
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11427 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11428 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11429   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11430   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11432 $as_echo "yes" >&6; }
11433 else
11434 # FIXME - insert some real tests, host_os isn't really good enough
11435   case $host_os in
11436   darwin*)
11437     if test -n "$STRIP" ; then
11438       striplib="$STRIP -x"
11439       old_striplib="$STRIP -S"
11440       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11441 $as_echo "yes" >&6; }
11442     else
11443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11445     fi
11446     ;;
11447   *)
11448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449 $as_echo "no" >&6; }
11450     ;;
11451   esac
11452 fi
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465   # Report which library types will actually be built
11466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11467 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11469 $as_echo "$can_build_shared" >&6; }
11470
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11472 $as_echo_n "checking whether to build shared libraries... " >&6; }
11473   test "$can_build_shared" = "no" && enable_shared=no
11474
11475   # On AIX, shared libraries and static libraries use the same namespace, and
11476   # are all built from PIC.
11477   case $host_os in
11478   aix3*)
11479     test "$enable_shared" = yes && enable_static=no
11480     if test -n "$RANLIB"; then
11481       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11482       postinstall_cmds='$RANLIB $lib'
11483     fi
11484     ;;
11485
11486   aix[4-9]*)
11487     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11488       test "$enable_shared" = yes && enable_static=no
11489     fi
11490     ;;
11491   esac
11492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11493 $as_echo "$enable_shared" >&6; }
11494
11495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11496 $as_echo_n "checking whether to build static libraries... " >&6; }
11497   # Make sure either enable_shared or enable_static is yes.
11498   test "$enable_shared" = yes || enable_static=yes
11499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11500 $as_echo "$enable_static" >&6; }
11501
11502
11503
11504
11505 fi
11506 ac_ext=c
11507 ac_cpp='$CPP $CPPFLAGS'
11508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11511
11512 CC="$lt_save_CC"
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526         ac_config_commands="$ac_config_commands libtool"
11527
11528
11529
11530
11531 # Only expand once:
11532
11533
11534 test ".$PACKAGE_VERSION" = "." && PACKAGE_VERSION="$VERSION"
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking out linker version info $PACKAGE_VERSION " >&5
11536 $as_echo_n "checking out linker version info $PACKAGE_VERSION ... " >&6; }
11537   MINOR_VERSION=`echo $PACKAGE_VERSION`
11538   MAJOR_VERSION=`echo "$MINOR_VERSION" | sed -e 's/[.].*//'`
11539   MINOR_VERSION=`echo "$MINOR_VERSION" | sed -e "s/^$MAJOR_VERSION//" -e 's/^.//'`
11540   MICRO_VERSION="$MINOR_VERSION"
11541   MINOR_VERSION=`echo "$MICRO_VERSION" | sed -e 's/[.].*//'`
11542   MICRO_VERSION=`echo "$MICRO_VERSION" | sed -e "s/^$MINOR_VERSION//" -e 's/^.//'`
11543   PATCH_VERSION="$MICRO_VERSION"
11544   MICRO_VERSION=`echo "$PATCH_VERSION" | sed -e 's/[^0-9].*//'`
11545   PATCH_VERSION=`echo "$PATCH_VERSION" | sed -e "s/^$MICRO_VERSION//" -e 's/[-.]//'`
11546   if test "_$MICRO_VERSION" = "_" ; then MICRO_VERSION="0" ; fi
11547   if test "_$MINOR_VERSION" = "_" ; then MINOR_VERSION="$MAJOR_VERSION" ; MAJOR_VERSION="0" ; fi
11548   MINOR_VERSION=`echo "$MINOR_VERSION" | sed -e 's/[^0-9].*//'`
11549   RELEASE_INFO="-release $MAJOR_VERSION"
11550   VERSION_INFO="-version-info $MINOR_VERSION:$MICRO_VERSION"
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /$MAJOR_VERSION/$MINOR_VERSION:$MICRO_VERSION (-$MAJOR_VERSION.so.$MINOR_VERSION.0.$MICRO_VERSION)" >&5
11552 $as_echo "/$MAJOR_VERSION/$MINOR_VERSION:$MICRO_VERSION (-$MAJOR_VERSION.so.$MINOR_VERSION.0.$MICRO_VERSION)" >&6; }
11553
11554
11555
11556
11557 # -----------------------------------------------------------------------
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: creating zzip/_msvc.in via zzip/_msvc.sed of config.h.in" >&5
11559 $as_echo "creating zzip/_msvc.in via zzip/_msvc.sed of config.h.in" >&6; }
11560 test -d zzip || mkdir zzip
11561 sed -f $srcdir/zzip/_msvc.sed $srcdir/config.h.in >zzip/_msvc.in
11562 ac_config_headers="$ac_config_headers config.h"
11563
11564    ac_config_commands="$ac_config_commands zzip/_config.h"
11565
11566    ac_config_commands="$ac_config_commands zzip/_msvc.h"
11567
11568
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11570 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11571     # Check whether --enable-maintainer-mode was given.
11572 if test "${enable_maintainer_mode+set}" = set; then :
11573   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11574 else
11575   USE_MAINTAINER_MODE=no
11576 fi
11577
11578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11579 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11580    if test $USE_MAINTAINER_MODE = yes; then
11581   MAINTAINER_MODE_TRUE=
11582   MAINTAINER_MODE_FALSE='#'
11583 else
11584   MAINTAINER_MODE_TRUE='#'
11585   MAINTAINER_MODE_FALSE=
11586 fi
11587
11588   MAINT=$MAINTAINER_MODE_TRUE
11589
11590
11591
11592
11593 # we need the expanded forms...
11594 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11595 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11596
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
11598 $as_echo_n "checking our pkgconfig libname... " >&6; }
11599 test ".$ax_create_pkgconfig_libname" != "." || \
11600 ax_create_pkgconfig_libname="`basename zzip/zziplib.pc .pc`"
11601 test ".$ax_create_pkgconfig_libname" != "." || \
11602 ax_create_pkgconfig_libname="$PACKAGE"
11603 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
11604 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
11606 $as_echo "$ax_create_pkgconfig_libname" >&6; }
11607
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
11609 $as_echo_n "checking our pkgconfig version... " >&6; }
11610 test ".$ax_create_pkgconfig_version" != "." || \
11611 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
11612 test ".$ax_create_pkgconfig_version" != "." || \
11613 ax_create_pkgconfig_version="$VERSION"
11614 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
11615 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
11617 $as_echo "$ax_create_pkgconfig_version" >&6; }
11618
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
11620 $as_echo_n "checking our pkgconfig_libdir... " >&6; }
11621 test ".$pkgconfig_libdir" = "." && \
11622 pkgconfig_libdir='${libdir}/pkgconfig'
11623 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
11624 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
11625 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
11627 $as_echo "$pkgconfig_libdir" >&6; }
11628 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
11630 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
11631
11632
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
11634 $as_echo_n "checking our pkgconfig_libfile... " >&6; }
11635 test ".$pkgconfig_libfile" != "." || \
11636 pkgconfig_libfile="`basename zzip/zziplib.pc`"
11637 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
11638 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
11640 $as_echo "$pkgconfig_libfile" >&6; }
11641 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
11643 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
11644
11645
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
11647 $as_echo_n "checking our package / suffix... " >&6; }
11648 ax_create_pkgconfig_suffix="$program_suffix"
11649 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
11651 $as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
11652
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
11654 $as_echo_n "checking our pkgconfig description... " >&6; }
11655 ax_create_pkgconfig_description="$PACKAGE_SUMMARY"
11656 test ".$ax_create_pkgconfig_description" != "." || \
11657 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
11658 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
11659 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
11661 $as_echo "$ax_create_pkgconfig_description" >&6; }
11662
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
11664 $as_echo_n "checking our pkgconfig requires... " >&6; }
11665 ax_create_pkgconfig_requires="zzip-zlib-config"
11666 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
11667 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
11669 $as_echo "$ax_create_pkgconfig_requires" >&6; }
11670
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
11672 $as_echo_n "checking our pkgconfig ext libs... " >&6; }
11673 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
11674 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
11675 ax_create_pkgconfig_libs="-lzzip"
11676 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
11677 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
11679 $as_echo "$ax_create_pkgconfig_libs" >&6; }
11680
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
11682 $as_echo_n "checking our pkgconfig cppflags... " >&6; }
11683 ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS"
11684 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
11685 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
11687 $as_echo "$ax_create_pkgconfig_cppflags" >&6; }
11688
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
11690 $as_echo_n "checking our pkgconfig ldflags... " >&6; }
11691 ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS"
11692 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
11693 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
11695 $as_echo "$ax_create_pkgconfig_ldflags" >&6; }
11696
11697 test ".$ax_create_pkgconfig_generate" != "." || \
11698 ax_create_pkgconfig_generate="zzip/zziplib.pc"
11699 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
11700 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
11701 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
11703 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
11704
11705 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
11706 ax_create_pkgconfig_src_libdir=`pwd`
11707 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
11708 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11709          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
11710          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
11711          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
11712 $as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
11713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11714             s//\1/
11715             q
11716           }
11717           /^X\(\/\/\)[^/].*/{
11718             s//\1/
11719             q
11720           }
11721           /^X\(\/\/\)$/{
11722             s//\1/
11723             q
11724           }
11725           /^X\(\/\).*/{
11726             s//\1/
11727             q
11728           }
11729           s/.*/./; q'`
11730 test ! -d $ax_create_pkgconfig_src_libdir/src || \
11731 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
11732 case ".$objdir" in
11733 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
11735 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
11736 fi
11737
11738 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
11739 ax_create_pkgconfig_src_headers=`pwd`
11740 v="$ac_top_srcdir" ;
11741 test ".$v" != "." || v="$ax_spec_dir"
11742 test ".$v" != "." || v="$srcdir"
11743 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
11744 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
11745 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11746          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
11747          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
11748          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
11749 $as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
11750     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11751             s//\1/
11752             q
11753           }
11754           /^X\(\/\/\)[^/].*/{
11755             s//\1/
11756             q
11757           }
11758           /^X\(\/\/\)$/{
11759             s//\1/
11760             q
11761           }
11762           /^X\(\/\).*/{
11763             s//\1/
11764             q
11765           }
11766           s/.*/./; q'`
11767 test ! -d $ax_create_pkgconfig_src_headers/include || \
11768 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
11770 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
11771 fi
11772
11773
11774 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
11775
11776 # -----------------------------------------------------------------------
11777
11778
11779 if test -z "$ac_cv_pax_tar_tool"; then
11780   # Extract the first word of "pax", so it can be a program name with args.
11781 set dummy pax; ac_word=$2
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783 $as_echo_n "checking for $ac_word... " >&6; }
11784 if ${ac_cv_path_PAX+:} false; then :
11785   $as_echo_n "(cached) " >&6
11786 else
11787   case $PAX in
11788   [\\/]* | ?:[\\/]*)
11789   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
11790   ;;
11791   *)
11792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793 for as_dir in $PATH
11794 do
11795   IFS=$as_save_IFS
11796   test -z "$as_dir" && as_dir=.
11797     for ac_exec_ext in '' $ac_executable_extensions; do
11798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11799     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
11800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11801     break 2
11802   fi
11803 done
11804   done
11805 IFS=$as_save_IFS
11806
11807   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX=":"
11808   ;;
11809 esac
11810 fi
11811 PAX=$ac_cv_path_PAX
11812 if test -n "$PAX"; then
11813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAX" >&5
11814 $as_echo "$PAX" >&6; }
11815 else
11816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11818 fi
11819
11820
11821   if test "$ac_cv_path_PAX" != ":"; then
11822     ac_cv_pax_tar_tool="pax"
11823   else #3
11824   # Extract the first word of "gnutar", so it can be a program name with args.
11825 set dummy gnutar; ac_word=$2
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11827 $as_echo_n "checking for $ac_word... " >&6; }
11828 if ${ac_cv_path_GNUTAR+:} false; then :
11829   $as_echo_n "(cached) " >&6
11830 else
11831   case $GNUTAR in
11832   [\\/]* | ?:[\\/]*)
11833   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
11834   ;;
11835   *)
11836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837 for as_dir in $PATH
11838 do
11839   IFS=$as_save_IFS
11840   test -z "$as_dir" && as_dir=.
11841     for ac_exec_ext in '' $ac_executable_extensions; do
11842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11843     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
11844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845     break 2
11846   fi
11847 done
11848   done
11849 IFS=$as_save_IFS
11850
11851   test -z "$ac_cv_path_GNUTAR" && ac_cv_path_GNUTAR=":"
11852   ;;
11853 esac
11854 fi
11855 GNUTAR=$ac_cv_path_GNUTAR
11856 if test -n "$GNUTAR"; then
11857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
11858 $as_echo "$GNUTAR" >&6; }
11859 else
11860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11862 fi
11863
11864
11865   if test "$ac_cv_path_GNUTAR" != ":"; then
11866     ac_cv_pax_tar_tool="gnutar"
11867   else #1
11868   # Extract the first word of "gtar", so it can be a program name with args.
11869 set dummy gtar; ac_word=$2
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if ${ac_cv_path_GTAR+:} false; then :
11873   $as_echo_n "(cached) " >&6
11874 else
11875   case $GTAR in
11876   [\\/]* | ?:[\\/]*)
11877   ac_cv_path_GTAR="$GTAR" # Let the user override the test with a path.
11878   ;;
11879   *)
11880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11882 do
11883   IFS=$as_save_IFS
11884   test -z "$as_dir" && as_dir=.
11885     for ac_exec_ext in '' $ac_executable_extensions; do
11886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11887     ac_cv_path_GTAR="$as_dir/$ac_word$ac_exec_ext"
11888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889     break 2
11890   fi
11891 done
11892   done
11893 IFS=$as_save_IFS
11894
11895   test -z "$ac_cv_path_GTAR" && ac_cv_path_GTAR=":"
11896   ;;
11897 esac
11898 fi
11899 GTAR=$ac_cv_path_GTAR
11900 if test -n "$GTAR"; then
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTAR" >&5
11902 $as_echo "$GTAR" >&6; }
11903 else
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 fi
11907
11908
11909   if test "$ac_cv_path_GTAR" != ":"; then
11910     ac_cv_pax_tar_tool="gtar"
11911   else #2
11912   # Extract the first word of "tar", so it can be a program name with args.
11913 set dummy tar; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if ${ac_cv_path_TAR+:} false; then :
11917   $as_echo_n "(cached) " >&6
11918 else
11919   case $TAR in
11920   [\\/]* | ?:[\\/]*)
11921   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11922   ;;
11923   *)
11924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 for as_dir in $PATH
11926 do
11927   IFS=$as_save_IFS
11928   test -z "$as_dir" && as_dir=.
11929     for ac_exec_ext in '' $ac_executable_extensions; do
11930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11931     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933     break 2
11934   fi
11935 done
11936   done
11937 IFS=$as_save_IFS
11938
11939   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR=":"
11940   ;;
11941 esac
11942 fi
11943 TAR=$ac_cv_path_TAR
11944 if test -n "$TAR"; then
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11946 $as_echo "$TAR" >&6; }
11947 else
11948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11950 fi
11951
11952
11953   if test "$ac_cv_path_TAR" != ":"; then
11954     ac_cv_pax_tar_tool="tar"
11955   fi
11956   fi fi fi #3 #2 #1
11957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portable tar tool" >&5
11958 $as_echo_n "checking for portable tar tool... " >&6; }
11959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pax_tar_tool" >&5
11960 $as_echo "$ac_cv_pax_tar_tool" >&6; }
11961 fi
11962
11963
11964   if test "$ac_cv_pax_tar_tool$ax_pax_single_archive" = "pax"; then
11965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pax single archive option" >&5
11966 $as_echo_n "checking for pax single archive option... " >&6; }
11967        echo foo > conftest.txt ; rm -f conftest.tar
11968        { { $as_echo "$as_me:${as_lineno-$LINENO}: \"\$ac_cv_path_PAX\" -w -O -f conftest.tar conftest.txt"; } >&5
11969   ("$ac_cv_path_PAX" -w -O -f conftest.tar conftest.txt) 2>&5
11970   ac_status=$?
11971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11972   test $ac_status = 0; }
11973        if test -s conftest.tar; then
11974            ax_pax_single_archive="-O" ; ac_hint="(probably a BSD pax)"
11975        else
11976            ax_pax_single_archive=" "  ; ac_hint="(the -O option did not work)"
11977        fi
11978      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pax_single_archive $ac_hint" >&5
11979 $as_echo "$ax_pax_single_archive $ac_hint" >&6; }
11980   fi
11981
11982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to create portable tar archives" >&5
11983 $as_echo_n "checking for command to create portable tar archives... " >&6; }
11984   if test "$ac_cv_pax_tar_tool" = "gnutar"; then
11985     ax_pax_tar_create="'$ac_cv_path_GNUTAR' cf"
11986   elif test "$ac_cv_pax_tar_tool" = "gtar"; then
11987     ax_pax_tar_create="'$ac_cv_path_GTAR' cf"
11988   elif test "$ac_cv_pax_tar_tool" = "pax"; then
11989     ax_pax_tar_create="'$ac_cv_path_PAX' -w $ax_pax_single_archive -f"
11990   elif test "$ac_cv_pax_tar_tool" = "tar"; then
11991     ax_pax_tar_create="'$ac_cv_path_TAR' cf"
11992   else
11993     ax_pax_tar_create=": 'unknown pax tar tool $ac_cv_pax_tar_tool'"
11994   fi
11995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pax_tar_create" >&5
11996 $as_echo "$ax_pax_tar_create" >&6; }
11997
11998 PAX_TAR_CREATE="$ax_pax_tar_create"
11999
12000
12001
12002
12003
12004 if test -z "$ac_cv_pax_tar_tool"; then
12005   # Extract the first word of "pax", so it can be a program name with args.
12006 set dummy pax; ac_word=$2
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008 $as_echo_n "checking for $ac_word... " >&6; }
12009 if ${ac_cv_path_PAX+:} false; then :
12010   $as_echo_n "(cached) " >&6
12011 else
12012   case $PAX in
12013   [\\/]* | ?:[\\/]*)
12014   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
12015   ;;
12016   *)
12017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12019 do
12020   IFS=$as_save_IFS
12021   test -z "$as_dir" && as_dir=.
12022     for ac_exec_ext in '' $ac_executable_extensions; do
12023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12024     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
12025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026     break 2
12027   fi
12028 done
12029   done
12030 IFS=$as_save_IFS
12031
12032   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX=":"
12033   ;;
12034 esac
12035 fi
12036 PAX=$ac_cv_path_PAX
12037 if test -n "$PAX"; then
12038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAX" >&5
12039 $as_echo "$PAX" >&6; }
12040 else
12041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042 $as_echo "no" >&6; }
12043 fi
12044
12045
12046   if test "$ac_cv_path_PAX" != ":"; then
12047     ac_cv_pax_tar_tool="pax"
12048   else #3
12049   # Extract the first word of "gnutar", so it can be a program name with args.
12050 set dummy gnutar; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_path_GNUTAR+:} false; then :
12054   $as_echo_n "(cached) " >&6
12055 else
12056   case $GNUTAR in
12057   [\\/]* | ?:[\\/]*)
12058   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
12059   ;;
12060   *)
12061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12063 do
12064   IFS=$as_save_IFS
12065   test -z "$as_dir" && as_dir=.
12066     for ac_exec_ext in '' $ac_executable_extensions; do
12067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12068     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
12069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070     break 2
12071   fi
12072 done
12073   done
12074 IFS=$as_save_IFS
12075
12076   test -z "$ac_cv_path_GNUTAR" && ac_cv_path_GNUTAR=":"
12077   ;;
12078 esac
12079 fi
12080 GNUTAR=$ac_cv_path_GNUTAR
12081 if test -n "$GNUTAR"; then
12082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
12083 $as_echo "$GNUTAR" >&6; }
12084 else
12085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12087 fi
12088
12089
12090   if test "$ac_cv_path_GNUTAR" != ":"; then
12091     ac_cv_pax_tar_tool="gnutar"
12092   else #1
12093   # Extract the first word of "gtar", so it can be a program name with args.
12094 set dummy gtar; ac_word=$2
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12096 $as_echo_n "checking for $ac_word... " >&6; }
12097 if ${ac_cv_path_GTAR+:} false; then :
12098   $as_echo_n "(cached) " >&6
12099 else
12100   case $GTAR in
12101   [\\/]* | ?:[\\/]*)
12102   ac_cv_path_GTAR="$GTAR" # Let the user override the test with a path.
12103   ;;
12104   *)
12105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106 for as_dir in $PATH
12107 do
12108   IFS=$as_save_IFS
12109   test -z "$as_dir" && as_dir=.
12110     for ac_exec_ext in '' $ac_executable_extensions; do
12111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12112     ac_cv_path_GTAR="$as_dir/$ac_word$ac_exec_ext"
12113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114     break 2
12115   fi
12116 done
12117   done
12118 IFS=$as_save_IFS
12119
12120   test -z "$ac_cv_path_GTAR" && ac_cv_path_GTAR=":"
12121   ;;
12122 esac
12123 fi
12124 GTAR=$ac_cv_path_GTAR
12125 if test -n "$GTAR"; then
12126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTAR" >&5
12127 $as_echo "$GTAR" >&6; }
12128 else
12129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; }
12131 fi
12132
12133
12134   if test "$ac_cv_path_GTAR" != ":"; then
12135     ac_cv_pax_tar_tool="gtar"
12136   else #2
12137   # Extract the first word of "tar", so it can be a program name with args.
12138 set dummy tar; ac_word=$2
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140 $as_echo_n "checking for $ac_word... " >&6; }
12141 if ${ac_cv_path_TAR+:} false; then :
12142   $as_echo_n "(cached) " >&6
12143 else
12144   case $TAR in
12145   [\\/]* | ?:[\\/]*)
12146   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
12147   ;;
12148   *)
12149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150 for as_dir in $PATH
12151 do
12152   IFS=$as_save_IFS
12153   test -z "$as_dir" && as_dir=.
12154     for ac_exec_ext in '' $ac_executable_extensions; do
12155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12156     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
12157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12158     break 2
12159   fi
12160 done
12161   done
12162 IFS=$as_save_IFS
12163
12164   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR=":"
12165   ;;
12166 esac
12167 fi
12168 TAR=$ac_cv_path_TAR
12169 if test -n "$TAR"; then
12170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
12171 $as_echo "$TAR" >&6; }
12172 else
12173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12175 fi
12176
12177
12178   if test "$ac_cv_path_TAR" != ":"; then
12179     ac_cv_pax_tar_tool="tar"
12180   fi
12181   fi fi fi #3 #2 #1
12182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portable tar tool" >&5
12183 $as_echo_n "checking for portable tar tool... " >&6; }
12184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pax_tar_tool" >&5
12185 $as_echo "$ac_cv_pax_tar_tool" >&6; }
12186 fi
12187
12188
12189   if test "$ac_cv_pax_tar_tool$ax_pax_single_archive" = "pax"; then
12190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pax single archive option" >&5
12191 $as_echo_n "checking for pax single archive option... " >&6; }
12192        echo foo > conftest.txt ; rm -f conftest.tar
12193        { { $as_echo "$as_me:${as_lineno-$LINENO}: \"\$ac_cv_path_PAX\" -w -O -f conftest.tar conftest.txt"; } >&5
12194   ("$ac_cv_path_PAX" -w -O -f conftest.tar conftest.txt) 2>&5
12195   ac_status=$?
12196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12197   test $ac_status = 0; }
12198        if test -s conftest.tar; then
12199            ax_pax_single_archive="-O" ; ac_hint="(probably a BSD pax)"
12200        else
12201            ax_pax_single_archive=" "  ; ac_hint="(the -O option did not work)"
12202        fi
12203      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pax_single_archive $ac_hint" >&5
12204 $as_echo "$ax_pax_single_archive $ac_hint" >&6; }
12205   fi
12206
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to extract portable tar archives" >&5
12208 $as_echo_n "checking for command to extract portable tar archives... " >&6; }
12209   if test "$ac_cv_pax_tar_tool" = "gnutar"; then
12210     ax_pax_tar_extract="'$ac_cv_path_GNUTAR' xf"
12211   elif test "$ac_cv_pax_tar_tool" = "gtar"; then
12212     ax_pax_tar_extract="'$ac_cv_path_GTAR' xf"
12213   elif test "$ac_cv_pax_tar_tool" = "pax"; then
12214     ax_pax_tar_extract="'$ac_cv_path_PAX' -r $ax_pax_single_archive -f"
12215   elif test "$ac_cv_pax_tar_tool" = "tar"; then
12216     ax_pax_tar_extract="'$ac_cv_path_TAR' xf"
12217   else
12218     ax_pax_tar_extract=": 'unknown pax tar tool $ac_cv_pax_tar_tool'"
12219   fi
12220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pax_tar_extract" >&5
12221 $as_echo "$ax_pax_tar_extract" >&6; }
12222
12223 PAX_TAR_EXTRACT="$ax_pax_tar_extract"
12224
12225
12226
12227 for ac_prog in perl5 perl
12228 do
12229   # Extract the first word of "$ac_prog", so it can be a program name with args.
12230 set dummy $ac_prog; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if ${ac_cv_path_PERL+:} false; then :
12234   $as_echo_n "(cached) " >&6
12235 else
12236   case $PERL in
12237   [\\/]* | ?:[\\/]*)
12238   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12239   ;;
12240   *)
12241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12243 do
12244   IFS=$as_save_IFS
12245   test -z "$as_dir" && as_dir=.
12246     for ac_exec_ext in '' $ac_executable_extensions; do
12247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12248     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12250     break 2
12251   fi
12252 done
12253   done
12254 IFS=$as_save_IFS
12255
12256   ;;
12257 esac
12258 fi
12259 PERL=$ac_cv_path_PERL
12260 if test -n "$PERL"; then
12261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12262 $as_echo "$PERL" >&6; }
12263 else
12264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12266 fi
12267
12268
12269   test -n "$PERL" && break
12270 done
12271 test -n "$PERL" || PERL="echo no perl found for"
12272
12273 for ac_prog in python
12274 do
12275   # Extract the first word of "$ac_prog", so it can be a program name with args.
12276 set dummy $ac_prog; ac_word=$2
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12278 $as_echo_n "checking for $ac_word... " >&6; }
12279 if ${ac_cv_path_PYTHON+:} false; then :
12280   $as_echo_n "(cached) " >&6
12281 else
12282   case $PYTHON in
12283   [\\/]* | ?:[\\/]*)
12284   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12285   ;;
12286   *)
12287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288 for as_dir in $PATH
12289 do
12290   IFS=$as_save_IFS
12291   test -z "$as_dir" && as_dir=.
12292     for ac_exec_ext in '' $ac_executable_extensions; do
12293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12294     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12296     break 2
12297   fi
12298 done
12299   done
12300 IFS=$as_save_IFS
12301
12302   ;;
12303 esac
12304 fi
12305 PYTHON=$ac_cv_path_PYTHON
12306 if test -n "$PYTHON"; then
12307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12308 $as_echo "$PYTHON" >&6; }
12309 else
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12312 fi
12313
12314
12315   test -n "$PYTHON" && break
12316 done
12317 test -n "$PYTHON" || PYTHON="echo no python found for"
12318
12319 for ac_prog in zip pkzip
12320 do
12321   # Extract the first word of "$ac_prog", so it can be a program name with args.
12322 set dummy $ac_prog; ac_word=$2
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12324 $as_echo_n "checking for $ac_word... " >&6; }
12325 if ${ac_cv_path_MKZIP+:} false; then :
12326   $as_echo_n "(cached) " >&6
12327 else
12328   case $MKZIP in
12329   [\\/]* | ?:[\\/]*)
12330   ac_cv_path_MKZIP="$MKZIP" # Let the user override the test with a path.
12331   ;;
12332   *)
12333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12334 for as_dir in $PATH
12335 do
12336   IFS=$as_save_IFS
12337   test -z "$as_dir" && as_dir=.
12338     for ac_exec_ext in '' $ac_executable_extensions; do
12339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12340     ac_cv_path_MKZIP="$as_dir/$ac_word$ac_exec_ext"
12341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12342     break 2
12343   fi
12344 done
12345   done
12346 IFS=$as_save_IFS
12347
12348   ;;
12349 esac
12350 fi
12351 MKZIP=$ac_cv_path_MKZIP
12352 if test -n "$MKZIP"; then
12353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKZIP" >&5
12354 $as_echo "$MKZIP" >&6; }
12355 else
12356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12358 fi
12359
12360
12361   test -n "$MKZIP" && break
12362 done
12363 test -n "$MKZIP" || MKZIP=":"
12364
12365 for ac_prog in xmlto
12366 do
12367   # Extract the first word of "$ac_prog", so it can be a program name with args.
12368 set dummy $ac_prog; ac_word=$2
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12370 $as_echo_n "checking for $ac_word... " >&6; }
12371 if ${ac_cv_path_XMLTO+:} false; then :
12372   $as_echo_n "(cached) " >&6
12373 else
12374   case $XMLTO in
12375   [\\/]* | ?:[\\/]*)
12376   ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12377   ;;
12378   *)
12379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380 for as_dir in $PATH
12381 do
12382   IFS=$as_save_IFS
12383   test -z "$as_dir" && as_dir=.
12384     for ac_exec_ext in '' $ac_executable_extensions; do
12385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12386     ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388     break 2
12389   fi
12390 done
12391   done
12392 IFS=$as_save_IFS
12393
12394   ;;
12395 esac
12396 fi
12397 XMLTO=$ac_cv_path_XMLTO
12398 if test -n "$XMLTO"; then
12399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12400 $as_echo "$XMLTO" >&6; }
12401 else
12402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12404 fi
12405
12406
12407   test -n "$XMLTO" && break
12408 done
12409 test -n "$XMLTO" || XMLTO=":"
12410
12411
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12413 $as_echo_n "checking for inline... " >&6; }
12414 if ${ac_cv_c_inline+:} false; then :
12415   $as_echo_n "(cached) " >&6
12416 else
12417   ac_cv_c_inline=no
12418 for ac_kw in inline __inline__ __inline; do
12419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h.  */
12421 #ifndef __cplusplus
12422 typedef int foo_t;
12423 static $ac_kw foo_t static_foo () {return 0; }
12424 $ac_kw foo_t foo () {return 0; }
12425 #endif
12426
12427 _ACEOF
12428 if ac_fn_c_try_compile "$LINENO"; then :
12429   ac_cv_c_inline=$ac_kw
12430 fi
12431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12432   test "$ac_cv_c_inline" != no && break
12433 done
12434
12435 fi
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12437 $as_echo "$ac_cv_c_inline" >&6; }
12438
12439 case $ac_cv_c_inline in
12440   inline | yes) ;;
12441   *)
12442     case $ac_cv_c_inline in
12443       no) ac_val=;;
12444       *) ac_val=$ac_cv_c_inline;;
12445     esac
12446     cat >>confdefs.h <<_ACEOF
12447 #ifndef __cplusplus
12448 #define inline $ac_val
12449 #endif
12450 _ACEOF
12451     ;;
12452 esac
12453
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12455 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12456 if ${ac_cv_c_const+:} false; then :
12457   $as_echo_n "(cached) " >&6
12458 else
12459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h.  */
12461
12462 int
12463 main ()
12464 {
12465
12466 #ifndef __cplusplus
12467   /* Ultrix mips cc rejects this sort of thing.  */
12468   typedef int charset[2];
12469   const charset cs = { 0, 0 };
12470   /* SunOS 4.1.1 cc rejects this.  */
12471   char const *const *pcpcc;
12472   char **ppc;
12473   /* NEC SVR4.0.2 mips cc rejects this.  */
12474   struct point {int x, y;};
12475   static struct point const zero = {0,0};
12476   /* AIX XL C 1.02.0.0 rejects this.
12477      It does not let you subtract one const X* pointer from another in
12478      an arm of an if-expression whose if-part is not a constant
12479      expression */
12480   const char *g = "string";
12481   pcpcc = &g + (g ? g-g : 0);
12482   /* HPUX 7.0 cc rejects these. */
12483   ++pcpcc;
12484   ppc = (char**) pcpcc;
12485   pcpcc = (char const *const *) ppc;
12486   { /* SCO 3.2v4 cc rejects this sort of thing.  */
12487     char tx;
12488     char *t = &tx;
12489     char const *s = 0 ? (char *) 0 : (char const *) 0;
12490
12491     *t++ = 0;
12492     if (s) return 0;
12493   }
12494   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12495     int x[] = {25, 17};
12496     const int *foo = &x[0];
12497     ++foo;
12498   }
12499   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12500     typedef const int *iptr;
12501     iptr p = 0;
12502     ++p;
12503   }
12504   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12505        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12506     struct s { int j; const int *ap[3]; } bx;
12507     struct s *b = &bx; b->j = 5;
12508   }
12509   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12510     const int foo = 10;
12511     if (!foo) return 0;
12512   }
12513   return !cs[0] && !zero.x;
12514 #endif
12515
12516   ;
12517   return 0;
12518 }
12519 _ACEOF
12520 if ac_fn_c_try_compile "$LINENO"; then :
12521   ac_cv_c_const=yes
12522 else
12523   ac_cv_c_const=no
12524 fi
12525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526 fi
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12528 $as_echo "$ac_cv_c_const" >&6; }
12529 if test $ac_cv_c_const = no; then
12530
12531 $as_echo "#define const /**/" >>confdefs.h
12532
12533 fi
12534
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
12536 $as_echo_n "checking for C restrict keyword... " >&6; }
12537 if ${acx_cv_c_restrict+:} false; then :
12538   $as_echo_n "(cached) " >&6
12539 else
12540   acx_cv_c_restrict=unsupported
12541
12542  ac_ext=c
12543 ac_cpp='$CPP $CPPFLAGS'
12544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12547
12548  # Try the official restrict keyword, then gcc's __restrict__, then
12549  # SGI's __restrict.  __restrict has slightly different semantics than
12550  # restrict (it's a bit stronger, in that __restrict pointers can't
12551  # overlap even with non __restrict pointers), but I think it should be
12552  # okay under the circumstances where restrict is normally used.
12553  for acx_kw in restrict __restrict__ __restrict; do
12554    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h.  */
12556
12557 int
12558 main ()
12559 {
12560 float * $acx_kw x;
12561   ;
12562   return 0;
12563 }
12564 _ACEOF
12565 if ac_fn_c_try_compile "$LINENO"; then :
12566   acx_cv_c_restrict=$acx_kw; break
12567 fi
12568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12569  done
12570  ac_ext=c
12571 ac_cpp='$CPP $CPPFLAGS'
12572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12575
12576
12577 fi
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_c_restrict" >&5
12579 $as_echo "$acx_cv_c_restrict" >&6; }
12580  if test "$acx_cv_c_restrict" != "restrict"; then
12581    acx_kw="$acx_cv_c_restrict"
12582    if test "$acx_kw" = unsupported; then acx_kw=""; fi
12583
12584 cat >>confdefs.h <<_ACEOF
12585 #define restrict $acx_kw
12586 _ACEOF
12587
12588  fi
12589
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12591 $as_echo_n "checking for ANSI C header files... " >&6; }
12592 if ${ac_cv_header_stdc+:} false; then :
12593   $as_echo_n "(cached) " >&6
12594 else
12595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h.  */
12597 #include <stdlib.h>
12598 #include <stdarg.h>
12599 #include <string.h>
12600 #include <float.h>
12601
12602 int
12603 main ()
12604 {
12605
12606   ;
12607   return 0;
12608 }
12609 _ACEOF
12610 if ac_fn_c_try_compile "$LINENO"; then :
12611   ac_cv_header_stdc=yes
12612 else
12613   ac_cv_header_stdc=no
12614 fi
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616
12617 if test $ac_cv_header_stdc = yes; then
12618   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h.  */
12621 #include <string.h>
12622
12623 _ACEOF
12624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12625   $EGREP "memchr" >/dev/null 2>&1; then :
12626
12627 else
12628   ac_cv_header_stdc=no
12629 fi
12630 rm -f conftest*
12631
12632 fi
12633
12634 if test $ac_cv_header_stdc = yes; then
12635   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h.  */
12638 #include <stdlib.h>
12639
12640 _ACEOF
12641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12642   $EGREP "free" >/dev/null 2>&1; then :
12643
12644 else
12645   ac_cv_header_stdc=no
12646 fi
12647 rm -f conftest*
12648
12649 fi
12650
12651 if test $ac_cv_header_stdc = yes; then
12652   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12653   if test "$cross_compiling" = yes; then :
12654   :
12655 else
12656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h.  */
12658 #include <ctype.h>
12659 #include <stdlib.h>
12660 #if ((' ' & 0x0FF) == 0x020)
12661 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12662 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12663 #else
12664 # define ISLOWER(c) \
12665                    (('a' <= (c) && (c) <= 'i') \
12666                      || ('j' <= (c) && (c) <= 'r') \
12667                      || ('s' <= (c) && (c) <= 'z'))
12668 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12669 #endif
12670
12671 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12672 int
12673 main ()
12674 {
12675   int i;
12676   for (i = 0; i < 256; i++)
12677     if (XOR (islower (i), ISLOWER (i))
12678         || toupper (i) != TOUPPER (i))
12679       return 2;
12680   return 0;
12681 }
12682 _ACEOF
12683 if ac_fn_c_try_run "$LINENO"; then :
12684
12685 else
12686   ac_cv_header_stdc=no
12687 fi
12688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12689   conftest.$ac_objext conftest.beam conftest.$ac_ext
12690 fi
12691
12692 fi
12693 fi
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12695 $as_echo "$ac_cv_header_stdc" >&6; }
12696 if test $ac_cv_header_stdc = yes; then
12697
12698 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12699
12700 fi
12701
12702 ac_header_dirent=no
12703 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12704   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12706 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12707 if eval \${$as_ac_Header+:} false; then :
12708   $as_echo_n "(cached) " >&6
12709 else
12710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h.  */
12712 #include <sys/types.h>
12713 #include <$ac_hdr>
12714
12715 int
12716 main ()
12717 {
12718 if ((DIR *) 0)
12719 return 0;
12720   ;
12721   return 0;
12722 }
12723 _ACEOF
12724 if ac_fn_c_try_compile "$LINENO"; then :
12725   eval "$as_ac_Header=yes"
12726 else
12727   eval "$as_ac_Header=no"
12728 fi
12729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12730 fi
12731 eval ac_res=\$$as_ac_Header
12732                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12733 $as_echo "$ac_res" >&6; }
12734 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12735   cat >>confdefs.h <<_ACEOF
12736 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12737 _ACEOF
12738
12739 ac_header_dirent=$ac_hdr; break
12740 fi
12741
12742 done
12743 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12744 if test $ac_header_dirent = dirent.h; then
12745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12746 $as_echo_n "checking for library containing opendir... " >&6; }
12747 if ${ac_cv_search_opendir+:} false; then :
12748   $as_echo_n "(cached) " >&6
12749 else
12750   ac_func_search_save_LIBS=$LIBS
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h.  */
12753
12754 /* Override any GCC internal prototype to avoid an error.
12755    Use char because int might match the return type of a GCC
12756    builtin and then its argument prototype would still apply.  */
12757 #ifdef __cplusplus
12758 extern "C"
12759 #endif
12760 char opendir ();
12761 int
12762 main ()
12763 {
12764 return opendir ();
12765   ;
12766   return 0;
12767 }
12768 _ACEOF
12769 for ac_lib in '' dir; do
12770   if test -z "$ac_lib"; then
12771     ac_res="none required"
12772   else
12773     ac_res=-l$ac_lib
12774     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12775   fi
12776   if ac_fn_c_try_link "$LINENO"; then :
12777   ac_cv_search_opendir=$ac_res
12778 fi
12779 rm -f core conftest.err conftest.$ac_objext \
12780     conftest$ac_exeext
12781   if ${ac_cv_search_opendir+:} false; then :
12782   break
12783 fi
12784 done
12785 if ${ac_cv_search_opendir+:} false; then :
12786
12787 else
12788   ac_cv_search_opendir=no
12789 fi
12790 rm conftest.$ac_ext
12791 LIBS=$ac_func_search_save_LIBS
12792 fi
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12794 $as_echo "$ac_cv_search_opendir" >&6; }
12795 ac_res=$ac_cv_search_opendir
12796 if test "$ac_res" != no; then :
12797   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12798
12799 fi
12800
12801 else
12802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12803 $as_echo_n "checking for library containing opendir... " >&6; }
12804 if ${ac_cv_search_opendir+:} false; then :
12805   $as_echo_n "(cached) " >&6
12806 else
12807   ac_func_search_save_LIBS=$LIBS
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h.  */
12810
12811 /* Override any GCC internal prototype to avoid an error.
12812    Use char because int might match the return type of a GCC
12813    builtin and then its argument prototype would still apply.  */
12814 #ifdef __cplusplus
12815 extern "C"
12816 #endif
12817 char opendir ();
12818 int
12819 main ()
12820 {
12821 return opendir ();
12822   ;
12823   return 0;
12824 }
12825 _ACEOF
12826 for ac_lib in '' x; do
12827   if test -z "$ac_lib"; then
12828     ac_res="none required"
12829   else
12830     ac_res=-l$ac_lib
12831     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12832   fi
12833   if ac_fn_c_try_link "$LINENO"; then :
12834   ac_cv_search_opendir=$ac_res
12835 fi
12836 rm -f core conftest.err conftest.$ac_objext \
12837     conftest$ac_exeext
12838   if ${ac_cv_search_opendir+:} false; then :
12839   break
12840 fi
12841 done
12842 if ${ac_cv_search_opendir+:} false; then :
12843
12844 else
12845   ac_cv_search_opendir=no
12846 fi
12847 rm conftest.$ac_ext
12848 LIBS=$ac_func_search_save_LIBS
12849 fi
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12851 $as_echo "$ac_cv_search_opendir" >&6; }
12852 ac_res=$ac_cv_search_opendir
12853 if test "$ac_res" != no; then :
12854   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12855
12856 fi
12857
12858 fi
12859
12860 for ac_header in stdint.h unistd.h windows.h winnt.h winbase.h sys/int_types.h
12861 do :
12862   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12863 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12864 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12865   cat >>confdefs.h <<_ACEOF
12866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12867 _ACEOF
12868
12869 fi
12870
12871 done
12872
12873 for ac_header in sys/types.h sys/mman.h sys/stat.h sys/param.h
12874 do :
12875   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12876 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12877 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12878   cat >>confdefs.h <<_ACEOF
12879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12880 _ACEOF
12881
12882 fi
12883
12884 done
12885  for ac_header in io.h direct.h zlib.h byteswap.h
12886 do :
12887   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12888 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12889 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12890   cat >>confdefs.h <<_ACEOF
12891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12892 _ACEOF
12893
12894 fi
12895
12896 done
12897
12898 for ac_header in fnmatch.h
12899 do :
12900   ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
12901 if test "x$ac_cv_header_fnmatch_h" = xyes; then :
12902   cat >>confdefs.h <<_ACEOF
12903 #define HAVE_FNMATCH_H 1
12904 _ACEOF
12905
12906 fi
12907
12908 done
12909
12910 for ac_func in strcasecmp strndup
12911 do :
12912   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12913 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12914 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12915   cat >>confdefs.h <<_ACEOF
12916 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12917 _ACEOF
12918
12919 fi
12920 done
12921
12922
12923 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12924 if test "x$ac_cv_type_off_t" = xyes; then :
12925
12926 else
12927
12928 cat >>confdefs.h <<_ACEOF
12929 #define off_t long int
12930 _ACEOF
12931
12932 fi
12933
12934 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12935 if test "x$ac_cv_type_size_t" = xyes; then :
12936
12937 else
12938
12939 cat >>confdefs.h <<_ACEOF
12940 #define size_t unsigned int
12941 _ACEOF
12942
12943 fi
12944
12945 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12946 if test "x$ac_cv_type_ssize_t" = xyes; then :
12947
12948 else
12949
12950 cat >>confdefs.h <<_ACEOF
12951 #define ssize_t int
12952 _ACEOF
12953
12954 fi
12955
12956 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
12957 if test "x$ac_cv_type_off64_t" = xyes; then :
12958
12959 else
12960
12961 cat >>confdefs.h <<_ACEOF
12962 #define off64_t _zzip_off_t
12963 _ACEOF
12964
12965 fi
12966
12967 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
12968 if test "x$ac_cv_type___int64" = xyes; then :
12969
12970 else
12971
12972 cat >>confdefs.h <<_ACEOF
12973 #define __int64 long long
12974 _ACEOF
12975
12976 fi
12977
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12979 $as_echo_n "checking size of short... " >&6; }
12980 if ${ac_cv_sizeof_short+:} false; then :
12981   $as_echo_n "(cached) " >&6
12982 else
12983   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
12984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985 /* end confdefs.h.  */
12986 #include "confdefs.h"
12987 #include <sys/types.h>
12988
12989
12990 int
12991 main ()
12992 {
12993 switch (0) case 0: case (sizeof (short) == $ac_size):;
12994   ;
12995   return 0;
12996 }
12997 _ACEOF
12998 if ac_fn_c_try_compile "$LINENO"; then :
12999   ac_cv_sizeof_short=$ac_size
13000 fi
13001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13002   if test x$ac_cv_sizeof_short != x ; then break; fi
13003 done
13004
13005 fi
13006
13007 if test x$ac_cv_sizeof_short = x ; then
13008   as_fn_error $? "cannot determine a size for short" "$LINENO" 5
13009 fi
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13011 $as_echo "$ac_cv_sizeof_short" >&6; }
13012
13013 cat >>confdefs.h <<_ACEOF
13014 #define SIZEOF_SHORT $ac_cv_sizeof_short
13015 _ACEOF
13016
13017
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13019 $as_echo_n "checking size of int... " >&6; }
13020 if ${ac_cv_sizeof_int+:} false; then :
13021   $as_echo_n "(cached) " >&6
13022 else
13023   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
13024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h.  */
13026 #include "confdefs.h"
13027 #include <sys/types.h>
13028
13029
13030 int
13031 main ()
13032 {
13033 switch (0) case 0: case (sizeof (int) == $ac_size):;
13034   ;
13035   return 0;
13036 }
13037 _ACEOF
13038 if ac_fn_c_try_compile "$LINENO"; then :
13039   ac_cv_sizeof_int=$ac_size
13040 fi
13041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13042   if test x$ac_cv_sizeof_int != x ; then break; fi
13043 done
13044
13045 fi
13046
13047 if test x$ac_cv_sizeof_int = x ; then
13048   as_fn_error $? "cannot determine a size for int" "$LINENO" 5
13049 fi
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13051 $as_echo "$ac_cv_sizeof_int" >&6; }
13052
13053 cat >>confdefs.h <<_ACEOF
13054 #define SIZEOF_INT $ac_cv_sizeof_int
13055 _ACEOF
13056
13057
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13059 $as_echo_n "checking size of long... " >&6; }
13060 if ${ac_cv_sizeof_long+:} false; then :
13061   $as_echo_n "(cached) " >&6
13062 else
13063   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
13064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065 /* end confdefs.h.  */
13066 #include "confdefs.h"
13067 #include <sys/types.h>
13068
13069
13070 int
13071 main ()
13072 {
13073 switch (0) case 0: case (sizeof (long) == $ac_size):;
13074   ;
13075   return 0;
13076 }
13077 _ACEOF
13078 if ac_fn_c_try_compile "$LINENO"; then :
13079   ac_cv_sizeof_long=$ac_size
13080 fi
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13082   if test x$ac_cv_sizeof_long != x ; then break; fi
13083 done
13084
13085 fi
13086
13087 if test x$ac_cv_sizeof_long = x ; then
13088   as_fn_error $? "cannot determine a size for long" "$LINENO" 5
13089 fi
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13091 $as_echo "$ac_cv_sizeof_long" >&6; }
13092
13093 cat >>confdefs.h <<_ACEOF
13094 #define SIZEOF_LONG $ac_cv_sizeof_long
13095 _ACEOF
13096
13097
13098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13099 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13100 if ${ac_cv_c_bigendian+:} false; then :
13101   $as_echo_n "(cached) " >&6
13102 else
13103   ac_cv_c_bigendian=unknown
13104     # See if we're dealing with a universal compiler.
13105     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h.  */
13107 #ifndef __APPLE_CC__
13108                not a universal capable compiler
13109              #endif
13110              typedef int dummy;
13111
13112 _ACEOF
13113 if ac_fn_c_try_compile "$LINENO"; then :
13114
13115         # Check for potential -arch flags.  It is not universal unless
13116         # there are at least two -arch flags with different values.
13117         ac_arch=
13118         ac_prev=
13119         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13120          if test -n "$ac_prev"; then
13121            case $ac_word in
13122              i?86 | x86_64 | ppc | ppc64)
13123                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13124                  ac_arch=$ac_word
13125                else
13126                  ac_cv_c_bigendian=universal
13127                  break
13128                fi
13129                ;;
13130            esac
13131            ac_prev=
13132          elif test "x$ac_word" = "x-arch"; then
13133            ac_prev=arch
13134          fi
13135        done
13136 fi
13137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13138     if test $ac_cv_c_bigendian = unknown; then
13139       # See if sys/param.h defines the BYTE_ORDER macro.
13140       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141 /* end confdefs.h.  */
13142 #include <sys/types.h>
13143              #include <sys/param.h>
13144
13145 int
13146 main ()
13147 {
13148 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13149                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13150                      && LITTLE_ENDIAN)
13151               bogus endian macros
13152              #endif
13153
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 if ac_fn_c_try_compile "$LINENO"; then :
13159   # It does; now see whether it defined to BIG_ENDIAN or not.
13160          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h.  */
13162 #include <sys/types.h>
13163                 #include <sys/param.h>
13164
13165 int
13166 main ()
13167 {
13168 #if BYTE_ORDER != BIG_ENDIAN
13169                  not big endian
13170                 #endif
13171
13172   ;
13173   return 0;
13174 }
13175 _ACEOF
13176 if ac_fn_c_try_compile "$LINENO"; then :
13177   ac_cv_c_bigendian=yes
13178 else
13179   ac_cv_c_bigendian=no
13180 fi
13181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13182 fi
13183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13184     fi
13185     if test $ac_cv_c_bigendian = unknown; then
13186       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13187       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h.  */
13189 #include <limits.h>
13190
13191 int
13192 main ()
13193 {
13194 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13195               bogus endian macros
13196              #endif
13197
13198   ;
13199   return 0;
13200 }
13201 _ACEOF
13202 if ac_fn_c_try_compile "$LINENO"; then :
13203   # It does; now see whether it defined to _BIG_ENDIAN or not.
13204          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h.  */
13206 #include <limits.h>
13207
13208 int
13209 main ()
13210 {
13211 #ifndef _BIG_ENDIAN
13212                  not big endian
13213                 #endif
13214
13215   ;
13216   return 0;
13217 }
13218 _ACEOF
13219 if ac_fn_c_try_compile "$LINENO"; then :
13220   ac_cv_c_bigendian=yes
13221 else
13222   ac_cv_c_bigendian=no
13223 fi
13224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225 fi
13226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13227     fi
13228     if test $ac_cv_c_bigendian = unknown; then
13229       # Compile a test program.
13230       if test "$cross_compiling" = yes; then :
13231   # Try to guess by grepping values from an object file.
13232          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h.  */
13234 short int ascii_mm[] =
13235                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13236                 short int ascii_ii[] =
13237                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13238                 int use_ascii (int i) {
13239                   return ascii_mm[i] + ascii_ii[i];
13240                 }
13241                 short int ebcdic_ii[] =
13242                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13243                 short int ebcdic_mm[] =
13244                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13245                 int use_ebcdic (int i) {
13246                   return ebcdic_mm[i] + ebcdic_ii[i];
13247                 }
13248                 extern int foo;
13249
13250 int
13251 main ()
13252 {
13253 return use_ascii (foo) == use_ebcdic (foo);
13254   ;
13255   return 0;
13256 }
13257 _ACEOF
13258 if ac_fn_c_try_compile "$LINENO"; then :
13259   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13260               ac_cv_c_bigendian=yes
13261             fi
13262             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13263               if test "$ac_cv_c_bigendian" = unknown; then
13264                 ac_cv_c_bigendian=no
13265               else
13266                 # finding both strings is unlikely to happen, but who knows?
13267                 ac_cv_c_bigendian=unknown
13268               fi
13269             fi
13270 fi
13271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13272 else
13273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h.  */
13275 $ac_includes_default
13276 int
13277 main ()
13278 {
13279
13280              /* Are we little or big endian?  From Harbison&Steele.  */
13281              union
13282              {
13283                long int l;
13284                char c[sizeof (long int)];
13285              } u;
13286              u.l = 1;
13287              return u.c[sizeof (long int) - 1] == 1;
13288
13289   ;
13290   return 0;
13291 }
13292 _ACEOF
13293 if ac_fn_c_try_run "$LINENO"; then :
13294   ac_cv_c_bigendian=no
13295 else
13296   ac_cv_c_bigendian=yes
13297 fi
13298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13299   conftest.$ac_objext conftest.beam conftest.$ac_ext
13300 fi
13301
13302     fi
13303 fi
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13305 $as_echo "$ac_cv_c_bigendian" >&6; }
13306  case $ac_cv_c_bigendian in #(
13307    yes)
13308      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13309 ;; #(
13310    no)
13311       ;; #(
13312    universal)
13313
13314 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13315
13316      ;; #(
13317    *)
13318      as_fn_error $? "unknown endianness
13319  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13320  esac
13321
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pointers to integers require aligned access" >&5
13323 $as_echo_n "checking if pointers to integers require aligned access... " >&6; }
13324 if ${ax_cv_have_aligned_access_required+:} false; then :
13325   $as_echo_n "(cached) " >&6
13326 else
13327   if test "$cross_compiling" = "yes"; then
13328   case "$host_cpu" in alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13329     ax_cv_have_aligned_access_required="yes"
13330   ;; esac
13331 else
13332   if test "$cross_compiling" = yes; then :
13333   ax_cv_have_aligned_access_required=no
13334 else
13335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h.  */
13337
13338 #include <stdio.h>
13339 #include <stdlib.h>
13340
13341 int main()
13342 {
13343   char* string = malloc(40);
13344   int i;
13345   for (i=0; i < 40; i++) string[[i]] = i;
13346   {
13347      void* s = string;
13348      int* p = s+1;
13349      int* q = s+2;
13350
13351      if (*p == *q) { return 1; }
13352   }
13353   return 0;
13354 }
13355
13356 _ACEOF
13357 if ac_fn_c_try_run "$LINENO"; then :
13358   ax_cv_have_aligned_access_required=yes
13359 else
13360   ax_cv_have_aligned_access_required=no
13361 fi
13362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13363   conftest.$ac_objext conftest.beam conftest.$ac_ext
13364 fi
13365
13366
13367 fi
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_aligned_access_required" >&5
13369 $as_echo "$ax_cv_have_aligned_access_required" >&6; }
13370 fi
13371 if test "$ax_cv_have_aligned_access_required" = yes ; then
13372
13373 $as_echo "#define HAVE_ALIGNED_ACCESS_REQUIRED 1" >>confdefs.h
13374
13375 fi
13376
13377 # the default is _disabled_!! anyway, result is prefixed in zzip/_config.h!!
13378 # Check whether --enable-largefile was given.
13379 if test "${enable_largefile+set}" = set; then :
13380   enableval=$enable_largefile;
13381 fi
13382
13383 if test "$enable_largefile" != no; then
13384
13385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13386 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13387 if ${ac_cv_sys_largefile_CC+:} false; then :
13388   $as_echo_n "(cached) " >&6
13389 else
13390   ac_cv_sys_largefile_CC=no
13391      if test "$GCC" != yes; then
13392        ac_save_CC=$CC
13393        while :; do
13394          # IRIX 6.2 and later do not support large files by default,
13395          # so use the C compiler's -n32 option if that helps.
13396          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h.  */
13398 #include <sys/types.h>
13399  /* Check that off_t can represent 2**63 - 1 correctly.
13400     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13401     since some C++ compilers masquerading as C compilers
13402     incorrectly reject 9223372036854775807.  */
13403 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13404   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13405                        && LARGE_OFF_T % 2147483647 == 1)
13406                       ? 1 : -1];
13407 int
13408 main ()
13409 {
13410
13411   ;
13412   return 0;
13413 }
13414 _ACEOF
13415          if ac_fn_c_try_compile "$LINENO"; then :
13416   break
13417 fi
13418 rm -f core conftest.err conftest.$ac_objext
13419          CC="$CC -n32"
13420          if ac_fn_c_try_compile "$LINENO"; then :
13421   ac_cv_sys_largefile_CC=' -n32'; break
13422 fi
13423 rm -f core conftest.err conftest.$ac_objext
13424          break
13425        done
13426        CC=$ac_save_CC
13427        rm -f conftest.$ac_ext
13428     fi
13429 fi
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13431 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13432   if test "$ac_cv_sys_largefile_CC" != no; then
13433     CC=$CC$ac_cv_sys_largefile_CC
13434   fi
13435
13436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13437 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13438 if ${ac_cv_sys_file_offset_bits+:} false; then :
13439   $as_echo_n "(cached) " >&6
13440 else
13441   while :; do
13442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h.  */
13444 #include <sys/types.h>
13445  /* Check that off_t can represent 2**63 - 1 correctly.
13446     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13447     since some C++ compilers masquerading as C compilers
13448     incorrectly reject 9223372036854775807.  */
13449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13450   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13451                        && LARGE_OFF_T % 2147483647 == 1)
13452                       ? 1 : -1];
13453 int
13454 main ()
13455 {
13456
13457   ;
13458   return 0;
13459 }
13460 _ACEOF
13461 if ac_fn_c_try_compile "$LINENO"; then :
13462   ac_cv_sys_file_offset_bits=no; break
13463 fi
13464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h.  */
13467 #define _FILE_OFFSET_BITS 64
13468 #include <sys/types.h>
13469  /* Check that off_t can represent 2**63 - 1 correctly.
13470     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13471     since some C++ compilers masquerading as C compilers
13472     incorrectly reject 9223372036854775807.  */
13473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13474   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13475                        && LARGE_OFF_T % 2147483647 == 1)
13476                       ? 1 : -1];
13477 int
13478 main ()
13479 {
13480
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 if ac_fn_c_try_compile "$LINENO"; then :
13486   ac_cv_sys_file_offset_bits=64; break
13487 fi
13488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13489   ac_cv_sys_file_offset_bits=unknown
13490   break
13491 done
13492 fi
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13494 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13495 case $ac_cv_sys_file_offset_bits in #(
13496   no | unknown) ;;
13497   *)
13498 cat >>confdefs.h <<_ACEOF
13499 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13500 _ACEOF
13501 ;;
13502 esac
13503 rm -rf conftest*
13504   if test $ac_cv_sys_file_offset_bits = unknown; then
13505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13506 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13507 if ${ac_cv_sys_large_files+:} false; then :
13508   $as_echo_n "(cached) " >&6
13509 else
13510   while :; do
13511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h.  */
13513 #include <sys/types.h>
13514  /* Check that off_t can represent 2**63 - 1 correctly.
13515     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13516     since some C++ compilers masquerading as C compilers
13517     incorrectly reject 9223372036854775807.  */
13518 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13519   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13520                        && LARGE_OFF_T % 2147483647 == 1)
13521                       ? 1 : -1];
13522 int
13523 main ()
13524 {
13525
13526   ;
13527   return 0;
13528 }
13529 _ACEOF
13530 if ac_fn_c_try_compile "$LINENO"; then :
13531   ac_cv_sys_large_files=no; break
13532 fi
13533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h.  */
13536 #define _LARGE_FILES 1
13537 #include <sys/types.h>
13538  /* Check that off_t can represent 2**63 - 1 correctly.
13539     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13540     since some C++ compilers masquerading as C compilers
13541     incorrectly reject 9223372036854775807.  */
13542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13543   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13544                        && LARGE_OFF_T % 2147483647 == 1)
13545                       ? 1 : -1];
13546 int
13547 main ()
13548 {
13549
13550   ;
13551   return 0;
13552 }
13553 _ACEOF
13554 if ac_fn_c_try_compile "$LINENO"; then :
13555   ac_cv_sys_large_files=1; break
13556 fi
13557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13558   ac_cv_sys_large_files=unknown
13559   break
13560 done
13561 fi
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13563 $as_echo "$ac_cv_sys_large_files" >&6; }
13564 case $ac_cv_sys_large_files in #(
13565   no | unknown) ;;
13566   *)
13567 cat >>confdefs.h <<_ACEOF
13568 #define _LARGE_FILES $ac_cv_sys_large_files
13569 _ACEOF
13570 ;;
13571 esac
13572 rm -rf conftest*
13573   fi
13574
13575
13576 fi
13577
13578 # we know about some internals of ac_sys_largefile here...
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system differentiates 64bit off_t by defines" >&5
13580 $as_echo_n "checking whether system differentiates 64bit off_t by defines... " >&6; }
13581 ac_cv_sys_largefile_sensitive="no"
13582 if test ".${ac_cv_sys_file_offset_bits-no}${ac_cv_sys_large_files-no}" != ".nono"
13583 then ac_cv_sys_largefile_sensitive="yes"
13584
13585 $as_echo "#define LARGEFILE_SENSITIVE 1" >>confdefs.h
13586
13587 fi
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_sensitive" >&5
13589 $as_echo "$ac_cv_sys_largefile_sensitive" >&6; }
13590
13591 test ".$LARGEFILE_CFLAGS" = "." && LARGEFILE_CFLAGS=""
13592
13593 # Check whether --with-largefile was given.
13594 if test "${with_largefile+set}" = set; then :
13595   withval=$with_largefile;
13596 else
13597   with_largefile="no"
13598 fi
13599
13600 if test ".$ac_cv_sys_largefile_sensitive" = ".no" ; then
13601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiles library with the only off_t seen" >&5
13602 $as_echo "compiles library with the only off_t seen" >&6; }
13603 elif test ".$with_largefile" != ".no" ; then
13604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiles library as 64bit off_t variant - and renaming some function names" >&5
13605 $as_echo "compiles library as 64bit off_t variant - and renaming some function names" >&6; }
13606   LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGEFILE_SOURCE"
13607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CFLAGS $LARGEFILE_CFLAGS" >&5
13608 $as_echo "..adding CFLAGS $LARGEFILE_CFLAGS" >&6; }
13609   CFLAGS="$CFLAGS $LARGEFILE_CFLAGS"
13610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding 64 into RELEASE_INFO for the libraries" >&5
13611 $as_echo "..adding 64 into RELEASE_INFO for the libraries" >&6; }
13612   RELEASE_INFO="$RELEASE_INFO-64"
13613 else
13614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiles library as 32bit off_t variant - largefile is not the default here" >&5
13615 $as_echo "compiles library as 32bit off_t variant - largefile is not the default here" >&6; }
13616 fi
13617
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib being found" >&5
13619 $as_echo_n "checking for zlib being found... " >&6; }
13620 if test "_$ac_cv_header_zlib_h" != "_yes" ; then
13621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...oops: zlib.h not found - try adding some CPPFLAGS to configure call" >&5
13622 $as_echo "...oops: zlib.h not found - try adding some CPPFLAGS to configure call" >&6; }
13623          { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: and when linkage fails you might also need to set some LDFLAGS" >&5
13624 $as_echo "...note: and when linkage fails you might also need to set some LDFLAGS" >&6; }
13625   case "$prefix" in
13626     NONE|/usr)
13627             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: both can be set by specifying the install prefix of the zlib library" >&5
13628 $as_echo "...note: both can be set by specifying the install prefix of the zlib library" >&6; }
13629             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: via --with-zlib=path ... it will test for -Ipath/include -Lpath/lib" >&5
13630 $as_echo "...note: via --with-zlib=path ... it will test for -Ipath/include -Lpath/lib" >&6; }
13631     ;;
13632     *) if test -d $prefix/include ; then
13633          { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: -I$prefix/include is not added to CPPFLAGS automatically and" >&5
13634 $as_echo "...note: -I$prefix/include is not added to CPPFLAGS automatically and" >&6; }
13635          { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: neither is -L$prefix/lib for LDFLAGS .. both will be if you specify" >&5
13636 $as_echo "...note: neither is -L$prefix/lib for LDFLAGS .. both will be if you specify" >&6; }
13637          { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: --with-zlib to configure call" >&5
13638 $as_echo "...note: --with-zlib to configure call" >&6; }
13639        fi
13640      ;;
13641   esac
13642   as_fn_error $? "zlib.h not found: \"zlib\" is required to build \"$PACKAGE\"" "$LINENO" 5
13643   exit 1
13644 fi
13645 cat >conftest.c <<EOF
13646 #include <zlib.h>
13647 const char* zlib_VeRsIoN = ZLIB_VERSION "dEtEcT";
13648 EOF
13649 ZLIB_VERSION=`(eval "$ac_cpp conftest.c") 2>/dev/null \
13650 | grep zlib_VeRsIoN | sed -e 's,.*= *.,,' -e 's,. *.dEtEcT.*,,'`
13651 rm conftest.c
13652
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - $ZLIB_VERSION" >&5
13654 $as_echo "yes - $ZLIB_VERSION" >&6; }
13655 # ----------------------------------------------------------------
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir default" >&5
13657 $as_echo_n "checking docdir default... " >&6; }
13658
13659 # Check whether --with-docdir was given.
13660 if test "${with_docdir+set}" = set; then :
13661   withval=$with_docdir;
13662 else
13663   with_docdir="no"
13664 fi
13665
13666 case "${with_docdir}" in
13667  prefix/*)  docdir=` echo "$withval" | sed 's/^prefix/${prefix}'` ;;
13668  datadir/*) docdir=` echo "$withval" | sed 's/^datadir/${datadir}'` ;;
13669  yes) docdir='${prefix}/doc' ;;
13670  no)  docdir='${datadir}/doc' ;;
13671  /*|\\*|a-zA-Z:*) docdir="$with_docdir"  ;;
13672  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops" >&5
13673 $as_echo "oops" >&6; }
13674     as_fn_error $? "bad value ${withval} for --with-docdir" "$LINENO" 5
13675  ;;
13676 esac
13677
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
13679 $as_echo "$docdir" >&6; }
13680 # ----------------------------------------------------------------
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using debugging messages in libraries" >&5
13682 $as_echo_n "checking whether using debugging messages in libraries... " >&6; }
13683
13684 # Check whether --with-debug was given.
13685 if test "${with_debug+set}" = set; then :
13686   withval=$with_debug; case "${withval}" in
13687                 yes|no) with_debug="$withval" ;;
13688                 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops" >&5
13689 $as_echo "oops" >&6; }
13690                    as_fn_error $? "bad value ${withval} for --with-debug" "$LINENO" 5 ;;
13691        esac
13692 else
13693   with_debug="no"
13694 fi
13695
13696 test "$with_debug" != "yes" && with_debug="no" # yes or no
13697 test "$with_debug" = "yes" && export CFLAGS="$CFLAGS -DDEBUG"
13698 result="$with_debug" ; test "$result" = "yes" && result="yes, added -DDEBUG"
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
13700 $as_echo "$result" >&6; }
13701 if test "$with_debug" = "yes" ; then if test -n "$RELEASE_INFO" ; then
13702    RELEASE_INFO="$RELEASE_INFO-dbg"
13703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: modified release" >&5
13704 $as_echo "modified release" >&6; }
13705 fi fi
13706 # ----------------------------------------------------------------
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether thread stack is too small for bufsiz buffers" >&5
13708 $as_echo_n "checking whether thread stack is too small for bufsiz buffers... " >&6; }
13709  # many embedded platforms, superthreaded systems and kernel usage
13710  # will severely limit the stackspace for its threads. Use _LOWSTK
13711  # compile-define on those platforms.
13712
13713 # Check whether --with-lowstk was given.
13714 if test "${with_lowstk+set}" = set; then :
13715   withval=$with_lowstk; case "${withval}" in
13716                 yes|no|auto) with_lowstk="$withval" ;;
13717                 *) as_fn_error $? "bad value ${withval} for --with-lowstk" "$LINENO" 5 ;;
13718        esac
13719 else
13720   with_lowstk="auto"
13721 fi
13722
13723 if test "$with_lowstk" = "auto"; then
13724   case $target in
13725         *-palmos-*) $with_lowstk="yes" ;;
13726   esac
13727 fi
13728 test "$with_lowstk" != "yes" && with_lowstk="no" # yes or no
13729 test "$with_lowstk" = "yes" && CFLAGS="$CFLAGS -D_LOWSTK"
13730 result="$with_lowstk" ; test "$result" = "yes" && result="yes, added -D_LOWSTK"
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lowstk" >&5
13732 $as_echo "$with_lowstk" >&6; }
13733 # ---------------------------------------------------------------
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether can use mmap for file scanning" >&5
13735 $as_echo_n "checking whether can use mmap for file scanning... " >&6; }
13736  # system with mmap are probably better performing an searching
13737  # and parsing - atleast memory consumption is far better
13738 # Check whether --enable-mmap was given.
13739 if test "${enable_mmap+set}" = set; then :
13740   enableval=$enable_mmap; case "${enableval}" in
13741                 yes|no|auto) enable_mmap="${enableval}" ;;
13742                 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops" >&5
13743 $as_echo "oops" >&6; }
13744                    as_fn_error $? "bad value ${enableval} for --disable-mmap" "$LINENO" 5 ;;
13745       esac
13746 else
13747   enable_mmap="auto"
13748 fi
13749
13750 if test "$enable_mmap" = "auto"
13751 then
13752     test "$ac_cv_header_winbase_h"  && enable_mmap="yes, winbase.h"
13753     test "$ac_cv_header_sys_mman_h" && enable_mmap="yes, sys/mman.h"
13754 fi
13755 case "$enable_mmap" in
13756    yes|yes,*) CFLAGS="$CFLAGS -D_USE_MMAP"
13757       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mmap" >&5
13758 $as_echo "$enable_mmap" >&6; } ;;
13759    *) enable_mmap="no"
13760       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (just a bit slower)" >&5
13761 $as_echo "no (just a bit slower)" >&6; } ;;
13762 esac
13763 # ---------------------------------------------------------------
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether making SDL parts" >&5
13765 $as_echo_n "checking whether making SDL parts... " >&6; }
13766 SDL=""
13767 SDL_GENERATE=""
13768 # Check whether --enable-sdl was given.
13769 if test "${enable_sdl+set}" = set; then :
13770   enableval=$enable_sdl;
13771 else
13772   enable_sdl="no"
13773 fi
13774
13775 if test "$enable_sdl" = "no" ; then
13776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabled" >&5
13777 $as_echo "no, disabled" >&6; }
13778 else
13779    enable_sdl=`pkg-config --modversion sdl 2>/dev/null`
13780    if test -z "$enable_sdl"; then
13781       enable_sdl=`sdl-config --version 2>/dev/null`
13782       SDL_GENERATE="sdl-uninstalled.pc"
13783       enable_sdl="$enable_sdl (sdl-config)"
13784    else
13785       enable_sdl="$enable_sdl (pkgconfig)"
13786    fi
13787    enable_sdl="$enable_sdl."
13788    case ".$enable_sdl" in
13789      .1.*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using SDL $enable_sdl" >&5
13790 $as_echo "yes, using SDL $enable_sdl" >&6; }
13791            SDL="SDL" ;;
13792      .2.*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, untested $enable_sdl" >&5
13793 $as_echo "yes, untested $enable_sdl" >&6; }
13794            SDL="SDL" ;;
13795      *)    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, $enable_sdl" >&5
13796 $as_echo "no, $enable_sdl" >&6; } ;;
13797    esac
13798    if test -n "$SDL_GENERATE"; then
13799       { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled SDL generation of... $SDL_GENERATE" >&5
13800 $as_echo "enabled SDL generation of... $SDL_GENERATE" >&6; }
13801    fi
13802 fi
13803
13804
13805 # ---------------------------------------------------------------
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking running extra tests on make check" >&5
13807 $as_echo_n "checking running extra tests on make check... " >&6; }
13808 if test "MKZIP" != ":" ; then
13809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13810 $as_echo "yes" >&6; }
13811   ZIPTESTS=""
13812 else
13813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13814 $as_echo "no" >&6; }
13815   ZIPTESTS="#"
13816 fi
13817
13818 # ---------------------------------------------------------------
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking link options" >&5
13820 $as_echo_n "checking link options... " >&6; }
13821 ZZIPLIB_LDFLAGS=""
13822 case "$host_os" in mingw*)
13823     # we may assume that the backend is gnu-ld but DLLs need full resolution
13824     ZZIPLIB_LDFLAGS="${wl}-no-undefined ${wl}-export-all-symbols -mconsole"
13825     RESOLVES=' '
13826 ;; darwin*)
13827     # darwin never uses gnu-ld but the linker can do it anyway
13828     ZZIPLIB_LDFLAGS="-export-dynamic"
13829     RESOLVES=" # "
13830 ;; *)
13831     if test ".$can_build_shared" != ".no" ; then
13832       ZZIPLIB_LDFLAGS="-export-dynamic"
13833       if test ".$lt_cv_prog_gnu_ld" == ".yes" ; then
13834          ZZIPLIB_LDFLAGS="${wl}--export-dynamic"
13835          # TODO: that is for backward compatibility only
13836       fi
13837     fi
13838     RESOLVES=" # "
13839 ;; esac
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZZIPLIB_LDFLAGS $RESOLVES" >&5
13841 $as_echo "$ZZIPLIB_LDFLAGS $RESOLVES" >&6; }
13842
13843
13844
13845 # Check whether --with-defines was given.
13846 if test "${with_defines+set}" = set; then :
13847   withval=$with_defines;
13848 else
13849   with_defines="normal"
13850 fi
13851
13852
13853 #
13854 case ",$with_defines," in *,easy,*)
13855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CFLAGS -DZZIP_EASY" >&5
13856 $as_echo "..adding CFLAGS -DZZIP_EASY" >&6; }
13857   CFLAGS="$CFLAGS -DZZIP_EASY"
13858 ;; esac
13859 case ",$with_defines," in *,harden,*)
13860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CFLAGS -DZZIP_HARDEN" >&5
13861 $as_echo "..adding CFLAGS -DZZIP_HARDEN" >&6; }
13862   CFLAGS="$CFLAGS -DZZIP_HARDEN"
13863 ;; esac
13864 case ",$with_defines," in *,allow_modulo_entries,*)
13865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CFLAGS -DZZIP_ALLOW_MODULO_ENTRIES" >&5
13866 $as_echo "..adding CFLAGS -DZZIP_ALLOW_MODULO_ENTRIES" >&6; }
13867   CFLAGS="$CFLAGS -DZZIP_ALLOW_MODULO_ENTRIES"
13868 ;; esac
13869
13870 # ---------------------------------------------------------------
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking auto silent in maintainer mode" >&5
13872 $as_echo_n "checking auto silent in maintainer mode... " >&6; }
13873 if test "$USE_MAINTAINER_MODE" = "no" ; then
13874    test ".$TIMEOUT" = "." && TIMEOUT="9"
13875    AUTOHEADER="sleep $TIMEOUT ; true || autoheader || skipped"
13876    AUTOMAKE="sleep $TIMEOUT ; true || automake || skipped"
13877    AUTOCONF="sleep $TIMEOUT ; true || autoconf || skipped"
13878    if test ".$LIBTOOL" != "." ; then
13879       LIBTOOL="$LIBTOOL --silent"
13880       { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool-silent, auto-sleep-9" >&5
13881 $as_echo "libtool-silent, auto-sleep-9" >&6; }
13882    else
13883       { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto-sleep-9" >&5
13884 $as_echo "auto-sleep-9" >&6; }
13885    fi
13886 else
13887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13888 $as_echo "no" >&6; }
13889 fi
13890
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS frame-pointer" >&5
13892 $as_echo_n "checking CFLAGS frame-pointer... " >&6; }
13893 # Check whether --enable-frame-pointer was given.
13894 if test "${enable_frame_pointer+set}" = set; then :
13895   enableval=$enable_frame_pointer;
13896 fi
13897
13898 case ".$enable_frame_pointer" in
13899   .|.no|.no,*) test ".$enable_frame_pointer" = "." && enable_frame_pointer="no"
13900      CFLAGS=`echo   " $CFLAGS " | sed -e 's/ -g / /'`
13901      if test ".$GCC" = ".yes" ; then
13902         CFLAGS="$CFLAGS -fomit-frame-pointer"
13903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_frame_pointer, -fomit-frame-pointer added" >&5
13904 $as_echo "$enable_frame_pointer, -fomit-frame-pointer added" >&6; }
13905      else
13906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_frame_pointer, -g removed" >&5
13907 $as_echo "$enable_frame_pointer, -g removed" >&6; }
13908      fi  ;;
13909    *)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_frame_pointer, kept" >&5
13910 $as_echo "$enable_frame_pointer, kept" >&6; } ;;
13911 esac
13912
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
13914 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
13915 if ${ac_cv_cflags_warn_all+:} false; then :
13916   $as_echo_n "(cached) " >&6
13917 else
13918   ac_cv_cflags_warn_all="no, unknown"
13919
13920  ac_ext=c
13921 ac_cpp='$CPP $CPPFLAGS'
13922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13925
13926  ac_save_CFLAGS="$CFLAGS"
13927 for ac_arg in "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
13928 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13929    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h.  */
13931
13932 int
13933 main ()
13934 {
13935 return 0;
13936   ;
13937   return 0;
13938 }
13939 _ACEOF
13940 if ac_fn_c_try_compile "$LINENO"; then :
13941   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13942 fi
13943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13944 done
13945  CFLAGS="$ac_save_CFLAGS"
13946  ac_ext=c
13947 ac_cpp='$CPP $CPPFLAGS'
13948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13951
13952
13953 fi
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13955 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13956 case ".$ac_cv_cflags_warn_all" in
13957      .ok|.ok,*)  ;;
13958    .|.no|.no,*)
13959  ;;
13960    *)
13961    if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
13962    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
13963   (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
13964   ac_status=$?
13965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13966   test $ac_status = 0; }
13967    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13968   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13969   ac_status=$?
13970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13971   test $ac_status = 0; }
13972                       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13973    fi
13974  ;;
13975 esac
13976
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wpointer-arith" >&5
13978 $as_echo_n "checking CFLAGS for gcc -Wpointer-arith... " >&6; }
13979 if ${ac_cv_cflags_gcc_option__Wpointer_arith+:} false; then :
13980   $as_echo_n "(cached) " >&6
13981 else
13982   ac_cv_cflags_gcc_option__Wpointer_arith="no, unknown"
13983
13984  ac_ext=c
13985 ac_cpp='$CPP $CPPFLAGS'
13986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13989
13990  ac_save_CFLAGS="$CFLAGS"
13991 for ac_arg in "-pedantic -Werror % -Wpointer-arith"     "-pedantic % -Wpointer-arith %% no, obsolete"     #
13992 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13993    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h.  */
13995
13996 int
13997 main ()
13998 {
13999 return 0;
14000   ;
14001   return 0;
14002 }
14003 _ACEOF
14004 if ac_fn_c_try_compile "$LINENO"; then :
14005   ac_cv_cflags_gcc_option__Wpointer_arith=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
14006 fi
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14008 done
14009  CFLAGS="$ac_save_CFLAGS"
14010  ac_ext=c
14011 ac_cpp='$CPP $CPPFLAGS'
14012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14015
14016
14017 fi
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wpointer_arith" >&5
14019 $as_echo "$ac_cv_cflags_gcc_option__Wpointer_arith" >&6; }
14020 case ".$ac_cv_cflags_gcc_option__Wpointer_arith" in
14021      .ok|.ok,*)  ;;
14022    .|.no|.no,*)  ;;
14023    *)
14024    if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wpointer_arith " 2>&1 >/dev/null
14025    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wpointer_arith"; } >&5
14026   (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wpointer_arith) 2>&5
14027   ac_status=$?
14028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14029   test $ac_status = 0; }
14030    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wpointer_arith\""; } >&5
14031   (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wpointer_arith") 2>&5
14032   ac_status=$?
14033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14034   test $ac_status = 0; }
14035                       CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wpointer_arith"
14036    fi
14037  ;;
14038 esac
14039
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wsign-compare" >&5
14041 $as_echo_n "checking CFLAGS for gcc -Wsign-compare... " >&6; }
14042 if ${ac_cv_cflags_gcc_option__Wsign_compare+:} false; then :
14043   $as_echo_n "(cached) " >&6
14044 else
14045   ac_cv_cflags_gcc_option__Wsign_compare="no, unknown"
14046
14047  ac_ext=c
14048 ac_cpp='$CPP $CPPFLAGS'
14049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14052
14053  ac_save_CFLAGS="$CFLAGS"
14054 for ac_arg in "-pedantic -Werror % -Wsign-compare"     "-pedantic % -Wsign-compare %% no, obsolete"     #
14055 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
14056    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057 /* end confdefs.h.  */
14058
14059 int
14060 main ()
14061 {
14062 return 0;
14063   ;
14064   return 0;
14065 }
14066 _ACEOF
14067 if ac_fn_c_try_compile "$LINENO"; then :
14068   ac_cv_cflags_gcc_option__Wsign_compare=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
14069 fi
14070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14071 done
14072  CFLAGS="$ac_save_CFLAGS"
14073  ac_ext=c
14074 ac_cpp='$CPP $CPPFLAGS'
14075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14078
14079
14080 fi
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wsign_compare" >&5
14082 $as_echo "$ac_cv_cflags_gcc_option__Wsign_compare" >&6; }
14083 case ".$ac_cv_cflags_gcc_option__Wsign_compare" in
14084      .ok|.ok,*)  ;;
14085    .|.no|.no,*)  ;;
14086    *)
14087    if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wsign_compare " 2>&1 >/dev/null
14088    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wsign_compare"; } >&5
14089   (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wsign_compare) 2>&5
14090   ac_status=$?
14091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14092   test $ac_status = 0; }
14093    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wsign_compare\""; } >&5
14094   (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wsign_compare") 2>&5
14095   ac_status=$?
14096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14097   test $ac_status = 0; }
14098                       CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wsign_compare"
14099    fi
14100  ;;
14101 esac
14102
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wmissing-declarations" >&5
14104 $as_echo_n "checking CFLAGS for gcc -Wmissing-declarations... " >&6; }
14105 if ${ac_cv_cflags_gcc_option__Wmissing_declarations+:} false; then :
14106   $as_echo_n "(cached) " >&6
14107 else
14108   ac_cv_cflags_gcc_option__Wmissing_declarations="no, unknown"
14109
14110  ac_ext=c
14111 ac_cpp='$CPP $CPPFLAGS'
14112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14115
14116  ac_save_CFLAGS="$CFLAGS"
14117 for ac_arg in "-pedantic -Werror % -Wmissing-declarations"     "-pedantic % -Wmissing-declarations %% no, obsolete"     #
14118 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
14119    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h.  */
14121
14122 int
14123 main ()
14124 {
14125 return 0;
14126   ;
14127   return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_c_try_compile "$LINENO"; then :
14131   ac_cv_cflags_gcc_option__Wmissing_declarations=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
14132 fi
14133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14134 done
14135  CFLAGS="$ac_save_CFLAGS"
14136  ac_ext=c
14137 ac_cpp='$CPP $CPPFLAGS'
14138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14141
14142
14143 fi
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wmissing_declarations" >&5
14145 $as_echo "$ac_cv_cflags_gcc_option__Wmissing_declarations" >&6; }
14146 case ".$ac_cv_cflags_gcc_option__Wmissing_declarations" in
14147      .ok|.ok,*)  ;;
14148    .|.no|.no,*)  ;;
14149    *)
14150    if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wmissing_declarations " 2>&1 >/dev/null
14151    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wmissing_declarations"; } >&5
14152   (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wmissing_declarations) 2>&5
14153   ac_status=$?
14154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14155   test $ac_status = 0; }
14156    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wmissing_declarations\""; } >&5
14157   (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmissing_declarations") 2>&5
14158   ac_status=$?
14159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14160   test $ac_status = 0; }
14161                       CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmissing_declarations"
14162    fi
14163  ;;
14164 esac
14165
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wdeclaration-after-statement" >&5
14167 $as_echo_n "checking CFLAGS for gcc -Wdeclaration-after-statement... " >&6; }
14168 if ${ac_cv_cflags_gcc_option__Wdeclaration_after_statement+:} false; then :
14169   $as_echo_n "(cached) " >&6
14170 else
14171   ac_cv_cflags_gcc_option__Wdeclaration_after_statement="no, unknown"
14172
14173  ac_ext=c
14174 ac_cpp='$CPP $CPPFLAGS'
14175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14178
14179  ac_save_CFLAGS="$CFLAGS"
14180 for ac_arg in "-pedantic -Werror % -Wdeclaration-after-statement"     "-pedantic % -Wdeclaration-after-statement %% no, obsolete"     #
14181 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
14182    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h.  */
14184
14185 int
14186 main ()
14187 {
14188 return 0;
14189   ;
14190   return 0;
14191 }
14192 _ACEOF
14193 if ac_fn_c_try_compile "$LINENO"; then :
14194   ac_cv_cflags_gcc_option__Wdeclaration_after_statement=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
14195 fi
14196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14197 done
14198  CFLAGS="$ac_save_CFLAGS"
14199  ac_ext=c
14200 ac_cpp='$CPP $CPPFLAGS'
14201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14204
14205
14206 fi
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wdeclaration_after_statement" >&5
14208 $as_echo "$ac_cv_cflags_gcc_option__Wdeclaration_after_statement" >&6; }
14209 case ".$ac_cv_cflags_gcc_option__Wdeclaration_after_statement" in
14210      .ok|.ok,*)  ;;
14211    .|.no|.no,*)  ;;
14212    *)
14213    if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wdeclaration_after_statement " 2>&1 >/dev/null
14214    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wdeclaration_after_statement"; } >&5
14215   (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wdeclaration_after_statement) 2>&5
14216   ac_status=$?
14217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14218   test $ac_status = 0; }
14219    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wdeclaration_after_statement\""; } >&5
14220   (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wdeclaration_after_statement") 2>&5
14221   ac_status=$?
14222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14223   test $ac_status = 0; }
14224                       CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wdeclaration_after_statement"
14225    fi
14226  ;;
14227 esac
14228
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Werror-implicit-function-declaration" >&5
14230 $as_echo_n "checking CFLAGS for gcc -Werror-implicit-function-declaration... " >&6; }
14231 if ${ac_cv_cflags_gcc_option__Werror_implicit_function_declaration+:} false; then :
14232   $as_echo_n "(cached) " >&6
14233 else
14234   ac_cv_cflags_gcc_option__Werror_implicit_function_declaration="no, unknown"
14235
14236  ac_ext=c
14237 ac_cpp='$CPP $CPPFLAGS'
14238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14241
14242  ac_save_CFLAGS="$CFLAGS"
14243 for ac_arg in "-pedantic -Werror % -Werror-implicit-function-declaration"     "-pedantic % -Werror-implicit-function-declaration %% no, obsolete"     #
14244 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
14245    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h.  */
14247
14248 int
14249 main ()
14250 {
14251 return 0;
14252   ;
14253   return 0;
14254 }
14255 _ACEOF
14256 if ac_fn_c_try_compile "$LINENO"; then :
14257   ac_cv_cflags_gcc_option__Werror_implicit_function_declaration=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
14258 fi
14259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14260 done
14261  CFLAGS="$ac_save_CFLAGS"
14262  ac_ext=c
14263 ac_cpp='$CPP $CPPFLAGS'
14264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14267
14268
14269 fi
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" >&5
14271 $as_echo "$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" >&6; }
14272 case ".$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" in
14273      .ok|.ok,*)  ;;
14274    .|.no|.no,*)  ;;
14275    *)
14276    if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration " 2>&1 >/dev/null
14277    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration"; } >&5
14278   (: CFLAGS does contain $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration) 2>&5
14279   ac_status=$?
14280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14281   test $ac_status = 0; }
14282    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration\""; } >&5
14283   (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration") 2>&5
14284   ac_status=$?
14285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14286   test $ac_status = 0; }
14287                       CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration"
14288    fi
14289  ;;
14290 esac
14291
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wstrict-aliasing" >&5
14293 $as_echo_n "checking CFLAGS for gcc -Wstrict-aliasing... " >&6; }
14294 if ${ac_cv_cflags_gcc_option__Wstrict_aliasing+:} false; then :
14295   $as_echo_n "(cached) " >&6
14296 else
14297   ac_cv_cflags_gcc_option__Wstrict_aliasing="no, unknown"
14298
14299  ac_ext=c
14300 ac_cpp='$CPP $CPPFLAGS'
14301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14304
14305  ac_save_CFLAGS="$CFLAGS"
14306 for ac_arg in "-pedantic -Werror % -Wstrict-aliasing"     "-pedantic % -Wstrict-aliasing %% no, obsolete"     #
14307 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
14308    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h.  */
14310
14311 int
14312 main ()
14313 {
14314 return 0;
14315   ;
14316   return 0;
14317 }
14318 _ACEOF
14319 if ac_fn_c_try_compile "$LINENO"; then :
14320   ac_cv_cflags_gcc_option__Wstrict_aliasing=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
14321 fi
14322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14323 done
14324  CFLAGS="$ac_save_CFLAGS"
14325  ac_ext=c
14326 ac_cpp='$CPP $CPPFLAGS'
14327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14330
14331
14332 fi
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wstrict_aliasing" >&5
14334 $as_echo "$ac_cv_cflags_gcc_option__Wstrict_aliasing" >&6; }
14335 case ".$ac_cv_cflags_gcc_option__Wstrict_aliasing" in
14336      .ok|.ok,*)  ;;
14337    .|.no|.no,*)  ;;
14338    *)
14339    if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wstrict_aliasing " 2>&1 >/dev/null
14340    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wstrict_aliasing"; } >&5
14341   (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wstrict_aliasing) 2>&5
14342   ac_status=$?
14343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14344   test $ac_status = 0; }
14345    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wstrict_aliasing\""; } >&5
14346   (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wstrict_aliasing") 2>&5
14347   ac_status=$?
14348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14349   test $ac_status = 0; }
14350                       CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wstrict_aliasing"
14351    fi
14352  ;;
14353 esac
14354
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Warray-bounds" >&5
14356 $as_echo_n "checking CFLAGS for gcc -Warray-bounds... " >&6; }
14357 if ${ac_cv_cflags_gcc_option__Warray_bounds+:} false; then :
14358   $as_echo_n "(cached) " >&6
14359 else
14360   ac_cv_cflags_gcc_option__Warray_bounds="no, unknown"
14361
14362  ac_ext=c
14363 ac_cpp='$CPP $CPPFLAGS'
14364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14367
14368  ac_save_CFLAGS="$CFLAGS"
14369 for ac_arg in "-pedantic -Werror % -Warray-bounds"     "-pedantic % -Warray-bounds %% no, obsolete"     #
14370 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
14371    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h.  */
14373
14374 int
14375 main ()
14376 {
14377 return 0;
14378   ;
14379   return 0;
14380 }
14381 _ACEOF
14382 if ac_fn_c_try_compile "$LINENO"; then :
14383   ac_cv_cflags_gcc_option__Warray_bounds=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
14384 fi
14385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386 done
14387  CFLAGS="$ac_save_CFLAGS"
14388  ac_ext=c
14389 ac_cpp='$CPP $CPPFLAGS'
14390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14393
14394
14395 fi
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Warray_bounds" >&5
14397 $as_echo "$ac_cv_cflags_gcc_option__Warray_bounds" >&6; }
14398 case ".$ac_cv_cflags_gcc_option__Warray_bounds" in
14399      .ok|.ok,*)  ;;
14400    .|.no|.no,*)  ;;
14401    *)
14402    if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Warray_bounds " 2>&1 >/dev/null
14403    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Warray_bounds"; } >&5
14404   (: CFLAGS does contain $ac_cv_cflags_gcc_option__Warray_bounds) 2>&5
14405   ac_status=$?
14406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14407   test $ac_status = 0; }
14408    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Warray_bounds\""; } >&5
14409   (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Warray_bounds") 2>&5
14410   ac_status=$?
14411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14412   test $ac_status = 0; }
14413                       CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Warray_bounds"
14414    fi
14415  ;;
14416 esac
14417
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS making strings readonly" >&5
14419 $as_echo_n "checking CFLAGS making strings readonly... " >&6; }
14420 if ${ac_cv_cflags_no_writable_strings+:} false; then :
14421   $as_echo_n "(cached) " >&6
14422 else
14423   ac_cv_cflags_no_writable_strings="no, unknown"
14424
14425  ac_ext=c
14426 ac_cpp='$CPP $CPPFLAGS'
14427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14430
14431  ac_save_CFLAGS="$CFLAGS"
14432 # IRIX C compiler:
14433 #      -use_readonly_const is the default for IRIX C,
14434 #       puts them into .rodata, but they are copied later.
14435 #       need to be "-G0 -rdatashared" for strictmode but
14436 #       I am not sure what effect that has really.         - guidod
14437 for ac_arg in "-pedantic % -fno-writable-strings -Wwrite-strings"    "-pedantic % -fconst-strings -Wwrite-strings"    "-v -Xc    % -xstrconst"    "+w1 -Aa   % +ESlit"         "-w0 -std1 % -readonly_strings"    "-fullwarn -use_readonly_const %% ok, its the default"    #
14438 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
14439    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440 /* end confdefs.h.  */
14441
14442 int
14443 main ()
14444 {
14445 return 0;
14446   ;
14447   return 0;
14448 }
14449 _ACEOF
14450 if ac_fn_c_try_compile "$LINENO"; then :
14451   ac_cv_cflags_no_writable_strings=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
14452 fi
14453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454 done
14455 case ".$ac_cv_cflags_no_writable_strings" in
14456    .|.no|.no,*) ;;
14457    *) # sanity check - testing strcpy() from string.h
14458       cp config.log config.tmp
14459       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h.  */
14461 #include <string.h>
14462 int
14463 main ()
14464 {
14465
14466       char test[16];
14467       if (strcpy (test, "test")) return 1;
14468   ;
14469   return 0;
14470 }
14471 _ACEOF
14472 if ac_fn_c_try_compile "$LINENO"; then :
14473         if test `diff config.log config.tmp | grep -i warning | wc -l` != 0
14474   then ac_cv_cflags_no_writable_strings="no, suppressed, string.h," ; fi
14475 else
14476   ac_cv_cflags_no_writable_strings="no, suppressed, string.h"
14477 fi
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479       rm config.tmp
14480    ;;
14481 esac
14482    CFLAGS="$ac_save_CFLAGS"
14483    ac_ext=c
14484 ac_cpp='$CPP $CPPFLAGS'
14485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14488
14489
14490 fi
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_no_writable_strings" >&5
14492 $as_echo "$ac_cv_cflags_no_writable_strings" >&6; }
14493 case ".$ac_cv_cflags_no_writable_strings" in
14494      .ok|.ok,*)  ;;
14495    .|.no|.no,*)
14496  ;;
14497    *)
14498    if echo " $CFLAGS " | grep " $ac_cv_cflags_no_writable_strings " 2>&1 >/dev/null
14499    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_no_writable_strings"; } >&5
14500   (: CFLAGS does contain $ac_cv_cflags_no_writable_strings) 2>&5
14501   ac_status=$?
14502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14503   test $ac_status = 0; }
14504    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_no_writable_strings\""; } >&5
14505   (: CFLAGS="$CFLAGS $ac_cv_cflags_no_writable_strings") 2>&5
14506   ac_status=$?
14507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14508   test $ac_status = 0; }
14509                       CFLAGS="$CFLAGS $ac_cv_cflags_no_writable_strings"
14510    fi
14511  ;;
14512 esac
14513
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for strict prototypes" >&5
14515 $as_echo_n "checking CFLAGS for strict prototypes... " >&6; }
14516 if ${ac_cv_cflags_strict_prototypes+:} false; then :
14517   $as_echo_n "(cached) " >&6
14518 else
14519   ac_cv_cflags_strict_prototypes="no, unknown"
14520
14521  ac_ext=c
14522 ac_cpp='$CPP $CPPFLAGS'
14523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14526
14527  ac_save_CFLAGS="$CFLAGS"
14528 for ac_arg in "-pedantic % -fstrict-prototypes -Wstrict-prototypes"    "-pedantic % -Wstrict-prototypes"    "-pedantic % -Wmissing-prototypes"    "-pedantic % -Werror-implicit-function-declaration"    "-pedantic % -Wimplicit-function-declaration"    #
14529 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
14530    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h.  */
14532
14533 int
14534 main ()
14535 {
14536 return 0;
14537   ;
14538   return 0;
14539 }
14540 _ACEOF
14541 if ac_fn_c_try_compile "$LINENO"; then :
14542   ac_cv_cflags_strict_prototypes=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
14543 fi
14544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14545 done
14546 case ".$ac_cv_cflags_strict_prototypes" in
14547    .|.no|.no,*) ;;
14548    *) # sanity check with signal() from sys/signal.h
14549     cp config.log config.tmp
14550     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h.  */
14552 #include <signal.h>
14553 int
14554 main ()
14555 {
14556
14557     if (signal (SIGINT, SIG_IGN) == SIG_DFL) return 1;
14558     if (signal (SIGINT, SIG_IGN) != SIG_DFL) return 2;
14559   ;
14560   return 0;
14561 }
14562 _ACEOF
14563 if ac_fn_c_try_compile "$LINENO"; then :
14564       if test `diff config.log config.tmp | grep -i warning | wc -l` != 0
14565 then if test `diff config.log config.tmp | grep -i warning | wc -l` != 1
14566 then ac_cv_cflags_strict_prototypes="no, suppressed, signal.h," ; fi ; fi
14567 else
14568   ac_cv_cflags_strict_prototypes="no, suppressed, signal.h"
14569 fi
14570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14571     rm config.tmp
14572   ;;
14573 esac
14574  CFLAGS="$ac_save_CFLAGS"
14575  ac_ext=c
14576 ac_cpp='$CPP $CPPFLAGS'
14577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14580
14581
14582 fi
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_strict_prototypes" >&5
14584 $as_echo "$ac_cv_cflags_strict_prototypes" >&6; }
14585 case ".$ac_cv_cflags_strict_prototypes" in
14586      .ok|.ok,*)  ;;
14587    .|.no|.no,*)
14588  ;;
14589    *)
14590    if echo " $CFLAGS " | grep " $ac_cv_cflags_strict_prototypes " 2>&1 >/dev/null
14591    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_strict_prototypes"; } >&5
14592   (: CFLAGS does contain $ac_cv_cflags_strict_prototypes) 2>&5
14593   ac_status=$?
14594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14595   test $ac_status = 0; }
14596    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_strict_prototypes\""; } >&5
14597   (: CFLAGS="$CFLAGS $ac_cv_cflags_strict_prototypes") 2>&5
14598   ac_status=$?
14599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14600   test $ac_status = 0; }
14601                       CFLAGS="$CFLAGS $ac_cv_cflags_strict_prototypes"
14602    fi
14603  ;;
14604 esac
14605
14606 # ---------------------------------------------------------------
14607   # The prefix default can be set in configure.ac (otherwise it is /usr/local)
14608   test "x$prefix" = xNONE && prefix=$ac_default_prefix
14609   # Let make expand exec_prefix. Allows to override the makevar 'prefix' later
14610   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14611
14612 # Check whether --enable-enable-default-pkgconfigdir was given.
14613 if test "${enable_enable_default_pkgconfigdir+set}" = set; then :
14614   enableval=$enable_enable_default_pkgconfigdir;
14615 fi
14616
14617 test ".$enable_default_pkgconfigdir" = "." && enable_default_pkgconfigdir="no"
14618 case ".$enable_default_pkgconfigdir" in
14619   .no) ax_warning_default_pkgconfig_def='${libdir}/pkgconfig' ;;
14620   .yes) # autodetect
14621  if test ".$PKG_CONFIG" = "." ; then # we use the same default as in pkg.m4
14622     # Extract the first word of "pkg-config", so it can be a program name with args.
14623 set dummy pkg-config; ac_word=$2
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14625 $as_echo_n "checking for $ac_word... " >&6; }
14626 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14627   $as_echo_n "(cached) " >&6
14628 else
14629   case $PKG_CONFIG in
14630   [\\/]* | ?:[\\/]*)
14631   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14632   ;;
14633   *)
14634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14635 for as_dir in $PATH
14636 do
14637   IFS=$as_save_IFS
14638   test -z "$as_dir" && as_dir=.
14639     for ac_exec_ext in '' $ac_executable_extensions; do
14640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14641     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14643     break 2
14644   fi
14645 done
14646   done
14647 IFS=$as_save_IFS
14648
14649   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14650   ;;
14651 esac
14652 fi
14653 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14654 if test -n "$PKG_CONFIG"; then
14655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14656 $as_echo "$PKG_CONFIG" >&6; }
14657 else
14658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14659 $as_echo "no" >&6; }
14660 fi
14661
14662
14663  fi
14664  if test "$PKG_CONFIG" = "no"
14665  then ax_warning_default_pkgconfig_def="/tmp" ; test -d "/usr/lib/pkgconfig" && ax_warning_default_pkgconfig_def="/usr/lib/pkgconfig"
14666  else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_def" ||
14667 $as_expr X"$ax_warning_default_pkgconfig_def" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14668          X"$ax_warning_default_pkgconfig_def" : 'X\(//\)[^/]' \| \
14669          X"$ax_warning_default_pkgconfig_def" : 'X\(//\)$' \| \
14670          X"$ax_warning_default_pkgconfig_def" : 'X\(/\)' \| . 2>/dev/null ||
14671 $as_echo X"$ax_warning_default_pkgconfig_def" |
14672     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14673             s//\1/
14674             q
14675           }
14676           /^X\(\/\/\)[^/].*/{
14677             s//\1/
14678             q
14679           }
14680           /^X\(\/\/\)$/{
14681             s//\1/
14682             q
14683           }
14684           /^X\(\/\).*/{
14685             s//\1/
14686             q
14687           }
14688           s/.*/./; q'` ;
14689       if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then
14690           ax_warning_default_pkgconfig_def="$ax_warning_default_pkgconfig_bin/lib/pkgconfig"
14691       else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_def" ||
14692 $as_expr X"$ax_warning_default_pkgconfig_def" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14693          X"$ax_warning_default_pkgconfig_def" : 'X\(//\)[^/]' \| \
14694          X"$ax_warning_default_pkgconfig_def" : 'X\(//\)$' \| \
14695          X"$ax_warning_default_pkgconfig_def" : 'X\(/\)' \| . 2>/dev/null ||
14696 $as_echo X"$ax_warning_default_pkgconfig_def" |
14697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14698             s//\1/
14699             q
14700           }
14701           /^X\(\/\/\)[^/].*/{
14702             s//\1/
14703             q
14704           }
14705           /^X\(\/\/\)$/{
14706             s//\1/
14707             q
14708           }
14709           /^X\(\/\).*/{
14710             s//\1/
14711             q
14712           }
14713           s/.*/./; q'`
14714       if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then
14715           ax_warning_default_pkgconfig_def="$ax_warning_default_pkgconfig_bin/lib/pkgconfig"
14716       else
14717       if test -d "/usr/lib/pkgconfig" ; then
14718           ax_warning_default_pkgconfig_def="/usr/lib/pkgconfig"
14719       else
14720           ax_warning_default_pkgconfig_def="/tmp"
14721       fi fi fi
14722  fi ;;
14723   *) ax_warning_default_pkgconfig_def="$enable_default_pkgconfigdir" ;;
14724 esac
14725 ax_warning_default_pkgconfig_loc='$ax_warning_default_pkgconfig_def'
14726
14727  if test ".$PKG_CONFIG" = "." ; then # we use the same default as in pkg.m4
14728     # Extract the first word of "pkg-config", so it can be a program name with args.
14729 set dummy pkg-config; ac_word=$2
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14731 $as_echo_n "checking for $ac_word... " >&6; }
14732 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14733   $as_echo_n "(cached) " >&6
14734 else
14735   case $PKG_CONFIG in
14736   [\\/]* | ?:[\\/]*)
14737   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14738   ;;
14739   *)
14740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14741 for as_dir in $PATH
14742 do
14743   IFS=$as_save_IFS
14744   test -z "$as_dir" && as_dir=.
14745     for ac_exec_ext in '' $ac_executable_extensions; do
14746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14747     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14749     break 2
14750   fi
14751 done
14752   done
14753 IFS=$as_save_IFS
14754
14755   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14756   ;;
14757 esac
14758 fi
14759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14760 if test -n "$PKG_CONFIG"; then
14761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14762 $as_echo "$PKG_CONFIG" >&6; }
14763 else
14764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14765 $as_echo "no" >&6; }
14766 fi
14767
14768
14769  fi
14770  if test "$PKG_CONFIG" = "no"
14771  then ax_warning_default_pkgconfig_dir="/" ; test -d "/usr/lib/pkgconfig" && ax_warning_default_pkgconfig_dir="/usr/lib/pkgconfig"
14772  else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_dir" ||
14773 $as_expr X"$ax_warning_default_pkgconfig_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14774          X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)[^/]' \| \
14775          X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)$' \| \
14776          X"$ax_warning_default_pkgconfig_dir" : 'X\(/\)' \| . 2>/dev/null ||
14777 $as_echo X"$ax_warning_default_pkgconfig_dir" |
14778     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14779             s//\1/
14780             q
14781           }
14782           /^X\(\/\/\)[^/].*/{
14783             s//\1/
14784             q
14785           }
14786           /^X\(\/\/\)$/{
14787             s//\1/
14788             q
14789           }
14790           /^X\(\/\).*/{
14791             s//\1/
14792             q
14793           }
14794           s/.*/./; q'` ;
14795       if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then
14796           ax_warning_default_pkgconfig_dir="$ax_warning_default_pkgconfig_bin/lib/pkgconfig"
14797       else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_dir" ||
14798 $as_expr X"$ax_warning_default_pkgconfig_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14799          X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)[^/]' \| \
14800          X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)$' \| \
14801          X"$ax_warning_default_pkgconfig_dir" : 'X\(/\)' \| . 2>/dev/null ||
14802 $as_echo X"$ax_warning_default_pkgconfig_dir" |
14803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14804             s//\1/
14805             q
14806           }
14807           /^X\(\/\/\)[^/].*/{
14808             s//\1/
14809             q
14810           }
14811           /^X\(\/\/\)$/{
14812             s//\1/
14813             q
14814           }
14815           /^X\(\/\).*/{
14816             s//\1/
14817             q
14818           }
14819           s/.*/./; q'`
14820       if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then
14821           ax_warning_default_pkgconfig_dir="$ax_warning_default_pkgconfig_bin/lib/pkgconfig"
14822       else
14823       if test -d "/usr/lib/pkgconfig" ; then
14824           ax_warning_default_pkgconfig_dir="/usr/lib/pkgconfig"
14825       else
14826           ax_warning_default_pkgconfig_dir="/"
14827       fi fi fi
14828  fi
14829 { { $as_echo "$as_me:${as_lineno-$LINENO}: : last pkgconfig dir is assumed as \"\$ax_warning_default_pkgconfig_dir\""; } >&5
14830   (: last pkgconfig dir is assumed as "$ax_warning_default_pkgconfig_dir") 2>&5
14831   ac_status=$?
14832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14833   test $ac_status = 0; }
14834 ax_warning_default_pkgconfig_dir=`eval "echo $ax_warning_default_pkgconfig_dir"`
14835 ax_warning_default_pkgconfig_dir=`eval "echo $ax_warning_default_pkgconfig_dir"`
14836 ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"`
14837 ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"`
14838 ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"`
14839 ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"`
14840 for ax_warning_default_pkgconfig_dir in `echo "$PKG_CONFIG_PATH:$ax_warning_default_pkgconfig_dir" | sed -e 's,:, ,g'` ; do
14841     { { $as_echo "$as_me:${as_lineno-$LINENO}: : test \".\$ax_warning_default_pkgconfig_loc\" = \".\$ax_warning_default_pkgconfig_dir\""; } >&5
14842   (: test ".$ax_warning_default_pkgconfig_loc" = ".$ax_warning_default_pkgconfig_dir") 2>&5
14843   ac_status=$?
14844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14845   test $ac_status = 0; }
14846     test ".$ax_warning_default_pkgconfig_loc" = ".$ax_warning_default_pkgconfig_dir" && break
14847 done
14848 if  test "$ax_warning_default_pkgconfig_loc" != "$ax_warning_default_pkgconfig_dir" ; then
14849          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: pkgconfigdir=$ax_warning_default_pkgconfig_loc (see config.log)" >&5
14850 $as_echo "$as_me: warning: pkgconfigdir=$ax_warning_default_pkgconfig_loc (see config.log)" >&6;}
14851    { $as_echo "$as_me:${as_lineno-$LINENO}: perhaps: make install pkgconfigdir=$ax_warning_default_pkgconfig_dir" >&5
14852 $as_echo "$as_me: perhaps: make install pkgconfigdir=$ax_warning_default_pkgconfig_dir" >&6;}
14853    cat >&5 <<EOF
14854  pkgconfigdir:  the default pkgconfigdir of $ax_warning_default_pkgconfig_loc
14855  pkgconfigdir:  is not listed in the dirlist where pkg-config will look for
14856  pkgconfigdir:  package-configs - you can override the install-path using
14857  pkgconfigdir:  make install pkgconfigdir=$ax_warning_default_pkgconfig_dir
14858  pkgconfigdir:  or set/append the directory to the environment variable
14859  pkgconfigdir:  PKG_CONFIG_PATH="$ax_warning_default_pkgconfig_loc"
14860 EOF
14861       fi
14862
14863 pkgconfigdir="$ax_warning_default_pkgconfig_dir"
14864
14865
14866 # Check whether --enable-enable-default-aclocaldir was given.
14867 if test "${enable_enable_default_aclocaldir+set}" = set; then :
14868   enableval=$enable_enable_default_aclocaldir;
14869 fi
14870
14871 test ".$enable_default_aclocaldir" = "." && enable_default_aclocaldir="no"
14872 case ".$enable_default_aclocaldir" in
14873   .no) ax_warning_default_aclocal_def='${datadir}/aclocal' ;;
14874   .yes) # autodetect
14875  if test ".$ACLOCAL" = "." ; then
14876     # Extract the first word of "aclocal", so it can be a program name with args.
14877 set dummy aclocal; ac_word=$2
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14879 $as_echo_n "checking for $ac_word... " >&6; }
14880 if ${ac_cv_path_ACLOCAL+:} false; then :
14881   $as_echo_n "(cached) " >&6
14882 else
14883   case $ACLOCAL in
14884   [\\/]* | ?:[\\/]*)
14885   ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
14886   ;;
14887   *)
14888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14889 for as_dir in $PATH
14890 do
14891   IFS=$as_save_IFS
14892   test -z "$as_dir" && as_dir=.
14893     for ac_exec_ext in '' $ac_executable_extensions; do
14894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14895     ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
14896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14897     break 2
14898   fi
14899 done
14900   done
14901 IFS=$as_save_IFS
14902
14903   test -z "$ac_cv_path_ACLOCAL" && ac_cv_path_ACLOCAL=":"
14904   ;;
14905 esac
14906 fi
14907 ACLOCAL=$ac_cv_path_ACLOCAL
14908 if test -n "$ACLOCAL"; then
14909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
14910 $as_echo "$ACLOCAL" >&6; }
14911 else
14912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14913 $as_echo "no" >&6; }
14914 fi
14915
14916
14917  fi
14918  ax_warning_default_aclocal_bin="$ACLOCAL"
14919  test ".$ax_warning_default_aclocal_bin" = "." && ax_warning_default_aclocal_bin="aclocal"
14920  ax_warning_default_aclocal_def=`test ".$SHELL" = "." && SHELL="'sh'" ; eval "$ax_warning_default_aclocal_bin --print-ac-dir"`
14921  test ".$ax_warning_default_aclocal_def" = "." && test -d "/usr/share/aclocal" && ax_warning_default_aclocal_def="/usr/share/aclocal"
14922  test ".$ax_warning_default_aclocal_def" = "." && ax_warning_default_aclocal_def="/tmp" ;;
14923   *) ax_warning_default_aclocal_def="$enable_default_aclocaldir" ;;
14924 esac
14925 ax_warning_default_aclocal_loc='$ax_warning_default_aclocal_def'
14926
14927  if test ".$ACLOCAL" = "." ; then
14928     # Extract the first word of "aclocal", so it can be a program name with args.
14929 set dummy aclocal; ac_word=$2
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14931 $as_echo_n "checking for $ac_word... " >&6; }
14932 if ${ac_cv_path_ACLOCAL+:} false; then :
14933   $as_echo_n "(cached) " >&6
14934 else
14935   case $ACLOCAL in
14936   [\\/]* | ?:[\\/]*)
14937   ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
14938   ;;
14939   *)
14940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14941 for as_dir in $PATH
14942 do
14943   IFS=$as_save_IFS
14944   test -z "$as_dir" && as_dir=.
14945     for ac_exec_ext in '' $ac_executable_extensions; do
14946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14947     ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
14948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14949     break 2
14950   fi
14951 done
14952   done
14953 IFS=$as_save_IFS
14954
14955   test -z "$ac_cv_path_ACLOCAL" && ac_cv_path_ACLOCAL=":"
14956   ;;
14957 esac
14958 fi
14959 ACLOCAL=$ac_cv_path_ACLOCAL
14960 if test -n "$ACLOCAL"; then
14961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
14962 $as_echo "$ACLOCAL" >&6; }
14963 else
14964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14965 $as_echo "no" >&6; }
14966 fi
14967
14968
14969  fi
14970  ax_warning_default_aclocal_bin="$ACLOCAL"
14971  test ".$ax_warning_default_aclocal_bin" = "." && ax_warning_default_aclocal_bin="aclocal"
14972  ax_warning_default_aclocal_dir=`test ".$SHELL" = "." && SHELL="'sh'" ; eval "$ax_warning_default_aclocal_bin --print-ac-dir"`
14973  test ".$ax_warning_default_aclocal_dir" = "." && test -d "/usr/share/aclocal" && ax_warning_default_aclocal_dir="/usr/share/aclocal"
14974  test ".$ax_warning_default_aclocal_dir" = "." && ax_warning_default_aclocal_dir="/tmp"
14975 ax_warning_default_aclocal_dir=`eval "echo $ax_warning_default_aclocal_dir"`  # we need to expand
14976 ax_warning_default_aclocal_dir=`eval "echo $ax_warning_default_aclocal_dir"`
14977 ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"`
14978 ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"`
14979 ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"`
14980 ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"`
14981 { { $as_echo "$as_me:${as_lineno-$LINENO}: : test \"\$ax_warning_default_aclocal_loc\" = \"\$ax_warning_default_aclocal_dir\""; } >&5
14982   (: test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir") 2>&5
14983   ac_status=$?
14984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14985   test $ac_status = 0; }
14986 if test "$ax_warning_default_aclocal_loc" != "$ax_warning_default_aclocal_dir" ; then
14987    if test -f "$ax_warning_default_aclocal_dir/dirlist" ; then
14988       for ax_warning_default_aclocal_dir in `cat $ax_warning_default_aclocal_dir/dirlist` $ax_warning_default_aclocal_dir ; do
14989           { { $as_echo "$as_me:${as_lineno-$LINENO}: : test \"\$ax_warning_default_aclocal_loc\" = \"\$ax_warning_default_aclocal_dir\""; } >&5
14990   (: test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir") 2>&5
14991   ac_status=$?
14992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14993   test $ac_status = 0; }
14994           test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir" && break
14995       done
14996    fi
14997    if test "$ax_warning_default_aclocal_loc" != "$ax_warning_default_aclocal_dir" ; then
14998             { $as_echo "$as_me:${as_lineno-$LINENO}: warning: aclocaldir=$ax_warning_default_aclocal_loc (see config.log)" >&5
14999 $as_echo "$as_me: warning: aclocaldir=$ax_warning_default_aclocal_loc (see config.log)" >&6;}
15000    { $as_echo "$as_me:${as_lineno-$LINENO}: perhaps: make install aclocaldir=$ax_warning_default_aclocal_dir" >&5
15001 $as_echo "$as_me: perhaps: make install aclocaldir=$ax_warning_default_aclocal_dir" >&6;}
15002    cat >&5 <<EOF
15003   aclocaldir:   the default aclocaldir of $ax_warning_default_aclocal_loc
15004   aclocaldir:   is not listed in the dirlist where aclocal will look
15005   aclocaldir:   for macros - you can override the install-path using
15006   aclocaldir:   make install aclocaldir=$ax_warning_default_aclocal_dir
15007   aclocaldir:   or append the directory to aclocal reconfigures later as
15008   aclocaldir:   aclocal -I $ax_warning_default_aclocal_loc
15009   aclocaldir:   when an autoconf macro is needed from that directory
15010 EOF
15011          fi
15012 fi
15013
15014 aclocaldir="$ax_warning_default_aclocal_dir"
15015
15016
15017
15018 ac_config_files="$ac_config_files Makefile zzip/Makefile zzipwrap/Makefile SDL/Makefile docs/Makefile test/Makefile bins/Makefile"
15019
15020 cat >confcache <<\_ACEOF
15021 # This file is a shell script that caches the results of configure
15022 # tests run on this system so they can be shared between configure
15023 # scripts and configure runs, see configure's option --config-cache.
15024 # It is not useful on other systems.  If it contains results you don't
15025 # want to keep, you may remove or edit it.
15026 #
15027 # config.status only pays attention to the cache file if you give it
15028 # the --recheck option to rerun configure.
15029 #
15030 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15031 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15032 # following values.
15033
15034 _ACEOF
15035
15036 # The following way of writing the cache mishandles newlines in values,
15037 # but we know of no workaround that is simple, portable, and efficient.
15038 # So, we kill variables containing newlines.
15039 # Ultrix sh set writes to stderr and can't be redirected directly,
15040 # and sets the high bit in the cache file unless we assign to the vars.
15041 (
15042   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15043     eval ac_val=\$$ac_var
15044     case $ac_val in #(
15045     *${as_nl}*)
15046       case $ac_var in #(
15047       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15048 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15049       esac
15050       case $ac_var in #(
15051       _ | IFS | as_nl) ;; #(
15052       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15053       *) { eval $ac_var=; unset $ac_var;} ;;
15054       esac ;;
15055     esac
15056   done
15057
15058   (set) 2>&1 |
15059     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15060     *${as_nl}ac_space=\ *)
15061       # `set' does not quote correctly, so add quotes: double-quote
15062       # substitution turns \\\\ into \\, and sed turns \\ into \.
15063       sed -n \
15064         "s/'/'\\\\''/g;
15065           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15066       ;; #(
15067     *)
15068       # `set' quotes correctly as required by POSIX, so do not add quotes.
15069       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15070       ;;
15071     esac |
15072     sort
15073 ) |
15074   sed '
15075      /^ac_cv_env_/b end
15076      t clear
15077      :clear
15078      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15079      t end
15080      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15081      :end' >>confcache
15082 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15083   if test -w "$cache_file"; then
15084     if test "x$cache_file" != "x/dev/null"; then
15085       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15086 $as_echo "$as_me: updating cache $cache_file" >&6;}
15087       if test ! -f "$cache_file" || test -h "$cache_file"; then
15088         cat confcache >"$cache_file"
15089       else
15090         case $cache_file in #(
15091         */* | ?:*)
15092           mv -f confcache "$cache_file"$$ &&
15093           mv -f "$cache_file"$$ "$cache_file" ;; #(
15094         *)
15095           mv -f confcache "$cache_file" ;;
15096         esac
15097       fi
15098     fi
15099   else
15100     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15101 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15102   fi
15103 fi
15104 rm -f confcache
15105
15106 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15107 # Let make expand exec_prefix.
15108 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15109
15110 DEFS=-DHAVE_CONFIG_H
15111
15112 ac_libobjs=
15113 ac_ltlibobjs=
15114 U=
15115 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15116   # 1. Remove the extension, and $U if already installed.
15117   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15118   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15119   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15120   #    will be set to the directory where LIBOBJS objects are built.
15121   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15122   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15123 done
15124 LIBOBJS=$ac_libobjs
15125
15126 LTLIBOBJS=$ac_ltlibobjs
15127
15128
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15130 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15131    if test -n "$am_sleep_pid"; then
15132      # Hide warnings about reused PIDs.
15133      wait $am_sleep_pid 2>/dev/null
15134    fi
15135    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15136 $as_echo "done" >&6; }
15137  if test -n "$EXEEXT"; then
15138   am__EXEEXT_TRUE=
15139   am__EXEEXT_FALSE='#'
15140 else
15141   am__EXEEXT_TRUE='#'
15142   am__EXEEXT_FALSE=
15143 fi
15144
15145 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15146   as_fn_error $? "conditional \"AMDEP\" was never defined.
15147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15148 fi
15149 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15150   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15152 fi
15153 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15154   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15156 fi
15157
15158
15159 : "${CONFIG_STATUS=./config.status}"
15160 ac_write_fail=0
15161 ac_clean_files_save=$ac_clean_files
15162 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15164 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15165 as_write_fail=0
15166 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15167 #! $SHELL
15168 # Generated by $as_me.
15169 # Run this file to recreate the current configuration.
15170 # Compiler output produced by configure, useful for debugging
15171 # configure, is in config.log if it exists.
15172
15173 debug=false
15174 ac_cs_recheck=false
15175 ac_cs_silent=false
15176
15177 SHELL=\${CONFIG_SHELL-$SHELL}
15178 export SHELL
15179 _ASEOF
15180 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15181 ## -------------------- ##
15182 ## M4sh Initialization. ##
15183 ## -------------------- ##
15184
15185 # Be more Bourne compatible
15186 DUALCASE=1; export DUALCASE # for MKS sh
15187 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15188   emulate sh
15189   NULLCMD=:
15190   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15191   # is contrary to our usage.  Disable this feature.
15192   alias -g '${1+"$@"}'='"$@"'
15193   setopt NO_GLOB_SUBST
15194 else
15195   case `(set -o) 2>/dev/null` in #(
15196   *posix*) :
15197     set -o posix ;; #(
15198   *) :
15199      ;;
15200 esac
15201 fi
15202
15203
15204 as_nl='
15205 '
15206 export as_nl
15207 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15208 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15209 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15210 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15211 # Prefer a ksh shell builtin over an external printf program on Solaris,
15212 # but without wasting forks for bash or zsh.
15213 if test -z "$BASH_VERSION$ZSH_VERSION" \
15214     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15215   as_echo='print -r --'
15216   as_echo_n='print -rn --'
15217 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15218   as_echo='printf %s\n'
15219   as_echo_n='printf %s'
15220 else
15221   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15222     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15223     as_echo_n='/usr/ucb/echo -n'
15224   else
15225     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15226     as_echo_n_body='eval
15227       arg=$1;
15228       case $arg in #(
15229       *"$as_nl"*)
15230         expr "X$arg" : "X\\(.*\\)$as_nl";
15231         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15232       esac;
15233       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15234     '
15235     export as_echo_n_body
15236     as_echo_n='sh -c $as_echo_n_body as_echo'
15237   fi
15238   export as_echo_body
15239   as_echo='sh -c $as_echo_body as_echo'
15240 fi
15241
15242 # The user is always right.
15243 if test "${PATH_SEPARATOR+set}" != set; then
15244   PATH_SEPARATOR=:
15245   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15246     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15247       PATH_SEPARATOR=';'
15248   }
15249 fi
15250
15251
15252 # IFS
15253 # We need space, tab and new line, in precisely that order.  Quoting is
15254 # there to prevent editors from complaining about space-tab.
15255 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15256 # splitting by setting IFS to empty value.)
15257 IFS=" ""        $as_nl"
15258
15259 # Find who we are.  Look in the path if we contain no directory separator.
15260 as_myself=
15261 case $0 in #((
15262   *[\\/]* ) as_myself=$0 ;;
15263   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15264 for as_dir in $PATH
15265 do
15266   IFS=$as_save_IFS
15267   test -z "$as_dir" && as_dir=.
15268     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15269   done
15270 IFS=$as_save_IFS
15271
15272      ;;
15273 esac
15274 # We did not find ourselves, most probably we were run as `sh COMMAND'
15275 # in which case we are not to be found in the path.
15276 if test "x$as_myself" = x; then
15277   as_myself=$0
15278 fi
15279 if test ! -f "$as_myself"; then
15280   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15281   exit 1
15282 fi
15283
15284 # Unset variables that we do not need and which cause bugs (e.g. in
15285 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15286 # suppresses any "Segmentation fault" message there.  '((' could
15287 # trigger a bug in pdksh 5.2.14.
15288 for as_var in BASH_ENV ENV MAIL MAILPATH
15289 do eval test x\${$as_var+set} = xset \
15290   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15291 done
15292 PS1='$ '
15293 PS2='> '
15294 PS4='+ '
15295
15296 # NLS nuisances.
15297 LC_ALL=C
15298 export LC_ALL
15299 LANGUAGE=C
15300 export LANGUAGE
15301
15302 # CDPATH.
15303 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15304
15305
15306 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15307 # ----------------------------------------
15308 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15309 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15310 # script with STATUS, using 1 if that was 0.
15311 as_fn_error ()
15312 {
15313   as_status=$1; test $as_status -eq 0 && as_status=1
15314   if test "$4"; then
15315     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15316     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15317   fi
15318   $as_echo "$as_me: error: $2" >&2
15319   as_fn_exit $as_status
15320 } # as_fn_error
15321
15322
15323 # as_fn_set_status STATUS
15324 # -----------------------
15325 # Set $? to STATUS, without forking.
15326 as_fn_set_status ()
15327 {
15328   return $1
15329 } # as_fn_set_status
15330
15331 # as_fn_exit STATUS
15332 # -----------------
15333 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15334 as_fn_exit ()
15335 {
15336   set +e
15337   as_fn_set_status $1
15338   exit $1
15339 } # as_fn_exit
15340
15341 # as_fn_unset VAR
15342 # ---------------
15343 # Portably unset VAR.
15344 as_fn_unset ()
15345 {
15346   { eval $1=; unset $1;}
15347 }
15348 as_unset=as_fn_unset
15349 # as_fn_append VAR VALUE
15350 # ----------------------
15351 # Append the text in VALUE to the end of the definition contained in VAR. Take
15352 # advantage of any shell optimizations that allow amortized linear growth over
15353 # repeated appends, instead of the typical quadratic growth present in naive
15354 # implementations.
15355 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15356   eval 'as_fn_append ()
15357   {
15358     eval $1+=\$2
15359   }'
15360 else
15361   as_fn_append ()
15362   {
15363     eval $1=\$$1\$2
15364   }
15365 fi # as_fn_append
15366
15367 # as_fn_arith ARG...
15368 # ------------------
15369 # Perform arithmetic evaluation on the ARGs, and store the result in the
15370 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15371 # must be portable across $(()) and expr.
15372 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15373   eval 'as_fn_arith ()
15374   {
15375     as_val=$(( $* ))
15376   }'
15377 else
15378   as_fn_arith ()
15379   {
15380     as_val=`expr "$@" || test $? -eq 1`
15381   }
15382 fi # as_fn_arith
15383
15384
15385 if expr a : '\(a\)' >/dev/null 2>&1 &&
15386    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15387   as_expr=expr
15388 else
15389   as_expr=false
15390 fi
15391
15392 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15393   as_basename=basename
15394 else
15395   as_basename=false
15396 fi
15397
15398 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15399   as_dirname=dirname
15400 else
15401   as_dirname=false
15402 fi
15403
15404 as_me=`$as_basename -- "$0" ||
15405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15406          X"$0" : 'X\(//\)$' \| \
15407          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15408 $as_echo X/"$0" |
15409     sed '/^.*\/\([^/][^/]*\)\/*$/{
15410             s//\1/
15411             q
15412           }
15413           /^X\/\(\/\/\)$/{
15414             s//\1/
15415             q
15416           }
15417           /^X\/\(\/\).*/{
15418             s//\1/
15419             q
15420           }
15421           s/.*/./; q'`
15422
15423 # Avoid depending upon Character Ranges.
15424 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15425 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15426 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15427 as_cr_digits='0123456789'
15428 as_cr_alnum=$as_cr_Letters$as_cr_digits
15429
15430 ECHO_C= ECHO_N= ECHO_T=
15431 case `echo -n x` in #(((((
15432 -n*)
15433   case `echo 'xy\c'` in
15434   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15435   xy)  ECHO_C='\c';;
15436   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15437        ECHO_T=' ';;
15438   esac;;
15439 *)
15440   ECHO_N='-n';;
15441 esac
15442
15443 rm -f conf$$ conf$$.exe conf$$.file
15444 if test -d conf$$.dir; then
15445   rm -f conf$$.dir/conf$$.file
15446 else
15447   rm -f conf$$.dir
15448   mkdir conf$$.dir 2>/dev/null
15449 fi
15450 if (echo >conf$$.file) 2>/dev/null; then
15451   if ln -s conf$$.file conf$$ 2>/dev/null; then
15452     as_ln_s='ln -s'
15453     # ... but there are two gotchas:
15454     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15455     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15456     # In both cases, we have to default to `cp -pR'.
15457     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15458       as_ln_s='cp -pR'
15459   elif ln conf$$.file conf$$ 2>/dev/null; then
15460     as_ln_s=ln
15461   else
15462     as_ln_s='cp -pR'
15463   fi
15464 else
15465   as_ln_s='cp -pR'
15466 fi
15467 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15468 rmdir conf$$.dir 2>/dev/null
15469
15470
15471 # as_fn_mkdir_p
15472 # -------------
15473 # Create "$as_dir" as a directory, including parents if necessary.
15474 as_fn_mkdir_p ()
15475 {
15476
15477   case $as_dir in #(
15478   -*) as_dir=./$as_dir;;
15479   esac
15480   test -d "$as_dir" || eval $as_mkdir_p || {
15481     as_dirs=
15482     while :; do
15483       case $as_dir in #(
15484       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15485       *) as_qdir=$as_dir;;
15486       esac
15487       as_dirs="'$as_qdir' $as_dirs"
15488       as_dir=`$as_dirname -- "$as_dir" ||
15489 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15490          X"$as_dir" : 'X\(//\)[^/]' \| \
15491          X"$as_dir" : 'X\(//\)$' \| \
15492          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15493 $as_echo X"$as_dir" |
15494     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15495             s//\1/
15496             q
15497           }
15498           /^X\(\/\/\)[^/].*/{
15499             s//\1/
15500             q
15501           }
15502           /^X\(\/\/\)$/{
15503             s//\1/
15504             q
15505           }
15506           /^X\(\/\).*/{
15507             s//\1/
15508             q
15509           }
15510           s/.*/./; q'`
15511       test -d "$as_dir" && break
15512     done
15513     test -z "$as_dirs" || eval "mkdir $as_dirs"
15514   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15515
15516
15517 } # as_fn_mkdir_p
15518 if mkdir -p . 2>/dev/null; then
15519   as_mkdir_p='mkdir -p "$as_dir"'
15520 else
15521   test -d ./-p && rmdir ./-p
15522   as_mkdir_p=false
15523 fi
15524
15525
15526 # as_fn_executable_p FILE
15527 # -----------------------
15528 # Test if FILE is an executable regular file.
15529 as_fn_executable_p ()
15530 {
15531   test -f "$1" && test -x "$1"
15532 } # as_fn_executable_p
15533 as_test_x='test -x'
15534 as_executable_p=as_fn_executable_p
15535
15536 # Sed expression to map a string onto a valid CPP name.
15537 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15538
15539 # Sed expression to map a string onto a valid variable name.
15540 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15541
15542
15543 exec 6>&1
15544 ## ----------------------------------- ##
15545 ## Main body of $CONFIG_STATUS script. ##
15546 ## ----------------------------------- ##
15547 _ASEOF
15548 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15549
15550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15551 # Save the log message, to keep $0 and so on meaningful, and to
15552 # report actual input values of CONFIG_FILES etc. instead of their
15553 # values after options handling.
15554 ac_log="
15555 This file was extended by $as_me, which was
15556 generated by GNU Autoconf 2.69.  Invocation command line was
15557
15558   CONFIG_FILES    = $CONFIG_FILES
15559   CONFIG_HEADERS  = $CONFIG_HEADERS
15560   CONFIG_LINKS    = $CONFIG_LINKS
15561   CONFIG_COMMANDS = $CONFIG_COMMANDS
15562   $ $0 $@
15563
15564 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15565 "
15566
15567 _ACEOF
15568
15569 case $ac_config_files in *"
15570 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15571 esac
15572
15573 case $ac_config_headers in *"
15574 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15575 esac
15576
15577
15578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15579 # Files that config.status was made for.
15580 config_files="$ac_config_files"
15581 config_headers="$ac_config_headers"
15582 config_commands="$ac_config_commands"
15583
15584 _ACEOF
15585
15586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15587 ac_cs_usage="\
15588 \`$as_me' instantiates files and other configuration actions
15589 from templates according to the current configuration.  Unless the files
15590 and actions are specified as TAGs, all are instantiated by default.
15591
15592 Usage: $0 [OPTION]... [TAG]...
15593
15594   -h, --help       print this help, then exit
15595   -V, --version    print version number and configuration settings, then exit
15596       --config     print configuration, then exit
15597   -q, --quiet, --silent
15598                    do not print progress messages
15599   -d, --debug      don't remove temporary files
15600       --recheck    update $as_me by reconfiguring in the same conditions
15601       --file=FILE[:TEMPLATE]
15602                    instantiate the configuration file FILE
15603       --header=FILE[:TEMPLATE]
15604                    instantiate the configuration header FILE
15605
15606 Configuration files:
15607 $config_files
15608
15609 Configuration headers:
15610 $config_headers
15611
15612 Configuration commands:
15613 $config_commands
15614
15615 Report bugs to the package provider."
15616
15617 _ACEOF
15618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15619 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15620 ac_cs_version="\\
15621 config.status
15622 configured by $0, generated by GNU Autoconf 2.69,
15623   with options \\"\$ac_cs_config\\"
15624
15625 Copyright (C) 2012 Free Software Foundation, Inc.
15626 This config.status script is free software; the Free Software Foundation
15627 gives unlimited permission to copy, distribute and modify it."
15628
15629 ac_pwd='$ac_pwd'
15630 srcdir='$srcdir'
15631 INSTALL='$INSTALL'
15632 MKDIR_P='$MKDIR_P'
15633 AWK='$AWK'
15634 test -n "\$AWK" || AWK=awk
15635 _ACEOF
15636
15637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15638 # The default lists apply if the user does not specify any file.
15639 ac_need_defaults=:
15640 while test $# != 0
15641 do
15642   case $1 in
15643   --*=?*)
15644     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15645     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15646     ac_shift=:
15647     ;;
15648   --*=)
15649     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15650     ac_optarg=
15651     ac_shift=:
15652     ;;
15653   *)
15654     ac_option=$1
15655     ac_optarg=$2
15656     ac_shift=shift
15657     ;;
15658   esac
15659
15660   case $ac_option in
15661   # Handling of the options.
15662   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15663     ac_cs_recheck=: ;;
15664   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15665     $as_echo "$ac_cs_version"; exit ;;
15666   --config | --confi | --conf | --con | --co | --c )
15667     $as_echo "$ac_cs_config"; exit ;;
15668   --debug | --debu | --deb | --de | --d | -d )
15669     debug=: ;;
15670   --file | --fil | --fi | --f )
15671     $ac_shift
15672     case $ac_optarg in
15673     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15674     '') as_fn_error $? "missing file argument" ;;
15675     esac
15676     as_fn_append CONFIG_FILES " '$ac_optarg'"
15677     ac_need_defaults=false;;
15678   --header | --heade | --head | --hea )
15679     $ac_shift
15680     case $ac_optarg in
15681     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15682     esac
15683     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15684     ac_need_defaults=false;;
15685   --he | --h)
15686     # Conflict between --help and --header
15687     as_fn_error $? "ambiguous option: \`$1'
15688 Try \`$0 --help' for more information.";;
15689   --help | --hel | -h )
15690     $as_echo "$ac_cs_usage"; exit ;;
15691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15692   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15693     ac_cs_silent=: ;;
15694
15695   # This is an error.
15696   -*) as_fn_error $? "unrecognized option: \`$1'
15697 Try \`$0 --help' for more information." ;;
15698
15699   *) as_fn_append ac_config_targets " $1"
15700      ac_need_defaults=false ;;
15701
15702   esac
15703   shift
15704 done
15705
15706 ac_configure_extra_args=
15707
15708 if $ac_cs_silent; then
15709   exec 6>/dev/null
15710   ac_configure_extra_args="$ac_configure_extra_args --silent"
15711 fi
15712
15713 _ACEOF
15714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15715 if \$ac_cs_recheck; then
15716   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15717   shift
15718   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15719   CONFIG_SHELL='$SHELL'
15720   export CONFIG_SHELL
15721   exec "\$@"
15722 fi
15723
15724 _ACEOF
15725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15726 exec 5>>config.log
15727 {
15728   echo
15729   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15730 ## Running $as_me. ##
15731 _ASBOX
15732   $as_echo "$ac_log"
15733 } >&5
15734
15735 _ACEOF
15736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15737 #
15738 # INIT-COMMANDS
15739 #
15740 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15741 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15742 ax_enable_builddir_version="$VERSION"                  # $VERSION
15743 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15744 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15745 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15746 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15747
15748 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15749
15750
15751 # The HP-UX ksh and POSIX shell print the target directory to stdout
15752 # if CDPATH is set.
15753 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15754
15755 sed_quote_subst='$sed_quote_subst'
15756 double_quote_subst='$double_quote_subst'
15757 delay_variable_subst='$delay_variable_subst'
15758 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
15759 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15760 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15761 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15762 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15763 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15764 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15765 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15766 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15767 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15768 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15769 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15770 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15771 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15772 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15773 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15774 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15775 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15776 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15777 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15778 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15779 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15780 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15781 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15782 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15783 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15784 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15785 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15786 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15787 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15788 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15789 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15790 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15791 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15792 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15793 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15794 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15795 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15796 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15797 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15798 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15799 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15800 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15801 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15802 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15803 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15804 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15805 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15806 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15807 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15808 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15809 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15810 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15811 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15812 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15813 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15814 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15815 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15816 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15817 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15818 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15819 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15820 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15821 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15822 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15823 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15824 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15825 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15826 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15827 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15828 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15829 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15830 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15831 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15832 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15833 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15834 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15835 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15836 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15837 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15838 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15839 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15840 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15841 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15842 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15843 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15844 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15845 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15846 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15847 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15848 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15849 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15850 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15851 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15852 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15853 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15854 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15855 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15856 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15857 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15858 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15859 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15860 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15861 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15862 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15863 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15864 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15865 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15866 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15867 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15868 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15869 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15870 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15871 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15872 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15873 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15874 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15875 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15876 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15877 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15878
15879 LTCC='$LTCC'
15880 LTCFLAGS='$LTCFLAGS'
15881 compiler='$compiler_DEFAULT'
15882
15883 # Quote evaled strings.
15884 for var in SED \
15885 GREP \
15886 EGREP \
15887 FGREP \
15888 LD \
15889 NM \
15890 LN_S \
15891 lt_SP2NL \
15892 lt_NL2SP \
15893 reload_flag \
15894 deplibs_check_method \
15895 file_magic_cmd \
15896 AR \
15897 AR_FLAGS \
15898 STRIP \
15899 RANLIB \
15900 CC \
15901 CFLAGS \
15902 compiler \
15903 lt_cv_sys_global_symbol_pipe \
15904 lt_cv_sys_global_symbol_to_cdecl \
15905 lt_cv_sys_global_symbol_to_c_name_address \
15906 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15907 SHELL \
15908 ECHO \
15909 lt_prog_compiler_no_builtin_flag \
15910 lt_prog_compiler_wl \
15911 lt_prog_compiler_pic \
15912 lt_prog_compiler_static \
15913 lt_cv_prog_compiler_c_o \
15914 need_locks \
15915 DSYMUTIL \
15916 NMEDIT \
15917 LIPO \
15918 OTOOL \
15919 OTOOL64 \
15920 shrext_cmds \
15921 export_dynamic_flag_spec \
15922 whole_archive_flag_spec \
15923 compiler_needs_object \
15924 with_gnu_ld \
15925 allow_undefined_flag \
15926 no_undefined_flag \
15927 hardcode_libdir_flag_spec \
15928 hardcode_libdir_flag_spec_ld \
15929 hardcode_libdir_separator \
15930 fix_srcfile_path \
15931 exclude_expsyms \
15932 include_expsyms \
15933 file_list_spec \
15934 variables_saved_for_relink \
15935 libname_spec \
15936 library_names_spec \
15937 soname_spec \
15938 finish_eval \
15939 old_striplib \
15940 striplib; do
15941     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15942     *[\\\\\\\`\\"\\\$]*)
15943       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15944       ;;
15945     *)
15946       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15947       ;;
15948     esac
15949 done
15950
15951 # Double-quote double-evaled strings.
15952 for var in reload_cmds \
15953 old_postinstall_cmds \
15954 old_postuninstall_cmds \
15955 old_archive_cmds \
15956 extract_expsyms_cmds \
15957 old_archive_from_new_cmds \
15958 old_archive_from_expsyms_cmds \
15959 archive_cmds \
15960 archive_expsym_cmds \
15961 module_cmds \
15962 module_expsym_cmds \
15963 export_symbols_cmds \
15964 prelink_cmds \
15965 postinstall_cmds \
15966 postuninstall_cmds \
15967 finish_cmds \
15968 sys_lib_search_path_spec \
15969 sys_lib_dlsearch_path_spec; do
15970     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15971     *[\\\\\\\`\\"\\\$]*)
15972       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15973       ;;
15974     *)
15975       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15976       ;;
15977     esac
15978 done
15979
15980 # Fix-up fallback echo if it was mangled by the above quoting rules.
15981 case \$lt_ECHO in
15982 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15983   ;;
15984 esac
15985
15986 ac_aux_dir='$ac_aux_dir'
15987 xsi_shell='$xsi_shell'
15988 lt_shell_append='$lt_shell_append'
15989
15990 # See if we are running on zsh, and set the options which allow our
15991 # commands through without removal of \ escapes INIT.
15992 if test -n "\${ZSH_VERSION+set}" ; then
15993    setopt NO_GLOB_SUBST
15994 fi
15995
15996
15997     PACKAGE='$PACKAGE'
15998     VERSION='$VERSION'
15999     TIMESTAMP='$TIMESTAMP'
16000     RM='$RM'
16001     ofile='$ofile'
16002
16003
16004
16005 PACKAGE="$PACKAGE"
16006 PACKAGE="$PACKAGE"
16007
16008 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
16009 pkgconfig_prefix='$prefix'
16010 pkgconfig_execprefix='$exec_prefix'
16011 pkgconfig_bindir='$bindir'
16012 pkgconfig_libdir='$libdir'
16013 pkgconfig_includedir='$includedir'
16014 pkgconfig_datarootdir='$datarootdir'
16015 pkgconfig_datadir='$datadir'
16016 pkgconfig_sysconfdir='$sysconfdir'
16017 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
16018 pkgconfig_package='$PACKAGE_NAME'
16019 pkgconfig_libname='$ax_create_pkgconfig_libname'
16020 pkgconfig_description='$ax_create_pkgconfig_description'
16021 pkgconfig_version='$ax_create_pkgconfig_version'
16022 pkgconfig_requires='$ax_create_pkgconfig_requires'
16023 pkgconfig_libs='$ax_create_pkgconfig_libs'
16024 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
16025 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
16026 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
16027 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
16028
16029
16030 _ACEOF
16031
16032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16033
16034 # Handling of arguments.
16035 for ac_config_target in $ac_config_targets
16036 do
16037   case $ac_config_target in
16038     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
16039     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16040     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16041     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16042     "zzip/_config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS zzip/_config.h" ;;
16043     "zzip/_msvc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS zzip/_msvc.h" ;;
16044     "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
16045     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16046     "zzip/Makefile") CONFIG_FILES="$CONFIG_FILES zzip/Makefile" ;;
16047     "zzipwrap/Makefile") CONFIG_FILES="$CONFIG_FILES zzipwrap/Makefile" ;;
16048     "SDL/Makefile") CONFIG_FILES="$CONFIG_FILES SDL/Makefile" ;;
16049     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16050     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16051     "bins/Makefile") CONFIG_FILES="$CONFIG_FILES bins/Makefile" ;;
16052
16053   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16054   esac
16055 done
16056
16057
16058 # If the user did not use the arguments to specify the items to instantiate,
16059 # then the envvar interface is used.  Set only those that are not.
16060 # We use the long form for the default assignment because of an extremely
16061 # bizarre bug on SunOS 4.1.3.
16062 if $ac_need_defaults; then
16063   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16064   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16065   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16066 fi
16067
16068 # Have a temporary directory for convenience.  Make it in the build tree
16069 # simply because there is no reason against having it here, and in addition,
16070 # creating and moving files from /tmp can sometimes cause problems.
16071 # Hook for its removal unless debugging.
16072 # Note that there is a small window in which the directory will not be cleaned:
16073 # after its creation but before its name has been assigned to `$tmp'.
16074 $debug ||
16075 {
16076   tmp= ac_tmp=
16077   trap 'exit_status=$?
16078   : "${ac_tmp:=$tmp}"
16079   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16080 ' 0
16081   trap 'as_fn_exit 1' 1 2 13 15
16082 }
16083 # Create a (secure) tmp directory for tmp files.
16084
16085 {
16086   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16087   test -d "$tmp"
16088 }  ||
16089 {
16090   tmp=./conf$$-$RANDOM
16091   (umask 077 && mkdir "$tmp")
16092 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16093 ac_tmp=$tmp
16094
16095 # Set up the scripts for CONFIG_FILES section.
16096 # No need to generate them if there are no CONFIG_FILES.
16097 # This happens for instance with `./config.status config.h'.
16098 if test -n "$CONFIG_FILES"; then
16099
16100
16101 ac_cr=`echo X | tr X '\015'`
16102 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16103 # But we know of no other shell where ac_cr would be empty at this
16104 # point, so we can use a bashism as a fallback.
16105 if test "x$ac_cr" = x; then
16106   eval ac_cr=\$\'\\r\'
16107 fi
16108 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16109 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16110   ac_cs_awk_cr='\\r'
16111 else
16112   ac_cs_awk_cr=$ac_cr
16113 fi
16114
16115 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16116 _ACEOF
16117
16118
16119 {
16120   echo "cat >conf$$subs.awk <<_ACEOF" &&
16121   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16122   echo "_ACEOF"
16123 } >conf$$subs.sh ||
16124   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16125 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16126 ac_delim='%!_!# '
16127 for ac_last_try in false false false false false :; do
16128   . ./conf$$subs.sh ||
16129     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16130
16131   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16132   if test $ac_delim_n = $ac_delim_num; then
16133     break
16134   elif $ac_last_try; then
16135     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16136   else
16137     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16138   fi
16139 done
16140 rm -f conf$$subs.sh
16141
16142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16143 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16144 _ACEOF
16145 sed -n '
16146 h
16147 s/^/S["/; s/!.*/"]=/
16148 p
16149 g
16150 s/^[^!]*!//
16151 :repl
16152 t repl
16153 s/'"$ac_delim"'$//
16154 t delim
16155 :nl
16156 h
16157 s/\(.\{148\}\)..*/\1/
16158 t more1
16159 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16160 p
16161 n
16162 b repl
16163 :more1
16164 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16165 p
16166 g
16167 s/.\{148\}//
16168 t nl
16169 :delim
16170 h
16171 s/\(.\{148\}\)..*/\1/
16172 t more2
16173 s/["\\]/\\&/g; s/^/"/; s/$/"/
16174 p
16175 b
16176 :more2
16177 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16178 p
16179 g
16180 s/.\{148\}//
16181 t delim
16182 ' <conf$$subs.awk | sed '
16183 /^[^""]/{
16184   N
16185   s/\n//
16186 }
16187 ' >>$CONFIG_STATUS || ac_write_fail=1
16188 rm -f conf$$subs.awk
16189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16190 _ACAWK
16191 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16192   for (key in S) S_is_set[key] = 1
16193   FS = "\a"
16194
16195 }
16196 {
16197   line = $ 0
16198   nfields = split(line, field, "@")
16199   substed = 0
16200   len = length(field[1])
16201   for (i = 2; i < nfields; i++) {
16202     key = field[i]
16203     keylen = length(key)
16204     if (S_is_set[key]) {
16205       value = S[key]
16206       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16207       len += length(value) + length(field[++i])
16208       substed = 1
16209     } else
16210       len += 1 + keylen
16211   }
16212
16213   print line
16214 }
16215
16216 _ACAWK
16217 _ACEOF
16218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16219 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16220   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16221 else
16222   cat
16223 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16224   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16225 _ACEOF
16226
16227 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16228 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16229 # trailing colons and then remove the whole line if VPATH becomes empty
16230 # (actually we leave an empty line to preserve line numbers).
16231 if test "x$srcdir" = x.; then
16232   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16233 h
16234 s///
16235 s/^/:/
16236 s/[      ]*$/:/
16237 s/:\$(srcdir):/:/g
16238 s/:\${srcdir}:/:/g
16239 s/:@srcdir@:/:/g
16240 s/^:*//
16241 s/:*$//
16242 x
16243 s/\(=[   ]*\).*/\1/
16244 G
16245 s/\n//
16246 s/^[^=]*=[       ]*$//
16247 }'
16248 fi
16249
16250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16251 fi # test -n "$CONFIG_FILES"
16252
16253 # Set up the scripts for CONFIG_HEADERS section.
16254 # No need to generate them if there are no CONFIG_HEADERS.
16255 # This happens for instance with `./config.status Makefile'.
16256 if test -n "$CONFIG_HEADERS"; then
16257 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16258 BEGIN {
16259 _ACEOF
16260
16261 # Transform confdefs.h into an awk script `defines.awk', embedded as
16262 # here-document in config.status, that substitutes the proper values into
16263 # config.h.in to produce config.h.
16264
16265 # Create a delimiter string that does not exist in confdefs.h, to ease
16266 # handling of long lines.
16267 ac_delim='%!_!# '
16268 for ac_last_try in false false :; do
16269   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16270   if test -z "$ac_tt"; then
16271     break
16272   elif $ac_last_try; then
16273     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16274   else
16275     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16276   fi
16277 done
16278
16279 # For the awk script, D is an array of macro values keyed by name,
16280 # likewise P contains macro parameters if any.  Preserve backslash
16281 # newline sequences.
16282
16283 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16284 sed -n '
16285 s/.\{148\}/&'"$ac_delim"'/g
16286 t rset
16287 :rset
16288 s/^[     ]*#[    ]*define[       ][      ]*/ /
16289 t def
16290 d
16291 :def
16292 s/\\$//
16293 t bsnl
16294 s/["\\]/\\&/g
16295 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16296 D["\1"]=" \3"/p
16297 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16298 d
16299 :bsnl
16300 s/["\\]/\\&/g
16301 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16302 D["\1"]=" \3\\\\\\n"\\/p
16303 t cont
16304 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16305 t cont
16306 d
16307 :cont
16308 n
16309 s/.\{148\}/&'"$ac_delim"'/g
16310 t clear
16311 :clear
16312 s/\\$//
16313 t bsnlc
16314 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16315 d
16316 :bsnlc
16317 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16318 b cont
16319 ' <confdefs.h | sed '
16320 s/'"$ac_delim"'/"\\\
16321 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16322
16323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16324   for (key in D) D_is_set[key] = 1
16325   FS = "\a"
16326 }
16327 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16328   line = \$ 0
16329   split(line, arg, " ")
16330   if (arg[1] == "#") {
16331     defundef = arg[2]
16332     mac1 = arg[3]
16333   } else {
16334     defundef = substr(arg[1], 2)
16335     mac1 = arg[2]
16336   }
16337   split(mac1, mac2, "(") #)
16338   macro = mac2[1]
16339   prefix = substr(line, 1, index(line, defundef) - 1)
16340   if (D_is_set[macro]) {
16341     # Preserve the white space surrounding the "#".
16342     print prefix "define", macro P[macro] D[macro]
16343     next
16344   } else {
16345     # Replace #undef with comments.  This is necessary, for example,
16346     # in the case of _POSIX_SOURCE, which is predefined and required
16347     # on some systems where configure will not decide to define it.
16348     if (defundef == "undef") {
16349       print "/*", prefix defundef, macro, "*/"
16350       next
16351     }
16352   }
16353 }
16354 { print }
16355 _ACAWK
16356 _ACEOF
16357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16358   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16359 fi # test -n "$CONFIG_HEADERS"
16360
16361
16362 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16363 shift
16364 for ac_tag
16365 do
16366   case $ac_tag in
16367   :[FHLC]) ac_mode=$ac_tag; continue;;
16368   esac
16369   case $ac_mode$ac_tag in
16370   :[FHL]*:*);;
16371   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16372   :[FH]-) ac_tag=-:-;;
16373   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16374   esac
16375   ac_save_IFS=$IFS
16376   IFS=:
16377   set x $ac_tag
16378   IFS=$ac_save_IFS
16379   shift
16380   ac_file=$1
16381   shift
16382
16383   case $ac_mode in
16384   :L) ac_source=$1;;
16385   :[FH])
16386     ac_file_inputs=
16387     for ac_f
16388     do
16389       case $ac_f in
16390       -) ac_f="$ac_tmp/stdin";;
16391       *) # Look for the file first in the build tree, then in the source tree
16392          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16393          # because $ac_f cannot contain `:'.
16394          test -f "$ac_f" ||
16395            case $ac_f in
16396            [\\/$]*) false;;
16397            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16398            esac ||
16399            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16400       esac
16401       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16402       as_fn_append ac_file_inputs " '$ac_f'"
16403     done
16404
16405     # Let's still pretend it is `configure' which instantiates (i.e., don't
16406     # use $as_me), people would be surprised to read:
16407     #    /* config.h.  Generated by config.status.  */
16408     configure_input='Generated from '`
16409           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16410         `' by configure.'
16411     if test x"$ac_file" != x-; then
16412       configure_input="$ac_file.  $configure_input"
16413       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16414 $as_echo "$as_me: creating $ac_file" >&6;}
16415     fi
16416     # Neutralize special characters interpreted by sed in replacement strings.
16417     case $configure_input in #(
16418     *\&* | *\|* | *\\* )
16419        ac_sed_conf_input=`$as_echo "$configure_input" |
16420        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16421     *) ac_sed_conf_input=$configure_input;;
16422     esac
16423
16424     case $ac_tag in
16425     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16426       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16427     esac
16428     ;;
16429   esac
16430
16431   ac_dir=`$as_dirname -- "$ac_file" ||
16432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16433          X"$ac_file" : 'X\(//\)[^/]' \| \
16434          X"$ac_file" : 'X\(//\)$' \| \
16435          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16436 $as_echo X"$ac_file" |
16437     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16438             s//\1/
16439             q
16440           }
16441           /^X\(\/\/\)[^/].*/{
16442             s//\1/
16443             q
16444           }
16445           /^X\(\/\/\)$/{
16446             s//\1/
16447             q
16448           }
16449           /^X\(\/\).*/{
16450             s//\1/
16451             q
16452           }
16453           s/.*/./; q'`
16454   as_dir="$ac_dir"; as_fn_mkdir_p
16455   ac_builddir=.
16456
16457 case "$ac_dir" in
16458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16459 *)
16460   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16461   # A ".." for each directory in $ac_dir_suffix.
16462   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16463   case $ac_top_builddir_sub in
16464   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16465   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16466   esac ;;
16467 esac
16468 ac_abs_top_builddir=$ac_pwd
16469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16470 # for backward compatibility:
16471 ac_top_builddir=$ac_top_build_prefix
16472
16473 case $srcdir in
16474   .)  # We are building in place.
16475     ac_srcdir=.
16476     ac_top_srcdir=$ac_top_builddir_sub
16477     ac_abs_top_srcdir=$ac_pwd ;;
16478   [\\/]* | ?:[\\/]* )  # Absolute name.
16479     ac_srcdir=$srcdir$ac_dir_suffix;
16480     ac_top_srcdir=$srcdir
16481     ac_abs_top_srcdir=$srcdir ;;
16482   *) # Relative name.
16483     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16484     ac_top_srcdir=$ac_top_build_prefix$srcdir
16485     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16486 esac
16487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16488
16489
16490   case $ac_mode in
16491   :F)
16492   #
16493   # CONFIG_FILE
16494   #
16495
16496   case $INSTALL in
16497   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16498   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16499   esac
16500   ac_MKDIR_P=$MKDIR_P
16501   case $MKDIR_P in
16502   [\\/$]* | ?:[\\/]* ) ;;
16503   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16504   esac
16505 _ACEOF
16506
16507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16508 # If the template does not know about datarootdir, expand it.
16509 # FIXME: This hack should be removed a few years after 2.60.
16510 ac_datarootdir_hack=; ac_datarootdir_seen=
16511 ac_sed_dataroot='
16512 /datarootdir/ {
16513   p
16514   q
16515 }
16516 /@datadir@/p
16517 /@docdir@/p
16518 /@infodir@/p
16519 /@localedir@/p
16520 /@mandir@/p'
16521 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16522 *datarootdir*) ac_datarootdir_seen=yes;;
16523 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16524   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16525 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16526 _ACEOF
16527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16528   ac_datarootdir_hack='
16529   s&@datadir@&$datadir&g
16530   s&@docdir@&$docdir&g
16531   s&@infodir@&$infodir&g
16532   s&@localedir@&$localedir&g
16533   s&@mandir@&$mandir&g
16534   s&\\\${datarootdir}&$datarootdir&g' ;;
16535 esac
16536 _ACEOF
16537
16538 # Neutralize VPATH when `$srcdir' = `.'.
16539 # Shell code in configure.ac might set extrasub.
16540 # FIXME: do we really want to maintain this feature?
16541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16542 ac_sed_extra="$ac_vpsub
16543 $extrasub
16544 _ACEOF
16545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16546 :t
16547 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16548 s|@configure_input@|$ac_sed_conf_input|;t t
16549 s&@top_builddir@&$ac_top_builddir_sub&;t t
16550 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16551 s&@srcdir@&$ac_srcdir&;t t
16552 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16553 s&@top_srcdir@&$ac_top_srcdir&;t t
16554 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16555 s&@builddir@&$ac_builddir&;t t
16556 s&@abs_builddir@&$ac_abs_builddir&;t t
16557 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16558 s&@INSTALL@&$ac_INSTALL&;t t
16559 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16560 $ac_datarootdir_hack
16561 "
16562 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16563   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16564
16565 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16566   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16567   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16568       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16569   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16570 which seems to be undefined.  Please make sure it is defined" >&5
16571 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16572 which seems to be undefined.  Please make sure it is defined" >&2;}
16573
16574   rm -f "$ac_tmp/stdin"
16575   case $ac_file in
16576   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16577   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16578   esac \
16579   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16580  ;;
16581   :H)
16582   #
16583   # CONFIG_HEADER
16584   #
16585   if test x"$ac_file" != x-; then
16586     {
16587       $as_echo "/* $configure_input  */" \
16588       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16589     } >"$ac_tmp/config.h" \
16590       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16591     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16592       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16593 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16594     else
16595       rm -f "$ac_file"
16596       mv "$ac_tmp/config.h" "$ac_file" \
16597         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16598     fi
16599   else
16600     $as_echo "/* $configure_input  */" \
16601       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16602       || as_fn_error $? "could not create -" "$LINENO" 5
16603   fi
16604 # Compute "$ac_file"'s index in $config_headers.
16605 _am_arg="$ac_file"
16606 _am_stamp_count=1
16607 for _am_header in $config_headers :; do
16608   case $_am_header in
16609     $_am_arg | $_am_arg:* )
16610       break ;;
16611     * )
16612       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16613   esac
16614 done
16615 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16616 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16617          X"$_am_arg" : 'X\(//\)[^/]' \| \
16618          X"$_am_arg" : 'X\(//\)$' \| \
16619          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16620 $as_echo X"$_am_arg" |
16621     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16622             s//\1/
16623             q
16624           }
16625           /^X\(\/\/\)[^/].*/{
16626             s//\1/
16627             q
16628           }
16629           /^X\(\/\/\)$/{
16630             s//\1/
16631             q
16632           }
16633           /^X\(\/\).*/{
16634             s//\1/
16635             q
16636           }
16637           s/.*/./; q'`/stamp-h$_am_stamp_count
16638  ;;
16639
16640   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16641 $as_echo "$as_me: executing $ac_file commands" >&6;}
16642  ;;
16643   esac
16644
16645
16646   case $ac_file$ac_mode in
16647     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16648   if test ".$ax_enable_builddir" = "." ; then
16649     if test -f "$top_srcdir/Makefile" ; then
16650       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16651 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16652     else
16653       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16654 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16655     fi
16656   else
16657     if test -f "$ac_top_srcdir/Makefile" ; then
16658       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16659       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16660     fi
16661     if test -f "$ac_top_srcdir/Makefile" ; then
16662         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16663         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16664       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16665       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16666       then rm $ac_top_srcdir/Makefile ; fi
16667       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16668     fi
16669     if test ! -f "$ac_top_srcdir/Makefile" ; then
16670       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16671 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16672       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16673 /^\$/n
16674 x
16675 /^\$/bS
16676 x
16677 /\\\\\$/{H;d;}
16678 {H;s/.*//;x;}
16679 bM
16680 :S
16681 x
16682 /\\\\\$/{h;d;}
16683 {h;s/.*//;x;}
16684 :M
16685 s/\\(\\n\\)     /\\1 /g
16686 /^      /d
16687 /^[     ]*[\\#]/d
16688 /^VPATH *=/d
16689 s/^srcdir *=.*/srcdir = ./
16690 s/^top_srcdir *=.*/top_srcdir = ./
16691 /[:=]/!d
16692 /^\\./d
16693 s/:.*/:/
16694 /:\$/s/ /  /g
16695 /:\$/s/ \\([a-z][a-z-]*[a-z]\\) / \\1 \\1-all /g
16696 /:\$/s/^\\([a-z][a-z-]*[a-z]\\)\\([ :]\\)/\\1 \\1-all\\2/
16697 /:\$/s/  / /g
16698 /^all all-all[ :]/i\\
16699 all-configured : all-all
16700 /-all-all/d
16701 /^.*[=]/!a\\
16702         @ HOST="\$(HOST)\" \\\\\\
16703         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16704         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16705         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16706         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" = "0" ; then : \\\\\\
16707         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16708         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16709         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16710         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16711         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16712 /dist-all *:/a\\
16713         @ HOST="\$(HOST)\" \\\\\\
16714         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16715         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16716         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16717         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16718         ; if test "\$\$found" = "0" ; then : \\\\\\
16719         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16720         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16721         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16722         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16723 /distclean-all *:/a\\
16724         @ HOST="\$(HOST)\" \\\\\\
16725         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16726         ; BUILD=$x grep "^#### .*| *\\./" Makefile | sed -e 's/.*|//' $x \\\\\\
16727         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16728         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16729         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16730         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16731         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16732         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16733         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16734 _EOF
16735       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16736       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16737       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16738         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16739 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16740         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16741       fi ; xxxx="####"
16742       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16743       # sanity check
16744       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16745         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16746 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16747         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16748           >$ac_top_srcdir/Makefile~
16749         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16750       fi
16751     else
16752       xxxx="\\#\\#\\#\\#"
16753       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16754       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16755       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16756         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16757         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16758       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16759         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16760 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16761         rm "$tmp/mkfile.tmp"
16762       else
16763         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16764 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16765         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16766       fi
16767     fi
16768     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16769 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16770     xxxx="####"
16771     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16772   fi
16773  ;;
16774     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16775   # Older Autoconf quotes --file arguments for eval, but not when files
16776   # are listed without --file.  Let's play safe and only enable the eval
16777   # if we detect the quoting.
16778   case $CONFIG_FILES in
16779   *\'*) eval set x "$CONFIG_FILES" ;;
16780   *)   set x $CONFIG_FILES ;;
16781   esac
16782   shift
16783   for mf
16784   do
16785     # Strip MF so we end up with the name of the file.
16786     mf=`echo "$mf" | sed -e 's/:.*$//'`
16787     # Check whether this is an Automake generated Makefile or not.
16788     # We used to match only the files named 'Makefile.in', but
16789     # some people rename them; so instead we look at the file content.
16790     # Grep'ing the first line is not enough: some people post-process
16791     # each Makefile.in and add a new line on top of each file to say so.
16792     # Grep'ing the whole file is not good either: AIX grep has a line
16793     # limit of 2048, but all sed's we know have understand at least 4000.
16794     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16795       dirpart=`$as_dirname -- "$mf" ||
16796 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16797          X"$mf" : 'X\(//\)[^/]' \| \
16798          X"$mf" : 'X\(//\)$' \| \
16799          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16800 $as_echo X"$mf" |
16801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16802             s//\1/
16803             q
16804           }
16805           /^X\(\/\/\)[^/].*/{
16806             s//\1/
16807             q
16808           }
16809           /^X\(\/\/\)$/{
16810             s//\1/
16811             q
16812           }
16813           /^X\(\/\).*/{
16814             s//\1/
16815             q
16816           }
16817           s/.*/./; q'`
16818     else
16819       continue
16820     fi
16821     # Extract the definition of DEPDIR, am__include, and am__quote
16822     # from the Makefile without running 'make'.
16823     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16824     test -z "$DEPDIR" && continue
16825     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16826     test -z "$am__include" && continue
16827     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16828     # Find all dependency output files, they are included files with
16829     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16830     # simplest approach to changing $(DEPDIR) to its actual value in the
16831     # expansion.
16832     for file in `sed -n "
16833       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16834          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16835       # Make sure the directory exists.
16836       test -f "$dirpart/$file" && continue
16837       fdir=`$as_dirname -- "$file" ||
16838 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16839          X"$file" : 'X\(//\)[^/]' \| \
16840          X"$file" : 'X\(//\)$' \| \
16841          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16842 $as_echo X"$file" |
16843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16844             s//\1/
16845             q
16846           }
16847           /^X\(\/\/\)[^/].*/{
16848             s//\1/
16849             q
16850           }
16851           /^X\(\/\/\)$/{
16852             s//\1/
16853             q
16854           }
16855           /^X\(\/\).*/{
16856             s//\1/
16857             q
16858           }
16859           s/.*/./; q'`
16860       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16861       # echo "creating $dirpart/$file"
16862       echo '# dummy' > "$dirpart/$file"
16863     done
16864   done
16865 }
16866  ;;
16867     "libtool":C)
16868
16869     # See if we are running on zsh, and set the options which allow our
16870     # commands through without removal of \ escapes.
16871     if test -n "${ZSH_VERSION+set}" ; then
16872       setopt NO_GLOB_SUBST
16873     fi
16874
16875     cfgfile="${ofile}T"
16876     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16877     $RM "$cfgfile"
16878
16879     cat <<_LT_EOF >> "$cfgfile"
16880 #! $SHELL
16881
16882 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16883 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16884 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16885 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16886 #
16887 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16888 #                 2006, 2007, 2008 Free Software Foundation, Inc.
16889 #   Written by Gordon Matzigkeit, 1996
16890 #
16891 #   This file is part of GNU Libtool.
16892 #
16893 # GNU Libtool is free software; you can redistribute it and/or
16894 # modify it under the terms of the GNU General Public License as
16895 # published by the Free Software Foundation; either version 2 of
16896 # the License, or (at your option) any later version.
16897 #
16898 # As a special exception to the GNU General Public License,
16899 # if you distribute this file as part of a program or library that
16900 # is built using GNU Libtool, you may include this file under the
16901 # same distribution terms that you use for the rest of that program.
16902 #
16903 # GNU Libtool is distributed in the hope that it will be useful,
16904 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16905 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16906 # GNU General Public License for more details.
16907 #
16908 # You should have received a copy of the GNU General Public License
16909 # along with GNU Libtool; see the file COPYING.  If not, a copy
16910 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16911 # obtained by writing to the Free Software Foundation, Inc.,
16912 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16913
16914
16915 # The names of the tagged configurations supported by this script.
16916 available_tags=""
16917
16918 # ### BEGIN LIBTOOL CONFIG
16919
16920 # Assembler program.
16921 AS=$AS
16922
16923 # DLL creation program.
16924 DLLTOOL=$DLLTOOL
16925
16926 # Object dumper program.
16927 OBJDUMP=$OBJDUMP
16928
16929 # Which release of libtool.m4 was used?
16930 macro_version=$macro_version
16931 macro_revision=$macro_revision
16932
16933 # Whether or not to build shared libraries.
16934 build_libtool_libs=$enable_shared
16935
16936 # Whether or not to build static libraries.
16937 build_old_libs=$enable_static
16938
16939 # What type of objects to build.
16940 pic_mode=$pic_mode
16941
16942 # Whether or not to optimize for fast installation.
16943 fast_install=$enable_fast_install
16944
16945 # The host system.
16946 host_alias=$host_alias
16947 host=$host
16948 host_os=$host_os
16949
16950 # The build system.
16951 build_alias=$build_alias
16952 build=$build
16953 build_os=$build_os
16954
16955 # A sed program that does not truncate output.
16956 SED=$lt_SED
16957
16958 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16959 Xsed="\$SED -e 1s/^X//"
16960
16961 # A grep program that handles long lines.
16962 GREP=$lt_GREP
16963
16964 # An ERE matcher.
16965 EGREP=$lt_EGREP
16966
16967 # A literal string matcher.
16968 FGREP=$lt_FGREP
16969
16970 # A BSD- or MS-compatible name lister.
16971 NM=$lt_NM
16972
16973 # Whether we need soft or hard links.
16974 LN_S=$lt_LN_S
16975
16976 # What is the maximum length of a command?
16977 max_cmd_len=$max_cmd_len
16978
16979 # Object file suffix (normally "o").
16980 objext=$ac_objext
16981
16982 # Executable file suffix (normally "").
16983 exeext=$exeext
16984
16985 # whether the shell understands "unset".
16986 lt_unset=$lt_unset
16987
16988 # turn spaces into newlines.
16989 SP2NL=$lt_lt_SP2NL
16990
16991 # turn newlines into spaces.
16992 NL2SP=$lt_lt_NL2SP
16993
16994 # How to create reloadable object files.
16995 reload_flag=$lt_reload_flag
16996 reload_cmds=$lt_reload_cmds
16997
16998 # Method to check whether dependent libraries are shared objects.
16999 deplibs_check_method=$lt_deplibs_check_method
17000
17001 # Command to use when deplibs_check_method == "file_magic".
17002 file_magic_cmd=$lt_file_magic_cmd
17003
17004 # The archiver.
17005 AR=$lt_AR
17006 AR_FLAGS=$lt_AR_FLAGS
17007
17008 # A symbol stripping program.
17009 STRIP=$lt_STRIP
17010
17011 # Commands used to install an old-style archive.
17012 RANLIB=$lt_RANLIB
17013 old_postinstall_cmds=$lt_old_postinstall_cmds
17014 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17015
17016 # A C compiler.
17017 LTCC=$lt_CC
17018
17019 # LTCC compiler flags.
17020 LTCFLAGS=$lt_CFLAGS
17021
17022 # Take the output of nm and produce a listing of raw symbols and C names.
17023 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17024
17025 # Transform the output of nm in a proper C declaration.
17026 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17027
17028 # Transform the output of nm in a C name address pair.
17029 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17030
17031 # Transform the output of nm in a C name address pair when lib prefix is needed.
17032 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17033
17034 # The name of the directory that contains temporary libtool files.
17035 objdir=$objdir
17036
17037 # Shell to use when invoking shell scripts.
17038 SHELL=$lt_SHELL
17039
17040 # An echo program that does not interpret backslashes.
17041 ECHO=$lt_ECHO
17042
17043 # Used to examine libraries when file_magic_cmd begins with "file".
17044 MAGIC_CMD=$MAGIC_CMD
17045
17046 # Must we lock files when doing compilation?
17047 need_locks=$lt_need_locks
17048
17049 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17050 DSYMUTIL=$lt_DSYMUTIL
17051
17052 # Tool to change global to local symbols on Mac OS X.
17053 NMEDIT=$lt_NMEDIT
17054
17055 # Tool to manipulate fat objects and archives on Mac OS X.
17056 LIPO=$lt_LIPO
17057
17058 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17059 OTOOL=$lt_OTOOL
17060
17061 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17062 OTOOL64=$lt_OTOOL64
17063
17064 # Old archive suffix (normally "a").
17065 libext=$libext
17066
17067 # Shared library suffix (normally ".so").
17068 shrext_cmds=$lt_shrext_cmds
17069
17070 # The commands to extract the exported symbol list from a shared archive.
17071 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17072
17073 # Variables whose values should be saved in libtool wrapper scripts and
17074 # restored at link time.
17075 variables_saved_for_relink=$lt_variables_saved_for_relink
17076
17077 # Do we need the "lib" prefix for modules?
17078 need_lib_prefix=$need_lib_prefix
17079
17080 # Do we need a version for libraries?
17081 need_version=$need_version
17082
17083 # Library versioning type.
17084 version_type=$version_type
17085
17086 # Shared library runtime path variable.
17087 runpath_var=$runpath_var
17088
17089 # Shared library path variable.
17090 shlibpath_var=$shlibpath_var
17091
17092 # Is shlibpath searched before the hard-coded library search path?
17093 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17094
17095 # Format of library name prefix.
17096 libname_spec=$lt_libname_spec
17097
17098 # List of archive names.  First name is the real one, the rest are links.
17099 # The last name is the one that the linker finds with -lNAME
17100 library_names_spec=$lt_library_names_spec
17101
17102 # The coded name of the library, if different from the real name.
17103 soname_spec=$lt_soname_spec
17104
17105 # Command to use after installation of a shared archive.
17106 postinstall_cmds=$lt_postinstall_cmds
17107
17108 # Command to use after uninstallation of a shared archive.
17109 postuninstall_cmds=$lt_postuninstall_cmds
17110
17111 # Commands used to finish a libtool library installation in a directory.
17112 finish_cmds=$lt_finish_cmds
17113
17114 # As "finish_cmds", except a single script fragment to be evaled but
17115 # not shown.
17116 finish_eval=$lt_finish_eval
17117
17118 # Whether we should hardcode library paths into libraries.
17119 hardcode_into_libs=$hardcode_into_libs
17120
17121 # Compile-time system search path for libraries.
17122 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17123
17124 # Run-time system search path for libraries.
17125 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17126
17127 # Whether dlopen is supported.
17128 dlopen_support=$enable_dlopen
17129
17130 # Whether dlopen of programs is supported.
17131 dlopen_self=$enable_dlopen_self
17132
17133 # Whether dlopen of statically linked programs is supported.
17134 dlopen_self_static=$enable_dlopen_self_static
17135
17136 # Commands to strip libraries.
17137 old_striplib=$lt_old_striplib
17138 striplib=$lt_striplib
17139
17140
17141 # The linker used to build libraries.
17142 LD=$lt_LD
17143
17144 # Commands used to build an old-style archive.
17145 old_archive_cmds=$lt_old_archive_cmds
17146
17147 # A language specific compiler.
17148 CC=$lt_compiler
17149
17150 # Is the compiler the GNU compiler?
17151 with_gcc=$GCC
17152
17153 # Compiler flag to turn off builtin functions.
17154 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17155
17156 # How to pass a linker flag through the compiler.
17157 wl=$lt_lt_prog_compiler_wl
17158
17159 # Additional compiler flags for building library objects.
17160 pic_flag=$lt_lt_prog_compiler_pic
17161
17162 # Compiler flag to prevent dynamic linking.
17163 link_static_flag=$lt_lt_prog_compiler_static
17164
17165 # Does compiler simultaneously support -c and -o options?
17166 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17167
17168 # Whether or not to add -lc for building shared libraries.
17169 build_libtool_need_lc=$archive_cmds_need_lc
17170
17171 # Whether or not to disallow shared libs when runtime libs are static.
17172 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17173
17174 # Compiler flag to allow reflexive dlopens.
17175 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17176
17177 # Compiler flag to generate shared objects directly from archives.
17178 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17179
17180 # Whether the compiler copes with passing no objects directly.
17181 compiler_needs_object=$lt_compiler_needs_object
17182
17183 # Create an old-style archive from a shared archive.
17184 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17185
17186 # Create a temporary old-style archive to link instead of a shared archive.
17187 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17188
17189 # Commands used to build a shared archive.
17190 archive_cmds=$lt_archive_cmds
17191 archive_expsym_cmds=$lt_archive_expsym_cmds
17192
17193 # Commands used to build a loadable module if different from building
17194 # a shared archive.
17195 module_cmds=$lt_module_cmds
17196 module_expsym_cmds=$lt_module_expsym_cmds
17197
17198 # Whether we are building with GNU ld or not.
17199 with_gnu_ld=$lt_with_gnu_ld
17200
17201 # Flag that allows shared libraries with undefined symbols to be built.
17202 allow_undefined_flag=$lt_allow_undefined_flag
17203
17204 # Flag that enforces no undefined symbols.
17205 no_undefined_flag=$lt_no_undefined_flag
17206
17207 # Flag to hardcode \$libdir into a binary during linking.
17208 # This must work even if \$libdir does not exist
17209 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17210
17211 # If ld is used when linking, flag to hardcode \$libdir into a binary
17212 # during linking.  This must work even if \$libdir does not exist.
17213 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17214
17215 # Whether we need a single "-rpath" flag with a separated argument.
17216 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17217
17218 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17219 # DIR into the resulting binary.
17220 hardcode_direct=$hardcode_direct
17221
17222 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17223 # DIR into the resulting binary and the resulting library dependency is
17224 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17225 # library is relocated.
17226 hardcode_direct_absolute=$hardcode_direct_absolute
17227
17228 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17229 # into the resulting binary.
17230 hardcode_minus_L=$hardcode_minus_L
17231
17232 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17233 # into the resulting binary.
17234 hardcode_shlibpath_var=$hardcode_shlibpath_var
17235
17236 # Set to "yes" if building a shared library automatically hardcodes DIR
17237 # into the library and all subsequent libraries and executables linked
17238 # against it.
17239 hardcode_automatic=$hardcode_automatic
17240
17241 # Set to yes if linker adds runtime paths of dependent libraries
17242 # to runtime path list.
17243 inherit_rpath=$inherit_rpath
17244
17245 # Whether libtool must link a program against all its dependency libraries.
17246 link_all_deplibs=$link_all_deplibs
17247
17248 # Fix the shell variable \$srcfile for the compiler.
17249 fix_srcfile_path=$lt_fix_srcfile_path
17250
17251 # Set to "yes" if exported symbols are required.
17252 always_export_symbols=$always_export_symbols
17253
17254 # The commands to list exported symbols.
17255 export_symbols_cmds=$lt_export_symbols_cmds
17256
17257 # Symbols that should not be listed in the preloaded symbols.
17258 exclude_expsyms=$lt_exclude_expsyms
17259
17260 # Symbols that must always be exported.
17261 include_expsyms=$lt_include_expsyms
17262
17263 # Commands necessary for linking programs (against libraries) with templates.
17264 prelink_cmds=$lt_prelink_cmds
17265
17266 # Specify filename containing input files.
17267 file_list_spec=$lt_file_list_spec
17268
17269 # How to hardcode a shared library path into an executable.
17270 hardcode_action=$hardcode_action
17271
17272 # ### END LIBTOOL CONFIG
17273
17274 _LT_EOF
17275
17276   case $host_os in
17277   aix3*)
17278     cat <<\_LT_EOF >> "$cfgfile"
17279 # AIX sometimes has problems with the GCC collect2 program.  For some
17280 # reason, if we set the COLLECT_NAMES environment variable, the problems
17281 # vanish in a puff of smoke.
17282 if test "X${COLLECT_NAMES+set}" != Xset; then
17283   COLLECT_NAMES=
17284   export COLLECT_NAMES
17285 fi
17286 _LT_EOF
17287     ;;
17288   esac
17289
17290
17291 ltmain="$ac_aux_dir/ltmain.sh"
17292
17293
17294   # We use sed instead of cat because bash on DJGPP gets confused if
17295   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17296   # text mode, it properly converts lines to CR/LF.  This bash problem
17297   # is reportedly fixed, but why not run on old versions too?
17298   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17299     || (rm -f "$cfgfile"; exit 1)
17300
17301   case $xsi_shell in
17302   yes)
17303     cat << \_LT_EOF >> "$cfgfile"
17304
17305 # func_dirname file append nondir_replacement
17306 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17307 # otherwise set result to NONDIR_REPLACEMENT.
17308 func_dirname ()
17309 {
17310   case ${1} in
17311     */*) func_dirname_result="${1%/*}${2}" ;;
17312     *  ) func_dirname_result="${3}" ;;
17313   esac
17314 }
17315
17316 # func_basename file
17317 func_basename ()
17318 {
17319   func_basename_result="${1##*/}"
17320 }
17321
17322 # func_dirname_and_basename file append nondir_replacement
17323 # perform func_basename and func_dirname in a single function
17324 # call:
17325 #   dirname:  Compute the dirname of FILE.  If nonempty,
17326 #             add APPEND to the result, otherwise set result
17327 #             to NONDIR_REPLACEMENT.
17328 #             value returned in "$func_dirname_result"
17329 #   basename: Compute filename of FILE.
17330 #             value retuned in "$func_basename_result"
17331 # Implementation must be kept synchronized with func_dirname
17332 # and func_basename. For efficiency, we do not delegate to
17333 # those functions but instead duplicate the functionality here.
17334 func_dirname_and_basename ()
17335 {
17336   case ${1} in
17337     */*) func_dirname_result="${1%/*}${2}" ;;
17338     *  ) func_dirname_result="${3}" ;;
17339   esac
17340   func_basename_result="${1##*/}"
17341 }
17342
17343 # func_stripname prefix suffix name
17344 # strip PREFIX and SUFFIX off of NAME.
17345 # PREFIX and SUFFIX must not contain globbing or regex special
17346 # characters, hashes, percent signs, but SUFFIX may contain a leading
17347 # dot (in which case that matches only a dot).
17348 func_stripname ()
17349 {
17350   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17351   # positional parameters, so assign one to ordinary parameter first.
17352   func_stripname_result=${3}
17353   func_stripname_result=${func_stripname_result#"${1}"}
17354   func_stripname_result=${func_stripname_result%"${2}"}
17355 }
17356
17357 # func_opt_split
17358 func_opt_split ()
17359 {
17360   func_opt_split_opt=${1%%=*}
17361   func_opt_split_arg=${1#*=}
17362 }
17363
17364 # func_lo2o object
17365 func_lo2o ()
17366 {
17367   case ${1} in
17368     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17369     *)    func_lo2o_result=${1} ;;
17370   esac
17371 }
17372
17373 # func_xform libobj-or-source
17374 func_xform ()
17375 {
17376   func_xform_result=${1%.*}.lo
17377 }
17378
17379 # func_arith arithmetic-term...
17380 func_arith ()
17381 {
17382   func_arith_result=$(( $* ))
17383 }
17384
17385 # func_len string
17386 # STRING may not start with a hyphen.
17387 func_len ()
17388 {
17389   func_len_result=${#1}
17390 }
17391
17392 _LT_EOF
17393     ;;
17394   *) # Bourne compatible functions.
17395     cat << \_LT_EOF >> "$cfgfile"
17396
17397 # func_dirname file append nondir_replacement
17398 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17399 # otherwise set result to NONDIR_REPLACEMENT.
17400 func_dirname ()
17401 {
17402   # Extract subdirectory from the argument.
17403   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17404   if test "X$func_dirname_result" = "X${1}"; then
17405     func_dirname_result="${3}"
17406   else
17407     func_dirname_result="$func_dirname_result${2}"
17408   fi
17409 }
17410
17411 # func_basename file
17412 func_basename ()
17413 {
17414   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17415 }
17416
17417
17418 # func_stripname prefix suffix name
17419 # strip PREFIX and SUFFIX off of NAME.
17420 # PREFIX and SUFFIX must not contain globbing or regex special
17421 # characters, hashes, percent signs, but SUFFIX may contain a leading
17422 # dot (in which case that matches only a dot).
17423 # func_strip_suffix prefix name
17424 func_stripname ()
17425 {
17426   case ${2} in
17427     .*) func_stripname_result=`$ECHO "X${3}" \
17428            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17429     *)  func_stripname_result=`$ECHO "X${3}" \
17430            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17431   esac
17432 }
17433
17434 # sed scripts:
17435 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17436 my_sed_long_arg='1s/^-[^=]*=//'
17437
17438 # func_opt_split
17439 func_opt_split ()
17440 {
17441   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17442   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17443 }
17444
17445 # func_lo2o object
17446 func_lo2o ()
17447 {
17448   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17449 }
17450
17451 # func_xform libobj-or-source
17452 func_xform ()
17453 {
17454   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17455 }
17456
17457 # func_arith arithmetic-term...
17458 func_arith ()
17459 {
17460   func_arith_result=`expr "$@"`
17461 }
17462
17463 # func_len string
17464 # STRING may not start with a hyphen.
17465 func_len ()
17466 {
17467   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17468 }
17469
17470 _LT_EOF
17471 esac
17472
17473 case $lt_shell_append in
17474   yes)
17475     cat << \_LT_EOF >> "$cfgfile"
17476
17477 # func_append var value
17478 # Append VALUE to the end of shell variable VAR.
17479 func_append ()
17480 {
17481   eval "$1+=\$2"
17482 }
17483 _LT_EOF
17484     ;;
17485   *)
17486     cat << \_LT_EOF >> "$cfgfile"
17487
17488 # func_append var value
17489 # Append VALUE to the end of shell variable VAR.
17490 func_append ()
17491 {
17492   eval "$1=\$$1\$2"
17493 }
17494
17495 _LT_EOF
17496     ;;
17497   esac
17498
17499
17500   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17501     || (rm -f "$cfgfile"; exit 1)
17502
17503   mv -f "$cfgfile" "$ofile" ||
17504     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17505   chmod +x "$ofile"
17506
17507  ;;
17508     "zzip/_config.h":C) ac_prefix_conf_OUT=`echo zzip/_config.h`
17509 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
17510 ac_prefix_conf_PKG=`echo zzip`
17511 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
17512 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
17513 ac_prefix_conf_INP=`echo "config.h" | sed -e 's/ *//'`
17514 if test ".$ac_prefix_conf_INP" = "."; then
17515    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
17516      case "$ac_file" in
17517         *.h) ac_prefix_conf_INP=$ac_file ;;
17518         *)
17519      esac
17520      test ".$ac_prefix_conf_INP" != "." && break
17521    done
17522 fi
17523 if test ".$ac_prefix_conf_INP" = "."; then
17524    case "$ac_prefix_conf_OUT" in
17525       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
17526       ;;
17527       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
17528       ;;
17529       *) ac_prefix_conf_INP=config.h
17530       ;;
17531    esac
17532 fi
17533 if test -z "$ac_prefix_conf_PKG" ; then
17534    as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
17535 else
17536   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
17537      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
17538   fi fi
17539   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
17540 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
17541   if test -f $ac_prefix_conf_INP ; then
17542     echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
17543     echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
17544     echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
17545     echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
17546     echo "#endif/" >>conftest.prefix
17547     echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
17548     echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
17549     echo "#endif/" >> conftest.prefix
17550     # now executing _script on _DEF input to create _OUT output file
17551     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
17552     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
17553     echo ' ' >>$tmp/pconfig.h
17554     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
17555
17556     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
17557     echo ' ' >>$tmp/pconfig.h
17558     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
17559     echo "#endif" >>$tmp/pconfig.h
17560     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
17561       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
17562 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
17563     else
17564       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
17565 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17566          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
17567          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
17568          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
17569 $as_echo X"$ac_prefix_conf_OUT" |
17570     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17571             s//\1/
17572             q
17573           }
17574           /^X\(\/\/\)[^/].*/{
17575             s//\1/
17576             q
17577           }
17578           /^X\(\/\/\)$/{
17579             s//\1/
17580             q
17581           }
17582           /^X\(\/\).*/{
17583             s//\1/
17584             q
17585           }
17586           s/.*/./; q'`
17587       as_dir="$ac_dir"; as_fn_mkdir_p
17588       rm -f "$ac_prefix_conf_OUT"
17589       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
17590     fi
17591     cp conftest.prefix _configs.sed
17592   else
17593     as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
17594   fi
17595   rm -f conftest.*
17596 fi
17597  ;;
17598     "zzip/_msvc.h":C) ac_prefix_conf_OUT=`echo zzip/_msvc.h`
17599 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
17600 ac_prefix_conf_PKG=`echo zzip`
17601 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
17602 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
17603 ac_prefix_conf_INP=`echo "zzip/_msvc.in" | sed -e 's/ *//'`
17604 if test ".$ac_prefix_conf_INP" = "."; then
17605    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
17606      case "$ac_file" in
17607         *.h) ac_prefix_conf_INP=$ac_file ;;
17608         *)
17609      esac
17610      test ".$ac_prefix_conf_INP" != "." && break
17611    done
17612 fi
17613 if test ".$ac_prefix_conf_INP" = "."; then
17614    case "$ac_prefix_conf_OUT" in
17615       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
17616       ;;
17617       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
17618       ;;
17619       *) ac_prefix_conf_INP=config.h
17620       ;;
17621    esac
17622 fi
17623 if test -z "$ac_prefix_conf_PKG" ; then
17624    as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
17625 else
17626   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
17627      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
17628   fi fi
17629   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
17630 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
17631   if test -f $ac_prefix_conf_INP ; then
17632     echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
17633     echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
17634     echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
17635     echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
17636     echo "#endif/" >>conftest.prefix
17637     echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
17638     echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
17639     echo "#endif/" >> conftest.prefix
17640     # now executing _script on _DEF input to create _OUT output file
17641     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
17642     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
17643     echo ' ' >>$tmp/pconfig.h
17644     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
17645
17646     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
17647     echo ' ' >>$tmp/pconfig.h
17648     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
17649     echo "#endif" >>$tmp/pconfig.h
17650     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
17651       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
17652 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
17653     else
17654       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
17655 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17656          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
17657          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
17658          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
17659 $as_echo X"$ac_prefix_conf_OUT" |
17660     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17661             s//\1/
17662             q
17663           }
17664           /^X\(\/\/\)[^/].*/{
17665             s//\1/
17666             q
17667           }
17668           /^X\(\/\/\)$/{
17669             s//\1/
17670             q
17671           }
17672           /^X\(\/\).*/{
17673             s//\1/
17674             q
17675           }
17676           s/.*/./; q'`
17677       as_dir="$ac_dir"; as_fn_mkdir_p
17678       rm -f "$ac_prefix_conf_OUT"
17679       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
17680     fi
17681     cp conftest.prefix _configs.sed
17682   else
17683     as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
17684   fi
17685   rm -f conftest.*
17686 fi
17687  ;;
17688     "$ax_create_pkgconfig_generate":C)
17689 pkgconfig_generate="$ax_create_pkgconfig_generate"
17690 if test ! -f "$pkgconfig_generate.in"
17691 then generate="true"
17692 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
17693 then generate="true"
17694 else generate="false";
17695 fi
17696 if $generate ; then
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
17698 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
17699 cat > $pkgconfig_generate.in <<AXEOF
17700 # generated by configure / remove this line to disable regeneration
17701 prefix=@prefix@
17702 exec_prefix=@exec_prefix@
17703 bindir=@bindir@
17704 libdir=@libdir@
17705 datarootdir=@datarootdir@
17706 datadir=@datadir@
17707 sysconfdir=@sysconfdir@
17708 includedir=@includedir@
17709 package=@PACKAGE@
17710 suffix=@suffix@
17711
17712 Name: @PACKAGE_NAME@
17713 Description: @PACKAGE_DESCRIPTION@
17714 Version: @PACKAGE_VERSION@
17715 Requires: @PACKAGE_REQUIRES@
17716 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
17717 Cflags: -I\${includedir} @CPPFLAGS@
17718 AXEOF
17719 fi # DONE generate $pkgconfig_generate.in
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
17721 $as_echo "$as_me: creating $pkgconfig_generate" >&6;}
17722 cat >conftest.sed <<AXEOF
17723 s|@prefix@|${pkgconfig_prefix}|
17724 s|@exec_prefix@|${pkgconfig_execprefix}|
17725 s|@bindir@|${pkgconfig_bindir}|
17726 s|@libdir@|${pkgconfig_libdir}|
17727 s|@datarootdir@|${pkgconfig_datarootdir}|
17728 s|@datadir@|${pkgconfig_datadir}|
17729 s|@sysconfdir@|${pkgconfig_sysconfdir}|
17730 s|@includedir@|${pkgconfig_includedir}|
17731 s|@suffix@|${pkgconfig_suffix}|
17732 s|@PACKAGE@|${pkgconfig_package}|
17733 s|@PACKAGE_NAME@|${pkgconfig_libname}|
17734 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
17735 s|@PACKAGE_VERSION@|${pkgconfig_version}|
17736 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
17737 s|@LIBS@|${pkgconfig_libs}|
17738 s|@LDFLAGS@|${pkgconfig_ldflags}|
17739 s|@CPPFLAGS@|${pkgconfig_cppflags}|
17740 AXEOF
17741 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_generate
17742 if test ! -s $pkgconfig_generate ; then
17743     as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
17744 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
17745 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
17747 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
17748 cat >conftest.sed <<AXEOF
17749 s|@prefix@|${pkgconfig_prefix}|
17750 s|@exec_prefix@|${pkgconfig_execprefix}|
17751 s|@bindir@|${pkgconfig_bindir}|
17752 s|@libdir@|${pkgconfig_src_libdir}|
17753 s|@datarootdir@|${pkgconfig_datarootdir}|
17754 s|@datadir@|${pkgconfig_datadir}|
17755 s|@sysconfdir@|${pkgconfig_sysconfdir}|
17756 s|@includedir@|${pkgconfig_src_headers}|
17757 s|@suffix@|${pkgconfig_suffix}|
17758 s|@PACKAGE@|${pkgconfig_package}|
17759 s|@PACKAGE_NAME@|${pkgconfig_libname}|
17760 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
17761 s|@PACKAGE_VERSION@|${pkgconfig_version}|
17762 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
17763 s|@LIBS@|${pkgconfig_libs}|
17764 s|@LDFLAGS@|${pkgconfig_ldflags}|
17765 s|@CPPFLAGS@|${pkgconfig_cppflags}|
17766 AXEOF
17767 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
17768 if test ! -s $pkgconfig_uninstalled ; then
17769     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
17770 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
17771            pkgconfig_requires_add=`echo ${pkgconfig_requires}`
17772 if test ".$pkgconfig_requires_add" != "." ; then
17773            pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
17774     else   pkgconfig_requires_add=":" ; fi
17775 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
17777 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
17778 cat >conftest.sed <<AXEOF
17779 s|@prefix@|\"${pkgconfig_prefix}\"|
17780 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
17781 s|@bindir@|\"${pkgconfig_bindir}\"|
17782 s|@libdir@|\"${pkgconfig_src_libdir}\"|
17783 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
17784 s|@datadir@|\"${pkgconfig_datadir}\"|
17785 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
17786 s|@includedir@|\"${pkgconfig_src_headers}\"|
17787 s|@suffix@|\"${pkgconfig_suffix}\"|
17788 s|@PACKAGE@|\"${pkgconfig_package}\"|
17789 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
17790 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
17791 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
17792 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
17793 s|@LIBS@|\"${pkgconfig_libs}\"|
17794 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
17795 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
17796 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
17797 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
17798 s>Version: *>\\;\\; --modversion|--version) echo >
17799 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
17800 s>Libs: *>\\;\\; --libs) echo >
17801 s>Cflags: *>\\;\\; --cflags) echo >
17802 /--libs)/a\\
17803        $pkgconfig_requires_add
17804 /--cflags)/a\\
17805        $pkgconfig_requires_add\\
17806 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
17807 ;; --uninstalled) exit 0 \\
17808 ;; *) ;; esac done
17809 AXEOF
17810 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_uninstalled
17811 if test ! -s $pkgconfig_uninstalled ; then
17812     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
17813 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
17814  ;;
17815
17816   esac
17817 done # for ac_tag
17818
17819
17820 as_fn_exit 0
17821 _ACEOF
17822 ac_clean_files=$ac_clean_files_save
17823
17824 test $ac_write_fail = 0 ||
17825   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17826
17827
17828 # configure is writing to config.log, and then calls config.status.
17829 # config.status does its own redirection, appending to config.log.
17830 # Unfortunately, on DOS this fails, as config.log is still kept open
17831 # by configure, so config.status won't be able to write to it; its
17832 # output is simply discarded.  So we exec the FD to /dev/null,
17833 # effectively closing config.log, so it can be properly (re)opened and
17834 # appended to by config.status.  When coming back to configure, we
17835 # need to make the FD available again.
17836 if test "$no_create" != yes; then
17837   ac_cs_success=:
17838   ac_config_status_args=
17839   test "$silent" = yes &&
17840     ac_config_status_args="$ac_config_status_args --quiet"
17841   exec 5>/dev/null
17842   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17843   exec 5>>config.log
17844   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17845   # would make configure fail if this is the last instruction.
17846   $ac_cs_success || as_fn_exit 1
17847 fi
17848 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17849   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17850 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17851 fi
17852
17853 # libtool-1.4 specific, on zsh target the final requoting does one too much
17854 case "$host_os" in
17855   darwin*)
17856     if grep "1.92" libtool >/dev/null ; then
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: patching libtool on .so-sharedlib creation (zsh overquoting)" >&5
17858 $as_echo "patching libtool on .so-sharedlib creation (zsh overquoting)" >&6; }
17859       test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
17860       sed -e '/archive_cmds=/s:[\\][\\][\\]*":\\":g' libtool >libtool.new
17861       (test -s libtool.new || rm libtool.new) 2>/dev/null
17862       test -f libtool.new && mv libtool.new libtool # not 2>/dev/null !!
17863       test -f libtool     || mv libtool.old libtool
17864     fi
17865   ;;
17866 esac
17867
17868 # patch libtool to fix sys_lib_search_path (e.g. crosscompiling a win32 dll)
17869 if test "_$PATH_SEPARATOR" = "_:" ; then
17870   if grep "^sys_lib_search_path_spec.*:" libtool >/dev/null ; then
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: patching libtool to fix sys_lib_search_path_spec" >&5
17872 $as_echo "patching libtool to fix sys_lib_search_path_spec" >&6; }
17873     test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
17874     sed -e "/^sys_lib_search_path_spec/s/:/ /g" libtool >libtool.new
17875     (test -s libtool.new || rm libtool.new) 2>/dev/null
17876     test -f libtool.new && mv libtool.new libtool # not 2>/dev/null !!
17877     test -f libtool     || mv libtool.old libtool
17878   fi
17879 fi
17880
17881 # patch libtool to add HOST_CC sometimes needed in crosscompiling a win32 dll
17882 if grep "HOST_CC" libtool >/dev/null; then
17883   if test "$build" != "$host" ; then
17884     if test "_$HOST_CC" = "_" ; then
17885       HOST_CC="false"
17886       for i in `echo $PATH | sed 's,:, ,g'` ; do
17887       test -x $i/cc && HOST_CC=$i/cc
17888       done
17889     fi
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: patching libtool to add HOST_CC=$HOST_CC" >&5
17891 $as_echo "patching libtool to add HOST_CC=$HOST_CC" >&6; }
17892     test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
17893     sed -e "/BEGIN.*LIBTOOL.*CONFIG/a\\
17894 HOST_CC=$HOST_CC" libtool >libtool.new
17895     (test -s libtool.new || rm libtool.new) 2>/dev/null
17896     test -f libtool.new && mv libtool.new libtool # not 2>/dev/null !!
17897     test -f libtool     || mv libtool.old libtool
17898   fi
17899 fi
17900
17901 # ---------------------------------------------------------------
17902 echo '-----' $PACKAGE $VERSION $prefix
17903 $SHELL libtool --features || true
17904 echo "CPPFLAGS=$CPPFLAGS"
17905 echo "CFLAGS=$CFLAGS"
17906 test "$enable_mmap" != "no" && echo "enable  mmap   ($enable_mmap)"
17907 test "$enable_mmap"  = "no" && echo "disable mmap   ($enable_mmap)"
17908 test "$with_lowstk" != "no" && echo "with    lowstk ($with_lowstk)"
17909 test "$with_lowstk"  = "no" && echo "without lowstk ($with_lowstk)"
17910 test "$with_debug"  != "no" && echo "with    debug  ($with_debug)"
17911 test "$with_debug"   = "no" && echo "without debug  ($with_debug)"
17912 # test -f ./zziplib.spec && echo warning - do not build in the source dirs
17913 echo '# make  && make check  && make install'