Debian Codegraph @

libs/zziplib/zziplib-src/old.configure

raw
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 <[email protected]> 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
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell [email protected] about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME=
592 PACKAGE_TARNAME=
593 PACKAGE_VERSION=
594 PACKAGE_STRING=
595 PACKAGE_BUGREPORT=
596 PACKAGE_URL=
597
598 ac_unique_file="zziplib.spec"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 CONFIG_FILES
640 aclocaldir
641 pkgconfigdir
642 RESOLVES
643 ZZIPLIB_LDFLAGS
644 ZIPTESTS
645 ASAN_CFLAGS
646 ASAN_LIBS
647 SDL_GENERATE
648 SDL
649 PKG_CONFIG_LIBDIR
650 PKG_CONFIG_PATH
651 PKG_CONFIG
652 ZLIB_VERSION
653 LARGEFILE_CFLAGS
654 XMLTO
655 MKZIP
656 PYTHON
657 PERL
658 PAX_TAR_EXTRACT
659 PAX_TAR_CREATE
660 TAR
661 GTAR
662 GNUTAR
663 PAX
664 pkgconfig_libfile
665 pkgconfig_libdir
666 MAINT
667 MAINTAINER_MODE_FALSE
668 MAINTAINER_MODE_TRUE
669 VERSION_INFO
670 RELEASE_INFO
671 CPP
672 LT_SYS_LIBRARY_PATH
673 OTOOL64
674 OTOOL
675 LIPO
676 NMEDIT
677 DSYMUTIL
678 MANIFEST_TOOL
679 RANLIB
680 ac_ct_AR
681 AR
682 LN_S
683 NM
684 ac_ct_DUMPBIN
685 DUMPBIN
686 LD
687 FGREP
688 EGREP
689 GREP
690 SED
691 LIBTOOL
692 OBJDUMP
693 DLLTOOL
694 AS
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__nodep
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__quote
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 AM_BACKSLASH
713 AM_DEFAULT_VERBOSITY
714 AM_DEFAULT_V
715 AM_V
716 am__untar
717 am__tar
718 AMTAR
719 am__leading_dot
720 SET_MAKE
721 AWK
722 mkdir_p
723 MKDIR_P
724 INSTALL_STRIP_PROGRAM
725 STRIP
726 install_sh
727 MAKEINFO
728 AUTOHEADER
729 AUTOMAKE
730 AUTOCONF
731 ACLOCAL
732 VERSION
733 PACKAGE
734 CYGPATH_W
735 am__isrc
736 INSTALL_DATA
737 INSTALL_SCRIPT
738 INSTALL_PROGRAM
739 ZLIB_LDIR
740 ZLIB_INCL
741 THREAD_SAFE
742 target_os
743 target_vendor
744 target_cpu
745 target
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_thread_safe
796 with_zlib
797 enable_silent_rules
798 enable_debug
799 enable_dependency_tracking
800 enable_shared
801 enable_static
802 with_pic
803 enable_fast_install
804 with_aix_soname
805 with_gnu_ld
806 with_sysroot
807 enable_libtool_lock
808 enable_maintainer_mode
809 enable_largefile
810 with_largefile
811 with_docdir
812 with_debug
813 with_lowstk
814 enable_mmap
815 enable_sdl
816 with_asan
817 with_defines
818 enable_frame_pointer
819 enable_enable_default_pkgconfigdir
820 enable_enable_default_aclocaldir
821 '
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CC
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 LT_SYS_LIBRARY_PATH
831 CPP
832 PKG_CONFIG
833 PKG_CONFIG_PATH
834 PKG_CONFIG_LIBDIR'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
932
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
965
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1185
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240 ;;
1241
1242 esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1263 do
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1339 fi
1340 else
1341 ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures this package to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1429
1430 cat <<\_ACEOF
1431
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 --target=TARGET configure for building compilers for TARGET [HOST]
1441 _ACEOF
1442 fi
1443
1444 if test -n "$ac_init_help"; then
1445
1446 cat <<\_ACEOF
1447
1448 Optional Features:
1449 --disable-option-checking ignore unrecognized --enable/--with options
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1452 --disable-thread-safe disable thread-safe libtool option
1453
1454 --enable-silent-rules less verbose build output (undo: "make V=1")
1455 --disable-silent-rules verbose build output (undo: "make V=0")
1456 --enable-debug=[yes/info/profile/no]
1457 compile with debugging
1458 --enable-dependency-tracking
1459 do not reject slow dependency extractors
1460 --disable-dependency-tracking
1461 speeds up one-time build
1462 --enable-shared[=PKGS] build shared libraries [default=yes]
1463 --enable-static[=PKGS] build static libraries [default=yes]
1464 --enable-fast-install[=PKGS]
1465 optimize for fast installation [default=yes]
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467 --enable-maintainer-mode
1468 enable make rules and dependencies not useful (and
1469 sometimes confusing) to the casual installer
1470 --disable-largefile omit support for large files
1471 --disable-mmap disable mmap usage
1472
1473 --enable-sdl enable SDL usage (if present)
1474
1475 --enable-frame-pointer enable callframe generation for debugging
1476 --enable-default-pkgconfigdir(=PATH) override the libdir/pkgconfig default
1477 --enable-default-aclocaldir(=PATH) override the datadir/aclocal default
1478
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-zlib zlib prefix (e.g. '$HOME/software')
1483
1484 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1485 both]
1486 --with-aix-soname=aix|svr4|both
1487 shared library versioning (aka "SONAME") variant to
1488 provide on AIX, [default=aix].
1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1490 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1491 compiler's sysroot if not specified).
1492 --with-largefile compile as off64_t instead of 32bit off_t
1493
1494 --with-docdir docdir prefix (prefix/share/doc)
1495
1496 --with-debug debug messages in library
1497
1498 --with-lowstk limited thread stack
1499
1500 --with-asan compile with adress sanitizer
1501
1502 --with-defines easy,harden,allow_modulo_entries
1503
1504 Some influential environment variables:
1505 CC C compiler command
1506 CFLAGS C compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 LT_SYS_LIBRARY_PATH
1513 User-defined run-time library search path.
1514 CPP C preprocessor
1515 PKG_CONFIG path to pkg-config utility
1516 PKG_CONFIG_PATH
1517 directories to add to pkg-config's search path
1518 PKG_CONFIG_LIBDIR
1519 path overriding pkg-config's built-in search path
1520
1521 Use these variables to override the choices made by `configure' or to help
1522 it to find libraries and programs with nonstandard names/locations.
1523
1524 Report bugs to the package provider.
1525 _ACEOF
1526 ac_status=$?
1527 fi
1528
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532 test -d "$ac_dir" ||
1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534 continue
1535 ac_builddir=.
1536
1537 case "$ac_dir" in
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *)
1540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1541 # A ".." for each directory in $ac_dir_suffix.
1542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543 case $ac_top_builddir_sub in
1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 esac ;;
1547 esac
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1552
1553 case $srcdir in
1554 .) # We are building in place.
1555 ac_srcdir=.
1556 ac_top_srcdir=$ac_top_builddir_sub
1557 ac_abs_top_srcdir=$ac_pwd ;;
1558 [\\/]* | ?:[\\/]* ) # Absolute name.
1559 ac_srcdir=$srcdir$ac_dir_suffix;
1560 ac_top_srcdir=$srcdir
1561 ac_abs_top_srcdir=$srcdir ;;
1562 *) # Relative name.
1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564 ac_top_srcdir=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 esac
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568
1569 cd "$ac_dir" || { ac_status=$?; continue; }
1570 # Check for guested configure.
1571 if test -f "$ac_srcdir/configure.gnu"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574 elif test -f "$ac_srcdir/configure"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure" --help=recursive
1577 else
1578 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 fi || ac_status=$?
1580 cd "$ac_pwd" || { ac_status=$?; break; }
1581 done
1582 fi
1583
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1586 cat <<\_ACEOF
1587 configure
1588 generated by GNU Autoconf 2.69
1589
1590 Copyright (C) 2012 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1593
1594 Guido Draheim <[email protected]> for ZZipLib.SF.net
1595 _ACEOF
1596 exit
1597 fi
1598
1599 ## ------------------------ ##
1600 ## Autoconf initialization. ##
1601 ## ------------------------ ##
1602
1603 # ac_fn_c_try_compile LINENO
1604 # --------------------------
1605 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_c_try_compile ()
1607 {
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 rm -f conftest.$ac_objext
1610 if { { ac_try="$ac_compile"
1611 case "(($ac_try" in
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_compile") 2>conftest.err
1618 ac_status=$?
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1623 fi
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && {
1626 test -z "$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 } && test -s conftest.$ac_objext; then :
1629 ac_retval=0
1630 else
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1633
1634 ac_retval=1
1635 fi
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1638
1639 } # ac_fn_c_try_compile
1640
1641 # ac_fn_c_try_link LINENO
1642 # -----------------------
1643 # Try to link conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_link ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext conftest$ac_exeext
1648 if { { ac_try="$ac_link"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_link") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1661 fi
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest$ac_exeext && {
1667 test "$cross_compiling" = yes ||
1668 test -x conftest$ac_exeext
1669 }; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=1
1676 fi
1677 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1678 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1679 # interfere with the next link command; also delete a directory that is
1680 # left behind by Apple's compiler. We do this before executing the actions.
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685 } # ac_fn_c_try_link
1686
1687 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1688 # -------------------------------------------------------
1689 # Tests whether HEADER exists and can be compiled using the include files in
1690 # INCLUDES, setting the cache variable VAR accordingly.
1691 ac_fn_c_check_header_compile ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1698 else
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1701 $4
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"; then :
1705 eval "$3=yes"
1706 else
1707 eval "$3=no"
1708 fi
1709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1710 fi
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715
1716 } # ac_fn_c_check_header_compile
1717
1718 # ac_fn_c_try_cpp LINENO
1719 # ----------------------
1720 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_cpp ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if { { ac_try="$ac_cpp conftest.$ac_ext"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } > conftest.i && {
1740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 }; then :
1743 ac_retval=0
1744 else
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1
1749 fi
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_cpp
1754
1755 # ac_fn_c_try_run LINENO
1756 # ----------------------
1757 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1758 # that executables *can* be run.
1759 ac_fn_c_try_run ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_link"
1763 case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_link") 2>&5
1770 ac_status=$?
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1773 { { case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_try") 2>&5
1780 ac_status=$?
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; }; }; then :
1783 ac_retval=0
1784 else
1785 $as_echo "$as_me: program exited with status $ac_status" >&5
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=$ac_status
1790 fi
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1794
1795 } # ac_fn_c_try_run
1796
1797 # ac_fn_c_check_func LINENO FUNC VAR
1798 # ----------------------------------
1799 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1800 ac_fn_c_check_func ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807 else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1812 #define $2 innocuous_$2
1813
1814 /* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char $2 (); below.
1816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1817 <limits.h> exists even on freestanding compilers. */
1818
1819 #ifdef __STDC__
1820 # include <limits.h>
1821 #else
1822 # include <assert.h>
1823 #endif
1824
1825 #undef $2
1826
1827 /* Override any GCC internal prototype to avoid an error.
1828 Use char because int might match the return type of a GCC
1829 builtin and then its argument prototype would still apply. */
1830 #ifdef __cplusplus
1831 extern "C"
1832 #endif
1833 char $2 ();
1834 /* The GNU C library defines this for functions which it implements
1835 to always fail with ENOSYS. Some functions are actually named
1836 something starting with __ and the normal name is an alias. */
1837 #if defined __stub_$2 || defined __stub___$2
1838 choke me
1839 #endif
1840
1841 int
1842 main ()
1843 {
1844 return $2 ();
1845 ;
1846 return 0;
1847 }
1848 _ACEOF
1849 if ac_fn_c_try_link "$LINENO"; then :
1850 eval "$3=yes"
1851 else
1852 eval "$3=no"
1853 fi
1854 rm -f core conftest.err conftest.$ac_objext \
1855 conftest$ac_exeext conftest.$ac_ext
1856 fi
1857 eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862 } # ac_fn_c_check_func
1863
1864 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1865 # -------------------------------------------------------
1866 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1867 # the include files in INCLUDES and setting the cache variable VAR
1868 # accordingly.
1869 ac_fn_c_check_header_mongrel ()
1870 {
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if eval \${$3+:} false; then :
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876 $as_echo_n "(cached) " >&6
1877 fi
1878 eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 else
1882 # Is the header compilable?
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1884 $as_echo_n "checking $2 usability... " >&6; }
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 $4
1888 #include <$2>
1889 _ACEOF
1890 if ac_fn_c_try_compile "$LINENO"; then :
1891 ac_header_compiler=yes
1892 else
1893 ac_header_compiler=no
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1897 $as_echo "$ac_header_compiler" >&6; }
1898
1899 # Is the header present?
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1901 $as_echo_n "checking $2 presence... " >&6; }
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 #include <$2>
1905 _ACEOF
1906 if ac_fn_c_try_cpp "$LINENO"; then :
1907 ac_header_preproc=yes
1908 else
1909 ac_header_preproc=no
1910 fi
1911 rm -f conftest.err conftest.i conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1913 $as_echo "$ac_header_preproc" >&6; }
1914
1915 # So? What about this header?
1916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1917 yes:no: )
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1919 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1921 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1922 ;;
1923 no:yes:* )
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1925 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1927 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1929 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1931 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1933 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1934 ;;
1935 esac
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1940 else
1941 eval "$3=\$ac_header_compiler"
1942 fi
1943 eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 fi
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948
1949 } # ac_fn_c_check_header_mongrel
1950
1951 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1952 # -------------------------------------------
1953 # Tests whether TYPE exists after having included INCLUDES, setting cache
1954 # variable VAR accordingly.
1955 ac_fn_c_check_type ()
1956 {
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 eval "$3=no"
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 $4
1967 int
1968 main ()
1969 {
1970 if (sizeof ($2))
1971 return 0;
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1979 $4
1980 int
1981 main ()
1982 {
1983 if (sizeof (($2)))
1984 return 0;
1985 ;
1986 return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990
1991 else
1992 eval "$3=yes"
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 fi
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003 } # ac_fn_c_check_type
2004 cat >config.log <<_ACEOF
2005 This file contains any messages produced by compilers while
2006 running configure, to aid debugging if configure makes a mistake.
2007
2008 It was created by $as_me, which was
2009 generated by GNU Autoconf 2.69. Invocation command line was
2010
2011 $ $0 $@
2012
2013 _ACEOF
2014 exec 5>>config.log
2015 {
2016 cat <<_ASUNAME
2017 ## --------- ##
2018 ## Platform. ##
2019 ## --------- ##
2020
2021 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2022 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2023 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2024 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2025 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2026
2027 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2028 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2029
2030 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2031 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2032 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2033 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2034 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2035 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2036 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2037
2038 _ASUNAME
2039
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2042 do
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 $as_echo "PATH: $as_dir"
2046 done
2047 IFS=$as_save_IFS
2048
2049 } >&5
2050
2051 cat >&5 <<_ACEOF
2052
2053
2054 ## ----------- ##
2055 ## Core tests. ##
2056 ## ----------- ##
2057
2058 _ACEOF
2059
2060
2061 # Keep a trace of the command line.
2062 # Strip out --no-create and --no-recursion so they do not pile up.
2063 # Strip out --silent because we don't want to record it for future runs.
2064 # Also quote any args containing shell meta-characters.
2065 # Make two passes to allow for proper duplicate-argument suppression.
2066 ac_configure_args=
2067 ac_configure_args0=
2068 ac_configure_args1=
2069 ac_must_keep_next=false
2070 for ac_pass in 1 2
2071 do
2072 for ac_arg
2073 do
2074 case $ac_arg in
2075 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2077 | -silent | --silent | --silen | --sile | --sil)
2078 continue ;;
2079 *\'*)
2080 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2081 esac
2082 case $ac_pass in
2083 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2084 2)
2085 as_fn_append ac_configure_args1 " '$ac_arg'"
2086 if test $ac_must_keep_next = true; then
2087 ac_must_keep_next=false # Got value, back to normal.
2088 else
2089 case $ac_arg in
2090 *=* | --config-cache | -C | -disable-* | --disable-* \
2091 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2092 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2093 | -with-* | --with-* | -without-* | --without-* | --x)
2094 case "$ac_configure_args0 " in
2095 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2096 esac
2097 ;;
2098 -* ) ac_must_keep_next=true ;;
2099 esac
2100 fi
2101 as_fn_append ac_configure_args " '$ac_arg'"
2102 ;;
2103 esac
2104 done
2105 done
2106 { ac_configure_args0=; unset ac_configure_args0;}
2107 { ac_configure_args1=; unset ac_configure_args1;}
2108
2109 # When interrupted or exit'd, cleanup temporary files, and complete
2110 # config.log. We remove comments because anyway the quotes in there
2111 # would cause problems or look ugly.
2112 # WARNING: Use '\'' to represent an apostrophe within the trap.
2113 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2114 trap 'exit_status=$?
2115 # Save into config.log some information that might help in debugging.
2116 {
2117 echo
2118
2119 $as_echo "## ---------------- ##
2120 ## Cache variables. ##
2121 ## ---------------- ##"
2122 echo
2123 # The following way of writing the cache mishandles newlines in values,
2124 (
2125 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2126 eval ac_val=\$$ac_var
2127 case $ac_val in #(
2128 *${as_nl}*)
2129 case $ac_var in #(
2130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2131 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2132 esac
2133 case $ac_var in #(
2134 _ | IFS | as_nl) ;; #(
2135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2136 *) { eval $ac_var=; unset $ac_var;} ;;
2137 esac ;;
2138 esac
2139 done
2140 (set) 2>&1 |
2141 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2142 *${as_nl}ac_space=\ *)
2143 sed -n \
2144 "s/'\''/'\''\\\\'\'''\''/g;
2145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2146 ;; #(
2147 *)
2148 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2149 ;;
2150 esac |
2151 sort
2152 )
2153 echo
2154
2155 $as_echo "## ----------------- ##
2156 ## Output variables. ##
2157 ## ----------------- ##"
2158 echo
2159 for ac_var in $ac_subst_vars
2160 do
2161 eval ac_val=\$$ac_var
2162 case $ac_val in
2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164 esac
2165 $as_echo "$ac_var='\''$ac_val'\''"
2166 done | sort
2167 echo
2168
2169 if test -n "$ac_subst_files"; then
2170 $as_echo "## ------------------- ##
2171 ## File substitutions. ##
2172 ## ------------------- ##"
2173 echo
2174 for ac_var in $ac_subst_files
2175 do
2176 eval ac_val=\$$ac_var
2177 case $ac_val in
2178 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179 esac
2180 $as_echo "$ac_var='\''$ac_val'\''"
2181 done | sort
2182 echo
2183 fi
2184
2185 if test -s confdefs.h; then
2186 $as_echo "## ----------- ##
2187 ## confdefs.h. ##
2188 ## ----------- ##"
2189 echo
2190 cat confdefs.h
2191 echo
2192 fi
2193 test "$ac_signal" != 0 &&
2194 $as_echo "$as_me: caught signal $ac_signal"
2195 $as_echo "$as_me: exit $exit_status"
2196 } >&5
2197 rm -f core *.core core.conftest.* &&
2198 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2199 exit $exit_status
2200 ' 0
2201 for ac_signal in 1 2 13 15; do
2202 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2203 done
2204 ac_signal=0
2205
2206 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2207 rm -f -r conftest* confdefs.h
2208
2209 $as_echo "/* confdefs.h */" > confdefs.h
2210
2211 # Predefined preprocessor variables.
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_NAME "$PACKAGE_NAME"
2215 _ACEOF
2216
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2219 _ACEOF
2220
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2223 _ACEOF
2224
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_STRING "$PACKAGE_STRING"
2227 _ACEOF
2228
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2231 _ACEOF
2232
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_URL "$PACKAGE_URL"
2235 _ACEOF
2236
2237
2238 # Let the site file select an alternate cache file if it wants to.
2239 # Prefer an explicitly selected file to automatically selected ones.
2240 ac_site_file1=NONE
2241 ac_site_file2=NONE
2242 if test -n "$CONFIG_SITE"; then
2243 # We do not want a PATH search for config.site.
2244 case $CONFIG_SITE in #((
2245 -*) ac_site_file1=./$CONFIG_SITE;;
2246 */*) ac_site_file1=$CONFIG_SITE;;
2247 *) ac_site_file1=./$CONFIG_SITE;;
2248 esac
2249 elif test "x$prefix" != xNONE; then
2250 ac_site_file1=$prefix/share/config.site
2251 ac_site_file2=$prefix/etc/config.site
2252 else
2253 ac_site_file1=$ac_default_prefix/share/config.site
2254 ac_site_file2=$ac_default_prefix/etc/config.site
2255 fi
2256 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2257 do
2258 test "x$ac_site_file" = xNONE && continue
2259 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2261 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2262 sed 's/^/| /' "$ac_site_file" >&5
2263 . "$ac_site_file" \
2264 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2266 as_fn_error $? "failed to load site script $ac_site_file
2267 See \`config.log' for more details" "$LINENO" 5; }
2268 fi
2269 done
2270
2271 if test -r "$cache_file"; then
2272 # Some versions of bash will fail to source /dev/null (special files
2273 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2274 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2276 $as_echo "$as_me: loading cache $cache_file" >&6;}
2277 case $cache_file in
2278 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2279 *) . "./$cache_file";;
2280 esac
2281 fi
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2284 $as_echo "$as_me: creating cache $cache_file" >&6;}
2285 >$cache_file
2286 fi
2287
2288 # Check that the precious variables saved in the cache have kept the same
2289 # value.
2290 ac_cache_corrupted=false
2291 for ac_var in $ac_precious_vars; do
2292 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2293 eval ac_new_set=\$ac_env_${ac_var}_set
2294 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2295 eval ac_new_val=\$ac_env_${ac_var}_value
2296 case $ac_old_set,$ac_new_set in
2297 set,)
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2299 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2300 ac_cache_corrupted=: ;;
2301 ,set)
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2303 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2304 ac_cache_corrupted=: ;;
2305 ,);;
2306 *)
2307 if test "x$ac_old_val" != "x$ac_new_val"; then
2308 # differences in whitespace do not lead to failure.
2309 ac_old_val_w=`echo x $ac_old_val`
2310 ac_new_val_w=`echo x $ac_new_val`
2311 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2313 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2314 ac_cache_corrupted=:
2315 else
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2317 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2318 eval $ac_var=\$ac_old_val
2319 fi
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2321 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2323 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2324 fi;;
2325 esac
2326 # Pass precious variables to config.status.
2327 if test "$ac_new_set" = set; then
2328 case $ac_new_val in
2329 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2330 *) ac_arg=$ac_var=$ac_new_val ;;
2331 esac
2332 case " $ac_configure_args " in
2333 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2334 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2335 esac
2336 fi
2337 done
2338 if $ac_cache_corrupted; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2342 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2343 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2344 fi
2345 ## -------------------- ##
2346 ## Main body of script. ##
2347 ## -------------------- ##
2348
2349 ac_ext=c
2350 ac_cpp='$CPP $CPPFLAGS'
2351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2354
2355
2356
2357
2358
2359 ac_aux_dir=
2360 for ac_dir in uses "$srcdir"/uses; do
2361 if test -f "$ac_dir/install-sh"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/install-sh -c"
2364 break
2365 elif test -f "$ac_dir/install.sh"; then
2366 ac_aux_dir=$ac_dir
2367 ac_install_sh="$ac_aux_dir/install.sh -c"
2368 break
2369 elif test -f "$ac_dir/shtool"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/shtool install -c"
2372 break
2373 fi
2374 done
2375 if test -z "$ac_aux_dir"; then
2376 as_fn_error $? "cannot find install-sh, install.sh, or shtool in uses \"$srcdir\"/uses" "$LINENO" 5
2377 fi
2378
2379 # These three variables are undocumented and unsupported,
2380 # and are intended to be withdrawn in a future Autoconf release.
2381 # They can cause serious problems if a builder's source tree is in a directory
2382 # whose full name contains unusual characters.
2383 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2384 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2385 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2386
2387
2388
2389 # =======================================================================
2390 # Make sure we can run config.sub.
2391 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2392 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2393
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2395 $as_echo_n "checking build system type... " >&6; }
2396 if ${ac_cv_build+:} false; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 ac_build_alias=$build_alias
2400 test "x$ac_build_alias" = x &&
2401 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2402 test "x$ac_build_alias" = x &&
2403 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2404 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2406
2407 fi
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2409 $as_echo "$ac_cv_build" >&6; }
2410 case $ac_cv_build in
2411 *-*-*) ;;
2412 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2413 esac
2414 build=$ac_cv_build
2415 ac_save_IFS=$IFS; IFS='-'
2416 set x $ac_cv_build
2417 shift
2418 build_cpu=$1
2419 build_vendor=$2
2420 shift; shift
2421 # Remember, the first character of IFS is used to create $*,
2422 # except with old shells:
2423 build_os=$*
2424 IFS=$ac_save_IFS
2425 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2426
2427
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2429 $as_echo_n "checking host system type... " >&6; }
2430 if ${ac_cv_host+:} false; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 if test "x$host_alias" = x; then
2434 ac_cv_host=$ac_cv_build
2435 else
2436 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2437 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2438 fi
2439
2440 fi
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2442 $as_echo "$ac_cv_host" >&6; }
2443 case $ac_cv_host in
2444 *-*-*) ;;
2445 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2446 esac
2447 host=$ac_cv_host
2448 ac_save_IFS=$IFS; IFS='-'
2449 set x $ac_cv_host
2450 shift
2451 host_cpu=$1
2452 host_vendor=$2
2453 shift; shift
2454 # Remember, the first character of IFS is used to create $*,
2455 # except with old shells:
2456 host_os=$*
2457 IFS=$ac_save_IFS
2458 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2459
2460
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2462 $as_echo_n "checking target system type... " >&6; }
2463 if ${ac_cv_target+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test "x$target_alias" = x; then
2467 ac_cv_target=$ac_cv_host
2468 else
2469 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2470 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2471 fi
2472
2473 fi
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2475 $as_echo "$ac_cv_target" >&6; }
2476 case $ac_cv_target in
2477 *-*-*) ;;
2478 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2479 esac
2480 target=$ac_cv_target
2481 ac_save_IFS=$IFS; IFS='-'
2482 set x $ac_cv_target
2483 shift
2484 target_cpu=$1
2485 target_vendor=$2
2486 shift; shift
2487 # Remember, the first character of IFS is used to create $*,
2488 # except with old shells:
2489 target_os=$*
2490 IFS=$ac_save_IFS
2491 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2492
2493
2494 # The aliases save the names the user supplied, while $host etc.
2495 # will get canonicalized.
2496 test -n "$target_alias" &&
2497 test "$program_prefix$program_suffix$program_transform_name" = \
2498 NONENONEs,x,x, &&
2499 program_prefix=${target_alias}-
2500
2501 # --------------------------------------------
2502 case "$prefix:$ac_default_prefix" in
2503 NONE:/usr/local)
2504 result=""
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default prefix path" >&5
2506 $as_echo_n "checking default prefix path... " >&6; }
2507 case "${target_os}" in
2508 *cygwin* | *mingw* | *uwin* | *djgpp | *emx* )
2509 if test "${host_os}" = "${target_os}" ; then
2510 ac_default_prefix="/programs"
2511 result="(win/dos target)"
2512 else
2513 case "$PATH" in
2514 *:/usr/local/cross-tools/$target_alias/bin:*)
2515 ac_default_prefix="/usr/local/cross-tools/$target_alias" ;;
2516 *:/usr/local/$target_alias/bin:*)
2517 ac_default_prefix="/usr/local/$target_alias" ;;
2518 *:/usr/local/$target_cpu-$target_os/bin:*)
2519 ac_default_prefix="/usr/local/$target_cpu-$target_os" ;;
2520 *)
2521 ac_default_prefix="/programs" ;;
2522 esac
2523 result="(win/dos cross-compiler)"
2524 fi
2525 ;;
2526 esac
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_default_prefix $result" >&5
2528 $as_echo "$ac_default_prefix $result" >&6; }
2529 ;;
2530 esac
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default prefix system" >&5
2532 $as_echo_n "checking default prefix system... " >&6; }
2533 result="$prefix" ; test "$result" = "NONE" && result="$ac_default_prefix"
2534 case ${result} in
2535 /programs | /programs/*) result="is win-/programs"
2536 # on win/dos, .exe .dll and .cfg live in the same directory
2537 libdir=`echo $libdir |sed -e 's:^..exec_prefix./lib$:${bindir}:'`
2538 sbindir=`echo $sbindir |sed -e 's:^..exec_prefix./sbin$:${libdir}:'`
2539 sysconfdir=`echo $sysconfdir |sed -e 's:^..prefix./etc$:${sbindir}:'`
2540 libexecdir=`echo $libexecdir |sed -e 's:/libexec$:/system:'`
2541 # help-files shall be set with --infodir, docprefix is datadir
2542 docprefix="${datadir}"
2543 mandir=`echo $mandir \
2544 |sed -e 's:^..prefix./man$:${datadir}/info:'`
2545 includedir=`echo $includedir \
2546 |sed -e 's:^..prefix./include$:${datadir}/include:'`
2547 # other state files (but /etc) are moved to datadir
2548 sharedstatedir=`echo $sharedstatedir \
2549 |sed -e 's:^..prefix./com$:${datadir}/default:'`
2550 localstatedir=`echo $localstatedir \
2551 |sed -e 's:^..prefix./var$:${datadir}/current:'`
2552 ;;
2553 /usr) result="is /usr-shipped"
2554 # doc files are left at prefix
2555 docprefix="${prefix}"
2556 # state files go under /top
2557 sysconfdir=`echo $sysconfdir |sed -e 's:^..prefix./etc$:/etc:'`
2558 sharedstatedir=`echo $sharedstatedir \
2559 |sed -e 's:^..prefix./com$:/etc/default:'`
2560 # $prefix/var is going to end up in /var/lib
2561 localstatedir=`echo $localstatedir \
2562 |sed -e 's:^..prefix./var$:/var/lib:'`
2563 ;;
2564 /opt | /opt/*) result="is /opt-package"
2565 # state files go under /top/prefix
2566 sysconfdir=`echo $sysconfdir \
2567 |sed -e 's:^..prefix./etc$:/etc${prefix}:'`
2568 sharedstatedir=`echo $sharedstatedir \
2569 |sed -e 's:^..prefix./com$:/etc/default${prefix}:'`
2570 # $prefix/var is going to to be /var$prefix... once again
2571 localstatedir=`echo $localstatedir \
2572 |sed -e 's:^..prefix./var$:/var${prefix}:'`
2573 # doc files are left at prefix
2574 docprefix="${prefix}"
2575 ;;
2576 *) result="is /local-package"
2577 # doc files are moved from prefix down to datadir
2578 docprefix="${datadir}"
2579 mandir=`echo $mandir \
2580 |sed -e 's:^..prefix./man$:${datadir}/man:'`
2581 infodir=`echo $infodir \
2582 |sed -e 's:^..prefix./infodir$:${datadir}/info:'`
2583 # never use $prefix/com - that is no good idea
2584 sharedstatedir=`echo $sharedstatedir \
2585 |sed -e 's:^..prefix./com$:${sysconfdir}/default:'`
2586 ;;
2587 esac
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
2589 $as_echo "$result" >&6; }
2590 # --------------------------------------------------------
2591
2592 # -----------------------------------------------------------------------
2593 # Check whether --enable-thread-safe was given.
2594 if test "${enable_thread_safe+set}" = set; then :
2595 enableval=$enable_thread_safe;
2596 else
2597 enable_thread_safe="yes"
2598 fi
2599
2600 THREAD_SAFE=""
2601 test "$enable_thread_safe" = "yes" && THREAD_SAFE="-thread-safe"
2602 test "$enable_thread_safe" = "$host_os" && THREAD_SAFE="-thread-safe"
2603
2604 if test -n "$THREAD_SAFE" ; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...using thread-safe linkage" >&5
2606 $as_echo "...using thread-safe linkage" >&6; }
2607 else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled thread-safe linkage" >&5
2609 $as_echo "disabled thread-safe linkage" >&6; }
2610 fi
2611 # ----------------------------------------------------------------
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib install prefix" >&5
2613 $as_echo_n "checking zlib install prefix... " >&6; }
2614
2615 # Check whether --with-zlib was given.
2616 if test "${with_zlib+set}" = set; then :
2617 withval=$with_zlib;
2618 else
2619 with_zlib="no"
2620 fi
2621
2622 if test "${with_zlib}" = yes ; then # choose --prefix paths
2623 if test "${prefix}" = NONE ; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops, but only itself..." >&5
2625 $as_echo "oops, but only itself..." >&6; }
2626 as_fn_error $? "--with-zlib requires a path argument or a --prefix path set" "$LINENO" 5
2627 fi
2628 with_zlib="$prefix"
2629 fi
2630
2631 case ".$with_zlib" in
2632 .no|.no,*)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
2634 $as_echo "none" >&6; }
2635 with_zlib="no, not configured" ;;
2636 ./usr)
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops, ignored (may try --with-zlib=/usr/.)" >&5
2638 $as_echo "oops, ignored (may try --with-zlib=/usr/.)" >&6; }
2639 with_zlib="no, /usr ignored" ;;
2640 *) if test ! -d "$with_zlib/include" ; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops, given but..." >&5
2642 $as_echo "oops, given but..." >&6; }
2643 as_fn_error $? "\"$with_zlib/include\" is not a directory" "$LINENO" 5
2644 fi
2645 if test ! -d "$with_zlib/lib" ; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops, given but..." >&5
2647 $as_echo "oops, given but..." >&6; }
2648 as_fn_error $? "\"$with_zlib/lib\" is not a directory" "$LINENO" 5
2649 fi
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zlib" >&5
2651 $as_echo "$with_zlib" >&6; }
2652 ZLIB_INCL="-I$with_zlib/include"
2653 ZLIB_LDIR="-L$with_zlib/lib"
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CPPFLAGS $ZLIB_INCL" >&5
2655 $as_echo "..adding CPPFLAGS $ZLIB_INCL" >&6; }
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding LDFLAGS $ZLIB_LDIR" >&5
2657 $as_echo "..adding LDFLAGS $ZLIB_LDIR" >&6; }
2658 CPPFLAGS="$CPPFLAGS $ZLIB_INCL"
2659 LDFLAGS="$LDFLAGS $ZLIB_LDIR"
2660 ;;
2661 esac
2662
2663
2664 # -----------------------------------------------------------------------
2665
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking rpm spec file" >&5
2667 $as_echo_n "checking rpm spec file... " >&6; }
2668 if test "." != "." ; then
2669 ax_spec_file_=""
2670 ax_spec_file=`basename `
2671 else
2672 case ".$ac_unique_file" in
2673 *.spec) ax_spec_file="$ac_unique_file"
2674 ax_spec_file_="$ac_unique_file" ;;
2675 *) ax_spec_file="TODO"
2676 if test ".$PACKAGE" != "."
2677 then ax_spec_file_="$PACKAGE.spec"
2678 else ax_spec_file_="README"
2679 fi
2680 cat >&5 <<EOF
2681 no ax_spec_file argument has been given, using defaults of
2682 (1) $ax_spec_file_
2683 (2) $ax_spec_file
2684 EOF
2685 ;;
2686 esac
2687 fi
2688 # find specfile
2689 for i in . $srcdir $srcdir/.. .. ; do
2690 if test -f "$i/$ax_spec_file_" ; then
2691 ax_spec_dir="$i"
2692 ax_spec_file="$ax_spec_dir/$ax_spec_file_"
2693 break
2694 fi
2695 if test -f "$i/$ax_spec_file" ; then
2696 ax_spec_dir="$i"
2697 ax_spec_file="$ax_spec_dir/$ax_spec_file"
2698 break
2699 fi
2700 done
2701 case "$ax_spec_file" in
2702 ./*) if test "$ax_spec_file" = "./$ax_spec_file_" ; then
2703 ax_spec_file="$ax_spec_file_"
2704 fi
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_spec_file" >&5
2706 $as_echo "$ax_spec_file" >&6; } ;;
2707 */*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_spec_file" >&5
2708 $as_echo "$ax_spec_file" >&6; } ;;
2709 *) as_fn_error $? "no rpm spec file found" "$LINENO" 5 ;;
2710 esac
2711
2712
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec package" >&5
2714 $as_echo_n "checking for spec package... " >&6; }
2715 if test ".$PACKAGE_NAME" = "." ; then if test ! -f $ax_spec_file
2716 then k="(w/o spec)"
2717 else k=""
2718
2719 if test ".$PACKAGE_NAME" = "." ; then
2720 PACKAGE_NAME=`grep -i '^[ ]*name[ ]*:' "$ax_spec_file" | sed -e 's/.*:[ ]*//' -e 's/[ ][ ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
2721 if test ".$PACKAGE_NAME" = "." ; then
2722 for PACKAGE_NAME in name PACKAGE_NAME package_name ; do
2723 PACKAGE_NAME=`echo "$PACKAGE_NAME" | sed -e 's/^%//g'`
2724 PACKAGE_NAME=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_NAME[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_NAME[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
2725 test ".PACKAGE_NAME" != "." && break
2726 done
2727 fi
2728 case ".$PACKAGE_NAME" in
2729 .%{*)
2730 PACKAGE_NAME=`echo "$PACKAGE_NAME" | sed -e 's/%{//' -e 's/}$//'`
2731 PACKAGE_NAME=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_NAME[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_NAME[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2732 .%*)
2733 PACKAGE_NAME=`echo "$PACKAGE_NAME" | sed -e 's/%//'`
2734 PACKAGE_NAME=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_NAME[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_NAME[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2735 esac
2736
2737 fi # test ".$[]PACKAGE_NAME" = "."
2738
2739 PACKAGE_NAME=`echo $PACKAGE_NAME | sed -e 's/ /-/g'`
2740 fi fi
2741 test ".$PACKAGE_NAME" = "." && k="(fallback)"
2742 test ".$PACKAGE_NAME" = "." && PACKAGE_NAME=`basename $ax_spec_file .spec`
2743 test ".$PACKAGE_NAME" = ".README" && PACKAGE_NAME="TODO"
2744 test ".$PACKAGE_NAME" = ".TODO" && PACKAGE_NAME="foo"
2745
2746 test "PACKAGE_NAME" = "PACKAGE_NAME" && test ".$PACKAGE" = "." && PACKAGE="$PACKAGE_NAME"
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_NAME $k" >&5
2748 $as_echo "$PACKAGE_NAME $k" >&6; }
2749
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec version" >&5
2751 $as_echo_n "checking for spec version... " >&6; }
2752 if test ".$PACKAGE_VERSION" = "." ; then if test ! -f $ax_spec_file
2753 then k="(w/o spec)"
2754 else k=""
2755
2756 if test ".$PACKAGE_VERSION" = "." ; then
2757 PACKAGE_VERSION=`grep -i '^[ ]*version[ ]*:' "$ax_spec_file" | sed -e 's/.*:[ ]*//' -e 's/[ ][ ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
2758 if test ".$PACKAGE_VERSION" = "." ; then
2759 for PACKAGE_VERSION in version PACKAGE_VERSION package_version ; do
2760 PACKAGE_VERSION=`echo "$PACKAGE_VERSION" | sed -e 's/^%//g'`
2761 PACKAGE_VERSION=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_VERSION[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_VERSION[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
2762 test ".PACKAGE_VERSION" != "." && break
2763 done
2764 fi
2765 case ".$PACKAGE_VERSION" in
2766 .%{*)
2767 PACKAGE_VERSION=`echo "$PACKAGE_VERSION" | sed -e 's/%{//' -e 's/}$//'`
2768 PACKAGE_VERSION=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_VERSION[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_VERSION[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2769 .%*)
2770 PACKAGE_VERSION=`echo "$PACKAGE_VERSION" | sed -e 's/%//'`
2771 PACKAGE_VERSION=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_VERSION[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_VERSION[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2772 esac
2773
2774 fi # test ".$[]PACKAGE_VERSION" = "."
2775
2776 PACKAGE_VERSION=`echo $PACKAGE_VERSION | sed -e 's/ /-/g'`
2777 fi fi
2778 test ".$PACKAGE_VERSION" = "." && k="(fallback)"
2779 test ".$PACKAGE_VERSION" = "." && PACKAGE_VERSION=`date +0.%y.%W%w`
2780
2781 test "PACKAGE_VERSION" = "PACKAGE_VERSION" && test ".$VERSION" = "." && VERSION="$PACKAGE_VERSION"
2782 case "$PACKAGE_VERSION" in # note we set traditional VERSION before cleaning things up
2783 *.*.) PACKAGE_VERSION="$PACKAGE_VERSION"`date +%W%w` ;;
2784 *.*.*) ;;
2785 *.) PACKAGE_VERSION="$PACKAGE_VERSION"`date +%y.%W%w` ;;
2786 *.*) PACKAGE_VERSION="$PACKAGE_VERSION.0" ;;
2787 *) PACKAGE_VERSION=`$as_echo "$PACKAGE_VERSION" | $as_tr_sh` ; PACKAGE_VERSION="$PACKAGE_VERSION.`date +%y.%W%w`" ;;
2788 esac
2789 PACKAGE_VERSION=`echo $PACKAGE_VERSION | sed -e "s/[.]0\\(0-9\\)/.\\1/g"`
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_VERSION $k" >&5
2791 $as_echo "$PACKAGE_VERSION $k" >&6; }
2792
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec license type" >&5
2794 $as_echo_n "checking for spec license type... " >&6; }
2795 if test ".$PACKAGE_LICENSE" = "." ; then if test ! -f $ax_spec_file
2796 then k="(w/o spec)"
2797 else k=""
2798
2799 if test ".$PACKAGE_LICENSE" = "." ; then
2800 PACKAGE_LICENSE=`grep -i '^[ ]*license[ ]*:' "$ax_spec_file" | sed -e 's/.*:[ ]*//' -e 's/[ ][ ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
2801 if test ".$PACKAGE_LICENSE" = "." ; then
2802 for PACKAGE_LICENSE in license PACKAGE_LICENSE package_license ; do
2803 PACKAGE_LICENSE=`echo "$PACKAGE_LICENSE" | sed -e 's/^%//g'`
2804 PACKAGE_LICENSE=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_LICENSE[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_LICENSE[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
2805 test ".PACKAGE_LICENSE" != "." && break
2806 done
2807 fi
2808 case ".$PACKAGE_LICENSE" in
2809 .%{*)
2810 PACKAGE_LICENSE=`echo "$PACKAGE_LICENSE" | sed -e 's/%{//' -e 's/}$//'`
2811 PACKAGE_LICENSE=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_LICENSE[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_LICENSE[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2812 .%*)
2813 PACKAGE_LICENSE=`echo "$PACKAGE_LICENSE" | sed -e 's/%//'`
2814 PACKAGE_LICENSE=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_LICENSE[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_LICENSE[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2815 esac
2816
2817 fi # test ".$[]PACKAGE_LICENSE" = "."
2818
2819 PACKAGE_LICENSE=`echo $PACKAGE_LICENSE | sed -e 's/ *License//g'`
2820 fi fi
2821 test ".$PACKAGE_LICENSE" = "." && k="(fallback)"
2822 if test ".$PACKAGE_LICENSE" = "." ; then
2823 for ac_file in "$srcdir/COPYING" "$srcdir/COPYING" "$srcdir/LICENSE" ; do
2824 test -f "$ac_file" || continue
2825 if grep "GNU LESSER GENERAL PUBLIC LICENSE" "$ac_file" >/dev/null
2826 then PACKAGE_LICENSE="GNU LGPL" ; break
2827 elif grep "GNU GENERAL PUBLIC LICENSE" "$ac_file" >/dev/null
2828 then PACKAGE_LICENSE="GNU GPL" ; break
2829 elif grep "MOZILLA PUBLIC LICENSE" "$ac_file" >/dev/null
2830 then PACKAGE_LICENSE="MPL" ; break
2831 elif grep "Mozilla Public License" "$ac_file" >/dev/null
2832 then PACKAGE_LICENSE="MPL" ; break
2833 elif grep -i "artistic license" "$ac_file" >/dev/null
2834 then PACKAGE_LICENSE="Artistic" ; break
2835 elif grep -i "artistic control" "$ac_file" >/dev/null
2836 then PACKAGE_LICENSE="Artistic" ; break
2837 elif grep -i "semblance of artistic" "$ac_file" >/dev/null
2838 then PACKAGE_LICENSE="Artistic" ; break
2839 elif grep -i "above copyright notice" "$ac_file" >/dev/null
2840 then PACKAGE_LICENSE="BSD" ; break
2841 fi
2842 done
2843 if test ".$PACKAGE_LICENSE" = "." ; then
2844 if test "$srcdir/COPYING.LIB" ; then PACKAGE_LICENSE="GNU LGPL"
2845 elif test ".$ltmain" != "." ; then PACKAGE_LICENSE="GNU LGPL"
2846 else PACKAGE_LICENSE="GNU GPL"
2847 fi
2848 fi
2849 fi
2850
2851 test "$PACKAGE_LICENSE" = "GPL" && PACKAGE_LICENSE="GNU GPL"
2852 test "$PACKAGE_LICENSE" = "LGPL" && PACKAGE_LICENSE="GNU LGPL"
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_LICENSE $k" >&5
2854 $as_echo "$PACKAGE_LICENSE $k" >&6; }
2855
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec summary" >&5
2857 $as_echo_n "checking for spec summary... " >&6; }
2858 if test ".$PACKAGE_SUMMARY" = "." ; then if test ! -f $ax_spec_file
2859 then k="(w/o spec)"
2860 else k=""
2861
2862 if test ".$PACKAGE_SUMMARY" = "." ; then
2863 PACKAGE_SUMMARY=`grep -i '^[ ]*summary[ ]*:' "$ax_spec_file" | sed -e 's/.*:[ ]*//' -e 's/[ ][ ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
2864 if test ".$PACKAGE_SUMMARY" = "." ; then
2865 for PACKAGE_SUMMARY in summary PACKAGE_SUMMARY package_summary ; do
2866 PACKAGE_SUMMARY=`echo "$PACKAGE_SUMMARY" | sed -e 's/^%//g'`
2867 PACKAGE_SUMMARY=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_SUMMARY[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_SUMMARY[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
2868 test ".PACKAGE_SUMMARY" != "." && break
2869 done
2870 fi
2871 case ".$PACKAGE_SUMMARY" in
2872 .%{*)
2873 PACKAGE_SUMMARY=`echo "$PACKAGE_SUMMARY" | sed -e 's/%{//' -e 's/}$//'`
2874 PACKAGE_SUMMARY=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_SUMMARY[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_SUMMARY[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2875 .%*)
2876 PACKAGE_SUMMARY=`echo "$PACKAGE_SUMMARY" | sed -e 's/%//'`
2877 PACKAGE_SUMMARY=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_SUMMARY[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_SUMMARY[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2878 esac
2879
2880 fi # test ".$[]PACKAGE_SUMMARY" = "."
2881
2882 fi fi
2883 test ".$PACKAGE_SUMMARY" = "." && k="(fallback)"
2884 if test ".$PACKAGE_SUMMARY" = "." ; then PACKAGE_SUMMARY="$PACKAGE"
2885 test ".$PACKAGE_SUMMARY" = "." && PACKAGE_SUMMARY="foo"
2886 test ".$ltmain" != "." && PACKAGE_SUMMARY="$PACKAGE_SUMMARY library"
2887 fi
2888
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_SUMMARY $k" >&5
2890 $as_echo "$PACKAGE_SUMMARY $k" >&6; }
2891
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec category" >&5
2893 $as_echo_n "checking for spec category... " >&6; }
2894 if test ".$PACKAGE_CATEGORY" = "." ; then if test ! -f $ax_spec_file
2895 then k="(w/o spec)"
2896 else k=""
2897
2898 if test ".$PACKAGE_CATEGORY" = "." ; then
2899 PACKAGE_CATEGORY=`grep -i '^[ ]*group[ ]*:' "$ax_spec_file" | sed -e 's/.*:[ ]*//' -e 's/[ ][ ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
2900 if test ".$PACKAGE_CATEGORY" = "." ; then
2901 for PACKAGE_CATEGORY in group PACKAGE_CATEGORY package_category ; do
2902 PACKAGE_CATEGORY=`echo "$PACKAGE_CATEGORY" | sed -e 's/^%//g'`
2903 PACKAGE_CATEGORY=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_CATEGORY[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_CATEGORY[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
2904 test ".PACKAGE_CATEGORY" != "." && break
2905 done
2906 fi
2907 case ".$PACKAGE_CATEGORY" in
2908 .%{*)
2909 PACKAGE_CATEGORY=`echo "$PACKAGE_CATEGORY" | sed -e 's/%{//' -e 's/}$//'`
2910 PACKAGE_CATEGORY=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_CATEGORY[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_CATEGORY[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2911 .%*)
2912 PACKAGE_CATEGORY=`echo "$PACKAGE_CATEGORY" | sed -e 's/%//'`
2913 PACKAGE_CATEGORY=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_CATEGORY[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_CATEGORY[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2914 esac
2915
2916 fi # test ".$[]PACKAGE_CATEGORY" = "."
2917
2918 PACKAGE_CATEGORY=`echo $PACKAGE_CATEGORY | sed -e 's/ /-/g'`
2919 fi fi
2920 test ".$PACKAGE_CATEGORY" = "." && k="(fallback)"
2921 if test ".$PACKAGE_CATEGORY" = "." ; then if test ".$ltmain" != "."
2922 then PACKAGE_CATEGORY="Development/Library"
2923 else PACKAGE_CATEGORY="Development/Other"
2924 fi fi
2925
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_CATEGORY $k" >&5
2927 $as_echo "$PACKAGE_CATEGORY $k" >&6; }
2928
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec icon" >&5
2930 $as_echo_n "checking for spec icon... " >&6; }
2931 if test ".$PACKAGE_ICON" = "." ; then if test ! -f $ax_spec_file
2932 then k="(w/o spec)"
2933 else k=""
2934
2935 if test ".$PACKAGE_ICON" = "." ; then
2936 PACKAGE_ICON=`grep -i '^[ ]*icon[ ]*:' "$ax_spec_file" | sed -e 's/.*:[ ]*//' -e 's/[ ][ ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
2937 if test ".$PACKAGE_ICON" = "." ; then
2938 for PACKAGE_ICON in icon PACKAGE_ICON package_icon ; do
2939 PACKAGE_ICON=`echo "$PACKAGE_ICON" | sed -e 's/^%//g'`
2940 PACKAGE_ICON=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_ICON[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_ICON[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
2941 test ".PACKAGE_ICON" != "." && break
2942 done
2943 fi
2944 case ".$PACKAGE_ICON" in
2945 .%{*)
2946 PACKAGE_ICON=`echo "$PACKAGE_ICON" | sed -e 's/%{//' -e 's/}$//'`
2947 PACKAGE_ICON=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_ICON[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_ICON[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2948 .%*)
2949 PACKAGE_ICON=`echo "$PACKAGE_ICON" | sed -e 's/%//'`
2950 PACKAGE_ICON=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_ICON[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_ICON[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2951 esac
2952
2953 fi # test ".$[]PACKAGE_ICON" = "."
2954
2955 fi fi
2956 test ".$PACKAGE_ICON" = "." && k="(fallback)"
2957 if test ".$PACKAGE_ICON" = "." ; then PACKAGE_ICON="$PACKAGE-icon.png" ; fi
2958
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_ICON $k" >&5
2960 $as_echo "$PACKAGE_ICON $k" >&6; }
2961
2962
2963 am__api_version='1.15'
2964
2965 # Find a good install program. We prefer a C program (faster),
2966 # so one script is as good as another. But avoid the broken or
2967 # incompatible versions:
2968 # SysV /etc/install, /usr/sbin/install
2969 # SunOS /usr/etc/install
2970 # IRIX /sbin/install
2971 # AIX /bin/install
2972 # AmigaOS /C/install, which installs bootblocks on floppy discs
2973 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2974 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2975 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2976 # OS/2's system install, which has a completely different semantic
2977 # ./install, which can be erroneously created by make from ./install.sh.
2978 # Reject install programs that cannot install multiple files.
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2980 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2981 if test -z "$INSTALL"; then
2982 if ${ac_cv_path_install+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 # Account for people who put trailing slashes in PATH elements.
2991 case $as_dir/ in #((
2992 ./ | .// | /[cC]/* | \
2993 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2994 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2995 /usr/ucb/* ) ;;
2996 *)
2997 # OSF1 and SCO ODT 3.0 have their own names for install.
2998 # Don't use installbsd from OSF since it installs stuff as root
2999 # by default.
3000 for ac_prog in ginstall scoinst install; do
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3003 if test $ac_prog = install &&
3004 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3005 # AIX install. It has an incompatible calling convention.
3006 :
3007 elif test $ac_prog = install &&
3008 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3009 # program-specific install script used by HP pwplus--don't use.
3010 :
3011 else
3012 rm -rf conftest.one conftest.two conftest.dir
3013 echo one > conftest.one
3014 echo two > conftest.two
3015 mkdir conftest.dir
3016 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3017 test -s conftest.one && test -s conftest.two &&
3018 test -s conftest.dir/conftest.one &&
3019 test -s conftest.dir/conftest.two
3020 then
3021 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3022 break 3
3023 fi
3024 fi
3025 fi
3026 done
3027 done
3028 ;;
3029 esac
3030
3031 done
3032 IFS=$as_save_IFS
3033
3034 rm -rf conftest.one conftest.two conftest.dir
3035
3036 fi
3037 if test "${ac_cv_path_install+set}" = set; then
3038 INSTALL=$ac_cv_path_install
3039 else
3040 # As a last resort, use the slow shell script. Don't cache a
3041 # value for INSTALL within a source directory, because that will
3042 # break other packages using the cache if that directory is
3043 # removed, or if the value is a relative name.
3044 INSTALL=$ac_install_sh
3045 fi
3046 fi
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3048 $as_echo "$INSTALL" >&6; }
3049
3050 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3051 # It thinks the first close brace ends the variable substitution.
3052 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3053
3054 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3055
3056 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3057
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3059 $as_echo_n "checking whether build environment is sane... " >&6; }
3060 # Reject unsafe characters in $srcdir or the absolute working directory
3061 # name. Accept space and tab only in the latter.
3062 am_lf='
3063 '
3064 case `pwd` in
3065 *[\\\"\#\$\&\'\`$am_lf]*)
3066 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3067 esac
3068 case $srcdir in
3069 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3070 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3071 esac
3072
3073 # Do 'set' in a subshell so we don't clobber the current shell's
3074 # arguments. Must try -L first in case configure is actually a
3075 # symlink; some systems play weird games with the mod time of symlinks
3076 # (eg FreeBSD returns the mod time of the symlink's containing
3077 # directory).
3078 if (
3079 am_has_slept=no
3080 for am_try in 1 2; do
3081 echo "timestamp, slept: $am_has_slept" > conftest.file
3082 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3083 if test "$*" = "X"; then
3084 # -L didn't work.
3085 set X `ls -t "$srcdir/configure" conftest.file`
3086 fi
3087 if test "$*" != "X $srcdir/configure conftest.file" \
3088 && test "$*" != "X conftest.file $srcdir/configure"; then
3089
3090 # If neither matched, then we have a broken ls. This can happen
3091 # if, for instance, CONFIG_SHELL is bash and it inherits a
3092 # broken ls alias from the environment. This has actually
3093 # happened. Such a system could not be considered "sane".
3094 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3095 alias in your environment" "$LINENO" 5
3096 fi
3097 if test "$2" = conftest.file || test $am_try -eq 2; then
3098 break
3099 fi
3100 # Just in case.
3101 sleep 1
3102 am_has_slept=yes
3103 done
3104 test "$2" = conftest.file
3105 )
3106 then
3107 # Ok.
3108 :
3109 else
3110 as_fn_error $? "newly created file is older than distributed files!
3111 Check your system clock" "$LINENO" 5
3112 fi
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3114 $as_echo "yes" >&6; }
3115 # If we didn't sleep, we still need to ensure time stamps of config.status and
3116 # generated files are strictly newer.
3117 am_sleep_pid=
3118 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3119 ( sleep 1 ) &
3120 am_sleep_pid=$!
3121 fi
3122
3123 rm -f conftest.file
3124
3125 test "$program_prefix" != NONE &&
3126 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3127 # Use a double $ so make ignores it.
3128 test "$program_suffix" != NONE &&
3129 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3130 # Double any \ or $.
3131 # By default was `s,x,x', remove it if useless.
3132 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3133 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3134
3135 # Expand $ac_aux_dir to an absolute path.
3136 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3137
3138 if test x"${MISSING+set}" != xset; then
3139 case $am_aux_dir in
3140 *\ * | *\ *)
3141 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3142 *)
3143 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3144 esac
3145 fi
3146 # Use eval to expand $SHELL
3147 if eval "$MISSING --is-lightweight"; then
3148 am_missing_run="$MISSING "
3149 else
3150 am_missing_run=
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3152 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3153 fi
3154
3155 if test x"${install_sh+set}" != xset; then
3156 case $am_aux_dir in
3157 *\ * | *\ *)
3158 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3159 *)
3160 install_sh="\${SHELL} $am_aux_dir/install-sh"
3161 esac
3162 fi
3163
3164 # Installed binaries are usually stripped using 'strip' when the user
3165 # run "make install-strip". However 'strip' might not be the right
3166 # tool to use in cross-compilation environments, therefore Automake
3167 # will honor the 'STRIP' environment variable to overrule this program.
3168 if test "$cross_compiling" != no; then
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}strip; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_STRIP+:} false; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$STRIP"; then
3178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191 done
3192 done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 STRIP=$ac_cv_prog_STRIP
3198 if test -n "$STRIP"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3200 $as_echo "$STRIP" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 fi
3205
3206
3207 fi
3208 if test -z "$ac_cv_prog_STRIP"; then
3209 ac_ct_STRIP=$STRIP
3210 # Extract the first word of "strip", so it can be a program name with args.
3211 set dummy strip; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 if test -n "$ac_ct_STRIP"; then
3218 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227 ac_cv_prog_ac_ct_STRIP="strip"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 break 2
3230 fi
3231 done
3232 done
3233 IFS=$as_save_IFS
3234
3235 fi
3236 fi
3237 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3238 if test -n "$ac_ct_STRIP"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3240 $as_echo "$ac_ct_STRIP" >&6; }
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 fi
3245
3246 if test "x$ac_ct_STRIP" = x; then
3247 STRIP=":"
3248 else
3249 case $cross_compiling:$ac_tool_warned in
3250 yes:)
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 ac_tool_warned=yes ;;
3254 esac
3255 STRIP=$ac_ct_STRIP
3256 fi
3257 else
3258 STRIP="$ac_cv_prog_STRIP"
3259 fi
3260
3261 fi
3262 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3263
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3265 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3266 if test -z "$MKDIR_P"; then
3267 if ${ac_cv_path_mkdir+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3272 do
3273 IFS=$as_save_IFS
3274 test -z "$as_dir" && as_dir=.
3275 for ac_prog in mkdir gmkdir; do
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3278 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3279 'mkdir (GNU coreutils) '* | \
3280 'mkdir (coreutils) '* | \
3281 'mkdir (fileutils) '4.1*)
3282 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3283 break 3;;
3284 esac
3285 done
3286 done
3287 done
3288 IFS=$as_save_IFS
3289
3290 fi
3291
3292 test -d ./--version && rmdir ./--version
3293 if test "${ac_cv_path_mkdir+set}" = set; then
3294 MKDIR_P="$ac_cv_path_mkdir -p"
3295 else
3296 # As a last resort, use the slow shell script. Don't cache a
3297 # value for MKDIR_P within a source directory, because that will
3298 # break other packages using the cache if that directory is
3299 # removed, or if the value is a relative name.
3300 MKDIR_P="$ac_install_sh -d"
3301 fi
3302 fi
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3304 $as_echo "$MKDIR_P" >&6; }
3305
3306 for ac_prog in gawk mawk nawk awk
3307 do
3308 # Extract the first word of "$ac_prog", so it can be a program name with args.
3309 set dummy $ac_prog; ac_word=$2
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if ${ac_cv_prog_AWK+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 if test -n "$AWK"; then
3316 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_AWK="$ac_prog"
3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329 done
3330 done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 AWK=$ac_cv_prog_AWK
3336 if test -n "$AWK"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3338 $as_echo "$AWK" >&6; }
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 fi
3343
3344
3345 test -n "$AWK" && break
3346 done
3347
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3349 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3350 set x ${MAKE-make}
3351 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3352 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 cat >conftest.make <<\_ACEOF
3356 SHELL = /bin/sh
3357 all:
3358 @echo '@@@%%%=$(MAKE)=@@@%%%'
3359 _ACEOF
3360 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3361 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3362 *@@@%%%=?*=@@@%%%*)
3363 eval ac_cv_prog_make_${ac_make}_set=yes;;
3364 *)
3365 eval ac_cv_prog_make_${ac_make}_set=no;;
3366 esac
3367 rm -f conftest.make
3368 fi
3369 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371 $as_echo "yes" >&6; }
3372 SET_MAKE=
3373 else
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 SET_MAKE="MAKE=${MAKE-make}"
3377 fi
3378
3379 rm -rf .tst 2>/dev/null
3380 mkdir .tst 2>/dev/null
3381 if test -d .tst; then
3382 am__leading_dot=.
3383 else
3384 am__leading_dot=_
3385 fi
3386 rmdir .tst 2>/dev/null
3387
3388 # Check whether --enable-silent-rules was given.
3389 if test "${enable_silent_rules+set}" = set; then :
3390 enableval=$enable_silent_rules;
3391 fi
3392
3393 case $enable_silent_rules in # (((
3394 yes) AM_DEFAULT_VERBOSITY=0;;
3395 no) AM_DEFAULT_VERBOSITY=1;;
3396 *) AM_DEFAULT_VERBOSITY=1;;
3397 esac
3398 am_make=${MAKE-make}
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3400 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3401 if ${am_cv_make_support_nested_variables+:} false; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 if $as_echo 'TRUE=$(BAR$(V))
3405 BAR0=false
3406 BAR1=true
3407 V=1
3408 am__doit:
3409 @$(TRUE)
3410 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3411 am_cv_make_support_nested_variables=yes
3412 else
3413 am_cv_make_support_nested_variables=no
3414 fi
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3417 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3418 if test $am_cv_make_support_nested_variables = yes; then
3419 AM_V='$(V)'
3420 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3421 else
3422 AM_V=$AM_DEFAULT_VERBOSITY
3423 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3424 fi
3425 AM_BACKSLASH='\'
3426
3427 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3428 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3429 # is not polluted with repeated "-I."
3430 am__isrc=' -I$(srcdir)'
3431 # test to see if srcdir already configured
3432 if test -f $srcdir/config.status; then
3433 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3434 fi
3435 fi
3436
3437 # test whether we have cygpath
3438 if test -z "$CYGPATH_W"; then
3439 if (cygpath --version) >/dev/null 2>/dev/null; then
3440 CYGPATH_W='cygpath -w'
3441 else
3442 CYGPATH_W=echo
3443 fi
3444 fi
3445
3446
3447 # Define the identity of the package.
3448
3449 PACKAGE=$PACKAGE
3450 VERSION=$VERSION
3451
3452
3453 cat >>confdefs.h <<_ACEOF
3454 #define PACKAGE "$PACKAGE"
3455 _ACEOF
3456
3457
3458 cat >>confdefs.h <<_ACEOF
3459 #define VERSION "$VERSION"
3460 _ACEOF
3461
3462 # Some tools Automake needs.
3463
3464 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3465
3466
3467 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3468
3469
3470 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3471
3472
3473 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3474
3475
3476 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3477
3478 # For better backward compatibility. To be removed once Automake 1.9.x
3479 # dies out for good. For more background, see:
3480 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3481 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3482 mkdir_p='$(MKDIR_P)'
3483
3484 # We need awk for the "check" target (and possibly the TAP driver). The
3485 # system "awk" is bad on some platforms.
3486 # Always define AMTAR for backward compatibility. Yes, it's still used
3487 # in the wild :-( We should find a proper way to deprecate it ...
3488 AMTAR='$${TAR-tar}'
3489
3490
3491 # We'll loop over all known methods to create a tar archive until one works.
3492 _am_tools='gnutar pax cpio none'
3493
3494 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3495
3496
3497
3498
3499
3500
3501 # POSIX will say in a future version that running "rm -f" with no argument
3502 # is OK; and we want to be able to make that assumption in our Makefile
3503 # recipes. So use an aggressive probe to check that the usage we want is
3504 # actually supported "in the wild" to an acceptable degree.
3505 # See automake bug#10828.
3506 # To make any issue more visible, cause the running configure to be aborted
3507 # by default if the 'rm' program in use doesn't match our expectations; the
3508 # user can still override this though.
3509 if rm -f && rm -fr && rm -rf; then : OK; else
3510 cat >&2 <<'END'
3511 Oops!
3512
3513 Your 'rm' program seems unable to run without file operands specified
3514 on the command line, even when the '-f' option is present. This is contrary
3515 to the behaviour of most rm programs out there, and not conforming with
3516 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3517
3518 Please tell [email protected] about your system, including the value
3519 of your $PATH and any error possibly output before this message. This
3520 can help us improve future automake versions.
3521
3522 END
3523 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3524 echo 'Configuration will proceed anyway, since you have set the' >&2
3525 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3526 echo >&2
3527 else
3528 cat >&2 <<'END'
3529 Aborting the configuration process, to ensure you take notice of the issue.
3530
3531 You can download and install GNU coreutils to get an 'rm' implementation
3532 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3533
3534 If you want to complete the configuration process using your problematic
3535 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3536 to "yes", and re-run configure.
3537
3538 END
3539 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3540 fi
3541 fi
3542
3543
3544
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
3546 $as_echo_n "checking whether to enable debugging... " >&6; }
3547
3548 ax_enable_debug_default=no
3549 ax_enable_debug_is_release=$ax_is_release
3550
3551 # If this is a release, override the default.
3552 if test "$ax_enable_debug_is_release" = "yes"; then :
3553 ax_enable_debug_default="no"
3554 fi
3555
3556
3557
3558
3559 # Check whether --enable-debug was given.
3560 if test "${enable_debug+set}" = set; then :
3561 enableval=$enable_debug;
3562 else
3563 enable_debug=$ax_enable_debug_default
3564 fi
3565
3566
3567 # empty mean debug yes
3568 if test "x$enable_debug" = "x"; then :
3569 enable_debug="yes"
3570 fi
3571
3572 # case of debug
3573 case $enable_debug in #(
3574 yes) :
3575
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3577 $as_echo "yes" >&6; }
3578 CFLAGS="${CFLAGS} -g -O0"
3579 CXXFLAGS="${CXXFLAGS} -g -O0"
3580 FFLAGS="${FFLAGS} -g -O0"
3581 FCFLAGS="${FCFLAGS} -g -O0"
3582 OBJCFLAGS="${OBJCFLAGS} -g -O0"
3583 ;; #(
3584 info) :
3585
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: info" >&5
3587 $as_echo "info" >&6; }
3588 CFLAGS="${CFLAGS} -g"
3589 CXXFLAGS="${CXXFLAGS} -g"
3590 FFLAGS="${FFLAGS} -g"
3591 FCFLAGS="${FCFLAGS} -g"
3592 OBJCFLAGS="${OBJCFLAGS} -g"
3593 ;; #(
3594 profile) :
3595
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: profile" >&5
3597 $as_echo "profile" >&6; }
3598 CFLAGS="${CFLAGS} -g -pg"
3599 CXXFLAGS="${CXXFLAGS} -g -pg"
3600 FFLAGS="${FFLAGS} -g -pg"
3601 FCFLAGS="${FCFLAGS} -g -pg"
3602 OBJCFLAGS="${OBJCFLAGS} -g -pg"
3603 LDFLAGS="${LDFLAGS} -pg"
3604 ;; #(
3605 *) :
3606
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3609 if test "x${CFLAGS+set}" != "xset"; then :
3610 CFLAGS=""
3611 fi
3612 if test "x${CXXFLAGS+set}" != "xset"; then :
3613 CXXFLAGS=""
3614 fi
3615 if test "x${FFLAGS+set}" != "xset"; then :
3616 FFLAGS=""
3617 fi
3618 if test "x${FCFLAGS+set}" != "xset"; then :
3619 FCFLAGS=""
3620 fi
3621 if test "x${OBJCFLAGS+set}" != "xset"; then :
3622 OBJCFLAGS=""
3623 fi
3624 ;;
3625 esac
3626
3627 if test "x$enable_debug" = "xyes"; then :
3628
3629 else
3630
3631 $as_echo "#define NDEBUG /**/" >>confdefs.h
3632
3633 fi
3634 ax_enable_debug=$enable_debug
3635
3636 ac_ext=c
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641 if test -n "$ac_tool_prefix"; then
3642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3643 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_CC+:} false; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3662 fi
3663 done
3664 done
3665 IFS=$as_save_IFS
3666
3667 fi
3668 fi
3669 CC=$ac_cv_prog_CC
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3676 fi
3677
3678
3679 fi
3680 if test -z "$ac_cv_prog_CC"; then
3681 ac_ct_CC=$CC
3682 # Extract the first word of "gcc", so it can be a program name with args.
3683 set dummy gcc; ac_word=$2
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 $as_echo_n "checking for $ac_word... " >&6; }
3686 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3687 $as_echo_n "(cached) " >&6
3688 else
3689 if test -n "$ac_ct_CC"; then
3690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3691 else
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 for as_dir in $PATH
3694 do
3695 IFS=$as_save_IFS
3696 test -z "$as_dir" && as_dir=.
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699 ac_cv_prog_ac_ct_CC="gcc"
3700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701 break 2
3702 fi
3703 done
3704 done
3705 IFS=$as_save_IFS
3706
3707 fi
3708 fi
3709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3710 if test -n "$ac_ct_CC"; then
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3712 $as_echo "$ac_ct_CC" >&6; }
3713 else
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715 $as_echo "no" >&6; }
3716 fi
3717
3718 if test "x$ac_ct_CC" = x; then
3719 CC=""
3720 else
3721 case $cross_compiling:$ac_tool_warned in
3722 yes:)
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3725 ac_tool_warned=yes ;;
3726 esac
3727 CC=$ac_ct_CC
3728 fi
3729 else
3730 CC="$ac_cv_prog_CC"
3731 fi
3732
3733 if test -z "$CC"; then
3734 if test -n "$ac_tool_prefix"; then
3735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3736 set dummy ${ac_tool_prefix}cc; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_CC+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC="$CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752 ac_cv_prog_CC="${ac_tool_prefix}cc"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3755 fi
3756 done
3757 done
3758 IFS=$as_save_IFS
3759
3760 fi
3761 fi
3762 CC=$ac_cv_prog_CC
3763 if test -n "$CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765 $as_echo "$CC" >&6; }
3766 else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3769 fi
3770
3771
3772 fi
3773 fi
3774 if test -z "$CC"; then
3775 # Extract the first word of "cc", so it can be a program name with args.
3776 set dummy cc; ac_word=$2
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3778 $as_echo_n "checking for $ac_word... " >&6; }
3779 if ${ac_cv_prog_CC+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 if test -n "$CC"; then
3783 ac_cv_prog_CC="$CC" # Let the user override the test.
3784 else
3785 ac_prog_rejected=no
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3788 do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3794 ac_prog_rejected=yes
3795 continue
3796 fi
3797 ac_cv_prog_CC="cc"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3800 fi
3801 done
3802 done
3803 IFS=$as_save_IFS
3804
3805 if test $ac_prog_rejected = yes; then
3806 # We found a bogon in the path, so make sure we never use it.
3807 set dummy $ac_cv_prog_CC
3808 shift
3809 if test $# != 0; then
3810 # We chose a different compiler from the bogus one.
3811 # However, it has the same basename, so the bogon will be chosen
3812 # first if we set CC to just the basename; use the full file name.
3813 shift
3814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3815 fi
3816 fi
3817 fi
3818 fi
3819 CC=$ac_cv_prog_CC
3820 if test -n "$CC"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3822 $as_echo "$CC" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3826 fi
3827
3828
3829 fi
3830 if test -z "$CC"; then
3831 if test -n "$ac_tool_prefix"; then
3832 for ac_prog in cl.exe
3833 do
3834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if ${ac_cv_prog_CC+:} false; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC="$CC" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3846 do
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 break 2
3854 fi
3855 done
3856 done
3857 IFS=$as_save_IFS
3858
3859 fi
3860 fi
3861 CC=$ac_cv_prog_CC
3862 if test -n "$CC"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864 $as_echo "$CC" >&6; }
3865 else
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3868 fi
3869
3870
3871 test -n "$CC" && break
3872 done
3873 fi
3874 if test -z "$CC"; then
3875 ac_ct_CC=$CC
3876 for ac_prog in cl.exe
3877 do
3878 # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 if test -n "$ac_ct_CC"; then
3886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3890 do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895 ac_cv_prog_ac_ct_CC="$ac_prog"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899 done
3900 done
3901 IFS=$as_save_IFS
3902
3903 fi
3904 fi
3905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3906 if test -n "$ac_ct_CC"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3908 $as_echo "$ac_ct_CC" >&6; }
3909 else
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3912 fi
3913
3914
3915 test -n "$ac_ct_CC" && break
3916 done
3917
3918 if test "x$ac_ct_CC" = x; then
3919 CC=""
3920 else
3921 case $cross_compiling:$ac_tool_warned in
3922 yes:)
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925 ac_tool_warned=yes ;;
3926 esac
3927 CC=$ac_ct_CC
3928 fi
3929 fi
3930
3931 fi
3932
3933
3934 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error $? "no acceptable C compiler found in \$PATH
3937 See \`config.log' for more details" "$LINENO" 5; }
3938
3939 # Provide some information about the compiler.
3940 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3941 set X $ac_compile
3942 ac_compiler=$2
3943 for ac_option in --version -v -V -qversion; do
3944 { { ac_try="$ac_compiler $ac_option >&5"
3945 case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948 esac
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3952 ac_status=$?
3953 if test -s conftest.err; then
3954 sed '10a\
3955 ... rest of stderr output deleted ...
3956 10q' conftest.err >conftest.er1
3957 cat conftest.er1 >&5
3958 fi
3959 rm -f conftest.er1 conftest.err
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }
3962 done
3963
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966
3967 int
3968 main ()
3969 {
3970
3971 ;
3972 return 0;
3973 }
3974 _ACEOF
3975 ac_clean_files_save=$ac_clean_files
3976 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3977 # Try to create an executable without -o first, disregard a.out.
3978 # It will help us diagnose broken compilers, and finding out an intuition
3979 # of exeext.
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3981 $as_echo_n "checking whether the C compiler works... " >&6; }
3982 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3983
3984 # The possible output files:
3985 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3986
3987 ac_rmfiles=
3988 for ac_file in $ac_files
3989 do
3990 case $ac_file in
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3992 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3993 esac
3994 done
3995 rm -f $ac_rmfiles
3996
3997 if { { ac_try="$ac_link_default"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_link_default") 2>&5
4005 ac_status=$?
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4009 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4010 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4011 # so that the user can short-circuit this test for compilers unknown to
4012 # Autoconf.
4013 for ac_file in $ac_files ''
4014 do
4015 test -f "$ac_file" || continue
4016 case $ac_file in
4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4018 ;;
4019 [ab].out )
4020 # We found the default executable, but exeext='' is most
4021 # certainly right.
4022 break;;
4023 *.* )
4024 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4025 then :; else
4026 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4027 fi
4028 # We set ac_cv_exeext here because the later test for it is not
4029 # safe: cross compilers may not add the suffix if given an `-o'
4030 # argument, so we may need to know it at that point already.
4031 # Even if this section looks crufty: it has the advantage of
4032 # actually working.
4033 break;;
4034 * )
4035 break;;
4036 esac
4037 done
4038 test "$ac_cv_exeext" = no && ac_cv_exeext=
4039
4040 else
4041 ac_file=''
4042 fi
4043 if test -z "$ac_file"; then :
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4046 $as_echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error 77 "C compiler cannot create executables
4052 See \`config.log' for more details" "$LINENO" 5; }
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4055 $as_echo "yes" >&6; }
4056 fi
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4058 $as_echo_n "checking for C compiler default output file name... " >&6; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4060 $as_echo "$ac_file" >&6; }
4061 ac_exeext=$ac_cv_exeext
4062
4063 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4064 ac_clean_files=$ac_clean_files_save
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4066 $as_echo_n "checking for suffix of executables... " >&6; }
4067 if { { ac_try="$ac_link"
4068 case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074 (eval "$ac_link") 2>&5
4075 ac_status=$?
4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; then :
4078 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4079 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4080 # work properly (i.e., refer to `conftest.exe'), while it won't with
4081 # `rm'.
4082 for ac_file in conftest.exe conftest conftest.*; do
4083 test -f "$ac_file" || continue
4084 case $ac_file in
4085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4086 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4087 break;;
4088 * ) break;;
4089 esac
4090 done
4091 else
4092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4094 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4095 See \`config.log' for more details" "$LINENO" 5; }
4096 fi
4097 rm -f conftest conftest$ac_cv_exeext
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4099 $as_echo "$ac_cv_exeext" >&6; }
4100
4101 rm -f conftest.$ac_ext
4102 EXEEXT=$ac_cv_exeext
4103 ac_exeext=$EXEEXT
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #include <stdio.h>
4107 int
4108 main ()
4109 {
4110 FILE *f = fopen ("conftest.out", "w");
4111 return ferror (f) || fclose (f) != 0;
4112
4113 ;
4114 return 0;
4115 }
4116 _ACEOF
4117 ac_clean_files="$ac_clean_files conftest.out"
4118 # Check that the compiler produces executables we can run. If not, either
4119 # the compiler is broken, or we cross compile.
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4121 $as_echo_n "checking whether we are cross compiling... " >&6; }
4122 if test "$cross_compiling" != yes; then
4123 { { ac_try="$ac_link"
4124 case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127 esac
4128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4129 $as_echo "$ac_try_echo"; } >&5
4130 (eval "$ac_link") 2>&5
4131 ac_status=$?
4132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4133 test $ac_status = 0; }
4134 if { ac_try='./conftest$ac_cv_exeext'
4135 { { case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138 esac
4139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4140 $as_echo "$ac_try_echo"; } >&5
4141 (eval "$ac_try") 2>&5
4142 ac_status=$?
4143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144 test $ac_status = 0; }; }; then
4145 cross_compiling=no
4146 else
4147 if test "$cross_compiling" = maybe; then
4148 cross_compiling=yes
4149 else
4150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4152 as_fn_error $? "cannot run C compiled programs.
4153 If you meant to cross compile, use \`--host'.
4154 See \`config.log' for more details" "$LINENO" 5; }
4155 fi
4156 fi
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4159 $as_echo "$cross_compiling" >&6; }
4160
4161 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4162 ac_clean_files=$ac_clean_files_save
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4164 $as_echo_n "checking for suffix of object files... " >&6; }
4165 if ${ac_cv_objext+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170
4171 int
4172 main ()
4173 {
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 rm -f conftest.o conftest.obj
4180 if { { ac_try="$ac_compile"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4186 $as_echo "$ac_try_echo"; } >&5
4187 (eval "$ac_compile") 2>&5
4188 ac_status=$?
4189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190 test $ac_status = 0; }; then :
4191 for ac_file in conftest.o conftest.obj conftest.*; do
4192 test -f "$ac_file" || continue;
4193 case $ac_file in
4194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4195 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4196 break;;
4197 esac
4198 done
4199 else
4200 $as_echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error $? "cannot compute suffix of object files: cannot compile
4206 See \`config.log' for more details" "$LINENO" 5; }
4207 fi
4208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4211 $as_echo "$ac_cv_objext" >&6; }
4212 OBJEXT=$ac_cv_objext
4213 ac_objext=$OBJEXT
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4215 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4216 if ${ac_cv_c_compiler_gnu+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221
4222 int
4223 main ()
4224 {
4225 #ifndef __GNUC__
4226 choke me
4227 #endif
4228
4229 ;
4230 return 0;
4231 }
4232 _ACEOF
4233 if ac_fn_c_try_compile "$LINENO"; then :
4234 ac_compiler_gnu=yes
4235 else
4236 ac_compiler_gnu=no
4237 fi
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4240
4241 fi
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4243 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4244 if test $ac_compiler_gnu = yes; then
4245 GCC=yes
4246 else
4247 GCC=
4248 fi
4249 ac_test_CFLAGS=${CFLAGS+set}
4250 ac_save_CFLAGS=$CFLAGS
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4252 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4253 if ${ac_cv_prog_cc_g+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 ac_save_c_werror_flag=$ac_c_werror_flag
4257 ac_c_werror_flag=yes
4258 ac_cv_prog_cc_g=no
4259 CFLAGS="-g"
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262
4263 int
4264 main ()
4265 {
4266
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 if ac_fn_c_try_compile "$LINENO"; then :
4272 ac_cv_prog_cc_g=yes
4273 else
4274 CFLAGS=""
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277
4278 int
4279 main ()
4280 {
4281
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287
4288 else
4289 ac_c_werror_flag=$ac_save_c_werror_flag
4290 CFLAGS="-g"
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293
4294 int
4295 main ()
4296 {
4297
4298 ;
4299 return 0;
4300 }
4301 _ACEOF
4302 if ac_fn_c_try_compile "$LINENO"; then :
4303 ac_cv_prog_cc_g=yes
4304 fi
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 fi
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 fi
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 ac_c_werror_flag=$ac_save_c_werror_flag
4311 fi
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4313 $as_echo "$ac_cv_prog_cc_g" >&6; }
4314 if test "$ac_test_CFLAGS" = set; then
4315 CFLAGS=$ac_save_CFLAGS
4316 elif test $ac_cv_prog_cc_g = yes; then
4317 if test "$GCC" = yes; then
4318 CFLAGS="-g -O2"
4319 else
4320 CFLAGS="-g"
4321 fi
4322 else
4323 if test "$GCC" = yes; then
4324 CFLAGS="-O2"
4325 else
4326 CFLAGS=
4327 fi
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4330 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4331 if ${ac_cv_prog_cc_c89+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 ac_cv_prog_cc_c89=no
4335 ac_save_CC=$CC
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338 #include <stdarg.h>
4339 #include <stdio.h>
4340 struct stat;
4341 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4342 struct buf { int x; };
4343 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4344 static char *e (p, i)
4345 char **p;
4346 int i;
4347 {
4348 return p[i];
4349 }
4350 static char *f (char * (*g) (char **, int), char **p, ...)
4351 {
4352 char *s;
4353 va_list v;
4354 va_start (v,p);
4355 s = g (p, va_arg (v,int));
4356 va_end (v);
4357 return s;
4358 }
4359
4360 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4361 function prototypes and stuff, but not '\xHH' hex character constants.
4362 These don't provoke an error unfortunately, instead are silently treated
4363 as 'x'. The following induces an error, until -std is added to get
4364 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4365 array size at least. It's necessary to write '\x00'==0 to get something
4366 that's true only with -std. */
4367 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4368
4369 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4370 inside strings and character constants. */
4371 #define FOO(x) 'x'
4372 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4373
4374 int test (int i, double x);
4375 struct s1 {int (*f) (int a);};
4376 struct s2 {int (*f) (double a);};
4377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4378 int argc;
4379 char **argv;
4380 int
4381 main ()
4382 {
4383 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4384 ;
4385 return 0;
4386 }
4387 _ACEOF
4388 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4389 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4390 do
4391 CC="$ac_save_CC $ac_arg"
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 ac_cv_prog_cc_c89=$ac_arg
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext
4396 test "x$ac_cv_prog_cc_c89" != "xno" && break
4397 done
4398 rm -f conftest.$ac_ext
4399 CC=$ac_save_CC
4400
4401 fi
4402 # AC_CACHE_VAL
4403 case "x$ac_cv_prog_cc_c89" in
4404 x)
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4406 $as_echo "none needed" >&6; } ;;
4407 xno)
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4409 $as_echo "unsupported" >&6; } ;;
4410 *)
4411 CC="$CC $ac_cv_prog_cc_c89"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4413 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4414 esac
4415 if test "x$ac_cv_prog_cc_c89" != xno; then :
4416
4417 fi
4418
4419 ac_ext=c
4420 ac_cpp='$CPP $CPPFLAGS'
4421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4424
4425 ac_ext=c
4426 ac_cpp='$CPP $CPPFLAGS'
4427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4431 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4432 if ${am_cv_prog_cc_c_o+:} false; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437
4438 int
4439 main ()
4440 {
4441
4442 ;
4443 return 0;
4444 }
4445 _ACEOF
4446 # Make sure it works both with $CC and with simple cc.
4447 # Following AC_PROG_CC_C_O, we do the test twice because some
4448 # compilers refuse to overwrite an existing .o file with -o,
4449 # though they will create one.
4450 am_cv_prog_cc_c_o=yes
4451 for am_i in 1 2; do
4452 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4453 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } \
4457 && test -f conftest2.$ac_objext; then
4458 : OK
4459 else
4460 am_cv_prog_cc_c_o=no
4461 break
4462 fi
4463 done
4464 rm -f core conftest*
4465 unset am_i
4466 fi
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4468 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4469 if test "$am_cv_prog_cc_c_o" != yes; then
4470 # Losing compiler, so override with the script.
4471 # FIXME: It is wrong to rewrite CC.
4472 # But if we don't then we get into trouble of one sort or another.
4473 # A longer-term fix would be to have automake use am__CC in this case,
4474 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4475 CC="$am_aux_dir/compile $CC"
4476 fi
4477 ac_ext=c
4478 ac_cpp='$CPP $CPPFLAGS'
4479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482
4483 DEPDIR="${am__leading_dot}deps"
4484
4485 ac_config_commands="$ac_config_commands depfiles"
4486
4487
4488 am_make=${MAKE-make}
4489 cat > confinc << 'END'
4490 am__doit:
4491 @echo this is the am__doit target
4492 .PHONY: am__doit
4493 END
4494 # If we don't find an include directive, just comment out the code.
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4496 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4497 am__include="#"
4498 am__quote=
4499 _am_result=none
4500 # First try GNU make style include.
4501 echo "include confinc" > confmf
4502 # Ignore all kinds of additional output from 'make'.
4503 case `$am_make -s -f confmf 2> /dev/null` in #(
4504 *the\ am__doit\ target*)
4505 am__include=include
4506 am__quote=
4507 _am_result=GNU
4508 ;;
4509 esac
4510 # Now try BSD make style include.
4511 if test "$am__include" = "#"; then
4512 echo '.include "confinc"' > confmf
4513 case `$am_make -s -f confmf 2> /dev/null` in #(
4514 *the\ am__doit\ target*)
4515 am__include=.include
4516 am__quote="\""
4517 _am_result=BSD
4518 ;;
4519 esac
4520 fi
4521
4522
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4524 $as_echo "$_am_result" >&6; }
4525 rm -f confinc confmf
4526
4527 # Check whether --enable-dependency-tracking was given.
4528 if test "${enable_dependency_tracking+set}" = set; then :
4529 enableval=$enable_dependency_tracking;
4530 fi
4531
4532 if test "x$enable_dependency_tracking" != xno; then
4533 am_depcomp="$ac_aux_dir/depcomp"
4534 AMDEPBACKSLASH='\'
4535 am__nodep='_no'
4536 fi
4537 if test "x$enable_dependency_tracking" != xno; then
4538 AMDEP_TRUE=
4539 AMDEP_FALSE='#'
4540 else
4541 AMDEP_TRUE='#'
4542 AMDEP_FALSE=
4543 fi
4544
4545
4546
4547 depcc="$CC" am_compiler_list=
4548
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4550 $as_echo_n "checking dependency style of $depcc... " >&6; }
4551 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4555 # We make a subdir and do the tests there. Otherwise we can end up
4556 # making bogus files that we don't know about and never remove. For
4557 # instance it was reported that on HP-UX the gcc test will end up
4558 # making a dummy file named 'D' -- because '-MD' means "put the output
4559 # in D".
4560 rm -rf conftest.dir
4561 mkdir conftest.dir
4562 # Copy depcomp to subdir because otherwise we won't find it if we're
4563 # using a relative directory.
4564 cp "$am_depcomp" conftest.dir
4565 cd conftest.dir
4566 # We will build objects and dependencies in a subdirectory because
4567 # it helps to detect inapplicable dependency modes. For instance
4568 # both Tru64's cc and ICC support -MD to output dependencies as a
4569 # side effect of compilation, but ICC will put the dependencies in
4570 # the current directory while Tru64 will put them in the object
4571 # directory.
4572 mkdir sub
4573
4574 am_cv_CC_dependencies_compiler_type=none
4575 if test "$am_compiler_list" = ""; then
4576 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4577 fi
4578 am__universal=false
4579 case " $depcc " in #(
4580 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4581 esac
4582
4583 for depmode in $am_compiler_list; do
4584 # Setup a source with many dependencies, because some compilers
4585 # like to wrap large dependency lists on column 80 (with \), and
4586 # we should not choose a depcomp mode which is confused by this.
4587 #
4588 # We need to recreate these files for each test, as the compiler may
4589 # overwrite some of them when testing with obscure command lines.
4590 # This happens at least with the AIX C compiler.
4591 : > sub/conftest.c
4592 for i in 1 2 3 4 5 6; do
4593 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4594 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4595 # Solaris 10 /bin/sh.
4596 echo '/* dummy */' > sub/conftst$i.h
4597 done
4598 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4599
4600 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4601 # mode. It turns out that the SunPro C++ compiler does not properly
4602 # handle '-M -o', and we need to detect this. Also, some Intel
4603 # versions had trouble with output in subdirs.
4604 am__obj=sub/conftest.${OBJEXT-o}
4605 am__minus_obj="-o $am__obj"
4606 case $depmode in
4607 gcc)
4608 # This depmode causes a compiler race in universal mode.
4609 test "$am__universal" = false || continue
4610 ;;
4611 nosideeffect)
4612 # After this tag, mechanisms are not by side-effect, so they'll
4613 # only be used when explicitly requested.
4614 if test "x$enable_dependency_tracking" = xyes; then
4615 continue
4616 else
4617 break
4618 fi
4619 ;;
4620 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4621 # This compiler won't grok '-c -o', but also, the minuso test has
4622 # not run yet. These depmodes are late enough in the game, and
4623 # so weak that their functioning should not be impacted.
4624 am__obj=conftest.${OBJEXT-o}
4625 am__minus_obj=
4626 ;;
4627 none) break ;;
4628 esac
4629 if depmode=$depmode \
4630 source=sub/conftest.c object=$am__obj \
4631 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4632 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4633 >/dev/null 2>conftest.err &&
4634 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4635 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4636 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4637 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4638 # icc doesn't choke on unknown options, it will just issue warnings
4639 # or remarks (even with -Werror). So we grep stderr for any message
4640 # that says an option was ignored or not supported.
4641 # When given -MP, icc 7.0 and 7.1 complain thusly:
4642 # icc: Command line warning: ignoring option '-M'; no argument required
4643 # The diagnosis changed in icc 8.0:
4644 # icc: Command line remark: option '-MP' not supported
4645 if (grep 'ignoring option' conftest.err ||
4646 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4647 am_cv_CC_dependencies_compiler_type=$depmode
4648 break
4649 fi
4650 fi
4651 done
4652
4653 cd ..
4654 rm -rf conftest.dir
4655 else
4656 am_cv_CC_dependencies_compiler_type=none
4657 fi
4658
4659 fi
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4661 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4662 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4663
4664 if
4665 test "x$enable_dependency_tracking" != xno \
4666 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4667 am__fastdepCC_TRUE=
4668 am__fastdepCC_FALSE='#'
4669 else
4670 am__fastdepCC_TRUE='#'
4671 am__fastdepCC_FALSE=
4672 fi
4673
4674
4675
4676 enable_win32_dll=yes
4677
4678 case $host in
4679 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4680 if test -n "$ac_tool_prefix"; then
4681 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4682 set dummy ${ac_tool_prefix}as; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if ${ac_cv_prog_AS+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if test -n "$AS"; then
4689 ac_cv_prog_AS="$AS" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4698 ac_cv_prog_AS="${ac_tool_prefix}as"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4701 fi
4702 done
4703 done
4704 IFS=$as_save_IFS
4705
4706 fi
4707 fi
4708 AS=$ac_cv_prog_AS
4709 if test -n "$AS"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4711 $as_echo "$AS" >&6; }
4712 else
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4715 fi
4716
4717
4718 fi
4719 if test -z "$ac_cv_prog_AS"; then
4720 ac_ct_AS=$AS
4721 # Extract the first word of "as", so it can be a program name with args.
4722 set dummy as; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$ac_ct_AS"; then
4729 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_prog_ac_ct_AS="as"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4741 fi
4742 done
4743 done
4744 IFS=$as_save_IFS
4745
4746 fi
4747 fi
4748 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4749 if test -n "$ac_ct_AS"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4751 $as_echo "$ac_ct_AS" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4755 fi
4756
4757 if test "x$ac_ct_AS" = x; then
4758 AS="false"
4759 else
4760 case $cross_compiling:$ac_tool_warned in
4761 yes:)
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4764 ac_tool_warned=yes ;;
4765 esac
4766 AS=$ac_ct_AS
4767 fi
4768 else
4769 AS="$ac_cv_prog_AS"
4770 fi
4771
4772 if test -n "$ac_tool_prefix"; then
4773 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4774 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if ${ac_cv_prog_DLLTOOL+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 if test -n "$DLLTOOL"; then
4781 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4790 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4793 fi
4794 done
4795 done
4796 IFS=$as_save_IFS
4797
4798 fi
4799 fi
4800 DLLTOOL=$ac_cv_prog_DLLTOOL
4801 if test -n "$DLLTOOL"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4803 $as_echo "$DLLTOOL" >&6; }
4804 else
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4807 fi
4808
4809
4810 fi
4811 if test -z "$ac_cv_prog_DLLTOOL"; then
4812 ac_ct_DLLTOOL=$DLLTOOL
4813 # Extract the first word of "dlltool", so it can be a program name with args.
4814 set dummy dlltool; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test -n "$ac_ct_DLLTOOL"; then
4821 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4833 fi
4834 done
4835 done
4836 IFS=$as_save_IFS
4837
4838 fi
4839 fi
4840 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4841 if test -n "$ac_ct_DLLTOOL"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4843 $as_echo "$ac_ct_DLLTOOL" >&6; }
4844 else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4847 fi
4848
4849 if test "x$ac_ct_DLLTOOL" = x; then
4850 DLLTOOL="false"
4851 else
4852 case $cross_compiling:$ac_tool_warned in
4853 yes:)
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4856 ac_tool_warned=yes ;;
4857 esac
4858 DLLTOOL=$ac_ct_DLLTOOL
4859 fi
4860 else
4861 DLLTOOL="$ac_cv_prog_DLLTOOL"
4862 fi
4863
4864 if test -n "$ac_tool_prefix"; then
4865 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4866 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if ${ac_cv_prog_OBJDUMP+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 if test -n "$OBJDUMP"; then
4873 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4885 fi
4886 done
4887 done
4888 IFS=$as_save_IFS
4889
4890 fi
4891 fi
4892 OBJDUMP=$ac_cv_prog_OBJDUMP
4893 if test -n "$OBJDUMP"; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4895 $as_echo "$OBJDUMP" >&6; }
4896 else
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4899 fi
4900
4901
4902 fi
4903 if test -z "$ac_cv_prog_OBJDUMP"; then
4904 ac_ct_OBJDUMP=$OBJDUMP
4905 # Extract the first word of "objdump", so it can be a program name with args.
4906 set dummy objdump; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 if test -n "$ac_ct_OBJDUMP"; then
4913 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4922 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4925 fi
4926 done
4927 done
4928 IFS=$as_save_IFS
4929
4930 fi
4931 fi
4932 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4933 if test -n "$ac_ct_OBJDUMP"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4935 $as_echo "$ac_ct_OBJDUMP" >&6; }
4936 else
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4939 fi
4940
4941 if test "x$ac_ct_OBJDUMP" = x; then
4942 OBJDUMP="false"
4943 else
4944 case $cross_compiling:$ac_tool_warned in
4945 yes:)
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4948 ac_tool_warned=yes ;;
4949 esac
4950 OBJDUMP=$ac_ct_OBJDUMP
4951 fi
4952 else
4953 OBJDUMP="$ac_cv_prog_OBJDUMP"
4954 fi
4955
4956 ;;
4957 esac
4958
4959 test -z "$AS" && AS=as
4960
4961
4962
4963
4964
4965 test -z "$DLLTOOL" && DLLTOOL=dlltool
4966
4967
4968
4969
4970
4971 test -z "$OBJDUMP" && OBJDUMP=objdump
4972
4973
4974
4975
4976
4977
4978
4979 case `pwd` in
4980 *\ * | *\ *)
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4982 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4983 esac
4984
4985
4986
4987 macro_version='2.4.6'
4988 macro_revision='2.4.6'
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002 ltmain=$ac_aux_dir/ltmain.sh
5003
5004 # Backslashify metacharacters that are still active within
5005 # double-quoted strings.
5006 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5007
5008 # Same as above, but do not quote variable references.
5009 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5010
5011 # Sed substitution to delay expansion of an escaped shell variable in a
5012 # double_quote_subst'ed string.
5013 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5014
5015 # Sed substitution to delay expansion of an escaped single quote.
5016 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5017
5018 # Sed substitution to avoid accidental globbing in evaled expressions
5019 no_glob_subst='s/\*/\\\*/g'
5020
5021 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5022 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5023 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5024
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5026 $as_echo_n "checking how to print strings... " >&6; }
5027 # Test print first, because it will be a builtin if present.
5028 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5029 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5030 ECHO='print -r --'
5031 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5032 ECHO='printf %s\n'
5033 else
5034 # Use this function as a fallback that always works.
5035 func_fallback_echo ()
5036 {
5037 eval 'cat <<_LTECHO_EOF
5038 $1
5039 _LTECHO_EOF'
5040 }
5041 ECHO='func_fallback_echo'
5042 fi
5043
5044 # func_echo_all arg...
5045 # Invoke $ECHO with all args, space-separated.
5046 func_echo_all ()
5047 {
5048 $ECHO ""
5049 }
5050
5051 case $ECHO in
5052 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5053 $as_echo "printf" >&6; } ;;
5054 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5055 $as_echo "print -r" >&6; } ;;
5056 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5057 $as_echo "cat" >&6; } ;;
5058 esac
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5074 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5075 if ${ac_cv_path_SED+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5079 for ac_i in 1 2 3 4 5 6 7; do
5080 ac_script="$ac_script$as_nl$ac_script"
5081 done
5082 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5083 { ac_script=; unset ac_script;}
5084 if test -z "$SED"; then
5085 ac_path_SED_found=false
5086 # Loop through the user's path and test for each of PROGNAME-LIST
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5089 do
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_prog in sed gsed; do
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5095 as_fn_executable_p "$ac_path_SED" || continue
5096 # Check for GNU ac_path_SED and select it if it is found.
5097 # Check for GNU $ac_path_SED
5098 case `"$ac_path_SED" --version 2>&1` in
5099 *GNU*)
5100 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5101 *)
5102 ac_count=0
5103 $as_echo_n 0123456789 >"conftest.in"
5104 while :
5105 do
5106 cat "conftest.in" "conftest.in" >"conftest.tmp"
5107 mv "conftest.tmp" "conftest.in"
5108 cp "conftest.in" "conftest.nl"
5109 $as_echo '' >> "conftest.nl"
5110 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5112 as_fn_arith $ac_count + 1 && ac_count=$as_val
5113 if test $ac_count -gt ${ac_path_SED_max-0}; then
5114 # Best one so far, save it but keep looking for a better one
5115 ac_cv_path_SED="$ac_path_SED"
5116 ac_path_SED_max=$ac_count
5117 fi
5118 # 10*(2^10) chars as input seems more than enough
5119 test $ac_count -gt 10 && break
5120 done
5121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5122 esac
5123
5124 $ac_path_SED_found && break 3
5125 done
5126 done
5127 done
5128 IFS=$as_save_IFS
5129 if test -z "$ac_cv_path_SED"; then
5130 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5131 fi
5132 else
5133 ac_cv_path_SED=$SED
5134 fi
5135
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5138 $as_echo "$ac_cv_path_SED" >&6; }
5139 SED="$ac_cv_path_SED"
5140 rm -f conftest.sed
5141
5142 test -z "$SED" && SED=sed
5143 Xsed="$SED -e 1s/^X//"
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5156 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5157 if ${ac_cv_path_GREP+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 if test -z "$GREP"; then
5161 ac_path_GREP_found=false
5162 # Loop through the user's path and test for each of PROGNAME-LIST
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5165 do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_prog in grep ggrep; do
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5171 as_fn_executable_p "$ac_path_GREP" || continue
5172 # Check for GNU ac_path_GREP and select it if it is found.
5173 # Check for GNU $ac_path_GREP
5174 case `"$ac_path_GREP" --version 2>&1` in
5175 *GNU*)
5176 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5177 *)
5178 ac_count=0
5179 $as_echo_n 0123456789 >"conftest.in"
5180 while :
5181 do
5182 cat "conftest.in" "conftest.in" >"conftest.tmp"
5183 mv "conftest.tmp" "conftest.in"
5184 cp "conftest.in" "conftest.nl"
5185 $as_echo 'GREP' >> "conftest.nl"
5186 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5188 as_fn_arith $ac_count + 1 && ac_count=$as_val
5189 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5190 # Best one so far, save it but keep looking for a better one
5191 ac_cv_path_GREP="$ac_path_GREP"
5192 ac_path_GREP_max=$ac_count
5193 fi
5194 # 10*(2^10) chars as input seems more than enough
5195 test $ac_count -gt 10 && break
5196 done
5197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5198 esac
5199
5200 $ac_path_GREP_found && break 3
5201 done
5202 done
5203 done
5204 IFS=$as_save_IFS
5205 if test -z "$ac_cv_path_GREP"; then
5206 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5207 fi
5208 else
5209 ac_cv_path_GREP=$GREP
5210 fi
5211
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5214 $as_echo "$ac_cv_path_GREP" >&6; }
5215 GREP="$ac_cv_path_GREP"
5216
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5219 $as_echo_n "checking for egrep... " >&6; }
5220 if ${ac_cv_path_EGREP+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5224 then ac_cv_path_EGREP="$GREP -E"
5225 else
5226 if test -z "$EGREP"; then
5227 ac_path_EGREP_found=false
5228 # Loop through the user's path and test for each of PROGNAME-LIST
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5231 do
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_prog in egrep; do
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5237 as_fn_executable_p "$ac_path_EGREP" || continue
5238 # Check for GNU ac_path_EGREP and select it if it is found.
5239 # Check for GNU $ac_path_EGREP
5240 case `"$ac_path_EGREP" --version 2>&1` in
5241 *GNU*)
5242 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5243 *)
5244 ac_count=0
5245 $as_echo_n 0123456789 >"conftest.in"
5246 while :
5247 do
5248 cat "conftest.in" "conftest.in" >"conftest.tmp"
5249 mv "conftest.tmp" "conftest.in"
5250 cp "conftest.in" "conftest.nl"
5251 $as_echo 'EGREP' >> "conftest.nl"
5252 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5254 as_fn_arith $ac_count + 1 && ac_count=$as_val
5255 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5256 # Best one so far, save it but keep looking for a better one
5257 ac_cv_path_EGREP="$ac_path_EGREP"
5258 ac_path_EGREP_max=$ac_count
5259 fi
5260 # 10*(2^10) chars as input seems more than enough
5261 test $ac_count -gt 10 && break
5262 done
5263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5264 esac
5265
5266 $ac_path_EGREP_found && break 3
5267 done
5268 done
5269 done
5270 IFS=$as_save_IFS
5271 if test -z "$ac_cv_path_EGREP"; then
5272 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5273 fi
5274 else
5275 ac_cv_path_EGREP=$EGREP
5276 fi
5277
5278 fi
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5281 $as_echo "$ac_cv_path_EGREP" >&6; }
5282 EGREP="$ac_cv_path_EGREP"
5283
5284
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5286 $as_echo_n "checking for fgrep... " >&6; }
5287 if ${ac_cv_path_FGREP+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5291 then ac_cv_path_FGREP="$GREP -F"
5292 else
5293 if test -z "$FGREP"; then
5294 ac_path_FGREP_found=false
5295 # Loop through the user's path and test for each of PROGNAME-LIST
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5298 do
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_prog in fgrep; do
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5304 as_fn_executable_p "$ac_path_FGREP" || continue
5305 # Check for GNU ac_path_FGREP and select it if it is found.
5306 # Check for GNU $ac_path_FGREP
5307 case `"$ac_path_FGREP" --version 2>&1` in
5308 *GNU*)
5309 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5310 *)
5311 ac_count=0
5312 $as_echo_n 0123456789 >"conftest.in"
5313 while :
5314 do
5315 cat "conftest.in" "conftest.in" >"conftest.tmp"
5316 mv "conftest.tmp" "conftest.in"
5317 cp "conftest.in" "conftest.nl"
5318 $as_echo 'FGREP' >> "conftest.nl"
5319 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5321 as_fn_arith $ac_count + 1 && ac_count=$as_val
5322 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5323 # Best one so far, save it but keep looking for a better one
5324 ac_cv_path_FGREP="$ac_path_FGREP"
5325 ac_path_FGREP_max=$ac_count
5326 fi
5327 # 10*(2^10) chars as input seems more than enough
5328 test $ac_count -gt 10 && break
5329 done
5330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5331 esac
5332
5333 $ac_path_FGREP_found && break 3
5334 done
5335 done
5336 done
5337 IFS=$as_save_IFS
5338 if test -z "$ac_cv_path_FGREP"; then
5339 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5340 fi
5341 else
5342 ac_cv_path_FGREP=$FGREP
5343 fi
5344
5345 fi
5346 fi
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5348 $as_echo "$ac_cv_path_FGREP" >&6; }
5349 FGREP="$ac_cv_path_FGREP"
5350
5351
5352 test -z "$GREP" && GREP=grep
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372 # Check whether --with-gnu-ld was given.
5373 if test "${with_gnu_ld+set}" = set; then :
5374 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5375 else
5376 with_gnu_ld=no
5377 fi
5378
5379 ac_prog=ld
5380 if test yes = "$GCC"; then
5381 # Check if gcc -print-prog-name=ld gives a path.
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5383 $as_echo_n "checking for ld used by $CC... " >&6; }
5384 case $host in
5385 *-*-mingw*)
5386 # gcc leaves a trailing carriage return, which upsets mingw
5387 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5388 *)
5389 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5390 esac
5391 case $ac_prog in
5392 # Accept absolute paths.
5393 [\\/]* | ?:[\\/]*)
5394 re_direlt='/[^/][^/]*/\.\./'
5395 # Canonicalize the pathname of ld
5396 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5397 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5398 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5399 done
5400 test -z "$LD" && LD=$ac_prog
5401 ;;
5402 "")
5403 # If it fails, then pretend we aren't using GCC.
5404 ac_prog=ld
5405 ;;
5406 *)
5407 # If it is relative, then search for the first ld in PATH.
5408 with_gnu_ld=unknown
5409 ;;
5410 esac
5411 elif test yes = "$with_gnu_ld"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5413 $as_echo_n "checking for GNU ld... " >&6; }
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5416 $as_echo_n "checking for non-GNU ld... " >&6; }
5417 fi
5418 if ${lt_cv_path_LD+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 if test -z "$LD"; then
5422 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5423 for ac_dir in $PATH; do
5424 IFS=$lt_save_ifs
5425 test -z "$ac_dir" && ac_dir=.
5426 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5427 lt_cv_path_LD=$ac_dir/$ac_prog
5428 # Check to see if the program is GNU ld. I'd rather use --version,
5429 # but apparently some variants of GNU ld only accept -v.
5430 # Break only if it was the GNU/non-GNU ld that we prefer.
5431 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5432 *GNU* | *'with BFD'*)
5433 test no != "$with_gnu_ld" && break
5434 ;;
5435 *)
5436 test yes != "$with_gnu_ld" && break
5437 ;;
5438 esac
5439 fi
5440 done
5441 IFS=$lt_save_ifs
5442 else
5443 lt_cv_path_LD=$LD # Let the user override the test with a path.
5444 fi
5445 fi
5446
5447 LD=$lt_cv_path_LD
5448 if test -n "$LD"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5450 $as_echo "$LD" >&6; }
5451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 fi
5455 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5457 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5458 if ${lt_cv_prog_gnu_ld+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5462 case `$LD -v 2>&1 </dev/null` in
5463 *GNU* | *'with BFD'*)
5464 lt_cv_prog_gnu_ld=yes
5465 ;;
5466 *)
5467 lt_cv_prog_gnu_ld=no
5468 ;;
5469 esac
5470 fi
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5472 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5473 with_gnu_ld=$lt_cv_prog_gnu_ld
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5484 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5485 if ${lt_cv_path_NM+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if test -n "$NM"; then
5489 # Let the user override the test.
5490 lt_cv_path_NM=$NM
5491 else
5492 lt_nm_to_check=${ac_tool_prefix}nm
5493 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5494 lt_nm_to_check="$lt_nm_to_check nm"
5495 fi
5496 for lt_tmp_nm in $lt_nm_to_check; do
5497 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5498 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5499 IFS=$lt_save_ifs
5500 test -z "$ac_dir" && ac_dir=.
5501 tmp_nm=$ac_dir/$lt_tmp_nm
5502 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5503 # Check to see if the nm accepts a BSD-compat flag.
5504 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5505 # nm: unknown option "B" ignored
5506 # Tru64's nm complains that /dev/null is an invalid object file
5507 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5508 case $build_os in
5509 mingw*) lt_bad_file=conftest.nm/nofile ;;
5510 *) lt_bad_file=/dev/null ;;
5511 esac
5512 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5513 *$lt_bad_file* | *'Invalid file or object type'*)
5514 lt_cv_path_NM="$tmp_nm -B"
5515 break 2
5516 ;;
5517 *)
5518 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5519 */dev/null*)
5520 lt_cv_path_NM="$tmp_nm -p"
5521 break 2
5522 ;;
5523 *)
5524 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5525 continue # so that we can try to find one that supports BSD flags
5526 ;;
5527 esac
5528 ;;
5529 esac
5530 fi
5531 done
5532 IFS=$lt_save_ifs
5533 done
5534 : ${lt_cv_path_NM=no}
5535 fi
5536 fi
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5538 $as_echo "$lt_cv_path_NM" >&6; }
5539 if test no != "$lt_cv_path_NM"; then
5540 NM=$lt_cv_path_NM
5541 else
5542 # Didn't find any BSD compatible name lister, look for dumpbin.
5543 if test -n "$DUMPBIN"; then :
5544 # Let the user override the test.
5545 else
5546 if test -n "$ac_tool_prefix"; then
5547 for ac_prog in dumpbin "link -dump"
5548 do
5549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if ${ac_cv_prog_DUMPBIN+:} false; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 if test -n "$DUMPBIN"; then
5557 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5558 else
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5561 do
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 break 2
5569 fi
5570 done
5571 done
5572 IFS=$as_save_IFS
5573
5574 fi
5575 fi
5576 DUMPBIN=$ac_cv_prog_DUMPBIN
5577 if test -n "$DUMPBIN"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5579 $as_echo "$DUMPBIN" >&6; }
5580 else
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582 $as_echo "no" >&6; }
5583 fi
5584
5585
5586 test -n "$DUMPBIN" && break
5587 done
5588 fi
5589 if test -z "$DUMPBIN"; then
5590 ac_ct_DUMPBIN=$DUMPBIN
5591 for ac_prog in dumpbin "link -dump"
5592 do
5593 # Extract the first word of "$ac_prog", so it can be a program name with args.
5594 set dummy $ac_prog; ac_word=$2
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5596 $as_echo_n "checking for $ac_word... " >&6; }
5597 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 if test -n "$ac_ct_DUMPBIN"; then
5601 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5602 else
5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 for as_dir in $PATH
5605 do
5606 IFS=$as_save_IFS
5607 test -z "$as_dir" && as_dir=.
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5610 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5612 break 2
5613 fi
5614 done
5615 done
5616 IFS=$as_save_IFS
5617
5618 fi
5619 fi
5620 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5621 if test -n "$ac_ct_DUMPBIN"; then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5623 $as_echo "$ac_ct_DUMPBIN" >&6; }
5624 else
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 $as_echo "no" >&6; }
5627 fi
5628
5629
5630 test -n "$ac_ct_DUMPBIN" && break
5631 done
5632
5633 if test "x$ac_ct_DUMPBIN" = x; then
5634 DUMPBIN=":"
5635 else
5636 case $cross_compiling:$ac_tool_warned in
5637 yes:)
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5640 ac_tool_warned=yes ;;
5641 esac
5642 DUMPBIN=$ac_ct_DUMPBIN
5643 fi
5644 fi
5645
5646 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5647 *COFF*)
5648 DUMPBIN="$DUMPBIN -symbols -headers"
5649 ;;
5650 *)
5651 DUMPBIN=:
5652 ;;
5653 esac
5654 fi
5655
5656 if test : != "$DUMPBIN"; then
5657 NM=$DUMPBIN
5658 fi
5659 fi
5660 test -z "$NM" && NM=nm
5661
5662
5663
5664
5665
5666
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5668 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5669 if ${lt_cv_nm_interface+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 lt_cv_nm_interface="BSD nm"
5673 echo "int some_variable = 0;" > conftest.$ac_ext
5674 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5675 (eval "$ac_compile" 2>conftest.err)
5676 cat conftest.err >&5
5677 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5678 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5679 cat conftest.err >&5
5680 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5681 cat conftest.out >&5
5682 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5683 lt_cv_nm_interface="MS dumpbin"
5684 fi
5685 rm -f conftest*
5686 fi
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5688 $as_echo "$lt_cv_nm_interface" >&6; }
5689
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5691 $as_echo_n "checking whether ln -s works... " >&6; }
5692 LN_S=$as_ln_s
5693 if test "$LN_S" = "ln -s"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5695 $as_echo "yes" >&6; }
5696 else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5698 $as_echo "no, using $LN_S" >&6; }
5699 fi
5700
5701 # find the maximum length of command line arguments
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5703 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5704 if ${lt_cv_sys_max_cmd_len+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 i=0
5708 teststring=ABCD
5709
5710 case $build_os in
5711 msdosdjgpp*)
5712 # On DJGPP, this test can blow up pretty badly due to problems in libc
5713 # (any single argument exceeding 2000 bytes causes a buffer overrun
5714 # during glob expansion). Even if it were fixed, the result of this
5715 # check would be larger than it should be.
5716 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5717 ;;
5718
5719 gnu*)
5720 # Under GNU Hurd, this test is not required because there is
5721 # no limit to the length of command line arguments.
5722 # Libtool will interpret -1 as no limit whatsoever
5723 lt_cv_sys_max_cmd_len=-1;
5724 ;;
5725
5726 cygwin* | mingw* | cegcc*)
5727 # On Win9x/ME, this test blows up -- it succeeds, but takes
5728 # about 5 minutes as the teststring grows exponentially.
5729 # Worse, since 9x/ME are not pre-emptively multitasking,
5730 # you end up with a "frozen" computer, even though with patience
5731 # the test eventually succeeds (with a max line length of 256k).
5732 # Instead, let's just punt: use the minimum linelength reported by
5733 # all of the supported platforms: 8192 (on NT/2K/XP).
5734 lt_cv_sys_max_cmd_len=8192;
5735 ;;
5736
5737 mint*)
5738 # On MiNT this can take a long time and run out of memory.
5739 lt_cv_sys_max_cmd_len=8192;
5740 ;;
5741
5742 amigaos*)
5743 # On AmigaOS with pdksh, this test takes hours, literally.
5744 # So we just punt and use a minimum line length of 8192.
5745 lt_cv_sys_max_cmd_len=8192;
5746 ;;
5747
5748 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5749 # This has been around since 386BSD, at least. Likely further.
5750 if test -x /sbin/sysctl; then
5751 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5752 elif test -x /usr/sbin/sysctl; then
5753 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5754 else
5755 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5756 fi
5757 # And add a safety zone
5758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5760 ;;
5761
5762 interix*)
5763 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5764 lt_cv_sys_max_cmd_len=196608
5765 ;;
5766
5767 os2*)
5768 # The test takes a long time on OS/2.
5769 lt_cv_sys_max_cmd_len=8192
5770 ;;
5771
5772 osf*)
5773 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5774 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5775 # nice to cause kernel panics so lets avoid the loop below.
5776 # First set a reasonable default.
5777 lt_cv_sys_max_cmd_len=16384
5778 #
5779 if test -x /sbin/sysconfig; then
5780 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5781 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5782 esac
5783 fi
5784 ;;
5785 sco3.2v5*)
5786 lt_cv_sys_max_cmd_len=102400
5787 ;;
5788 sysv5* | sco5v6* | sysv4.2uw2*)
5789 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5790 if test -n "$kargmax"; then
5791 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5792 else
5793 lt_cv_sys_max_cmd_len=32768
5794 fi
5795 ;;
5796 *)
5797 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5798 if test -n "$lt_cv_sys_max_cmd_len" && \
5799 test undefined != "$lt_cv_sys_max_cmd_len"; then
5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5802 else
5803 # Make teststring a little bigger before we do anything with it.
5804 # a 1K string should be a reasonable start.
5805 for i in 1 2 3 4 5 6 7 8; do
5806 teststring=$teststring$teststring
5807 done
5808 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5809 # If test is not a shell built-in, we'll probably end up computing a
5810 # maximum length that is only half of the actual maximum length, but
5811 # we can't tell.
5812 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5813 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5814 test 17 != "$i" # 1/2 MB should be enough
5815 do
5816 i=`expr $i + 1`
5817 teststring=$teststring$teststring
5818 done
5819 # Only check the string length outside the loop.
5820 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5821 teststring=
5822 # Add a significant safety factor because C++ compilers can tack on
5823 # massive amounts of additional arguments before passing them to the
5824 # linker. It appears as though 1/2 is a usable value.
5825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5826 fi
5827 ;;
5828 esac
5829
5830 fi
5831
5832 if test -n "$lt_cv_sys_max_cmd_len"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5834 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5835 else
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5837 $as_echo "none" >&6; }
5838 fi
5839 max_cmd_len=$lt_cv_sys_max_cmd_len
5840
5841
5842
5843
5844
5845
5846 : ${CP="cp -f"}
5847 : ${MV="mv -f"}
5848 : ${RM="rm -f"}
5849
5850 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5851 lt_unset=unset
5852 else
5853 lt_unset=false
5854 fi
5855
5856
5857
5858
5859
5860 # test EBCDIC or ASCII
5861 case `echo X|tr X '\101'` in
5862 A) # ASCII based system
5863 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5864 lt_SP2NL='tr \040 \012'
5865 lt_NL2SP='tr \015\012 \040\040'
5866 ;;
5867 *) # EBCDIC based system
5868 lt_SP2NL='tr \100 \n'
5869 lt_NL2SP='tr \r\n \100\100'
5870 ;;
5871 esac
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5882 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5883 if ${lt_cv_to_host_file_cmd+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 case $host in
5887 *-*-mingw* )
5888 case $build in
5889 *-*-mingw* ) # actually msys
5890 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5891 ;;
5892 *-*-cygwin* )
5893 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5894 ;;
5895 * ) # otherwise, assume *nix
5896 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5897 ;;
5898 esac
5899 ;;
5900 *-*-cygwin* )
5901 case $build in
5902 *-*-mingw* ) # actually msys
5903 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5904 ;;
5905 *-*-cygwin* )
5906 lt_cv_to_host_file_cmd=func_convert_file_noop
5907 ;;
5908 * ) # otherwise, assume *nix
5909 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5910 ;;
5911 esac
5912 ;;
5913 * ) # unhandled hosts (and "normal" native builds)
5914 lt_cv_to_host_file_cmd=func_convert_file_noop
5915 ;;
5916 esac
5917
5918 fi
5919
5920 to_host_file_cmd=$lt_cv_to_host_file_cmd
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5922 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5923
5924
5925
5926
5927
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5929 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5930 if ${lt_cv_to_tool_file_cmd+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 #assume ordinary cross tools, or native build.
5934 lt_cv_to_tool_file_cmd=func_convert_file_noop
5935 case $host in
5936 *-*-mingw* )
5937 case $build in
5938 *-*-mingw* ) # actually msys
5939 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5940 ;;
5941 esac
5942 ;;
5943 esac
5944
5945 fi
5946
5947 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5949 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5950
5951
5952
5953
5954
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5956 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5957 if ${lt_cv_ld_reload_flag+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 lt_cv_ld_reload_flag='-r'
5961 fi
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5963 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5964 reload_flag=$lt_cv_ld_reload_flag
5965 case $reload_flag in
5966 "" | " "*) ;;
5967 *) reload_flag=" $reload_flag" ;;
5968 esac
5969 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5970 case $host_os in
5971 cygwin* | mingw* | pw32* | cegcc*)
5972 if test yes != "$GCC"; then
5973 reload_cmds=false
5974 fi
5975 ;;
5976 darwin*)
5977 if test yes = "$GCC"; then
5978 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5979 else
5980 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5981 fi
5982 ;;
5983 esac
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993 if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5995 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_OBJDUMP+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if test -n "$OBJDUMP"; then
6002 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015 done
6016 done
6017 IFS=$as_save_IFS
6018
6019 fi
6020 fi
6021 OBJDUMP=$ac_cv_prog_OBJDUMP
6022 if test -n "$OBJDUMP"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6024 $as_echo "$OBJDUMP" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6028 fi
6029
6030
6031 fi
6032 if test -z "$ac_cv_prog_OBJDUMP"; then
6033 ac_ct_OBJDUMP=$OBJDUMP
6034 # Extract the first word of "objdump", so it can be a program name with args.
6035 set dummy objdump; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 if test -n "$ac_ct_OBJDUMP"; then
6042 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055 done
6056 done
6057 IFS=$as_save_IFS
6058
6059 fi
6060 fi
6061 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6062 if test -n "$ac_ct_OBJDUMP"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6064 $as_echo "$ac_ct_OBJDUMP" >&6; }
6065 else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6068 fi
6069
6070 if test "x$ac_ct_OBJDUMP" = x; then
6071 OBJDUMP="false"
6072 else
6073 case $cross_compiling:$ac_tool_warned in
6074 yes:)
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077 ac_tool_warned=yes ;;
6078 esac
6079 OBJDUMP=$ac_ct_OBJDUMP
6080 fi
6081 else
6082 OBJDUMP="$ac_cv_prog_OBJDUMP"
6083 fi
6084
6085 test -z "$OBJDUMP" && OBJDUMP=objdump
6086
6087
6088
6089
6090
6091
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6093 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6094 if ${lt_cv_deplibs_check_method+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 lt_cv_file_magic_cmd='$MAGIC_CMD'
6098 lt_cv_file_magic_test_file=
6099 lt_cv_deplibs_check_method='unknown'
6100 # Need to set the preceding variable on all platforms that support
6101 # interlibrary dependencies.
6102 # 'none' -- dependencies not supported.
6103 # 'unknown' -- same as none, but documents that we really don't know.
6104 # 'pass_all' -- all dependencies passed with no checks.
6105 # 'test_compile' -- check by making test program.
6106 # 'file_magic [[regex]]' -- check by looking for files in library path
6107 # that responds to the $file_magic_cmd with a given extended regex.
6108 # If you have 'file' or equivalent on your system and you're not sure
6109 # whether 'pass_all' will *always* work, you probably want this one.
6110
6111 case $host_os in
6112 aix[4-9]*)
6113 lt_cv_deplibs_check_method=pass_all
6114 ;;
6115
6116 beos*)
6117 lt_cv_deplibs_check_method=pass_all
6118 ;;
6119
6120 bsdi[45]*)
6121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6122 lt_cv_file_magic_cmd='/usr/bin/file -L'
6123 lt_cv_file_magic_test_file=/shlib/libc.so
6124 ;;
6125
6126 cygwin*)
6127 # func_win32_libid is a shell function defined in ltmain.sh
6128 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6129 lt_cv_file_magic_cmd='func_win32_libid'
6130 ;;
6131
6132 mingw* | pw32*)
6133 # Base MSYS/MinGW do not provide the 'file' command needed by
6134 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6135 # unless we find 'file', for example because we are cross-compiling.
6136 if ( file / ) >/dev/null 2>&1; then
6137 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6138 lt_cv_file_magic_cmd='func_win32_libid'
6139 else
6140 # Keep this pattern in sync with the one in func_win32_libid.
6141 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6142 lt_cv_file_magic_cmd='$OBJDUMP -f'
6143 fi
6144 ;;
6145
6146 cegcc*)
6147 # use the weaker test based on 'objdump'. See mingw*.
6148 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6149 lt_cv_file_magic_cmd='$OBJDUMP -f'
6150 ;;
6151
6152 darwin* | rhapsody*)
6153 lt_cv_deplibs_check_method=pass_all
6154 ;;
6155
6156 freebsd* | dragonfly*)
6157 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6158 case $host_cpu in
6159 i*86 )
6160 # Not sure whether the presence of OpenBSD here was a mistake.
6161 # Let's accept both of them until this is cleared up.
6162 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6163 lt_cv_file_magic_cmd=/usr/bin/file
6164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6165 ;;
6166 esac
6167 else
6168 lt_cv_deplibs_check_method=pass_all
6169 fi
6170 ;;
6171
6172 haiku*)
6173 lt_cv_deplibs_check_method=pass_all
6174 ;;
6175
6176 hpux10.20* | hpux11*)
6177 lt_cv_file_magic_cmd=/usr/bin/file
6178 case $host_cpu in
6179 ia64*)
6180 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6181 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6182 ;;
6183 hppa*64*)
6184 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6185 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6186 ;;
6187 *)
6188 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6189 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6190 ;;
6191 esac
6192 ;;
6193
6194 interix[3-9]*)
6195 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6197 ;;
6198
6199 irix5* | irix6* | nonstopux*)
6200 case $LD in
6201 *-32|*"-32 ") libmagic=32-bit;;
6202 *-n32|*"-n32 ") libmagic=N32;;
6203 *-64|*"-64 ") libmagic=64-bit;;
6204 *) libmagic=never-match;;
6205 esac
6206 lt_cv_deplibs_check_method=pass_all
6207 ;;
6208
6209 # This must be glibc/ELF.
6210 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6211 lt_cv_deplibs_check_method=pass_all
6212 ;;
6213
6214 netbsd*)
6215 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6217 else
6218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6219 fi
6220 ;;
6221
6222 newos6*)
6223 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6224 lt_cv_file_magic_cmd=/usr/bin/file
6225 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6226 ;;
6227
6228 *nto* | *qnx*)
6229 lt_cv_deplibs_check_method=pass_all
6230 ;;
6231
6232 openbsd* | bitrig*)
6233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6235 else
6236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6237 fi
6238 ;;
6239
6240 osf3* | osf4* | osf5*)
6241 lt_cv_deplibs_check_method=pass_all
6242 ;;
6243
6244 rdos*)
6245 lt_cv_deplibs_check_method=pass_all
6246 ;;
6247
6248 solaris*)
6249 lt_cv_deplibs_check_method=pass_all
6250 ;;
6251
6252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6253 lt_cv_deplibs_check_method=pass_all
6254 ;;
6255
6256 sysv4 | sysv4.3*)
6257 case $host_vendor in
6258 motorola)
6259 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]'
6260 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6261 ;;
6262 ncr)
6263 lt_cv_deplibs_check_method=pass_all
6264 ;;
6265 sequent)
6266 lt_cv_file_magic_cmd='/bin/file'
6267 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6268 ;;
6269 sni)
6270 lt_cv_file_magic_cmd='/bin/file'
6271 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6272 lt_cv_file_magic_test_file=/lib/libc.so
6273 ;;
6274 siemens)
6275 lt_cv_deplibs_check_method=pass_all
6276 ;;
6277 pc)
6278 lt_cv_deplibs_check_method=pass_all
6279 ;;
6280 esac
6281 ;;
6282
6283 tpf*)
6284 lt_cv_deplibs_check_method=pass_all
6285 ;;
6286 os2*)
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289 esac
6290
6291 fi
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6293 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6294
6295 file_magic_glob=
6296 want_nocaseglob=no
6297 if test "$build" = "$host"; then
6298 case $host_os in
6299 mingw* | pw32*)
6300 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6301 want_nocaseglob=yes
6302 else
6303 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6304 fi
6305 ;;
6306 esac
6307 fi
6308
6309 file_magic_cmd=$lt_cv_file_magic_cmd
6310 deplibs_check_method=$lt_cv_deplibs_check_method
6311 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334 if test -n "$ac_tool_prefix"; then
6335 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6336 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if ${ac_cv_prog_DLLTOOL+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 if test -n "$DLLTOOL"; then
6343 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348 IFS=$as_save_IFS
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6352 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 break 2
6355 fi
6356 done
6357 done
6358 IFS=$as_save_IFS
6359
6360 fi
6361 fi
6362 DLLTOOL=$ac_cv_prog_DLLTOOL
6363 if test -n "$DLLTOOL"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6365 $as_echo "$DLLTOOL" >&6; }
6366 else
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6369 fi
6370
6371
6372 fi
6373 if test -z "$ac_cv_prog_DLLTOOL"; then
6374 ac_ct_DLLTOOL=$DLLTOOL
6375 # Extract the first word of "dlltool", so it can be a program name with args.
6376 set dummy dlltool; ac_word=$2
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378 $as_echo_n "checking for $ac_word... " >&6; }
6379 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6380 $as_echo_n "(cached) " >&6
6381 else
6382 if test -n "$ac_ct_DLLTOOL"; then
6383 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6384 else
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH
6387 do
6388 IFS=$as_save_IFS
6389 test -z "$as_dir" && as_dir=.
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6392 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 break 2
6395 fi
6396 done
6397 done
6398 IFS=$as_save_IFS
6399
6400 fi
6401 fi
6402 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6403 if test -n "$ac_ct_DLLTOOL"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6405 $as_echo "$ac_ct_DLLTOOL" >&6; }
6406 else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 $as_echo "no" >&6; }
6409 fi
6410
6411 if test "x$ac_ct_DLLTOOL" = x; then
6412 DLLTOOL="false"
6413 else
6414 case $cross_compiling:$ac_tool_warned in
6415 yes:)
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6418 ac_tool_warned=yes ;;
6419 esac
6420 DLLTOOL=$ac_ct_DLLTOOL
6421 fi
6422 else
6423 DLLTOOL="$ac_cv_prog_DLLTOOL"
6424 fi
6425
6426 test -z "$DLLTOOL" && DLLTOOL=dlltool
6427
6428
6429
6430
6431
6432
6433
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6435 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6436 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 lt_cv_sharedlib_from_linklib_cmd='unknown'
6440
6441 case $host_os in
6442 cygwin* | mingw* | pw32* | cegcc*)
6443 # two different shell functions defined in ltmain.sh;
6444 # decide which one to use based on capabilities of $DLLTOOL
6445 case `$DLLTOOL --help 2>&1` in
6446 *--identify-strict*)
6447 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6448 ;;
6449 *)
6450 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6451 ;;
6452 esac
6453 ;;
6454 *)
6455 # fallback: assume linklib IS sharedlib
6456 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6457 ;;
6458 esac
6459
6460 fi
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6462 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6463 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6464 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6465
6466
6467
6468
6469
6470
6471
6472
6473 if test -n "$ac_tool_prefix"; then
6474 for ac_prog in ar
6475 do
6476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if ${ac_cv_prog_AR+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 if test -n "$AR"; then
6484 ac_cv_prog_AR="$AR" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 AR=$ac_cv_prog_AR
6504 if test -n "$AR"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6506 $as_echo "$AR" >&6; }
6507 else
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6510 fi
6511
6512
6513 test -n "$AR" && break
6514 done
6515 fi
6516 if test -z "$AR"; then
6517 ac_ct_AR=$AR
6518 for ac_prog in ar
6519 do
6520 # Extract the first word of "$ac_prog", so it can be a program name with args.
6521 set dummy $ac_prog; ac_word=$2
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 if test -n "$ac_ct_AR"; then
6528 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_ac_ct_AR="$ac_prog"
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6540 fi
6541 done
6542 done
6543 IFS=$as_save_IFS
6544
6545 fi
6546 fi
6547 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6548 if test -n "$ac_ct_AR"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6550 $as_echo "$ac_ct_AR" >&6; }
6551 else
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6554 fi
6555
6556
6557 test -n "$ac_ct_AR" && break
6558 done
6559
6560 if test "x$ac_ct_AR" = x; then
6561 AR="false"
6562 else
6563 case $cross_compiling:$ac_tool_warned in
6564 yes:)
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567 ac_tool_warned=yes ;;
6568 esac
6569 AR=$ac_ct_AR
6570 fi
6571 fi
6572
6573 : ${AR=ar}
6574 : ${AR_FLAGS=cru}
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6587 $as_echo_n "checking for archiver @FILE support... " >&6; }
6588 if ${lt_cv_ar_at_file+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 lt_cv_ar_at_file=no
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594
6595 int
6596 main ()
6597 {
6598
6599 ;
6600 return 0;
6601 }
6602 _ACEOF
6603 if ac_fn_c_try_compile "$LINENO"; then :
6604 echo conftest.$ac_objext > conftest.lst
6605 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6607 (eval $lt_ar_try) 2>&5
6608 ac_status=$?
6609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6610 test $ac_status = 0; }
6611 if test 0 -eq "$ac_status"; then
6612 # Ensure the archiver fails upon bogus file names.
6613 rm -f conftest.$ac_objext libconftest.a
6614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6615 (eval $lt_ar_try) 2>&5
6616 ac_status=$?
6617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6618 test $ac_status = 0; }
6619 if test 0 -ne "$ac_status"; then
6620 lt_cv_ar_at_file=@
6621 fi
6622 fi
6623 rm -f conftest.* libconftest.a
6624
6625 fi
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627
6628 fi
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6630 $as_echo "$lt_cv_ar_at_file" >&6; }
6631
6632 if test no = "$lt_cv_ar_at_file"; then
6633 archiver_list_spec=
6634 else
6635 archiver_list_spec=$lt_cv_ar_at_file
6636 fi
6637
6638
6639
6640
6641
6642
6643
6644 if test -n "$ac_tool_prefix"; then
6645 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6646 set dummy ${ac_tool_prefix}strip; ac_word=$2
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 $as_echo_n "checking for $ac_word... " >&6; }
6649 if ${ac_cv_prog_STRIP+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 if test -n "$STRIP"; then
6653 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6654 else
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6657 do
6658 IFS=$as_save_IFS
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 break 2
6665 fi
6666 done
6667 done
6668 IFS=$as_save_IFS
6669
6670 fi
6671 fi
6672 STRIP=$ac_cv_prog_STRIP
6673 if test -n "$STRIP"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6675 $as_echo "$STRIP" >&6; }
6676 else
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 $as_echo "no" >&6; }
6679 fi
6680
6681
6682 fi
6683 if test -z "$ac_cv_prog_STRIP"; then
6684 ac_ct_STRIP=$STRIP
6685 # Extract the first word of "strip", so it can be a program name with args.
6686 set dummy strip; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 if test -n "$ac_ct_STRIP"; then
6693 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702 ac_cv_prog_ac_ct_STRIP="strip"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6705 fi
6706 done
6707 done
6708 IFS=$as_save_IFS
6709
6710 fi
6711 fi
6712 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6713 if test -n "$ac_ct_STRIP"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6715 $as_echo "$ac_ct_STRIP" >&6; }
6716 else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6719 fi
6720
6721 if test "x$ac_ct_STRIP" = x; then
6722 STRIP=":"
6723 else
6724 case $cross_compiling:$ac_tool_warned in
6725 yes:)
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6728 ac_tool_warned=yes ;;
6729 esac
6730 STRIP=$ac_ct_STRIP
6731 fi
6732 else
6733 STRIP="$ac_cv_prog_STRIP"
6734 fi
6735
6736 test -z "$STRIP" && STRIP=:
6737
6738
6739
6740
6741
6742
6743 if test -n "$ac_tool_prefix"; then
6744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6745 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if ${ac_cv_prog_RANLIB+:} false; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 if test -n "$RANLIB"; then
6752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6753 else
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6756 do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6761 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765 done
6766 done
6767 IFS=$as_save_IFS
6768
6769 fi
6770 fi
6771 RANLIB=$ac_cv_prog_RANLIB
6772 if test -n "$RANLIB"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6774 $as_echo "$RANLIB" >&6; }
6775 else
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6778 fi
6779
6780
6781 fi
6782 if test -z "$ac_cv_prog_RANLIB"; then
6783 ac_ct_RANLIB=$RANLIB
6784 # Extract the first word of "ranlib", so it can be a program name with args.
6785 set dummy ranlib; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 if test -n "$ac_ct_RANLIB"; then
6792 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801 ac_cv_prog_ac_ct_RANLIB="ranlib"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6804 fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809 fi
6810 fi
6811 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6812 if test -n "$ac_ct_RANLIB"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6814 $as_echo "$ac_ct_RANLIB" >&6; }
6815 else
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6818 fi
6819
6820 if test "x$ac_ct_RANLIB" = x; then
6821 RANLIB=":"
6822 else
6823 case $cross_compiling:$ac_tool_warned in
6824 yes:)
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6827 ac_tool_warned=yes ;;
6828 esac
6829 RANLIB=$ac_ct_RANLIB
6830 fi
6831 else
6832 RANLIB="$ac_cv_prog_RANLIB"
6833 fi
6834
6835 test -z "$RANLIB" && RANLIB=:
6836
6837
6838
6839
6840
6841
6842 # Determine commands to create old-style static archives.
6843 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6844 old_postinstall_cmds='chmod 644 $oldlib'
6845 old_postuninstall_cmds=
6846
6847 if test -n "$RANLIB"; then
6848 case $host_os in
6849 bitrig* | openbsd*)
6850 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6851 ;;
6852 *)
6853 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6854 ;;
6855 esac
6856 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6857 fi
6858
6859 case $host_os in
6860 darwin*)
6861 lock_old_archive_extraction=yes ;;
6862 *)
6863 lock_old_archive_extraction=no ;;
6864 esac
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904 # If no C compiler was specified, use CC.
6905 LTCC=${LTCC-"$CC"}
6906
6907 # If no C compiler flags were specified, use CFLAGS.
6908 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6909
6910 # Allow CC to be a program name with arguments.
6911 compiler=$CC
6912
6913
6914 # Check for command to grab the raw symbol name followed by C symbol from nm.
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6916 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6917 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920
6921 # These are sane defaults that work on at least a few old systems.
6922 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6923
6924 # Character class describing NM global symbol codes.
6925 symcode='[BCDEGRST]'
6926
6927 # Regexp to match symbols that can be accessed directly from C.
6928 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6929
6930 # Define system-specific variables.
6931 case $host_os in
6932 aix*)
6933 symcode='[BCDT]'
6934 ;;
6935 cygwin* | mingw* | pw32* | cegcc*)
6936 symcode='[ABCDGISTW]'
6937 ;;
6938 hpux*)
6939 if test ia64 = "$host_cpu"; then
6940 symcode='[ABCDEGRST]'
6941 fi
6942 ;;
6943 irix* | nonstopux*)
6944 symcode='[BCDEGRST]'
6945 ;;
6946 osf*)
6947 symcode='[BCDEGQRST]'
6948 ;;
6949 solaris*)
6950 symcode='[BDRT]'
6951 ;;
6952 sco3.2v5*)
6953 symcode='[DT]'
6954 ;;
6955 sysv4.2uw2*)
6956 symcode='[DT]'
6957 ;;
6958 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6959 symcode='[ABDT]'
6960 ;;
6961 sysv4)
6962 symcode='[DFNSTU]'
6963 ;;
6964 esac
6965
6966 # If we're using GNU nm, then use its standard symbol codes.
6967 case `$NM -V 2>&1` in
6968 *GNU* | *'with BFD'*)
6969 symcode='[ABCDGIRSTW]' ;;
6970 esac
6971
6972 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6973 # Gets list of data symbols to import.
6974 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6975 # Adjust the below global symbol transforms to fixup imported variables.
6976 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6977 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6978 lt_c_name_lib_hook="\
6979 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6980 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6981 else
6982 # Disable hooks by default.
6983 lt_cv_sys_global_symbol_to_import=
6984 lt_cdecl_hook=
6985 lt_c_name_hook=
6986 lt_c_name_lib_hook=
6987 fi
6988
6989 # Transform an extracted symbol line into a proper C declaration.
6990 # Some systems (esp. on ia64) link data and code symbols differently,
6991 # so use this general approach.
6992 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6993 $lt_cdecl_hook\
6994 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6995 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6996
6997 # Transform an extracted symbol line into symbol name and symbol address
6998 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6999 $lt_c_name_hook\
7000 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7001 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7002
7003 # Transform an extracted symbol line into symbol name with lib prefix and
7004 # symbol address.
7005 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7006 $lt_c_name_lib_hook\
7007 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7008 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7009 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7010
7011 # Handle CRLF in mingw tool chain
7012 opt_cr=
7013 case $build_os in
7014 mingw*)
7015 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7016 ;;
7017 esac
7018
7019 # Try without a prefix underscore, then with it.
7020 for ac_symprfx in "" "_"; do
7021
7022 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7023 symxfrm="\\1 $ac_symprfx\\2 \\2"
7024
7025 # Write the raw and C identifiers.
7026 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7027 # Fake it for dumpbin and say T for any non-static function,
7028 # D for any global variable and I for any imported variable.
7029 # Also find C++ and __fastcall symbols from MSVC++,
7030 # which start with @ or ?.
7031 lt_cv_sys_global_symbol_pipe="$AWK '"\
7032 " {last_section=section; section=\$ 3};"\
7033 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7034 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7035 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7036 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7037 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7038 " \$ 0!~/External *\|/{next};"\
7039 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7040 " {if(hide[section]) next};"\
7041 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7042 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7043 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7044 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7045 " ' prfx=^$ac_symprfx"
7046 else
7047 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7048 fi
7049 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7050
7051 # Check to see that the pipe works correctly.
7052 pipe_works=no
7053
7054 rm -f conftest*
7055 cat > conftest.$ac_ext <<_LT_EOF
7056 #ifdef __cplusplus
7057 extern "C" {
7058 #endif
7059 char nm_test_var;
7060 void nm_test_func(void);
7061 void nm_test_func(void){}
7062 #ifdef __cplusplus
7063 }
7064 #endif
7065 int main(){nm_test_var='a';nm_test_func();return(0);}
7066 _LT_EOF
7067
7068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7069 (eval $ac_compile) 2>&5
7070 ac_status=$?
7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072 test $ac_status = 0; }; then
7073 # Now try to grab the symbols.
7074 nlist=conftest.nm
7075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7076 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7077 ac_status=$?
7078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7079 test $ac_status = 0; } && test -s "$nlist"; then
7080 # Try sorting and uniquifying the output.
7081 if sort "$nlist" | uniq > "$nlist"T; then
7082 mv -f "$nlist"T "$nlist"
7083 else
7084 rm -f "$nlist"T
7085 fi
7086
7087 # Make sure that we snagged all the symbols we need.
7088 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7089 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7090 cat <<_LT_EOF > conftest.$ac_ext
7091 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7092 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7093 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7094 relocations are performed -- see ld's documentation on pseudo-relocs. */
7095 # define LT_DLSYM_CONST
7096 #elif defined __osf__
7097 /* This system does not cope well with relocations in const data. */
7098 # define LT_DLSYM_CONST
7099 #else
7100 # define LT_DLSYM_CONST const
7101 #endif
7102
7103 #ifdef __cplusplus
7104 extern "C" {
7105 #endif
7106
7107 _LT_EOF
7108 # Now generate the symbol file.
7109 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7110
7111 cat <<_LT_EOF >> conftest.$ac_ext
7112
7113 /* The mapping between symbol names and symbols. */
7114 LT_DLSYM_CONST struct {
7115 const char *name;
7116 void *address;
7117 }
7118 lt__PROGRAM__LTX_preloaded_symbols[] =
7119 {
7120 { "@PROGRAM@", (void *) 0 },
7121 _LT_EOF
7122 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7123 cat <<\_LT_EOF >> conftest.$ac_ext
7124 {0, (void *) 0}
7125 };
7126
7127 /* This works around a problem in FreeBSD linker */
7128 #ifdef FREEBSD_WORKAROUND
7129 static const void *lt_preloaded_setup() {
7130 return lt__PROGRAM__LTX_preloaded_symbols;
7131 }
7132 #endif
7133
7134 #ifdef __cplusplus
7135 }
7136 #endif
7137 _LT_EOF
7138 # Now try linking the two files.
7139 mv conftest.$ac_objext conftstm.$ac_objext
7140 lt_globsym_save_LIBS=$LIBS
7141 lt_globsym_save_CFLAGS=$CFLAGS
7142 LIBS=conftstm.$ac_objext
7143 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7145 (eval $ac_link) 2>&5
7146 ac_status=$?
7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7149 pipe_works=yes
7150 fi
7151 LIBS=$lt_globsym_save_LIBS
7152 CFLAGS=$lt_globsym_save_CFLAGS
7153 else
7154 echo "cannot find nm_test_func in $nlist" >&5
7155 fi
7156 else
7157 echo "cannot find nm_test_var in $nlist" >&5
7158 fi
7159 else
7160 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7161 fi
7162 else
7163 echo "$progname: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7165 fi
7166 rm -rf conftest* conftst*
7167
7168 # Do not use the global_symbol_pipe unless it works.
7169 if test yes = "$pipe_works"; then
7170 break
7171 else
7172 lt_cv_sys_global_symbol_pipe=
7173 fi
7174 done
7175
7176 fi
7177
7178 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7179 lt_cv_sys_global_symbol_to_cdecl=
7180 fi
7181 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7183 $as_echo "failed" >&6; }
7184 else
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7186 $as_echo "ok" >&6; }
7187 fi
7188
7189 # Response file support.
7190 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7191 nm_file_list_spec='@'
7192 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7193 nm_file_list_spec='@'
7194 fi
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7233 $as_echo_n "checking for sysroot... " >&6; }
7234
7235 # Check whether --with-sysroot was given.
7236 if test "${with_sysroot+set}" = set; then :
7237 withval=$with_sysroot;
7238 else
7239 with_sysroot=no
7240 fi
7241
7242
7243 lt_sysroot=
7244 case $with_sysroot in #(
7245 yes)
7246 if test yes = "$GCC"; then
7247 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7248 fi
7249 ;; #(
7250 /*)
7251 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7252 ;; #(
7253 no|'')
7254 ;; #(
7255 *)
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7257 $as_echo "$with_sysroot" >&6; }
7258 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7259 ;;
7260 esac
7261
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7263 $as_echo "${lt_sysroot:-no}" >&6; }
7264
7265
7266
7267
7268
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7270 $as_echo_n "checking for a working dd... " >&6; }
7271 if ${ac_cv_path_lt_DD+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 printf 0123456789abcdef0123456789abcdef >conftest.i
7275 cat conftest.i conftest.i >conftest2.i
7276 : ${lt_DD:=$DD}
7277 if test -z "$lt_DD"; then
7278 ac_path_lt_DD_found=false
7279 # Loop through the user's path and test for each of PROGNAME-LIST
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_prog in dd; do
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7288 as_fn_executable_p "$ac_path_lt_DD" || continue
7289 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7290 cmp -s conftest.i conftest.out \
7291 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7292 fi
7293 $ac_path_lt_DD_found && break 3
7294 done
7295 done
7296 done
7297 IFS=$as_save_IFS
7298 if test -z "$ac_cv_path_lt_DD"; then
7299 :
7300 fi
7301 else
7302 ac_cv_path_lt_DD=$lt_DD
7303 fi
7304
7305 rm -f conftest.i conftest2.i conftest.out
7306 fi
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7308 $as_echo "$ac_cv_path_lt_DD" >&6; }
7309
7310
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7312 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7313 if ${lt_cv_truncate_bin+:} false; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 printf 0123456789abcdef0123456789abcdef >conftest.i
7317 cat conftest.i conftest.i >conftest2.i
7318 lt_cv_truncate_bin=
7319 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7320 cmp -s conftest.i conftest.out \
7321 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7322 fi
7323 rm -f conftest.i conftest2.i conftest.out
7324 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7325 fi
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7327 $as_echo "$lt_cv_truncate_bin" >&6; }
7328
7329
7330
7331
7332
7333
7334
7335 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7336 func_cc_basename ()
7337 {
7338 for cc_temp in $*""; do
7339 case $cc_temp in
7340 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7341 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7342 \-*) ;;
7343 *) break;;
7344 esac
7345 done
7346 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7347 }
7348
7349 # Check whether --enable-libtool-lock was given.
7350 if test "${enable_libtool_lock+set}" = set; then :
7351 enableval=$enable_libtool_lock;
7352 fi
7353
7354 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7355
7356 # Some flags need to be propagated to the compiler or linker for good
7357 # libtool support.
7358 case $host in
7359 ia64-*-hpux*)
7360 # Find out what ABI is being produced by ac_compile, and set mode
7361 # options accordingly.
7362 echo 'int i;' > conftest.$ac_ext
7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364 (eval $ac_compile) 2>&5
7365 ac_status=$?
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367 test $ac_status = 0; }; then
7368 case `/usr/bin/file conftest.$ac_objext` in
7369 *ELF-32*)
7370 HPUX_IA64_MODE=32
7371 ;;
7372 *ELF-64*)
7373 HPUX_IA64_MODE=64
7374 ;;
7375 esac
7376 fi
7377 rm -rf conftest*
7378 ;;
7379 *-*-irix6*)
7380 # Find out what ABI is being produced by ac_compile, and set linker
7381 # options accordingly.
7382 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7384 (eval $ac_compile) 2>&5
7385 ac_status=$?
7386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7387 test $ac_status = 0; }; then
7388 if test yes = "$lt_cv_prog_gnu_ld"; then
7389 case `/usr/bin/file conftest.$ac_objext` in
7390 *32-bit*)
7391 LD="${LD-ld} -melf32bsmip"
7392 ;;
7393 *N32*)
7394 LD="${LD-ld} -melf32bmipn32"
7395 ;;
7396 *64-bit*)
7397 LD="${LD-ld} -melf64bmip"
7398 ;;
7399 esac
7400 else
7401 case `/usr/bin/file conftest.$ac_objext` in
7402 *32-bit*)
7403 LD="${LD-ld} -32"
7404 ;;
7405 *N32*)
7406 LD="${LD-ld} -n32"
7407 ;;
7408 *64-bit*)
7409 LD="${LD-ld} -64"
7410 ;;
7411 esac
7412 fi
7413 fi
7414 rm -rf conftest*
7415 ;;
7416
7417 mips64*-*linux*)
7418 # Find out what ABI is being produced by ac_compile, and set linker
7419 # options accordingly.
7420 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7422 (eval $ac_compile) 2>&5
7423 ac_status=$?
7424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7425 test $ac_status = 0; }; then
7426 emul=elf
7427 case `/usr/bin/file conftest.$ac_objext` in
7428 *32-bit*)
7429 emul="${emul}32"
7430 ;;
7431 *64-bit*)
7432 emul="${emul}64"
7433 ;;
7434 esac
7435 case `/usr/bin/file conftest.$ac_objext` in
7436 *MSB*)
7437 emul="${emul}btsmip"
7438 ;;
7439 *LSB*)
7440 emul="${emul}ltsmip"
7441 ;;
7442 esac
7443 case `/usr/bin/file conftest.$ac_objext` in
7444 *N32*)
7445 emul="${emul}n32"
7446 ;;
7447 esac
7448 LD="${LD-ld} -m $emul"
7449 fi
7450 rm -rf conftest*
7451 ;;
7452
7453 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7454 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7455 # Find out what ABI is being produced by ac_compile, and set linker
7456 # options accordingly. Note that the listed cases only cover the
7457 # situations where additional linker options are needed (such as when
7458 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7459 # vice versa); the common cases where no linker options are needed do
7460 # not appear in the list.
7461 echo 'int i;' > conftest.$ac_ext
7462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7463 (eval $ac_compile) 2>&5
7464 ac_status=$?
7465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7466 test $ac_status = 0; }; then
7467 case `/usr/bin/file conftest.o` in
7468 *32-bit*)
7469 case $host in
7470 x86_64-*kfreebsd*-gnu)
7471 LD="${LD-ld} -m elf_i386_fbsd"
7472 ;;
7473 x86_64-*linux*)
7474 case `/usr/bin/file conftest.o` in
7475 *x86-64*)
7476 LD="${LD-ld} -m elf32_x86_64"
7477 ;;
7478 *)
7479 LD="${LD-ld} -m elf_i386"
7480 ;;
7481 esac
7482 ;;
7483 powerpc64le-*linux*)
7484 LD="${LD-ld} -m elf32lppclinux"
7485 ;;
7486 powerpc64-*linux*)
7487 LD="${LD-ld} -m elf32ppclinux"
7488 ;;
7489 s390x-*linux*)
7490 LD="${LD-ld} -m elf_s390"
7491 ;;
7492 sparc64-*linux*)
7493 LD="${LD-ld} -m elf32_sparc"
7494 ;;
7495 esac
7496 ;;
7497 *64-bit*)
7498 case $host in
7499 x86_64-*kfreebsd*-gnu)
7500 LD="${LD-ld} -m elf_x86_64_fbsd"
7501 ;;
7502 x86_64-*linux*)
7503 LD="${LD-ld} -m elf_x86_64"
7504 ;;
7505 powerpcle-*linux*)
7506 LD="${LD-ld} -m elf64lppc"
7507 ;;
7508 powerpc-*linux*)
7509 LD="${LD-ld} -m elf64ppc"
7510 ;;
7511 s390*-*linux*|s390*-*tpf*)
7512 LD="${LD-ld} -m elf64_s390"
7513 ;;
7514 sparc*-*linux*)
7515 LD="${LD-ld} -m elf64_sparc"
7516 ;;
7517 esac
7518 ;;
7519 esac
7520 fi
7521 rm -rf conftest*
7522 ;;
7523
7524 *-*-sco3.2v5*)
7525 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7526 SAVE_CFLAGS=$CFLAGS
7527 CFLAGS="$CFLAGS -belf"
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7529 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7530 if ${lt_cv_cc_needs_belf+:} false; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 ac_ext=c
7534 ac_cpp='$CPP $CPPFLAGS'
7535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7538
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7541
7542 int
7543 main ()
7544 {
7545
7546 ;
7547 return 0;
7548 }
7549 _ACEOF
7550 if ac_fn_c_try_link "$LINENO"; then :
7551 lt_cv_cc_needs_belf=yes
7552 else
7553 lt_cv_cc_needs_belf=no
7554 fi
7555 rm -f core conftest.err conftest.$ac_objext \
7556 conftest$ac_exeext conftest.$ac_ext
7557 ac_ext=c
7558 ac_cpp='$CPP $CPPFLAGS'
7559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7562
7563 fi
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7565 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7566 if test yes != "$lt_cv_cc_needs_belf"; then
7567 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7568 CFLAGS=$SAVE_CFLAGS
7569 fi
7570 ;;
7571 *-*solaris*)
7572 # Find out what ABI is being produced by ac_compile, and set linker
7573 # options accordingly.
7574 echo 'int i;' > conftest.$ac_ext
7575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7576 (eval $ac_compile) 2>&5
7577 ac_status=$?
7578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7579 test $ac_status = 0; }; then
7580 case `/usr/bin/file conftest.o` in
7581 *64-bit*)
7582 case $lt_cv_prog_gnu_ld in
7583 yes*)
7584 case $host in
7585 i?86-*-solaris*|x86_64-*-solaris*)
7586 LD="${LD-ld} -m elf_x86_64"
7587 ;;
7588 sparc*-*-solaris*)
7589 LD="${LD-ld} -m elf64_sparc"
7590 ;;
7591 esac
7592 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7593 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7594 LD=${LD-ld}_sol2
7595 fi
7596 ;;
7597 *)
7598 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7599 LD="${LD-ld} -64"
7600 fi
7601 ;;
7602 esac
7603 ;;
7604 esac
7605 fi
7606 rm -rf conftest*
7607 ;;
7608 esac
7609
7610 need_locks=$enable_libtool_lock
7611
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7614 set dummy ${ac_tool_prefix}mt; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 if test -n "$MANIFEST_TOOL"; then
7621 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7633 fi
7634 done
7635 done
7636 IFS=$as_save_IFS
7637
7638 fi
7639 fi
7640 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7641 if test -n "$MANIFEST_TOOL"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7643 $as_echo "$MANIFEST_TOOL" >&6; }
7644 else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648
7649
7650 fi
7651 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7652 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7653 # Extract the first word of "mt", so it can be a program name with args.
7654 set dummy mt; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 if test -n "$ac_ct_MANIFEST_TOOL"; then
7661 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7673 fi
7674 done
7675 done
7676 IFS=$as_save_IFS
7677
7678 fi
7679 fi
7680 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7681 if test -n "$ac_ct_MANIFEST_TOOL"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7683 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7684 else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7687 fi
7688
7689 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7690 MANIFEST_TOOL=":"
7691 else
7692 case $cross_compiling:$ac_tool_warned in
7693 yes:)
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned=yes ;;
7697 esac
7698 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7699 fi
7700 else
7701 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7702 fi
7703
7704 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7706 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7707 if ${lt_cv_path_mainfest_tool+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 lt_cv_path_mainfest_tool=no
7711 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7712 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7713 cat conftest.err >&5
7714 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7715 lt_cv_path_mainfest_tool=yes
7716 fi
7717 rm -f conftest*
7718 fi
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7720 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7721 if test yes != "$lt_cv_path_mainfest_tool"; then
7722 MANIFEST_TOOL=:
7723 fi
7724
7725
7726
7727
7728
7729
7730 case $host_os in
7731 rhapsody* | darwin*)
7732 if test -n "$ac_tool_prefix"; then
7733 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7734 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 if test -n "$DSYMUTIL"; then
7741 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7742 else
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746 IFS=$as_save_IFS
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7750 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 break 2
7753 fi
7754 done
7755 done
7756 IFS=$as_save_IFS
7757
7758 fi
7759 fi
7760 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7761 if test -n "$DSYMUTIL"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7763 $as_echo "$DSYMUTIL" >&6; }
7764 else
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768
7769
7770 fi
7771 if test -z "$ac_cv_prog_DSYMUTIL"; then
7772 ac_ct_DSYMUTIL=$DSYMUTIL
7773 # Extract the first word of "dsymutil", so it can be a program name with args.
7774 set dummy dsymutil; ac_word=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 if test -n "$ac_ct_DSYMUTIL"; then
7781 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7782 else
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $PATH
7785 do
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 break 2
7793 fi
7794 done
7795 done
7796 IFS=$as_save_IFS
7797
7798 fi
7799 fi
7800 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7801 if test -n "$ac_ct_DSYMUTIL"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7803 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7804 else
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7807 fi
7808
7809 if test "x$ac_ct_DSYMUTIL" = x; then
7810 DSYMUTIL=":"
7811 else
7812 case $cross_compiling:$ac_tool_warned in
7813 yes:)
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7816 ac_tool_warned=yes ;;
7817 esac
7818 DSYMUTIL=$ac_ct_DSYMUTIL
7819 fi
7820 else
7821 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7822 fi
7823
7824 if test -n "$ac_tool_prefix"; then
7825 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7826 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if ${ac_cv_prog_NMEDIT+:} false; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 if test -n "$NMEDIT"; then
7833 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7845 fi
7846 done
7847 done
7848 IFS=$as_save_IFS
7849
7850 fi
7851 fi
7852 NMEDIT=$ac_cv_prog_NMEDIT
7853 if test -n "$NMEDIT"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7855 $as_echo "$NMEDIT" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7859 fi
7860
7861
7862 fi
7863 if test -z "$ac_cv_prog_NMEDIT"; then
7864 ac_ct_NMEDIT=$NMEDIT
7865 # Extract the first word of "nmedit", so it can be a program name with args.
7866 set dummy nmedit; ac_word=$2
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868 $as_echo_n "checking for $ac_word... " >&6; }
7869 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 if test -n "$ac_ct_NMEDIT"; then
7873 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7874 else
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7877 do
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7882 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 break 2
7885 fi
7886 done
7887 done
7888 IFS=$as_save_IFS
7889
7890 fi
7891 fi
7892 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7893 if test -n "$ac_ct_NMEDIT"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7895 $as_echo "$ac_ct_NMEDIT" >&6; }
7896 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7899 fi
7900
7901 if test "x$ac_ct_NMEDIT" = x; then
7902 NMEDIT=":"
7903 else
7904 case $cross_compiling:$ac_tool_warned in
7905 yes:)
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7908 ac_tool_warned=yes ;;
7909 esac
7910 NMEDIT=$ac_ct_NMEDIT
7911 fi
7912 else
7913 NMEDIT="$ac_cv_prog_NMEDIT"
7914 fi
7915
7916 if test -n "$ac_tool_prefix"; then
7917 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7918 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if ${ac_cv_prog_LIPO+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 if test -n "$LIPO"; then
7925 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7926 else
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 for as_dir in $PATH
7929 do
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7934 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 break 2
7937 fi
7938 done
7939 done
7940 IFS=$as_save_IFS
7941
7942 fi
7943 fi
7944 LIPO=$ac_cv_prog_LIPO
7945 if test -n "$LIPO"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7947 $as_echo "$LIPO" >&6; }
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7951 fi
7952
7953
7954 fi
7955 if test -z "$ac_cv_prog_LIPO"; then
7956 ac_ct_LIPO=$LIPO
7957 # Extract the first word of "lipo", so it can be a program name with args.
7958 set dummy lipo; ac_word=$2
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 $as_echo_n "checking for $ac_word... " >&6; }
7961 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 if test -n "$ac_ct_LIPO"; then
7965 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7966 else
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7969 do
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7974 ac_cv_prog_ac_ct_LIPO="lipo"
7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 break 2
7977 fi
7978 done
7979 done
7980 IFS=$as_save_IFS
7981
7982 fi
7983 fi
7984 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7985 if test -n "$ac_ct_LIPO"; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7987 $as_echo "$ac_ct_LIPO" >&6; }
7988 else
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7991 fi
7992
7993 if test "x$ac_ct_LIPO" = x; then
7994 LIPO=":"
7995 else
7996 case $cross_compiling:$ac_tool_warned in
7997 yes:)
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8000 ac_tool_warned=yes ;;
8001 esac
8002 LIPO=$ac_ct_LIPO
8003 fi
8004 else
8005 LIPO="$ac_cv_prog_LIPO"
8006 fi
8007
8008 if test -n "$ac_tool_prefix"; then
8009 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8010 set dummy ${ac_tool_prefix}otool; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_prog_OTOOL+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 if test -n "$OTOOL"; then
8017 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8026 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 break 2
8029 fi
8030 done
8031 done
8032 IFS=$as_save_IFS
8033
8034 fi
8035 fi
8036 OTOOL=$ac_cv_prog_OTOOL
8037 if test -n "$OTOOL"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8039 $as_echo "$OTOOL" >&6; }
8040 else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 fi
8044
8045
8046 fi
8047 if test -z "$ac_cv_prog_OTOOL"; then
8048 ac_ct_OTOOL=$OTOOL
8049 # Extract the first word of "otool", so it can be a program name with args.
8050 set dummy otool; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 if test -n "$ac_ct_OTOOL"; then
8057 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066 ac_cv_prog_ac_ct_OTOOL="otool"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8069 fi
8070 done
8071 done
8072 IFS=$as_save_IFS
8073
8074 fi
8075 fi
8076 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8077 if test -n "$ac_ct_OTOOL"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8079 $as_echo "$ac_ct_OTOOL" >&6; }
8080 else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8083 fi
8084
8085 if test "x$ac_ct_OTOOL" = x; then
8086 OTOOL=":"
8087 else
8088 case $cross_compiling:$ac_tool_warned in
8089 yes:)
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8092 ac_tool_warned=yes ;;
8093 esac
8094 OTOOL=$ac_ct_OTOOL
8095 fi
8096 else
8097 OTOOL="$ac_cv_prog_OTOOL"
8098 fi
8099
8100 if test -n "$ac_tool_prefix"; then
8101 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8102 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 $as_echo_n "checking for $ac_word... " >&6; }
8105 if ${ac_cv_prog_OTOOL64+:} false; then :
8106 $as_echo_n "(cached) " >&6
8107 else
8108 if test -n "$OTOOL64"; then
8109 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8110 else
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8113 do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8121 fi
8122 done
8123 done
8124 IFS=$as_save_IFS
8125
8126 fi
8127 fi
8128 OTOOL64=$ac_cv_prog_OTOOL64
8129 if test -n "$OTOOL64"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8131 $as_echo "$OTOOL64" >&6; }
8132 else
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8135 fi
8136
8137
8138 fi
8139 if test -z "$ac_cv_prog_OTOOL64"; then
8140 ac_ct_OTOOL64=$OTOOL64
8141 # Extract the first word of "otool64", so it can be a program name with args.
8142 set dummy otool64; ac_word=$2
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144 $as_echo_n "checking for $ac_word... " >&6; }
8145 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 if test -n "$ac_ct_OTOOL64"; then
8149 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8150 else
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 for as_dir in $PATH
8153 do
8154 IFS=$as_save_IFS
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8158 ac_cv_prog_ac_ct_OTOOL64="otool64"
8159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 break 2
8161 fi
8162 done
8163 done
8164 IFS=$as_save_IFS
8165
8166 fi
8167 fi
8168 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8169 if test -n "$ac_ct_OTOOL64"; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8171 $as_echo "$ac_ct_OTOOL64" >&6; }
8172 else
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174 $as_echo "no" >&6; }
8175 fi
8176
8177 if test "x$ac_ct_OTOOL64" = x; then
8178 OTOOL64=":"
8179 else
8180 case $cross_compiling:$ac_tool_warned in
8181 yes:)
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8184 ac_tool_warned=yes ;;
8185 esac
8186 OTOOL64=$ac_ct_OTOOL64
8187 fi
8188 else
8189 OTOOL64="$ac_cv_prog_OTOOL64"
8190 fi
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8219 $as_echo_n "checking for -single_module linker flag... " >&6; }
8220 if ${lt_cv_apple_cc_single_mod+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 lt_cv_apple_cc_single_mod=no
8224 if test -z "$LT_MULTI_MODULE"; then
8225 # By default we will add the -single_module flag. You can override
8226 # by either setting the environment variable LT_MULTI_MODULE
8227 # non-empty at configure time, or by adding -multi_module to the
8228 # link flags.
8229 rm -rf libconftest.dylib*
8230 echo "int foo(void){return 1;}" > conftest.c
8231 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8232 -dynamiclib -Wl,-single_module conftest.c" >&5
8233 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8234 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8235 _lt_result=$?
8236 # If there is a non-empty error log, and "single_module"
8237 # appears in it, assume the flag caused a linker warning
8238 if test -s conftest.err && $GREP single_module conftest.err; then
8239 cat conftest.err >&5
8240 # Otherwise, if the output was created with a 0 exit code from
8241 # the compiler, it worked.
8242 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8243 lt_cv_apple_cc_single_mod=yes
8244 else
8245 cat conftest.err >&5
8246 fi
8247 rm -rf libconftest.dylib*
8248 rm -f conftest.*
8249 fi
8250 fi
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8252 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8253
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8255 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8256 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 lt_cv_ld_exported_symbols_list=no
8260 save_LDFLAGS=$LDFLAGS
8261 echo "_main" > conftest.sym
8262 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8265
8266 int
8267 main ()
8268 {
8269
8270 ;
8271 return 0;
8272 }
8273 _ACEOF
8274 if ac_fn_c_try_link "$LINENO"; then :
8275 lt_cv_ld_exported_symbols_list=yes
8276 else
8277 lt_cv_ld_exported_symbols_list=no
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext \
8280 conftest$ac_exeext conftest.$ac_ext
8281 LDFLAGS=$save_LDFLAGS
8282
8283 fi
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8285 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8286
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8288 $as_echo_n "checking for -force_load linker flag... " >&6; }
8289 if ${lt_cv_ld_force_load+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 lt_cv_ld_force_load=no
8293 cat > conftest.c << _LT_EOF
8294 int forced_loaded() { return 2;}
8295 _LT_EOF
8296 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8297 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8298 echo "$AR cru libconftest.a conftest.o" >&5
8299 $AR cru libconftest.a conftest.o 2>&5
8300 echo "$RANLIB libconftest.a" >&5
8301 $RANLIB libconftest.a 2>&5
8302 cat > conftest.c << _LT_EOF
8303 int main() { return 0;}
8304 _LT_EOF
8305 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8306 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8307 _lt_result=$?
8308 if test -s conftest.err && $GREP force_load conftest.err; then
8309 cat conftest.err >&5
8310 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8311 lt_cv_ld_force_load=yes
8312 else
8313 cat conftest.err >&5
8314 fi
8315 rm -f conftest.err libconftest.a conftest conftest.c
8316 rm -rf conftest.dSYM
8317
8318 fi
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8320 $as_echo "$lt_cv_ld_force_load" >&6; }
8321 case $host_os in
8322 rhapsody* | darwin1.[012])
8323 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8324 darwin1.*)
8325 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8326 darwin*) # darwin 5.x on
8327 # if running on 10.5 or later, the deployment target defaults
8328 # to the OS version, if on x86, and 10.4, the deployment
8329 # target defaults to 10.4. Don't you love it?
8330 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8331 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8332 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8333 10.[012][,.]*)
8334 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8335 10.*)
8336 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8337 esac
8338 ;;
8339 esac
8340 if test yes = "$lt_cv_apple_cc_single_mod"; then
8341 _lt_dar_single_mod='$single_module'
8342 fi
8343 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8344 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8345 else
8346 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8347 fi
8348 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8349 _lt_dsymutil='~$DSYMUTIL $lib || :'
8350 else
8351 _lt_dsymutil=
8352 fi
8353 ;;
8354 esac
8355
8356 # func_munge_path_list VARIABLE PATH
8357 # -----------------------------------
8358 # VARIABLE is name of variable containing _space_ separated list of
8359 # directories to be munged by the contents of PATH, which is string
8360 # having a format:
8361 # "DIR[:DIR]:"
8362 # string "DIR[ DIR]" will be prepended to VARIABLE
8363 # ":DIR[:DIR]"
8364 # string "DIR[ DIR]" will be appended to VARIABLE
8365 # "DIRP[:DIRP]::[DIRA:]DIRA"
8366 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8367 # "DIRA[ DIRA]" will be appended to VARIABLE
8368 # "DIR[:DIR]"
8369 # VARIABLE will be replaced by "DIR[ DIR]"
8370 func_munge_path_list ()
8371 {
8372 case x$2 in
8373 x)
8374 ;;
8375 *:)
8376 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8377 ;;
8378 x:*)
8379 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8380 ;;
8381 *::*)
8382 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8383 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8384 ;;
8385 *)
8386 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8387 ;;
8388 esac
8389 }
8390
8391 ac_ext=c
8392 ac_cpp='$CPP $CPPFLAGS'
8393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8397 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8398 # On Suns, sometimes $CPP names a directory.
8399 if test -n "$CPP" && test -d "$CPP"; then
8400 CPP=
8401 fi
8402 if test -z "$CPP"; then
8403 if ${ac_cv_prog_CPP+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 # Double quotes because CPP needs to be expanded
8407 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8408 do
8409 ac_preproc_ok=false
8410 for ac_c_preproc_warn_flag in '' yes
8411 do
8412 # Use a header file that comes with gcc, so configuring glibc
8413 # with a fresh cross-compiler works.
8414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8415 # <limits.h> exists even on freestanding compilers.
8416 # On the NeXT, cc -E runs the code through the compiler's parser,
8417 # not just through cpp. "Syntax error" is here to catch this case.
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8420 #ifdef __STDC__
8421 # include <limits.h>
8422 #else
8423 # include <assert.h>
8424 #endif
8425 Syntax error
8426 _ACEOF
8427 if ac_fn_c_try_cpp "$LINENO"; then :
8428
8429 else
8430 # Broken: fails on valid input.
8431 continue
8432 fi
8433 rm -f conftest.err conftest.i conftest.$ac_ext
8434
8435 # OK, works on sane cases. Now check whether nonexistent headers
8436 # can be detected and how.
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 #include <ac_nonexistent.h>
8440 _ACEOF
8441 if ac_fn_c_try_cpp "$LINENO"; then :
8442 # Broken: success on invalid input.
8443 continue
8444 else
8445 # Passes both tests.
8446 ac_preproc_ok=:
8447 break
8448 fi
8449 rm -f conftest.err conftest.i conftest.$ac_ext
8450
8451 done
8452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8453 rm -f conftest.i conftest.err conftest.$ac_ext
8454 if $ac_preproc_ok; then :
8455 break
8456 fi
8457
8458 done
8459 ac_cv_prog_CPP=$CPP
8460
8461 fi
8462 CPP=$ac_cv_prog_CPP
8463 else
8464 ac_cv_prog_CPP=$CPP
8465 fi
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8467 $as_echo "$CPP" >&6; }
8468 ac_preproc_ok=false
8469 for ac_c_preproc_warn_flag in '' yes
8470 do
8471 # Use a header file that comes with gcc, so configuring glibc
8472 # with a fresh cross-compiler works.
8473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8474 # <limits.h> exists even on freestanding compilers.
8475 # On the NeXT, cc -E runs the code through the compiler's parser,
8476 # not just through cpp. "Syntax error" is here to catch this case.
8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8479 #ifdef __STDC__
8480 # include <limits.h>
8481 #else
8482 # include <assert.h>
8483 #endif
8484 Syntax error
8485 _ACEOF
8486 if ac_fn_c_try_cpp "$LINENO"; then :
8487
8488 else
8489 # Broken: fails on valid input.
8490 continue
8491 fi
8492 rm -f conftest.err conftest.i conftest.$ac_ext
8493
8494 # OK, works on sane cases. Now check whether nonexistent headers
8495 # can be detected and how.
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 #include <ac_nonexistent.h>
8499 _ACEOF
8500 if ac_fn_c_try_cpp "$LINENO"; then :
8501 # Broken: success on invalid input.
8502 continue
8503 else
8504 # Passes both tests.
8505 ac_preproc_ok=:
8506 break
8507 fi
8508 rm -f conftest.err conftest.i conftest.$ac_ext
8509
8510 done
8511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8512 rm -f conftest.i conftest.err conftest.$ac_ext
8513 if $ac_preproc_ok; then :
8514
8515 else
8516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8518 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8519 See \`config.log' for more details" "$LINENO" 5; }
8520 fi
8521
8522 ac_ext=c
8523 ac_cpp='$CPP $CPPFLAGS'
8524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8527
8528
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8530 $as_echo_n "checking for ANSI C header files... " >&6; }
8531 if ${ac_cv_header_stdc+:} false; then :
8532 $as_echo_n "(cached) " >&6
8533 else
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8536 #include <stdlib.h>
8537 #include <stdarg.h>
8538 #include <string.h>
8539 #include <float.h>
8540
8541 int
8542 main ()
8543 {
8544
8545 ;
8546 return 0;
8547 }
8548 _ACEOF
8549 if ac_fn_c_try_compile "$LINENO"; then :
8550 ac_cv_header_stdc=yes
8551 else
8552 ac_cv_header_stdc=no
8553 fi
8554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8555
8556 if test $ac_cv_header_stdc = yes; then
8557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 #include <string.h>
8561
8562 _ACEOF
8563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8564 $EGREP "memchr" >/dev/null 2>&1; then :
8565
8566 else
8567 ac_cv_header_stdc=no
8568 fi
8569 rm -f conftest*
8570
8571 fi
8572
8573 if test $ac_cv_header_stdc = yes; then
8574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 #include <stdlib.h>
8578
8579 _ACEOF
8580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8581 $EGREP "free" >/dev/null 2>&1; then :
8582
8583 else
8584 ac_cv_header_stdc=no
8585 fi
8586 rm -f conftest*
8587
8588 fi
8589
8590 if test $ac_cv_header_stdc = yes; then
8591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8592 if test "$cross_compiling" = yes; then :
8593 :
8594 else
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 #include <ctype.h>
8598 #include <stdlib.h>
8599 #if ((' ' & 0x0FF) == 0x020)
8600 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8601 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8602 #else
8603 # define ISLOWER(c) \
8604 (('a' <= (c) && (c) <= 'i') \
8605 || ('j' <= (c) && (c) <= 'r') \
8606 || ('s' <= (c) && (c) <= 'z'))
8607 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8608 #endif
8609
8610 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8611 int
8612 main ()
8613 {
8614 int i;
8615 for (i = 0; i < 256; i++)
8616 if (XOR (islower (i), ISLOWER (i))
8617 || toupper (i) != TOUPPER (i))
8618 return 2;
8619 return 0;
8620 }
8621 _ACEOF
8622 if ac_fn_c_try_run "$LINENO"; then :
8623
8624 else
8625 ac_cv_header_stdc=no
8626 fi
8627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8628 conftest.$ac_objext conftest.beam conftest.$ac_ext
8629 fi
8630
8631 fi
8632 fi
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8634 $as_echo "$ac_cv_header_stdc" >&6; }
8635 if test $ac_cv_header_stdc = yes; then
8636
8637 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8638
8639 fi
8640
8641 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8642 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8643 inttypes.h stdint.h unistd.h
8644 do :
8645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8646 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8647 "
8648 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8649 cat >>confdefs.h <<_ACEOF
8650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8651 _ACEOF
8652
8653 fi
8654
8655 done
8656
8657
8658 for ac_header in dlfcn.h
8659 do :
8660 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8661 "
8662 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8663 cat >>confdefs.h <<_ACEOF
8664 #define HAVE_DLFCN_H 1
8665 _ACEOF
8666
8667 fi
8668
8669 done
8670
8671
8672
8673
8674
8675 # Set options
8676
8677
8678
8679 enable_dlopen=no
8680
8681
8682
8683 # Check whether --enable-shared was given.
8684 if test "${enable_shared+set}" = set; then :
8685 enableval=$enable_shared; p=${PACKAGE-default}
8686 case $enableval in
8687 yes) enable_shared=yes ;;
8688 no) enable_shared=no ;;
8689 *)
8690 enable_shared=no
8691 # Look at the argument we got. We use all the common list separators.
8692 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8693 for pkg in $enableval; do
8694 IFS=$lt_save_ifs
8695 if test "X$pkg" = "X$p"; then
8696 enable_shared=yes
8697 fi
8698 done
8699 IFS=$lt_save_ifs
8700 ;;
8701 esac
8702 else
8703 enable_shared=yes
8704 fi
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714 # Check whether --enable-static was given.
8715 if test "${enable_static+set}" = set; then :
8716 enableval=$enable_static; p=${PACKAGE-default}
8717 case $enableval in
8718 yes) enable_static=yes ;;
8719 no) enable_static=no ;;
8720 *)
8721 enable_static=no
8722 # Look at the argument we got. We use all the common list separators.
8723 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8724 for pkg in $enableval; do
8725 IFS=$lt_save_ifs
8726 if test "X$pkg" = "X$p"; then
8727 enable_static=yes
8728 fi
8729 done
8730 IFS=$lt_save_ifs
8731 ;;
8732 esac
8733 else
8734 enable_static=yes
8735 fi
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746 # Check whether --with-pic was given.
8747 if test "${with_pic+set}" = set; then :
8748 withval=$with_pic; lt_p=${PACKAGE-default}
8749 case $withval in
8750 yes|no) pic_mode=$withval ;;
8751 *)
8752 pic_mode=default
8753 # Look at the argument we got. We use all the common list separators.
8754 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8755 for lt_pkg in $withval; do
8756 IFS=$lt_save_ifs
8757 if test "X$lt_pkg" = "X$lt_p"; then
8758 pic_mode=yes
8759 fi
8760 done
8761 IFS=$lt_save_ifs
8762 ;;
8763 esac
8764 else
8765 pic_mode=default
8766 fi
8767
8768
8769
8770
8771
8772
8773
8774
8775 # Check whether --enable-fast-install was given.
8776 if test "${enable_fast_install+set}" = set; then :
8777 enableval=$enable_fast_install; p=${PACKAGE-default}
8778 case $enableval in
8779 yes) enable_fast_install=yes ;;
8780 no) enable_fast_install=no ;;
8781 *)
8782 enable_fast_install=no
8783 # Look at the argument we got. We use all the common list separators.
8784 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8785 for pkg in $enableval; do
8786 IFS=$lt_save_ifs
8787 if test "X$pkg" = "X$p"; then
8788 enable_fast_install=yes
8789 fi
8790 done
8791 IFS=$lt_save_ifs
8792 ;;
8793 esac
8794 else
8795 enable_fast_install=yes
8796 fi
8797
8798
8799
8800
8801
8802
8803
8804
8805 shared_archive_member_spec=
8806 case $host,$enable_shared in
8807 power*-*-aix[5-9]*,yes)
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8809 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8810
8811 # Check whether --with-aix-soname was given.
8812 if test "${with_aix_soname+set}" = set; then :
8813 withval=$with_aix_soname; case $withval in
8814 aix|svr4|both)
8815 ;;
8816 *)
8817 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8818 ;;
8819 esac
8820 lt_cv_with_aix_soname=$with_aix_soname
8821 else
8822 if ${lt_cv_with_aix_soname+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 lt_cv_with_aix_soname=aix
8826 fi
8827
8828 with_aix_soname=$lt_cv_with_aix_soname
8829 fi
8830
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8832 $as_echo "$with_aix_soname" >&6; }
8833 if test aix != "$with_aix_soname"; then
8834 # For the AIX way of multilib, we name the shared archive member
8835 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8836 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8837 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8838 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8839 if test 64 = "${OBJECT_MODE-32}"; then
8840 shared_archive_member_spec=shr_64
8841 else
8842 shared_archive_member_spec=shr
8843 fi
8844 fi
8845 ;;
8846 *)
8847 with_aix_soname=aix
8848 ;;
8849 esac
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860 # This can be used to rebuild libtool when needed
8861 LIBTOOL_DEPS=$ltmain
8862
8863 # Always use our own libtool.
8864 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895 test -z "$LN_S" && LN_S="ln -s"
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910 if test -n "${ZSH_VERSION+set}"; then
8911 setopt NO_GLOB_SUBST
8912 fi
8913
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8915 $as_echo_n "checking for objdir... " >&6; }
8916 if ${lt_cv_objdir+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 rm -f .libs 2>/dev/null
8920 mkdir .libs 2>/dev/null
8921 if test -d .libs; then
8922 lt_cv_objdir=.libs
8923 else
8924 # MS-DOS does not allow filenames that begin with a dot.
8925 lt_cv_objdir=_libs
8926 fi
8927 rmdir .libs 2>/dev/null
8928 fi
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8930 $as_echo "$lt_cv_objdir" >&6; }
8931 objdir=$lt_cv_objdir
8932
8933
8934
8935
8936
8937 cat >>confdefs.h <<_ACEOF
8938 #define LT_OBJDIR "$lt_cv_objdir/"
8939 _ACEOF
8940
8941
8942
8943
8944 case $host_os in
8945 aix3*)
8946 # AIX sometimes has problems with the GCC collect2 program. For some
8947 # reason, if we set the COLLECT_NAMES environment variable, the problems
8948 # vanish in a puff of smoke.
8949 if test set != "${COLLECT_NAMES+set}"; then
8950 COLLECT_NAMES=
8951 export COLLECT_NAMES
8952 fi
8953 ;;
8954 esac
8955
8956 # Global variables:
8957 ofile=libtool
8958 can_build_shared=yes
8959
8960 # All known linkers require a '.a' archive for static linking (except MSVC,
8961 # which needs '.lib').
8962 libext=a
8963
8964 with_gnu_ld=$lt_cv_prog_gnu_ld
8965
8966 old_CC=$CC
8967 old_CFLAGS=$CFLAGS
8968
8969 # Set sane defaults for various variables
8970 test -z "$CC" && CC=cc
8971 test -z "$LTCC" && LTCC=$CC
8972 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8973 test -z "$LD" && LD=ld
8974 test -z "$ac_objext" && ac_objext=o
8975
8976 func_cc_basename $compiler
8977 cc_basename=$func_cc_basename_result
8978
8979
8980 # Only perform the check for file, if the check method requires it
8981 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8982 case $deplibs_check_method in
8983 file_magic*)
8984 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8986 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8987 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8988 $as_echo_n "(cached) " >&6
8989 else
8990 case $MAGIC_CMD in
8991 [\\/*] | ?:[\\/]*)
8992 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8993 ;;
8994 *)
8995 lt_save_MAGIC_CMD=$MAGIC_CMD
8996 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8997 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8998 for ac_dir in $ac_dummy; do
8999 IFS=$lt_save_ifs
9000 test -z "$ac_dir" && ac_dir=.
9001 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9002 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9003 if test -n "$file_magic_test_file"; then
9004 case $deplibs_check_method in
9005 "file_magic "*)
9006 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9007 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9008 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9009 $EGREP "$file_magic_regex" > /dev/null; then
9010 :
9011 else
9012 cat <<_LT_EOF 1>&2
9013
9014 *** Warning: the command libtool uses to detect shared libraries,
9015 *** $file_magic_cmd, produces output that libtool cannot recognize.
9016 *** The result is that libtool may fail to recognize shared libraries
9017 *** as such. This will affect the creation of libtool libraries that
9018 *** depend on shared libraries, but programs linked with such libtool
9019 *** libraries will work regardless of this problem. Nevertheless, you
9020 *** may want to report the problem to your system manager and/or to
9021 *** [email protected]
9022
9023 _LT_EOF
9024 fi ;;
9025 esac
9026 fi
9027 break
9028 fi
9029 done
9030 IFS=$lt_save_ifs
9031 MAGIC_CMD=$lt_save_MAGIC_CMD
9032 ;;
9033 esac
9034 fi
9035
9036 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9037 if test -n "$MAGIC_CMD"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9039 $as_echo "$MAGIC_CMD" >&6; }
9040 else
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9043 fi
9044
9045
9046
9047
9048
9049 if test -z "$lt_cv_path_MAGIC_CMD"; then
9050 if test -n "$ac_tool_prefix"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9052 $as_echo_n "checking for file... " >&6; }
9053 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 case $MAGIC_CMD in
9057 [\\/*] | ?:[\\/]*)
9058 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9059 ;;
9060 *)
9061 lt_save_MAGIC_CMD=$MAGIC_CMD
9062 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9063 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9064 for ac_dir in $ac_dummy; do
9065 IFS=$lt_save_ifs
9066 test -z "$ac_dir" && ac_dir=.
9067 if test -f "$ac_dir/file"; then
9068 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9069 if test -n "$file_magic_test_file"; then
9070 case $deplibs_check_method in
9071 "file_magic "*)
9072 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9073 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9074 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9075 $EGREP "$file_magic_regex" > /dev/null; then
9076 :
9077 else
9078 cat <<_LT_EOF 1>&2
9079
9080 *** Warning: the command libtool uses to detect shared libraries,
9081 *** $file_magic_cmd, produces output that libtool cannot recognize.
9082 *** The result is that libtool may fail to recognize shared libraries
9083 *** as such. This will affect the creation of libtool libraries that
9084 *** depend on shared libraries, but programs linked with such libtool
9085 *** libraries will work regardless of this problem. Nevertheless, you
9086 *** may want to report the problem to your system manager and/or to
9087 *** [email protected]
9088
9089 _LT_EOF
9090 fi ;;
9091 esac
9092 fi
9093 break
9094 fi
9095 done
9096 IFS=$lt_save_ifs
9097 MAGIC_CMD=$lt_save_MAGIC_CMD
9098 ;;
9099 esac
9100 fi
9101
9102 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9103 if test -n "$MAGIC_CMD"; then
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9105 $as_echo "$MAGIC_CMD" >&6; }
9106 else
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108 $as_echo "no" >&6; }
9109 fi
9110
9111
9112 else
9113 MAGIC_CMD=:
9114 fi
9115 fi
9116
9117 fi
9118 ;;
9119 esac
9120
9121 # Use C for the default configuration in the libtool script
9122
9123 lt_save_CC=$CC
9124 ac_ext=c
9125 ac_cpp='$CPP $CPPFLAGS'
9126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9129
9130
9131 # Source file extension for C test sources.
9132 ac_ext=c
9133
9134 # Object file extension for compiled C test sources.
9135 objext=o
9136 objext=$objext
9137
9138 # Code to be used in simple compile tests
9139 lt_simple_compile_test_code="int some_variable = 0;"
9140
9141 # Code to be used in simple link tests
9142 lt_simple_link_test_code='int main(){return(0);}'
9143
9144
9145
9146
9147
9148
9149
9150 # If no C compiler was specified, use CC.
9151 LTCC=${LTCC-"$CC"}
9152
9153 # If no C compiler flags were specified, use CFLAGS.
9154 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9155
9156 # Allow CC to be a program name with arguments.
9157 compiler=$CC
9158
9159 # Save the default compiler, since it gets overwritten when the other
9160 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9161 compiler_DEFAULT=$CC
9162
9163 # save warnings/boilerplate of simple test code
9164 ac_outfile=conftest.$ac_objext
9165 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9167 _lt_compiler_boilerplate=`cat conftest.err`
9168 $RM conftest*
9169
9170 ac_outfile=conftest.$ac_objext
9171 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9173 _lt_linker_boilerplate=`cat conftest.err`
9174 $RM -r conftest*
9175
9176
9177 ## CAVEAT EMPTOR:
9178 ## There is no encapsulation within the following macros, do not change
9179 ## the running order or otherwise move them around unless you know exactly
9180 ## what you are doing...
9181 if test -n "$compiler"; then
9182
9183 lt_prog_compiler_no_builtin_flag=
9184
9185 if test yes = "$GCC"; then
9186 case $cc_basename in
9187 nvcc*)
9188 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9189 *)
9190 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9191 esac
9192
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9194 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9195 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 lt_cv_prog_compiler_rtti_exceptions=no
9199 ac_outfile=conftest.$ac_objext
9200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9201 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9202 # Insert the option either (1) after the last *FLAGS variable, or
9203 # (2) before a word containing "conftest.", or (3) at the end.
9204 # Note that $ac_compile itself does not contain backslashes and begins
9205 # with a dollar sign (not a hyphen), so the echo should work correctly.
9206 # The option is referenced via a variable to avoid confusing sed.
9207 lt_compile=`echo "$ac_compile" | $SED \
9208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9210 -e 's:$: $lt_compiler_flag:'`
9211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9212 (eval "$lt_compile" 2>conftest.err)
9213 ac_status=$?
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 if (exit $ac_status) && test -s "$ac_outfile"; then
9217 # The compiler can only warn and ignore the option if not recognized
9218 # So say no if there are warnings other than the usual output.
9219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9222 lt_cv_prog_compiler_rtti_exceptions=yes
9223 fi
9224 fi
9225 $RM conftest*
9226
9227 fi
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9229 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9230
9231 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9232 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9233 else
9234 :
9235 fi
9236
9237 fi
9238
9239
9240
9241
9242
9243
9244 lt_prog_compiler_wl=
9245 lt_prog_compiler_pic=
9246 lt_prog_compiler_static=
9247
9248
9249 if test yes = "$GCC"; then
9250 lt_prog_compiler_wl='-Wl,'
9251 lt_prog_compiler_static='-static'
9252
9253 case $host_os in
9254 aix*)
9255 # All AIX code is PIC.
9256 if test ia64 = "$host_cpu"; then
9257 # AIX 5 now supports IA64 processor
9258 lt_prog_compiler_static='-Bstatic'
9259 fi
9260 lt_prog_compiler_pic='-fPIC'
9261 ;;
9262
9263 amigaos*)
9264 case $host_cpu in
9265 powerpc)
9266 # see comment about AmigaOS4 .so support
9267 lt_prog_compiler_pic='-fPIC'
9268 ;;
9269 m68k)
9270 # FIXME: we need at least 68020 code to build shared libraries, but
9271 # adding the '-m68020' flag to GCC prevents building anything better,
9272 # like '-m68040'.
9273 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9274 ;;
9275 esac
9276 ;;
9277
9278 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9279 # PIC is the default for these OSes.
9280 ;;
9281
9282 mingw* | cygwin* | pw32* | os2* | cegcc*)
9283 # This hack is so that the source file can tell whether it is being
9284 # built for inclusion in a dll (and should export symbols for example).
9285 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9286 # (--disable-auto-import) libraries
9287 lt_prog_compiler_pic='-DDLL_EXPORT'
9288 case $host_os in
9289 os2*)
9290 lt_prog_compiler_static='$wl-static'
9291 ;;
9292 esac
9293 ;;
9294
9295 darwin* | rhapsody*)
9296 # PIC is the default on this platform
9297 # Common symbols not allowed in MH_DYLIB files
9298 lt_prog_compiler_pic='-fno-common'
9299 ;;
9300
9301 haiku*)
9302 # PIC is the default for Haiku.
9303 # The "-static" flag exists, but is broken.
9304 lt_prog_compiler_static=
9305 ;;
9306
9307 hpux*)
9308 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9309 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9310 # sets the default TLS model and affects inlining.
9311 case $host_cpu in
9312 hppa*64*)
9313 # +Z the default
9314 ;;
9315 *)
9316 lt_prog_compiler_pic='-fPIC'
9317 ;;
9318 esac
9319 ;;
9320
9321 interix[3-9]*)
9322 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9323 # Instead, we relocate shared libraries at runtime.
9324 ;;
9325
9326 msdosdjgpp*)
9327 # Just because we use GCC doesn't mean we suddenly get shared libraries
9328 # on systems that don't support them.
9329 lt_prog_compiler_can_build_shared=no
9330 enable_shared=no
9331 ;;
9332
9333 *nto* | *qnx*)
9334 # QNX uses GNU C++, but need to define -shared option too, otherwise
9335 # it will coredump.
9336 lt_prog_compiler_pic='-fPIC -shared'
9337 ;;
9338
9339 sysv4*MP*)
9340 if test -d /usr/nec; then
9341 lt_prog_compiler_pic=-Kconform_pic
9342 fi
9343 ;;
9344
9345 *)
9346 lt_prog_compiler_pic='-fPIC'
9347 ;;
9348 esac
9349
9350 case $cc_basename in
9351 nvcc*) # Cuda Compiler Driver 2.2
9352 lt_prog_compiler_wl='-Xlinker '
9353 if test -n "$lt_prog_compiler_pic"; then
9354 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9355 fi
9356 ;;
9357 esac
9358 else
9359 # PORTME Check for flag to pass linker flags through the system compiler.
9360 case $host_os in
9361 aix*)
9362 lt_prog_compiler_wl='-Wl,'
9363 if test ia64 = "$host_cpu"; then
9364 # AIX 5 now supports IA64 processor
9365 lt_prog_compiler_static='-Bstatic'
9366 else
9367 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9368 fi
9369 ;;
9370
9371 darwin* | rhapsody*)
9372 # PIC is the default on this platform
9373 # Common symbols not allowed in MH_DYLIB files
9374 lt_prog_compiler_pic='-fno-common'
9375 case $cc_basename in
9376 nagfor*)
9377 # NAG Fortran compiler
9378 lt_prog_compiler_wl='-Wl,-Wl,,'
9379 lt_prog_compiler_pic='-PIC'
9380 lt_prog_compiler_static='-Bstatic'
9381 ;;
9382 esac
9383 ;;
9384
9385 mingw* | cygwin* | pw32* | os2* | cegcc*)
9386 # This hack is so that the source file can tell whether it is being
9387 # built for inclusion in a dll (and should export symbols for example).
9388 lt_prog_compiler_pic='-DDLL_EXPORT'
9389 case $host_os in
9390 os2*)
9391 lt_prog_compiler_static='$wl-static'
9392 ;;
9393 esac
9394 ;;
9395
9396 hpux9* | hpux10* | hpux11*)
9397 lt_prog_compiler_wl='-Wl,'
9398 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9399 # not for PA HP-UX.
9400 case $host_cpu in
9401 hppa*64*|ia64*)
9402 # +Z the default
9403 ;;
9404 *)
9405 lt_prog_compiler_pic='+Z'
9406 ;;
9407 esac
9408 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9409 lt_prog_compiler_static='$wl-a ${wl}archive'
9410 ;;
9411
9412 irix5* | irix6* | nonstopux*)
9413 lt_prog_compiler_wl='-Wl,'
9414 # PIC (with -KPIC) is the default.
9415 lt_prog_compiler_static='-non_shared'
9416 ;;
9417
9418 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9419 case $cc_basename in
9420 # old Intel for x86_64, which still supported -KPIC.
9421 ecc*)
9422 lt_prog_compiler_wl='-Wl,'
9423 lt_prog_compiler_pic='-KPIC'
9424 lt_prog_compiler_static='-static'
9425 ;;
9426 # icc used to be incompatible with GCC.
9427 # ICC 10 doesn't accept -KPIC any more.
9428 icc* | ifort*)
9429 lt_prog_compiler_wl='-Wl,'
9430 lt_prog_compiler_pic='-fPIC'
9431 lt_prog_compiler_static='-static'
9432 ;;
9433 # Lahey Fortran 8.1.
9434 lf95*)
9435 lt_prog_compiler_wl='-Wl,'
9436 lt_prog_compiler_pic='--shared'
9437 lt_prog_compiler_static='--static'
9438 ;;
9439 nagfor*)
9440 # NAG Fortran compiler
9441 lt_prog_compiler_wl='-Wl,-Wl,,'
9442 lt_prog_compiler_pic='-PIC'
9443 lt_prog_compiler_static='-Bstatic'
9444 ;;
9445 tcc*)
9446 # Fabrice Bellard et al's Tiny C Compiler
9447 lt_prog_compiler_wl='-Wl,'
9448 lt_prog_compiler_pic='-fPIC'
9449 lt_prog_compiler_static='-static'
9450 ;;
9451 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9452 # Portland Group compilers (*not* the Pentium gcc compiler,
9453 # which looks to be a dead project)
9454 lt_prog_compiler_wl='-Wl,'
9455 lt_prog_compiler_pic='-fpic'
9456 lt_prog_compiler_static='-Bstatic'
9457 ;;
9458 ccc*)
9459 lt_prog_compiler_wl='-Wl,'
9460 # All Alpha code is PIC.
9461 lt_prog_compiler_static='-non_shared'
9462 ;;
9463 xl* | bgxl* | bgf* | mpixl*)
9464 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9465 lt_prog_compiler_wl='-Wl,'
9466 lt_prog_compiler_pic='-qpic'
9467 lt_prog_compiler_static='-qstaticlink'
9468 ;;
9469 *)
9470 case `$CC -V 2>&1 | sed 5q` in
9471 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9472 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9473 lt_prog_compiler_pic='-KPIC'
9474 lt_prog_compiler_static='-Bstatic'
9475 lt_prog_compiler_wl=''
9476 ;;
9477 *Sun\ F* | *Sun*Fortran*)
9478 lt_prog_compiler_pic='-KPIC'
9479 lt_prog_compiler_static='-Bstatic'
9480 lt_prog_compiler_wl='-Qoption ld '
9481 ;;
9482 *Sun\ C*)
9483 # Sun C 5.9
9484 lt_prog_compiler_pic='-KPIC'
9485 lt_prog_compiler_static='-Bstatic'
9486 lt_prog_compiler_wl='-Wl,'
9487 ;;
9488 *Intel*\ [CF]*Compiler*)
9489 lt_prog_compiler_wl='-Wl,'
9490 lt_prog_compiler_pic='-fPIC'
9491 lt_prog_compiler_static='-static'
9492 ;;
9493 *Portland\ Group*)
9494 lt_prog_compiler_wl='-Wl,'
9495 lt_prog_compiler_pic='-fpic'
9496 lt_prog_compiler_static='-Bstatic'
9497 ;;
9498 esac
9499 ;;
9500 esac
9501 ;;
9502
9503 newsos6)
9504 lt_prog_compiler_pic='-KPIC'
9505 lt_prog_compiler_static='-Bstatic'
9506 ;;
9507
9508 *nto* | *qnx*)
9509 # QNX uses GNU C++, but need to define -shared option too, otherwise
9510 # it will coredump.
9511 lt_prog_compiler_pic='-fPIC -shared'
9512 ;;
9513
9514 osf3* | osf4* | osf5*)
9515 lt_prog_compiler_wl='-Wl,'
9516 # All OSF/1 code is PIC.
9517 lt_prog_compiler_static='-non_shared'
9518 ;;
9519
9520 rdos*)
9521 lt_prog_compiler_static='-non_shared'
9522 ;;
9523
9524 solaris*)
9525 lt_prog_compiler_pic='-KPIC'
9526 lt_prog_compiler_static='-Bstatic'
9527 case $cc_basename in
9528 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9529 lt_prog_compiler_wl='-Qoption ld ';;
9530 *)
9531 lt_prog_compiler_wl='-Wl,';;
9532 esac
9533 ;;
9534
9535 sunos4*)
9536 lt_prog_compiler_wl='-Qoption ld '
9537 lt_prog_compiler_pic='-PIC'
9538 lt_prog_compiler_static='-Bstatic'
9539 ;;
9540
9541 sysv4 | sysv4.2uw2* | sysv4.3*)
9542 lt_prog_compiler_wl='-Wl,'
9543 lt_prog_compiler_pic='-KPIC'
9544 lt_prog_compiler_static='-Bstatic'
9545 ;;
9546
9547 sysv4*MP*)
9548 if test -d /usr/nec; then
9549 lt_prog_compiler_pic='-Kconform_pic'
9550 lt_prog_compiler_static='-Bstatic'
9551 fi
9552 ;;
9553
9554 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9555 lt_prog_compiler_wl='-Wl,'
9556 lt_prog_compiler_pic='-KPIC'
9557 lt_prog_compiler_static='-Bstatic'
9558 ;;
9559
9560 unicos*)
9561 lt_prog_compiler_wl='-Wl,'
9562 lt_prog_compiler_can_build_shared=no
9563 ;;
9564
9565 uts4*)
9566 lt_prog_compiler_pic='-pic'
9567 lt_prog_compiler_static='-Bstatic'
9568 ;;
9569
9570 *)
9571 lt_prog_compiler_can_build_shared=no
9572 ;;
9573 esac
9574 fi
9575
9576 case $host_os in
9577 # For platforms that do not support PIC, -DPIC is meaningless:
9578 *djgpp*)
9579 lt_prog_compiler_pic=
9580 ;;
9581 *)
9582 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9583 ;;
9584 esac
9585
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9587 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9588 if ${lt_cv_prog_compiler_pic+:} false; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9592 fi
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9594 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9595 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9596
9597 #
9598 # Check to make sure the PIC flag actually works.
9599 #
9600 if test -n "$lt_prog_compiler_pic"; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9602 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9603 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 lt_cv_prog_compiler_pic_works=no
9607 ac_outfile=conftest.$ac_objext
9608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9609 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9610 # Insert the option either (1) after the last *FLAGS variable, or
9611 # (2) before a word containing "conftest.", or (3) at the end.
9612 # Note that $ac_compile itself does not contain backslashes and begins
9613 # with a dollar sign (not a hyphen), so the echo should work correctly.
9614 # The option is referenced via a variable to avoid confusing sed.
9615 lt_compile=`echo "$ac_compile" | $SED \
9616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9618 -e 's:$: $lt_compiler_flag:'`
9619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9620 (eval "$lt_compile" 2>conftest.err)
9621 ac_status=$?
9622 cat conftest.err >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 if (exit $ac_status) && test -s "$ac_outfile"; then
9625 # The compiler can only warn and ignore the option if not recognized
9626 # So say no if there are warnings other than the usual output.
9627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9629 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9630 lt_cv_prog_compiler_pic_works=yes
9631 fi
9632 fi
9633 $RM conftest*
9634
9635 fi
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9637 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9638
9639 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9640 case $lt_prog_compiler_pic in
9641 "" | " "*) ;;
9642 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9643 esac
9644 else
9645 lt_prog_compiler_pic=
9646 lt_prog_compiler_can_build_shared=no
9647 fi
9648
9649 fi
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661 #
9662 # Check to make sure the static flag actually works.
9663 #
9664 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9666 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9667 if ${lt_cv_prog_compiler_static_works+:} false; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 lt_cv_prog_compiler_static_works=no
9671 save_LDFLAGS=$LDFLAGS
9672 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9673 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9674 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9675 # The linker can only warn and ignore the option if not recognized
9676 # So say no if there are warnings
9677 if test -s conftest.err; then
9678 # Append any errors to the config.log.
9679 cat conftest.err 1>&5
9680 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9682 if diff conftest.exp conftest.er2 >/dev/null; then
9683 lt_cv_prog_compiler_static_works=yes
9684 fi
9685 else
9686 lt_cv_prog_compiler_static_works=yes
9687 fi
9688 fi
9689 $RM -r conftest*
9690 LDFLAGS=$save_LDFLAGS
9691
9692 fi
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9694 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9695
9696 if test yes = "$lt_cv_prog_compiler_static_works"; then
9697 :
9698 else
9699 lt_prog_compiler_static=
9700 fi
9701
9702
9703
9704
9705
9706
9707
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9709 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9710 if ${lt_cv_prog_compiler_c_o+:} false; then :
9711 $as_echo_n "(cached) " >&6
9712 else
9713 lt_cv_prog_compiler_c_o=no
9714 $RM -r conftest 2>/dev/null
9715 mkdir conftest
9716 cd conftest
9717 mkdir out
9718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9719
9720 lt_compiler_flag="-o out/conftest2.$ac_objext"
9721 # Insert the option either (1) after the last *FLAGS variable, or
9722 # (2) before a word containing "conftest.", or (3) at the end.
9723 # Note that $ac_compile itself does not contain backslashes and begins
9724 # with a dollar sign (not a hyphen), so the echo should work correctly.
9725 lt_compile=`echo "$ac_compile" | $SED \
9726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9728 -e 's:$: $lt_compiler_flag:'`
9729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9730 (eval "$lt_compile" 2>out/conftest.err)
9731 ac_status=$?
9732 cat out/conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9735 then
9736 # The compiler can only warn and ignore the option if not recognized
9737 # So say no if there are warnings
9738 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9739 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9740 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9741 lt_cv_prog_compiler_c_o=yes
9742 fi
9743 fi
9744 chmod u+w . 2>&5
9745 $RM conftest*
9746 # SGI C++ compiler will create directory out/ii_files/ for
9747 # template instantiation
9748 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9749 $RM out/* && rmdir out
9750 cd ..
9751 $RM -r conftest
9752 $RM conftest*
9753
9754 fi
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9756 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9757
9758
9759
9760
9761
9762
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9764 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9765 if ${lt_cv_prog_compiler_c_o+:} false; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 lt_cv_prog_compiler_c_o=no
9769 $RM -r conftest 2>/dev/null
9770 mkdir conftest
9771 cd conftest
9772 mkdir out
9773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9774
9775 lt_compiler_flag="-o out/conftest2.$ac_objext"
9776 # Insert the option either (1) after the last *FLAGS variable, or
9777 # (2) before a word containing "conftest.", or (3) at the end.
9778 # Note that $ac_compile itself does not contain backslashes and begins
9779 # with a dollar sign (not a hyphen), so the echo should work correctly.
9780 lt_compile=`echo "$ac_compile" | $SED \
9781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9783 -e 's:$: $lt_compiler_flag:'`
9784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9785 (eval "$lt_compile" 2>out/conftest.err)
9786 ac_status=$?
9787 cat out/conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9790 then
9791 # The compiler can only warn and ignore the option if not recognized
9792 # So say no if there are warnings
9793 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9794 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9795 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9796 lt_cv_prog_compiler_c_o=yes
9797 fi
9798 fi
9799 chmod u+w . 2>&5
9800 $RM conftest*
9801 # SGI C++ compiler will create directory out/ii_files/ for
9802 # template instantiation
9803 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9804 $RM out/* && rmdir out
9805 cd ..
9806 $RM -r conftest
9807 $RM conftest*
9808
9809 fi
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9811 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9812
9813
9814
9815
9816 hard_links=nottested
9817 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9818 # do not overwrite the value of need_locks provided by the user
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9820 $as_echo_n "checking if we can lock with hard links... " >&6; }
9821 hard_links=yes
9822 $RM conftest*
9823 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9824 touch conftest.a
9825 ln conftest.a conftest.b 2>&5 || hard_links=no
9826 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9828 $as_echo "$hard_links" >&6; }
9829 if test no = "$hard_links"; then
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9831 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9832 need_locks=warn
9833 fi
9834 else
9835 need_locks=no
9836 fi
9837
9838
9839
9840
9841
9842
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9844 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9845
9846 runpath_var=
9847 allow_undefined_flag=
9848 always_export_symbols=no
9849 archive_cmds=
9850 archive_expsym_cmds=
9851 compiler_needs_object=no
9852 enable_shared_with_static_runtimes=no
9853 export_dynamic_flag_spec=
9854 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9855 hardcode_automatic=no
9856 hardcode_direct=no
9857 hardcode_direct_absolute=no
9858 hardcode_libdir_flag_spec=
9859 hardcode_libdir_separator=
9860 hardcode_minus_L=no
9861 hardcode_shlibpath_var=unsupported
9862 inherit_rpath=no
9863 link_all_deplibs=unknown
9864 module_cmds=
9865 module_expsym_cmds=
9866 old_archive_from_new_cmds=
9867 old_archive_from_expsyms_cmds=
9868 thread_safe_flag_spec=
9869 whole_archive_flag_spec=
9870 # include_expsyms should be a list of space-separated symbols to be *always*
9871 # included in the symbol list
9872 include_expsyms=
9873 # exclude_expsyms can be an extended regexp of symbols to exclude
9874 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9875 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9876 # as well as any symbol that contains 'd'.
9877 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9878 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9879 # platforms (ab)use it in PIC code, but their linkers get confused if
9880 # the symbol is explicitly referenced. Since portable code cannot
9881 # rely on this symbol name, it's probably fine to never include it in
9882 # preloaded symbol tables.
9883 # Exclude shared library initialization/finalization symbols.
9884 extract_expsyms_cmds=
9885
9886 case $host_os in
9887 cygwin* | mingw* | pw32* | cegcc*)
9888 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9889 # When not using gcc, we currently assume that we are using
9890 # Microsoft Visual C++.
9891 if test yes != "$GCC"; then
9892 with_gnu_ld=no
9893 fi
9894 ;;
9895 interix*)
9896 # we just hope/assume this is gcc and not c89 (= MSVC++)
9897 with_gnu_ld=yes
9898 ;;
9899 openbsd* | bitrig*)
9900 with_gnu_ld=no
9901 ;;
9902 esac
9903
9904 ld_shlibs=yes
9905
9906 # On some targets, GNU ld is compatible enough with the native linker
9907 # that we're better off using the native interface for both.
9908 lt_use_gnu_ld_interface=no
9909 if test yes = "$with_gnu_ld"; then
9910 case $host_os in
9911 aix*)
9912 # The AIX port of GNU ld has always aspired to compatibility
9913 # with the native linker. However, as the warning in the GNU ld
9914 # block says, versions before 2.19.5* couldn't really create working
9915 # shared libraries, regardless of the interface used.
9916 case `$LD -v 2>&1` in
9917 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9918 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9919 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9920 *)
9921 lt_use_gnu_ld_interface=yes
9922 ;;
9923 esac
9924 ;;
9925 *)
9926 lt_use_gnu_ld_interface=yes
9927 ;;
9928 esac
9929 fi
9930
9931 if test yes = "$lt_use_gnu_ld_interface"; then
9932 # If archive_cmds runs LD, not CC, wlarc should be empty
9933 wlarc='$wl'
9934
9935 # Set some defaults for GNU ld with shared library support. These
9936 # are reset later if shared libraries are not supported. Putting them
9937 # here allows them to be overridden if necessary.
9938 runpath_var=LD_RUN_PATH
9939 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9940 export_dynamic_flag_spec='$wl--export-dynamic'
9941 # ancient GNU ld didn't support --whole-archive et. al.
9942 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9943 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9944 else
9945 whole_archive_flag_spec=
9946 fi
9947 supports_anon_versioning=no
9948 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9949 *GNU\ gold*) supports_anon_versioning=yes ;;
9950 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9951 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9952 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9953 *\ 2.11.*) ;; # other 2.11 versions
9954 *) supports_anon_versioning=yes ;;
9955 esac
9956
9957 # See if GNU ld supports shared libraries.
9958 case $host_os in
9959 aix[3-9]*)
9960 # On AIX/PPC, the GNU linker is very broken
9961 if test ia64 != "$host_cpu"; then
9962 ld_shlibs=no
9963 cat <<_LT_EOF 1>&2
9964
9965 *** Warning: the GNU linker, at least up to release 2.19, is reported
9966 *** to be unable to reliably create shared libraries on AIX.
9967 *** Therefore, libtool is disabling shared libraries support. If you
9968 *** really care for shared libraries, you may want to install binutils
9969 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9970 *** You will then need to restart the configuration process.
9971
9972 _LT_EOF
9973 fi
9974 ;;
9975
9976 amigaos*)
9977 case $host_cpu in
9978 powerpc)
9979 # see comment about AmigaOS4 .so support
9980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9981 archive_expsym_cmds=''
9982 ;;
9983 m68k)
9984 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)'
9985 hardcode_libdir_flag_spec='-L$libdir'
9986 hardcode_minus_L=yes
9987 ;;
9988 esac
9989 ;;
9990
9991 beos*)
9992 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9993 allow_undefined_flag=unsupported
9994 # Joseph Beckenbach <[email protected]> says some releases of gcc
9995 # support --undefined. This deserves some investigation. FIXME
9996 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9997 else
9998 ld_shlibs=no
9999 fi
10000 ;;
10001
10002 cygwin* | mingw* | pw32* | cegcc*)
10003 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10004 # as there is no search path for DLLs.
10005 hardcode_libdir_flag_spec='-L$libdir'
10006 export_dynamic_flag_spec='$wl--export-all-symbols'
10007 allow_undefined_flag=unsupported
10008 always_export_symbols=no
10009 enable_shared_with_static_runtimes=yes
10010 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10011 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10012
10013 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10015 # If the export-symbols file already is a .def file, use it as
10016 # is; otherwise, prepend EXPORTS...
10017 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10018 cp $export_symbols $output_objdir/$soname.def;
10019 else
10020 echo EXPORTS > $output_objdir/$soname.def;
10021 cat $export_symbols >> $output_objdir/$soname.def;
10022 fi~
10023 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10024 else
10025 ld_shlibs=no
10026 fi
10027 ;;
10028
10029 haiku*)
10030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10031 link_all_deplibs=yes
10032 ;;
10033
10034 os2*)
10035 hardcode_libdir_flag_spec='-L$libdir'
10036 hardcode_minus_L=yes
10037 allow_undefined_flag=unsupported
10038 shrext_cmds=.dll
10039 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10040 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10041 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10042 $ECHO EXPORTS >> $output_objdir/$libname.def~
10043 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10044 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10045 emximp -o $lib $output_objdir/$libname.def'
10046 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10047 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10048 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10049 $ECHO EXPORTS >> $output_objdir/$libname.def~
10050 prefix_cmds="$SED"~
10051 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10052 prefix_cmds="$prefix_cmds -e 1d";
10053 fi~
10054 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10055 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10056 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10057 emximp -o $lib $output_objdir/$libname.def'
10058 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10059 enable_shared_with_static_runtimes=yes
10060 ;;
10061
10062 interix[3-9]*)
10063 hardcode_direct=no
10064 hardcode_shlibpath_var=no
10065 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10066 export_dynamic_flag_spec='$wl-E'
10067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10068 # Instead, shared libraries are loaded at an image base (0x10000000 by
10069 # default) and relocated if they conflict, which is a slow very memory
10070 # consuming and fragmenting process. To avoid this, we pick a random,
10071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10072 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10074 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'
10075 ;;
10076
10077 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10078 tmp_diet=no
10079 if test linux-dietlibc = "$host_os"; then
10080 case $cc_basename in
10081 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10082 esac
10083 fi
10084 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10085 && test no = "$tmp_diet"
10086 then
10087 tmp_addflag=' $pic_flag'
10088 tmp_sharedflag='-shared'
10089 case $cc_basename,$host_cpu in
10090 pgcc*) # Portland Group C compiler
10091 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10092 tmp_addflag=' $pic_flag'
10093 ;;
10094 pgf77* | pgf90* | pgf95* | pgfortran*)
10095 # Portland Group f77 and f90 compilers
10096 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10097 tmp_addflag=' $pic_flag -Mnomain' ;;
10098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10099 tmp_addflag=' -i_dynamic' ;;
10100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10101 tmp_addflag=' -i_dynamic -nofor_main' ;;
10102 ifc* | ifort*) # Intel Fortran compiler
10103 tmp_addflag=' -nofor_main' ;;
10104 lf95*) # Lahey Fortran 8.1
10105 whole_archive_flag_spec=
10106 tmp_sharedflag='--shared' ;;
10107 nagfor*) # NAGFOR 5.3
10108 tmp_sharedflag='-Wl,-shared' ;;
10109 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10110 tmp_sharedflag='-qmkshrobj'
10111 tmp_addflag= ;;
10112 nvcc*) # Cuda Compiler Driver 2.2
10113 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10114 compiler_needs_object=yes
10115 ;;
10116 esac
10117 case `$CC -V 2>&1 | sed 5q` in
10118 *Sun\ C*) # Sun C 5.9
10119 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10120 compiler_needs_object=yes
10121 tmp_sharedflag='-G' ;;
10122 *Sun\ F*) # Sun Fortran 8.3
10123 tmp_sharedflag='-G' ;;
10124 esac
10125 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10126
10127 if test yes = "$supports_anon_versioning"; then
10128 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10130 echo "local: *; };" >> $output_objdir/$libname.ver~
10131 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10132 fi
10133
10134 case $cc_basename in
10135 tcc*)
10136 export_dynamic_flag_spec='-rdynamic'
10137 ;;
10138 xlf* | bgf* | bgxlf* | mpixlf*)
10139 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10140 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10141 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10142 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10143 if test yes = "$supports_anon_versioning"; then
10144 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10145 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10146 echo "local: *; };" >> $output_objdir/$libname.ver~
10147 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10148 fi
10149 ;;
10150 esac
10151 else
10152 ld_shlibs=no
10153 fi
10154 ;;
10155
10156 netbsd*)
10157 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10158 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10159 wlarc=
10160 else
10161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10162 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10163 fi
10164 ;;
10165
10166 solaris*)
10167 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10168 ld_shlibs=no
10169 cat <<_LT_EOF 1>&2
10170
10171 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10172 *** create shared libraries on Solaris systems. Therefore, libtool
10173 *** is disabling shared libraries support. We urge you to upgrade GNU
10174 *** binutils to release 2.9.1 or newer. Another option is to modify
10175 *** your PATH or compiler configuration so that the native linker is
10176 *** used, and then restart.
10177
10178 _LT_EOF
10179 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10180 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10181 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10182 else
10183 ld_shlibs=no
10184 fi
10185 ;;
10186
10187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10188 case `$LD -v 2>&1` in
10189 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10190 ld_shlibs=no
10191 cat <<_LT_EOF 1>&2
10192
10193 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10194 *** reliably create shared libraries on SCO systems. Therefore, libtool
10195 *** is disabling shared libraries support. We urge you to upgrade GNU
10196 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10197 *** your PATH or compiler configuration so that the native linker is
10198 *** used, and then restart.
10199
10200 _LT_EOF
10201 ;;
10202 *)
10203 # For security reasons, it is highly recommended that you always
10204 # use absolute paths for naming shared libraries, and exclude the
10205 # DT_RUNPATH tag from executables and libraries. But doing so
10206 # requires that you compile everything twice, which is a pain.
10207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10208 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10210 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10211 else
10212 ld_shlibs=no
10213 fi
10214 ;;
10215 esac
10216 ;;
10217
10218 sunos4*)
10219 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10220 wlarc=
10221 hardcode_direct=yes
10222 hardcode_shlibpath_var=no
10223 ;;
10224
10225 *)
10226 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10227 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10228 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10229 else
10230 ld_shlibs=no
10231 fi
10232 ;;
10233 esac
10234
10235 if test no = "$ld_shlibs"; then
10236 runpath_var=
10237 hardcode_libdir_flag_spec=
10238 export_dynamic_flag_spec=
10239 whole_archive_flag_spec=
10240 fi
10241 else
10242 # PORTME fill in a description of your system's linker (not GNU ld)
10243 case $host_os in
10244 aix3*)
10245 allow_undefined_flag=unsupported
10246 always_export_symbols=yes
10247 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'
10248 # Note: this linker hardcodes the directories in LIBPATH if there
10249 # are no directories specified by -L.
10250 hardcode_minus_L=yes
10251 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10252 # Neither direct hardcoding nor static linking is supported with a
10253 # broken collect2.
10254 hardcode_direct=unsupported
10255 fi
10256 ;;
10257
10258 aix[4-9]*)
10259 if test ia64 = "$host_cpu"; then
10260 # On IA64, the linker does run time linking by default, so we don't
10261 # have to do anything special.
10262 aix_use_runtimelinking=no
10263 exp_sym_flag='-Bexport'
10264 no_entry_flag=
10265 else
10266 # If we're using GNU nm, then we don't want the "-C" option.
10267 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10268 # Without the "-l" option, or with the "-B" option, AIX nm treats
10269 # weak defined symbols like other global defined symbols, whereas
10270 # GNU nm marks them as "W".
10271 # While the 'weak' keyword is ignored in the Export File, we need
10272 # it in the Import File for the 'aix-soname' feature, so we have
10273 # to replace the "-B" option with "-P" for AIX nm.
10274 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10275 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10276 else
10277 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10278 fi
10279 aix_use_runtimelinking=no
10280
10281 # Test if we are trying to use run time linking or normal
10282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10283 # have runtime linking enabled, and use it for executables.
10284 # For shared libraries, we enable/disable runtime linking
10285 # depending on the kind of the shared library created -
10286 # when "with_aix_soname,aix_use_runtimelinking" is:
10287 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10288 # "aix,yes" lib.so shared, rtl:yes, for executables
10289 # lib.a static archive
10290 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10291 # lib.a(lib.so.V) shared, rtl:no, for executables
10292 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10293 # lib.a(lib.so.V) shared, rtl:no
10294 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10295 # lib.a static archive
10296 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10297 for ld_flag in $LDFLAGS; do
10298 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10299 aix_use_runtimelinking=yes
10300 break
10301 fi
10302 done
10303 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10304 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10305 # so we don't have lib.a shared libs to link our executables.
10306 # We have to force runtime linking in this case.
10307 aix_use_runtimelinking=yes
10308 LDFLAGS="$LDFLAGS -Wl,-brtl"
10309 fi
10310 ;;
10311 esac
10312
10313 exp_sym_flag='-bexport'
10314 no_entry_flag='-bnoentry'
10315 fi
10316
10317 # When large executables or shared objects are built, AIX ld can
10318 # have problems creating the table of contents. If linking a library
10319 # or program results in "error TOC overflow" add -mminimal-toc to
10320 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10321 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10322
10323 archive_cmds=''
10324 hardcode_direct=yes
10325 hardcode_direct_absolute=yes
10326 hardcode_libdir_separator=':'
10327 link_all_deplibs=yes
10328 file_list_spec='$wl-f,'
10329 case $with_aix_soname,$aix_use_runtimelinking in
10330 aix,*) ;; # traditional, no import file
10331 svr4,* | *,yes) # use import file
10332 # The Import File defines what to hardcode.
10333 hardcode_direct=no
10334 hardcode_direct_absolute=no
10335 ;;
10336 esac
10337
10338 if test yes = "$GCC"; then
10339 case $host_os in aix4.[012]|aix4.[012].*)
10340 # We only want to do this on AIX 4.2 and lower, the check
10341 # below for broken collect2 doesn't work under 4.3+
10342 collect2name=`$CC -print-prog-name=collect2`
10343 if test -f "$collect2name" &&
10344 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10345 then
10346 # We have reworked collect2
10347 :
10348 else
10349 # We have old collect2
10350 hardcode_direct=unsupported
10351 # It fails to find uninstalled libraries when the uninstalled
10352 # path is not listed in the libpath. Setting hardcode_minus_L
10353 # to unsupported forces relinking
10354 hardcode_minus_L=yes
10355 hardcode_libdir_flag_spec='-L$libdir'
10356 hardcode_libdir_separator=
10357 fi
10358 ;;
10359 esac
10360 shared_flag='-shared'
10361 if test yes = "$aix_use_runtimelinking"; then
10362 shared_flag="$shared_flag "'$wl-G'
10363 fi
10364 # Need to ensure runtime linking is disabled for the traditional
10365 # shared library, or the linker may eventually find shared libraries
10366 # /with/ Import File - we do not want to mix them.
10367 shared_flag_aix='-shared'
10368 shared_flag_svr4='-shared $wl-G'
10369 else
10370 # not using gcc
10371 if test ia64 = "$host_cpu"; then
10372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10373 # chokes on -Wl,-G. The following line is correct:
10374 shared_flag='-G'
10375 else
10376 if test yes = "$aix_use_runtimelinking"; then
10377 shared_flag='$wl-G'
10378 else
10379 shared_flag='$wl-bM:SRE'
10380 fi
10381 shared_flag_aix='$wl-bM:SRE'
10382 shared_flag_svr4='$wl-G'
10383 fi
10384 fi
10385
10386 export_dynamic_flag_spec='$wl-bexpall'
10387 # It seems that -bexpall does not export symbols beginning with
10388 # underscore (_), so it is better to generate a list of symbols to export.
10389 always_export_symbols=yes
10390 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10391 # Warning - without using the other runtime loading flags (-brtl),
10392 # -berok will link without error, but may produce a broken library.
10393 allow_undefined_flag='-berok'
10394 # Determine the default libpath from the value encoded in an
10395 # empty executable.
10396 if test set = "${lt_cv_aix_libpath+set}"; then
10397 aix_libpath=$lt_cv_aix_libpath
10398 else
10399 if ${lt_cv_aix_libpath_+:} false; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404
10405 int
10406 main ()
10407 {
10408
10409 ;
10410 return 0;
10411 }
10412 _ACEOF
10413 if ac_fn_c_try_link "$LINENO"; then :
10414
10415 lt_aix_libpath_sed='
10416 /Import File Strings/,/^$/ {
10417 /^0/ {
10418 s/^0 *\([^ ]*\) *$/\1/
10419 p
10420 }
10421 }'
10422 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10423 # Check for a 64-bit object if we didn't find anything.
10424 if test -z "$lt_cv_aix_libpath_"; then
10425 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10426 fi
10427 fi
10428 rm -f core conftest.err conftest.$ac_objext \
10429 conftest$ac_exeext conftest.$ac_ext
10430 if test -z "$lt_cv_aix_libpath_"; then
10431 lt_cv_aix_libpath_=/usr/lib:/lib
10432 fi
10433
10434 fi
10435
10436 aix_libpath=$lt_cv_aix_libpath_
10437 fi
10438
10439 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10440 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10441 else
10442 if test ia64 = "$host_cpu"; then
10443 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10444 allow_undefined_flag="-z nodefs"
10445 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"
10446 else
10447 # Determine the default libpath from the value encoded in an
10448 # empty executable.
10449 if test set = "${lt_cv_aix_libpath+set}"; then
10450 aix_libpath=$lt_cv_aix_libpath
10451 else
10452 if ${lt_cv_aix_libpath_+:} false; then :
10453 $as_echo_n "(cached) " >&6
10454 else
10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10457
10458 int
10459 main ()
10460 {
10461
10462 ;
10463 return 0;
10464 }
10465 _ACEOF
10466 if ac_fn_c_try_link "$LINENO"; then :
10467
10468 lt_aix_libpath_sed='
10469 /Import File Strings/,/^$/ {
10470 /^0/ {
10471 s/^0 *\([^ ]*\) *$/\1/
10472 p
10473 }
10474 }'
10475 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10476 # Check for a 64-bit object if we didn't find anything.
10477 if test -z "$lt_cv_aix_libpath_"; then
10478 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10479 fi
10480 fi
10481 rm -f core conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10483 if test -z "$lt_cv_aix_libpath_"; then
10484 lt_cv_aix_libpath_=/usr/lib:/lib
10485 fi
10486
10487 fi
10488
10489 aix_libpath=$lt_cv_aix_libpath_
10490 fi
10491
10492 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10493 # Warning - without using the other run time loading flags,
10494 # -berok will link without error, but may produce a broken library.
10495 no_undefined_flag=' $wl-bernotok'
10496 allow_undefined_flag=' $wl-berok'
10497 if test yes = "$with_gnu_ld"; then
10498 # We only use this code for GNU lds that support --whole-archive.
10499 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10500 else
10501 # Exported symbols can be pulled into shared objects from archives
10502 whole_archive_flag_spec='$convenience'
10503 fi
10504 archive_cmds_need_lc=yes
10505 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10506 # -brtl affects multiple linker settings, -berok does not and is overridden later
10507 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10508 if test svr4 != "$with_aix_soname"; then
10509 # This is similar to how AIX traditionally builds its shared libraries.
10510 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10511 fi
10512 if test aix != "$with_aix_soname"; then
10513 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10514 else
10515 # used by -dlpreopen to get the symbols
10516 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10517 fi
10518 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10519 fi
10520 fi
10521 ;;
10522
10523 amigaos*)
10524 case $host_cpu in
10525 powerpc)
10526 # see comment about AmigaOS4 .so support
10527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10528 archive_expsym_cmds=''
10529 ;;
10530 m68k)
10531 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)'
10532 hardcode_libdir_flag_spec='-L$libdir'
10533 hardcode_minus_L=yes
10534 ;;
10535 esac
10536 ;;
10537
10538 bsdi[45]*)
10539 export_dynamic_flag_spec=-rdynamic
10540 ;;
10541
10542 cygwin* | mingw* | pw32* | cegcc*)
10543 # When not using gcc, we currently assume that we are using
10544 # Microsoft Visual C++.
10545 # hardcode_libdir_flag_spec is actually meaningless, as there is
10546 # no search path for DLLs.
10547 case $cc_basename in
10548 cl*)
10549 # Native MSVC
10550 hardcode_libdir_flag_spec=' '
10551 allow_undefined_flag=unsupported
10552 always_export_symbols=yes
10553 file_list_spec='@'
10554 # Tell ltmain to make .lib files, not .a files.
10555 libext=lib
10556 # Tell ltmain to make .dll files, not .so files.
10557 shrext_cmds=.dll
10558 # FIXME: Setting linknames here is a bad hack.
10559 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10560 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10561 cp "$export_symbols" "$output_objdir/$soname.def";
10562 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10563 else
10564 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10565 fi~
10566 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10567 linknames='
10568 # The linker will not automatically build a static lib if we build a DLL.
10569 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10570 enable_shared_with_static_runtimes=yes
10571 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10572 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10573 # Don't use ranlib
10574 old_postinstall_cmds='chmod 644 $oldlib'
10575 postlink_cmds='lt_outputfile="@OUTPUT@"~
10576 lt_tool_outputfile="@TOOL_OUTPUT@"~
10577 case $lt_outputfile in
10578 *.exe|*.EXE) ;;
10579 *)
10580 lt_outputfile=$lt_outputfile.exe
10581 lt_tool_outputfile=$lt_tool_outputfile.exe
10582 ;;
10583 esac~
10584 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10585 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10586 $RM "$lt_outputfile.manifest";
10587 fi'
10588 ;;
10589 *)
10590 # Assume MSVC wrapper
10591 hardcode_libdir_flag_spec=' '
10592 allow_undefined_flag=unsupported
10593 # Tell ltmain to make .lib files, not .a files.
10594 libext=lib
10595 # Tell ltmain to make .dll files, not .so files.
10596 shrext_cmds=.dll
10597 # FIXME: Setting linknames here is a bad hack.
10598 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10599 # The linker will automatically build a .lib file if we build a DLL.
10600 old_archive_from_new_cmds='true'
10601 # FIXME: Should let the user specify the lib program.
10602 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10603 enable_shared_with_static_runtimes=yes
10604 ;;
10605 esac
10606 ;;
10607
10608 darwin* | rhapsody*)
10609
10610
10611 archive_cmds_need_lc=no
10612 hardcode_direct=no
10613 hardcode_automatic=yes
10614 hardcode_shlibpath_var=unsupported
10615 if test yes = "$lt_cv_ld_force_load"; then
10616 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10617
10618 else
10619 whole_archive_flag_spec=''
10620 fi
10621 link_all_deplibs=yes
10622 allow_undefined_flag=$_lt_dar_allow_undefined
10623 case $cc_basename in
10624 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10625 *) _lt_dar_can_shared=$GCC ;;
10626 esac
10627 if test yes = "$_lt_dar_can_shared"; then
10628 output_verbose_link_cmd=func_echo_all
10629 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10630 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10631 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"
10632 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"
10633
10634 else
10635 ld_shlibs=no
10636 fi
10637
10638 ;;
10639
10640 dgux*)
10641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10642 hardcode_libdir_flag_spec='-L$libdir'
10643 hardcode_shlibpath_var=no
10644 ;;
10645
10646 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10647 # support. Future versions do this automatically, but an explicit c++rt0.o
10648 # does not break anything, and helps significantly (at the cost of a little
10649 # extra space).
10650 freebsd2.2*)
10651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10652 hardcode_libdir_flag_spec='-R$libdir'
10653 hardcode_direct=yes
10654 hardcode_shlibpath_var=no
10655 ;;
10656
10657 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10658 freebsd2.*)
10659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10660 hardcode_direct=yes
10661 hardcode_minus_L=yes
10662 hardcode_shlibpath_var=no
10663 ;;
10664
10665 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10666 freebsd* | dragonfly*)
10667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10668 hardcode_libdir_flag_spec='-R$libdir'
10669 hardcode_direct=yes
10670 hardcode_shlibpath_var=no
10671 ;;
10672
10673 hpux9*)
10674 if test yes = "$GCC"; then
10675 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10676 else
10677 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10678 fi
10679 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10680 hardcode_libdir_separator=:
10681 hardcode_direct=yes
10682
10683 # hardcode_minus_L: Not really in the search PATH,
10684 # but as the default location of the library.
10685 hardcode_minus_L=yes
10686 export_dynamic_flag_spec='$wl-E'
10687 ;;
10688
10689 hpux10*)
10690 if test yes,no = "$GCC,$with_gnu_ld"; then
10691 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10692 else
10693 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10694 fi
10695 if test no = "$with_gnu_ld"; then
10696 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10697 hardcode_libdir_separator=:
10698 hardcode_direct=yes
10699 hardcode_direct_absolute=yes
10700 export_dynamic_flag_spec='$wl-E'
10701 # hardcode_minus_L: Not really in the search PATH,
10702 # but as the default location of the library.
10703 hardcode_minus_L=yes
10704 fi
10705 ;;
10706
10707 hpux11*)
10708 if test yes,no = "$GCC,$with_gnu_ld"; then
10709 case $host_cpu in
10710 hppa*64*)
10711 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10712 ;;
10713 ia64*)
10714 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10715 ;;
10716 *)
10717 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10718 ;;
10719 esac
10720 else
10721 case $host_cpu in
10722 hppa*64*)
10723 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10724 ;;
10725 ia64*)
10726 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10727 ;;
10728 *)
10729
10730 # Older versions of the 11.00 compiler do not understand -b yet
10731 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10733 $as_echo_n "checking if $CC understands -b... " >&6; }
10734 if ${lt_cv_prog_compiler__b+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 lt_cv_prog_compiler__b=no
10738 save_LDFLAGS=$LDFLAGS
10739 LDFLAGS="$LDFLAGS -b"
10740 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10742 # The linker can only warn and ignore the option if not recognized
10743 # So say no if there are warnings
10744 if test -s conftest.err; then
10745 # Append any errors to the config.log.
10746 cat conftest.err 1>&5
10747 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10749 if diff conftest.exp conftest.er2 >/dev/null; then
10750 lt_cv_prog_compiler__b=yes
10751 fi
10752 else
10753 lt_cv_prog_compiler__b=yes
10754 fi
10755 fi
10756 $RM -r conftest*
10757 LDFLAGS=$save_LDFLAGS
10758
10759 fi
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10761 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10762
10763 if test yes = "$lt_cv_prog_compiler__b"; then
10764 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10765 else
10766 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10767 fi
10768
10769 ;;
10770 esac
10771 fi
10772 if test no = "$with_gnu_ld"; then
10773 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10774 hardcode_libdir_separator=:
10775
10776 case $host_cpu in
10777 hppa*64*|ia64*)
10778 hardcode_direct=no
10779 hardcode_shlibpath_var=no
10780 ;;
10781 *)
10782 hardcode_direct=yes
10783 hardcode_direct_absolute=yes
10784 export_dynamic_flag_spec='$wl-E'
10785
10786 # hardcode_minus_L: Not really in the search PATH,
10787 # but as the default location of the library.
10788 hardcode_minus_L=yes
10789 ;;
10790 esac
10791 fi
10792 ;;
10793
10794 irix5* | irix6* | nonstopux*)
10795 if test yes = "$GCC"; then
10796 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10797 # Try to use the -exported_symbol ld option, if it does not
10798 # work, assume that -exports_file does not work either and
10799 # implicitly export all symbols.
10800 # This should be the same for all languages, so no per-tag cache variable.
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10802 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10803 if ${lt_cv_irix_exported_symbol+:} false; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 save_LDFLAGS=$LDFLAGS
10807 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10810 int foo (void) { return 0; }
10811 _ACEOF
10812 if ac_fn_c_try_link "$LINENO"; then :
10813 lt_cv_irix_exported_symbol=yes
10814 else
10815 lt_cv_irix_exported_symbol=no
10816 fi
10817 rm -f core conftest.err conftest.$ac_objext \
10818 conftest$ac_exeext conftest.$ac_ext
10819 LDFLAGS=$save_LDFLAGS
10820 fi
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10822 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10823 if test yes = "$lt_cv_irix_exported_symbol"; then
10824 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10825 fi
10826 else
10827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10828 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10829 fi
10830 archive_cmds_need_lc='no'
10831 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10832 hardcode_libdir_separator=:
10833 inherit_rpath=yes
10834 link_all_deplibs=yes
10835 ;;
10836
10837 linux*)
10838 case $cc_basename in
10839 tcc*)
10840 # Fabrice Bellard et al's Tiny C Compiler
10841 ld_shlibs=yes
10842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10843 ;;
10844 esac
10845 ;;
10846
10847 netbsd*)
10848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10850 else
10851 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10852 fi
10853 hardcode_libdir_flag_spec='-R$libdir'
10854 hardcode_direct=yes
10855 hardcode_shlibpath_var=no
10856 ;;
10857
10858 newsos6)
10859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10860 hardcode_direct=yes
10861 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10862 hardcode_libdir_separator=:
10863 hardcode_shlibpath_var=no
10864 ;;
10865
10866 *nto* | *qnx*)
10867 ;;
10868
10869 openbsd* | bitrig*)
10870 if test -f /usr/libexec/ld.so; then
10871 hardcode_direct=yes
10872 hardcode_shlibpath_var=no
10873 hardcode_direct_absolute=yes
10874 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10875 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10876 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10877 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10878 export_dynamic_flag_spec='$wl-E'
10879 else
10880 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10881 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10882 fi
10883 else
10884 ld_shlibs=no
10885 fi
10886 ;;
10887
10888 os2*)
10889 hardcode_libdir_flag_spec='-L$libdir'
10890 hardcode_minus_L=yes
10891 allow_undefined_flag=unsupported
10892 shrext_cmds=.dll
10893 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10894 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10895 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10896 $ECHO EXPORTS >> $output_objdir/$libname.def~
10897 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10898 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10899 emximp -o $lib $output_objdir/$libname.def'
10900 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10901 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10902 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10903 $ECHO EXPORTS >> $output_objdir/$libname.def~
10904 prefix_cmds="$SED"~
10905 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10906 prefix_cmds="$prefix_cmds -e 1d";
10907 fi~
10908 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10909 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10910 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10911 emximp -o $lib $output_objdir/$libname.def'
10912 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10913 enable_shared_with_static_runtimes=yes
10914 ;;
10915
10916 osf3*)
10917 if test yes = "$GCC"; then
10918 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10919 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10920 else
10921 allow_undefined_flag=' -expect_unresolved \*'
10922 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10923 fi
10924 archive_cmds_need_lc='no'
10925 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10926 hardcode_libdir_separator=:
10927 ;;
10928
10929 osf4* | osf5*) # as osf3* with the addition of -msym flag
10930 if test yes = "$GCC"; then
10931 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10932 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10933 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10934 else
10935 allow_undefined_flag=' -expect_unresolved \*'
10936 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10937 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~
10938 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10939
10940 # Both c and cxx compiler support -rpath directly
10941 hardcode_libdir_flag_spec='-rpath $libdir'
10942 fi
10943 archive_cmds_need_lc='no'
10944 hardcode_libdir_separator=:
10945 ;;
10946
10947 solaris*)
10948 no_undefined_flag=' -z defs'
10949 if test yes = "$GCC"; then
10950 wlarc='$wl'
10951 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10953 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10954 else
10955 case `$CC -V 2>&1` in
10956 *"Compilers 5.0"*)
10957 wlarc=''
10958 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10959 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10960 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10961 ;;
10962 *)
10963 wlarc='$wl'
10964 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10965 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10966 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10967 ;;
10968 esac
10969 fi
10970 hardcode_libdir_flag_spec='-R$libdir'
10971 hardcode_shlibpath_var=no
10972 case $host_os in
10973 solaris2.[0-5] | solaris2.[0-5].*) ;;
10974 *)
10975 # The compiler driver will combine and reorder linker options,
10976 # but understands '-z linker_flag'. GCC discards it without '$wl',
10977 # but is careful enough not to reorder.
10978 # Supported since Solaris 2.6 (maybe 2.5.1?)
10979 if test yes = "$GCC"; then
10980 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10981 else
10982 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10983 fi
10984 ;;
10985 esac
10986 link_all_deplibs=yes
10987 ;;
10988
10989 sunos4*)
10990 if test sequent = "$host_vendor"; then
10991 # Use $CC to link under sequent, because it throws in some extra .o
10992 # files that make .init and .fini sections work.
10993 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10994 else
10995 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10996 fi
10997 hardcode_libdir_flag_spec='-L$libdir'
10998 hardcode_direct=yes
10999 hardcode_minus_L=yes
11000 hardcode_shlibpath_var=no
11001 ;;
11002
11003 sysv4)
11004 case $host_vendor in
11005 sni)
11006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11007 hardcode_direct=yes # is this really true???
11008 ;;
11009 siemens)
11010 ## LD is ld it makes a PLAMLIB
11011 ## CC just makes a GrossModule.
11012 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11013 reload_cmds='$CC -r -o $output$reload_objs'
11014 hardcode_direct=no
11015 ;;
11016 motorola)
11017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11018 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11019 ;;
11020 esac
11021 runpath_var='LD_RUN_PATH'
11022 hardcode_shlibpath_var=no
11023 ;;
11024
11025 sysv4.3*)
11026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11027 hardcode_shlibpath_var=no
11028 export_dynamic_flag_spec='-Bexport'
11029 ;;
11030
11031 sysv4*MP*)
11032 if test -d /usr/nec; then
11033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11034 hardcode_shlibpath_var=no
11035 runpath_var=LD_RUN_PATH
11036 hardcode_runpath_var=yes
11037 ld_shlibs=yes
11038 fi
11039 ;;
11040
11041 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11042 no_undefined_flag='$wl-z,text'
11043 archive_cmds_need_lc=no
11044 hardcode_shlibpath_var=no
11045 runpath_var='LD_RUN_PATH'
11046
11047 if test yes = "$GCC"; then
11048 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11049 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11050 else
11051 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11052 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11053 fi
11054 ;;
11055
11056 sysv5* | sco3.2v5* | sco5v6*)
11057 # Note: We CANNOT use -z defs as we might desire, because we do not
11058 # link with -lc, and that would cause any symbols used from libc to
11059 # always be unresolved, which means just about no library would
11060 # ever link correctly. If we're not using GNU ld we use -z text
11061 # though, which does catch some bad symbols but isn't as heavy-handed
11062 # as -z defs.
11063 no_undefined_flag='$wl-z,text'
11064 allow_undefined_flag='$wl-z,nodefs'
11065 archive_cmds_need_lc=no
11066 hardcode_shlibpath_var=no
11067 hardcode_libdir_flag_spec='$wl-R,$libdir'
11068 hardcode_libdir_separator=':'
11069 link_all_deplibs=yes
11070 export_dynamic_flag_spec='$wl-Bexport'
11071 runpath_var='LD_RUN_PATH'
11072
11073 if test yes = "$GCC"; then
11074 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11075 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11076 else
11077 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11078 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11079 fi
11080 ;;
11081
11082 uts4*)
11083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11084 hardcode_libdir_flag_spec='-L$libdir'
11085 hardcode_shlibpath_var=no
11086 ;;
11087
11088 *)
11089 ld_shlibs=no
11090 ;;
11091 esac
11092
11093 if test sni = "$host_vendor"; then
11094 case $host in
11095 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11096 export_dynamic_flag_spec='$wl-Blargedynsym'
11097 ;;
11098 esac
11099 fi
11100 fi
11101
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11103 $as_echo "$ld_shlibs" >&6; }
11104 test no = "$ld_shlibs" && can_build_shared=no
11105
11106 with_gnu_ld=$with_gnu_ld
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122 #
11123 # Do we need to explicitly link libc?
11124 #
11125 case "x$archive_cmds_need_lc" in
11126 x|xyes)
11127 # Assume -lc should be added
11128 archive_cmds_need_lc=yes
11129
11130 if test yes,yes = "$GCC,$enable_shared"; then
11131 case $archive_cmds in
11132 *'~'*)
11133 # FIXME: we may have to deal with multi-command sequences.
11134 ;;
11135 '$CC '*)
11136 # Test whether the compiler implicitly links with -lc since on some
11137 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11138 # to ld, don't add -lc before -lgcc.
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11140 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11141 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11142 $as_echo_n "(cached) " >&6
11143 else
11144 $RM conftest*
11145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11146
11147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11148 (eval $ac_compile) 2>&5
11149 ac_status=$?
11150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151 test $ac_status = 0; } 2>conftest.err; then
11152 soname=conftest
11153 lib=conftest
11154 libobjs=conftest.$ac_objext
11155 deplibs=
11156 wl=$lt_prog_compiler_wl
11157 pic_flag=$lt_prog_compiler_pic
11158 compiler_flags=-v
11159 linker_flags=-v
11160 verstring=
11161 output_objdir=.
11162 libname=conftest
11163 lt_save_allow_undefined_flag=$allow_undefined_flag
11164 allow_undefined_flag=
11165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11166 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11167 ac_status=$?
11168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11169 test $ac_status = 0; }
11170 then
11171 lt_cv_archive_cmds_need_lc=no
11172 else
11173 lt_cv_archive_cmds_need_lc=yes
11174 fi
11175 allow_undefined_flag=$lt_save_allow_undefined_flag
11176 else
11177 cat conftest.err 1>&5
11178 fi
11179 $RM conftest*
11180
11181 fi
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11183 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11184 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11185 ;;
11186 esac
11187 fi
11188 ;;
11189 esac
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11343 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11344
11345 if test yes = "$GCC"; then
11346 case $host_os in
11347 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11348 *) lt_awk_arg='/^libraries:/' ;;
11349 esac
11350 case $host_os in
11351 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11352 *) lt_sed_strip_eq='s|=/|/|g' ;;
11353 esac
11354 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11355 case $lt_search_path_spec in
11356 *\;*)
11357 # if the path contains ";" then we assume it to be the separator
11358 # otherwise default to the standard path separator (i.e. ":") - it is
11359 # assumed that no part of a normal pathname contains ";" but that should
11360 # okay in the real world where ";" in dirpaths is itself problematic.
11361 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11362 ;;
11363 *)
11364 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11365 ;;
11366 esac
11367 # Ok, now we have the path, separated by spaces, we can step through it
11368 # and add multilib dir if necessary...
11369 lt_tmp_lt_search_path_spec=
11370 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11371 # ...but if some path component already ends with the multilib dir we assume
11372 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11373 case "$lt_multi_os_dir; $lt_search_path_spec " in
11374 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11375 lt_multi_os_dir=
11376 ;;
11377 esac
11378 for lt_sys_path in $lt_search_path_spec; do
11379 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11380 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11381 elif test -n "$lt_multi_os_dir"; then
11382 test -d "$lt_sys_path" && \
11383 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11384 fi
11385 done
11386 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11387 BEGIN {RS = " "; FS = "/|\n";} {
11388 lt_foo = "";
11389 lt_count = 0;
11390 for (lt_i = NF; lt_i > 0; lt_i--) {
11391 if ($lt_i != "" && $lt_i != ".") {
11392 if ($lt_i == "..") {
11393 lt_count++;
11394 } else {
11395 if (lt_count == 0) {
11396 lt_foo = "/" $lt_i lt_foo;
11397 } else {
11398 lt_count--;
11399 }
11400 }
11401 }
11402 }
11403 if (lt_foo != "") { lt_freq[lt_foo]++; }
11404 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11405 }'`
11406 # AWK program above erroneously prepends '/' to C:/dos/paths
11407 # for these hosts.
11408 case $host_os in
11409 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11410 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11411 esac
11412 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11413 else
11414 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11415 fi
11416 library_names_spec=
11417 libname_spec='lib$name'
11418 soname_spec=
11419 shrext_cmds=.so
11420 postinstall_cmds=
11421 postuninstall_cmds=
11422 finish_cmds=
11423 finish_eval=
11424 shlibpath_var=
11425 shlibpath_overrides_runpath=unknown
11426 version_type=none
11427 dynamic_linker="$host_os ld.so"
11428 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11429 need_lib_prefix=unknown
11430 hardcode_into_libs=no
11431
11432 # when you set need_version to no, make sure it does not cause -set_version
11433 # flags to be left without arguments
11434 need_version=unknown
11435
11436
11437
11438 case $host_os in
11439 aix3*)
11440 version_type=linux # correct to gnu/linux during the next big refactor
11441 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11442 shlibpath_var=LIBPATH
11443
11444 # AIX 3 has no versioning support, so we append a major version to the name.
11445 soname_spec='$libname$release$shared_ext$major'
11446 ;;
11447
11448 aix[4-9]*)
11449 version_type=linux # correct to gnu/linux during the next big refactor
11450 need_lib_prefix=no
11451 need_version=no
11452 hardcode_into_libs=yes
11453 if test ia64 = "$host_cpu"; then
11454 # AIX 5 supports IA64
11455 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11456 shlibpath_var=LD_LIBRARY_PATH
11457 else
11458 # With GCC up to 2.95.x, collect2 would create an import file
11459 # for dependence libraries. The import file would start with
11460 # the line '#! .'. This would cause the generated library to
11461 # depend on '.', always an invalid library. This was fixed in
11462 # development snapshots of GCC prior to 3.0.
11463 case $host_os in
11464 aix4 | aix4.[01] | aix4.[01].*)
11465 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11466 echo ' yes '
11467 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11468 :
11469 else
11470 can_build_shared=no
11471 fi
11472 ;;
11473 esac
11474 # Using Import Files as archive members, it is possible to support
11475 # filename-based versioning of shared library archives on AIX. While
11476 # this would work for both with and without runtime linking, it will
11477 # prevent static linking of such archives. So we do filename-based
11478 # shared library versioning with .so extension only, which is used
11479 # when both runtime linking and shared linking is enabled.
11480 # Unfortunately, runtime linking may impact performance, so we do
11481 # not want this to be the default eventually. Also, we use the
11482 # versioned .so libs for executables only if there is the -brtl
11483 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11484 # To allow for filename-based versioning support, we need to create
11485 # libNAME.so.V as an archive file, containing:
11486 # *) an Import File, referring to the versioned filename of the
11487 # archive as well as the shared archive member, telling the
11488 # bitwidth (32 or 64) of that shared object, and providing the
11489 # list of exported symbols of that shared object, eventually
11490 # decorated with the 'weak' keyword
11491 # *) the shared object with the F_LOADONLY flag set, to really avoid
11492 # it being seen by the linker.
11493 # At run time we better use the real file rather than another symlink,
11494 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11495
11496 case $with_aix_soname,$aix_use_runtimelinking in
11497 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11498 # soname into executable. Probably we can add versioning support to
11499 # collect2, so additional links can be useful in future.
11500 aix,yes) # traditional libtool
11501 dynamic_linker='AIX unversionable lib.so'
11502 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11503 # instead of lib<name>.a to let people know that these are not
11504 # typical AIX shared libraries.
11505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11506 ;;
11507 aix,no) # traditional AIX only
11508 dynamic_linker='AIX lib.a(lib.so.V)'
11509 # We preserve .a as extension for shared libraries through AIX4.2
11510 # and later when we are not doing run time linking.
11511 library_names_spec='$libname$release.a $libname.a'
11512 soname_spec='$libname$release$shared_ext$major'
11513 ;;
11514 svr4,*) # full svr4 only
11515 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11516 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11517 # We do not specify a path in Import Files, so LIBPATH fires.
11518 shlibpath_overrides_runpath=yes
11519 ;;
11520 *,yes) # both, prefer svr4
11521 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11522 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11523 # unpreferred sharedlib libNAME.a needs extra handling
11524 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11525 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11526 # We do not specify a path in Import Files, so LIBPATH fires.
11527 shlibpath_overrides_runpath=yes
11528 ;;
11529 *,no) # both, prefer aix
11530 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11531 library_names_spec='$libname$release.a $libname.a'
11532 soname_spec='$libname$release$shared_ext$major'
11533 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11534 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11535 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11536 ;;
11537 esac
11538 shlibpath_var=LIBPATH
11539 fi
11540 ;;
11541
11542 amigaos*)
11543 case $host_cpu in
11544 powerpc)
11545 # Since July 2007 AmigaOS4 officially supports .so libraries.
11546 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11548 ;;
11549 m68k)
11550 library_names_spec='$libname.ixlibrary $libname.a'
11551 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11552 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11553 ;;
11554 esac
11555 ;;
11556
11557 beos*)
11558 library_names_spec='$libname$shared_ext'
11559 dynamic_linker="$host_os ld.so"
11560 shlibpath_var=LIBRARY_PATH
11561 ;;
11562
11563 bsdi[45]*)
11564 version_type=linux # correct to gnu/linux during the next big refactor
11565 need_version=no
11566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11567 soname_spec='$libname$release$shared_ext$major'
11568 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11569 shlibpath_var=LD_LIBRARY_PATH
11570 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11571 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11572 # the default ld.so.conf also contains /usr/contrib/lib and
11573 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11574 # libtool to hard-code these into programs
11575 ;;
11576
11577 cygwin* | mingw* | pw32* | cegcc*)
11578 version_type=windows
11579 shrext_cmds=.dll
11580 need_version=no
11581 need_lib_prefix=no
11582
11583 case $GCC,$cc_basename in
11584 yes,*)
11585 # gcc
11586 library_names_spec='$libname.dll.a'
11587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11588 postinstall_cmds='base_file=`basename \$file`~
11589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11590 dldir=$destdir/`dirname \$dlpath`~
11591 test -d \$dldir || mkdir -p \$dldir~
11592 $install_prog $dir/$dlname \$dldir/$dlname~
11593 chmod a+x \$dldir/$dlname~
11594 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11595 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11596 fi'
11597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11598 dlpath=$dir/\$dldll~
11599 $RM \$dlpath'
11600 shlibpath_overrides_runpath=yes
11601
11602 case $host_os in
11603 cygwin*)
11604 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11605 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11606
11607 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11608 ;;
11609 mingw* | cegcc*)
11610 # MinGW DLLs use traditional 'lib' prefix
11611 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11612 ;;
11613 pw32*)
11614 # pw32 DLLs use 'pw' prefix rather than 'lib'
11615 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11616 ;;
11617 esac
11618 dynamic_linker='Win32 ld.exe'
11619 ;;
11620
11621 *,cl*)
11622 # Native MSVC
11623 libname_spec='$name'
11624 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11625 library_names_spec='$libname.dll.lib'
11626
11627 case $build_os in
11628 mingw*)
11629 sys_lib_search_path_spec=
11630 lt_save_ifs=$IFS
11631 IFS=';'
11632 for lt_path in $LIB
11633 do
11634 IFS=$lt_save_ifs
11635 # Let DOS variable expansion print the short 8.3 style file name.
11636 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11637 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11638 done
11639 IFS=$lt_save_ifs
11640 # Convert to MSYS style.
11641 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11642 ;;
11643 cygwin*)
11644 # Convert to unix form, then to dos form, then back to unix form
11645 # but this time dos style (no spaces!) so that the unix form looks
11646 # like /cygdrive/c/PROGRA~1:/cygdr...
11647 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11648 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11649 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11650 ;;
11651 *)
11652 sys_lib_search_path_spec=$LIB
11653 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11654 # It is most probably a Windows format PATH.
11655 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11656 else
11657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11658 fi
11659 # FIXME: find the short name or the path components, as spaces are
11660 # common. (e.g. "Program Files" -> "PROGRA~1")
11661 ;;
11662 esac
11663
11664 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11665 postinstall_cmds='base_file=`basename \$file`~
11666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11667 dldir=$destdir/`dirname \$dlpath`~
11668 test -d \$dldir || mkdir -p \$dldir~
11669 $install_prog $dir/$dlname \$dldir/$dlname'
11670 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11671 dlpath=$dir/\$dldll~
11672 $RM \$dlpath'
11673 shlibpath_overrides_runpath=yes
11674 dynamic_linker='Win32 link.exe'
11675 ;;
11676
11677 *)
11678 # Assume MSVC wrapper
11679 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11680 dynamic_linker='Win32 ld.exe'
11681 ;;
11682 esac
11683 # FIXME: first we should search . and the directory the executable is in
11684 shlibpath_var=PATH
11685 ;;
11686
11687 darwin* | rhapsody*)
11688 dynamic_linker="$host_os dyld"
11689 version_type=darwin
11690 need_lib_prefix=no
11691 need_version=no
11692 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11693 soname_spec='$libname$release$major$shared_ext'
11694 shlibpath_overrides_runpath=yes
11695 shlibpath_var=DYLD_LIBRARY_PATH
11696 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11697
11698 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11699 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11700 ;;
11701
11702 dgux*)
11703 version_type=linux # correct to gnu/linux during the next big refactor
11704 need_lib_prefix=no
11705 need_version=no
11706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11707 soname_spec='$libname$release$shared_ext$major'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 ;;
11710
11711 freebsd* | dragonfly*)
11712 # DragonFly does not have aout. When/if they implement a new
11713 # versioning mechanism, adjust this.
11714 if test -x /usr/bin/objformat; then
11715 objformat=`/usr/bin/objformat`
11716 else
11717 case $host_os in
11718 freebsd[23].*) objformat=aout ;;
11719 *) objformat=elf ;;
11720 esac
11721 fi
11722 version_type=freebsd-$objformat
11723 case $version_type in
11724 freebsd-elf*)
11725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11726 soname_spec='$libname$release$shared_ext$major'
11727 need_version=no
11728 need_lib_prefix=no
11729 ;;
11730 freebsd-*)
11731 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11732 need_version=yes
11733 ;;
11734 esac
11735 shlibpath_var=LD_LIBRARY_PATH
11736 case $host_os in
11737 freebsd2.*)
11738 shlibpath_overrides_runpath=yes
11739 ;;
11740 freebsd3.[01]* | freebsdelf3.[01]*)
11741 shlibpath_overrides_runpath=yes
11742 hardcode_into_libs=yes
11743 ;;
11744 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11745 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11746 shlibpath_overrides_runpath=no
11747 hardcode_into_libs=yes
11748 ;;
11749 *) # from 4.6 on, and DragonFly
11750 shlibpath_overrides_runpath=yes
11751 hardcode_into_libs=yes
11752 ;;
11753 esac
11754 ;;
11755
11756 haiku*)
11757 version_type=linux # correct to gnu/linux during the next big refactor
11758 need_lib_prefix=no
11759 need_version=no
11760 dynamic_linker="$host_os runtime_loader"
11761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11762 soname_spec='$libname$release$shared_ext$major'
11763 shlibpath_var=LIBRARY_PATH
11764 shlibpath_overrides_runpath=no
11765 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11766 hardcode_into_libs=yes
11767 ;;
11768
11769 hpux9* | hpux10* | hpux11*)
11770 # Give a soname corresponding to the major version so that dld.sl refuses to
11771 # link against other versions.
11772 version_type=sunos
11773 need_lib_prefix=no
11774 need_version=no
11775 case $host_cpu in
11776 ia64*)
11777 shrext_cmds='.so'
11778 hardcode_into_libs=yes
11779 dynamic_linker="$host_os dld.so"
11780 shlibpath_var=LD_LIBRARY_PATH
11781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11783 soname_spec='$libname$release$shared_ext$major'
11784 if test 32 = "$HPUX_IA64_MODE"; then
11785 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11786 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11787 else
11788 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11789 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11790 fi
11791 ;;
11792 hppa*64*)
11793 shrext_cmds='.sl'
11794 hardcode_into_libs=yes
11795 dynamic_linker="$host_os dld.sl"
11796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11799 soname_spec='$libname$release$shared_ext$major'
11800 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11802 ;;
11803 *)
11804 shrext_cmds='.sl'
11805 dynamic_linker="$host_os dld.sl"
11806 shlibpath_var=SHLIB_PATH
11807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11809 soname_spec='$libname$release$shared_ext$major'
11810 ;;
11811 esac
11812 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11813 postinstall_cmds='chmod 555 $lib'
11814 # or fails outright, so override atomically:
11815 install_override_mode=555
11816 ;;
11817
11818 interix[3-9]*)
11819 version_type=linux # correct to gnu/linux during the next big refactor
11820 need_lib_prefix=no
11821 need_version=no
11822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11823 soname_spec='$libname$release$shared_ext$major'
11824 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11825 shlibpath_var=LD_LIBRARY_PATH
11826 shlibpath_overrides_runpath=no
11827 hardcode_into_libs=yes
11828 ;;
11829
11830 irix5* | irix6* | nonstopux*)
11831 case $host_os in
11832 nonstopux*) version_type=nonstopux ;;
11833 *)
11834 if test yes = "$lt_cv_prog_gnu_ld"; then
11835 version_type=linux # correct to gnu/linux during the next big refactor
11836 else
11837 version_type=irix
11838 fi ;;
11839 esac
11840 need_lib_prefix=no
11841 need_version=no
11842 soname_spec='$libname$release$shared_ext$major'
11843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11844 case $host_os in
11845 irix5* | nonstopux*)
11846 libsuff= shlibsuff=
11847 ;;
11848 *)
11849 case $LD in # libtool.m4 will add one of these switches to LD
11850 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11851 libsuff= shlibsuff= libmagic=32-bit;;
11852 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11853 libsuff=32 shlibsuff=N32 libmagic=N32;;
11854 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11855 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11856 *) libsuff= shlibsuff= libmagic=never-match;;
11857 esac
11858 ;;
11859 esac
11860 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11861 shlibpath_overrides_runpath=no
11862 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11863 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11864 hardcode_into_libs=yes
11865 ;;
11866
11867 # No shared lib support for Linux oldld, aout, or coff.
11868 linux*oldld* | linux*aout* | linux*coff*)
11869 dynamic_linker=no
11870 ;;
11871
11872 linux*android*)
11873 version_type=none # Android doesn't support versioned libraries.
11874 need_lib_prefix=no
11875 need_version=no
11876 library_names_spec='$libname$release$shared_ext'
11877 soname_spec='$libname$release$shared_ext'
11878 finish_cmds=
11879 shlibpath_var=LD_LIBRARY_PATH
11880 shlibpath_overrides_runpath=yes
11881
11882 # This implies no fast_install, which is unacceptable.
11883 # Some rework will be needed to allow for fast_install
11884 # before this can be enabled.
11885 hardcode_into_libs=yes
11886
11887 dynamic_linker='Android linker'
11888 # Don't embed -rpath directories since the linker doesn't support them.
11889 hardcode_libdir_flag_spec='-L$libdir'
11890 ;;
11891
11892 # This must be glibc/ELF.
11893 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11894 version_type=linux # correct to gnu/linux during the next big refactor
11895 need_lib_prefix=no
11896 need_version=no
11897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11898 soname_spec='$libname$release$shared_ext$major'
11899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 shlibpath_overrides_runpath=no
11902
11903 # Some binutils ld are patched to set DT_RUNPATH
11904 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11905 $as_echo_n "(cached) " >&6
11906 else
11907 lt_cv_shlibpath_overrides_runpath=no
11908 save_LDFLAGS=$LDFLAGS
11909 save_libdir=$libdir
11910 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11911 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913 /* end confdefs.h. */
11914
11915 int
11916 main ()
11917 {
11918
11919 ;
11920 return 0;
11921 }
11922 _ACEOF
11923 if ac_fn_c_try_link "$LINENO"; then :
11924 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11925 lt_cv_shlibpath_overrides_runpath=yes
11926 fi
11927 fi
11928 rm -f core conftest.err conftest.$ac_objext \
11929 conftest$ac_exeext conftest.$ac_ext
11930 LDFLAGS=$save_LDFLAGS
11931 libdir=$save_libdir
11932
11933 fi
11934
11935 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11936
11937 # This implies no fast_install, which is unacceptable.
11938 # Some rework will be needed to allow for fast_install
11939 # before this can be enabled.
11940 hardcode_into_libs=yes
11941
11942 # Ideally, we could use ldconfig to report *all* directores which are
11943 # searched for libraries, however this is still not possible. Aside from not
11944 # being certain /sbin/ldconfig is available, command
11945 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11946 # even though it is searched at run-time. Try to do the best guess by
11947 # appending ld.so.conf contents (and includes) to the search path.
11948 if test -f /etc/ld.so.conf; then
11949 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11950 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11951 fi
11952
11953 # We used to test for /lib/ld.so.1 and disable shared libraries on
11954 # powerpc, because MkLinux only supported shared libraries with the
11955 # GNU dynamic linker. Since this was broken with cross compilers,
11956 # most powerpc-linux boxes support dynamic linking these days and
11957 # people can always --disable-shared, the test was removed, and we
11958 # assume the GNU/Linux dynamic linker is in use.
11959 dynamic_linker='GNU/Linux ld.so'
11960 ;;
11961
11962 netbsd*)
11963 version_type=sunos
11964 need_lib_prefix=no
11965 need_version=no
11966 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11967 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11969 dynamic_linker='NetBSD (a.out) ld.so'
11970 else
11971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11972 soname_spec='$libname$release$shared_ext$major'
11973 dynamic_linker='NetBSD ld.elf_so'
11974 fi
11975 shlibpath_var=LD_LIBRARY_PATH
11976 shlibpath_overrides_runpath=yes
11977 hardcode_into_libs=yes
11978 ;;
11979
11980 newsos6)
11981 version_type=linux # correct to gnu/linux during the next big refactor
11982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11983 shlibpath_var=LD_LIBRARY_PATH
11984 shlibpath_overrides_runpath=yes
11985 ;;
11986
11987 *nto* | *qnx*)
11988 version_type=qnx
11989 need_lib_prefix=no
11990 need_version=no
11991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11992 soname_spec='$libname$release$shared_ext$major'
11993 shlibpath_var=LD_LIBRARY_PATH
11994 shlibpath_overrides_runpath=no
11995 hardcode_into_libs=yes
11996 dynamic_linker='ldqnx.so'
11997 ;;
11998
11999 openbsd* | bitrig*)
12000 version_type=sunos
12001 sys_lib_dlsearch_path_spec=/usr/lib
12002 need_lib_prefix=no
12003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12004 need_version=no
12005 else
12006 need_version=yes
12007 fi
12008 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12010 shlibpath_var=LD_LIBRARY_PATH
12011 shlibpath_overrides_runpath=yes
12012 ;;
12013
12014 os2*)
12015 libname_spec='$name'
12016 version_type=windows
12017 shrext_cmds=.dll
12018 need_version=no
12019 need_lib_prefix=no
12020 # OS/2 can only load a DLL with a base name of 8 characters or less.
12021 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12022 v=$($ECHO $release$versuffix | tr -d .-);
12023 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12024 $ECHO $n$v`$shared_ext'
12025 library_names_spec='${libname}_dll.$libext'
12026 dynamic_linker='OS/2 ld.exe'
12027 shlibpath_var=BEGINLIBPATH
12028 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12030 postinstall_cmds='base_file=`basename \$file`~
12031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12032 dldir=$destdir/`dirname \$dlpath`~
12033 test -d \$dldir || mkdir -p \$dldir~
12034 $install_prog $dir/$dlname \$dldir/$dlname~
12035 chmod a+x \$dldir/$dlname~
12036 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12037 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12038 fi'
12039 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12040 dlpath=$dir/\$dldll~
12041 $RM \$dlpath'
12042 ;;
12043
12044 osf3* | osf4* | osf5*)
12045 version_type=osf
12046 need_lib_prefix=no
12047 need_version=no
12048 soname_spec='$libname$release$shared_ext$major'
12049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12050 shlibpath_var=LD_LIBRARY_PATH
12051 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12053 ;;
12054
12055 rdos*)
12056 dynamic_linker=no
12057 ;;
12058
12059 solaris*)
12060 version_type=linux # correct to gnu/linux during the next big refactor
12061 need_lib_prefix=no
12062 need_version=no
12063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12064 soname_spec='$libname$release$shared_ext$major'
12065 shlibpath_var=LD_LIBRARY_PATH
12066 shlibpath_overrides_runpath=yes
12067 hardcode_into_libs=yes
12068 # ldd complains unless libraries are executable
12069 postinstall_cmds='chmod +x $lib'
12070 ;;
12071
12072 sunos4*)
12073 version_type=sunos
12074 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12075 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12076 shlibpath_var=LD_LIBRARY_PATH
12077 shlibpath_overrides_runpath=yes
12078 if test yes = "$with_gnu_ld"; then
12079 need_lib_prefix=no
12080 fi
12081 need_version=yes
12082 ;;
12083
12084 sysv4 | sysv4.3*)
12085 version_type=linux # correct to gnu/linux during the next big refactor
12086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12087 soname_spec='$libname$release$shared_ext$major'
12088 shlibpath_var=LD_LIBRARY_PATH
12089 case $host_vendor in
12090 sni)
12091 shlibpath_overrides_runpath=no
12092 need_lib_prefix=no
12093 runpath_var=LD_RUN_PATH
12094 ;;
12095 siemens)
12096 need_lib_prefix=no
12097 ;;
12098 motorola)
12099 need_lib_prefix=no
12100 need_version=no
12101 shlibpath_overrides_runpath=no
12102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12103 ;;
12104 esac
12105 ;;
12106
12107 sysv4*MP*)
12108 if test -d /usr/nec; then
12109 version_type=linux # correct to gnu/linux during the next big refactor
12110 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12111 soname_spec='$libname$shared_ext.$major'
12112 shlibpath_var=LD_LIBRARY_PATH
12113 fi
12114 ;;
12115
12116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12117 version_type=sco
12118 need_lib_prefix=no
12119 need_version=no
12120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12121 soname_spec='$libname$release$shared_ext$major'
12122 shlibpath_var=LD_LIBRARY_PATH
12123 shlibpath_overrides_runpath=yes
12124 hardcode_into_libs=yes
12125 if test yes = "$with_gnu_ld"; then
12126 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12127 else
12128 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12129 case $host_os in
12130 sco3.2v5*)
12131 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12132 ;;
12133 esac
12134 fi
12135 sys_lib_dlsearch_path_spec='/usr/lib'
12136 ;;
12137
12138 tpf*)
12139 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12140 version_type=linux # correct to gnu/linux during the next big refactor
12141 need_lib_prefix=no
12142 need_version=no
12143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12144 shlibpath_var=LD_LIBRARY_PATH
12145 shlibpath_overrides_runpath=no
12146 hardcode_into_libs=yes
12147 ;;
12148
12149 uts4*)
12150 version_type=linux # correct to gnu/linux during the next big refactor
12151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12152 soname_spec='$libname$release$shared_ext$major'
12153 shlibpath_var=LD_LIBRARY_PATH
12154 ;;
12155
12156 *)
12157 dynamic_linker=no
12158 ;;
12159 esac
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12161 $as_echo "$dynamic_linker" >&6; }
12162 test no = "$dynamic_linker" && can_build_shared=no
12163
12164 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12165 if test yes = "$GCC"; then
12166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12167 fi
12168
12169 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12170 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12171 fi
12172
12173 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12174 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12175 fi
12176
12177 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12178 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12179
12180 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12181 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12182
12183 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12184 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12283 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12284 hardcode_action=
12285 if test -n "$hardcode_libdir_flag_spec" ||
12286 test -n "$runpath_var" ||
12287 test yes = "$hardcode_automatic"; then
12288
12289 # We can hardcode non-existent directories.
12290 if test no != "$hardcode_direct" &&
12291 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12292 # have to relink, otherwise we might link with an installed library
12293 # when we should be linking with a yet-to-be-installed one
12294 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12295 test no != "$hardcode_minus_L"; then
12296 # Linking always hardcodes the temporary library directory.
12297 hardcode_action=relink
12298 else
12299 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12300 hardcode_action=immediate
12301 fi
12302 else
12303 # We cannot hardcode anything, or else we can only hardcode existing
12304 # directories.
12305 hardcode_action=unsupported
12306 fi
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12308 $as_echo "$hardcode_action" >&6; }
12309
12310 if test relink = "$hardcode_action" ||
12311 test yes = "$inherit_rpath"; then
12312 # Fast installation is not supported
12313 enable_fast_install=no
12314 elif test yes = "$shlibpath_overrides_runpath" ||
12315 test no = "$enable_shared"; then
12316 # Fast installation is not necessary
12317 enable_fast_install=needless
12318 fi
12319
12320
12321
12322
12323
12324
12325 if test yes != "$enable_dlopen"; then
12326 enable_dlopen=unknown
12327 enable_dlopen_self=unknown
12328 enable_dlopen_self_static=unknown
12329 else
12330 lt_cv_dlopen=no
12331 lt_cv_dlopen_libs=
12332
12333 case $host_os in
12334 beos*)
12335 lt_cv_dlopen=load_add_on
12336 lt_cv_dlopen_libs=
12337 lt_cv_dlopen_self=yes
12338 ;;
12339
12340 mingw* | pw32* | cegcc*)
12341 lt_cv_dlopen=LoadLibrary
12342 lt_cv_dlopen_libs=
12343 ;;
12344
12345 cygwin*)
12346 lt_cv_dlopen=dlopen
12347 lt_cv_dlopen_libs=
12348 ;;
12349
12350 darwin*)
12351 # if libdl is installed we need to link against it
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12353 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12354 if ${ac_cv_lib_dl_dlopen+:} false; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 ac_check_lib_save_LIBS=$LIBS
12358 LIBS="-ldl $LIBS"
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361
12362 /* Override any GCC internal prototype to avoid an error.
12363 Use char because int might match the return type of a GCC
12364 builtin and then its argument prototype would still apply. */
12365 #ifdef __cplusplus
12366 extern "C"
12367 #endif
12368 char dlopen ();
12369 int
12370 main ()
12371 {
12372 return dlopen ();
12373 ;
12374 return 0;
12375 }
12376 _ACEOF
12377 if ac_fn_c_try_link "$LINENO"; then :
12378 ac_cv_lib_dl_dlopen=yes
12379 else
12380 ac_cv_lib_dl_dlopen=no
12381 fi
12382 rm -f core conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
12384 LIBS=$ac_check_lib_save_LIBS
12385 fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12387 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12388 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12389 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12390 else
12391
12392 lt_cv_dlopen=dyld
12393 lt_cv_dlopen_libs=
12394 lt_cv_dlopen_self=yes
12395
12396 fi
12397
12398 ;;
12399
12400 tpf*)
12401 # Don't try to run any link tests for TPF. We know it's impossible
12402 # because TPF is a cross-compiler, and we know how we open DSOs.
12403 lt_cv_dlopen=dlopen
12404 lt_cv_dlopen_libs=
12405 lt_cv_dlopen_self=no
12406 ;;
12407
12408 *)
12409 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12410 if test "x$ac_cv_func_shl_load" = xyes; then :
12411 lt_cv_dlopen=shl_load
12412 else
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12414 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12415 if ${ac_cv_lib_dld_shl_load+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 ac_check_lib_save_LIBS=$LIBS
12419 LIBS="-ldld $LIBS"
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12422
12423 /* Override any GCC internal prototype to avoid an error.
12424 Use char because int might match the return type of a GCC
12425 builtin and then its argument prototype would still apply. */
12426 #ifdef __cplusplus
12427 extern "C"
12428 #endif
12429 char shl_load ();
12430 int
12431 main ()
12432 {
12433 return shl_load ();
12434 ;
12435 return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"; then :
12439 ac_cv_lib_dld_shl_load=yes
12440 else
12441 ac_cv_lib_dld_shl_load=no
12442 fi
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 LIBS=$ac_check_lib_save_LIBS
12446 fi
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12448 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12449 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12450 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12451 else
12452 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12453 if test "x$ac_cv_func_dlopen" = xyes; then :
12454 lt_cv_dlopen=dlopen
12455 else
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12457 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12458 if ${ac_cv_lib_dl_dlopen+:} false; then :
12459 $as_echo_n "(cached) " >&6
12460 else
12461 ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-ldl $LIBS"
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12465
12466 /* Override any GCC internal prototype to avoid an error.
12467 Use char because int might match the return type of a GCC
12468 builtin and then its argument prototype would still apply. */
12469 #ifdef __cplusplus
12470 extern "C"
12471 #endif
12472 char dlopen ();
12473 int
12474 main ()
12475 {
12476 return dlopen ();
12477 ;
12478 return 0;
12479 }
12480 _ACEOF
12481 if ac_fn_c_try_link "$LINENO"; then :
12482 ac_cv_lib_dl_dlopen=yes
12483 else
12484 ac_cv_lib_dl_dlopen=no
12485 fi
12486 rm -f core conftest.err conftest.$ac_objext \
12487 conftest$ac_exeext conftest.$ac_ext
12488 LIBS=$ac_check_lib_save_LIBS
12489 fi
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12491 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12492 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12493 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12494 else
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12496 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12497 if ${ac_cv_lib_svld_dlopen+:} false; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 ac_check_lib_save_LIBS=$LIBS
12501 LIBS="-lsvld $LIBS"
12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12504
12505 /* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
12508 #ifdef __cplusplus
12509 extern "C"
12510 #endif
12511 char dlopen ();
12512 int
12513 main ()
12514 {
12515 return dlopen ();
12516 ;
12517 return 0;
12518 }
12519 _ACEOF
12520 if ac_fn_c_try_link "$LINENO"; then :
12521 ac_cv_lib_svld_dlopen=yes
12522 else
12523 ac_cv_lib_svld_dlopen=no
12524 fi
12525 rm -f core conftest.err conftest.$ac_objext \
12526 conftest$ac_exeext conftest.$ac_ext
12527 LIBS=$ac_check_lib_save_LIBS
12528 fi
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12530 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12531 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12532 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12533 else
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12535 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12536 if ${ac_cv_lib_dld_dld_link+:} false; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 ac_check_lib_save_LIBS=$LIBS
12540 LIBS="-ldld $LIBS"
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12543
12544 /* Override any GCC internal prototype to avoid an error.
12545 Use char because int might match the return type of a GCC
12546 builtin and then its argument prototype would still apply. */
12547 #ifdef __cplusplus
12548 extern "C"
12549 #endif
12550 char dld_link ();
12551 int
12552 main ()
12553 {
12554 return dld_link ();
12555 ;
12556 return 0;
12557 }
12558 _ACEOF
12559 if ac_fn_c_try_link "$LINENO"; then :
12560 ac_cv_lib_dld_dld_link=yes
12561 else
12562 ac_cv_lib_dld_dld_link=no
12563 fi
12564 rm -f core conftest.err conftest.$ac_objext \
12565 conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12567 fi
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12569 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12570 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12571 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12572 fi
12573
12574
12575 fi
12576
12577
12578 fi
12579
12580
12581 fi
12582
12583
12584 fi
12585
12586
12587 fi
12588
12589 ;;
12590 esac
12591
12592 if test no = "$lt_cv_dlopen"; then
12593 enable_dlopen=no
12594 else
12595 enable_dlopen=yes
12596 fi
12597
12598 case $lt_cv_dlopen in
12599 dlopen)
12600 save_CPPFLAGS=$CPPFLAGS
12601 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12602
12603 save_LDFLAGS=$LDFLAGS
12604 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12605
12606 save_LIBS=$LIBS
12607 LIBS="$lt_cv_dlopen_libs $LIBS"
12608
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12610 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12611 if ${lt_cv_dlopen_self+:} false; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 if test yes = "$cross_compiling"; then :
12615 lt_cv_dlopen_self=cross
12616 else
12617 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12618 lt_status=$lt_dlunknown
12619 cat > conftest.$ac_ext <<_LT_EOF
12620 #line $LINENO "configure"
12621 #include "confdefs.h"
12622
12623 #if HAVE_DLFCN_H
12624 #include <dlfcn.h>
12625 #endif
12626
12627 #include <stdio.h>
12628
12629 #ifdef RTLD_GLOBAL
12630 # define LT_DLGLOBAL RTLD_GLOBAL
12631 #else
12632 # ifdef DL_GLOBAL
12633 # define LT_DLGLOBAL DL_GLOBAL
12634 # else
12635 # define LT_DLGLOBAL 0
12636 # endif
12637 #endif
12638
12639 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12640 find out it does not work in some platform. */
12641 #ifndef LT_DLLAZY_OR_NOW
12642 # ifdef RTLD_LAZY
12643 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12644 # else
12645 # ifdef DL_LAZY
12646 # define LT_DLLAZY_OR_NOW DL_LAZY
12647 # else
12648 # ifdef RTLD_NOW
12649 # define LT_DLLAZY_OR_NOW RTLD_NOW
12650 # else
12651 # ifdef DL_NOW
12652 # define LT_DLLAZY_OR_NOW DL_NOW
12653 # else
12654 # define LT_DLLAZY_OR_NOW 0
12655 # endif
12656 # endif
12657 # endif
12658 # endif
12659 #endif
12660
12661 /* When -fvisibility=hidden is used, assume the code has been annotated
12662 correspondingly for the symbols needed. */
12663 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12664 int fnord () __attribute__((visibility("default")));
12665 #endif
12666
12667 int fnord () { return 42; }
12668 int main ()
12669 {
12670 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12671 int status = $lt_dlunknown;
12672
12673 if (self)
12674 {
12675 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12676 else
12677 {
12678 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12679 else puts (dlerror ());
12680 }
12681 /* dlclose (self); */
12682 }
12683 else
12684 puts (dlerror ());
12685
12686 return status;
12687 }
12688 _LT_EOF
12689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12690 (eval $ac_link) 2>&5
12691 ac_status=$?
12692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12693 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12694 (./conftest; exit; ) >&5 2>/dev/null
12695 lt_status=$?
12696 case x$lt_status in
12697 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12698 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12699 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12700 esac
12701 else :
12702 # compilation failed
12703 lt_cv_dlopen_self=no
12704 fi
12705 fi
12706 rm -fr conftest*
12707
12708
12709 fi
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12711 $as_echo "$lt_cv_dlopen_self" >&6; }
12712
12713 if test yes = "$lt_cv_dlopen_self"; then
12714 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12716 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12717 if ${lt_cv_dlopen_self_static+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 if test yes = "$cross_compiling"; then :
12721 lt_cv_dlopen_self_static=cross
12722 else
12723 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12724 lt_status=$lt_dlunknown
12725 cat > conftest.$ac_ext <<_LT_EOF
12726 #line $LINENO "configure"
12727 #include "confdefs.h"
12728
12729 #if HAVE_DLFCN_H
12730 #include <dlfcn.h>
12731 #endif
12732
12733 #include <stdio.h>
12734
12735 #ifdef RTLD_GLOBAL
12736 # define LT_DLGLOBAL RTLD_GLOBAL
12737 #else
12738 # ifdef DL_GLOBAL
12739 # define LT_DLGLOBAL DL_GLOBAL
12740 # else
12741 # define LT_DLGLOBAL 0
12742 # endif
12743 #endif
12744
12745 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12746 find out it does not work in some platform. */
12747 #ifndef LT_DLLAZY_OR_NOW
12748 # ifdef RTLD_LAZY
12749 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12750 # else
12751 # ifdef DL_LAZY
12752 # define LT_DLLAZY_OR_NOW DL_LAZY
12753 # else
12754 # ifdef RTLD_NOW
12755 # define LT_DLLAZY_OR_NOW RTLD_NOW
12756 # else
12757 # ifdef DL_NOW
12758 # define LT_DLLAZY_OR_NOW DL_NOW
12759 # else
12760 # define LT_DLLAZY_OR_NOW 0
12761 # endif
12762 # endif
12763 # endif
12764 # endif
12765 #endif
12766
12767 /* When -fvisibility=hidden is used, assume the code has been annotated
12768 correspondingly for the symbols needed. */
12769 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12770 int fnord () __attribute__((visibility("default")));
12771 #endif
12772
12773 int fnord () { return 42; }
12774 int main ()
12775 {
12776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12777 int status = $lt_dlunknown;
12778
12779 if (self)
12780 {
12781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12782 else
12783 {
12784 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12785 else puts (dlerror ());
12786 }
12787 /* dlclose (self); */
12788 }
12789 else
12790 puts (dlerror ());
12791
12792 return status;
12793 }
12794 _LT_EOF
12795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12796 (eval $ac_link) 2>&5
12797 ac_status=$?
12798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12799 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12800 (./conftest; exit; ) >&5 2>/dev/null
12801 lt_status=$?
12802 case x$lt_status in
12803 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12804 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12805 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12806 esac
12807 else :
12808 # compilation failed
12809 lt_cv_dlopen_self_static=no
12810 fi
12811 fi
12812 rm -fr conftest*
12813
12814
12815 fi
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12817 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12818 fi
12819
12820 CPPFLAGS=$save_CPPFLAGS
12821 LDFLAGS=$save_LDFLAGS
12822 LIBS=$save_LIBS
12823 ;;
12824 esac
12825
12826 case $lt_cv_dlopen_self in
12827 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12828 *) enable_dlopen_self=unknown ;;
12829 esac
12830
12831 case $lt_cv_dlopen_self_static in
12832 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12833 *) enable_dlopen_self_static=unknown ;;
12834 esac
12835 fi
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853 striplib=
12854 old_striplib=
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12856 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12857 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12858 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12859 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12861 $as_echo "yes" >&6; }
12862 else
12863 # FIXME - insert some real tests, host_os isn't really good enough
12864 case $host_os in
12865 darwin*)
12866 if test -n "$STRIP"; then
12867 striplib="$STRIP -x"
12868 old_striplib="$STRIP -S"
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12870 $as_echo "yes" >&6; }
12871 else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12874 fi
12875 ;;
12876 *)
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 $as_echo "no" >&6; }
12879 ;;
12880 esac
12881 fi
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894 # Report what library types will actually be built
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12896 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12898 $as_echo "$can_build_shared" >&6; }
12899
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12901 $as_echo_n "checking whether to build shared libraries... " >&6; }
12902 test no = "$can_build_shared" && enable_shared=no
12903
12904 # On AIX, shared libraries and static libraries use the same namespace, and
12905 # are all built from PIC.
12906 case $host_os in
12907 aix3*)
12908 test yes = "$enable_shared" && enable_static=no
12909 if test -n "$RANLIB"; then
12910 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12911 postinstall_cmds='$RANLIB $lib'
12912 fi
12913 ;;
12914
12915 aix[4-9]*)
12916 if test ia64 != "$host_cpu"; then
12917 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12918 yes,aix,yes) ;; # shared object as lib.so file only
12919 yes,svr4,*) ;; # shared object as lib.so archive member only
12920 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12921 esac
12922 fi
12923 ;;
12924 esac
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12926 $as_echo "$enable_shared" >&6; }
12927
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12929 $as_echo_n "checking whether to build static libraries... " >&6; }
12930 # Make sure either enable_shared or enable_static is yes.
12931 test yes = "$enable_shared" || enable_static=yes
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12933 $as_echo "$enable_static" >&6; }
12934
12935
12936
12937
12938 fi
12939 ac_ext=c
12940 ac_cpp='$CPP $CPPFLAGS'
12941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12944
12945 CC=$lt_save_CC
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961 ac_config_commands="$ac_config_commands libtool"
12962
12963
12964
12965
12966 # Only expand once:
12967
12968
12969 test ".$PACKAGE_VERSION" = "." && PACKAGE_VERSION="$VERSION"
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking out linker version info $PACKAGE_VERSION " >&5
12971 $as_echo_n "checking out linker version info $PACKAGE_VERSION ... " >&6; }
12972 MINOR_VERSION=`echo $PACKAGE_VERSION`
12973 MAJOR_VERSION=`echo "$MINOR_VERSION" | sed -e 's/[.].*//'`
12974 MINOR_VERSION=`echo "$MINOR_VERSION" | sed -e "s/^$MAJOR_VERSION//" -e 's/^.//'`
12975 MICRO_VERSION="$MINOR_VERSION"
12976 MINOR_VERSION=`echo "$MICRO_VERSION" | sed -e 's/[.].*//'`
12977 MICRO_VERSION=`echo "$MICRO_VERSION" | sed -e "s/^$MINOR_VERSION//" -e 's/^.//'`
12978 PATCH_VERSION="$MICRO_VERSION"
12979 MICRO_VERSION=`echo "$PATCH_VERSION" | sed -e 's/[^0-9].*//'`
12980 PATCH_VERSION=`echo "$PATCH_VERSION" | sed -e "s/^$MICRO_VERSION//" -e 's/[-.]//'`
12981 if test "_$MICRO_VERSION" = "_" ; then MICRO_VERSION="0" ; fi
12982 if test "_$MINOR_VERSION" = "_" ; then MINOR_VERSION="$MAJOR_VERSION" ; MAJOR_VERSION="0" ; fi
12983 MINOR_VERSION=`echo "$MINOR_VERSION" | sed -e 's/[^0-9].*//'`
12984 RELEASE_INFO="-release $MAJOR_VERSION"
12985 VERSION_INFO="-version-info $MINOR_VERSION:$MICRO_VERSION"
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /$MAJOR_VERSION/$MINOR_VERSION:$MICRO_VERSION (-$MAJOR_VERSION.so.$MINOR_VERSION.0.$MICRO_VERSION)" >&5
12987 $as_echo "/$MAJOR_VERSION/$MINOR_VERSION:$MICRO_VERSION (-$MAJOR_VERSION.so.$MINOR_VERSION.0.$MICRO_VERSION)" >&6; }
12988
12989
12990
12991
12992 # -----------------------------------------------------------------------
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: creating zzip/_msvc.in via zzip/_msvc.sed of config.h.in" >&5
12994 $as_echo "creating zzip/_msvc.in via zzip/_msvc.sed of config.h.in" >&6; }
12995 test -d zzip || mkdir zzip
12996 sed -f $srcdir/zzip/_msvc.sed $srcdir/config.h.in >zzip/_msvc.in
12997 ac_config_headers="$ac_config_headers config.h"
12998
12999 ac_config_commands="$ac_config_commands zzip/_config.h"
13000
13001 ac_config_commands="$ac_config_commands zzip/_msvc.h"
13002
13003
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13005 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13006 # Check whether --enable-maintainer-mode was given.
13007 if test "${enable_maintainer_mode+set}" = set; then :
13008 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13009 else
13010 USE_MAINTAINER_MODE=no
13011 fi
13012
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13014 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13015 if test $USE_MAINTAINER_MODE = yes; then
13016 MAINTAINER_MODE_TRUE=
13017 MAINTAINER_MODE_FALSE='#'
13018 else
13019 MAINTAINER_MODE_TRUE='#'
13020 MAINTAINER_MODE_FALSE=
13021 fi
13022
13023 MAINT=$MAINTAINER_MODE_TRUE
13024
13025
13026
13027
13028 # we need the expanded forms...
13029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13030 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13031
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
13033 $as_echo_n "checking our pkgconfig libname... " >&6; }
13034 test ".$ax_create_pkgconfig_libname" != "." || \
13035 ax_create_pkgconfig_libname="`basename zzip/zziplib.pc .pc`"
13036 test ".$ax_create_pkgconfig_libname" != "." || \
13037 ax_create_pkgconfig_libname="$PACKAGE"
13038 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
13039 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
13041 $as_echo "$ax_create_pkgconfig_libname" >&6; }
13042
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
13044 $as_echo_n "checking our pkgconfig version... " >&6; }
13045 test ".$ax_create_pkgconfig_version" != "." || \
13046 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
13047 test ".$ax_create_pkgconfig_version" != "." || \
13048 ax_create_pkgconfig_version="$VERSION"
13049 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
13050 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
13052 $as_echo "$ax_create_pkgconfig_version" >&6; }
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
13055 $as_echo_n "checking our pkgconfig_libdir... " >&6; }
13056 test ".$pkgconfig_libdir" = "." && \
13057 pkgconfig_libdir='${libdir}/pkgconfig'
13058 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
13059 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
13060 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
13062 $as_echo "$pkgconfig_libdir" >&6; }
13063 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
13065 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
13066
13067
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
13069 $as_echo_n "checking our pkgconfig_libfile... " >&6; }
13070 test ".$pkgconfig_libfile" != "." || \
13071 pkgconfig_libfile="`basename zzip/zziplib.pc`"
13072 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
13073 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
13075 $as_echo "$pkgconfig_libfile" >&6; }
13076 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
13078 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
13079
13080
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
13082 $as_echo_n "checking our package / suffix... " >&6; }
13083 ax_create_pkgconfig_suffix="$program_suffix"
13084 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
13086 $as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
13087
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
13089 $as_echo_n "checking our pkgconfig description... " >&6; }
13090 ax_create_pkgconfig_description="$PACKAGE_SUMMARY"
13091 test ".$ax_create_pkgconfig_description" != "." || \
13092 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
13093 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
13094 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
13096 $as_echo "$ax_create_pkgconfig_description" >&6; }
13097
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
13099 $as_echo_n "checking our pkgconfig requires... " >&6; }
13100 ax_create_pkgconfig_requires="zzip-zlib-config"
13101 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
13102 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
13104 $as_echo "$ax_create_pkgconfig_requires" >&6; }
13105
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
13107 $as_echo_n "checking our pkgconfig ext libs... " >&6; }
13108 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
13109 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
13110 ax_create_pkgconfig_libs="-lzzip"
13111 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
13112 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
13114 $as_echo "$ax_create_pkgconfig_libs" >&6; }
13115
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
13117 $as_echo_n "checking our pkgconfig cppflags... " >&6; }
13118 ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS"
13119 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
13120 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
13122 $as_echo "$ax_create_pkgconfig_cppflags" >&6; }
13123
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
13125 $as_echo_n "checking our pkgconfig ldflags... " >&6; }
13126 ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS"
13127 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
13128 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
13130 $as_echo "$ax_create_pkgconfig_ldflags" >&6; }
13131
13132 test ".$ax_create_pkgconfig_generate" != "." || \
13133 ax_create_pkgconfig_generate="zzip/zziplib.pc"
13134 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
13135 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
13136 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
13138 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
13139
13140 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
13141 ax_create_pkgconfig_src_libdir=`pwd`
13142 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
13143 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13144 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
13145 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
13146 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
13147 $as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
13148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13149 s//\1/
13150 q
13151 }
13152 /^X\(\/\/\)[^/].*/{
13153 s//\1/
13154 q
13155 }
13156 /^X\(\/\/\)$/{
13157 s//\1/
13158 q
13159 }
13160 /^X\(\/\).*/{
13161 s//\1/
13162 q
13163 }
13164 s/.*/./; q'`
13165 test ! -d $ax_create_pkgconfig_src_libdir/src || \
13166 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
13167 case ".$objdir" in
13168 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
13170 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
13171 fi
13172
13173 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
13174 ax_create_pkgconfig_src_headers=`pwd`
13175 v="$ac_top_srcdir" ;
13176 test ".$v" != "." || v="$ax_spec_dir"
13177 test ".$v" != "." || v="$srcdir"
13178 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
13179 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
13180 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13181 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
13182 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
13183 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
13184 $as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
13185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13186 s//\1/
13187 q
13188 }
13189 /^X\(\/\/\)[^/].*/{
13190 s//\1/
13191 q
13192 }
13193 /^X\(\/\/\)$/{
13194 s//\1/
13195 q
13196 }
13197 /^X\(\/\).*/{
13198 s//\1/
13199 q
13200 }
13201 s/.*/./; q'`
13202 test ! -d $ax_create_pkgconfig_src_headers/include || \
13203 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
13205 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
13206 fi
13207
13208
13209 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
13210
13211 # -----------------------------------------------------------------------
13212
13213
13214 if test -z "$ac_cv_pax_tar_tool"; then
13215 # Extract the first word of "pax", so it can be a program name with args.
13216 set dummy pax; ac_word=$2
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13218 $as_echo_n "checking for $ac_word... " >&6; }
13219 if ${ac_cv_path_PAX+:} false; then :
13220 $as_echo_n "(cached) " >&6
13221 else
13222 case $PAX in
13223 [\\/]* | ?:[\\/]*)
13224 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
13225 ;;
13226 *)
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13229 do
13230 IFS=$as_save_IFS
13231 test -z "$as_dir" && as_dir=.
13232 for ac_exec_ext in '' $ac_executable_extensions; do
13233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13234 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
13235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13236 break 2
13237 fi
13238 done
13239 done
13240 IFS=$as_save_IFS
13241
13242 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX=":"
13243 ;;
13244 esac
13245 fi
13246 PAX=$ac_cv_path_PAX
13247 if test -n "$PAX"; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAX" >&5
13249 $as_echo "$PAX" >&6; }
13250 else
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252 $as_echo "no" >&6; }
13253 fi
13254
13255
13256 if test "$ac_cv_path_PAX" != ":"; then
13257 ac_cv_pax_tar_tool="pax"
13258 else #3
13259 # Extract the first word of "gnutar", so it can be a program name with args.
13260 set dummy gnutar; ac_word=$2
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13262 $as_echo_n "checking for $ac_word... " >&6; }
13263 if ${ac_cv_path_GNUTAR+:} false; then :
13264 $as_echo_n "(cached) " >&6
13265 else
13266 case $GNUTAR in
13267 [\\/]* | ?:[\\/]*)
13268 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
13269 ;;
13270 *)
13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13273 do
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
13276 for ac_exec_ext in '' $ac_executable_extensions; do
13277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13278 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280 break 2
13281 fi
13282 done
13283 done
13284 IFS=$as_save_IFS
13285
13286 test -z "$ac_cv_path_GNUTAR" && ac_cv_path_GNUTAR=":"
13287 ;;
13288 esac
13289 fi
13290 GNUTAR=$ac_cv_path_GNUTAR
13291 if test -n "$GNUTAR"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
13293 $as_echo "$GNUTAR" >&6; }
13294 else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297 fi
13298
13299
13300 if test "$ac_cv_path_GNUTAR" != ":"; then
13301 ac_cv_pax_tar_tool="gnutar"
13302 else #1
13303 # Extract the first word of "gtar", so it can be a program name with args.
13304 set dummy gtar; ac_word=$2
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306 $as_echo_n "checking for $ac_word... " >&6; }
13307 if ${ac_cv_path_GTAR+:} false; then :
13308 $as_echo_n "(cached) " >&6
13309 else
13310 case $GTAR in
13311 [\\/]* | ?:[\\/]*)
13312 ac_cv_path_GTAR="$GTAR" # Let the user override the test with a path.
13313 ;;
13314 *)
13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316 for as_dir in $PATH
13317 do
13318 IFS=$as_save_IFS
13319 test -z "$as_dir" && as_dir=.
13320 for ac_exec_ext in '' $ac_executable_extensions; do
13321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13322 ac_cv_path_GTAR="$as_dir/$ac_word$ac_exec_ext"
13323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13324 break 2
13325 fi
13326 done
13327 done
13328 IFS=$as_save_IFS
13329
13330 test -z "$ac_cv_path_GTAR" && ac_cv_path_GTAR=":"
13331 ;;
13332 esac
13333 fi
13334 GTAR=$ac_cv_path_GTAR
13335 if test -n "$GTAR"; then
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTAR" >&5
13337 $as_echo "$GTAR" >&6; }
13338 else
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13340 $as_echo "no" >&6; }
13341 fi
13342
13343
13344 if test "$ac_cv_path_GTAR" != ":"; then
13345 ac_cv_pax_tar_tool="gtar"
13346 else #2
13347 # Extract the first word of "tar", so it can be a program name with args.
13348 set dummy tar; ac_word=$2
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13350 $as_echo_n "checking for $ac_word... " >&6; }
13351 if ${ac_cv_path_TAR+:} false; then :
13352 $as_echo_n "(cached) " >&6
13353 else
13354 case $TAR in
13355 [\\/]* | ?:[\\/]*)
13356 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
13357 ;;
13358 *)
13359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13360 for as_dir in $PATH
13361 do
13362 IFS=$as_save_IFS
13363 test -z "$as_dir" && as_dir=.
13364 for ac_exec_ext in '' $ac_executable_extensions; do
13365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13366 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
13367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13368 break 2
13369 fi
13370 done
13371 done
13372 IFS=$as_save_IFS
13373
13374 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR=":"
13375 ;;
13376 esac
13377 fi
13378 TAR=$ac_cv_path_TAR
13379 if test -n "$TAR"; then
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
13381 $as_echo "$TAR" >&6; }
13382 else
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384 $as_echo "no" >&6; }
13385 fi
13386
13387
13388 if test "$ac_cv_path_TAR" != ":"; then
13389 ac_cv_pax_tar_tool="tar"
13390 fi
13391 fi fi fi #3 #2 #1
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portable tar tool" >&5
13393 $as_echo_n "checking for portable tar tool... " >&6; }
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pax_tar_tool" >&5
13395 $as_echo "$ac_cv_pax_tar_tool" >&6; }
13396 fi
13397
13398
13399 if test "$ac_cv_pax_tar_tool$ax_pax_single_archive" = "pax"; then
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pax single archive option" >&5
13401 $as_echo_n "checking for pax single archive option... " >&6; }
13402 echo foo > conftest.txt ; rm -f conftest.tar
13403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \"\$ac_cv_path_PAX\" -w -O -f conftest.tar conftest.txt"; } >&5
13404 ("$ac_cv_path_PAX" -w -O -f conftest.tar conftest.txt) 2>&5
13405 ac_status=$?
13406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13407 test $ac_status = 0; }
13408 if test -s conftest.tar; then
13409 ax_pax_single_archive="-O" ; ac_hint="(probably a BSD pax)"
13410 else
13411 ax_pax_single_archive=" " ; ac_hint="(the -O option did not work)"
13412 fi
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pax_single_archive $ac_hint" >&5
13414 $as_echo "$ax_pax_single_archive $ac_hint" >&6; }
13415 fi
13416
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to create portable tar archives" >&5
13418 $as_echo_n "checking for command to create portable tar archives... " >&6; }
13419 if test "$ac_cv_pax_tar_tool" = "gnutar"; then
13420 ax_pax_tar_create="'$ac_cv_path_GNUTAR' cf"
13421 elif test "$ac_cv_pax_tar_tool" = "gtar"; then
13422 ax_pax_tar_create="'$ac_cv_path_GTAR' cf"
13423 elif test "$ac_cv_pax_tar_tool" = "pax"; then
13424 ax_pax_tar_create="'$ac_cv_path_PAX' -w $ax_pax_single_archive -f"
13425 elif test "$ac_cv_pax_tar_tool" = "tar"; then
13426 ax_pax_tar_create="'$ac_cv_path_TAR' cf"
13427 else
13428 ax_pax_tar_create=": 'unknown pax tar tool $ac_cv_pax_tar_tool'"
13429 fi
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pax_tar_create" >&5
13431 $as_echo "$ax_pax_tar_create" >&6; }
13432
13433 PAX_TAR_CREATE="$ax_pax_tar_create"
13434
13435
13436
13437
13438
13439 if test -z "$ac_cv_pax_tar_tool"; then
13440 # Extract the first word of "pax", so it can be a program name with args.
13441 set dummy pax; ac_word=$2
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13443 $as_echo_n "checking for $ac_word... " >&6; }
13444 if ${ac_cv_path_PAX+:} false; then :
13445 $as_echo_n "(cached) " >&6
13446 else
13447 case $PAX in
13448 [\\/]* | ?:[\\/]*)
13449 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
13450 ;;
13451 *)
13452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13453 for as_dir in $PATH
13454 do
13455 IFS=$as_save_IFS
13456 test -z "$as_dir" && as_dir=.
13457 for ac_exec_ext in '' $ac_executable_extensions; do
13458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13459 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
13460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13461 break 2
13462 fi
13463 done
13464 done
13465 IFS=$as_save_IFS
13466
13467 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX=":"
13468 ;;
13469 esac
13470 fi
13471 PAX=$ac_cv_path_PAX
13472 if test -n "$PAX"; then
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAX" >&5
13474 $as_echo "$PAX" >&6; }
13475 else
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13478 fi
13479
13480
13481 if test "$ac_cv_path_PAX" != ":"; then
13482 ac_cv_pax_tar_tool="pax"
13483 else #3
13484 # Extract the first word of "gnutar", so it can be a program name with args.
13485 set dummy gnutar; ac_word=$2
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13487 $as_echo_n "checking for $ac_word... " >&6; }
13488 if ${ac_cv_path_GNUTAR+:} false; then :
13489 $as_echo_n "(cached) " >&6
13490 else
13491 case $GNUTAR in
13492 [\\/]* | ?:[\\/]*)
13493 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
13494 ;;
13495 *)
13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 for as_dir in $PATH
13498 do
13499 IFS=$as_save_IFS
13500 test -z "$as_dir" && as_dir=.
13501 for ac_exec_ext in '' $ac_executable_extensions; do
13502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13503 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
13504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13505 break 2
13506 fi
13507 done
13508 done
13509 IFS=$as_save_IFS
13510
13511 test -z "$ac_cv_path_GNUTAR" && ac_cv_path_GNUTAR=":"
13512 ;;
13513 esac
13514 fi
13515 GNUTAR=$ac_cv_path_GNUTAR
13516 if test -n "$GNUTAR"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
13518 $as_echo "$GNUTAR" >&6; }
13519 else
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13522 fi
13523
13524
13525 if test "$ac_cv_path_GNUTAR" != ":"; then
13526 ac_cv_pax_tar_tool="gnutar"
13527 else #1
13528 # Extract the first word of "gtar", so it can be a program name with args.
13529 set dummy gtar; ac_word=$2
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13531 $as_echo_n "checking for $ac_word... " >&6; }
13532 if ${ac_cv_path_GTAR+:} false; then :
13533 $as_echo_n "(cached) " >&6
13534 else
13535 case $GTAR in
13536 [\\/]* | ?:[\\/]*)
13537 ac_cv_path_GTAR="$GTAR" # Let the user override the test with a path.
13538 ;;
13539 *)
13540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13541 for as_dir in $PATH
13542 do
13543 IFS=$as_save_IFS
13544 test -z "$as_dir" && as_dir=.
13545 for ac_exec_ext in '' $ac_executable_extensions; do
13546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13547 ac_cv_path_GTAR="$as_dir/$ac_word$ac_exec_ext"
13548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13549 break 2
13550 fi
13551 done
13552 done
13553 IFS=$as_save_IFS
13554
13555 test -z "$ac_cv_path_GTAR" && ac_cv_path_GTAR=":"
13556 ;;
13557 esac
13558 fi
13559 GTAR=$ac_cv_path_GTAR
13560 if test -n "$GTAR"; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTAR" >&5
13562 $as_echo "$GTAR" >&6; }
13563 else
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565 $as_echo "no" >&6; }
13566 fi
13567
13568
13569 if test "$ac_cv_path_GTAR" != ":"; then
13570 ac_cv_pax_tar_tool="gtar"
13571 else #2
13572 # Extract the first word of "tar", so it can be a program name with args.
13573 set dummy tar; ac_word=$2
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13575 $as_echo_n "checking for $ac_word... " >&6; }
13576 if ${ac_cv_path_TAR+:} false; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13579 case $TAR in
13580 [\\/]* | ?:[\\/]*)
13581 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
13582 ;;
13583 *)
13584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585 for as_dir in $PATH
13586 do
13587 IFS=$as_save_IFS
13588 test -z "$as_dir" && as_dir=.
13589 for ac_exec_ext in '' $ac_executable_extensions; do
13590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13591 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
13592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13593 break 2
13594 fi
13595 done
13596 done
13597 IFS=$as_save_IFS
13598
13599 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR=":"
13600 ;;
13601 esac
13602 fi
13603 TAR=$ac_cv_path_TAR
13604 if test -n "$TAR"; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
13606 $as_echo "$TAR" >&6; }
13607 else
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13610 fi
13611
13612
13613 if test "$ac_cv_path_TAR" != ":"; then
13614 ac_cv_pax_tar_tool="tar"
13615 fi
13616 fi fi fi #3 #2 #1
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portable tar tool" >&5
13618 $as_echo_n "checking for portable tar tool... " >&6; }
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pax_tar_tool" >&5
13620 $as_echo "$ac_cv_pax_tar_tool" >&6; }
13621 fi
13622
13623
13624 if test "$ac_cv_pax_tar_tool$ax_pax_single_archive" = "pax"; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pax single archive option" >&5
13626 $as_echo_n "checking for pax single archive option... " >&6; }
13627 echo foo > conftest.txt ; rm -f conftest.tar
13628 { { $as_echo "$as_me:${as_lineno-$LINENO}: \"\$ac_cv_path_PAX\" -w -O -f conftest.tar conftest.txt"; } >&5
13629 ("$ac_cv_path_PAX" -w -O -f conftest.tar conftest.txt) 2>&5
13630 ac_status=$?
13631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13632 test $ac_status = 0; }
13633 if test -s conftest.tar; then
13634 ax_pax_single_archive="-O" ; ac_hint="(probably a BSD pax)"
13635 else
13636 ax_pax_single_archive=" " ; ac_hint="(the -O option did not work)"
13637 fi
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pax_single_archive $ac_hint" >&5
13639 $as_echo "$ax_pax_single_archive $ac_hint" >&6; }
13640 fi
13641
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to extract portable tar archives" >&5
13643 $as_echo_n "checking for command to extract portable tar archives... " >&6; }
13644 if test "$ac_cv_pax_tar_tool" = "gnutar"; then
13645 ax_pax_tar_extract="'$ac_cv_path_GNUTAR' xf"
13646 elif test "$ac_cv_pax_tar_tool" = "gtar"; then
13647 ax_pax_tar_extract="'$ac_cv_path_GTAR' xf"
13648 elif test "$ac_cv_pax_tar_tool" = "pax"; then
13649 ax_pax_tar_extract="'$ac_cv_path_PAX' -r $ax_pax_single_archive -f"
13650 elif test "$ac_cv_pax_tar_tool" = "tar"; then
13651 ax_pax_tar_extract="'$ac_cv_path_TAR' xf"
13652 else
13653 ax_pax_tar_extract=": 'unknown pax tar tool $ac_cv_pax_tar_tool'"
13654 fi
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pax_tar_extract" >&5
13656 $as_echo "$ax_pax_tar_extract" >&6; }
13657
13658 PAX_TAR_EXTRACT="$ax_pax_tar_extract"
13659
13660
13661
13662 for ac_prog in perl5 perl
13663 do
13664 # Extract the first word of "$ac_prog", so it can be a program name with args.
13665 set dummy $ac_prog; ac_word=$2
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13667 $as_echo_n "checking for $ac_word... " >&6; }
13668 if ${ac_cv_path_PERL+:} false; then :
13669 $as_echo_n "(cached) " >&6
13670 else
13671 case $PERL in
13672 [\\/]* | ?:[\\/]*)
13673 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13674 ;;
13675 *)
13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677 for as_dir in $PATH
13678 do
13679 IFS=$as_save_IFS
13680 test -z "$as_dir" && as_dir=.
13681 for ac_exec_ext in '' $ac_executable_extensions; do
13682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13683 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13685 break 2
13686 fi
13687 done
13688 done
13689 IFS=$as_save_IFS
13690
13691 ;;
13692 esac
13693 fi
13694 PERL=$ac_cv_path_PERL
13695 if test -n "$PERL"; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13697 $as_echo "$PERL" >&6; }
13698 else
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700 $as_echo "no" >&6; }
13701 fi
13702
13703
13704 test -n "$PERL" && break
13705 done
13706 test -n "$PERL" || PERL="echo no perl found for"
13707
13708 for ac_prog in python3
13709 do
13710 # Extract the first word of "$ac_prog", so it can be a program name with args.
13711 set dummy $ac_prog; ac_word=$2
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713 $as_echo_n "checking for $ac_word... " >&6; }
13714 if ${ac_cv_path_PYTHON+:} false; then :
13715 $as_echo_n "(cached) " >&6
13716 else
13717 case $PYTHON in
13718 [\\/]* | ?:[\\/]*)
13719 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13720 ;;
13721 *)
13722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723 for as_dir in $PATH
13724 do
13725 IFS=$as_save_IFS
13726 test -z "$as_dir" && as_dir=.
13727 for ac_exec_ext in '' $ac_executable_extensions; do
13728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13729 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13731 break 2
13732 fi
13733 done
13734 done
13735 IFS=$as_save_IFS
13736
13737 ;;
13738 esac
13739 fi
13740 PYTHON=$ac_cv_path_PYTHON
13741 if test -n "$PYTHON"; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13743 $as_echo "$PYTHON" >&6; }
13744 else
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746 $as_echo "no" >&6; }
13747 fi
13748
13749
13750 test -n "$PYTHON" && break
13751 done
13752 test -n "$PYTHON" || PYTHON="echo no python found for"
13753
13754 for ac_prog in zip pkzip
13755 do
13756 # Extract the first word of "$ac_prog", so it can be a program name with args.
13757 set dummy $ac_prog; ac_word=$2
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13759 $as_echo_n "checking for $ac_word... " >&6; }
13760 if ${ac_cv_path_MKZIP+:} false; then :
13761 $as_echo_n "(cached) " >&6
13762 else
13763 case $MKZIP in
13764 [\\/]* | ?:[\\/]*)
13765 ac_cv_path_MKZIP="$MKZIP" # Let the user override the test with a path.
13766 ;;
13767 *)
13768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13769 for as_dir in $PATH
13770 do
13771 IFS=$as_save_IFS
13772 test -z "$as_dir" && as_dir=.
13773 for ac_exec_ext in '' $ac_executable_extensions; do
13774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13775 ac_cv_path_MKZIP="$as_dir/$ac_word$ac_exec_ext"
13776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13777 break 2
13778 fi
13779 done
13780 done
13781 IFS=$as_save_IFS
13782
13783 ;;
13784 esac
13785 fi
13786 MKZIP=$ac_cv_path_MKZIP
13787 if test -n "$MKZIP"; then
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKZIP" >&5
13789 $as_echo "$MKZIP" >&6; }
13790 else
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792 $as_echo "no" >&6; }
13793 fi
13794
13795
13796 test -n "$MKZIP" && break
13797 done
13798 test -n "$MKZIP" || MKZIP=":"
13799
13800 for ac_prog in xmlto
13801 do
13802 # Extract the first word of "$ac_prog", so it can be a program name with args.
13803 set dummy $ac_prog; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805 $as_echo_n "checking for $ac_word... " >&6; }
13806 if ${ac_cv_path_XMLTO+:} false; then :
13807 $as_echo_n "(cached) " >&6
13808 else
13809 case $XMLTO in
13810 [\\/]* | ?:[\\/]*)
13811 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
13812 ;;
13813 *)
13814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13815 for as_dir in $PATH
13816 do
13817 IFS=$as_save_IFS
13818 test -z "$as_dir" && as_dir=.
13819 for ac_exec_ext in '' $ac_executable_extensions; do
13820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13821 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
13822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13823 break 2
13824 fi
13825 done
13826 done
13827 IFS=$as_save_IFS
13828
13829 ;;
13830 esac
13831 fi
13832 XMLTO=$ac_cv_path_XMLTO
13833 if test -n "$XMLTO"; then
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
13835 $as_echo "$XMLTO" >&6; }
13836 else
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13838 $as_echo "no" >&6; }
13839 fi
13840
13841
13842 test -n "$XMLTO" && break
13843 done
13844 test -n "$XMLTO" || XMLTO=":"
13845
13846
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13848 $as_echo_n "checking for inline... " >&6; }
13849 if ${ac_cv_c_inline+:} false; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 ac_cv_c_inline=no
13853 for ac_kw in inline __inline__ __inline; do
13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13856 #ifndef __cplusplus
13857 typedef int foo_t;
13858 static $ac_kw foo_t static_foo () {return 0; }
13859 $ac_kw foo_t foo () {return 0; }
13860 #endif
13861
13862 _ACEOF
13863 if ac_fn_c_try_compile "$LINENO"; then :
13864 ac_cv_c_inline=$ac_kw
13865 fi
13866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13867 test "$ac_cv_c_inline" != no && break
13868 done
13869
13870 fi
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13872 $as_echo "$ac_cv_c_inline" >&6; }
13873
13874 case $ac_cv_c_inline in
13875 inline | yes) ;;
13876 *)
13877 case $ac_cv_c_inline in
13878 no) ac_val=;;
13879 *) ac_val=$ac_cv_c_inline;;
13880 esac
13881 cat >>confdefs.h <<_ACEOF
13882 #ifndef __cplusplus
13883 #define inline $ac_val
13884 #endif
13885 _ACEOF
13886 ;;
13887 esac
13888
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13890 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13891 if ${ac_cv_c_const+:} false; then :
13892 $as_echo_n "(cached) " >&6
13893 else
13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13896
13897 int
13898 main ()
13899 {
13900
13901 #ifndef __cplusplus
13902 /* Ultrix mips cc rejects this sort of thing. */
13903 typedef int charset[2];
13904 const charset cs = { 0, 0 };
13905 /* SunOS 4.1.1 cc rejects this. */
13906 char const *const *pcpcc;
13907 char **ppc;
13908 /* NEC SVR4.0.2 mips cc rejects this. */
13909 struct point {int x, y;};
13910 static struct point const zero = {0,0};
13911 /* AIX XL C 1.02.0.0 rejects this.
13912 It does not let you subtract one const X* pointer from another in
13913 an arm of an if-expression whose if-part is not a constant
13914 expression */
13915 const char *g = "string";
13916 pcpcc = &g + (g ? g-g : 0);
13917 /* HPUX 7.0 cc rejects these. */
13918 ++pcpcc;
13919 ppc = (char**) pcpcc;
13920 pcpcc = (char const *const *) ppc;
13921 { /* SCO 3.2v4 cc rejects this sort of thing. */
13922 char tx;
13923 char *t = &tx;
13924 char const *s = 0 ? (char *) 0 : (char const *) 0;
13925
13926 *t++ = 0;
13927 if (s) return 0;
13928 }
13929 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13930 int x[] = {25, 17};
13931 const int *foo = &x[0];
13932 ++foo;
13933 }
13934 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13935 typedef const int *iptr;
13936 iptr p = 0;
13937 ++p;
13938 }
13939 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13940 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13941 struct s { int j; const int *ap[3]; } bx;
13942 struct s *b = &bx; b->j = 5;
13943 }
13944 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13945 const int foo = 10;
13946 if (!foo) return 0;
13947 }
13948 return !cs[0] && !zero.x;
13949 #endif
13950
13951 ;
13952 return 0;
13953 }
13954 _ACEOF
13955 if ac_fn_c_try_compile "$LINENO"; then :
13956 ac_cv_c_const=yes
13957 else
13958 ac_cv_c_const=no
13959 fi
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961 fi
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13963 $as_echo "$ac_cv_c_const" >&6; }
13964 if test $ac_cv_c_const = no; then
13965
13966 $as_echo "#define const /**/" >>confdefs.h
13967
13968 fi
13969
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13971 $as_echo_n "checking for C restrict keyword... " >&6; }
13972 if ${acx_cv_c_restrict+:} false; then :
13973 $as_echo_n "(cached) " >&6
13974 else
13975 acx_cv_c_restrict=unsupported
13976
13977 ac_ext=c
13978 ac_cpp='$CPP $CPPFLAGS'
13979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13982
13983 # Try the official restrict keyword, then gcc's __restrict__, then
13984 # SGI's __restrict. __restrict has slightly different semantics than
13985 # restrict (it's a bit stronger, in that __restrict pointers can't
13986 # overlap even with non __restrict pointers), but I think it should be
13987 # okay under the circumstances where restrict is normally used.
13988 for acx_kw in restrict __restrict__ __restrict; do
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13991
13992 int
13993 main ()
13994 {
13995 float * $acx_kw x;
13996 ;
13997 return 0;
13998 }
13999 _ACEOF
14000 if ac_fn_c_try_compile "$LINENO"; then :
14001 acx_cv_c_restrict=$acx_kw; break
14002 fi
14003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14004 done
14005 ac_ext=c
14006 ac_cpp='$CPP $CPPFLAGS'
14007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14010
14011
14012 fi
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_c_restrict" >&5
14014 $as_echo "$acx_cv_c_restrict" >&6; }
14015 if test "$acx_cv_c_restrict" != "restrict"; then
14016 acx_kw="$acx_cv_c_restrict"
14017 if test "$acx_kw" = unsupported; then acx_kw=""; fi
14018
14019 cat >>confdefs.h <<_ACEOF
14020 #define restrict $acx_kw
14021 _ACEOF
14022
14023 fi
14024
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14026 $as_echo_n "checking for ANSI C header files... " >&6; }
14027 if ${ac_cv_header_stdc+:} false; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14032 #include <stdlib.h>
14033 #include <stdarg.h>
14034 #include <string.h>
14035 #include <float.h>
14036
14037 int
14038 main ()
14039 {
14040
14041 ;
14042 return 0;
14043 }
14044 _ACEOF
14045 if ac_fn_c_try_compile "$LINENO"; then :
14046 ac_cv_header_stdc=yes
14047 else
14048 ac_cv_header_stdc=no
14049 fi
14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051
14052 if test $ac_cv_header_stdc = yes; then
14053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14056 #include <string.h>
14057
14058 _ACEOF
14059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14060 $EGREP "memchr" >/dev/null 2>&1; then :
14061
14062 else
14063 ac_cv_header_stdc=no
14064 fi
14065 rm -f conftest*
14066
14067 fi
14068
14069 if test $ac_cv_header_stdc = yes; then
14070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14073 #include <stdlib.h>
14074
14075 _ACEOF
14076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14077 $EGREP "free" >/dev/null 2>&1; then :
14078
14079 else
14080 ac_cv_header_stdc=no
14081 fi
14082 rm -f conftest*
14083
14084 fi
14085
14086 if test $ac_cv_header_stdc = yes; then
14087 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14088 if test "$cross_compiling" = yes; then :
14089 :
14090 else
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14093 #include <ctype.h>
14094 #include <stdlib.h>
14095 #if ((' ' & 0x0FF) == 0x020)
14096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14098 #else
14099 # define ISLOWER(c) \
14100 (('a' <= (c) && (c) <= 'i') \
14101 || ('j' <= (c) && (c) <= 'r') \
14102 || ('s' <= (c) && (c) <= 'z'))
14103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14104 #endif
14105
14106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14107 int
14108 main ()
14109 {
14110 int i;
14111 for (i = 0; i < 256; i++)
14112 if (XOR (islower (i), ISLOWER (i))
14113 || toupper (i) != TOUPPER (i))
14114 return 2;
14115 return 0;
14116 }
14117 _ACEOF
14118 if ac_fn_c_try_run "$LINENO"; then :
14119
14120 else
14121 ac_cv_header_stdc=no
14122 fi
14123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14124 conftest.$ac_objext conftest.beam conftest.$ac_ext
14125 fi
14126
14127 fi
14128 fi
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14130 $as_echo "$ac_cv_header_stdc" >&6; }
14131 if test $ac_cv_header_stdc = yes; then
14132
14133 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14134
14135 fi
14136
14137 ac_header_dirent=no
14138 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14139 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14141 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14142 if eval \${$as_ac_Header+:} false; then :
14143 $as_echo_n "(cached) " >&6
14144 else
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14147 #include <sys/types.h>
14148 #include <$ac_hdr>
14149
14150 int
14151 main ()
14152 {
14153 if ((DIR *) 0)
14154 return 0;
14155 ;
14156 return 0;
14157 }
14158 _ACEOF
14159 if ac_fn_c_try_compile "$LINENO"; then :
14160 eval "$as_ac_Header=yes"
14161 else
14162 eval "$as_ac_Header=no"
14163 fi
14164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165 fi
14166 eval ac_res=\$$as_ac_Header
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14168 $as_echo "$ac_res" >&6; }
14169 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14170 cat >>confdefs.h <<_ACEOF
14171 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14172 _ACEOF
14173
14174 ac_header_dirent=$ac_hdr; break
14175 fi
14176
14177 done
14178 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14179 if test $ac_header_dirent = dirent.h; then
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14181 $as_echo_n "checking for library containing opendir... " >&6; }
14182 if ${ac_cv_search_opendir+:} false; then :
14183 $as_echo_n "(cached) " >&6
14184 else
14185 ac_func_search_save_LIBS=$LIBS
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14188
14189 /* Override any GCC internal prototype to avoid an error.
14190 Use char because int might match the return type of a GCC
14191 builtin and then its argument prototype would still apply. */
14192 #ifdef __cplusplus
14193 extern "C"
14194 #endif
14195 char opendir ();
14196 int
14197 main ()
14198 {
14199 return opendir ();
14200 ;
14201 return 0;
14202 }
14203 _ACEOF
14204 for ac_lib in '' dir; do
14205 if test -z "$ac_lib"; then
14206 ac_res="none required"
14207 else
14208 ac_res=-l$ac_lib
14209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14210 fi
14211 if ac_fn_c_try_link "$LINENO"; then :
14212 ac_cv_search_opendir=$ac_res
14213 fi
14214 rm -f core conftest.err conftest.$ac_objext \
14215 conftest$ac_exeext
14216 if ${ac_cv_search_opendir+:} false; then :
14217 break
14218 fi
14219 done
14220 if ${ac_cv_search_opendir+:} false; then :
14221
14222 else
14223 ac_cv_search_opendir=no
14224 fi
14225 rm conftest.$ac_ext
14226 LIBS=$ac_func_search_save_LIBS
14227 fi
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14229 $as_echo "$ac_cv_search_opendir" >&6; }
14230 ac_res=$ac_cv_search_opendir
14231 if test "$ac_res" != no; then :
14232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14233
14234 fi
14235
14236 else
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14238 $as_echo_n "checking for library containing opendir... " >&6; }
14239 if ${ac_cv_search_opendir+:} false; then :
14240 $as_echo_n "(cached) " >&6
14241 else
14242 ac_func_search_save_LIBS=$LIBS
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14245
14246 /* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14249 #ifdef __cplusplus
14250 extern "C"
14251 #endif
14252 char opendir ();
14253 int
14254 main ()
14255 {
14256 return opendir ();
14257 ;
14258 return 0;
14259 }
14260 _ACEOF
14261 for ac_lib in '' x; do
14262 if test -z "$ac_lib"; then
14263 ac_res="none required"
14264 else
14265 ac_res=-l$ac_lib
14266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14267 fi
14268 if ac_fn_c_try_link "$LINENO"; then :
14269 ac_cv_search_opendir=$ac_res
14270 fi
14271 rm -f core conftest.err conftest.$ac_objext \
14272 conftest$ac_exeext
14273 if ${ac_cv_search_opendir+:} false; then :
14274 break
14275 fi
14276 done
14277 if ${ac_cv_search_opendir+:} false; then :
14278
14279 else
14280 ac_cv_search_opendir=no
14281 fi
14282 rm conftest.$ac_ext
14283 LIBS=$ac_func_search_save_LIBS
14284 fi
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14286 $as_echo "$ac_cv_search_opendir" >&6; }
14287 ac_res=$ac_cv_search_opendir
14288 if test "$ac_res" != no; then :
14289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14290
14291 fi
14292
14293 fi
14294
14295 for ac_header in stdint.h unistd.h windows.h winnt.h winbase.h sys/int_types.h
14296 do :
14297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14298 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14299 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14300 cat >>confdefs.h <<_ACEOF
14301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14302 _ACEOF
14303
14304 fi
14305
14306 done
14307
14308 for ac_header in sys/types.h sys/mman.h sys/stat.h sys/param.h
14309 do :
14310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14311 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14312 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14313 cat >>confdefs.h <<_ACEOF
14314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14315 _ACEOF
14316
14317 fi
14318
14319 done
14320 for ac_header in io.h direct.h zlib.h byteswap.h
14321 do :
14322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14323 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14324 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14325 cat >>confdefs.h <<_ACEOF
14326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14327 _ACEOF
14328
14329 fi
14330
14331 done
14332
14333 for ac_header in fnmatch.h
14334 do :
14335 ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
14336 if test "x$ac_cv_header_fnmatch_h" = xyes; then :
14337 cat >>confdefs.h <<_ACEOF
14338 #define HAVE_FNMATCH_H 1
14339 _ACEOF
14340
14341 fi
14342
14343 done
14344
14345 for ac_func in strcasecmp strnlen strndup
14346 do :
14347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14350 cat >>confdefs.h <<_ACEOF
14351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14352 _ACEOF
14353
14354 fi
14355 done
14356
14357
14358 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14359 if test "x$ac_cv_type_off_t" = xyes; then :
14360
14361 else
14362
14363 cat >>confdefs.h <<_ACEOF
14364 #define off_t long int
14365 _ACEOF
14366
14367 fi
14368
14369 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14370 if test "x$ac_cv_type_size_t" = xyes; then :
14371
14372 else
14373
14374 cat >>confdefs.h <<_ACEOF
14375 #define size_t unsigned int
14376 _ACEOF
14377
14378 fi
14379
14380 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14381 if test "x$ac_cv_type_ssize_t" = xyes; then :
14382
14383 else
14384
14385 cat >>confdefs.h <<_ACEOF
14386 #define ssize_t int
14387 _ACEOF
14388
14389 fi
14390
14391 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14392 if test "x$ac_cv_type_off64_t" = xyes; then :
14393
14394 else
14395
14396 cat >>confdefs.h <<_ACEOF
14397 #define off64_t _zzip_off_t
14398 _ACEOF
14399
14400 fi
14401
14402 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
14403 if test "x$ac_cv_type___int64" = xyes; then :
14404
14405 else
14406
14407 cat >>confdefs.h <<_ACEOF
14408 #define __int64 long long
14409 _ACEOF
14410
14411 fi
14412
14413 if test "xno" = "x$ac_cv_header_stdint_h" ; then
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14415 $as_echo_n "checking size of short... " >&6; }
14416 if ${ac_cv_sizeof_short+:} false; then :
14417 $as_echo_n "(cached) " >&6
14418 else
14419 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421 /* end confdefs.h. */
14422 #include "confdefs.h"
14423 #include <sys/types.h>
14424
14425
14426 int
14427 main ()
14428 {
14429 switch (0) case 0: case (sizeof (short) == $ac_size):;
14430 ;
14431 return 0;
14432 }
14433 _ACEOF
14434 if ac_fn_c_try_compile "$LINENO"; then :
14435 ac_cv_sizeof_short=$ac_size
14436 fi
14437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14438 if test x$ac_cv_sizeof_short != x ; then break; fi
14439 done
14440
14441 fi
14442
14443 if test x$ac_cv_sizeof_short = x ; then
14444 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
14445 fi
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14447 $as_echo "$ac_cv_sizeof_short" >&6; }
14448
14449 cat >>confdefs.h <<_ACEOF
14450 #define SIZEOF_SHORT $ac_cv_sizeof_short
14451 _ACEOF
14452
14453
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14455 $as_echo_n "checking size of int... " >&6; }
14456 if ${ac_cv_sizeof_int+:} false; then :
14457 $as_echo_n "(cached) " >&6
14458 else
14459 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 #include "confdefs.h"
14463 #include <sys/types.h>
14464
14465
14466 int
14467 main ()
14468 {
14469 switch (0) case 0: case (sizeof (int) == $ac_size):;
14470 ;
14471 return 0;
14472 }
14473 _ACEOF
14474 if ac_fn_c_try_compile "$LINENO"; then :
14475 ac_cv_sizeof_int=$ac_size
14476 fi
14477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478 if test x$ac_cv_sizeof_int != x ; then break; fi
14479 done
14480
14481 fi
14482
14483 if test x$ac_cv_sizeof_int = x ; then
14484 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
14485 fi
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14487 $as_echo "$ac_cv_sizeof_int" >&6; }
14488
14489 cat >>confdefs.h <<_ACEOF
14490 #define SIZEOF_INT $ac_cv_sizeof_int
14491 _ACEOF
14492
14493
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14495 $as_echo_n "checking size of long... " >&6; }
14496 if ${ac_cv_sizeof_long+:} false; then :
14497 $as_echo_n "(cached) " >&6
14498 else
14499 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14502 #include "confdefs.h"
14503 #include <sys/types.h>
14504
14505
14506 int
14507 main ()
14508 {
14509 switch (0) case 0: case (sizeof (long) == $ac_size):;
14510 ;
14511 return 0;
14512 }
14513 _ACEOF
14514 if ac_fn_c_try_compile "$LINENO"; then :
14515 ac_cv_sizeof_long=$ac_size
14516 fi
14517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 if test x$ac_cv_sizeof_long != x ; then break; fi
14519 done
14520
14521 fi
14522
14523 if test x$ac_cv_sizeof_long = x ; then
14524 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
14525 fi
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14527 $as_echo "$ac_cv_sizeof_long" >&6; }
14528
14529 cat >>confdefs.h <<_ACEOF
14530 #define SIZEOF_LONG $ac_cv_sizeof_long
14531 _ACEOF
14532
14533
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
14535 $as_echo_n "checking size of int *... " >&6; }
14536 if ${ac_cv_sizeof_int_p+:} false; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14539 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 #include "confdefs.h"
14543 #include <sys/types.h>
14544
14545
14546 int
14547 main ()
14548 {
14549 switch (0) case 0: case (sizeof (int *) == $ac_size):;
14550 ;
14551 return 0;
14552 }
14553 _ACEOF
14554 if ac_fn_c_try_compile "$LINENO"; then :
14555 ac_cv_sizeof_int_p=$ac_size
14556 fi
14557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14558 if test x$ac_cv_sizeof_int_p != x ; then break; fi
14559 done
14560
14561 fi
14562
14563 if test x$ac_cv_sizeof_int_p = x ; then
14564 as_fn_error $? "cannot determine a size for int *" "$LINENO" 5
14565 fi
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
14567 $as_echo "$ac_cv_sizeof_int_p" >&6; }
14568
14569 cat >>confdefs.h <<_ACEOF
14570 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14571 _ACEOF
14572
14573
14574 fi
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14576 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14577 if ${ac_cv_c_bigendian+:} false; then :
14578 $as_echo_n "(cached) " >&6
14579 else
14580 ac_cv_c_bigendian=unknown
14581 # See if we're dealing with a universal compiler.
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 #ifndef __APPLE_CC__
14585 not a universal capable compiler
14586 #endif
14587 typedef int dummy;
14588
14589 _ACEOF
14590 if ac_fn_c_try_compile "$LINENO"; then :
14591
14592 # Check for potential -arch flags. It is not universal unless
14593 # there are at least two -arch flags with different values.
14594 ac_arch=
14595 ac_prev=
14596 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14597 if test -n "$ac_prev"; then
14598 case $ac_word in
14599 i?86 | x86_64 | ppc | ppc64)
14600 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14601 ac_arch=$ac_word
14602 else
14603 ac_cv_c_bigendian=universal
14604 break
14605 fi
14606 ;;
14607 esac
14608 ac_prev=
14609 elif test "x$ac_word" = "x-arch"; then
14610 ac_prev=arch
14611 fi
14612 done
14613 fi
14614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14615 if test $ac_cv_c_bigendian = unknown; then
14616 # See if sys/param.h defines the BYTE_ORDER macro.
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14619 #include <sys/types.h>
14620 #include <sys/param.h>
14621
14622 int
14623 main ()
14624 {
14625 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14626 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14627 && LITTLE_ENDIAN)
14628 bogus endian macros
14629 #endif
14630
14631 ;
14632 return 0;
14633 }
14634 _ACEOF
14635 if ac_fn_c_try_compile "$LINENO"; then :
14636 # It does; now see whether it defined to BIG_ENDIAN or not.
14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14639 #include <sys/types.h>
14640 #include <sys/param.h>
14641
14642 int
14643 main ()
14644 {
14645 #if BYTE_ORDER != BIG_ENDIAN
14646 not big endian
14647 #endif
14648
14649 ;
14650 return 0;
14651 }
14652 _ACEOF
14653 if ac_fn_c_try_compile "$LINENO"; then :
14654 ac_cv_c_bigendian=yes
14655 else
14656 ac_cv_c_bigendian=no
14657 fi
14658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659 fi
14660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661 fi
14662 if test $ac_cv_c_bigendian = unknown; then
14663 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665 /* end confdefs.h. */
14666 #include <limits.h>
14667
14668 int
14669 main ()
14670 {
14671 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14672 bogus endian macros
14673 #endif
14674
14675 ;
14676 return 0;
14677 }
14678 _ACEOF
14679 if ac_fn_c_try_compile "$LINENO"; then :
14680 # It does; now see whether it defined to _BIG_ENDIAN or not.
14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h. */
14683 #include <limits.h>
14684
14685 int
14686 main ()
14687 {
14688 #ifndef _BIG_ENDIAN
14689 not big endian
14690 #endif
14691
14692 ;
14693 return 0;
14694 }
14695 _ACEOF
14696 if ac_fn_c_try_compile "$LINENO"; then :
14697 ac_cv_c_bigendian=yes
14698 else
14699 ac_cv_c_bigendian=no
14700 fi
14701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14702 fi
14703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704 fi
14705 if test $ac_cv_c_bigendian = unknown; then
14706 # Compile a test program.
14707 if test "$cross_compiling" = yes; then :
14708 # Try to guess by grepping values from an object file.
14709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h. */
14711 short int ascii_mm[] =
14712 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14713 short int ascii_ii[] =
14714 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14715 int use_ascii (int i) {
14716 return ascii_mm[i] + ascii_ii[i];
14717 }
14718 short int ebcdic_ii[] =
14719 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14720 short int ebcdic_mm[] =
14721 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14722 int use_ebcdic (int i) {
14723 return ebcdic_mm[i] + ebcdic_ii[i];
14724 }
14725 extern int foo;
14726
14727 int
14728 main ()
14729 {
14730 return use_ascii (foo) == use_ebcdic (foo);
14731 ;
14732 return 0;
14733 }
14734 _ACEOF
14735 if ac_fn_c_try_compile "$LINENO"; then :
14736 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14737 ac_cv_c_bigendian=yes
14738 fi
14739 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14740 if test "$ac_cv_c_bigendian" = unknown; then
14741 ac_cv_c_bigendian=no
14742 else
14743 # finding both strings is unlikely to happen, but who knows?
14744 ac_cv_c_bigendian=unknown
14745 fi
14746 fi
14747 fi
14748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14749 else
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752 $ac_includes_default
14753 int
14754 main ()
14755 {
14756
14757 /* Are we little or big endian? From Harbison&Steele. */
14758 union
14759 {
14760 long int l;
14761 char c[sizeof (long int)];
14762 } u;
14763 u.l = 1;
14764 return u.c[sizeof (long int) - 1] == 1;
14765
14766 ;
14767 return 0;
14768 }
14769 _ACEOF
14770 if ac_fn_c_try_run "$LINENO"; then :
14771 ac_cv_c_bigendian=no
14772 else
14773 ac_cv_c_bigendian=yes
14774 fi
14775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14776 conftest.$ac_objext conftest.beam conftest.$ac_ext
14777 fi
14778
14779 fi
14780 fi
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14782 $as_echo "$ac_cv_c_bigendian" >&6; }
14783 case $ac_cv_c_bigendian in #(
14784 yes)
14785 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14786 ;; #(
14787 no)
14788 ;; #(
14789 universal)
14790
14791 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14792
14793 ;; #(
14794 *)
14795 as_fn_error $? "unknown endianness
14796 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14797 esac
14798
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pointers to integers require aligned access" >&5
14800 $as_echo_n "checking if pointers to integers require aligned access... " >&6; }
14801 if ${ax_cv_have_aligned_access_required+:} false; then :
14802 $as_echo_n "(cached) " >&6
14803 else
14804 if test "$cross_compiling" = "yes"; then
14805 case "$host_cpu" in alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
14806 ax_cv_have_aligned_access_required="yes"
14807 ;; esac
14808 else
14809 if test "$cross_compiling" = yes; then :
14810 ax_cv_have_aligned_access_required=no
14811 else
14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813 /* end confdefs.h. */
14814
14815 #include <stdio.h>
14816 #include <stdlib.h>
14817
14818 int main()
14819 {
14820 char* string = malloc(40);
14821 int i;
14822 for (i=0; i < 40; i++) string[[i]] = i;
14823 {
14824 void* s = string;
14825 int* p = s+1;
14826 int* q = s+2;
14827
14828 if (*p == *q) { return 1; }
14829 }
14830 return 0;
14831 }
14832
14833 _ACEOF
14834 if ac_fn_c_try_run "$LINENO"; then :
14835 ax_cv_have_aligned_access_required=yes
14836 else
14837 ax_cv_have_aligned_access_required=no
14838 fi
14839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14840 conftest.$ac_objext conftest.beam conftest.$ac_ext
14841 fi
14842
14843
14844 fi
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_aligned_access_required" >&5
14846 $as_echo "$ax_cv_have_aligned_access_required" >&6; }
14847 fi
14848 if test "$ax_cv_have_aligned_access_required" = yes ; then
14849
14850 $as_echo "#define HAVE_ALIGNED_ACCESS_REQUIRED 1" >>confdefs.h
14851
14852 fi
14853
14854 # the default is _disabled_!! anyway, result is prefixed in zzip/_config.h!!
14855 # Check whether --enable-largefile was given.
14856 if test "${enable_largefile+set}" = set; then :
14857 enableval=$enable_largefile;
14858 fi
14859
14860 if test "$enable_largefile" != no; then
14861
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14863 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14864 if ${ac_cv_sys_largefile_CC+:} false; then :
14865 $as_echo_n "(cached) " >&6
14866 else
14867 ac_cv_sys_largefile_CC=no
14868 if test "$GCC" != yes; then
14869 ac_save_CC=$CC
14870 while :; do
14871 # IRIX 6.2 and later do not support large files by default,
14872 # so use the C compiler's -n32 option if that helps.
14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h. */
14875 #include <sys/types.h>
14876 /* Check that off_t can represent 2**63 - 1 correctly.
14877 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14878 since some C++ compilers masquerading as C compilers
14879 incorrectly reject 9223372036854775807. */
14880 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14882 && LARGE_OFF_T % 2147483647 == 1)
14883 ? 1 : -1];
14884 int
14885 main ()
14886 {
14887
14888 ;
14889 return 0;
14890 }
14891 _ACEOF
14892 if ac_fn_c_try_compile "$LINENO"; then :
14893 break
14894 fi
14895 rm -f core conftest.err conftest.$ac_objext
14896 CC="$CC -n32"
14897 if ac_fn_c_try_compile "$LINENO"; then :
14898 ac_cv_sys_largefile_CC=' -n32'; break
14899 fi
14900 rm -f core conftest.err conftest.$ac_objext
14901 break
14902 done
14903 CC=$ac_save_CC
14904 rm -f conftest.$ac_ext
14905 fi
14906 fi
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14908 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14909 if test "$ac_cv_sys_largefile_CC" != no; then
14910 CC=$CC$ac_cv_sys_largefile_CC
14911 fi
14912
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14914 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14915 if ${ac_cv_sys_file_offset_bits+:} false; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 while :; do
14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h. */
14921 #include <sys/types.h>
14922 /* Check that off_t can represent 2**63 - 1 correctly.
14923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14924 since some C++ compilers masquerading as C compilers
14925 incorrectly reject 9223372036854775807. */
14926 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14928 && LARGE_OFF_T % 2147483647 == 1)
14929 ? 1 : -1];
14930 int
14931 main ()
14932 {
14933
14934 ;
14935 return 0;
14936 }
14937 _ACEOF
14938 if ac_fn_c_try_compile "$LINENO"; then :
14939 ac_cv_sys_file_offset_bits=no; break
14940 fi
14941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14944 #define _FILE_OFFSET_BITS 64
14945 #include <sys/types.h>
14946 /* Check that off_t can represent 2**63 - 1 correctly.
14947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14948 since some C++ compilers masquerading as C compilers
14949 incorrectly reject 9223372036854775807. */
14950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14952 && LARGE_OFF_T % 2147483647 == 1)
14953 ? 1 : -1];
14954 int
14955 main ()
14956 {
14957
14958 ;
14959 return 0;
14960 }
14961 _ACEOF
14962 if ac_fn_c_try_compile "$LINENO"; then :
14963 ac_cv_sys_file_offset_bits=64; break
14964 fi
14965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14966 ac_cv_sys_file_offset_bits=unknown
14967 break
14968 done
14969 fi
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14971 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14972 case $ac_cv_sys_file_offset_bits in #(
14973 no | unknown) ;;
14974 *)
14975 cat >>confdefs.h <<_ACEOF
14976 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14977 _ACEOF
14978 ;;
14979 esac
14980 rm -rf conftest*
14981 if test $ac_cv_sys_file_offset_bits = unknown; then
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14983 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14984 if ${ac_cv_sys_large_files+:} false; then :
14985 $as_echo_n "(cached) " >&6
14986 else
14987 while :; do
14988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989 /* end confdefs.h. */
14990 #include <sys/types.h>
14991 /* Check that off_t can represent 2**63 - 1 correctly.
14992 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14993 since some C++ compilers masquerading as C compilers
14994 incorrectly reject 9223372036854775807. */
14995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14997 && LARGE_OFF_T % 2147483647 == 1)
14998 ? 1 : -1];
14999 int
15000 main ()
15001 {
15002
15003 ;
15004 return 0;
15005 }
15006 _ACEOF
15007 if ac_fn_c_try_compile "$LINENO"; then :
15008 ac_cv_sys_large_files=no; break
15009 fi
15010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012 /* end confdefs.h. */
15013 #define _LARGE_FILES 1
15014 #include <sys/types.h>
15015 /* Check that off_t can represent 2**63 - 1 correctly.
15016 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15017 since some C++ compilers masquerading as C compilers
15018 incorrectly reject 9223372036854775807. */
15019 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15021 && LARGE_OFF_T % 2147483647 == 1)
15022 ? 1 : -1];
15023 int
15024 main ()
15025 {
15026
15027 ;
15028 return 0;
15029 }
15030 _ACEOF
15031 if ac_fn_c_try_compile "$LINENO"; then :
15032 ac_cv_sys_large_files=1; break
15033 fi
15034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15035 ac_cv_sys_large_files=unknown
15036 break
15037 done
15038 fi
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15040 $as_echo "$ac_cv_sys_large_files" >&6; }
15041 case $ac_cv_sys_large_files in #(
15042 no | unknown) ;;
15043 *)
15044 cat >>confdefs.h <<_ACEOF
15045 #define _LARGE_FILES $ac_cv_sys_large_files
15046 _ACEOF
15047 ;;
15048 esac
15049 rm -rf conftest*
15050 fi
15051
15052
15053 fi
15054
15055 # we know about some internals of ac_sys_largefile here...
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system differentiates 64bit off_t by defines" >&5
15057 $as_echo_n "checking whether system differentiates 64bit off_t by defines... " >&6; }
15058 ac_cv_sys_largefile_sensitive="no"
15059 if test ".${ac_cv_sys_file_offset_bits-no}${ac_cv_sys_large_files-no}" != ".nono"
15060 then ac_cv_sys_largefile_sensitive="yes"
15061
15062 $as_echo "#define LARGEFILE_SENSITIVE 1" >>confdefs.h
15063
15064 fi
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_sensitive" >&5
15066 $as_echo "$ac_cv_sys_largefile_sensitive" >&6; }
15067
15068 test ".$LARGEFILE_CFLAGS" = "." && LARGEFILE_CFLAGS=""
15069
15070 # Check whether --with-largefile was given.
15071 if test "${with_largefile+set}" = set; then :
15072 withval=$with_largefile;
15073 else
15074 with_largefile="no"
15075 fi
15076
15077 if test ".$ac_cv_sys_largefile_sensitive" = ".no" ; then
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiles library with the only off_t seen" >&5
15079 $as_echo "compiles library with the only off_t seen" >&6; }
15080 elif test ".$with_largefile" != ".no" ; then
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiles library as 64bit off_t variant - and renaming some function names" >&5
15082 $as_echo "compiles library as 64bit off_t variant - and renaming some function names" >&6; }
15083 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGEFILE_SOURCE"
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CFLAGS $LARGEFILE_CFLAGS" >&5
15085 $as_echo "..adding CFLAGS $LARGEFILE_CFLAGS" >&6; }
15086 CFLAGS="$CFLAGS $LARGEFILE_CFLAGS"
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding 64 into RELEASE_INFO for the libraries" >&5
15088 $as_echo "..adding 64 into RELEASE_INFO for the libraries" >&6; }
15089 RELEASE_INFO="$RELEASE_INFO-64"
15090 else
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiles library as 32bit off_t variant - largefile is not the default here" >&5
15092 $as_echo "compiles library as 32bit off_t variant - largefile is not the default here" >&6; }
15093 fi
15094
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib being found" >&5
15096 $as_echo_n "checking for zlib being found... " >&6; }
15097 if test "_$ac_cv_header_zlib_h" != "_yes" ; then
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...oops: zlib.h not found - try adding some CPPFLAGS to configure call" >&5
15099 $as_echo "...oops: zlib.h not found - try adding some CPPFLAGS to configure call" >&6; }
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: and when linkage fails you might also need to set some LDFLAGS" >&5
15101 $as_echo "...note: and when linkage fails you might also need to set some LDFLAGS" >&6; }
15102 case "$prefix" in
15103 NONE|/usr)
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: both can be set by specifying the install prefix of the zlib library" >&5
15105 $as_echo "...note: both can be set by specifying the install prefix of the zlib library" >&6; }
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: via --with-zlib=path ... it will test for -Ipath/include -Lpath/lib" >&5
15107 $as_echo "...note: via --with-zlib=path ... it will test for -Ipath/include -Lpath/lib" >&6; }
15108 ;;
15109 *) if test -d $prefix/include ; then
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: -I$prefix/include is not added to CPPFLAGS automatically and" >&5
15111 $as_echo "...note: -I$prefix/include is not added to CPPFLAGS automatically and" >&6; }
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: neither is -L$prefix/lib for LDFLAGS .. both will be if you specify" >&5
15113 $as_echo "...note: neither is -L$prefix/lib for LDFLAGS .. both will be if you specify" >&6; }
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: --with-zlib to configure call" >&5
15115 $as_echo "...note: --with-zlib to configure call" >&6; }
15116 fi
15117 ;;
15118 esac
15119 as_fn_error $? "zlib.h not found: \"zlib\" is required to build \"$PACKAGE\"" "$LINENO" 5
15120 exit 1
15121 fi
15122 cat >conftest.c <<EOF
15123 #include <zlib.h>
15124 const char* zlib_VeRsIoN = ZLIB_VERSION "dEtEcT";
15125 EOF
15126 ZLIB_VERSION=`(eval "$ac_cpp conftest.c") 2>/dev/null \
15127 | grep zlib_VeRsIoN | sed -e 's,.*= *.,,' -e 's,. *.dEtEcT.*,,'`
15128 rm conftest.c
15129
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - $ZLIB_VERSION" >&5
15131 $as_echo "yes - $ZLIB_VERSION" >&6; }
15132 # ----------------------------------------------------------------
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir default" >&5
15134 $as_echo_n "checking docdir default... " >&6; }
15135
15136 # Check whether --with-docdir was given.
15137 if test "${with_docdir+set}" = set; then :
15138 withval=$with_docdir;
15139 else
15140 with_docdir="no"
15141 fi
15142
15143 case "${with_docdir}" in
15144 prefix/*) docdir=` echo "$withval" | sed 's/^prefix/${prefix}'` ;;
15145 datadir/*) docdir=` echo "$withval" | sed 's/^datadir/${datadir}'` ;;
15146 yes) docdir='${prefix}/doc' ;;
15147 no) docdir='${datadir}/doc' ;;
15148 /*|\\*|a-zA-Z:*) docdir="$with_docdir" ;;
15149 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops" >&5
15150 $as_echo "oops" >&6; }
15151 as_fn_error $? "bad value ${withval} for --with-docdir" "$LINENO" 5
15152 ;;
15153 esac
15154
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15156 $as_echo "$docdir" >&6; }
15157 # ----------------------------------------------------------------
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using debugging messages in libraries" >&5
15159 $as_echo_n "checking whether using debugging messages in libraries... " >&6; }
15160
15161 # Check whether --with-debug was given.
15162 if test "${with_debug+set}" = set; then :
15163 withval=$with_debug; case "${withval}" in
15164 yes|no) with_debug="$withval" ;;
15165 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops" >&5
15166 $as_echo "oops" >&6; }
15167 as_fn_error $? "bad value ${withval} for --with-debug" "$LINENO" 5 ;;
15168 esac
15169 else
15170 with_debug="no"
15171 fi
15172
15173 test "$with_debug" != "yes" && with_debug="no" # yes or no
15174 test "$with_debug" = "yes" && export CFLAGS="$CFLAGS -DDEBUG"
15175 result="$with_debug" ; test "$result" = "yes" && result="yes, added -DDEBUG"
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
15177 $as_echo "$result" >&6; }
15178 if test "$with_debug" = "yes" ; then if test -n "$RELEASE_INFO" ; then
15179 RELEASE_INFO="$RELEASE_INFO-dbg"
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: modified release" >&5
15181 $as_echo "modified release" >&6; }
15182 fi fi
15183 # ----------------------------------------------------------------
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether thread stack is too small for bufsiz buffers" >&5
15185 $as_echo_n "checking whether thread stack is too small for bufsiz buffers... " >&6; }
15186 # many embedded platforms, superthreaded systems and kernel usage
15187 # will severely limit the stackspace for its threads. Use _LOWSTK
15188 # compile-define on those platforms.
15189
15190 # Check whether --with-lowstk was given.
15191 if test "${with_lowstk+set}" = set; then :
15192 withval=$with_lowstk; case "${withval}" in
15193 yes|no|auto) with_lowstk="$withval" ;;
15194 *) as_fn_error $? "bad value ${withval} for --with-lowstk" "$LINENO" 5 ;;
15195 esac
15196 else
15197 with_lowstk="auto"
15198 fi
15199
15200 if test "$with_lowstk" = "auto"; then
15201 case $target in
15202 *-palmos-*) $with_lowstk="yes" ;;
15203 esac
15204 fi
15205 test "$with_lowstk" != "yes" && with_lowstk="no" # yes or no
15206 test "$with_lowstk" = "yes" && CFLAGS="$CFLAGS -D_LOWSTK"
15207 result="$with_lowstk" ; test "$result" = "yes" && result="yes, added -D_LOWSTK"
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lowstk" >&5
15209 $as_echo "$with_lowstk" >&6; }
15210 # ---------------------------------------------------------------
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether can use mmap for file scanning" >&5
15212 $as_echo_n "checking whether can use mmap for file scanning... " >&6; }
15213 # system with mmap are probably better performing an searching
15214 # and parsing - atleast memory consumption is far better
15215 # Check whether --enable-mmap was given.
15216 if test "${enable_mmap+set}" = set; then :
15217 enableval=$enable_mmap; case "${enableval}" in
15218 yes|no|auto) enable_mmap="${enableval}" ;;
15219 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops" >&5
15220 $as_echo "oops" >&6; }
15221 as_fn_error $? "bad value ${enableval} for --disable-mmap" "$LINENO" 5 ;;
15222 esac
15223 else
15224 enable_mmap="auto"
15225 fi
15226
15227 if test "$enable_mmap" = "auto"
15228 then
15229 test "$ac_cv_header_winbase_h" && enable_mmap="yes, winbase.h"
15230 test "$ac_cv_header_sys_mman_h" && enable_mmap="yes, sys/mman.h"
15231 fi
15232 case "$enable_mmap" in
15233 yes|yes,*) CFLAGS="$CFLAGS -D_USE_MMAP"
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mmap" >&5
15235 $as_echo "$enable_mmap" >&6; } ;;
15236 *) enable_mmap="no"
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (just a bit slower)" >&5
15238 $as_echo "no (just a bit slower)" >&6; } ;;
15239 esac
15240 # ---------------------------------------------------------------
15241
15242
15243
15244
15245
15246
15247
15248 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15249 if test -n "$ac_tool_prefix"; then
15250 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15251 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15253 $as_echo_n "checking for $ac_word... " >&6; }
15254 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15255 $as_echo_n "(cached) " >&6
15256 else
15257 case $PKG_CONFIG in
15258 [\\/]* | ?:[\\/]*)
15259 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15260 ;;
15261 *)
15262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15263 for as_dir in $PATH
15264 do
15265 IFS=$as_save_IFS
15266 test -z "$as_dir" && as_dir=.
15267 for ac_exec_ext in '' $ac_executable_extensions; do
15268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15269 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15271 break 2
15272 fi
15273 done
15274 done
15275 IFS=$as_save_IFS
15276
15277 ;;
15278 esac
15279 fi
15280 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15281 if test -n "$PKG_CONFIG"; then
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15283 $as_echo "$PKG_CONFIG" >&6; }
15284 else
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15286 $as_echo "no" >&6; }
15287 fi
15288
15289
15290 fi
15291 if test -z "$ac_cv_path_PKG_CONFIG"; then
15292 ac_pt_PKG_CONFIG=$PKG_CONFIG
15293 # Extract the first word of "pkg-config", so it can be a program name with args.
15294 set dummy pkg-config; ac_word=$2
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15296 $as_echo_n "checking for $ac_word... " >&6; }
15297 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15298 $as_echo_n "(cached) " >&6
15299 else
15300 case $ac_pt_PKG_CONFIG in
15301 [\\/]* | ?:[\\/]*)
15302 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15303 ;;
15304 *)
15305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15306 for as_dir in $PATH
15307 do
15308 IFS=$as_save_IFS
15309 test -z "$as_dir" && as_dir=.
15310 for ac_exec_ext in '' $ac_executable_extensions; do
15311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15312 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15314 break 2
15315 fi
15316 done
15317 done
15318 IFS=$as_save_IFS
15319
15320 ;;
15321 esac
15322 fi
15323 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15324 if test -n "$ac_pt_PKG_CONFIG"; then
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15326 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15327 else
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15329 $as_echo "no" >&6; }
15330 fi
15331
15332 if test "x$ac_pt_PKG_CONFIG" = x; then
15333 PKG_CONFIG=""
15334 else
15335 case $cross_compiling:$ac_tool_warned in
15336 yes:)
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15339 ac_tool_warned=yes ;;
15340 esac
15341 PKG_CONFIG=$ac_pt_PKG_CONFIG
15342 fi
15343 else
15344 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15345 fi
15346
15347 fi
15348 if test -n "$PKG_CONFIG"; then
15349 _pkg_min_version=0.9.0
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15351 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15352 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15354 $as_echo "yes" >&6; }
15355 else
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15357 $as_echo "no" >&6; }
15358 PKG_CONFIG=""
15359 fi
15360 fi
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether making SDL parts" >&5
15362 $as_echo_n "checking whether making SDL parts... " >&6; }
15363 SDL=""
15364 SDL_GENERATE=""
15365 # Check whether --enable-sdl was given.
15366 if test "${enable_sdl+set}" = set; then :
15367 enableval=$enable_sdl;
15368 else
15369 enable_sdl="no"
15370 fi
15371
15372 if test "$enable_sdl" = "no" ; then
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabled" >&5
15374 $as_echo "no, disabled" >&6; }
15375 else
15376 enable_sdl1=`$PKG_CONFIG --modversion sdl 2>/dev/null`
15377 if test -z "$enable_sdl1"; then
15378 enable_sdl2=`$PKG_CONFIG --modversion sdl2 2>/dev/null`
15379 if test -z "$enable_sdl2"; then
15380 enable_sdl3=`sdl-config --version 2>/dev/null`
15381 SDL_GENERATE="sdl-uninstalled.pc"
15382 enable_sdl="$enable_sdl3 (sdl-config)"
15383 else
15384 enable_sdl="$enable_sdl2 (pkgconfig sdl2)"
15385 fi
15386 else
15387 enable_sdl="$enable_sdl1 (pkgconfig sdl)"
15388 fi
15389 enable_sdl="$enable_sdl."
15390 case ".$enable_sdl" in
15391 .1.*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using SDL $enable_sdl" >&5
15392 $as_echo "yes, using SDL $enable_sdl" >&6; }
15393 SDL="SDL" ;;
15394 .2.*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, untested $enable_sdl" >&5
15395 $as_echo "yes, untested $enable_sdl" >&6; }
15396 SDL="SDL" ;;
15397 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, $enable_sdl" >&5
15398 $as_echo "no, $enable_sdl" >&6; } ;;
15399 esac
15400 if test -n "$SDL_GENERATE"; then
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled SDL generation of... $SDL_GENERATE" >&5
15402 $as_echo "enabled SDL generation of... $SDL_GENERATE" >&6; }
15403 fi
15404 fi
15405
15406
15407
15408 # ----------------------------------------------------------------
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using address sanitizer" >&5
15410 $as_echo_n "checking whether using address sanitizer... " >&6; }
15411
15412 # Check whether --with-asan was given.
15413 if test "${with_asan+set}" = set; then :
15414 withval=$with_asan; case "${withval}" in
15415 yes|no) with_asan="$withval" ;;
15416 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops" >&5
15417 $as_echo "oops" >&6; }
15418 as_fn_error $? "bad value ${withval} for --with-asan" "$LINENO" 5 ;;
15419 esac
15420 else
15421 with_asan="no"
15422 fi
15423
15424 ASAN_LIBS=""
15425 ASAN_CFLAGS=""
15426 if test ".$with_asan" = ".yes" ; then
15427 ASAN_LIBS="-lasan"
15428 ASAN_CFLAGS="-fsanitize=address"
15429 fi
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_asan, $ASAN_CFLAGS" >&5
15431 $as_echo "$with_asan, $ASAN_CFLAGS" >&6; }
15432
15433
15434 # ---------------------------------------------------------------
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking running extra tests on make check" >&5
15436 $as_echo_n "checking running extra tests on make check... " >&6; }
15437 if test "MKZIP" != ":" ; then
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15439 $as_echo "yes" >&6; }
15440 ZIPTESTS=""
15441 else
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15443 $as_echo "no" >&6; }
15444 ZIPTESTS="#"
15445 fi
15446
15447 # ---------------------------------------------------------------
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking link options" >&5
15449 $as_echo_n "checking link options... " >&6; }
15450 ZZIPLIB_LDFLAGS=""
15451 case "$host_os" in mingw*)
15452 # we may assume that the backend is gnu-ld but DLLs need full resolution
15453 ZZIPLIB_LDFLAGS="${wl}-no-undefined ${wl}-export-all-symbols -mconsole"
15454 RESOLVES=' '
15455 ;; darwin*)
15456 # darwin never uses gnu-ld but the linker can do it anyway
15457 ZZIPLIB_LDFLAGS="-export-dynamic"
15458 RESOLVES=" # "
15459 ;; *)
15460 if test ".$can_build_shared" != ".no" ; then
15461 ZZIPLIB_LDFLAGS="-export-dynamic"
15462 if test ".$lt_cv_prog_gnu_ld" == ".yes" ; then
15463 ZZIPLIB_LDFLAGS="${wl}--export-dynamic"
15464 # TODO: that is for backward compatibility only
15465 fi
15466 fi
15467 RESOLVES=" # "
15468 ;; esac
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZZIPLIB_LDFLAGS $RESOLVES" >&5
15470 $as_echo "$ZZIPLIB_LDFLAGS $RESOLVES" >&6; }
15471
15472
15473
15474 # Check whether --with-defines was given.
15475 if test "${with_defines+set}" = set; then :
15476 withval=$with_defines;
15477 else
15478 with_defines="normal"
15479 fi
15480
15481
15482 #
15483 case ",$with_defines," in *,easy,*)
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CFLAGS -DZZIP_EASY" >&5
15485 $as_echo "..adding CFLAGS -DZZIP_EASY" >&6; }
15486 CFLAGS="$CFLAGS -DZZIP_EASY"
15487 ;; esac
15488 case ",$with_defines," in *,harden,*)
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CFLAGS -DZZIP_HARDEN" >&5
15490 $as_echo "..adding CFLAGS -DZZIP_HARDEN" >&6; }
15491 CFLAGS="$CFLAGS -DZZIP_HARDEN"
15492 ;; esac
15493 case ",$with_defines," in *,allow_modulo_entries,*)
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CFLAGS -DZZIP_ALLOW_MODULO_ENTRIES" >&5
15495 $as_echo "..adding CFLAGS -DZZIP_ALLOW_MODULO_ENTRIES" >&6; }
15496 CFLAGS="$CFLAGS -DZZIP_ALLOW_MODULO_ENTRIES"
15497 ;; esac
15498
15499 # ---------------------------------------------------------------
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking auto silent in maintainer mode" >&5
15501 $as_echo_n "checking auto silent in maintainer mode... " >&6; }
15502 if test "$USE_MAINTAINER_MODE" = "no" ; then
15503 test ".$TIMEOUT" = "." && TIMEOUT="9"
15504 AUTOHEADER="sleep $TIMEOUT ; true || autoheader || skipped"
15505 AUTOMAKE="sleep $TIMEOUT ; true || automake || skipped"
15506 AUTOCONF="sleep $TIMEOUT ; true || autoconf || skipped"
15507 if test ".$LIBTOOL" != "." ; then
15508 LIBTOOL="$LIBTOOL --silent"
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool-silent, auto-sleep-9" >&5
15510 $as_echo "libtool-silent, auto-sleep-9" >&6; }
15511 else
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto-sleep-9" >&5
15513 $as_echo "auto-sleep-9" >&6; }
15514 fi
15515 else
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15517 $as_echo "no" >&6; }
15518 fi
15519
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS frame-pointer" >&5
15521 $as_echo_n "checking CFLAGS frame-pointer... " >&6; }
15522 # Check whether --enable-frame-pointer was given.
15523 if test "${enable_frame_pointer+set}" = set; then :
15524 enableval=$enable_frame_pointer;
15525 fi
15526
15527 if test ".$enable_frame_pointer" = "."; then
15528 case ".$enable_debug" in .|.no|.no,*) : ;; *) enable_frame_pointer="$enable_debug" ;; esac
15529 case ".$with_debug" in .|.no|.no,*) : ;; *) enable_frame_pointer="$with_debug" ;; esac
15530 fi
15531 case ".$enable_frame_pointer" in
15532 .|.no|.no,*) test ".$enable_frame_pointer" = "." && enable_frame_pointer="no"
15533 CFLAGS=`echo " $CFLAGS " | sed -e 's/ -g / /'`
15534 if test ".$GCC" = ".yes" ; then
15535 CFLAGS="$CFLAGS -fomit-frame-pointer"
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_frame_pointer, -fomit-frame-pointer added" >&5
15537 $as_echo "$enable_frame_pointer, -fomit-frame-pointer added" >&6; }
15538 else
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_frame_pointer, -g removed" >&5
15540 $as_echo "$enable_frame_pointer, -g removed" >&6; }
15541 fi ;;
15542 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_frame_pointer, kept" >&5
15543 $as_echo "$enable_frame_pointer, kept" >&6; } ;;
15544 esac
15545
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
15547 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
15548 if ${ac_cv_cflags_warn_all+:} false; then :
15549 $as_echo_n "(cached) " >&6
15550 else
15551 ac_cv_cflags_warn_all="no, unknown"
15552
15553 ac_ext=c
15554 ac_cpp='$CPP $CPPFLAGS'
15555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15558
15559 ac_save_CFLAGS="$CFLAGS"
15560 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" #
15561 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15563 /* end confdefs.h. */
15564
15565 int
15566 main ()
15567 {
15568 return 0;
15569 ;
15570 return 0;
15571 }
15572 _ACEOF
15573 if ac_fn_c_try_compile "$LINENO"; then :
15574 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
15575 fi
15576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15577 done
15578 CFLAGS="$ac_save_CFLAGS"
15579 ac_ext=c
15580 ac_cpp='$CPP $CPPFLAGS'
15581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15584
15585
15586 fi
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
15588 $as_echo "$ac_cv_cflags_warn_all" >&6; }
15589 case ".$ac_cv_cflags_warn_all" in
15590 .ok|.ok,*) ;;
15591 .|.no|.no,*)
15592 ;;
15593 *)
15594 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
15595 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
15596 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
15597 ac_status=$?
15598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15599 test $ac_status = 0; }
15600 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
15601 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
15602 ac_status=$?
15603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15604 test $ac_status = 0; }
15605 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
15606 fi
15607 ;;
15608 esac
15609
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wpointer-arith" >&5
15611 $as_echo_n "checking CFLAGS for gcc -Wpointer-arith... " >&6; }
15612 if ${ac_cv_cflags_gcc_option__Wpointer_arith+:} false; then :
15613 $as_echo_n "(cached) " >&6
15614 else
15615 ac_cv_cflags_gcc_option__Wpointer_arith="no, unknown"
15616
15617 ac_ext=c
15618 ac_cpp='$CPP $CPPFLAGS'
15619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15622
15623 ac_save_CFLAGS="$CFLAGS"
15624 for ac_arg in "-pedantic -Werror % -Wpointer-arith" "-pedantic % -Wpointer-arith %% no, obsolete" #
15625 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15627 /* end confdefs.h. */
15628
15629 int
15630 main ()
15631 {
15632 return 0;
15633 ;
15634 return 0;
15635 }
15636 _ACEOF
15637 if ac_fn_c_try_compile "$LINENO"; then :
15638 ac_cv_cflags_gcc_option__Wpointer_arith=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
15639 fi
15640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15641 done
15642 CFLAGS="$ac_save_CFLAGS"
15643 ac_ext=c
15644 ac_cpp='$CPP $CPPFLAGS'
15645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15648
15649
15650 fi
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wpointer_arith" >&5
15652 $as_echo "$ac_cv_cflags_gcc_option__Wpointer_arith" >&6; }
15653 case ".$ac_cv_cflags_gcc_option__Wpointer_arith" in
15654 .ok|.ok,*) ;;
15655 .|.no|.no,*) ;;
15656 *)
15657 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wpointer_arith " 2>&1 >/dev/null
15658 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wpointer_arith"; } >&5
15659 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wpointer_arith) 2>&5
15660 ac_status=$?
15661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15662 test $ac_status = 0; }
15663 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wpointer_arith\""; } >&5
15664 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wpointer_arith") 2>&5
15665 ac_status=$?
15666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15667 test $ac_status = 0; }
15668 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wpointer_arith"
15669 fi
15670 ;;
15671 esac
15672
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wsign-compare" >&5
15674 $as_echo_n "checking CFLAGS for gcc -Wsign-compare... " >&6; }
15675 if ${ac_cv_cflags_gcc_option__Wsign_compare+:} false; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678 ac_cv_cflags_gcc_option__Wsign_compare="no, unknown"
15679
15680 ac_ext=c
15681 ac_cpp='$CPP $CPPFLAGS'
15682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15685
15686 ac_save_CFLAGS="$CFLAGS"
15687 for ac_arg in "-pedantic -Werror % -Wsign-compare" "-pedantic % -Wsign-compare %% no, obsolete" #
15688 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15691
15692 int
15693 main ()
15694 {
15695 return 0;
15696 ;
15697 return 0;
15698 }
15699 _ACEOF
15700 if ac_fn_c_try_compile "$LINENO"; then :
15701 ac_cv_cflags_gcc_option__Wsign_compare=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
15702 fi
15703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15704 done
15705 CFLAGS="$ac_save_CFLAGS"
15706 ac_ext=c
15707 ac_cpp='$CPP $CPPFLAGS'
15708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15711
15712
15713 fi
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wsign_compare" >&5
15715 $as_echo "$ac_cv_cflags_gcc_option__Wsign_compare" >&6; }
15716 case ".$ac_cv_cflags_gcc_option__Wsign_compare" in
15717 .ok|.ok,*) ;;
15718 .|.no|.no,*) ;;
15719 *)
15720 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wsign_compare " 2>&1 >/dev/null
15721 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wsign_compare"; } >&5
15722 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wsign_compare) 2>&5
15723 ac_status=$?
15724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15725 test $ac_status = 0; }
15726 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wsign_compare\""; } >&5
15727 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wsign_compare") 2>&5
15728 ac_status=$?
15729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15730 test $ac_status = 0; }
15731 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wsign_compare"
15732 fi
15733 ;;
15734 esac
15735
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wmissing-declarations" >&5
15737 $as_echo_n "checking CFLAGS for gcc -Wmissing-declarations... " >&6; }
15738 if ${ac_cv_cflags_gcc_option__Wmissing_declarations+:} false; then :
15739 $as_echo_n "(cached) " >&6
15740 else
15741 ac_cv_cflags_gcc_option__Wmissing_declarations="no, unknown"
15742
15743 ac_ext=c
15744 ac_cpp='$CPP $CPPFLAGS'
15745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15748
15749 ac_save_CFLAGS="$CFLAGS"
15750 for ac_arg in "-pedantic -Werror % -Wmissing-declarations" "-pedantic % -Wmissing-declarations %% no, obsolete" #
15751 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h. */
15754
15755 int
15756 main ()
15757 {
15758 return 0;
15759 ;
15760 return 0;
15761 }
15762 _ACEOF
15763 if ac_fn_c_try_compile "$LINENO"; then :
15764 ac_cv_cflags_gcc_option__Wmissing_declarations=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
15765 fi
15766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15767 done
15768 CFLAGS="$ac_save_CFLAGS"
15769 ac_ext=c
15770 ac_cpp='$CPP $CPPFLAGS'
15771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15774
15775
15776 fi
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wmissing_declarations" >&5
15778 $as_echo "$ac_cv_cflags_gcc_option__Wmissing_declarations" >&6; }
15779 case ".$ac_cv_cflags_gcc_option__Wmissing_declarations" in
15780 .ok|.ok,*) ;;
15781 .|.no|.no,*) ;;
15782 *)
15783 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wmissing_declarations " 2>&1 >/dev/null
15784 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wmissing_declarations"; } >&5
15785 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wmissing_declarations) 2>&5
15786 ac_status=$?
15787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15788 test $ac_status = 0; }
15789 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wmissing_declarations\""; } >&5
15790 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmissing_declarations") 2>&5
15791 ac_status=$?
15792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15793 test $ac_status = 0; }
15794 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmissing_declarations"
15795 fi
15796 ;;
15797 esac
15798
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wdeclaration-after-statement" >&5
15800 $as_echo_n "checking CFLAGS for gcc -Wdeclaration-after-statement... " >&6; }
15801 if ${ac_cv_cflags_gcc_option__Wdeclaration_after_statement+:} false; then :
15802 $as_echo_n "(cached) " >&6
15803 else
15804 ac_cv_cflags_gcc_option__Wdeclaration_after_statement="no, unknown"
15805
15806 ac_ext=c
15807 ac_cpp='$CPP $CPPFLAGS'
15808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15811
15812 ac_save_CFLAGS="$CFLAGS"
15813 for ac_arg in "-pedantic -Werror % -Wdeclaration-after-statement" "-pedantic % -Wdeclaration-after-statement %% no, obsolete" #
15814 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h. */
15817
15818 int
15819 main ()
15820 {
15821 return 0;
15822 ;
15823 return 0;
15824 }
15825 _ACEOF
15826 if ac_fn_c_try_compile "$LINENO"; then :
15827 ac_cv_cflags_gcc_option__Wdeclaration_after_statement=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
15828 fi
15829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15830 done
15831 CFLAGS="$ac_save_CFLAGS"
15832 ac_ext=c
15833 ac_cpp='$CPP $CPPFLAGS'
15834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15837
15838
15839 fi
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wdeclaration_after_statement" >&5
15841 $as_echo "$ac_cv_cflags_gcc_option__Wdeclaration_after_statement" >&6; }
15842 case ".$ac_cv_cflags_gcc_option__Wdeclaration_after_statement" in
15843 .ok|.ok,*) ;;
15844 .|.no|.no,*) ;;
15845 *)
15846 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wdeclaration_after_statement " 2>&1 >/dev/null
15847 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wdeclaration_after_statement"; } >&5
15848 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wdeclaration_after_statement) 2>&5
15849 ac_status=$?
15850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15851 test $ac_status = 0; }
15852 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wdeclaration_after_statement\""; } >&5
15853 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wdeclaration_after_statement") 2>&5
15854 ac_status=$?
15855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15856 test $ac_status = 0; }
15857 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wdeclaration_after_statement"
15858 fi
15859 ;;
15860 esac
15861
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Werror-implicit-function-declaration" >&5
15863 $as_echo_n "checking CFLAGS for gcc -Werror-implicit-function-declaration... " >&6; }
15864 if ${ac_cv_cflags_gcc_option__Werror_implicit_function_declaration+:} false; then :
15865 $as_echo_n "(cached) " >&6
15866 else
15867 ac_cv_cflags_gcc_option__Werror_implicit_function_declaration="no, unknown"
15868
15869 ac_ext=c
15870 ac_cpp='$CPP $CPPFLAGS'
15871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15874
15875 ac_save_CFLAGS="$CFLAGS"
15876 for ac_arg in "-pedantic -Werror % -Werror-implicit-function-declaration" "-pedantic % -Werror-implicit-function-declaration %% no, obsolete" #
15877 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880
15881 int
15882 main ()
15883 {
15884 return 0;
15885 ;
15886 return 0;
15887 }
15888 _ACEOF
15889 if ac_fn_c_try_compile "$LINENO"; then :
15890 ac_cv_cflags_gcc_option__Werror_implicit_function_declaration=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
15891 fi
15892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15893 done
15894 CFLAGS="$ac_save_CFLAGS"
15895 ac_ext=c
15896 ac_cpp='$CPP $CPPFLAGS'
15897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15900
15901
15902 fi
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" >&5
15904 $as_echo "$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" >&6; }
15905 case ".$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" in
15906 .ok|.ok,*) ;;
15907 .|.no|.no,*) ;;
15908 *)
15909 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration " 2>&1 >/dev/null
15910 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration"; } >&5
15911 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration) 2>&5
15912 ac_status=$?
15913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15914 test $ac_status = 0; }
15915 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration\""; } >&5
15916 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration") 2>&5
15917 ac_status=$?
15918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15919 test $ac_status = 0; }
15920 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration"
15921 fi
15922 ;;
15923 esac
15924
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wstrict-aliasing" >&5
15926 $as_echo_n "checking CFLAGS for gcc -Wstrict-aliasing... " >&6; }
15927 if ${ac_cv_cflags_gcc_option__Wstrict_aliasing+:} false; then :
15928 $as_echo_n "(cached) " >&6
15929 else
15930 ac_cv_cflags_gcc_option__Wstrict_aliasing="no, unknown"
15931
15932 ac_ext=c
15933 ac_cpp='$CPP $CPPFLAGS'
15934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15937
15938 ac_save_CFLAGS="$CFLAGS"
15939 for ac_arg in "-pedantic -Werror % -Wstrict-aliasing" "-pedantic % -Wstrict-aliasing %% no, obsolete" #
15940 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15943
15944 int
15945 main ()
15946 {
15947 return 0;
15948 ;
15949 return 0;
15950 }
15951 _ACEOF
15952 if ac_fn_c_try_compile "$LINENO"; then :
15953 ac_cv_cflags_gcc_option__Wstrict_aliasing=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
15954 fi
15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956 done
15957 CFLAGS="$ac_save_CFLAGS"
15958 ac_ext=c
15959 ac_cpp='$CPP $CPPFLAGS'
15960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15963
15964
15965 fi
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wstrict_aliasing" >&5
15967 $as_echo "$ac_cv_cflags_gcc_option__Wstrict_aliasing" >&6; }
15968 case ".$ac_cv_cflags_gcc_option__Wstrict_aliasing" in
15969 .ok|.ok,*) ;;
15970 .|.no|.no,*) ;;
15971 *)
15972 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wstrict_aliasing " 2>&1 >/dev/null
15973 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wstrict_aliasing"; } >&5
15974 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wstrict_aliasing) 2>&5
15975 ac_status=$?
15976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15977 test $ac_status = 0; }
15978 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wstrict_aliasing\""; } >&5
15979 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wstrict_aliasing") 2>&5
15980 ac_status=$?
15981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15982 test $ac_status = 0; }
15983 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wstrict_aliasing"
15984 fi
15985 ;;
15986 esac
15987
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Warray-bounds" >&5
15989 $as_echo_n "checking CFLAGS for gcc -Warray-bounds... " >&6; }
15990 if ${ac_cv_cflags_gcc_option__Warray_bounds+:} false; then :
15991 $as_echo_n "(cached) " >&6
15992 else
15993 ac_cv_cflags_gcc_option__Warray_bounds="no, unknown"
15994
15995 ac_ext=c
15996 ac_cpp='$CPP $CPPFLAGS'
15997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16000
16001 ac_save_CFLAGS="$CFLAGS"
16002 for ac_arg in "-pedantic -Werror % -Warray-bounds" "-pedantic % -Warray-bounds %% no, obsolete" #
16003 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005 /* end confdefs.h. */
16006
16007 int
16008 main ()
16009 {
16010 return 0;
16011 ;
16012 return 0;
16013 }
16014 _ACEOF
16015 if ac_fn_c_try_compile "$LINENO"; then :
16016 ac_cv_cflags_gcc_option__Warray_bounds=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16017 fi
16018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019 done
16020 CFLAGS="$ac_save_CFLAGS"
16021 ac_ext=c
16022 ac_cpp='$CPP $CPPFLAGS'
16023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16026
16027
16028 fi
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Warray_bounds" >&5
16030 $as_echo "$ac_cv_cflags_gcc_option__Warray_bounds" >&6; }
16031 case ".$ac_cv_cflags_gcc_option__Warray_bounds" in
16032 .ok|.ok,*) ;;
16033 .|.no|.no,*) ;;
16034 *)
16035 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Warray_bounds " 2>&1 >/dev/null
16036 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Warray_bounds"; } >&5
16037 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Warray_bounds) 2>&5
16038 ac_status=$?
16039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16040 test $ac_status = 0; }
16041 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Warray_bounds\""; } >&5
16042 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Warray_bounds") 2>&5
16043 ac_status=$?
16044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16045 test $ac_status = 0; }
16046 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Warray_bounds"
16047 fi
16048 ;;
16049 esac
16050
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS making strings readonly" >&5
16052 $as_echo_n "checking CFLAGS making strings readonly... " >&6; }
16053 if ${ac_cv_cflags_no_writable_strings+:} false; then :
16054 $as_echo_n "(cached) " >&6
16055 else
16056 ac_cv_cflags_no_writable_strings="no, unknown"
16057
16058 ac_ext=c
16059 ac_cpp='$CPP $CPPFLAGS'
16060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16063
16064 ac_save_CFLAGS="$CFLAGS"
16065 # IRIX C compiler:
16066 # -use_readonly_const is the default for IRIX C,
16067 # puts them into .rodata, but they are copied later.
16068 # need to be "-G0 -rdatashared" for strictmode but
16069 # I am not sure what effect that has really. - guidod
16070 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" #
16071 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16073 /* end confdefs.h. */
16074
16075 int
16076 main ()
16077 {
16078 return 0;
16079 ;
16080 return 0;
16081 }
16082 _ACEOF
16083 if ac_fn_c_try_compile "$LINENO"; then :
16084 ac_cv_cflags_no_writable_strings=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16085 fi
16086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16087 done
16088 case ".$ac_cv_cflags_no_writable_strings" in
16089 .|.no|.no,*) ;;
16090 *) # sanity check - testing strcpy() from string.h
16091 cp config.log config.tmp
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16094 #include <string.h>
16095 int
16096 main ()
16097 {
16098
16099 char test[16];
16100 if (strcpy (test, "test")) return 1;
16101 ;
16102 return 0;
16103 }
16104 _ACEOF
16105 if ac_fn_c_try_compile "$LINENO"; then :
16106 if test `diff config.log config.tmp | grep -i warning | wc -l` != 0
16107 then ac_cv_cflags_no_writable_strings="no, suppressed, string.h," ; fi
16108 else
16109 ac_cv_cflags_no_writable_strings="no, suppressed, string.h"
16110 fi
16111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16112 rm config.tmp
16113 ;;
16114 esac
16115 CFLAGS="$ac_save_CFLAGS"
16116 ac_ext=c
16117 ac_cpp='$CPP $CPPFLAGS'
16118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16121
16122
16123 fi
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_no_writable_strings" >&5
16125 $as_echo "$ac_cv_cflags_no_writable_strings" >&6; }
16126 case ".$ac_cv_cflags_no_writable_strings" in
16127 .ok|.ok,*) ;;
16128 .|.no|.no,*)
16129 ;;
16130 *)
16131 if echo " $CFLAGS " | grep " $ac_cv_cflags_no_writable_strings " 2>&1 >/dev/null
16132 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_no_writable_strings"; } >&5
16133 (: CFLAGS does contain $ac_cv_cflags_no_writable_strings) 2>&5
16134 ac_status=$?
16135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16136 test $ac_status = 0; }
16137 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_no_writable_strings\""; } >&5
16138 (: CFLAGS="$CFLAGS $ac_cv_cflags_no_writable_strings") 2>&5
16139 ac_status=$?
16140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16141 test $ac_status = 0; }
16142 CFLAGS="$CFLAGS $ac_cv_cflags_no_writable_strings"
16143 fi
16144 ;;
16145 esac
16146
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for strict prototypes" >&5
16148 $as_echo_n "checking CFLAGS for strict prototypes... " >&6; }
16149 if ${ac_cv_cflags_strict_prototypes+:} false; then :
16150 $as_echo_n "(cached) " >&6
16151 else
16152 ac_cv_cflags_strict_prototypes="no, unknown"
16153
16154 ac_ext=c
16155 ac_cpp='$CPP $CPPFLAGS'
16156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16159
16160 ac_save_CFLAGS="$CFLAGS"
16161 for ac_arg in "-pedantic % -fstrict-prototypes -Wstrict-prototypes" "-pedantic % -Wstrict-prototypes" "-pedantic % -Wmissing-prototypes" "-pedantic % -Werror-implicit-function-declaration" "-pedantic % -Wimplicit-function-declaration" #
16162 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h. */
16165
16166 int
16167 main ()
16168 {
16169 return 0;
16170 ;
16171 return 0;
16172 }
16173 _ACEOF
16174 if ac_fn_c_try_compile "$LINENO"; then :
16175 ac_cv_cflags_strict_prototypes=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16176 fi
16177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178 done
16179 case ".$ac_cv_cflags_strict_prototypes" in
16180 .|.no|.no,*) ;;
16181 *) # sanity check with signal() from sys/signal.h
16182 cp config.log config.tmp
16183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h. */
16185 #include <signal.h>
16186 int
16187 main ()
16188 {
16189
16190 if (signal (SIGINT, SIG_IGN) == SIG_DFL) return 1;
16191 if (signal (SIGINT, SIG_IGN) != SIG_DFL) return 2;
16192 ;
16193 return 0;
16194 }
16195 _ACEOF
16196 if ac_fn_c_try_compile "$LINENO"; then :
16197 if test `diff config.log config.tmp | grep -i warning | wc -l` != 0
16198 then if test `diff config.log config.tmp | grep -i warning | wc -l` != 1
16199 then ac_cv_cflags_strict_prototypes="no, suppressed, signal.h," ; fi ; fi
16200 else
16201 ac_cv_cflags_strict_prototypes="no, suppressed, signal.h"
16202 fi
16203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16204 rm config.tmp
16205 ;;
16206 esac
16207 CFLAGS="$ac_save_CFLAGS"
16208 ac_ext=c
16209 ac_cpp='$CPP $CPPFLAGS'
16210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16213
16214
16215 fi
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_strict_prototypes" >&5
16217 $as_echo "$ac_cv_cflags_strict_prototypes" >&6; }
16218 case ".$ac_cv_cflags_strict_prototypes" in
16219 .ok|.ok,*) ;;
16220 .|.no|.no,*)
16221 ;;
16222 *)
16223 if echo " $CFLAGS " | grep " $ac_cv_cflags_strict_prototypes " 2>&1 >/dev/null
16224 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_strict_prototypes"; } >&5
16225 (: CFLAGS does contain $ac_cv_cflags_strict_prototypes) 2>&5
16226 ac_status=$?
16227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16228 test $ac_status = 0; }
16229 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_strict_prototypes\""; } >&5
16230 (: CFLAGS="$CFLAGS $ac_cv_cflags_strict_prototypes") 2>&5
16231 ac_status=$?
16232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16233 test $ac_status = 0; }
16234 CFLAGS="$CFLAGS $ac_cv_cflags_strict_prototypes"
16235 fi
16236 ;;
16237 esac
16238
16239 # ---------------------------------------------------------------
16240 # The prefix default can be set in configure.ac (otherwise it is /usr/local)
16241 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16242 # Let make expand exec_prefix. Allows to override the makevar 'prefix' later
16243 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16244
16245 # Check whether --enable-enable-default-pkgconfigdir was given.
16246 if test "${enable_enable_default_pkgconfigdir+set}" = set; then :
16247 enableval=$enable_enable_default_pkgconfigdir;
16248 fi
16249
16250 test ".$enable_default_pkgconfigdir" = "." && enable_default_pkgconfigdir="no"
16251 case ".$enable_default_pkgconfigdir" in
16252 .no) ax_warning_default_pkgconfig_def='${libdir}/pkgconfig' ;;
16253 .yes) # autodetect
16254 if test ".$PKG_CONFIG" = "." ; then # we use the same default as in pkg.m4
16255 # Extract the first word of "pkg-config", so it can be a program name with args.
16256 set dummy pkg-config; ac_word=$2
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16258 $as_echo_n "checking for $ac_word... " >&6; }
16259 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16260 $as_echo_n "(cached) " >&6
16261 else
16262 case $PKG_CONFIG in
16263 [\\/]* | ?:[\\/]*)
16264 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16265 ;;
16266 *)
16267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16268 for as_dir in $PATH
16269 do
16270 IFS=$as_save_IFS
16271 test -z "$as_dir" && as_dir=.
16272 for ac_exec_ext in '' $ac_executable_extensions; do
16273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16274 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16276 break 2
16277 fi
16278 done
16279 done
16280 IFS=$as_save_IFS
16281
16282 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16283 ;;
16284 esac
16285 fi
16286 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16287 if test -n "$PKG_CONFIG"; then
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16289 $as_echo "$PKG_CONFIG" >&6; }
16290 else
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16292 $as_echo "no" >&6; }
16293 fi
16294
16295
16296 fi
16297 if test "$PKG_CONFIG" = "no"
16298 then ax_warning_default_pkgconfig_def="/tmp" ; test -d "/usr/lib/pkgconfig" && ax_warning_default_pkgconfig_def="/usr/lib/pkgconfig"
16299 else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_def" ||
16300 $as_expr X"$ax_warning_default_pkgconfig_def" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16301 X"$ax_warning_default_pkgconfig_def" : 'X\(//\)[^/]' \| \
16302 X"$ax_warning_default_pkgconfig_def" : 'X\(//\)$' \| \
16303 X"$ax_warning_default_pkgconfig_def" : 'X\(/\)' \| . 2>/dev/null ||
16304 $as_echo X"$ax_warning_default_pkgconfig_def" |
16305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16306 s//\1/
16307 q
16308 }
16309 /^X\(\/\/\)[^/].*/{
16310 s//\1/
16311 q
16312 }
16313 /^X\(\/\/\)$/{
16314 s//\1/
16315 q
16316 }
16317 /^X\(\/\).*/{
16318 s//\1/
16319 q
16320 }
16321 s/.*/./; q'` ;
16322 if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then
16323 ax_warning_default_pkgconfig_def="$ax_warning_default_pkgconfig_bin/lib/pkgconfig"
16324 else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_def" ||
16325 $as_expr X"$ax_warning_default_pkgconfig_def" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16326 X"$ax_warning_default_pkgconfig_def" : 'X\(//\)[^/]' \| \
16327 X"$ax_warning_default_pkgconfig_def" : 'X\(//\)$' \| \
16328 X"$ax_warning_default_pkgconfig_def" : 'X\(/\)' \| . 2>/dev/null ||
16329 $as_echo X"$ax_warning_default_pkgconfig_def" |
16330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16331 s//\1/
16332 q
16333 }
16334 /^X\(\/\/\)[^/].*/{
16335 s//\1/
16336 q
16337 }
16338 /^X\(\/\/\)$/{
16339 s//\1/
16340 q
16341 }
16342 /^X\(\/\).*/{
16343 s//\1/
16344 q
16345 }
16346 s/.*/./; q'`
16347 if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then
16348 ax_warning_default_pkgconfig_def="$ax_warning_default_pkgconfig_bin/lib/pkgconfig"
16349 else
16350 if test -d "/usr/lib/pkgconfig" ; then
16351 ax_warning_default_pkgconfig_def="/usr/lib/pkgconfig"
16352 else
16353 ax_warning_default_pkgconfig_def="/tmp"
16354 fi fi fi
16355 fi ;;
16356 *) ax_warning_default_pkgconfig_def="$enable_default_pkgconfigdir" ;;
16357 esac
16358 ax_warning_default_pkgconfig_loc='$ax_warning_default_pkgconfig_def'
16359
16360 if test ".$PKG_CONFIG" = "." ; then # we use the same default as in pkg.m4
16361 # Extract the first word of "pkg-config", so it can be a program name with args.
16362 set dummy pkg-config; ac_word=$2
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16364 $as_echo_n "checking for $ac_word... " >&6; }
16365 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16366 $as_echo_n "(cached) " >&6
16367 else
16368 case $PKG_CONFIG in
16369 [\\/]* | ?:[\\/]*)
16370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16371 ;;
16372 *)
16373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16374 for as_dir in $PATH
16375 do
16376 IFS=$as_save_IFS
16377 test -z "$as_dir" && as_dir=.
16378 for ac_exec_ext in '' $ac_executable_extensions; do
16379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16380 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16382 break 2
16383 fi
16384 done
16385 done
16386 IFS=$as_save_IFS
16387
16388 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16389 ;;
16390 esac
16391 fi
16392 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16393 if test -n "$PKG_CONFIG"; then
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16395 $as_echo "$PKG_CONFIG" >&6; }
16396 else
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16398 $as_echo "no" >&6; }
16399 fi
16400
16401
16402 fi
16403 if test "$PKG_CONFIG" = "no"
16404 then ax_warning_default_pkgconfig_dir="/" ; test -d "/usr/lib/pkgconfig" && ax_warning_default_pkgconfig_dir="/usr/lib/pkgconfig"
16405 else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_dir" ||
16406 $as_expr X"$ax_warning_default_pkgconfig_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16407 X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)[^/]' \| \
16408 X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)$' \| \
16409 X"$ax_warning_default_pkgconfig_dir" : 'X\(/\)' \| . 2>/dev/null ||
16410 $as_echo X"$ax_warning_default_pkgconfig_dir" |
16411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16412 s//\1/
16413 q
16414 }
16415 /^X\(\/\/\)[^/].*/{
16416 s//\1/
16417 q
16418 }
16419 /^X\(\/\/\)$/{
16420 s//\1/
16421 q
16422 }
16423 /^X\(\/\).*/{
16424 s//\1/
16425 q
16426 }
16427 s/.*/./; q'` ;
16428 if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then
16429 ax_warning_default_pkgconfig_dir="$ax_warning_default_pkgconfig_bin/lib/pkgconfig"
16430 else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_dir" ||
16431 $as_expr X"$ax_warning_default_pkgconfig_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16432 X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)[^/]' \| \
16433 X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)$' \| \
16434 X"$ax_warning_default_pkgconfig_dir" : 'X\(/\)' \| . 2>/dev/null ||
16435 $as_echo X"$ax_warning_default_pkgconfig_dir" |
16436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16437 s//\1/
16438 q
16439 }
16440 /^X\(\/\/\)[^/].*/{
16441 s//\1/
16442 q
16443 }
16444 /^X\(\/\/\)$/{
16445 s//\1/
16446 q
16447 }
16448 /^X\(\/\).*/{
16449 s//\1/
16450 q
16451 }
16452 s/.*/./; q'`
16453 if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then
16454 ax_warning_default_pkgconfig_dir="$ax_warning_default_pkgconfig_bin/lib/pkgconfig"
16455 else
16456 if test -d "/usr/lib/pkgconfig" ; then
16457 ax_warning_default_pkgconfig_dir="/usr/lib/pkgconfig"
16458 else
16459 ax_warning_default_pkgconfig_dir="/"
16460 fi fi fi
16461 fi
16462 { { $as_echo "$as_me:${as_lineno-$LINENO}: : last pkgconfig dir is assumed as \"\$ax_warning_default_pkgconfig_dir\""; } >&5
16463 (: last pkgconfig dir is assumed as "$ax_warning_default_pkgconfig_dir") 2>&5
16464 ac_status=$?
16465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16466 test $ac_status = 0; }
16467 ax_warning_default_pkgconfig_dir=`eval "echo $ax_warning_default_pkgconfig_dir"`
16468 ax_warning_default_pkgconfig_dir=`eval "echo $ax_warning_default_pkgconfig_dir"`
16469 ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"`
16470 ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"`
16471 ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"`
16472 ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"`
16473 for ax_warning_default_pkgconfig_dir in `echo "$PKG_CONFIG_PATH:$ax_warning_default_pkgconfig_dir" | sed -e 's,:, ,g'` ; do
16474 { { $as_echo "$as_me:${as_lineno-$LINENO}: : test \".\$ax_warning_default_pkgconfig_loc\" = \".\$ax_warning_default_pkgconfig_dir\""; } >&5
16475 (: test ".$ax_warning_default_pkgconfig_loc" = ".$ax_warning_default_pkgconfig_dir") 2>&5
16476 ac_status=$?
16477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16478 test $ac_status = 0; }
16479 test ".$ax_warning_default_pkgconfig_loc" = ".$ax_warning_default_pkgconfig_dir" && break
16480 done
16481 if test "$ax_warning_default_pkgconfig_loc" != "$ax_warning_default_pkgconfig_dir" ; then
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: pkgconfigdir=$ax_warning_default_pkgconfig_loc (see config.log)" >&5
16483 $as_echo "$as_me: warning: pkgconfigdir=$ax_warning_default_pkgconfig_loc (see config.log)" >&6;}
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: perhaps: make install pkgconfigdir=$ax_warning_default_pkgconfig_dir" >&5
16485 $as_echo "$as_me: perhaps: make install pkgconfigdir=$ax_warning_default_pkgconfig_dir" >&6;}
16486 cat >&5 <<EOF
16487 pkgconfigdir: the default pkgconfigdir of $ax_warning_default_pkgconfig_loc
16488 pkgconfigdir: is not listed in the dirlist where pkg-config will look for
16489 pkgconfigdir: package-configs - you can override the install-path using
16490 pkgconfigdir: make install pkgconfigdir=$ax_warning_default_pkgconfig_dir
16491 pkgconfigdir: or set/append the directory to the environment variable
16492 pkgconfigdir: PKG_CONFIG_PATH="$ax_warning_default_pkgconfig_loc"
16493 EOF
16494 fi
16495
16496 pkgconfigdir="$ax_warning_default_pkgconfig_dir"
16497
16498
16499 # Check whether --enable-enable-default-aclocaldir was given.
16500 if test "${enable_enable_default_aclocaldir+set}" = set; then :
16501 enableval=$enable_enable_default_aclocaldir;
16502 fi
16503
16504 test ".$enable_default_aclocaldir" = "." && enable_default_aclocaldir="no"
16505 case ".$enable_default_aclocaldir" in
16506 .no) ax_warning_default_aclocal_def='${datadir}/aclocal' ;;
16507 .yes) # autodetect
16508 if test ".$ACLOCAL" = "." ; then
16509 # Extract the first word of "aclocal", so it can be a program name with args.
16510 set dummy aclocal; ac_word=$2
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16512 $as_echo_n "checking for $ac_word... " >&6; }
16513 if ${ac_cv_path_ACLOCAL+:} false; then :
16514 $as_echo_n "(cached) " >&6
16515 else
16516 case $ACLOCAL in
16517 [\\/]* | ?:[\\/]*)
16518 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
16519 ;;
16520 *)
16521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16522 for as_dir in $PATH
16523 do
16524 IFS=$as_save_IFS
16525 test -z "$as_dir" && as_dir=.
16526 for ac_exec_ext in '' $ac_executable_extensions; do
16527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16528 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
16529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16530 break 2
16531 fi
16532 done
16533 done
16534 IFS=$as_save_IFS
16535
16536 test -z "$ac_cv_path_ACLOCAL" && ac_cv_path_ACLOCAL=":"
16537 ;;
16538 esac
16539 fi
16540 ACLOCAL=$ac_cv_path_ACLOCAL
16541 if test -n "$ACLOCAL"; then
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
16543 $as_echo "$ACLOCAL" >&6; }
16544 else
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546 $as_echo "no" >&6; }
16547 fi
16548
16549
16550 fi
16551 ax_warning_default_aclocal_bin="$ACLOCAL"
16552 test ".$ax_warning_default_aclocal_bin" = "." && ax_warning_default_aclocal_bin="aclocal"
16553 ax_warning_default_aclocal_def=`test ".$SHELL" = "." && SHELL="'sh'" ; eval "$ax_warning_default_aclocal_bin --print-ac-dir"`
16554 test ".$ax_warning_default_aclocal_def" = "." && test -d "/usr/share/aclocal" && ax_warning_default_aclocal_def="/usr/share/aclocal"
16555 test ".$ax_warning_default_aclocal_def" = "." && ax_warning_default_aclocal_def="/tmp" ;;
16556 *) ax_warning_default_aclocal_def="$enable_default_aclocaldir" ;;
16557 esac
16558 ax_warning_default_aclocal_loc='$ax_warning_default_aclocal_def'
16559
16560 if test ".$ACLOCAL" = "." ; then
16561 # Extract the first word of "aclocal", so it can be a program name with args.
16562 set dummy aclocal; ac_word=$2
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16564 $as_echo_n "checking for $ac_word... " >&6; }
16565 if ${ac_cv_path_ACLOCAL+:} false; then :
16566 $as_echo_n "(cached) " >&6
16567 else
16568 case $ACLOCAL in
16569 [\\/]* | ?:[\\/]*)
16570 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
16571 ;;
16572 *)
16573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16574 for as_dir in $PATH
16575 do
16576 IFS=$as_save_IFS
16577 test -z "$as_dir" && as_dir=.
16578 for ac_exec_ext in '' $ac_executable_extensions; do
16579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16580 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
16581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16582 break 2
16583 fi
16584 done
16585 done
16586 IFS=$as_save_IFS
16587
16588 test -z "$ac_cv_path_ACLOCAL" && ac_cv_path_ACLOCAL=":"
16589 ;;
16590 esac
16591 fi
16592 ACLOCAL=$ac_cv_path_ACLOCAL
16593 if test -n "$ACLOCAL"; then
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
16595 $as_echo "$ACLOCAL" >&6; }
16596 else
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16598 $as_echo "no" >&6; }
16599 fi
16600
16601
16602 fi
16603 ax_warning_default_aclocal_bin="$ACLOCAL"
16604 test ".$ax_warning_default_aclocal_bin" = "." && ax_warning_default_aclocal_bin="aclocal"
16605 ax_warning_default_aclocal_dir=`test ".$SHELL" = "." && SHELL="'sh'" ; eval "$ax_warning_default_aclocal_bin --print-ac-dir"`
16606 test ".$ax_warning_default_aclocal_dir" = "." && test -d "/usr/share/aclocal" && ax_warning_default_aclocal_dir="/usr/share/aclocal"
16607 test ".$ax_warning_default_aclocal_dir" = "." && ax_warning_default_aclocal_dir="/tmp"
16608 ax_warning_default_aclocal_dir=`eval "echo $ax_warning_default_aclocal_dir"` # we need to expand
16609 ax_warning_default_aclocal_dir=`eval "echo $ax_warning_default_aclocal_dir"`
16610 ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"`
16611 ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"`
16612 ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"`
16613 ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"`
16614 { { $as_echo "$as_me:${as_lineno-$LINENO}: : test \"\$ax_warning_default_aclocal_loc\" = \"\$ax_warning_default_aclocal_dir\""; } >&5
16615 (: test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir") 2>&5
16616 ac_status=$?
16617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16618 test $ac_status = 0; }
16619 if test "$ax_warning_default_aclocal_loc" != "$ax_warning_default_aclocal_dir" ; then
16620 if test -f "$ax_warning_default_aclocal_dir/dirlist" ; then
16621 for ax_warning_default_aclocal_dir in `cat $ax_warning_default_aclocal_dir/dirlist` $ax_warning_default_aclocal_dir ; do
16622 { { $as_echo "$as_me:${as_lineno-$LINENO}: : test \"\$ax_warning_default_aclocal_loc\" = \"\$ax_warning_default_aclocal_dir\""; } >&5
16623 (: test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir") 2>&5
16624 ac_status=$?
16625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16626 test $ac_status = 0; }
16627 test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir" && break
16628 done
16629 fi
16630 if test "$ax_warning_default_aclocal_loc" != "$ax_warning_default_aclocal_dir" ; then
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: aclocaldir=$ax_warning_default_aclocal_loc (see config.log)" >&5
16632 $as_echo "$as_me: warning: aclocaldir=$ax_warning_default_aclocal_loc (see config.log)" >&6;}
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: perhaps: make install aclocaldir=$ax_warning_default_aclocal_dir" >&5
16634 $as_echo "$as_me: perhaps: make install aclocaldir=$ax_warning_default_aclocal_dir" >&6;}
16635 cat >&5 <<EOF
16636 aclocaldir: the default aclocaldir of $ax_warning_default_aclocal_loc
16637 aclocaldir: is not listed in the dirlist where aclocal will look
16638 aclocaldir: for macros - you can override the install-path using
16639 aclocaldir: make install aclocaldir=$ax_warning_default_aclocal_dir
16640 aclocaldir: or append the directory to aclocal reconfigures later as
16641 aclocaldir: aclocal -I $ax_warning_default_aclocal_loc
16642 aclocaldir: when an autoconf macro is needed from that directory
16643 EOF
16644 fi
16645 fi
16646
16647 aclocaldir="$ax_warning_default_aclocal_dir"
16648
16649
16650
16651 ac_config_files="$ac_config_files Makefile zzip/Makefile zzipwrap/Makefile SDL/Makefile docs/Makefile test/Makefile bins/Makefile"
16652
16653 cat >confcache <<\_ACEOF
16654 # This file is a shell script that caches the results of configure
16655 # tests run on this system so they can be shared between configure
16656 # scripts and configure runs, see configure's option --config-cache.
16657 # It is not useful on other systems. If it contains results you don't
16658 # want to keep, you may remove or edit it.
16659 #
16660 # config.status only pays attention to the cache file if you give it
16661 # the --recheck option to rerun configure.
16662 #
16663 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16664 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16665 # following values.
16666
16667 _ACEOF
16668
16669 # The following way of writing the cache mishandles newlines in values,
16670 # but we know of no workaround that is simple, portable, and efficient.
16671 # So, we kill variables containing newlines.
16672 # Ultrix sh set writes to stderr and can't be redirected directly,
16673 # and sets the high bit in the cache file unless we assign to the vars.
16674 (
16675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16676 eval ac_val=\$$ac_var
16677 case $ac_val in #(
16678 *${as_nl}*)
16679 case $ac_var in #(
16680 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16681 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16682 esac
16683 case $ac_var in #(
16684 _ | IFS | as_nl) ;; #(
16685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16686 *) { eval $ac_var=; unset $ac_var;} ;;
16687 esac ;;
16688 esac
16689 done
16690
16691 (set) 2>&1 |
16692 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16693 *${as_nl}ac_space=\ *)
16694 # `set' does not quote correctly, so add quotes: double-quote
16695 # substitution turns \\\\ into \\, and sed turns \\ into \.
16696 sed -n \
16697 "s/'/'\\\\''/g;
16698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16699 ;; #(
16700 *)
16701 # `set' quotes correctly as required by POSIX, so do not add quotes.
16702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16703 ;;
16704 esac |
16705 sort
16706 ) |
16707 sed '
16708 /^ac_cv_env_/b end
16709 t clear
16710 :clear
16711 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16712 t end
16713 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16714 :end' >>confcache
16715 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16716 if test -w "$cache_file"; then
16717 if test "x$cache_file" != "x/dev/null"; then
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16719 $as_echo "$as_me: updating cache $cache_file" >&6;}
16720 if test ! -f "$cache_file" || test -h "$cache_file"; then
16721 cat confcache >"$cache_file"
16722 else
16723 case $cache_file in #(
16724 */* | ?:*)
16725 mv -f confcache "$cache_file"$$ &&
16726 mv -f "$cache_file"$$ "$cache_file" ;; #(
16727 *)
16728 mv -f confcache "$cache_file" ;;
16729 esac
16730 fi
16731 fi
16732 else
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16734 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16735 fi
16736 fi
16737 rm -f confcache
16738
16739 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16740 # Let make expand exec_prefix.
16741 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16742
16743 DEFS=-DHAVE_CONFIG_H
16744
16745 ac_libobjs=
16746 ac_ltlibobjs=
16747 U=
16748 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16749 # 1. Remove the extension, and $U if already installed.
16750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16753 # will be set to the directory where LIBOBJS objects are built.
16754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16756 done
16757 LIBOBJS=$ac_libobjs
16758
16759 LTLIBOBJS=$ac_ltlibobjs
16760
16761
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16763 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16764 if test -n "$am_sleep_pid"; then
16765 # Hide warnings about reused PIDs.
16766 wait $am_sleep_pid 2>/dev/null
16767 fi
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16769 $as_echo "done" >&6; }
16770 if test -n "$EXEEXT"; then
16771 am__EXEEXT_TRUE=
16772 am__EXEEXT_FALSE='#'
16773 else
16774 am__EXEEXT_TRUE='#'
16775 am__EXEEXT_FALSE=
16776 fi
16777
16778 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16779 as_fn_error $? "conditional \"AMDEP\" was never defined.
16780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16781 fi
16782 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16783 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16785 fi
16786 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16787 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16789 fi
16790
16791
16792 : "${CONFIG_STATUS=./config.status}"
16793 ac_write_fail=0
16794 ac_clean_files_save=$ac_clean_files
16795 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16797 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16798 as_write_fail=0
16799 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16800 #! $SHELL
16801 # Generated by $as_me.
16802 # Run this file to recreate the current configuration.
16803 # Compiler output produced by configure, useful for debugging
16804 # configure, is in config.log if it exists.
16805
16806 debug=false
16807 ac_cs_recheck=false
16808 ac_cs_silent=false
16809
16810 SHELL=\${CONFIG_SHELL-$SHELL}
16811 export SHELL
16812 _ASEOF
16813 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16814 ## -------------------- ##
16815 ## M4sh Initialization. ##
16816 ## -------------------- ##
16817
16818 # Be more Bourne compatible
16819 DUALCASE=1; export DUALCASE # for MKS sh
16820 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16821 emulate sh
16822 NULLCMD=:
16823 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16824 # is contrary to our usage. Disable this feature.
16825 alias -g '${1+"$@"}'='"$@"'
16826 setopt NO_GLOB_SUBST
16827 else
16828 case `(set -o) 2>/dev/null` in #(
16829 *posix*) :
16830 set -o posix ;; #(
16831 *) :
16832 ;;
16833 esac
16834 fi
16835
16836
16837 as_nl='
16838 '
16839 export as_nl
16840 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16841 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16842 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16843 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16844 # Prefer a ksh shell builtin over an external printf program on Solaris,
16845 # but without wasting forks for bash or zsh.
16846 if test -z "$BASH_VERSION$ZSH_VERSION" \
16847 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16848 as_echo='print -r --'
16849 as_echo_n='print -rn --'
16850 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16851 as_echo='printf %s\n'
16852 as_echo_n='printf %s'
16853 else
16854 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16855 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16856 as_echo_n='/usr/ucb/echo -n'
16857 else
16858 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16859 as_echo_n_body='eval
16860 arg=$1;
16861 case $arg in #(
16862 *"$as_nl"*)
16863 expr "X$arg" : "X\\(.*\\)$as_nl";
16864 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16865 esac;
16866 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16867 '
16868 export as_echo_n_body
16869 as_echo_n='sh -c $as_echo_n_body as_echo'
16870 fi
16871 export as_echo_body
16872 as_echo='sh -c $as_echo_body as_echo'
16873 fi
16874
16875 # The user is always right.
16876 if test "${PATH_SEPARATOR+set}" != set; then
16877 PATH_SEPARATOR=:
16878 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16879 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16880 PATH_SEPARATOR=';'
16881 }
16882 fi
16883
16884
16885 # IFS
16886 # We need space, tab and new line, in precisely that order. Quoting is
16887 # there to prevent editors from complaining about space-tab.
16888 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16889 # splitting by setting IFS to empty value.)
16890 IFS=" "" $as_nl"
16891
16892 # Find who we are. Look in the path if we contain no directory separator.
16893 as_myself=
16894 case $0 in #((
16895 *[\\/]* ) as_myself=$0 ;;
16896 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16897 for as_dir in $PATH
16898 do
16899 IFS=$as_save_IFS
16900 test -z "$as_dir" && as_dir=.
16901 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16902 done
16903 IFS=$as_save_IFS
16904
16905 ;;
16906 esac
16907 # We did not find ourselves, most probably we were run as `sh COMMAND'
16908 # in which case we are not to be found in the path.
16909 if test "x$as_myself" = x; then
16910 as_myself=$0
16911 fi
16912 if test ! -f "$as_myself"; then
16913 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16914 exit 1
16915 fi
16916
16917 # Unset variables that we do not need and which cause bugs (e.g. in
16918 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16919 # suppresses any "Segmentation fault" message there. '((' could
16920 # trigger a bug in pdksh 5.2.14.
16921 for as_var in BASH_ENV ENV MAIL MAILPATH
16922 do eval test x\${$as_var+set} = xset \
16923 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16924 done
16925 PS1='$ '
16926 PS2='> '
16927 PS4='+ '
16928
16929 # NLS nuisances.
16930 LC_ALL=C
16931 export LC_ALL
16932 LANGUAGE=C
16933 export LANGUAGE
16934
16935 # CDPATH.
16936 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16937
16938
16939 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16940 # ----------------------------------------
16941 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16942 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16943 # script with STATUS, using 1 if that was 0.
16944 as_fn_error ()
16945 {
16946 as_status=$1; test $as_status -eq 0 && as_status=1
16947 if test "$4"; then
16948 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16949 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16950 fi
16951 $as_echo "$as_me: error: $2" >&2
16952 as_fn_exit $as_status
16953 } # as_fn_error
16954
16955
16956 # as_fn_set_status STATUS
16957 # -----------------------
16958 # Set $? to STATUS, without forking.
16959 as_fn_set_status ()
16960 {
16961 return $1
16962 } # as_fn_set_status
16963
16964 # as_fn_exit STATUS
16965 # -----------------
16966 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16967 as_fn_exit ()
16968 {
16969 set +e
16970 as_fn_set_status $1
16971 exit $1
16972 } # as_fn_exit
16973
16974 # as_fn_unset VAR
16975 # ---------------
16976 # Portably unset VAR.
16977 as_fn_unset ()
16978 {
16979 { eval $1=; unset $1;}
16980 }
16981 as_unset=as_fn_unset
16982 # as_fn_append VAR VALUE
16983 # ----------------------
16984 # Append the text in VALUE to the end of the definition contained in VAR. Take
16985 # advantage of any shell optimizations that allow amortized linear growth over
16986 # repeated appends, instead of the typical quadratic growth present in naive
16987 # implementations.
16988 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16989 eval 'as_fn_append ()
16990 {
16991 eval $1+=\$2
16992 }'
16993 else
16994 as_fn_append ()
16995 {
16996 eval $1=\$$1\$2
16997 }
16998 fi # as_fn_append
16999
17000 # as_fn_arith ARG...
17001 # ------------------
17002 # Perform arithmetic evaluation on the ARGs, and store the result in the
17003 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17004 # must be portable across $(()) and expr.
17005 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17006 eval 'as_fn_arith ()
17007 {
17008 as_val=$(( $* ))
17009 }'
17010 else
17011 as_fn_arith ()
17012 {
17013 as_val=`expr "$@" || test $? -eq 1`
17014 }
17015 fi # as_fn_arith
17016
17017
17018 if expr a : '\(a\)' >/dev/null 2>&1 &&
17019 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17020 as_expr=expr
17021 else
17022 as_expr=false
17023 fi
17024
17025 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17026 as_basename=basename
17027 else
17028 as_basename=false
17029 fi
17030
17031 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17032 as_dirname=dirname
17033 else
17034 as_dirname=false
17035 fi
17036
17037 as_me=`$as_basename -- "$0" ||
17038 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17039 X"$0" : 'X\(//\)$' \| \
17040 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17041 $as_echo X/"$0" |
17042 sed '/^.*\/\([^/][^/]*\)\/*$/{
17043 s//\1/
17044 q
17045 }
17046 /^X\/\(\/\/\)$/{
17047 s//\1/
17048 q
17049 }
17050 /^X\/\(\/\).*/{
17051 s//\1/
17052 q
17053 }
17054 s/.*/./; q'`
17055
17056 # Avoid depending upon Character Ranges.
17057 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17058 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17059 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17060 as_cr_digits='0123456789'
17061 as_cr_alnum=$as_cr_Letters$as_cr_digits
17062
17063 ECHO_C= ECHO_N= ECHO_T=
17064 case `echo -n x` in #(((((
17065 -n*)
17066 case `echo 'xy\c'` in
17067 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17068 xy) ECHO_C='\c';;
17069 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17070 ECHO_T=' ';;
17071 esac;;
17072 *)
17073 ECHO_N='-n';;
17074 esac
17075
17076 rm -f conf$$ conf$$.exe conf$$.file
17077 if test -d conf$$.dir; then
17078 rm -f conf$$.dir/conf$$.file
17079 else
17080 rm -f conf$$.dir
17081 mkdir conf$$.dir 2>/dev/null
17082 fi
17083 if (echo >conf$$.file) 2>/dev/null; then
17084 if ln -s conf$$.file conf$$ 2>/dev/null; then
17085 as_ln_s='ln -s'
17086 # ... but there are two gotchas:
17087 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17088 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17089 # In both cases, we have to default to `cp -pR'.
17090 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17091 as_ln_s='cp -pR'
17092 elif ln conf$$.file conf$$ 2>/dev/null; then
17093 as_ln_s=ln
17094 else
17095 as_ln_s='cp -pR'
17096 fi
17097 else
17098 as_ln_s='cp -pR'
17099 fi
17100 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17101 rmdir conf$$.dir 2>/dev/null
17102
17103
17104 # as_fn_mkdir_p
17105 # -------------
17106 # Create "$as_dir" as a directory, including parents if necessary.
17107 as_fn_mkdir_p ()
17108 {
17109
17110 case $as_dir in #(
17111 -*) as_dir=./$as_dir;;
17112 esac
17113 test -d "$as_dir" || eval $as_mkdir_p || {
17114 as_dirs=
17115 while :; do
17116 case $as_dir in #(
17117 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17118 *) as_qdir=$as_dir;;
17119 esac
17120 as_dirs="'$as_qdir' $as_dirs"
17121 as_dir=`$as_dirname -- "$as_dir" ||
17122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17123 X"$as_dir" : 'X\(//\)[^/]' \| \
17124 X"$as_dir" : 'X\(//\)$' \| \
17125 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17126 $as_echo X"$as_dir" |
17127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17128 s//\1/
17129 q
17130 }
17131 /^X\(\/\/\)[^/].*/{
17132 s//\1/
17133 q
17134 }
17135 /^X\(\/\/\)$/{
17136 s//\1/
17137 q
17138 }
17139 /^X\(\/\).*/{
17140 s//\1/
17141 q
17142 }
17143 s/.*/./; q'`
17144 test -d "$as_dir" && break
17145 done
17146 test -z "$as_dirs" || eval "mkdir $as_dirs"
17147 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17148
17149
17150 } # as_fn_mkdir_p
17151 if mkdir -p . 2>/dev/null; then
17152 as_mkdir_p='mkdir -p "$as_dir"'
17153 else
17154 test -d ./-p && rmdir ./-p
17155 as_mkdir_p=false
17156 fi
17157
17158
17159 # as_fn_executable_p FILE
17160 # -----------------------
17161 # Test if FILE is an executable regular file.
17162 as_fn_executable_p ()
17163 {
17164 test -f "$1" && test -x "$1"
17165 } # as_fn_executable_p
17166 as_test_x='test -x'
17167 as_executable_p=as_fn_executable_p
17168
17169 # Sed expression to map a string onto a valid CPP name.
17170 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17171
17172 # Sed expression to map a string onto a valid variable name.
17173 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17174
17175
17176 exec 6>&1
17177 ## ----------------------------------- ##
17178 ## Main body of $CONFIG_STATUS script. ##
17179 ## ----------------------------------- ##
17180 _ASEOF
17181 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17182
17183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17184 # Save the log message, to keep $0 and so on meaningful, and to
17185 # report actual input values of CONFIG_FILES etc. instead of their
17186 # values after options handling.
17187 ac_log="
17188 This file was extended by $as_me, which was
17189 generated by GNU Autoconf 2.69. Invocation command line was
17190
17191 CONFIG_FILES = $CONFIG_FILES
17192 CONFIG_HEADERS = $CONFIG_HEADERS
17193 CONFIG_LINKS = $CONFIG_LINKS
17194 CONFIG_COMMANDS = $CONFIG_COMMANDS
17195 $ $0 $@
17196
17197 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17198 "
17199
17200 _ACEOF
17201
17202 case $ac_config_files in *"
17203 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17204 esac
17205
17206 case $ac_config_headers in *"
17207 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17208 esac
17209
17210
17211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17212 # Files that config.status was made for.
17213 config_files="$ac_config_files"
17214 config_headers="$ac_config_headers"
17215 config_commands="$ac_config_commands"
17216
17217 _ACEOF
17218
17219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17220 ac_cs_usage="\
17221 \`$as_me' instantiates files and other configuration actions
17222 from templates according to the current configuration. Unless the files
17223 and actions are specified as TAGs, all are instantiated by default.
17224
17225 Usage: $0 [OPTION]... [TAG]...
17226
17227 -h, --help print this help, then exit
17228 -V, --version print version number and configuration settings, then exit
17229 --config print configuration, then exit
17230 -q, --quiet, --silent
17231 do not print progress messages
17232 -d, --debug don't remove temporary files
17233 --recheck update $as_me by reconfiguring in the same conditions
17234 --file=FILE[:TEMPLATE]
17235 instantiate the configuration file FILE
17236 --header=FILE[:TEMPLATE]
17237 instantiate the configuration header FILE
17238
17239 Configuration files:
17240 $config_files
17241
17242 Configuration headers:
17243 $config_headers
17244
17245 Configuration commands:
17246 $config_commands
17247
17248 Report bugs to the package provider."
17249
17250 _ACEOF
17251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17252 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17253 ac_cs_version="\\
17254 config.status
17255 configured by $0, generated by GNU Autoconf 2.69,
17256 with options \\"\$ac_cs_config\\"
17257
17258 Copyright (C) 2012 Free Software Foundation, Inc.
17259 This config.status script is free software; the Free Software Foundation
17260 gives unlimited permission to copy, distribute and modify it."
17261
17262 ac_pwd='$ac_pwd'
17263 srcdir='$srcdir'
17264 INSTALL='$INSTALL'
17265 MKDIR_P='$MKDIR_P'
17266 AWK='$AWK'
17267 test -n "\$AWK" || AWK=awk
17268 _ACEOF
17269
17270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17271 # The default lists apply if the user does not specify any file.
17272 ac_need_defaults=:
17273 while test $# != 0
17274 do
17275 case $1 in
17276 --*=?*)
17277 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17278 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17279 ac_shift=:
17280 ;;
17281 --*=)
17282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17283 ac_optarg=
17284 ac_shift=:
17285 ;;
17286 *)
17287 ac_option=$1
17288 ac_optarg=$2
17289 ac_shift=shift
17290 ;;
17291 esac
17292
17293 case $ac_option in
17294 # Handling of the options.
17295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17296 ac_cs_recheck=: ;;
17297 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17298 $as_echo "$ac_cs_version"; exit ;;
17299 --config | --confi | --conf | --con | --co | --c )
17300 $as_echo "$ac_cs_config"; exit ;;
17301 --debug | --debu | --deb | --de | --d | -d )
17302 debug=: ;;
17303 --file | --fil | --fi | --f )
17304 $ac_shift
17305 case $ac_optarg in
17306 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17307 '') as_fn_error $? "missing file argument" ;;
17308 esac
17309 as_fn_append CONFIG_FILES " '$ac_optarg'"
17310 ac_need_defaults=false;;
17311 --header | --heade | --head | --hea )
17312 $ac_shift
17313 case $ac_optarg in
17314 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17315 esac
17316 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17317 ac_need_defaults=false;;
17318 --he | --h)
17319 # Conflict between --help and --header
17320 as_fn_error $? "ambiguous option: \`$1'
17321 Try \`$0 --help' for more information.";;
17322 --help | --hel | -h )
17323 $as_echo "$ac_cs_usage"; exit ;;
17324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17326 ac_cs_silent=: ;;
17327
17328 # This is an error.
17329 -*) as_fn_error $? "unrecognized option: \`$1'
17330 Try \`$0 --help' for more information." ;;
17331
17332 *) as_fn_append ac_config_targets " $1"
17333 ac_need_defaults=false ;;
17334
17335 esac
17336 shift
17337 done
17338
17339 ac_configure_extra_args=
17340
17341 if $ac_cs_silent; then
17342 exec 6>/dev/null
17343 ac_configure_extra_args="$ac_configure_extra_args --silent"
17344 fi
17345
17346 _ACEOF
17347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17348 if \$ac_cs_recheck; then
17349 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17350 shift
17351 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17352 CONFIG_SHELL='$SHELL'
17353 export CONFIG_SHELL
17354 exec "\$@"
17355 fi
17356
17357 _ACEOF
17358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17359 exec 5>>config.log
17360 {
17361 echo
17362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17363 ## Running $as_me. ##
17364 _ASBOX
17365 $as_echo "$ac_log"
17366 } >&5
17367
17368 _ACEOF
17369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17370 #
17371 # INIT-COMMANDS
17372 #
17373 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17374
17375
17376 # The HP-UX ksh and POSIX shell print the target directory to stdout
17377 # if CDPATH is set.
17378 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17379
17380 sed_quote_subst='$sed_quote_subst'
17381 double_quote_subst='$double_quote_subst'
17382 delay_variable_subst='$delay_variable_subst'
17383 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17384 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17385 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17386 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17387 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17388 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17389 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17390 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17391 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17392 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17393 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17394 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17395 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17396 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17397 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17398 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17399 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17400 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17401 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17402 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17403 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17404 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17405 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17406 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17407 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17408 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17409 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17410 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17411 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17412 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17413 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17414 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17415 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17416 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17417 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17418 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17419 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17420 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17421 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17422 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17423 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17424 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17425 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17426 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17427 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17428 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17429 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17430 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17431 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17432 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17433 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17434 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17435 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17436 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17437 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17438 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17439 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17440 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17441 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17442 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17443 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17444 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17445 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17446 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17447 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17448 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17449 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17450 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17451 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17452 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17453 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17454 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17455 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17456 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17457 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17458 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17459 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17460 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17461 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17462 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17463 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17464 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17465 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17466 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17467 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17468 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17469 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17470 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17471 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17472 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17473 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17474 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17475 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17476 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17477 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17478 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17479 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17480 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17481 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17482 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17483 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17484 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17485 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17486 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17487 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17488 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17489 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17490 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17491 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17492 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17493 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17494 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17495 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17496 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17497 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17498 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17499 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17500 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17501 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17502 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17503 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17504 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17505 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17506 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17507 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17508 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17509 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17510 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17511 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17512 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17513 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17514 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17515 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17516 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17517 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17518 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17519
17520 LTCC='$LTCC'
17521 LTCFLAGS='$LTCFLAGS'
17522 compiler='$compiler_DEFAULT'
17523
17524 # A function that is used when there is no print builtin or printf.
17525 func_fallback_echo ()
17526 {
17527 eval 'cat <<_LTECHO_EOF
17528 \$1
17529 _LTECHO_EOF'
17530 }
17531
17532 # Quote evaled strings.
17533 for var in AS \
17534 DLLTOOL \
17535 OBJDUMP \
17536 SHELL \
17537 ECHO \
17538 PATH_SEPARATOR \
17539 SED \
17540 GREP \
17541 EGREP \
17542 FGREP \
17543 LD \
17544 NM \
17545 LN_S \
17546 lt_SP2NL \
17547 lt_NL2SP \
17548 reload_flag \
17549 deplibs_check_method \
17550 file_magic_cmd \
17551 file_magic_glob \
17552 want_nocaseglob \
17553 sharedlib_from_linklib_cmd \
17554 AR \
17555 AR_FLAGS \
17556 archiver_list_spec \
17557 STRIP \
17558 RANLIB \
17559 CC \
17560 CFLAGS \
17561 compiler \
17562 lt_cv_sys_global_symbol_pipe \
17563 lt_cv_sys_global_symbol_to_cdecl \
17564 lt_cv_sys_global_symbol_to_import \
17565 lt_cv_sys_global_symbol_to_c_name_address \
17566 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17567 lt_cv_nm_interface \
17568 nm_file_list_spec \
17569 lt_cv_truncate_bin \
17570 lt_prog_compiler_no_builtin_flag \
17571 lt_prog_compiler_pic \
17572 lt_prog_compiler_wl \
17573 lt_prog_compiler_static \
17574 lt_cv_prog_compiler_c_o \
17575 need_locks \
17576 MANIFEST_TOOL \
17577 DSYMUTIL \
17578 NMEDIT \
17579 LIPO \
17580 OTOOL \
17581 OTOOL64 \
17582 shrext_cmds \
17583 export_dynamic_flag_spec \
17584 whole_archive_flag_spec \
17585 compiler_needs_object \
17586 with_gnu_ld \
17587 allow_undefined_flag \
17588 no_undefined_flag \
17589 hardcode_libdir_flag_spec \
17590 hardcode_libdir_separator \
17591 exclude_expsyms \
17592 include_expsyms \
17593 file_list_spec \
17594 variables_saved_for_relink \
17595 libname_spec \
17596 library_names_spec \
17597 soname_spec \
17598 install_override_mode \
17599 finish_eval \
17600 old_striplib \
17601 striplib; do
17602 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17603 *[\\\\\\\`\\"\\\$]*)
17604 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17605 ;;
17606 *)
17607 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17608 ;;
17609 esac
17610 done
17611
17612 # Double-quote double-evaled strings.
17613 for var in reload_cmds \
17614 old_postinstall_cmds \
17615 old_postuninstall_cmds \
17616 old_archive_cmds \
17617 extract_expsyms_cmds \
17618 old_archive_from_new_cmds \
17619 old_archive_from_expsyms_cmds \
17620 archive_cmds \
17621 archive_expsym_cmds \
17622 module_cmds \
17623 module_expsym_cmds \
17624 export_symbols_cmds \
17625 prelink_cmds \
17626 postlink_cmds \
17627 postinstall_cmds \
17628 postuninstall_cmds \
17629 finish_cmds \
17630 sys_lib_search_path_spec \
17631 configure_time_dlsearch_path \
17632 configure_time_lt_sys_library_path; do
17633 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17634 *[\\\\\\\`\\"\\\$]*)
17635 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17636 ;;
17637 *)
17638 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17639 ;;
17640 esac
17641 done
17642
17643 ac_aux_dir='$ac_aux_dir'
17644
17645 # See if we are running on zsh, and set the options that allow our
17646 # commands through without removal of \ escapes INIT.
17647 if test -n "\${ZSH_VERSION+set}"; then
17648 setopt NO_GLOB_SUBST
17649 fi
17650
17651
17652 PACKAGE='$PACKAGE'
17653 VERSION='$VERSION'
17654 RM='$RM'
17655 ofile='$ofile'
17656
17657
17658
17659 PACKAGE="$PACKAGE"
17660 PACKAGE="$PACKAGE"
17661
17662 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
17663 pkgconfig_prefix='$prefix'
17664 pkgconfig_execprefix='$exec_prefix'
17665 pkgconfig_bindir='$bindir'
17666 pkgconfig_libdir='$libdir'
17667 pkgconfig_includedir='$includedir'
17668 pkgconfig_datarootdir='$datarootdir'
17669 pkgconfig_datadir='$datadir'
17670 pkgconfig_sysconfdir='$sysconfdir'
17671 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
17672 pkgconfig_package='$PACKAGE_NAME'
17673 pkgconfig_libname='$ax_create_pkgconfig_libname'
17674 pkgconfig_description='$ax_create_pkgconfig_description'
17675 pkgconfig_version='$ax_create_pkgconfig_version'
17676 pkgconfig_requires='$ax_create_pkgconfig_requires'
17677 pkgconfig_libs='$ax_create_pkgconfig_libs'
17678 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
17679 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
17680 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
17681 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
17682
17683
17684 _ACEOF
17685
17686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17687
17688 # Handling of arguments.
17689 for ac_config_target in $ac_config_targets
17690 do
17691 case $ac_config_target in
17692 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17693 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17694 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17695 "zzip/_config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS zzip/_config.h" ;;
17696 "zzip/_msvc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS zzip/_msvc.h" ;;
17697 "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
17698 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17699 "zzip/Makefile") CONFIG_FILES="$CONFIG_FILES zzip/Makefile" ;;
17700 "zzipwrap/Makefile") CONFIG_FILES="$CONFIG_FILES zzipwrap/Makefile" ;;
17701 "SDL/Makefile") CONFIG_FILES="$CONFIG_FILES SDL/Makefile" ;;
17702 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17703 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
17704 "bins/Makefile") CONFIG_FILES="$CONFIG_FILES bins/Makefile" ;;
17705
17706 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17707 esac
17708 done
17709
17710
17711 # If the user did not use the arguments to specify the items to instantiate,
17712 # then the envvar interface is used. Set only those that are not.
17713 # We use the long form for the default assignment because of an extremely
17714 # bizarre bug on SunOS 4.1.3.
17715 if $ac_need_defaults; then
17716 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17717 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17718 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17719 fi
17720
17721 # Have a temporary directory for convenience. Make it in the build tree
17722 # simply because there is no reason against having it here, and in addition,
17723 # creating and moving files from /tmp can sometimes cause problems.
17724 # Hook for its removal unless debugging.
17725 # Note that there is a small window in which the directory will not be cleaned:
17726 # after its creation but before its name has been assigned to `$tmp'.
17727 $debug ||
17728 {
17729 tmp= ac_tmp=
17730 trap 'exit_status=$?
17731 : "${ac_tmp:=$tmp}"
17732 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17733 ' 0
17734 trap 'as_fn_exit 1' 1 2 13 15
17735 }
17736 # Create a (secure) tmp directory for tmp files.
17737
17738 {
17739 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17740 test -d "$tmp"
17741 } ||
17742 {
17743 tmp=./conf$$-$RANDOM
17744 (umask 077 && mkdir "$tmp")
17745 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17746 ac_tmp=$tmp
17747
17748 # Set up the scripts for CONFIG_FILES section.
17749 # No need to generate them if there are no CONFIG_FILES.
17750 # This happens for instance with `./config.status config.h'.
17751 if test -n "$CONFIG_FILES"; then
17752
17753
17754 ac_cr=`echo X | tr X '\015'`
17755 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17756 # But we know of no other shell where ac_cr would be empty at this
17757 # point, so we can use a bashism as a fallback.
17758 if test "x$ac_cr" = x; then
17759 eval ac_cr=\$\'\\r\'
17760 fi
17761 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17762 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17763 ac_cs_awk_cr='\\r'
17764 else
17765 ac_cs_awk_cr=$ac_cr
17766 fi
17767
17768 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17769 _ACEOF
17770
17771
17772 {
17773 echo "cat >conf$$subs.awk <<_ACEOF" &&
17774 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17775 echo "_ACEOF"
17776 } >conf$$subs.sh ||
17777 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17778 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17779 ac_delim='%!_!# '
17780 for ac_last_try in false false false false false :; do
17781 . ./conf$$subs.sh ||
17782 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17783
17784 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17785 if test $ac_delim_n = $ac_delim_num; then
17786 break
17787 elif $ac_last_try; then
17788 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17789 else
17790 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17791 fi
17792 done
17793 rm -f conf$$subs.sh
17794
17795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17796 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17797 _ACEOF
17798 sed -n '
17799 h
17800 s/^/S["/; s/!.*/"]=/
17801 p
17802 g
17803 s/^[^!]*!//
17804 :repl
17805 t repl
17806 s/'"$ac_delim"'$//
17807 t delim
17808 :nl
17809 h
17810 s/\(.\{148\}\)..*/\1/
17811 t more1
17812 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17813 p
17814 n
17815 b repl
17816 :more1
17817 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17818 p
17819 g
17820 s/.\{148\}//
17821 t nl
17822 :delim
17823 h
17824 s/\(.\{148\}\)..*/\1/
17825 t more2
17826 s/["\\]/\\&/g; s/^/"/; s/$/"/
17827 p
17828 b
17829 :more2
17830 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17831 p
17832 g
17833 s/.\{148\}//
17834 t delim
17835 ' <conf$$subs.awk | sed '
17836 /^[^""]/{
17837 N
17838 s/\n//
17839 }
17840 ' >>$CONFIG_STATUS || ac_write_fail=1
17841 rm -f conf$$subs.awk
17842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17843 _ACAWK
17844 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17845 for (key in S) S_is_set[key] = 1
17846 FS = ""
17847
17848 }
17849 {
17850 line = $ 0
17851 nfields = split(line, field, "@")
17852 substed = 0
17853 len = length(field[1])
17854 for (i = 2; i < nfields; i++) {
17855 key = field[i]
17856 keylen = length(key)
17857 if (S_is_set[key]) {
17858 value = S[key]
17859 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17860 len += length(value) + length(field[++i])
17861 substed = 1
17862 } else
17863 len += 1 + keylen
17864 }
17865
17866 print line
17867 }
17868
17869 _ACAWK
17870 _ACEOF
17871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17872 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17873 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17874 else
17875 cat
17876 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17877 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17878 _ACEOF
17879
17880 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17881 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17882 # trailing colons and then remove the whole line if VPATH becomes empty
17883 # (actually we leave an empty line to preserve line numbers).
17884 if test "x$srcdir" = x.; then
17885 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17886 h
17887 s///
17888 s/^/:/
17889 s/[ ]*$/:/
17890 s/:\$(srcdir):/:/g
17891 s/:\${srcdir}:/:/g
17892 s/:@srcdir@:/:/g
17893 s/^:*//
17894 s/:*$//
17895 x
17896 s/\(=[ ]*\).*/\1/
17897 G
17898 s/\n//
17899 s/^[^=]*=[ ]*$//
17900 }'
17901 fi
17902
17903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17904 fi # test -n "$CONFIG_FILES"
17905
17906 # Set up the scripts for CONFIG_HEADERS section.
17907 # No need to generate them if there are no CONFIG_HEADERS.
17908 # This happens for instance with `./config.status Makefile'.
17909 if test -n "$CONFIG_HEADERS"; then
17910 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17911 BEGIN {
17912 _ACEOF
17913
17914 # Transform confdefs.h into an awk script `defines.awk', embedded as
17915 # here-document in config.status, that substitutes the proper values into
17916 # config.h.in to produce config.h.
17917
17918 # Create a delimiter string that does not exist in confdefs.h, to ease
17919 # handling of long lines.
17920 ac_delim='%!_!# '
17921 for ac_last_try in false false :; do
17922 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17923 if test -z "$ac_tt"; then
17924 break
17925 elif $ac_last_try; then
17926 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17927 else
17928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17929 fi
17930 done
17931
17932 # For the awk script, D is an array of macro values keyed by name,
17933 # likewise P contains macro parameters if any. Preserve backslash
17934 # newline sequences.
17935
17936 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17937 sed -n '
17938 s/.\{148\}/&'"$ac_delim"'/g
17939 t rset
17940 :rset
17941 s/^[ ]*#[ ]*define[ ][ ]*/ /
17942 t def
17943 d
17944 :def
17945 s/\\$//
17946 t bsnl
17947 s/["\\]/\\&/g
17948 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17949 D["\1"]=" \3"/p
17950 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17951 d
17952 :bsnl
17953 s/["\\]/\\&/g
17954 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17955 D["\1"]=" \3\\\\\\n"\\/p
17956 t cont
17957 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17958 t cont
17959 d
17960 :cont
17961 n
17962 s/.\{148\}/&'"$ac_delim"'/g
17963 t clear
17964 :clear
17965 s/\\$//
17966 t bsnlc
17967 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17968 d
17969 :bsnlc
17970 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17971 b cont
17972 ' <confdefs.h | sed '
17973 s/'"$ac_delim"'/"\\\
17974 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17975
17976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17977 for (key in D) D_is_set[key] = 1
17978 FS = ""
17979 }
17980 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17981 line = \$ 0
17982 split(line, arg, " ")
17983 if (arg[1] == "#") {
17984 defundef = arg[2]
17985 mac1 = arg[3]
17986 } else {
17987 defundef = substr(arg[1], 2)
17988 mac1 = arg[2]
17989 }
17990 split(mac1, mac2, "(") #)
17991 macro = mac2[1]
17992 prefix = substr(line, 1, index(line, defundef) - 1)
17993 if (D_is_set[macro]) {
17994 # Preserve the white space surrounding the "#".
17995 print prefix "define", macro P[macro] D[macro]
17996 next
17997 } else {
17998 # Replace #undef with comments. This is necessary, for example,
17999 # in the case of _POSIX_SOURCE, which is predefined and required
18000 # on some systems where configure will not decide to define it.
18001 if (defundef == "undef") {
18002 print "/*", prefix defundef, macro, "*/"
18003 next
18004 }
18005 }
18006 }
18007 { print }
18008 _ACAWK
18009 _ACEOF
18010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18011 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18012 fi # test -n "$CONFIG_HEADERS"
18013
18014
18015 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18016 shift
18017 for ac_tag
18018 do
18019 case $ac_tag in
18020 :[FHLC]) ac_mode=$ac_tag; continue;;
18021 esac
18022 case $ac_mode$ac_tag in
18023 :[FHL]*:*);;
18024 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18025 :[FH]-) ac_tag=-:-;;
18026 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18027 esac
18028 ac_save_IFS=$IFS
18029 IFS=:
18030 set x $ac_tag
18031 IFS=$ac_save_IFS
18032 shift
18033 ac_file=$1
18034 shift
18035
18036 case $ac_mode in
18037 :L) ac_source=$1;;
18038 :[FH])
18039 ac_file_inputs=
18040 for ac_f
18041 do
18042 case $ac_f in
18043 -) ac_f="$ac_tmp/stdin";;
18044 *) # Look for the file first in the build tree, then in the source tree
18045 # (if the path is not absolute). The absolute path cannot be DOS-style,
18046 # because $ac_f cannot contain `:'.
18047 test -f "$ac_f" ||
18048 case $ac_f in
18049 [\\/$]*) false;;
18050 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18051 esac ||
18052 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18053 esac
18054 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18055 as_fn_append ac_file_inputs " '$ac_f'"
18056 done
18057
18058 # Let's still pretend it is `configure' which instantiates (i.e., don't
18059 # use $as_me), people would be surprised to read:
18060 # /* config.h. Generated by config.status. */
18061 configure_input='Generated from '`
18062 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18063 `' by configure.'
18064 if test x"$ac_file" != x-; then
18065 configure_input="$ac_file. $configure_input"
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18067 $as_echo "$as_me: creating $ac_file" >&6;}
18068 fi
18069 # Neutralize special characters interpreted by sed in replacement strings.
18070 case $configure_input in #(
18071 *\&* | *\|* | *\\* )
18072 ac_sed_conf_input=`$as_echo "$configure_input" |
18073 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18074 *) ac_sed_conf_input=$configure_input;;
18075 esac
18076
18077 case $ac_tag in
18078 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18079 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18080 esac
18081 ;;
18082 esac
18083
18084 ac_dir=`$as_dirname -- "$ac_file" ||
18085 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18086 X"$ac_file" : 'X\(//\)[^/]' \| \
18087 X"$ac_file" : 'X\(//\)$' \| \
18088 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18089 $as_echo X"$ac_file" |
18090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18091 s//\1/
18092 q
18093 }
18094 /^X\(\/\/\)[^/].*/{
18095 s//\1/
18096 q
18097 }
18098 /^X\(\/\/\)$/{
18099 s//\1/
18100 q
18101 }
18102 /^X\(\/\).*/{
18103 s//\1/
18104 q
18105 }
18106 s/.*/./; q'`
18107 as_dir="$ac_dir"; as_fn_mkdir_p
18108 ac_builddir=.
18109
18110 case "$ac_dir" in
18111 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18112 *)
18113 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18114 # A ".." for each directory in $ac_dir_suffix.
18115 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18116 case $ac_top_builddir_sub in
18117 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18118 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18119 esac ;;
18120 esac
18121 ac_abs_top_builddir=$ac_pwd
18122 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18123 # for backward compatibility:
18124 ac_top_builddir=$ac_top_build_prefix
18125
18126 case $srcdir in
18127 .) # We are building in place.
18128 ac_srcdir=.
18129 ac_top_srcdir=$ac_top_builddir_sub
18130 ac_abs_top_srcdir=$ac_pwd ;;
18131 [\\/]* | ?:[\\/]* ) # Absolute name.
18132 ac_srcdir=$srcdir$ac_dir_suffix;
18133 ac_top_srcdir=$srcdir
18134 ac_abs_top_srcdir=$srcdir ;;
18135 *) # Relative name.
18136 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18137 ac_top_srcdir=$ac_top_build_prefix$srcdir
18138 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18139 esac
18140 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18141
18142
18143 case $ac_mode in
18144 :F)
18145 #
18146 # CONFIG_FILE
18147 #
18148
18149 case $INSTALL in
18150 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18151 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18152 esac
18153 ac_MKDIR_P=$MKDIR_P
18154 case $MKDIR_P in
18155 [\\/$]* | ?:[\\/]* ) ;;
18156 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18157 esac
18158 _ACEOF
18159
18160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18161 # If the template does not know about datarootdir, expand it.
18162 # FIXME: This hack should be removed a few years after 2.60.
18163 ac_datarootdir_hack=; ac_datarootdir_seen=
18164 ac_sed_dataroot='
18165 /datarootdir/ {
18166 p
18167 q
18168 }
18169 /@datadir@/p
18170 /@docdir@/p
18171 /@infodir@/p
18172 /@localedir@/p
18173 /@mandir@/p'
18174 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18175 *datarootdir*) ac_datarootdir_seen=yes;;
18176 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18178 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18179 _ACEOF
18180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18181 ac_datarootdir_hack='
18182 s&@datadir@&$datadir&g
18183 s&@docdir@&$docdir&g
18184 s&@infodir@&$infodir&g
18185 s&@localedir@&$localedir&g
18186 s&@mandir@&$mandir&g
18187 s&\\\${datarootdir}&$datarootdir&g' ;;
18188 esac
18189 _ACEOF
18190
18191 # Neutralize VPATH when `$srcdir' = `.'.
18192 # Shell code in configure.ac might set extrasub.
18193 # FIXME: do we really want to maintain this feature?
18194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18195 ac_sed_extra="$ac_vpsub
18196 $extrasub
18197 _ACEOF
18198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18199 :t
18200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18201 s|@configure_input@|$ac_sed_conf_input|;t t
18202 s&@top_builddir@&$ac_top_builddir_sub&;t t
18203 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18204 s&@srcdir@&$ac_srcdir&;t t
18205 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18206 s&@top_srcdir@&$ac_top_srcdir&;t t
18207 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18208 s&@builddir@&$ac_builddir&;t t
18209 s&@abs_builddir@&$ac_abs_builddir&;t t
18210 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18211 s&@INSTALL@&$ac_INSTALL&;t t
18212 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18213 $ac_datarootdir_hack
18214 "
18215 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18216 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18217
18218 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18219 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18220 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18221 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18223 which seems to be undefined. Please make sure it is defined" >&5
18224 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18225 which seems to be undefined. Please make sure it is defined" >&2;}
18226
18227 rm -f "$ac_tmp/stdin"
18228 case $ac_file in
18229 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18230 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18231 esac \
18232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18233 ;;
18234 :H)
18235 #
18236 # CONFIG_HEADER
18237 #
18238 if test x"$ac_file" != x-; then
18239 {
18240 $as_echo "/* $configure_input */" \
18241 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18242 } >"$ac_tmp/config.h" \
18243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18244 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18246 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18247 else
18248 rm -f "$ac_file"
18249 mv "$ac_tmp/config.h" "$ac_file" \
18250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18251 fi
18252 else
18253 $as_echo "/* $configure_input */" \
18254 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18255 || as_fn_error $? "could not create -" "$LINENO" 5
18256 fi
18257 # Compute "$ac_file"'s index in $config_headers.
18258 _am_arg="$ac_file"
18259 _am_stamp_count=1
18260 for _am_header in $config_headers :; do
18261 case $_am_header in
18262 $_am_arg | $_am_arg:* )
18263 break ;;
18264 * )
18265 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18266 esac
18267 done
18268 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18269 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18270 X"$_am_arg" : 'X\(//\)[^/]' \| \
18271 X"$_am_arg" : 'X\(//\)$' \| \
18272 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18273 $as_echo X"$_am_arg" |
18274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18275 s//\1/
18276 q
18277 }
18278 /^X\(\/\/\)[^/].*/{
18279 s//\1/
18280 q
18281 }
18282 /^X\(\/\/\)$/{
18283 s//\1/
18284 q
18285 }
18286 /^X\(\/\).*/{
18287 s//\1/
18288 q
18289 }
18290 s/.*/./; q'`/stamp-h$_am_stamp_count
18291 ;;
18292
18293 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18294 $as_echo "$as_me: executing $ac_file commands" >&6;}
18295 ;;
18296 esac
18297
18298
18299 case $ac_file$ac_mode in
18300 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18301 # Older Autoconf quotes --file arguments for eval, but not when files
18302 # are listed without --file. Let's play safe and only enable the eval
18303 # if we detect the quoting.
18304 case $CONFIG_FILES in
18305 *\'*) eval set x "$CONFIG_FILES" ;;
18306 *) set x $CONFIG_FILES ;;
18307 esac
18308 shift
18309 for mf
18310 do
18311 # Strip MF so we end up with the name of the file.
18312 mf=`echo "$mf" | sed -e 's/:.*$//'`
18313 # Check whether this is an Automake generated Makefile or not.
18314 # We used to match only the files named 'Makefile.in', but
18315 # some people rename them; so instead we look at the file content.
18316 # Grep'ing the first line is not enough: some people post-process
18317 # each Makefile.in and add a new line on top of each file to say so.
18318 # Grep'ing the whole file is not good either: AIX grep has a line
18319 # limit of 2048, but all sed's we know have understand at least 4000.
18320 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18321 dirpart=`$as_dirname -- "$mf" ||
18322 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18323 X"$mf" : 'X\(//\)[^/]' \| \
18324 X"$mf" : 'X\(//\)$' \| \
18325 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18326 $as_echo X"$mf" |
18327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18328 s//\1/
18329 q
18330 }
18331 /^X\(\/\/\)[^/].*/{
18332 s//\1/
18333 q
18334 }
18335 /^X\(\/\/\)$/{
18336 s//\1/
18337 q
18338 }
18339 /^X\(\/\).*/{
18340 s//\1/
18341 q
18342 }
18343 s/.*/./; q'`
18344 else
18345 continue
18346 fi
18347 # Extract the definition of DEPDIR, am__include, and am__quote
18348 # from the Makefile without running 'make'.
18349 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18350 test -z "$DEPDIR" && continue
18351 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18352 test -z "$am__include" && continue
18353 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18354 # Find all dependency output files, they are included files with
18355 # $(DEPDIR) in their names. We invoke sed twice because it is the
18356 # simplest approach to changing $(DEPDIR) to its actual value in the
18357 # expansion.
18358 for file in `sed -n "
18359 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18360 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18361 # Make sure the directory exists.
18362 test -f "$dirpart/$file" && continue
18363 fdir=`$as_dirname -- "$file" ||
18364 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18365 X"$file" : 'X\(//\)[^/]' \| \
18366 X"$file" : 'X\(//\)$' \| \
18367 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18368 $as_echo X"$file" |
18369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18370 s//\1/
18371 q
18372 }
18373 /^X\(\/\/\)[^/].*/{
18374 s//\1/
18375 q
18376 }
18377 /^X\(\/\/\)$/{
18378 s//\1/
18379 q
18380 }
18381 /^X\(\/\).*/{
18382 s//\1/
18383 q
18384 }
18385 s/.*/./; q'`
18386 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18387 # echo "creating $dirpart/$file"
18388 echo '# dummy' > "$dirpart/$file"
18389 done
18390 done
18391 }
18392 ;;
18393 "libtool":C)
18394
18395 # See if we are running on zsh, and set the options that allow our
18396 # commands through without removal of \ escapes.
18397 if test -n "${ZSH_VERSION+set}"; then
18398 setopt NO_GLOB_SUBST
18399 fi
18400
18401 cfgfile=${ofile}T
18402 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18403 $RM "$cfgfile"
18404
18405 cat <<_LT_EOF >> "$cfgfile"
18406 #! $SHELL
18407 # Generated automatically by $as_me ($PACKAGE) $VERSION
18408 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18409
18410 # Provide generalized library-building support services.
18411 # Written by Gordon Matzigkeit, 1996
18412
18413 # Copyright (C) 2014 Free Software Foundation, Inc.
18414 # This is free software; see the source for copying conditions. There is NO
18415 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18416
18417 # GNU Libtool is free software; you can redistribute it and/or modify
18418 # it under the terms of the GNU General Public License as published by
18419 # the Free Software Foundation; either version 2 of of the License, or
18420 # (at your option) any later version.
18421 #
18422 # As a special exception to the GNU General Public License, if you
18423 # distribute this file as part of a program or library that is built
18424 # using GNU Libtool, you may include this file under the same
18425 # distribution terms that you use for the rest of that program.
18426 #
18427 # GNU Libtool is distributed in the hope that it will be useful, but
18428 # WITHOUT ANY WARRANTY; without even the implied warranty of
18429 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18430 # GNU General Public License for more details.
18431 #
18432 # You should have received a copy of the GNU General Public License
18433 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18434
18435
18436 # The names of the tagged configurations supported by this script.
18437 available_tags=''
18438
18439 # Configured defaults for sys_lib_dlsearch_path munging.
18440 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18441
18442 # ### BEGIN LIBTOOL CONFIG
18443
18444 # Assembler program.
18445 AS=$lt_AS
18446
18447 # DLL creation program.
18448 DLLTOOL=$lt_DLLTOOL
18449
18450 # Object dumper program.
18451 OBJDUMP=$lt_OBJDUMP
18452
18453 # Which release of libtool.m4 was used?
18454 macro_version=$macro_version
18455 macro_revision=$macro_revision
18456
18457 # Whether or not to build shared libraries.
18458 build_libtool_libs=$enable_shared
18459
18460 # Whether or not to build static libraries.
18461 build_old_libs=$enable_static
18462
18463 # What type of objects to build.
18464 pic_mode=$pic_mode
18465
18466 # Whether or not to optimize for fast installation.
18467 fast_install=$enable_fast_install
18468
18469 # Shared archive member basename,for filename based shared library versioning on AIX.
18470 shared_archive_member_spec=$shared_archive_member_spec
18471
18472 # Shell to use when invoking shell scripts.
18473 SHELL=$lt_SHELL
18474
18475 # An echo program that protects backslashes.
18476 ECHO=$lt_ECHO
18477
18478 # The PATH separator for the build system.
18479 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18480
18481 # The host system.
18482 host_alias=$host_alias
18483 host=$host
18484 host_os=$host_os
18485
18486 # The build system.
18487 build_alias=$build_alias
18488 build=$build
18489 build_os=$build_os
18490
18491 # A sed program that does not truncate output.
18492 SED=$lt_SED
18493
18494 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18495 Xsed="\$SED -e 1s/^X//"
18496
18497 # A grep program that handles long lines.
18498 GREP=$lt_GREP
18499
18500 # An ERE matcher.
18501 EGREP=$lt_EGREP
18502
18503 # A literal string matcher.
18504 FGREP=$lt_FGREP
18505
18506 # A BSD- or MS-compatible name lister.
18507 NM=$lt_NM
18508
18509 # Whether we need soft or hard links.
18510 LN_S=$lt_LN_S
18511
18512 # What is the maximum length of a command?
18513 max_cmd_len=$max_cmd_len
18514
18515 # Object file suffix (normally "o").
18516 objext=$ac_objext
18517
18518 # Executable file suffix (normally "").
18519 exeext=$exeext
18520
18521 # whether the shell understands "unset".
18522 lt_unset=$lt_unset
18523
18524 # turn spaces into newlines.
18525 SP2NL=$lt_lt_SP2NL
18526
18527 # turn newlines into spaces.
18528 NL2SP=$lt_lt_NL2SP
18529
18530 # convert \$build file names to \$host format.
18531 to_host_file_cmd=$lt_cv_to_host_file_cmd
18532
18533 # convert \$build files to toolchain format.
18534 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18535
18536 # Method to check whether dependent libraries are shared objects.
18537 deplibs_check_method=$lt_deplibs_check_method
18538
18539 # Command to use when deplibs_check_method = "file_magic".
18540 file_magic_cmd=$lt_file_magic_cmd
18541
18542 # How to find potential files when deplibs_check_method = "file_magic".
18543 file_magic_glob=$lt_file_magic_glob
18544
18545 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18546 want_nocaseglob=$lt_want_nocaseglob
18547
18548 # Command to associate shared and link libraries.
18549 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18550
18551 # The archiver.
18552 AR=$lt_AR
18553
18554 # Flags to create an archive.
18555 AR_FLAGS=$lt_AR_FLAGS
18556
18557 # How to feed a file listing to the archiver.
18558 archiver_list_spec=$lt_archiver_list_spec
18559
18560 # A symbol stripping program.
18561 STRIP=$lt_STRIP
18562
18563 # Commands used to install an old-style archive.
18564 RANLIB=$lt_RANLIB
18565 old_postinstall_cmds=$lt_old_postinstall_cmds
18566 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18567
18568 # Whether to use a lock for old archive extraction.
18569 lock_old_archive_extraction=$lock_old_archive_extraction
18570
18571 # A C compiler.
18572 LTCC=$lt_CC
18573
18574 # LTCC compiler flags.
18575 LTCFLAGS=$lt_CFLAGS
18576
18577 # Take the output of nm and produce a listing of raw symbols and C names.
18578 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18579
18580 # Transform the output of nm in a proper C declaration.
18581 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18582
18583 # Transform the output of nm into a list of symbols to manually relocate.
18584 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18585
18586 # Transform the output of nm in a C name address pair.
18587 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18588
18589 # Transform the output of nm in a C name address pair when lib prefix is needed.
18590 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18591
18592 # The name lister interface.
18593 nm_interface=$lt_lt_cv_nm_interface
18594
18595 # Specify filename containing input files for \$NM.
18596 nm_file_list_spec=$lt_nm_file_list_spec
18597
18598 # The root where to search for dependent libraries,and where our libraries should be installed.
18599 lt_sysroot=$lt_sysroot
18600
18601 # Command to truncate a binary pipe.
18602 lt_truncate_bin=$lt_lt_cv_truncate_bin
18603
18604 # The name of the directory that contains temporary libtool files.
18605 objdir=$objdir
18606
18607 # Used to examine libraries when file_magic_cmd begins with "file".
18608 MAGIC_CMD=$MAGIC_CMD
18609
18610 # Must we lock files when doing compilation?
18611 need_locks=$lt_need_locks
18612
18613 # Manifest tool.
18614 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18615
18616 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18617 DSYMUTIL=$lt_DSYMUTIL
18618
18619 # Tool to change global to local symbols on Mac OS X.
18620 NMEDIT=$lt_NMEDIT
18621
18622 # Tool to manipulate fat objects and archives on Mac OS X.
18623 LIPO=$lt_LIPO
18624
18625 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18626 OTOOL=$lt_OTOOL
18627
18628 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18629 OTOOL64=$lt_OTOOL64
18630
18631 # Old archive suffix (normally "a").
18632 libext=$libext
18633
18634 # Shared library suffix (normally ".so").
18635 shrext_cmds=$lt_shrext_cmds
18636
18637 # The commands to extract the exported symbol list from a shared archive.
18638 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18639
18640 # Variables whose values should be saved in libtool wrapper scripts and
18641 # restored at link time.
18642 variables_saved_for_relink=$lt_variables_saved_for_relink
18643
18644 # Do we need the "lib" prefix for modules?
18645 need_lib_prefix=$need_lib_prefix
18646
18647 # Do we need a version for libraries?
18648 need_version=$need_version
18649
18650 # Library versioning type.
18651 version_type=$version_type
18652
18653 # Shared library runtime path variable.
18654 runpath_var=$runpath_var
18655
18656 # Shared library path variable.
18657 shlibpath_var=$shlibpath_var
18658
18659 # Is shlibpath searched before the hard-coded library search path?
18660 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18661
18662 # Format of library name prefix.
18663 libname_spec=$lt_libname_spec
18664
18665 # List of archive names. First name is the real one, the rest are links.
18666 # The last name is the one that the linker finds with -lNAME
18667 library_names_spec=$lt_library_names_spec
18668
18669 # The coded name of the library, if different from the real name.
18670 soname_spec=$lt_soname_spec
18671
18672 # Permission mode override for installation of shared libraries.
18673 install_override_mode=$lt_install_override_mode
18674
18675 # Command to use after installation of a shared archive.
18676 postinstall_cmds=$lt_postinstall_cmds
18677
18678 # Command to use after uninstallation of a shared archive.
18679 postuninstall_cmds=$lt_postuninstall_cmds
18680
18681 # Commands used to finish a libtool library installation in a directory.
18682 finish_cmds=$lt_finish_cmds
18683
18684 # As "finish_cmds", except a single script fragment to be evaled but
18685 # not shown.
18686 finish_eval=$lt_finish_eval
18687
18688 # Whether we should hardcode library paths into libraries.
18689 hardcode_into_libs=$hardcode_into_libs
18690
18691 # Compile-time system search path for libraries.
18692 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18693
18694 # Detected run-time system search path for libraries.
18695 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18696
18697 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18698 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18699
18700 # Whether dlopen is supported.
18701 dlopen_support=$enable_dlopen
18702
18703 # Whether dlopen of programs is supported.
18704 dlopen_self=$enable_dlopen_self
18705
18706 # Whether dlopen of statically linked programs is supported.
18707 dlopen_self_static=$enable_dlopen_self_static
18708
18709 # Commands to strip libraries.
18710 old_striplib=$lt_old_striplib
18711 striplib=$lt_striplib
18712
18713
18714 # The linker used to build libraries.
18715 LD=$lt_LD
18716
18717 # How to create reloadable object files.
18718 reload_flag=$lt_reload_flag
18719 reload_cmds=$lt_reload_cmds
18720
18721 # Commands used to build an old-style archive.
18722 old_archive_cmds=$lt_old_archive_cmds
18723
18724 # A language specific compiler.
18725 CC=$lt_compiler
18726
18727 # Is the compiler the GNU compiler?
18728 with_gcc=$GCC
18729
18730 # Compiler flag to turn off builtin functions.
18731 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18732
18733 # Additional compiler flags for building library objects.
18734 pic_flag=$lt_lt_prog_compiler_pic
18735
18736 # How to pass a linker flag through the compiler.
18737 wl=$lt_lt_prog_compiler_wl
18738
18739 # Compiler flag to prevent dynamic linking.
18740 link_static_flag=$lt_lt_prog_compiler_static
18741
18742 # Does compiler simultaneously support -c and -o options?
18743 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18744
18745 # Whether or not to add -lc for building shared libraries.
18746 build_libtool_need_lc=$archive_cmds_need_lc
18747
18748 # Whether or not to disallow shared libs when runtime libs are static.
18749 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18750
18751 # Compiler flag to allow reflexive dlopens.
18752 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18753
18754 # Compiler flag to generate shared objects directly from archives.
18755 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18756
18757 # Whether the compiler copes with passing no objects directly.
18758 compiler_needs_object=$lt_compiler_needs_object
18759
18760 # Create an old-style archive from a shared archive.
18761 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18762
18763 # Create a temporary old-style archive to link instead of a shared archive.
18764 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18765
18766 # Commands used to build a shared archive.
18767 archive_cmds=$lt_archive_cmds
18768 archive_expsym_cmds=$lt_archive_expsym_cmds
18769
18770 # Commands used to build a loadable module if different from building
18771 # a shared archive.
18772 module_cmds=$lt_module_cmds
18773 module_expsym_cmds=$lt_module_expsym_cmds
18774
18775 # Whether we are building with GNU ld or not.
18776 with_gnu_ld=$lt_with_gnu_ld
18777
18778 # Flag that allows shared libraries with undefined symbols to be built.
18779 allow_undefined_flag=$lt_allow_undefined_flag
18780
18781 # Flag that enforces no undefined symbols.
18782 no_undefined_flag=$lt_no_undefined_flag
18783
18784 # Flag to hardcode \$libdir into a binary during linking.
18785 # This must work even if \$libdir does not exist
18786 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18787
18788 # Whether we need a single "-rpath" flag with a separated argument.
18789 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18790
18791 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18792 # DIR into the resulting binary.
18793 hardcode_direct=$hardcode_direct
18794
18795 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18796 # DIR into the resulting binary and the resulting library dependency is
18797 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18798 # library is relocated.
18799 hardcode_direct_absolute=$hardcode_direct_absolute
18800
18801 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18802 # into the resulting binary.
18803 hardcode_minus_L=$hardcode_minus_L
18804
18805 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18806 # into the resulting binary.
18807 hardcode_shlibpath_var=$hardcode_shlibpath_var
18808
18809 # Set to "yes" if building a shared library automatically hardcodes DIR
18810 # into the library and all subsequent libraries and executables linked
18811 # against it.
18812 hardcode_automatic=$hardcode_automatic
18813
18814 # Set to yes if linker adds runtime paths of dependent libraries
18815 # to runtime path list.
18816 inherit_rpath=$inherit_rpath
18817
18818 # Whether libtool must link a program against all its dependency libraries.
18819 link_all_deplibs=$link_all_deplibs
18820
18821 # Set to "yes" if exported symbols are required.
18822 always_export_symbols=$always_export_symbols
18823
18824 # The commands to list exported symbols.
18825 export_symbols_cmds=$lt_export_symbols_cmds
18826
18827 # Symbols that should not be listed in the preloaded symbols.
18828 exclude_expsyms=$lt_exclude_expsyms
18829
18830 # Symbols that must always be exported.
18831 include_expsyms=$lt_include_expsyms
18832
18833 # Commands necessary for linking programs (against libraries) with templates.
18834 prelink_cmds=$lt_prelink_cmds
18835
18836 # Commands necessary for finishing linking programs.
18837 postlink_cmds=$lt_postlink_cmds
18838
18839 # Specify filename containing input files.
18840 file_list_spec=$lt_file_list_spec
18841
18842 # How to hardcode a shared library path into an executable.
18843 hardcode_action=$hardcode_action
18844
18845 # ### END LIBTOOL CONFIG
18846
18847 _LT_EOF
18848
18849 cat <<'_LT_EOF' >> "$cfgfile"
18850
18851 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18852
18853 # func_munge_path_list VARIABLE PATH
18854 # -----------------------------------
18855 # VARIABLE is name of variable containing _space_ separated list of
18856 # directories to be munged by the contents of PATH, which is string
18857 # having a format:
18858 # "DIR[:DIR]:"
18859 # string "DIR[ DIR]" will be prepended to VARIABLE
18860 # ":DIR[:DIR]"
18861 # string "DIR[ DIR]" will be appended to VARIABLE
18862 # "DIRP[:DIRP]::[DIRA:]DIRA"
18863 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18864 # "DIRA[ DIRA]" will be appended to VARIABLE
18865 # "DIR[:DIR]"
18866 # VARIABLE will be replaced by "DIR[ DIR]"
18867 func_munge_path_list ()
18868 {
18869 case x$2 in
18870 x)
18871 ;;
18872 *:)
18873 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18874 ;;
18875 x:*)
18876 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18877 ;;
18878 *::*)
18879 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18880 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18881 ;;
18882 *)
18883 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18884 ;;
18885 esac
18886 }
18887
18888
18889 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18890 func_cc_basename ()
18891 {
18892 for cc_temp in $*""; do
18893 case $cc_temp in
18894 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18895 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18896 \-*) ;;
18897 *) break;;
18898 esac
18899 done
18900 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18901 }
18902
18903
18904 # ### END FUNCTIONS SHARED WITH CONFIGURE
18905
18906 _LT_EOF
18907
18908 case $host_os in
18909 aix3*)
18910 cat <<\_LT_EOF >> "$cfgfile"
18911 # AIX sometimes has problems with the GCC collect2 program. For some
18912 # reason, if we set the COLLECT_NAMES environment variable, the problems
18913 # vanish in a puff of smoke.
18914 if test set != "${COLLECT_NAMES+set}"; then
18915 COLLECT_NAMES=
18916 export COLLECT_NAMES
18917 fi
18918 _LT_EOF
18919 ;;
18920 esac
18921
18922
18923 ltmain=$ac_aux_dir/ltmain.sh
18924
18925
18926 # We use sed instead of cat because bash on DJGPP gets confused if
18927 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18928 # text mode, it properly converts lines to CR/LF. This bash problem
18929 # is reportedly fixed, but why not run on old versions too?
18930 sed '$q' "$ltmain" >> "$cfgfile" \
18931 || (rm -f "$cfgfile"; exit 1)
18932
18933 mv -f "$cfgfile" "$ofile" ||
18934 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18935 chmod +x "$ofile"
18936
18937 ;;
18938 "zzip/_config.h":C) ac_prefix_conf_OUT=`echo zzip/_config.h`
18939 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
18940 ac_prefix_conf_PKG=`echo zzip`
18941 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
18942 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
18943 ac_prefix_conf_INP=`echo "config.h" | sed -e 's/ *//'`
18944 if test ".$ac_prefix_conf_INP" = "."; then
18945 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
18946 case "$ac_file" in
18947 *.h) ac_prefix_conf_INP=$ac_file ;;
18948 *)
18949 esac
18950 test ".$ac_prefix_conf_INP" != "." && break
18951 done
18952 fi
18953 if test ".$ac_prefix_conf_INP" = "."; then
18954 case "$ac_prefix_conf_OUT" in
18955 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
18956 ;;
18957 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
18958 ;;
18959 *) ac_prefix_conf_INP=config.h
18960 ;;
18961 esac
18962 fi
18963 if test -z "$ac_prefix_conf_PKG" ; then
18964 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
18965 else
18966 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
18967 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
18968 fi fi
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
18970 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
18971 if test -f $ac_prefix_conf_INP ; then
18972 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
18973 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
18974 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
18975 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
18976 echo "#endif/" >>conftest.prefix
18977 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
18978 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
18979 echo "#endif/" >> conftest.prefix
18980 # now executing _script on _DEF input to create _OUT output file
18981 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
18982 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
18983 echo ' ' >>$tmp/pconfig.h
18984 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
18985
18986 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
18987 echo ' ' >>$tmp/pconfig.h
18988 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
18989 echo "#endif" >>$tmp/pconfig.h
18990 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
18992 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
18993 else
18994 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
18995 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18996 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
18997 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
18998 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
18999 $as_echo X"$ac_prefix_conf_OUT" |
19000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19001 s//\1/
19002 q
19003 }
19004 /^X\(\/\/\)[^/].*/{
19005 s//\1/
19006 q
19007 }
19008 /^X\(\/\/\)$/{
19009 s//\1/
19010 q
19011 }
19012 /^X\(\/\).*/{
19013 s//\1/
19014 q
19015 }
19016 s/.*/./; q'`
19017 as_dir="$ac_dir"; as_fn_mkdir_p
19018 rm -f "$ac_prefix_conf_OUT"
19019 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
19020 fi
19021 cp conftest.prefix _configs.sed
19022 else
19023 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
19024 fi
19025 rm -f conftest.*
19026 fi
19027 ;;
19028 "zzip/_msvc.h":C) ac_prefix_conf_OUT=`echo zzip/_msvc.h`
19029 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
19030 ac_prefix_conf_PKG=`echo zzip`
19031 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
19032 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
19033 ac_prefix_conf_INP=`echo "zzip/_msvc.in" | sed -e 's/ *//'`
19034 if test ".$ac_prefix_conf_INP" = "."; then
19035 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
19036 case "$ac_file" in
19037 *.h) ac_prefix_conf_INP=$ac_file ;;
19038 *)
19039 esac
19040 test ".$ac_prefix_conf_INP" != "." && break
19041 done
19042 fi
19043 if test ".$ac_prefix_conf_INP" = "."; then
19044 case "$ac_prefix_conf_OUT" in
19045 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
19046 ;;
19047 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
19048 ;;
19049 *) ac_prefix_conf_INP=config.h
19050 ;;
19051 esac
19052 fi
19053 if test -z "$ac_prefix_conf_PKG" ; then
19054 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
19055 else
19056 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
19057 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
19058 fi fi
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
19060 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
19061 if test -f $ac_prefix_conf_INP ; then
19062 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
19063 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
19064 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
19065 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
19066 echo "#endif/" >>conftest.prefix
19067 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
19068 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
19069 echo "#endif/" >> conftest.prefix
19070 # now executing _script on _DEF input to create _OUT output file
19071 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
19072 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
19073 echo ' ' >>$tmp/pconfig.h
19074 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
19075
19076 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
19077 echo ' ' >>$tmp/pconfig.h
19078 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
19079 echo "#endif" >>$tmp/pconfig.h
19080 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
19082 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
19083 else
19084 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
19085 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19086 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
19087 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
19088 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
19089 $as_echo X"$ac_prefix_conf_OUT" |
19090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19091 s//\1/
19092 q
19093 }
19094 /^X\(\/\/\)[^/].*/{
19095 s//\1/
19096 q
19097 }
19098 /^X\(\/\/\)$/{
19099 s//\1/
19100 q
19101 }
19102 /^X\(\/\).*/{
19103 s//\1/
19104 q
19105 }
19106 s/.*/./; q'`
19107 as_dir="$ac_dir"; as_fn_mkdir_p
19108 rm -f "$ac_prefix_conf_OUT"
19109 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
19110 fi
19111 cp conftest.prefix _configs.sed
19112 else
19113 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
19114 fi
19115 rm -f conftest.*
19116 fi
19117 ;;
19118 "$ax_create_pkgconfig_generate":C)
19119 pkgconfig_generate="$ax_create_pkgconfig_generate"
19120 if test ! -f "$pkgconfig_generate.in"
19121 then generate="true"
19122 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
19123 then generate="true"
19124 else generate="false";
19125 fi
19126 if $generate ; then
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
19128 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
19129 cat > $pkgconfig_generate.in <<AXEOF
19130 # generated by configure / remove this line to disable regeneration
19131 prefix=@prefix@
19132 exec_prefix=@exec_prefix@
19133 bindir=@bindir@
19134 libdir=@libdir@
19135 datarootdir=@datarootdir@
19136 datadir=@datadir@
19137 sysconfdir=@sysconfdir@
19138 includedir=@includedir@
19139 package=@PACKAGE@
19140 suffix=@suffix@
19141
19142 Name: @PACKAGE_NAME@
19143 Description: @PACKAGE_DESCRIPTION@
19144 Version: @PACKAGE_VERSION@
19145 Requires: @PACKAGE_REQUIRES@
19146 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
19147 Cflags: -I\${includedir} @CPPFLAGS@
19148 AXEOF
19149 fi # DONE generate $pkgconfig_generate.in
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
19151 $as_echo "$as_me: creating $pkgconfig_generate" >&6;}
19152 cat >conftest.sed <<AXEOF
19153 s|@prefix@|${pkgconfig_prefix}|
19154 s|@exec_prefix@|${pkgconfig_execprefix}|
19155 s|@bindir@|${pkgconfig_bindir}|
19156 s|@libdir@|${pkgconfig_libdir}|
19157 s|@datarootdir@|${pkgconfig_datarootdir}|
19158 s|@datadir@|${pkgconfig_datadir}|
19159 s|@sysconfdir@|${pkgconfig_sysconfdir}|
19160 s|@includedir@|${pkgconfig_includedir}|
19161 s|@suffix@|${pkgconfig_suffix}|
19162 s|@PACKAGE@|${pkgconfig_package}|
19163 s|@PACKAGE_NAME@|${pkgconfig_libname}|
19164 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
19165 s|@PACKAGE_VERSION@|${pkgconfig_version}|
19166 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
19167 s|@LIBS@|${pkgconfig_libs}|
19168 s|@LDFLAGS@|${pkgconfig_ldflags}|
19169 s|@CPPFLAGS@|${pkgconfig_cppflags}|
19170 AXEOF
19171 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_generate
19172 if test ! -s $pkgconfig_generate ; then
19173 as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
19174 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
19175 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
19177 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
19178 cat >conftest.sed <<AXEOF
19179 s|@prefix@|${pkgconfig_prefix}|
19180 s|@exec_prefix@|${pkgconfig_execprefix}|
19181 s|@bindir@|${pkgconfig_bindir}|
19182 s|@libdir@|${pkgconfig_src_libdir}|
19183 s|@datarootdir@|${pkgconfig_datarootdir}|
19184 s|@datadir@|${pkgconfig_datadir}|
19185 s|@sysconfdir@|${pkgconfig_sysconfdir}|
19186 s|@includedir@|${pkgconfig_src_headers}|
19187 s|@suffix@|${pkgconfig_suffix}|
19188 s|@PACKAGE@|${pkgconfig_package}|
19189 s|@PACKAGE_NAME@|${pkgconfig_libname}|
19190 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
19191 s|@PACKAGE_VERSION@|${pkgconfig_version}|
19192 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
19193 s|@LIBS@|${pkgconfig_libs}|
19194 s|@LDFLAGS@|${pkgconfig_ldflags}|
19195 s|@CPPFLAGS@|${pkgconfig_cppflags}|
19196 AXEOF
19197 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
19198 if test ! -s $pkgconfig_uninstalled ; then
19199 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
19200 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
19201 pkgconfig_requires_add=`echo ${pkgconfig_requires}`
19202 if test ".$pkgconfig_requires_add" != "." ; then
19203 pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
19204 else pkgconfig_requires_add=":" ; fi
19205 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
19207 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
19208 cat >conftest.sed <<AXEOF
19209 s|@prefix@|\"${pkgconfig_prefix}\"|
19210 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
19211 s|@bindir@|\"${pkgconfig_bindir}\"|
19212 s|@libdir@|\"${pkgconfig_src_libdir}\"|
19213 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
19214 s|@datadir@|\"${pkgconfig_datadir}\"|
19215 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
19216 s|@includedir@|\"${pkgconfig_src_headers}\"|
19217 s|@suffix@|\"${pkgconfig_suffix}\"|
19218 s|@PACKAGE@|\"${pkgconfig_package}\"|
19219 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
19220 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
19221 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
19222 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
19223 s|@LIBS@|\"${pkgconfig_libs}\"|
19224 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
19225 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
19226 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
19227 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
19228 s>Version: *>\\;\\; --modversion|--version) echo >
19229 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
19230 s>Libs: *>\\;\\; --libs) echo >
19231 s>Cflags: *>\\;\\; --cflags) echo >
19232 /--libs)/a\\
19233 $pkgconfig_requires_add
19234 /--cflags)/a\\
19235 $pkgconfig_requires_add\\
19236 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
19237 ;; --uninstalled) exit 0 \\
19238 ;; *) ;; esac done
19239 AXEOF
19240 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
19241 if test ! -s $pkgconfig_uninstalled ; then
19242 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
19243 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
19244 ;;
19245
19246 esac
19247 done # for ac_tag
19248
19249
19250 as_fn_exit 0
19251 _ACEOF
19252 ac_clean_files=$ac_clean_files_save
19253
19254 test $ac_write_fail = 0 ||
19255 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19256
19257
19258 # configure is writing to config.log, and then calls config.status.
19259 # config.status does its own redirection, appending to config.log.
19260 # Unfortunately, on DOS this fails, as config.log is still kept open
19261 # by configure, so config.status won't be able to write to it; its
19262 # output is simply discarded. So we exec the FD to /dev/null,
19263 # effectively closing config.log, so it can be properly (re)opened and
19264 # appended to by config.status. When coming back to configure, we
19265 # need to make the FD available again.
19266 if test "$no_create" != yes; then
19267 ac_cs_success=:
19268 ac_config_status_args=
19269 test "$silent" = yes &&
19270 ac_config_status_args="$ac_config_status_args --quiet"
19271 exec 5>/dev/null
19272 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19273 exec 5>>config.log
19274 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19275 # would make configure fail if this is the last instruction.
19276 $ac_cs_success || as_fn_exit 1
19277 fi
19278 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19280 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19281 fi
19282
19283 # libtool-1.4 specific, on zsh target the final requoting does one too much
19284 case "$host_os" in
19285 darwin*)
19286 if grep "1.92" libtool >/dev/null ; then
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: patching libtool on .so-sharedlib creation (zsh overquoting)" >&5
19288 $as_echo "patching libtool on .so-sharedlib creation (zsh overquoting)" >&6; }
19289 test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
19290 sed -e '/archive_cmds=/s:[\\][\\][\\]*":\\":g' libtool >libtool.new
19291 (test -s libtool.new || rm libtool.new) 2>/dev/null
19292 test -f libtool.new && mv libtool.new libtool # not 2>/dev/null !!
19293 test -f libtool || mv libtool.old libtool
19294 fi
19295 ;;
19296 esac
19297
19298 # patch libtool to fix sys_lib_search_path (e.g. crosscompiling a win32 dll)
19299 if test "_$PATH_SEPARATOR" = "_:" ; then
19300 if grep "^sys_lib_search_path_spec.*:" libtool >/dev/null ; then
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: patching libtool to fix sys_lib_search_path_spec" >&5
19302 $as_echo "patching libtool to fix sys_lib_search_path_spec" >&6; }
19303 test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
19304 sed -e "/^sys_lib_search_path_spec/s/:/ /g" libtool >libtool.new
19305 (test -s libtool.new || rm libtool.new) 2>/dev/null
19306 test -f libtool.new && mv libtool.new libtool # not 2>/dev/null !!
19307 test -f libtool || mv libtool.old libtool
19308 fi
19309 fi
19310
19311 # patch libtool to add HOST_CC sometimes needed in crosscompiling a win32 dll
19312 if grep "HOST_CC" libtool >/dev/null; then
19313 if test "$build" != "$host" ; then
19314 if test "_$HOST_CC" = "_" ; then
19315 HOST_CC="false"
19316 for i in `echo $PATH | sed 's,:, ,g'` ; do
19317 test -x $i/cc && HOST_CC=$i/cc
19318 done
19319 fi
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: patching libtool to add HOST_CC=$HOST_CC" >&5
19321 $as_echo "patching libtool to add HOST_CC=$HOST_CC" >&6; }
19322 test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
19323 sed -e "/BEGIN.*LIBTOOL.*CONFIG/a\\
19324 HOST_CC=$HOST_CC" libtool >libtool.new
19325 (test -s libtool.new || rm libtool.new) 2>/dev/null
19326 test -f libtool.new && mv libtool.new libtool # not 2>/dev/null !!
19327 test -f libtool || mv libtool.old libtool
19328 fi
19329 fi
19330
19331 # ---------------------------------------------------------------
19332 echo '-----' $PACKAGE $VERSION $prefix
19333 $SHELL libtool --features || true
19334 echo "CPPFLAGS=$CPPFLAGS"
19335 echo "CFLAGS=$CFLAGS"
19336 test "$enable_mmap" != "no" && echo "enable mmap ($enable_mmap)"
19337 test "$enable_mmap" = "no" && echo "disable mmap ($enable_mmap)"
19338 test "$with_lowstk" != "no" && echo "with lowstk ($with_lowstk)"
19339 test "$with_lowstk" = "no" && echo "without lowstk ($with_lowstk)"
19340 test "$with_debug" != "no" && echo "with debug ($with_debug)"
19341 test "$with_debug" = "no" && echo "without debug ($with_debug)"
19342 # test -f ./zziplib.spec && echo warning - do not build in the source dirs
19343 echo '# make && make check && make install'