blob: 6205dc3a5accccf947dd5d0f5184b3c6e6fca99b [file] [log] [blame]
Nicolas Jager95c526b2016-10-20 09:47:03 -04001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for QRencode 3.4.4.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='QRencode'
589PACKAGE_TARNAME='qrencode'
590PACKAGE_VERSION='3.4.4'
591PACKAGE_STRING='QRencode 3.4.4'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="qrencode.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636HAVE_SDL_FALSE
637HAVE_SDL_TRUE
638LTLIBICONV
639LIBICONV
640SDL_LIBS
641SDL_CFLAGS
642SDL_CONFIG
643BUILD_TESTS_FALSE
644BUILD_TESTS_TRUE
645png_LIBS
646png_CFLAGS
647BUILD_TOOLS_FALSE
648BUILD_TOOLS_TRUE
649HAVE_LIBPTHREAD_FALSE
650HAVE_LIBPTHREAD_TRUE
651LIBPTHREAD
652PKG_CONFIG_LIBDIR
653PKG_CONFIG_PATH
654PKG_CONFIG
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
660MANIFEST_TOOL
661RANLIB
662ac_ct_AR
663AR
664DLLTOOL
665OBJDUMP
666LN_S
667NM
668ac_ct_DUMPBIN
669DUMPBIN
670LD
671FGREP
672SED
673LIBTOOL
674EGREP
675GREP
676CPP
677am__fastdepCC_FALSE
678am__fastdepCC_TRUE
679CCDEPMODE
680am__nodep
681AMDEPBACKSLASH
682AMDEP_FALSE
683AMDEP_TRUE
684am__quote
685am__include
686DEPDIR
687OBJEXT
688EXEEXT
689ac_ct_CC
690CPPFLAGS
691LDFLAGS
692CFLAGS
693CC
694AM_BACKSLASH
695AM_DEFAULT_VERBOSITY
696AM_DEFAULT_V
697AM_V
698am__untar
699am__tar
700AMTAR
701am__leading_dot
702SET_MAKE
703AWK
704mkdir_p
705MKDIR_P
706INSTALL_STRIP_PROGRAM
707STRIP
708install_sh
709MAKEINFO
710AUTOHEADER
711AUTOMAKE
712AUTOCONF
713ACLOCAL
714VERSION
715PACKAGE
716CYGPATH_W
717am__isrc
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721target_os
722target_vendor
723target_cpu
724target
725host_os
726host_vendor
727host_cpu
728host
729build_os
730build_vendor
731build_cpu
732build
733MICRO_VERSION
734MINOR_VERSION
735MAJOR_VERSION
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
774ac_subst_files=''
775ac_user_opts='
776enable_option_checking
777enable_silent_rules
778enable_static
779enable_dependency_tracking
780enable_shared
781with_pic
782enable_fast_install
783with_gnu_ld
784with_sysroot
785enable_libtool_lock
786enable_thread_safety
787with_tools
788with_tests
789with_sdl_prefix
790with_sdl_exec_prefix
791enable_sdltest
792enable_rpath
793with_libiconv_prefix
794enable_gprof
795enable_gcov
796enable_mudflap
797'
798 ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804LIBS
805CPPFLAGS
806CPP
807PKG_CONFIG
808PKG_CONFIG_PATH
809PKG_CONFIG_LIBDIR
810png_CFLAGS
811png_LIBS'
812
813
814# Initialize some variables set by options.
815ac_init_help=
816ac_init_version=false
817ac_unrecognized_opts=
818ac_unrecognized_sep=
819# The variables have the same names as the options, with
820# dashes changed to underlines.
821cache_file=/dev/null
822exec_prefix=NONE
823no_create=
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
832verbose=
833x_includes=NONE
834x_libraries=NONE
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
841# (The list follows the same order as the GNU Coding Standards.)
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
850includedir='${prefix}/include'
851oldincludedir='/usr/include'
852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853infodir='${datarootdir}/info'
854htmldir='${docdir}'
855dvidir='${docdir}'
856pdfdir='${docdir}'
857psdir='${docdir}'
858libdir='${exec_prefix}/lib'
859localedir='${datarootdir}/locale'
860mandir='${datarootdir}/man'
861
862ac_prev=
863ac_dashdash=
864for ac_option
865do
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
869 ac_prev=
870 continue
871 fi
872
873 case $ac_option in
874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *=) ac_optarg= ;;
876 *) ac_optarg=yes ;;
877 esac
878
879 # Accept the important Cygnus configure options, so we can diagnose typos.
880
881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
889
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
904
905 -datadir | --datadir | --datadi | --datad)
906 ac_prev=datadir ;;
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
909
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926"enable_$ac_useropt"
927"*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
942
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952"enable_$ac_useropt"
953"*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=\$ac_optarg ;;
958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
978
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
983
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1013
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1087
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156"with_$ac_useropt"
1157"*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=\$ac_optarg ;;
1162
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172"with_$ac_useropt"
1173"*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
1178
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1182
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1189
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1196
1197 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information"
1199 ;;
1200
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207 esac
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1210
1211 *)
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 ;;
1218
1219 esac
1220done
1221
1222if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error $? "missing argument to $ac_option"
1225fi
1226
1227if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 esac
1233fi
1234
1235# Check all directory arguments for consistency.
1236for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
1240do
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
1249 case $ac_val in
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 esac
1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254done
1255
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1269 fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error $? "working directory cannot be determined"
1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295$as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\).*/{
1309 s//\1/
1310 q
1311 }
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1316 fi
1317else
1318 ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327 pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
1352\`configure' configures QRencode 3.4.4 to adapt to many kinds of systems.
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE. See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking ...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371
1372Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 [PREFIX]
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/qrencode]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405_ACEOF
1406
1407 cat <<\_ACEOF
1408
1409Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413
1414System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 --target=TARGET configure for building compilers for TARGET [HOST]
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of QRencode 3.4.4:";;
1424 esac
1425 cat <<\_ACEOF
1426
1427Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-silent-rules less verbose build output (undo: "make V=1")
1432 --disable-silent-rules verbose build output (undo: "make V=0")
1433 --enable-static[=PKGS] build static libraries [default=no]
1434 --enable-dependency-tracking
1435 do not reject slow dependency extractors
1436 --disable-dependency-tracking
1437 speeds up one-time build
1438 --enable-shared[=PKGS] build shared libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --disable-libtool-lock avoid locking (might break parallel builds)
1442 --enable-thread-safety make the library thread-safe. [default=yes]
1443 --disable-sdltest Do not try to compile and run a test SDL program
1444 --disable-rpath do not hardcode runtime library paths
1445 --enable-gprof generate extra code to write profile information
1446 suitable for gprof [default=no]
1447 --enable-gcov generate extra code to write coverage information
1448 suitable for gcov [default=no]
1449 --enable-mudflap generate extra code to check memory leaks
1450 [default=no]
1451
1452Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1456 both]
1457 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1458 --with-sysroot=DIR Search for dependent libraries within DIR
1459 (or the compiler's sysroot if not specified).
1460 --with-tools build utility tools [default=yes]
1461 --with-tests build tests [default=no]
1462 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1463 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1466 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1467
1468Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 CPP C preprocessor
1477 PKG_CONFIG path to pkg-config utility
1478 PKG_CONFIG_PATH
1479 directories to add to pkg-config's search path
1480 PKG_CONFIG_LIBDIR
1481 path overriding pkg-config's built-in search path
1482 png_CFLAGS C compiler flags for png, overriding pkg-config
1483 png_LIBS linker flags for png, overriding pkg-config
1484
1485Use these variables to override the choices made by `configure' or to help
1486it to find libraries and programs with nonstandard names/locations.
1487
1488Report bugs to the package provider.
1489_ACEOF
1490ac_status=$?
1491fi
1492
1493if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" ||
1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498 continue
1499 ac_builddir=.
1500
1501case "$ac_dir" in
1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503*)
1504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511esac
1512ac_abs_top_builddir=$ac_pwd
1513ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514# for backward compatibility:
1515ac_top_builddir=$ac_top_build_prefix
1516
1517case $srcdir in
1518 .) # We are building in place.
1519 ac_srcdir=.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530esac
1531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure" --help=recursive
1541 else
1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 fi || ac_status=$?
1544 cd "$ac_pwd" || { ac_status=$?; break; }
1545 done
1546fi
1547
1548test -n "$ac_init_help" && exit $ac_status
1549if $ac_init_version; then
1550 cat <<\_ACEOF
1551QRencode configure 3.4.4
1552generated by GNU Autoconf 2.69
1553
1554Copyright (C) 2012 Free Software Foundation, Inc.
1555This configure script is free software; the Free Software Foundation
1556gives unlimited permission to copy, distribute and modify it.
1557_ACEOF
1558 exit
1559fi
1560
1561## ------------------------ ##
1562## Autoconf initialization. ##
1563## ------------------------ ##
1564
1565# ac_fn_c_try_compile LINENO
1566# --------------------------
1567# Try to compile conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_compile ()
1569{
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext
1572 if { { ac_try="$ac_compile"
1573case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576esac
1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578$as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_compile") 2>conftest.err
1580 ac_status=$?
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1585 fi
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest.$ac_objext; then :
1591 ac_retval=0
1592else
1593 $as_echo "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
1595
1596 ac_retval=1
1597fi
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval
1600
1601} # ac_fn_c_try_compile
1602
1603# ac_fn_c_try_cpp LINENO
1604# ----------------------
1605# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1606ac_fn_c_try_cpp ()
1607{
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 if { { ac_try="$ac_cpp conftest.$ac_ext"
1610case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613esac
1614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615$as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1622 fi
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } > conftest.i && {
1625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 }; then :
1628 ac_retval=0
1629else
1630 $as_echo "$as_me: failed program was:" >&5
1631sed 's/^/| /' conftest.$ac_ext >&5
1632
1633 ac_retval=1
1634fi
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval
1637
1638} # ac_fn_c_try_cpp
1639
1640# ac_fn_c_try_run LINENO
1641# ----------------------
1642# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1643# that executables *can* be run.
1644ac_fn_c_try_run ()
1645{
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { { ac_try="$ac_link"
1648case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_link") 2>&5
1655 ac_status=$?
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1658 { { case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_try") 2>&5
1665 ac_status=$?
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; }; }; then :
1668 ac_retval=0
1669else
1670 $as_echo "$as_me: program exited with status $ac_status" >&5
1671 $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=$ac_status
1675fi
1676 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1679
1680} # ac_fn_c_try_run
1681
1682# ac_fn_c_try_link LINENO
1683# -----------------------
1684# Try to link conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_link ()
1686{
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext conftest$ac_exeext
1689 if { { ac_try="$ac_link"
1690case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest$ac_exeext && {
1708 test "$cross_compiling" = yes ||
1709 test -x conftest$ac_exeext
1710 }; then :
1711 ac_retval=0
1712else
1713 $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717fi
1718 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720 # interfere with the next link command; also delete a directory that is
1721 # left behind by Apple's compiler. We do this before executing the actions.
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726} # ac_fn_c_try_link
1727
1728# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729# -------------------------------------------------------
1730# Tests whether HEADER exists and can be compiled using the include files in
1731# INCLUDES, setting the cache variable VAR accordingly.
1732ac_fn_c_check_header_compile ()
1733{
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736$as_echo_n "checking for $2... " >&6; }
1737if eval \${$3+:} false; then :
1738 $as_echo_n "(cached) " >&6
1739else
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h. */
1742$4
1743#include <$2>
1744_ACEOF
1745if ac_fn_c_try_compile "$LINENO"; then :
1746 eval "$3=yes"
1747else
1748 eval "$3=no"
1749fi
1750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751fi
1752eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754$as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757} # ac_fn_c_check_header_compile
1758
1759# ac_fn_c_check_func LINENO FUNC VAR
1760# ----------------------------------
1761# Tests whether FUNC exists, setting the cache variable VAR accordingly
1762ac_fn_c_check_func ()
1763{
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766$as_echo_n "checking for $2... " >&6; }
1767if eval \${$3+:} false; then :
1768 $as_echo_n "(cached) " >&6
1769else
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h. */
1772/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1774#define $2 innocuous_$2
1775
1776/* System header to define __stub macros and hopefully few prototypes,
1777 which can conflict with char $2 (); below.
1778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1779 <limits.h> exists even on freestanding compilers. */
1780
1781#ifdef __STDC__
1782# include <limits.h>
1783#else
1784# include <assert.h>
1785#endif
1786
1787#undef $2
1788
1789/* Override any GCC internal prototype to avoid an error.
1790 Use char because int might match the return type of a GCC
1791 builtin and then its argument prototype would still apply. */
1792#ifdef __cplusplus
1793extern "C"
1794#endif
1795char $2 ();
1796/* The GNU C library defines this for functions which it implements
1797 to always fail with ENOSYS. Some functions are actually named
1798 something starting with __ and the normal name is an alias. */
1799#if defined __stub_$2 || defined __stub___$2
1800choke me
1801#endif
1802
1803int
1804main ()
1805{
1806return $2 ();
1807 ;
1808 return 0;
1809}
1810_ACEOF
1811if ac_fn_c_try_link "$LINENO"; then :
1812 eval "$3=yes"
1813else
1814 eval "$3=no"
1815fi
1816rm -f core conftest.err conftest.$ac_objext \
1817 conftest$ac_exeext conftest.$ac_ext
1818fi
1819eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821$as_echo "$ac_res" >&6; }
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824} # ac_fn_c_check_func
1825cat >config.log <<_ACEOF
1826This file contains any messages produced by compilers while
1827running configure, to aid debugging if configure makes a mistake.
1828
1829It was created by QRencode $as_me 3.4.4, which was
1830generated by GNU Autoconf 2.69. Invocation command line was
1831
1832 $ $0 $@
1833
1834_ACEOF
1835exec 5>>config.log
1836{
1837cat <<_ASUNAME
1838## --------- ##
1839## Platform. ##
1840## --------- ##
1841
1842hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1843uname -m = `(uname -m) 2>/dev/null || echo unknown`
1844uname -r = `(uname -r) 2>/dev/null || echo unknown`
1845uname -s = `(uname -s) 2>/dev/null || echo unknown`
1846uname -v = `(uname -v) 2>/dev/null || echo unknown`
1847
1848/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1849/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1850
1851/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1852/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1853/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1854/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1855/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1856/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1857/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1858
1859_ASUNAME
1860
1861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862for as_dir in $PATH
1863do
1864 IFS=$as_save_IFS
1865 test -z "$as_dir" && as_dir=.
1866 $as_echo "PATH: $as_dir"
1867 done
1868IFS=$as_save_IFS
1869
1870} >&5
1871
1872cat >&5 <<_ACEOF
1873
1874
1875## ----------- ##
1876## Core tests. ##
1877## ----------- ##
1878
1879_ACEOF
1880
1881
1882# Keep a trace of the command line.
1883# Strip out --no-create and --no-recursion so they do not pile up.
1884# Strip out --silent because we don't want to record it for future runs.
1885# Also quote any args containing shell meta-characters.
1886# Make two passes to allow for proper duplicate-argument suppression.
1887ac_configure_args=
1888ac_configure_args0=
1889ac_configure_args1=
1890ac_must_keep_next=false
1891for ac_pass in 1 2
1892do
1893 for ac_arg
1894 do
1895 case $ac_arg in
1896 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1898 | -silent | --silent | --silen | --sile | --sil)
1899 continue ;;
1900 *\'*)
1901 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 esac
1903 case $ac_pass in
1904 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1905 2)
1906 as_fn_append ac_configure_args1 " '$ac_arg'"
1907 if test $ac_must_keep_next = true; then
1908 ac_must_keep_next=false # Got value, back to normal.
1909 else
1910 case $ac_arg in
1911 *=* | --config-cache | -C | -disable-* | --disable-* \
1912 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1913 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1914 | -with-* | --with-* | -without-* | --without-* | --x)
1915 case "$ac_configure_args0 " in
1916 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1917 esac
1918 ;;
1919 -* ) ac_must_keep_next=true ;;
1920 esac
1921 fi
1922 as_fn_append ac_configure_args " '$ac_arg'"
1923 ;;
1924 esac
1925 done
1926done
1927{ ac_configure_args0=; unset ac_configure_args0;}
1928{ ac_configure_args1=; unset ac_configure_args1;}
1929
1930# When interrupted or exit'd, cleanup temporary files, and complete
1931# config.log. We remove comments because anyway the quotes in there
1932# would cause problems or look ugly.
1933# WARNING: Use '\'' to represent an apostrophe within the trap.
1934# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1935trap 'exit_status=$?
1936 # Save into config.log some information that might help in debugging.
1937 {
1938 echo
1939
1940 $as_echo "## ---------------- ##
1941## Cache variables. ##
1942## ---------------- ##"
1943 echo
1944 # The following way of writing the cache mishandles newlines in values,
1945(
1946 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947 eval ac_val=\$$ac_var
1948 case $ac_val in #(
1949 *${as_nl}*)
1950 case $ac_var in #(
1951 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1952$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1953 esac
1954 case $ac_var in #(
1955 _ | IFS | as_nl) ;; #(
1956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1957 *) { eval $ac_var=; unset $ac_var;} ;;
1958 esac ;;
1959 esac
1960 done
1961 (set) 2>&1 |
1962 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1963 *${as_nl}ac_space=\ *)
1964 sed -n \
1965 "s/'\''/'\''\\\\'\'''\''/g;
1966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1967 ;; #(
1968 *)
1969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1970 ;;
1971 esac |
1972 sort
1973)
1974 echo
1975
1976 $as_echo "## ----------------- ##
1977## Output variables. ##
1978## ----------------- ##"
1979 echo
1980 for ac_var in $ac_subst_vars
1981 do
1982 eval ac_val=\$$ac_var
1983 case $ac_val in
1984 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1985 esac
1986 $as_echo "$ac_var='\''$ac_val'\''"
1987 done | sort
1988 echo
1989
1990 if test -n "$ac_subst_files"; then
1991 $as_echo "## ------------------- ##
1992## File substitutions. ##
1993## ------------------- ##"
1994 echo
1995 for ac_var in $ac_subst_files
1996 do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in
1999 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 esac
2001 $as_echo "$ac_var='\''$ac_val'\''"
2002 done | sort
2003 echo
2004 fi
2005
2006 if test -s confdefs.h; then
2007 $as_echo "## ----------- ##
2008## confdefs.h. ##
2009## ----------- ##"
2010 echo
2011 cat confdefs.h
2012 echo
2013 fi
2014 test "$ac_signal" != 0 &&
2015 $as_echo "$as_me: caught signal $ac_signal"
2016 $as_echo "$as_me: exit $exit_status"
2017 } >&5
2018 rm -f core *.core core.conftest.* &&
2019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2020 exit $exit_status
2021' 0
2022for ac_signal in 1 2 13 15; do
2023 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2024done
2025ac_signal=0
2026
2027# confdefs.h avoids OS command line length limits that DEFS can exceed.
2028rm -f -r conftest* confdefs.h
2029
2030$as_echo "/* confdefs.h */" > confdefs.h
2031
2032# Predefined preprocessor variables.
2033
2034cat >>confdefs.h <<_ACEOF
2035#define PACKAGE_NAME "$PACKAGE_NAME"
2036_ACEOF
2037
2038cat >>confdefs.h <<_ACEOF
2039#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2040_ACEOF
2041
2042cat >>confdefs.h <<_ACEOF
2043#define PACKAGE_VERSION "$PACKAGE_VERSION"
2044_ACEOF
2045
2046cat >>confdefs.h <<_ACEOF
2047#define PACKAGE_STRING "$PACKAGE_STRING"
2048_ACEOF
2049
2050cat >>confdefs.h <<_ACEOF
2051#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2052_ACEOF
2053
2054cat >>confdefs.h <<_ACEOF
2055#define PACKAGE_URL "$PACKAGE_URL"
2056_ACEOF
2057
2058
2059# Let the site file select an alternate cache file if it wants to.
2060# Prefer an explicitly selected file to automatically selected ones.
2061ac_site_file1=NONE
2062ac_site_file2=NONE
2063if test -n "$CONFIG_SITE"; then
2064 # We do not want a PATH search for config.site.
2065 case $CONFIG_SITE in #((
2066 -*) ac_site_file1=./$CONFIG_SITE;;
2067 */*) ac_site_file1=$CONFIG_SITE;;
2068 *) ac_site_file1=./$CONFIG_SITE;;
2069 esac
2070elif test "x$prefix" != xNONE; then
2071 ac_site_file1=$prefix/share/config.site
2072 ac_site_file2=$prefix/etc/config.site
2073else
2074 ac_site_file1=$ac_default_prefix/share/config.site
2075 ac_site_file2=$ac_default_prefix/etc/config.site
2076fi
2077for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2078do
2079 test "x$ac_site_file" = xNONE && continue
2080 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2082$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2083 sed 's/^/| /' "$ac_site_file" >&5
2084 . "$ac_site_file" \
2085 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2087as_fn_error $? "failed to load site script $ac_site_file
2088See \`config.log' for more details" "$LINENO" 5; }
2089 fi
2090done
2091
2092if test -r "$cache_file"; then
2093 # Some versions of bash will fail to source /dev/null (special files
2094 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2095 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2097$as_echo "$as_me: loading cache $cache_file" >&6;}
2098 case $cache_file in
2099 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2100 *) . "./$cache_file";;
2101 esac
2102 fi
2103else
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2105$as_echo "$as_me: creating cache $cache_file" >&6;}
2106 >$cache_file
2107fi
2108
2109# Check that the precious variables saved in the cache have kept the same
2110# value.
2111ac_cache_corrupted=false
2112for ac_var in $ac_precious_vars; do
2113 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2114 eval ac_new_set=\$ac_env_${ac_var}_set
2115 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2116 eval ac_new_val=\$ac_env_${ac_var}_value
2117 case $ac_old_set,$ac_new_set in
2118 set,)
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2120$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2121 ac_cache_corrupted=: ;;
2122 ,set)
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2124$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2125 ac_cache_corrupted=: ;;
2126 ,);;
2127 *)
2128 if test "x$ac_old_val" != "x$ac_new_val"; then
2129 # differences in whitespace do not lead to failure.
2130 ac_old_val_w=`echo x $ac_old_val`
2131 ac_new_val_w=`echo x $ac_new_val`
2132 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2134$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2135 ac_cache_corrupted=:
2136 else
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2138$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2139 eval $ac_var=\$ac_old_val
2140 fi
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2142$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2144$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2145 fi;;
2146 esac
2147 # Pass precious variables to config.status.
2148 if test "$ac_new_set" = set; then
2149 case $ac_new_val in
2150 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2151 *) ac_arg=$ac_var=$ac_new_val ;;
2152 esac
2153 case " $ac_configure_args " in
2154 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2155 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2156 esac
2157 fi
2158done
2159if $ac_cache_corrupted; then
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2163$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2164 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2165fi
2166## -------------------- ##
2167## Main body of script. ##
2168## -------------------- ##
2169
2170ac_ext=c
2171ac_cpp='$CPP $CPPFLAGS'
2172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175
2176
2177
2178MAJOR_VERSION=3
2179MINOR_VERSION=4
2180MICRO_VERSION=4
2181
2182
2183
2184
2185cat >>confdefs.h <<_ACEOF
2186#define MAJOR_VERSION $MAJOR_VERSION
2187_ACEOF
2188
2189
2190cat >>confdefs.h <<_ACEOF
2191#define MINOR_VERSION $MINOR_VERSION
2192_ACEOF
2193
2194
2195cat >>confdefs.h <<_ACEOF
2196#define MICRO_VERSION $MICRO_VERSION
2197_ACEOF
2198
2199
2200
2201ac_config_headers="$ac_config_headers config.h"
2202
2203ac_aux_dir=
2204for ac_dir in use "$srcdir"/use; do
2205 if test -f "$ac_dir/install-sh"; then
2206 ac_aux_dir=$ac_dir
2207 ac_install_sh="$ac_aux_dir/install-sh -c"
2208 break
2209 elif test -f "$ac_dir/install.sh"; then
2210 ac_aux_dir=$ac_dir
2211 ac_install_sh="$ac_aux_dir/install.sh -c"
2212 break
2213 elif test -f "$ac_dir/shtool"; then
2214 ac_aux_dir=$ac_dir
2215 ac_install_sh="$ac_aux_dir/shtool install -c"
2216 break
2217 fi
2218done
2219if test -z "$ac_aux_dir"; then
2220 as_fn_error $? "cannot find install-sh, install.sh, or shtool in use \"$srcdir\"/use" "$LINENO" 5
2221fi
2222
2223# These three variables are undocumented and unsupported,
2224# and are intended to be withdrawn in a future Autoconf release.
2225# They can cause serious problems if a builder's source tree is in a directory
2226# whose full name contains unusual characters.
2227ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2228ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2229ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2230
2231
2232
2233# Make sure we can run config.sub.
2234$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2235 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2236
2237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2238$as_echo_n "checking build system type... " >&6; }
2239if ${ac_cv_build+:} false; then :
2240 $as_echo_n "(cached) " >&6
2241else
2242 ac_build_alias=$build_alias
2243test "x$ac_build_alias" = x &&
2244 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2245test "x$ac_build_alias" = x &&
2246 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2247ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2248 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2249
2250fi
2251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2252$as_echo "$ac_cv_build" >&6; }
2253case $ac_cv_build in
2254*-*-*) ;;
2255*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2256esac
2257build=$ac_cv_build
2258ac_save_IFS=$IFS; IFS='-'
2259set x $ac_cv_build
2260shift
2261build_cpu=$1
2262build_vendor=$2
2263shift; shift
2264# Remember, the first character of IFS is used to create $*,
2265# except with old shells:
2266build_os=$*
2267IFS=$ac_save_IFS
2268case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2269
2270
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2272$as_echo_n "checking host system type... " >&6; }
2273if ${ac_cv_host+:} false; then :
2274 $as_echo_n "(cached) " >&6
2275else
2276 if test "x$host_alias" = x; then
2277 ac_cv_host=$ac_cv_build
2278else
2279 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2280 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2281fi
2282
2283fi
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2285$as_echo "$ac_cv_host" >&6; }
2286case $ac_cv_host in
2287*-*-*) ;;
2288*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2289esac
2290host=$ac_cv_host
2291ac_save_IFS=$IFS; IFS='-'
2292set x $ac_cv_host
2293shift
2294host_cpu=$1
2295host_vendor=$2
2296shift; shift
2297# Remember, the first character of IFS is used to create $*,
2298# except with old shells:
2299host_os=$*
2300IFS=$ac_save_IFS
2301case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2302
2303
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2305$as_echo_n "checking target system type... " >&6; }
2306if ${ac_cv_target+:} false; then :
2307 $as_echo_n "(cached) " >&6
2308else
2309 if test "x$target_alias" = x; then
2310 ac_cv_target=$ac_cv_host
2311else
2312 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2313 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2314fi
2315
2316fi
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2318$as_echo "$ac_cv_target" >&6; }
2319case $ac_cv_target in
2320*-*-*) ;;
2321*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2322esac
2323target=$ac_cv_target
2324ac_save_IFS=$IFS; IFS='-'
2325set x $ac_cv_target
2326shift
2327target_cpu=$1
2328target_vendor=$2
2329shift; shift
2330# Remember, the first character of IFS is used to create $*,
2331# except with old shells:
2332target_os=$*
2333IFS=$ac_save_IFS
2334case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2335
2336
2337# The aliases save the names the user supplied, while $host etc.
2338# will get canonicalized.
2339test -n "$target_alias" &&
2340 test "$program_prefix$program_suffix$program_transform_name" = \
2341 NONENONEs,x,x, &&
2342 program_prefix=${target_alias}-
2343
2344am__api_version='1.14'
2345
2346# Find a good install program. We prefer a C program (faster),
2347# so one script is as good as another. But avoid the broken or
2348# incompatible versions:
2349# SysV /etc/install, /usr/sbin/install
2350# SunOS /usr/etc/install
2351# IRIX /sbin/install
2352# AIX /bin/install
2353# AmigaOS /C/install, which installs bootblocks on floppy discs
2354# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2355# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2356# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2357# OS/2's system install, which has a completely different semantic
2358# ./install, which can be erroneously created by make from ./install.sh.
2359# Reject install programs that cannot install multiple files.
2360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2361$as_echo_n "checking for a BSD-compatible install... " >&6; }
2362if test -z "$INSTALL"; then
2363if ${ac_cv_path_install+:} false; then :
2364 $as_echo_n "(cached) " >&6
2365else
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367for as_dir in $PATH
2368do
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 # Account for people who put trailing slashes in PATH elements.
2372case $as_dir/ in #((
2373 ./ | .// | /[cC]/* | \
2374 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2375 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2376 /usr/ucb/* ) ;;
2377 *)
2378 # OSF1 and SCO ODT 3.0 have their own names for install.
2379 # Don't use installbsd from OSF since it installs stuff as root
2380 # by default.
2381 for ac_prog in ginstall scoinst install; do
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2384 if test $ac_prog = install &&
2385 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386 # AIX install. It has an incompatible calling convention.
2387 :
2388 elif test $ac_prog = install &&
2389 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2390 # program-specific install script used by HP pwplus--don't use.
2391 :
2392 else
2393 rm -rf conftest.one conftest.two conftest.dir
2394 echo one > conftest.one
2395 echo two > conftest.two
2396 mkdir conftest.dir
2397 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2398 test -s conftest.one && test -s conftest.two &&
2399 test -s conftest.dir/conftest.one &&
2400 test -s conftest.dir/conftest.two
2401 then
2402 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2403 break 3
2404 fi
2405 fi
2406 fi
2407 done
2408 done
2409 ;;
2410esac
2411
2412 done
2413IFS=$as_save_IFS
2414
2415rm -rf conftest.one conftest.two conftest.dir
2416
2417fi
2418 if test "${ac_cv_path_install+set}" = set; then
2419 INSTALL=$ac_cv_path_install
2420 else
2421 # As a last resort, use the slow shell script. Don't cache a
2422 # value for INSTALL within a source directory, because that will
2423 # break other packages using the cache if that directory is
2424 # removed, or if the value is a relative name.
2425 INSTALL=$ac_install_sh
2426 fi
2427fi
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2429$as_echo "$INSTALL" >&6; }
2430
2431# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2432# It thinks the first close brace ends the variable substitution.
2433test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2434
2435test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2436
2437test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2438
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2440$as_echo_n "checking whether build environment is sane... " >&6; }
2441# Reject unsafe characters in $srcdir or the absolute working directory
2442# name. Accept space and tab only in the latter.
2443am_lf='
2444'
2445case `pwd` in
2446 *[\\\"\#\$\&\'\`$am_lf]*)
2447 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2448esac
2449case $srcdir in
2450 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2451 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2452esac
2453
2454# Do 'set' in a subshell so we don't clobber the current shell's
2455# arguments. Must try -L first in case configure is actually a
2456# symlink; some systems play weird games with the mod time of symlinks
2457# (eg FreeBSD returns the mod time of the symlink's containing
2458# directory).
2459if (
2460 am_has_slept=no
2461 for am_try in 1 2; do
2462 echo "timestamp, slept: $am_has_slept" > conftest.file
2463 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2464 if test "$*" = "X"; then
2465 # -L didn't work.
2466 set X `ls -t "$srcdir/configure" conftest.file`
2467 fi
2468 if test "$*" != "X $srcdir/configure conftest.file" \
2469 && test "$*" != "X conftest.file $srcdir/configure"; then
2470
2471 # If neither matched, then we have a broken ls. This can happen
2472 # if, for instance, CONFIG_SHELL is bash and it inherits a
2473 # broken ls alias from the environment. This has actually
2474 # happened. Such a system could not be considered "sane".
2475 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2476 alias in your environment" "$LINENO" 5
2477 fi
2478 if test "$2" = conftest.file || test $am_try -eq 2; then
2479 break
2480 fi
2481 # Just in case.
2482 sleep 1
2483 am_has_slept=yes
2484 done
2485 test "$2" = conftest.file
2486 )
2487then
2488 # Ok.
2489 :
2490else
2491 as_fn_error $? "newly created file is older than distributed files!
2492Check your system clock" "$LINENO" 5
2493fi
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2495$as_echo "yes" >&6; }
2496# If we didn't sleep, we still need to ensure time stamps of config.status and
2497# generated files are strictly newer.
2498am_sleep_pid=
2499if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2500 ( sleep 1 ) &
2501 am_sleep_pid=$!
2502fi
2503
2504rm -f conftest.file
2505
2506test "$program_prefix" != NONE &&
2507 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2508# Use a double $ so make ignores it.
2509test "$program_suffix" != NONE &&
2510 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2511# Double any \ or $.
2512# By default was `s,x,x', remove it if useless.
2513ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2514program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2515
2516# expand $ac_aux_dir to an absolute path
2517am_aux_dir=`cd $ac_aux_dir && pwd`
2518
2519if test x"${MISSING+set}" != xset; then
2520 case $am_aux_dir in
2521 *\ * | *\ *)
2522 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2523 *)
2524 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2525 esac
2526fi
2527# Use eval to expand $SHELL
2528if eval "$MISSING --is-lightweight"; then
2529 am_missing_run="$MISSING "
2530else
2531 am_missing_run=
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2533$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2534fi
2535
2536if test x"${install_sh}" != xset; then
2537 case $am_aux_dir in
2538 *\ * | *\ *)
2539 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2540 *)
2541 install_sh="\${SHELL} $am_aux_dir/install-sh"
2542 esac
2543fi
2544
2545# Installed binaries are usually stripped using 'strip' when the user
2546# run "make install-strip". However 'strip' might not be the right
2547# tool to use in cross-compilation environments, therefore Automake
2548# will honor the 'STRIP' environment variable to overrule this program.
2549if test "$cross_compiling" != no; then
2550 if test -n "$ac_tool_prefix"; then
2551 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2552set dummy ${ac_tool_prefix}strip; ac_word=$2
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
2555if ${ac_cv_prog_STRIP+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557else
2558 if test -n "$STRIP"; then
2559 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2560else
2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572done
2573 done
2574IFS=$as_save_IFS
2575
2576fi
2577fi
2578STRIP=$ac_cv_prog_STRIP
2579if test -n "$STRIP"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2581$as_echo "$STRIP" >&6; }
2582else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584$as_echo "no" >&6; }
2585fi
2586
2587
2588fi
2589if test -z "$ac_cv_prog_STRIP"; then
2590 ac_ct_STRIP=$STRIP
2591 # Extract the first word of "strip", so it can be a program name with args.
2592set dummy strip; ac_word=$2
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594$as_echo_n "checking for $ac_word... " >&6; }
2595if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2596 $as_echo_n "(cached) " >&6
2597else
2598 if test -n "$ac_ct_STRIP"; then
2599 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2600else
2601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602for as_dir in $PATH
2603do
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2608 ac_cv_prog_ac_ct_STRIP="strip"
2609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 break 2
2611 fi
2612done
2613 done
2614IFS=$as_save_IFS
2615
2616fi
2617fi
2618ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2619if test -n "$ac_ct_STRIP"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2621$as_echo "$ac_ct_STRIP" >&6; }
2622else
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624$as_echo "no" >&6; }
2625fi
2626
2627 if test "x$ac_ct_STRIP" = x; then
2628 STRIP=":"
2629 else
2630 case $cross_compiling:$ac_tool_warned in
2631yes:)
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2634ac_tool_warned=yes ;;
2635esac
2636 STRIP=$ac_ct_STRIP
2637 fi
2638else
2639 STRIP="$ac_cv_prog_STRIP"
2640fi
2641
2642fi
2643INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2644
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2646$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2647if test -z "$MKDIR_P"; then
2648 if ${ac_cv_path_mkdir+:} false; then :
2649 $as_echo_n "(cached) " >&6
2650else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2653do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_prog in mkdir gmkdir; do
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2659 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2660 'mkdir (GNU coreutils) '* | \
2661 'mkdir (coreutils) '* | \
2662 'mkdir (fileutils) '4.1*)
2663 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2664 break 3;;
2665 esac
2666 done
2667 done
2668 done
2669IFS=$as_save_IFS
2670
2671fi
2672
2673 test -d ./--version && rmdir ./--version
2674 if test "${ac_cv_path_mkdir+set}" = set; then
2675 MKDIR_P="$ac_cv_path_mkdir -p"
2676 else
2677 # As a last resort, use the slow shell script. Don't cache a
2678 # value for MKDIR_P within a source directory, because that will
2679 # break other packages using the cache if that directory is
2680 # removed, or if the value is a relative name.
2681 MKDIR_P="$ac_install_sh -d"
2682 fi
2683fi
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2685$as_echo "$MKDIR_P" >&6; }
2686
2687for ac_prog in gawk mawk nawk awk
2688do
2689 # Extract the first word of "$ac_prog", so it can be a program name with args.
2690set dummy $ac_prog; ac_word=$2
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692$as_echo_n "checking for $ac_word... " >&6; }
2693if ${ac_cv_prog_AWK+:} false; then :
2694 $as_echo_n "(cached) " >&6
2695else
2696 if test -n "$AWK"; then
2697 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2698else
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2706 ac_cv_prog_AWK="$ac_prog"
2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710done
2711 done
2712IFS=$as_save_IFS
2713
2714fi
2715fi
2716AWK=$ac_cv_prog_AWK
2717if test -n "$AWK"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2719$as_echo "$AWK" >&6; }
2720else
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722$as_echo "no" >&6; }
2723fi
2724
2725
2726 test -n "$AWK" && break
2727done
2728
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2730$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2731set x ${MAKE-make}
2732ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2733if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2734 $as_echo_n "(cached) " >&6
2735else
2736 cat >conftest.make <<\_ACEOF
2737SHELL = /bin/sh
2738all:
2739 @echo '@@@%%%=$(MAKE)=@@@%%%'
2740_ACEOF
2741# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2742case `${MAKE-make} -f conftest.make 2>/dev/null` in
2743 *@@@%%%=?*=@@@%%%*)
2744 eval ac_cv_prog_make_${ac_make}_set=yes;;
2745 *)
2746 eval ac_cv_prog_make_${ac_make}_set=no;;
2747esac
2748rm -f conftest.make
2749fi
2750if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2752$as_echo "yes" >&6; }
2753 SET_MAKE=
2754else
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756$as_echo "no" >&6; }
2757 SET_MAKE="MAKE=${MAKE-make}"
2758fi
2759
2760rm -rf .tst 2>/dev/null
2761mkdir .tst 2>/dev/null
2762if test -d .tst; then
2763 am__leading_dot=.
2764else
2765 am__leading_dot=_
2766fi
2767rmdir .tst 2>/dev/null
2768
2769# Check whether --enable-silent-rules was given.
2770if test "${enable_silent_rules+set}" = set; then :
2771 enableval=$enable_silent_rules;
2772fi
2773
2774case $enable_silent_rules in # (((
2775 yes) AM_DEFAULT_VERBOSITY=0;;
2776 no) AM_DEFAULT_VERBOSITY=1;;
2777 *) AM_DEFAULT_VERBOSITY=1;;
2778esac
2779am_make=${MAKE-make}
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2781$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2782if ${am_cv_make_support_nested_variables+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784else
2785 if $as_echo 'TRUE=$(BAR$(V))
2786BAR0=false
2787BAR1=true
2788V=1
2789am__doit:
2790 @$(TRUE)
2791.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2792 am_cv_make_support_nested_variables=yes
2793else
2794 am_cv_make_support_nested_variables=no
2795fi
2796fi
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2798$as_echo "$am_cv_make_support_nested_variables" >&6; }
2799if test $am_cv_make_support_nested_variables = yes; then
2800 AM_V='$(V)'
2801 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2802else
2803 AM_V=$AM_DEFAULT_VERBOSITY
2804 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2805fi
2806AM_BACKSLASH='\'
2807
2808if test "`cd $srcdir && pwd`" != "`pwd`"; then
2809 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2810 # is not polluted with repeated "-I."
2811 am__isrc=' -I$(srcdir)'
2812 # test to see if srcdir already configured
2813 if test -f $srcdir/config.status; then
2814 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2815 fi
2816fi
2817
2818# test whether we have cygpath
2819if test -z "$CYGPATH_W"; then
2820 if (cygpath --version) >/dev/null 2>/dev/null; then
2821 CYGPATH_W='cygpath -w'
2822 else
2823 CYGPATH_W=echo
2824 fi
2825fi
2826
2827
2828# Define the identity of the package.
2829 PACKAGE='qrencode'
2830 VERSION='3.4.4'
2831
2832
2833cat >>confdefs.h <<_ACEOF
2834#define PACKAGE "$PACKAGE"
2835_ACEOF
2836
2837
2838cat >>confdefs.h <<_ACEOF
2839#define VERSION "$VERSION"
2840_ACEOF
2841
2842# Some tools Automake needs.
2843
2844ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2845
2846
2847AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2848
2849
2850AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2851
2852
2853AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2854
2855
2856MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2857
2858# For better backward compatibility. To be removed once Automake 1.9.x
2859# dies out for good. For more background, see:
2860# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2861# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2862mkdir_p='$(MKDIR_P)'
2863
2864# We need awk for the "check" target. The system "awk" is bad on
2865# some platforms.
2866# Always define AMTAR for backward compatibility. Yes, it's still used
2867# in the wild :-( We should find a proper way to deprecate it ...
2868AMTAR='$${TAR-tar}'
2869
2870
2871# We'll loop over all known methods to create a tar archive until one works.
2872_am_tools='gnutar pax cpio none'
2873
2874am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2875
2876
2877
2878
2879
2880
2881# POSIX will say in a future version that running "rm -f" with no argument
2882# is OK; and we want to be able to make that assumption in our Makefile
2883# recipes. So use an aggressive probe to check that the usage we want is
2884# actually supported "in the wild" to an acceptable degree.
2885# See automake bug#10828.
2886# To make any issue more visible, cause the running configure to be aborted
2887# by default if the 'rm' program in use doesn't match our expectations; the
2888# user can still override this though.
2889if rm -f && rm -fr && rm -rf; then : OK; else
2890 cat >&2 <<'END'
2891Oops!
2892
2893Your 'rm' program seems unable to run without file operands specified
2894on the command line, even when the '-f' option is present. This is contrary
2895to the behaviour of most rm programs out there, and not conforming with
2896the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2897
2898Please tell bug-automake@gnu.org about your system, including the value
2899of your $PATH and any error possibly output before this message. This
2900can help us improve future automake versions.
2901
2902END
2903 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2904 echo 'Configuration will proceed anyway, since you have set the' >&2
2905 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2906 echo >&2
2907 else
2908 cat >&2 <<'END'
2909Aborting the configuration process, to ensure you take notice of the issue.
2910
2911You can download and install GNU coreutils to get an 'rm' implementation
2912that behaves properly: <http://www.gnu.org/software/coreutils/>.
2913
2914If you want to complete the configuration process using your problematic
2915'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2916to "yes", and re-run configure.
2917
2918END
2919 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2920 fi
2921fi
2922
2923# Check whether --enable-static was given.
2924if test "${enable_static+set}" = set; then :
2925 enableval=$enable_static; p=${PACKAGE-default}
2926 case $enableval in
2927 yes) enable_static=yes ;;
2928 no) enable_static=no ;;
2929 *)
2930 enable_static=no
2931 # Look at the argument we got. We use all the common list separators.
2932 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2933 for pkg in $enableval; do
2934 IFS="$lt_save_ifs"
2935 if test "X$pkg" = "X$p"; then
2936 enable_static=yes
2937 fi
2938 done
2939 IFS="$lt_save_ifs"
2940 ;;
2941 esac
2942else
2943 enable_static=no
2944fi
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954DEPDIR="${am__leading_dot}deps"
2955
2956ac_config_commands="$ac_config_commands depfiles"
2957
2958
2959am_make=${MAKE-make}
2960cat > confinc << 'END'
2961am__doit:
2962 @echo this is the am__doit target
2963.PHONY: am__doit
2964END
2965# If we don't find an include directive, just comment out the code.
2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2967$as_echo_n "checking for style of include used by $am_make... " >&6; }
2968am__include="#"
2969am__quote=
2970_am_result=none
2971# First try GNU make style include.
2972echo "include confinc" > confmf
2973# Ignore all kinds of additional output from 'make'.
2974case `$am_make -s -f confmf 2> /dev/null` in #(
2975*the\ am__doit\ target*)
2976 am__include=include
2977 am__quote=
2978 _am_result=GNU
2979 ;;
2980esac
2981# Now try BSD make style include.
2982if test "$am__include" = "#"; then
2983 echo '.include "confinc"' > confmf
2984 case `$am_make -s -f confmf 2> /dev/null` in #(
2985 *the\ am__doit\ target*)
2986 am__include=.include
2987 am__quote="\""
2988 _am_result=BSD
2989 ;;
2990 esac
2991fi
2992
2993
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2995$as_echo "$_am_result" >&6; }
2996rm -f confinc confmf
2997
2998# Check whether --enable-dependency-tracking was given.
2999if test "${enable_dependency_tracking+set}" = set; then :
3000 enableval=$enable_dependency_tracking;
3001fi
3002
3003if test "x$enable_dependency_tracking" != xno; then
3004 am_depcomp="$ac_aux_dir/depcomp"
3005 AMDEPBACKSLASH='\'
3006 am__nodep='_no'
3007fi
3008 if test "x$enable_dependency_tracking" != xno; then
3009 AMDEP_TRUE=
3010 AMDEP_FALSE='#'
3011else
3012 AMDEP_TRUE='#'
3013 AMDEP_FALSE=
3014fi
3015
3016
3017ac_ext=c
3018ac_cpp='$CPP $CPPFLAGS'
3019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3024set dummy ${ac_tool_prefix}gcc; ac_word=$2
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026$as_echo_n "checking for $ac_word... " >&6; }
3027if ${ac_cv_prog_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032else
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044done
3045 done
3046IFS=$as_save_IFS
3047
3048fi
3049fi
3050CC=$ac_cv_prog_CC
3051if test -n "$CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053$as_echo "$CC" >&6; }
3054else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056$as_echo "no" >&6; }
3057fi
3058
3059
3060fi
3061if test -z "$ac_cv_prog_CC"; then
3062 ac_ct_CC=$CC
3063 # Extract the first word of "gcc", so it can be a program name with args.
3064set dummy gcc; ac_word=$2
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066$as_echo_n "checking for $ac_word... " >&6; }
3067if ${ac_cv_prog_ac_ct_CC+:} false; then :
3068 $as_echo_n "(cached) " >&6
3069else
3070 if test -n "$ac_ct_CC"; then
3071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3072else
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_ac_ct_CC="gcc"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084done
3085 done
3086IFS=$as_save_IFS
3087
3088fi
3089fi
3090ac_ct_CC=$ac_cv_prog_ac_ct_CC
3091if test -n "$ac_ct_CC"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3093$as_echo "$ac_ct_CC" >&6; }
3094else
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096$as_echo "no" >&6; }
3097fi
3098
3099 if test "x$ac_ct_CC" = x; then
3100 CC=""
3101 else
3102 case $cross_compiling:$ac_tool_warned in
3103yes:)
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3106ac_tool_warned=yes ;;
3107esac
3108 CC=$ac_ct_CC
3109 fi
3110else
3111 CC="$ac_cv_prog_CC"
3112fi
3113
3114if test -z "$CC"; then
3115 if test -n "$ac_tool_prefix"; then
3116 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3117set dummy ${ac_tool_prefix}cc; ac_word=$2
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119$as_echo_n "checking for $ac_word... " >&6; }
3120if ${ac_cv_prog_CC+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122else
3123 if test -n "$CC"; then
3124 ac_cv_prog_CC="$CC" # Let the user override the test.
3125else
3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127for as_dir in $PATH
3128do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_CC="${ac_tool_prefix}cc"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137done
3138 done
3139IFS=$as_save_IFS
3140
3141fi
3142fi
3143CC=$ac_cv_prog_CC
3144if test -n "$CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3146$as_echo "$CC" >&6; }
3147else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149$as_echo "no" >&6; }
3150fi
3151
3152
3153 fi
3154fi
3155if test -z "$CC"; then
3156 # Extract the first word of "cc", so it can be a program name with args.
3157set dummy cc; ac_word=$2
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159$as_echo_n "checking for $ac_word... " >&6; }
3160if ${ac_cv_prog_CC+:} false; then :
3161 $as_echo_n "(cached) " >&6
3162else
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC="$CC" # Let the user override the test.
3165else
3166 ac_prog_rejected=no
3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168for as_dir in $PATH
3169do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3175 ac_prog_rejected=yes
3176 continue
3177 fi
3178 ac_cv_prog_CC="cc"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182done
3183 done
3184IFS=$as_save_IFS
3185
3186if test $ac_prog_rejected = yes; then
3187 # We found a bogon in the path, so make sure we never use it.
3188 set dummy $ac_cv_prog_CC
3189 shift
3190 if test $# != 0; then
3191 # We chose a different compiler from the bogus one.
3192 # However, it has the same basename, so the bogon will be chosen
3193 # first if we set CC to just the basename; use the full file name.
3194 shift
3195 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3196 fi
3197fi
3198fi
3199fi
3200CC=$ac_cv_prog_CC
3201if test -n "$CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203$as_echo "$CC" >&6; }
3204else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206$as_echo "no" >&6; }
3207fi
3208
3209
3210fi
3211if test -z "$CC"; then
3212 if test -n "$ac_tool_prefix"; then
3213 for ac_prog in cl.exe
3214 do
3215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218$as_echo_n "checking for $ac_word... " >&6; }
3219if ${ac_cv_prog_CC+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221else
3222 if test -n "$CC"; then
3223 ac_cv_prog_CC="$CC" # Let the user override the test.
3224else
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236done
3237 done
3238IFS=$as_save_IFS
3239
3240fi
3241fi
3242CC=$ac_cv_prog_CC
3243if test -n "$CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245$as_echo "$CC" >&6; }
3246else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248$as_echo "no" >&6; }
3249fi
3250
3251
3252 test -n "$CC" && break
3253 done
3254fi
3255if test -z "$CC"; then
3256 ac_ct_CC=$CC
3257 for ac_prog in cl.exe
3258do
3259 # Extract the first word of "$ac_prog", so it can be a program name with args.
3260set dummy $ac_prog; ac_word=$2
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262$as_echo_n "checking for $ac_word... " >&6; }
3263if ${ac_cv_prog_ac_ct_CC+:} false; then :
3264 $as_echo_n "(cached) " >&6
3265else
3266 if test -n "$ac_ct_CC"; then
3267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3268else
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276 ac_cv_prog_ac_ct_CC="$ac_prog"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280done
3281 done
3282IFS=$as_save_IFS
3283
3284fi
3285fi
3286ac_ct_CC=$ac_cv_prog_ac_ct_CC
3287if test -n "$ac_ct_CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3289$as_echo "$ac_ct_CC" >&6; }
3290else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
3293fi
3294
3295
3296 test -n "$ac_ct_CC" && break
3297done
3298
3299 if test "x$ac_ct_CC" = x; then
3300 CC=""
3301 else
3302 case $cross_compiling:$ac_tool_warned in
3303yes:)
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3306ac_tool_warned=yes ;;
3307esac
3308 CC=$ac_ct_CC
3309 fi
3310fi
3311
3312fi
3313
3314
3315test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317as_fn_error $? "no acceptable C compiler found in \$PATH
3318See \`config.log' for more details" "$LINENO" 5; }
3319
3320# Provide some information about the compiler.
3321$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3322set X $ac_compile
3323ac_compiler=$2
3324for ac_option in --version -v -V -qversion; do
3325 { { ac_try="$ac_compiler $ac_option >&5"
3326case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329esac
3330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331$as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3333 ac_status=$?
3334 if test -s conftest.err; then
3335 sed '10a\
3336... rest of stderr output deleted ...
3337 10q' conftest.err >conftest.er1
3338 cat conftest.er1 >&5
3339 fi
3340 rm -f conftest.er1 conftest.err
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }
3343done
3344
3345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346/* end confdefs.h. */
3347
3348int
3349main ()
3350{
3351
3352 ;
3353 return 0;
3354}
3355_ACEOF
3356ac_clean_files_save=$ac_clean_files
3357ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3358# Try to create an executable without -o first, disregard a.out.
3359# It will help us diagnose broken compilers, and finding out an intuition
3360# of exeext.
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3362$as_echo_n "checking whether the C compiler works... " >&6; }
3363ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3364
3365# The possible output files:
3366ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3367
3368ac_rmfiles=
3369for ac_file in $ac_files
3370do
3371 case $ac_file in
3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3374 esac
3375done
3376rm -f $ac_rmfiles
3377
3378if { { ac_try="$ac_link_default"
3379case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382esac
3383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384$as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_link_default") 2>&5
3386 ac_status=$?
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }; then :
3389 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3390# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3391# in a Makefile. We should not override ac_cv_exeext if it was cached,
3392# so that the user can short-circuit this test for compilers unknown to
3393# Autoconf.
3394for ac_file in $ac_files ''
3395do
3396 test -f "$ac_file" || continue
3397 case $ac_file in
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3399 ;;
3400 [ab].out )
3401 # We found the default executable, but exeext='' is most
3402 # certainly right.
3403 break;;
3404 *.* )
3405 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3406 then :; else
3407 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408 fi
3409 # We set ac_cv_exeext here because the later test for it is not
3410 # safe: cross compilers may not add the suffix if given an `-o'
3411 # argument, so we may need to know it at that point already.
3412 # Even if this section looks crufty: it has the advantage of
3413 # actually working.
3414 break;;
3415 * )
3416 break;;
3417 esac
3418done
3419test "$ac_cv_exeext" = no && ac_cv_exeext=
3420
3421else
3422 ac_file=''
3423fi
3424if test -z "$ac_file"; then :
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426$as_echo "no" >&6; }
3427$as_echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432as_fn_error 77 "C compiler cannot create executables
3433See \`config.log' for more details" "$LINENO" 5; }
3434else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3436$as_echo "yes" >&6; }
3437fi
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3439$as_echo_n "checking for C compiler default output file name... " >&6; }
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3441$as_echo "$ac_file" >&6; }
3442ac_exeext=$ac_cv_exeext
3443
3444rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3445ac_clean_files=$ac_clean_files_save
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3447$as_echo_n "checking for suffix of executables... " >&6; }
3448if { { ac_try="$ac_link"
3449case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452esac
3453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454$as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_link") 2>&5
3456 ac_status=$?
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; then :
3459 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3460# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3461# work properly (i.e., refer to `conftest.exe'), while it won't with
3462# `rm'.
3463for ac_file in conftest.exe conftest conftest.*; do
3464 test -f "$ac_file" || continue
3465 case $ac_file in
3466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3467 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3468 break;;
3469 * ) break;;
3470 esac
3471done
3472else
3473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3476See \`config.log' for more details" "$LINENO" 5; }
3477fi
3478rm -f conftest conftest$ac_cv_exeext
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3480$as_echo "$ac_cv_exeext" >&6; }
3481
3482rm -f conftest.$ac_ext
3483EXEEXT=$ac_cv_exeext
3484ac_exeext=$EXEEXT
3485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486/* end confdefs.h. */
3487#include <stdio.h>
3488int
3489main ()
3490{
3491FILE *f = fopen ("conftest.out", "w");
3492 return ferror (f) || fclose (f) != 0;
3493
3494 ;
3495 return 0;
3496}
3497_ACEOF
3498ac_clean_files="$ac_clean_files conftest.out"
3499# Check that the compiler produces executables we can run. If not, either
3500# the compiler is broken, or we cross compile.
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3502$as_echo_n "checking whether we are cross compiling... " >&6; }
3503if test "$cross_compiling" != yes; then
3504 { { ac_try="$ac_link"
3505case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508esac
3509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510$as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_link") 2>&5
3512 ac_status=$?
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }
3515 if { ac_try='./conftest$ac_cv_exeext'
3516 { { case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519esac
3520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521$as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_try") 2>&5
3523 ac_status=$?
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }; }; then
3526 cross_compiling=no
3527 else
3528 if test "$cross_compiling" = maybe; then
3529 cross_compiling=yes
3530 else
3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533as_fn_error $? "cannot run C compiled programs.
3534If you meant to cross compile, use \`--host'.
3535See \`config.log' for more details" "$LINENO" 5; }
3536 fi
3537 fi
3538fi
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3540$as_echo "$cross_compiling" >&6; }
3541
3542rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3543ac_clean_files=$ac_clean_files_save
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3545$as_echo_n "checking for suffix of object files... " >&6; }
3546if ${ac_cv_objext+:} false; then :
3547 $as_echo_n "(cached) " >&6
3548else
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h. */
3551
3552int
3553main ()
3554{
3555
3556 ;
3557 return 0;
3558}
3559_ACEOF
3560rm -f conftest.o conftest.obj
3561if { { ac_try="$ac_compile"
3562case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565esac
3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567$as_echo "$ac_try_echo"; } >&5
3568 (eval "$ac_compile") 2>&5
3569 ac_status=$?
3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571 test $ac_status = 0; }; then :
3572 for ac_file in conftest.o conftest.obj conftest.*; do
3573 test -f "$ac_file" || continue;
3574 case $ac_file in
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3576 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3577 break;;
3578 esac
3579done
3580else
3581 $as_echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
3584{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586as_fn_error $? "cannot compute suffix of object files: cannot compile
3587See \`config.log' for more details" "$LINENO" 5; }
3588fi
3589rm -f conftest.$ac_cv_objext conftest.$ac_ext
3590fi
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3592$as_echo "$ac_cv_objext" >&6; }
3593OBJEXT=$ac_cv_objext
3594ac_objext=$OBJEXT
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3596$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3597if ${ac_cv_c_compiler_gnu+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599else
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601/* end confdefs.h. */
3602
3603int
3604main ()
3605{
3606#ifndef __GNUC__
3607 choke me
3608#endif
3609
3610 ;
3611 return 0;
3612}
3613_ACEOF
3614if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_compiler_gnu=yes
3616else
3617 ac_compiler_gnu=no
3618fi
3619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620ac_cv_c_compiler_gnu=$ac_compiler_gnu
3621
3622fi
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3624$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3625if test $ac_compiler_gnu = yes; then
3626 GCC=yes
3627else
3628 GCC=
3629fi
3630ac_test_CFLAGS=${CFLAGS+set}
3631ac_save_CFLAGS=$CFLAGS
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3633$as_echo_n "checking whether $CC accepts -g... " >&6; }
3634if ${ac_cv_prog_cc_g+:} false; then :
3635 $as_echo_n "(cached) " >&6
3636else
3637 ac_save_c_werror_flag=$ac_c_werror_flag
3638 ac_c_werror_flag=yes
3639 ac_cv_prog_cc_g=no
3640 CFLAGS="-g"
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h. */
3643
3644int
3645main ()
3646{
3647
3648 ;
3649 return 0;
3650}
3651_ACEOF
3652if ac_fn_c_try_compile "$LINENO"; then :
3653 ac_cv_prog_cc_g=yes
3654else
3655 CFLAGS=""
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657/* end confdefs.h. */
3658
3659int
3660main ()
3661{
3662
3663 ;
3664 return 0;
3665}
3666_ACEOF
3667if ac_fn_c_try_compile "$LINENO"; then :
3668
3669else
3670 ac_c_werror_flag=$ac_save_c_werror_flag
3671 CFLAGS="-g"
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673/* end confdefs.h. */
3674
3675int
3676main ()
3677{
3678
3679 ;
3680 return 0;
3681}
3682_ACEOF
3683if ac_fn_c_try_compile "$LINENO"; then :
3684 ac_cv_prog_cc_g=yes
3685fi
3686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687fi
3688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689fi
3690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 ac_c_werror_flag=$ac_save_c_werror_flag
3692fi
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3694$as_echo "$ac_cv_prog_cc_g" >&6; }
3695if test "$ac_test_CFLAGS" = set; then
3696 CFLAGS=$ac_save_CFLAGS
3697elif test $ac_cv_prog_cc_g = yes; then
3698 if test "$GCC" = yes; then
3699 CFLAGS="-g -O2"
3700 else
3701 CFLAGS="-g"
3702 fi
3703else
3704 if test "$GCC" = yes; then
3705 CFLAGS="-O2"
3706 else
3707 CFLAGS=
3708 fi
3709fi
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3711$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3712if ${ac_cv_prog_cc_c89+:} false; then :
3713 $as_echo_n "(cached) " >&6
3714else
3715 ac_cv_prog_cc_c89=no
3716ac_save_CC=$CC
3717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718/* end confdefs.h. */
3719#include <stdarg.h>
3720#include <stdio.h>
3721struct stat;
3722/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3723struct buf { int x; };
3724FILE * (*rcsopen) (struct buf *, struct stat *, int);
3725static char *e (p, i)
3726 char **p;
3727 int i;
3728{
3729 return p[i];
3730}
3731static char *f (char * (*g) (char **, int), char **p, ...)
3732{
3733 char *s;
3734 va_list v;
3735 va_start (v,p);
3736 s = g (p, va_arg (v,int));
3737 va_end (v);
3738 return s;
3739}
3740
3741/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3742 function prototypes and stuff, but not '\xHH' hex character constants.
3743 These don't provoke an error unfortunately, instead are silently treated
3744 as 'x'. The following induces an error, until -std is added to get
3745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3746 array size at least. It's necessary to write '\x00'==0 to get something
3747 that's true only with -std. */
3748int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3749
3750/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3751 inside strings and character constants. */
3752#define FOO(x) 'x'
3753int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3754
3755int test (int i, double x);
3756struct s1 {int (*f) (int a);};
3757struct s2 {int (*f) (double a);};
3758int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3759int argc;
3760char **argv;
3761int
3762main ()
3763{
3764return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3765 ;
3766 return 0;
3767}
3768_ACEOF
3769for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3771do
3772 CC="$ac_save_CC $ac_arg"
3773 if ac_fn_c_try_compile "$LINENO"; then :
3774 ac_cv_prog_cc_c89=$ac_arg
3775fi
3776rm -f core conftest.err conftest.$ac_objext
3777 test "x$ac_cv_prog_cc_c89" != "xno" && break
3778done
3779rm -f conftest.$ac_ext
3780CC=$ac_save_CC
3781
3782fi
3783# AC_CACHE_VAL
3784case "x$ac_cv_prog_cc_c89" in
3785 x)
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3787$as_echo "none needed" >&6; } ;;
3788 xno)
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3790$as_echo "unsupported" >&6; } ;;
3791 *)
3792 CC="$CC $ac_cv_prog_cc_c89"
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3794$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3795esac
3796if test "x$ac_cv_prog_cc_c89" != xno; then :
3797
3798fi
3799
3800ac_ext=c
3801ac_cpp='$CPP $CPPFLAGS'
3802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804ac_compiler_gnu=$ac_cv_c_compiler_gnu
3805
3806ac_ext=c
3807ac_cpp='$CPP $CPPFLAGS'
3808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3812$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3813if ${am_cv_prog_cc_c_o+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815else
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h. */
3818
3819int
3820main ()
3821{
3822
3823 ;
3824 return 0;
3825}
3826_ACEOF
3827 # Make sure it works both with $CC and with simple cc.
3828 # Following AC_PROG_CC_C_O, we do the test twice because some
3829 # compilers refuse to overwrite an existing .o file with -o,
3830 # though they will create one.
3831 am_cv_prog_cc_c_o=yes
3832 for am_i in 1 2; do
3833 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3834 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } \
3838 && test -f conftest2.$ac_objext; then
3839 : OK
3840 else
3841 am_cv_prog_cc_c_o=no
3842 break
3843 fi
3844 done
3845 rm -f core conftest*
3846 unset am_i
3847fi
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3849$as_echo "$am_cv_prog_cc_c_o" >&6; }
3850if test "$am_cv_prog_cc_c_o" != yes; then
3851 # Losing compiler, so override with the script.
3852 # FIXME: It is wrong to rewrite CC.
3853 # But if we don't then we get into trouble of one sort or another.
3854 # A longer-term fix would be to have automake use am__CC in this case,
3855 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3856 CC="$am_aux_dir/compile $CC"
3857fi
3858ac_ext=c
3859ac_cpp='$CPP $CPPFLAGS'
3860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863
3864
3865depcc="$CC" am_compiler_list=
3866
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3868$as_echo_n "checking dependency style of $depcc... " >&6; }
3869if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871else
3872 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3873 # We make a subdir and do the tests there. Otherwise we can end up
3874 # making bogus files that we don't know about and never remove. For
3875 # instance it was reported that on HP-UX the gcc test will end up
3876 # making a dummy file named 'D' -- because '-MD' means "put the output
3877 # in D".
3878 rm -rf conftest.dir
3879 mkdir conftest.dir
3880 # Copy depcomp to subdir because otherwise we won't find it if we're
3881 # using a relative directory.
3882 cp "$am_depcomp" conftest.dir
3883 cd conftest.dir
3884 # We will build objects and dependencies in a subdirectory because
3885 # it helps to detect inapplicable dependency modes. For instance
3886 # both Tru64's cc and ICC support -MD to output dependencies as a
3887 # side effect of compilation, but ICC will put the dependencies in
3888 # the current directory while Tru64 will put them in the object
3889 # directory.
3890 mkdir sub
3891
3892 am_cv_CC_dependencies_compiler_type=none
3893 if test "$am_compiler_list" = ""; then
3894 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3895 fi
3896 am__universal=false
3897 case " $depcc " in #(
3898 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3899 esac
3900
3901 for depmode in $am_compiler_list; do
3902 # Setup a source with many dependencies, because some compilers
3903 # like to wrap large dependency lists on column 80 (with \), and
3904 # we should not choose a depcomp mode which is confused by this.
3905 #
3906 # We need to recreate these files for each test, as the compiler may
3907 # overwrite some of them when testing with obscure command lines.
3908 # This happens at least with the AIX C compiler.
3909 : > sub/conftest.c
3910 for i in 1 2 3 4 5 6; do
3911 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3912 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3913 # Solaris 10 /bin/sh.
3914 echo '/* dummy */' > sub/conftst$i.h
3915 done
3916 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3917
3918 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3919 # mode. It turns out that the SunPro C++ compiler does not properly
3920 # handle '-M -o', and we need to detect this. Also, some Intel
3921 # versions had trouble with output in subdirs.
3922 am__obj=sub/conftest.${OBJEXT-o}
3923 am__minus_obj="-o $am__obj"
3924 case $depmode in
3925 gcc)
3926 # This depmode causes a compiler race in universal mode.
3927 test "$am__universal" = false || continue
3928 ;;
3929 nosideeffect)
3930 # After this tag, mechanisms are not by side-effect, so they'll
3931 # only be used when explicitly requested.
3932 if test "x$enable_dependency_tracking" = xyes; then
3933 continue
3934 else
3935 break
3936 fi
3937 ;;
3938 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3939 # This compiler won't grok '-c -o', but also, the minuso test has
3940 # not run yet. These depmodes are late enough in the game, and
3941 # so weak that their functioning should not be impacted.
3942 am__obj=conftest.${OBJEXT-o}
3943 am__minus_obj=
3944 ;;
3945 none) break ;;
3946 esac
3947 if depmode=$depmode \
3948 source=sub/conftest.c object=$am__obj \
3949 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3950 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3951 >/dev/null 2>conftest.err &&
3952 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3953 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3954 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3955 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3956 # icc doesn't choke on unknown options, it will just issue warnings
3957 # or remarks (even with -Werror). So we grep stderr for any message
3958 # that says an option was ignored or not supported.
3959 # When given -MP, icc 7.0 and 7.1 complain thusly:
3960 # icc: Command line warning: ignoring option '-M'; no argument required
3961 # The diagnosis changed in icc 8.0:
3962 # icc: Command line remark: option '-MP' not supported
3963 if (grep 'ignoring option' conftest.err ||
3964 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3965 am_cv_CC_dependencies_compiler_type=$depmode
3966 break
3967 fi
3968 fi
3969 done
3970
3971 cd ..
3972 rm -rf conftest.dir
3973else
3974 am_cv_CC_dependencies_compiler_type=none
3975fi
3976
3977fi
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3979$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3980CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3981
3982 if
3983 test "x$enable_dependency_tracking" != xno \
3984 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3985 am__fastdepCC_TRUE=
3986 am__fastdepCC_FALSE='#'
3987else
3988 am__fastdepCC_TRUE='#'
3989 am__fastdepCC_FALSE=
3990fi
3991
3992
3993
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3995$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3996if ${ac_cv_c_const+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998else
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000/* end confdefs.h. */
4001
4002int
4003main ()
4004{
4005
4006#ifndef __cplusplus
4007 /* Ultrix mips cc rejects this sort of thing. */
4008 typedef int charset[2];
4009 const charset cs = { 0, 0 };
4010 /* SunOS 4.1.1 cc rejects this. */
4011 char const *const *pcpcc;
4012 char **ppc;
4013 /* NEC SVR4.0.2 mips cc rejects this. */
4014 struct point {int x, y;};
4015 static struct point const zero = {0,0};
4016 /* AIX XL C 1.02.0.0 rejects this.
4017 It does not let you subtract one const X* pointer from another in
4018 an arm of an if-expression whose if-part is not a constant
4019 expression */
4020 const char *g = "string";
4021 pcpcc = &g + (g ? g-g : 0);
4022 /* HPUX 7.0 cc rejects these. */
4023 ++pcpcc;
4024 ppc = (char**) pcpcc;
4025 pcpcc = (char const *const *) ppc;
4026 { /* SCO 3.2v4 cc rejects this sort of thing. */
4027 char tx;
4028 char *t = &tx;
4029 char const *s = 0 ? (char *) 0 : (char const *) 0;
4030
4031 *t++ = 0;
4032 if (s) return 0;
4033 }
4034 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4035 int x[] = {25, 17};
4036 const int *foo = &x[0];
4037 ++foo;
4038 }
4039 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4040 typedef const int *iptr;
4041 iptr p = 0;
4042 ++p;
4043 }
4044 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4045 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4046 struct s { int j; const int *ap[3]; } bx;
4047 struct s *b = &bx; b->j = 5;
4048 }
4049 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4050 const int foo = 10;
4051 if (!foo) return 0;
4052 }
4053 return !cs[0] && !zero.x;
4054#endif
4055
4056 ;
4057 return 0;
4058}
4059_ACEOF
4060if ac_fn_c_try_compile "$LINENO"; then :
4061 ac_cv_c_const=yes
4062else
4063 ac_cv_c_const=no
4064fi
4065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066fi
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4068$as_echo "$ac_cv_c_const" >&6; }
4069if test $ac_cv_c_const = no; then
4070
4071$as_echo "#define const /**/" >>confdefs.h
4072
4073fi
4074
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4076$as_echo_n "checking for inline... " >&6; }
4077if ${ac_cv_c_inline+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079else
4080 ac_cv_c_inline=no
4081for ac_kw in inline __inline__ __inline; do
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083/* end confdefs.h. */
4084#ifndef __cplusplus
4085typedef int foo_t;
4086static $ac_kw foo_t static_foo () {return 0; }
4087$ac_kw foo_t foo () {return 0; }
4088#endif
4089
4090_ACEOF
4091if ac_fn_c_try_compile "$LINENO"; then :
4092 ac_cv_c_inline=$ac_kw
4093fi
4094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 test "$ac_cv_c_inline" != no && break
4096done
4097
4098fi
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4100$as_echo "$ac_cv_c_inline" >&6; }
4101
4102case $ac_cv_c_inline in
4103 inline | yes) ;;
4104 *)
4105 case $ac_cv_c_inline in
4106 no) ac_val=;;
4107 *) ac_val=$ac_cv_c_inline;;
4108 esac
4109 cat >>confdefs.h <<_ACEOF
4110#ifndef __cplusplus
4111#define inline $ac_val
4112#endif
4113_ACEOF
4114 ;;
4115esac
4116
4117ac_ext=c
4118ac_cpp='$CPP $CPPFLAGS'
4119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4123$as_echo_n "checking how to run the C preprocessor... " >&6; }
4124# On Suns, sometimes $CPP names a directory.
4125if test -n "$CPP" && test -d "$CPP"; then
4126 CPP=
4127fi
4128if test -z "$CPP"; then
4129 if ${ac_cv_prog_CPP+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131else
4132 # Double quotes because CPP needs to be expanded
4133 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4134 do
4135 ac_preproc_ok=false
4136for ac_c_preproc_warn_flag in '' yes
4137do
4138 # Use a header file that comes with gcc, so configuring glibc
4139 # with a fresh cross-compiler works.
4140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4141 # <limits.h> exists even on freestanding compilers.
4142 # On the NeXT, cc -E runs the code through the compiler's parser,
4143 # not just through cpp. "Syntax error" is here to catch this case.
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h. */
4146#ifdef __STDC__
4147# include <limits.h>
4148#else
4149# include <assert.h>
4150#endif
4151 Syntax error
4152_ACEOF
4153if ac_fn_c_try_cpp "$LINENO"; then :
4154
4155else
4156 # Broken: fails on valid input.
4157continue
4158fi
4159rm -f conftest.err conftest.i conftest.$ac_ext
4160
4161 # OK, works on sane cases. Now check whether nonexistent headers
4162 # can be detected and how.
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h. */
4165#include <ac_nonexistent.h>
4166_ACEOF
4167if ac_fn_c_try_cpp "$LINENO"; then :
4168 # Broken: success on invalid input.
4169continue
4170else
4171 # Passes both tests.
4172ac_preproc_ok=:
4173break
4174fi
4175rm -f conftest.err conftest.i conftest.$ac_ext
4176
4177done
4178# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4179rm -f conftest.i conftest.err conftest.$ac_ext
4180if $ac_preproc_ok; then :
4181 break
4182fi
4183
4184 done
4185 ac_cv_prog_CPP=$CPP
4186
4187fi
4188 CPP=$ac_cv_prog_CPP
4189else
4190 ac_cv_prog_CPP=$CPP
4191fi
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4193$as_echo "$CPP" >&6; }
4194ac_preproc_ok=false
4195for ac_c_preproc_warn_flag in '' yes
4196do
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 # <limits.h> exists even on freestanding compilers.
4201 # On the NeXT, cc -E runs the code through the compiler's parser,
4202 # not just through cpp. "Syntax error" is here to catch this case.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h. */
4205#ifdef __STDC__
4206# include <limits.h>
4207#else
4208# include <assert.h>
4209#endif
4210 Syntax error
4211_ACEOF
4212if ac_fn_c_try_cpp "$LINENO"; then :
4213
4214else
4215 # Broken: fails on valid input.
4216continue
4217fi
4218rm -f conftest.err conftest.i conftest.$ac_ext
4219
4220 # OK, works on sane cases. Now check whether nonexistent headers
4221 # can be detected and how.
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223/* end confdefs.h. */
4224#include <ac_nonexistent.h>
4225_ACEOF
4226if ac_fn_c_try_cpp "$LINENO"; then :
4227 # Broken: success on invalid input.
4228continue
4229else
4230 # Passes both tests.
4231ac_preproc_ok=:
4232break
4233fi
4234rm -f conftest.err conftest.i conftest.$ac_ext
4235
4236done
4237# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4238rm -f conftest.i conftest.err conftest.$ac_ext
4239if $ac_preproc_ok; then :
4240
4241else
4242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4244as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4245See \`config.log' for more details" "$LINENO" 5; }
4246fi
4247
4248ac_ext=c
4249ac_cpp='$CPP $CPPFLAGS'
4250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4256$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4257if ${ac_cv_path_GREP+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259else
4260 if test -z "$GREP"; then
4261 ac_path_GREP_found=false
4262 # Loop through the user's path and test for each of PROGNAME-LIST
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4265do
4266 IFS=$as_save_IFS
4267 test -z "$as_dir" && as_dir=.
4268 for ac_prog in grep ggrep; do
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4271 as_fn_executable_p "$ac_path_GREP" || continue
4272# Check for GNU ac_path_GREP and select it if it is found.
4273 # Check for GNU $ac_path_GREP
4274case `"$ac_path_GREP" --version 2>&1` in
4275*GNU*)
4276 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4277*)
4278 ac_count=0
4279 $as_echo_n 0123456789 >"conftest.in"
4280 while :
4281 do
4282 cat "conftest.in" "conftest.in" >"conftest.tmp"
4283 mv "conftest.tmp" "conftest.in"
4284 cp "conftest.in" "conftest.nl"
4285 $as_echo 'GREP' >> "conftest.nl"
4286 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4288 as_fn_arith $ac_count + 1 && ac_count=$as_val
4289 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4290 # Best one so far, save it but keep looking for a better one
4291 ac_cv_path_GREP="$ac_path_GREP"
4292 ac_path_GREP_max=$ac_count
4293 fi
4294 # 10*(2^10) chars as input seems more than enough
4295 test $ac_count -gt 10 && break
4296 done
4297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4298esac
4299
4300 $ac_path_GREP_found && break 3
4301 done
4302 done
4303 done
4304IFS=$as_save_IFS
4305 if test -z "$ac_cv_path_GREP"; then
4306 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4307 fi
4308else
4309 ac_cv_path_GREP=$GREP
4310fi
4311
4312fi
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4314$as_echo "$ac_cv_path_GREP" >&6; }
4315 GREP="$ac_cv_path_GREP"
4316
4317
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4319$as_echo_n "checking for egrep... " >&6; }
4320if ${ac_cv_path_EGREP+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322else
4323 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4324 then ac_cv_path_EGREP="$GREP -E"
4325 else
4326 if test -z "$EGREP"; then
4327 ac_path_EGREP_found=false
4328 # Loop through the user's path and test for each of PROGNAME-LIST
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4331do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_prog in egrep; do
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4337 as_fn_executable_p "$ac_path_EGREP" || continue
4338# Check for GNU ac_path_EGREP and select it if it is found.
4339 # Check for GNU $ac_path_EGREP
4340case `"$ac_path_EGREP" --version 2>&1` in
4341*GNU*)
4342 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4343*)
4344 ac_count=0
4345 $as_echo_n 0123456789 >"conftest.in"
4346 while :
4347 do
4348 cat "conftest.in" "conftest.in" >"conftest.tmp"
4349 mv "conftest.tmp" "conftest.in"
4350 cp "conftest.in" "conftest.nl"
4351 $as_echo 'EGREP' >> "conftest.nl"
4352 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4353 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4354 as_fn_arith $ac_count + 1 && ac_count=$as_val
4355 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4356 # Best one so far, save it but keep looking for a better one
4357 ac_cv_path_EGREP="$ac_path_EGREP"
4358 ac_path_EGREP_max=$ac_count
4359 fi
4360 # 10*(2^10) chars as input seems more than enough
4361 test $ac_count -gt 10 && break
4362 done
4363 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4364esac
4365
4366 $ac_path_EGREP_found && break 3
4367 done
4368 done
4369 done
4370IFS=$as_save_IFS
4371 if test -z "$ac_cv_path_EGREP"; then
4372 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4373 fi
4374else
4375 ac_cv_path_EGREP=$EGREP
4376fi
4377
4378 fi
4379fi
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4381$as_echo "$ac_cv_path_EGREP" >&6; }
4382 EGREP="$ac_cv_path_EGREP"
4383
4384
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4386$as_echo_n "checking for ANSI C header files... " >&6; }
4387if ${ac_cv_header_stdc+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389else
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391/* end confdefs.h. */
4392#include <stdlib.h>
4393#include <stdarg.h>
4394#include <string.h>
4395#include <float.h>
4396
4397int
4398main ()
4399{
4400
4401 ;
4402 return 0;
4403}
4404_ACEOF
4405if ac_fn_c_try_compile "$LINENO"; then :
4406 ac_cv_header_stdc=yes
4407else
4408 ac_cv_header_stdc=no
4409fi
4410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411
4412if test $ac_cv_header_stdc = yes; then
4413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415/* end confdefs.h. */
4416#include <string.h>
4417
4418_ACEOF
4419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 $EGREP "memchr" >/dev/null 2>&1; then :
4421
4422else
4423 ac_cv_header_stdc=no
4424fi
4425rm -f conftest*
4426
4427fi
4428
4429if test $ac_cv_header_stdc = yes; then
4430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432/* end confdefs.h. */
4433#include <stdlib.h>
4434
4435_ACEOF
4436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4437 $EGREP "free" >/dev/null 2>&1; then :
4438
4439else
4440 ac_cv_header_stdc=no
4441fi
4442rm -f conftest*
4443
4444fi
4445
4446if test $ac_cv_header_stdc = yes; then
4447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4448 if test "$cross_compiling" = yes; then :
4449 :
4450else
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452/* end confdefs.h. */
4453#include <ctype.h>
4454#include <stdlib.h>
4455#if ((' ' & 0x0FF) == 0x020)
4456# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4457# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4458#else
4459# define ISLOWER(c) \
4460 (('a' <= (c) && (c) <= 'i') \
4461 || ('j' <= (c) && (c) <= 'r') \
4462 || ('s' <= (c) && (c) <= 'z'))
4463# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4464#endif
4465
4466#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4467int
4468main ()
4469{
4470 int i;
4471 for (i = 0; i < 256; i++)
4472 if (XOR (islower (i), ISLOWER (i))
4473 || toupper (i) != TOUPPER (i))
4474 return 2;
4475 return 0;
4476}
4477_ACEOF
4478if ac_fn_c_try_run "$LINENO"; then :
4479
4480else
4481 ac_cv_header_stdc=no
4482fi
4483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4484 conftest.$ac_objext conftest.beam conftest.$ac_ext
4485fi
4486
4487fi
4488fi
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4490$as_echo "$ac_cv_header_stdc" >&6; }
4491if test $ac_cv_header_stdc = yes; then
4492
4493$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4494
4495fi
4496
4497
4498ac_ext=c
4499ac_cpp='$CPP $CPPFLAGS'
4500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502ac_compiler_gnu=$ac_cv_c_compiler_gnu
4503if test -n "$ac_tool_prefix"; then
4504 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4505set dummy ${ac_tool_prefix}gcc; ac_word=$2
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507$as_echo_n "checking for $ac_word... " >&6; }
4508if ${ac_cv_prog_CC+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510else
4511 if test -n "$CC"; then
4512 ac_cv_prog_CC="$CC" # Let the user override the test.
4513else
4514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH
4516do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4524 fi
4525done
4526 done
4527IFS=$as_save_IFS
4528
4529fi
4530fi
4531CC=$ac_cv_prog_CC
4532if test -n "$CC"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4534$as_echo "$CC" >&6; }
4535else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537$as_echo "no" >&6; }
4538fi
4539
4540
4541fi
4542if test -z "$ac_cv_prog_CC"; then
4543 ac_ct_CC=$CC
4544 # Extract the first word of "gcc", so it can be a program name with args.
4545set dummy gcc; ac_word=$2
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547$as_echo_n "checking for $ac_word... " >&6; }
4548if ${ac_cv_prog_ac_ct_CC+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550else
4551 if test -n "$ac_ct_CC"; then
4552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_ac_ct_CC="gcc"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565done
4566 done
4567IFS=$as_save_IFS
4568
4569fi
4570fi
4571ac_ct_CC=$ac_cv_prog_ac_ct_CC
4572if test -n "$ac_ct_CC"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4574$as_echo "$ac_ct_CC" >&6; }
4575else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578fi
4579
4580 if test "x$ac_ct_CC" = x; then
4581 CC=""
4582 else
4583 case $cross_compiling:$ac_tool_warned in
4584yes:)
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4587ac_tool_warned=yes ;;
4588esac
4589 CC=$ac_ct_CC
4590 fi
4591else
4592 CC="$ac_cv_prog_CC"
4593fi
4594
4595if test -z "$CC"; then
4596 if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4598set dummy ${ac_tool_prefix}cc; ac_word=$2
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600$as_echo_n "checking for $ac_word... " >&6; }
4601if ${ac_cv_prog_CC+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603else
4604 if test -n "$CC"; then
4605 ac_cv_prog_CC="$CC" # Let the user override the test.
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_CC="${ac_tool_prefix}cc"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618done
4619 done
4620IFS=$as_save_IFS
4621
4622fi
4623fi
4624CC=$ac_cv_prog_CC
4625if test -n "$CC"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4627$as_echo "$CC" >&6; }
4628else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630$as_echo "no" >&6; }
4631fi
4632
4633
4634 fi
4635fi
4636if test -z "$CC"; then
4637 # Extract the first word of "cc", so it can be a program name with args.
4638set dummy cc; ac_word=$2
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640$as_echo_n "checking for $ac_word... " >&6; }
4641if ${ac_cv_prog_CC+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643else
4644 if test -n "$CC"; then
4645 ac_cv_prog_CC="$CC" # Let the user override the test.
4646else
4647 ac_prog_rejected=no
4648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH
4650do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4656 ac_prog_rejected=yes
4657 continue
4658 fi
4659 ac_cv_prog_CC="cc"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663done
4664 done
4665IFS=$as_save_IFS
4666
4667if test $ac_prog_rejected = yes; then
4668 # We found a bogon in the path, so make sure we never use it.
4669 set dummy $ac_cv_prog_CC
4670 shift
4671 if test $# != 0; then
4672 # We chose a different compiler from the bogus one.
4673 # However, it has the same basename, so the bogon will be chosen
4674 # first if we set CC to just the basename; use the full file name.
4675 shift
4676 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4677 fi
4678fi
4679fi
4680fi
4681CC=$ac_cv_prog_CC
4682if test -n "$CC"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4684$as_echo "$CC" >&6; }
4685else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687$as_echo "no" >&6; }
4688fi
4689
4690
4691fi
4692if test -z "$CC"; then
4693 if test -n "$ac_tool_prefix"; then
4694 for ac_prog in cl.exe
4695 do
4696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4697set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699$as_echo_n "checking for $ac_word... " >&6; }
4700if ${ac_cv_prog_CC+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702else
4703 if test -n "$CC"; then
4704 ac_cv_prog_CC="$CC" # Let the user override the test.
4705else
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717done
4718 done
4719IFS=$as_save_IFS
4720
4721fi
4722fi
4723CC=$ac_cv_prog_CC
4724if test -n "$CC"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4726$as_echo "$CC" >&6; }
4727else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729$as_echo "no" >&6; }
4730fi
4731
4732
4733 test -n "$CC" && break
4734 done
4735fi
4736if test -z "$CC"; then
4737 ac_ct_CC=$CC
4738 for ac_prog in cl.exe
4739do
4740 # Extract the first word of "$ac_prog", so it can be a program name with args.
4741set dummy $ac_prog; ac_word=$2
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743$as_echo_n "checking for $ac_word... " >&6; }
4744if ${ac_cv_prog_ac_ct_CC+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746else
4747 if test -n "$ac_ct_CC"; then
4748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4749else
4750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH
4752do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757 ac_cv_prog_ac_ct_CC="$ac_prog"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 break 2
4760 fi
4761done
4762 done
4763IFS=$as_save_IFS
4764
4765fi
4766fi
4767ac_ct_CC=$ac_cv_prog_ac_ct_CC
4768if test -n "$ac_ct_CC"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4770$as_echo "$ac_ct_CC" >&6; }
4771else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773$as_echo "no" >&6; }
4774fi
4775
4776
4777 test -n "$ac_ct_CC" && break
4778done
4779
4780 if test "x$ac_ct_CC" = x; then
4781 CC=""
4782 else
4783 case $cross_compiling:$ac_tool_warned in
4784yes:)
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4787ac_tool_warned=yes ;;
4788esac
4789 CC=$ac_ct_CC
4790 fi
4791fi
4792
4793fi
4794
4795
4796test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4798as_fn_error $? "no acceptable C compiler found in \$PATH
4799See \`config.log' for more details" "$LINENO" 5; }
4800
4801# Provide some information about the compiler.
4802$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4803set X $ac_compile
4804ac_compiler=$2
4805for ac_option in --version -v -V -qversion; do
4806 { { ac_try="$ac_compiler $ac_option >&5"
4807case "(($ac_try" in
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4810esac
4811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4812$as_echo "$ac_try_echo"; } >&5
4813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4814 ac_status=$?
4815 if test -s conftest.err; then
4816 sed '10a\
4817... rest of stderr output deleted ...
4818 10q' conftest.err >conftest.er1
4819 cat conftest.er1 >&5
4820 fi
4821 rm -f conftest.er1 conftest.err
4822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4823 test $ac_status = 0; }
4824done
4825
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4827$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4828if ${ac_cv_c_compiler_gnu+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830else
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832/* end confdefs.h. */
4833
4834int
4835main ()
4836{
4837#ifndef __GNUC__
4838 choke me
4839#endif
4840
4841 ;
4842 return 0;
4843}
4844_ACEOF
4845if ac_fn_c_try_compile "$LINENO"; then :
4846 ac_compiler_gnu=yes
4847else
4848 ac_compiler_gnu=no
4849fi
4850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851ac_cv_c_compiler_gnu=$ac_compiler_gnu
4852
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4855$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4856if test $ac_compiler_gnu = yes; then
4857 GCC=yes
4858else
4859 GCC=
4860fi
4861ac_test_CFLAGS=${CFLAGS+set}
4862ac_save_CFLAGS=$CFLAGS
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4864$as_echo_n "checking whether $CC accepts -g... " >&6; }
4865if ${ac_cv_prog_cc_g+:} false; then :
4866 $as_echo_n "(cached) " >&6
4867else
4868 ac_save_c_werror_flag=$ac_c_werror_flag
4869 ac_c_werror_flag=yes
4870 ac_cv_prog_cc_g=no
4871 CFLAGS="-g"
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873/* end confdefs.h. */
4874
4875int
4876main ()
4877{
4878
4879 ;
4880 return 0;
4881}
4882_ACEOF
4883if ac_fn_c_try_compile "$LINENO"; then :
4884 ac_cv_prog_cc_g=yes
4885else
4886 CFLAGS=""
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888/* end confdefs.h. */
4889
4890int
4891main ()
4892{
4893
4894 ;
4895 return 0;
4896}
4897_ACEOF
4898if ac_fn_c_try_compile "$LINENO"; then :
4899
4900else
4901 ac_c_werror_flag=$ac_save_c_werror_flag
4902 CFLAGS="-g"
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904/* end confdefs.h. */
4905
4906int
4907main ()
4908{
4909
4910 ;
4911 return 0;
4912}
4913_ACEOF
4914if ac_fn_c_try_compile "$LINENO"; then :
4915 ac_cv_prog_cc_g=yes
4916fi
4917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918fi
4919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920fi
4921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 ac_c_werror_flag=$ac_save_c_werror_flag
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4925$as_echo "$ac_cv_prog_cc_g" >&6; }
4926if test "$ac_test_CFLAGS" = set; then
4927 CFLAGS=$ac_save_CFLAGS
4928elif test $ac_cv_prog_cc_g = yes; then
4929 if test "$GCC" = yes; then
4930 CFLAGS="-g -O2"
4931 else
4932 CFLAGS="-g"
4933 fi
4934else
4935 if test "$GCC" = yes; then
4936 CFLAGS="-O2"
4937 else
4938 CFLAGS=
4939 fi
4940fi
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4942$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4943if ${ac_cv_prog_cc_c89+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945else
4946 ac_cv_prog_cc_c89=no
4947ac_save_CC=$CC
4948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949/* end confdefs.h. */
4950#include <stdarg.h>
4951#include <stdio.h>
4952struct stat;
4953/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4954struct buf { int x; };
4955FILE * (*rcsopen) (struct buf *, struct stat *, int);
4956static char *e (p, i)
4957 char **p;
4958 int i;
4959{
4960 return p[i];
4961}
4962static char *f (char * (*g) (char **, int), char **p, ...)
4963{
4964 char *s;
4965 va_list v;
4966 va_start (v,p);
4967 s = g (p, va_arg (v,int));
4968 va_end (v);
4969 return s;
4970}
4971
4972/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4973 function prototypes and stuff, but not '\xHH' hex character constants.
4974 These don't provoke an error unfortunately, instead are silently treated
4975 as 'x'. The following induces an error, until -std is added to get
4976 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4977 array size at least. It's necessary to write '\x00'==0 to get something
4978 that's true only with -std. */
4979int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4980
4981/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4982 inside strings and character constants. */
4983#define FOO(x) 'x'
4984int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4985
4986int test (int i, double x);
4987struct s1 {int (*f) (int a);};
4988struct s2 {int (*f) (double a);};
4989int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4990int argc;
4991char **argv;
4992int
4993main ()
4994{
4995return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4996 ;
4997 return 0;
4998}
4999_ACEOF
5000for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5001 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5002do
5003 CC="$ac_save_CC $ac_arg"
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005 ac_cv_prog_cc_c89=$ac_arg
5006fi
5007rm -f core conftest.err conftest.$ac_objext
5008 test "x$ac_cv_prog_cc_c89" != "xno" && break
5009done
5010rm -f conftest.$ac_ext
5011CC=$ac_save_CC
5012
5013fi
5014# AC_CACHE_VAL
5015case "x$ac_cv_prog_cc_c89" in
5016 x)
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5018$as_echo "none needed" >&6; } ;;
5019 xno)
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5021$as_echo "unsupported" >&6; } ;;
5022 *)
5023 CC="$CC $ac_cv_prog_cc_c89"
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5025$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5026esac
5027if test "x$ac_cv_prog_cc_c89" != xno; then :
5028
5029fi
5030
5031ac_ext=c
5032ac_cpp='$CPP $CPPFLAGS'
5033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035ac_compiler_gnu=$ac_cv_c_compiler_gnu
5036
5037ac_ext=c
5038ac_cpp='$CPP $CPPFLAGS'
5039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041ac_compiler_gnu=$ac_cv_c_compiler_gnu
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5043$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5044if ${am_cv_prog_cc_c_o+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046else
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048/* end confdefs.h. */
5049
5050int
5051main ()
5052{
5053
5054 ;
5055 return 0;
5056}
5057_ACEOF
5058 # Make sure it works both with $CC and with simple cc.
5059 # Following AC_PROG_CC_C_O, we do the test twice because some
5060 # compilers refuse to overwrite an existing .o file with -o,
5061 # though they will create one.
5062 am_cv_prog_cc_c_o=yes
5063 for am_i in 1 2; do
5064 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5065 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } \
5069 && test -f conftest2.$ac_objext; then
5070 : OK
5071 else
5072 am_cv_prog_cc_c_o=no
5073 break
5074 fi
5075 done
5076 rm -f core conftest*
5077 unset am_i
5078fi
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5080$as_echo "$am_cv_prog_cc_c_o" >&6; }
5081if test "$am_cv_prog_cc_c_o" != yes; then
5082 # Losing compiler, so override with the script.
5083 # FIXME: It is wrong to rewrite CC.
5084 # But if we don't then we get into trouble of one sort or another.
5085 # A longer-term fix would be to have automake use am__CC in this case,
5086 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5087 CC="$am_aux_dir/compile $CC"
5088fi
5089ac_ext=c
5090ac_cpp='$CPP $CPPFLAGS'
5091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094
5095
5096depcc="$CC" am_compiler_list=
5097
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5099$as_echo_n "checking dependency style of $depcc... " >&6; }
5100if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102else
5103 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5104 # We make a subdir and do the tests there. Otherwise we can end up
5105 # making bogus files that we don't know about and never remove. For
5106 # instance it was reported that on HP-UX the gcc test will end up
5107 # making a dummy file named 'D' -- because '-MD' means "put the output
5108 # in D".
5109 rm -rf conftest.dir
5110 mkdir conftest.dir
5111 # Copy depcomp to subdir because otherwise we won't find it if we're
5112 # using a relative directory.
5113 cp "$am_depcomp" conftest.dir
5114 cd conftest.dir
5115 # We will build objects and dependencies in a subdirectory because
5116 # it helps to detect inapplicable dependency modes. For instance
5117 # both Tru64's cc and ICC support -MD to output dependencies as a
5118 # side effect of compilation, but ICC will put the dependencies in
5119 # the current directory while Tru64 will put them in the object
5120 # directory.
5121 mkdir sub
5122
5123 am_cv_CC_dependencies_compiler_type=none
5124 if test "$am_compiler_list" = ""; then
5125 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5126 fi
5127 am__universal=false
5128 case " $depcc " in #(
5129 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5130 esac
5131
5132 for depmode in $am_compiler_list; do
5133 # Setup a source with many dependencies, because some compilers
5134 # like to wrap large dependency lists on column 80 (with \), and
5135 # we should not choose a depcomp mode which is confused by this.
5136 #
5137 # We need to recreate these files for each test, as the compiler may
5138 # overwrite some of them when testing with obscure command lines.
5139 # This happens at least with the AIX C compiler.
5140 : > sub/conftest.c
5141 for i in 1 2 3 4 5 6; do
5142 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5143 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5144 # Solaris 10 /bin/sh.
5145 echo '/* dummy */' > sub/conftst$i.h
5146 done
5147 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5148
5149 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5150 # mode. It turns out that the SunPro C++ compiler does not properly
5151 # handle '-M -o', and we need to detect this. Also, some Intel
5152 # versions had trouble with output in subdirs.
5153 am__obj=sub/conftest.${OBJEXT-o}
5154 am__minus_obj="-o $am__obj"
5155 case $depmode in
5156 gcc)
5157 # This depmode causes a compiler race in universal mode.
5158 test "$am__universal" = false || continue
5159 ;;
5160 nosideeffect)
5161 # After this tag, mechanisms are not by side-effect, so they'll
5162 # only be used when explicitly requested.
5163 if test "x$enable_dependency_tracking" = xyes; then
5164 continue
5165 else
5166 break
5167 fi
5168 ;;
5169 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5170 # This compiler won't grok '-c -o', but also, the minuso test has
5171 # not run yet. These depmodes are late enough in the game, and
5172 # so weak that their functioning should not be impacted.
5173 am__obj=conftest.${OBJEXT-o}
5174 am__minus_obj=
5175 ;;
5176 none) break ;;
5177 esac
5178 if depmode=$depmode \
5179 source=sub/conftest.c object=$am__obj \
5180 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5181 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5182 >/dev/null 2>conftest.err &&
5183 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5184 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5185 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5186 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5187 # icc doesn't choke on unknown options, it will just issue warnings
5188 # or remarks (even with -Werror). So we grep stderr for any message
5189 # that says an option was ignored or not supported.
5190 # When given -MP, icc 7.0 and 7.1 complain thusly:
5191 # icc: Command line warning: ignoring option '-M'; no argument required
5192 # The diagnosis changed in icc 8.0:
5193 # icc: Command line remark: option '-MP' not supported
5194 if (grep 'ignoring option' conftest.err ||
5195 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5196 am_cv_CC_dependencies_compiler_type=$depmode
5197 break
5198 fi
5199 fi
5200 done
5201
5202 cd ..
5203 rm -rf conftest.dir
5204else
5205 am_cv_CC_dependencies_compiler_type=none
5206fi
5207
5208fi
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5210$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5211CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5212
5213 if
5214 test "x$enable_dependency_tracking" != xno \
5215 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5216 am__fastdepCC_TRUE=
5217 am__fastdepCC_FALSE='#'
5218else
5219 am__fastdepCC_TRUE='#'
5220 am__fastdepCC_FALSE=
5221fi
5222
5223
5224
5225
5226case `pwd` in
5227 *\ * | *\ *)
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5229$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5230esac
5231
5232
5233
5234macro_version='2.4.2'
5235macro_revision='1.3337'
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249ltmain="$ac_aux_dir/ltmain.sh"
5250
5251# Backslashify metacharacters that are still active within
5252# double-quoted strings.
5253sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5254
5255# Same as above, but do not quote variable references.
5256double_quote_subst='s/\(["`\\]\)/\\\1/g'
5257
5258# Sed substitution to delay expansion of an escaped shell variable in a
5259# double_quote_subst'ed string.
5260delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5261
5262# Sed substitution to delay expansion of an escaped single quote.
5263delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5264
5265# Sed substitution to avoid accidental globbing in evaled expressions
5266no_glob_subst='s/\*/\\\*/g'
5267
5268ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5269ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5270ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5271
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5273$as_echo_n "checking how to print strings... " >&6; }
5274# Test print first, because it will be a builtin if present.
5275if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5276 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5277 ECHO='print -r --'
5278elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5279 ECHO='printf %s\n'
5280else
5281 # Use this function as a fallback that always works.
5282 func_fallback_echo ()
5283 {
5284 eval 'cat <<_LTECHO_EOF
5285$1
5286_LTECHO_EOF'
5287 }
5288 ECHO='func_fallback_echo'
5289fi
5290
5291# func_echo_all arg...
5292# Invoke $ECHO with all args, space-separated.
5293func_echo_all ()
5294{
5295 $ECHO ""
5296}
5297
5298case "$ECHO" in
5299 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5300$as_echo "printf" >&6; } ;;
5301 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5302$as_echo "print -r" >&6; } ;;
5303 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5304$as_echo "cat" >&6; } ;;
5305esac
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5321$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5322if ${ac_cv_path_SED+:} false; then :
5323 $as_echo_n "(cached) " >&6
5324else
5325 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5326 for ac_i in 1 2 3 4 5 6 7; do
5327 ac_script="$ac_script$as_nl$ac_script"
5328 done
5329 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5330 { ac_script=; unset ac_script;}
5331 if test -z "$SED"; then
5332 ac_path_SED_found=false
5333 # Loop through the user's path and test for each of PROGNAME-LIST
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335for as_dir in $PATH
5336do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_prog in sed gsed; do
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5342 as_fn_executable_p "$ac_path_SED" || continue
5343# Check for GNU ac_path_SED and select it if it is found.
5344 # Check for GNU $ac_path_SED
5345case `"$ac_path_SED" --version 2>&1` in
5346*GNU*)
5347 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5348*)
5349 ac_count=0
5350 $as_echo_n 0123456789 >"conftest.in"
5351 while :
5352 do
5353 cat "conftest.in" "conftest.in" >"conftest.tmp"
5354 mv "conftest.tmp" "conftest.in"
5355 cp "conftest.in" "conftest.nl"
5356 $as_echo '' >> "conftest.nl"
5357 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5359 as_fn_arith $ac_count + 1 && ac_count=$as_val
5360 if test $ac_count -gt ${ac_path_SED_max-0}; then
5361 # Best one so far, save it but keep looking for a better one
5362 ac_cv_path_SED="$ac_path_SED"
5363 ac_path_SED_max=$ac_count
5364 fi
5365 # 10*(2^10) chars as input seems more than enough
5366 test $ac_count -gt 10 && break
5367 done
5368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5369esac
5370
5371 $ac_path_SED_found && break 3
5372 done
5373 done
5374 done
5375IFS=$as_save_IFS
5376 if test -z "$ac_cv_path_SED"; then
5377 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5378 fi
5379else
5380 ac_cv_path_SED=$SED
5381fi
5382
5383fi
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5385$as_echo "$ac_cv_path_SED" >&6; }
5386 SED="$ac_cv_path_SED"
5387 rm -f conftest.sed
5388
5389test -z "$SED" && SED=sed
5390Xsed="$SED -e 1s/^X//"
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5403$as_echo_n "checking for fgrep... " >&6; }
5404if ${ac_cv_path_FGREP+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406else
5407 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5408 then ac_cv_path_FGREP="$GREP -F"
5409 else
5410 if test -z "$FGREP"; then
5411 ac_path_FGREP_found=false
5412 # Loop through the user's path and test for each of PROGNAME-LIST
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5415do
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_prog in fgrep; do
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5421 as_fn_executable_p "$ac_path_FGREP" || continue
5422# Check for GNU ac_path_FGREP and select it if it is found.
5423 # Check for GNU $ac_path_FGREP
5424case `"$ac_path_FGREP" --version 2>&1` in
5425*GNU*)
5426 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5427*)
5428 ac_count=0
5429 $as_echo_n 0123456789 >"conftest.in"
5430 while :
5431 do
5432 cat "conftest.in" "conftest.in" >"conftest.tmp"
5433 mv "conftest.tmp" "conftest.in"
5434 cp "conftest.in" "conftest.nl"
5435 $as_echo 'FGREP' >> "conftest.nl"
5436 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5438 as_fn_arith $ac_count + 1 && ac_count=$as_val
5439 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5440 # Best one so far, save it but keep looking for a better one
5441 ac_cv_path_FGREP="$ac_path_FGREP"
5442 ac_path_FGREP_max=$ac_count
5443 fi
5444 # 10*(2^10) chars as input seems more than enough
5445 test $ac_count -gt 10 && break
5446 done
5447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5448esac
5449
5450 $ac_path_FGREP_found && break 3
5451 done
5452 done
5453 done
5454IFS=$as_save_IFS
5455 if test -z "$ac_cv_path_FGREP"; then
5456 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5457 fi
5458else
5459 ac_cv_path_FGREP=$FGREP
5460fi
5461
5462 fi
5463fi
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5465$as_echo "$ac_cv_path_FGREP" >&6; }
5466 FGREP="$ac_cv_path_FGREP"
5467
5468
5469test -z "$GREP" && GREP=grep
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489# Check whether --with-gnu-ld was given.
5490if test "${with_gnu_ld+set}" = set; then :
5491 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5492else
5493 with_gnu_ld=no
5494fi
5495
5496ac_prog=ld
5497if test "$GCC" = yes; then
5498 # Check if gcc -print-prog-name=ld gives a path.
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5500$as_echo_n "checking for ld used by $CC... " >&6; }
5501 case $host in
5502 *-*-mingw*)
5503 # gcc leaves a trailing carriage return which upsets mingw
5504 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5505 *)
5506 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5507 esac
5508 case $ac_prog in
5509 # Accept absolute paths.
5510 [\\/]* | ?:[\\/]*)
5511 re_direlt='/[^/][^/]*/\.\./'
5512 # Canonicalize the pathname of ld
5513 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5514 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5515 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5516 done
5517 test -z "$LD" && LD="$ac_prog"
5518 ;;
5519 "")
5520 # If it fails, then pretend we aren't using GCC.
5521 ac_prog=ld
5522 ;;
5523 *)
5524 # If it is relative, then search for the first ld in PATH.
5525 with_gnu_ld=unknown
5526 ;;
5527 esac
5528elif test "$with_gnu_ld" = yes; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5530$as_echo_n "checking for GNU ld... " >&6; }
5531else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5533$as_echo_n "checking for non-GNU ld... " >&6; }
5534fi
5535if ${lt_cv_path_LD+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537else
5538 if test -z "$LD"; then
5539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5540 for ac_dir in $PATH; do
5541 IFS="$lt_save_ifs"
5542 test -z "$ac_dir" && ac_dir=.
5543 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5544 lt_cv_path_LD="$ac_dir/$ac_prog"
5545 # Check to see if the program is GNU ld. I'd rather use --version,
5546 # but apparently some variants of GNU ld only accept -v.
5547 # Break only if it was the GNU/non-GNU ld that we prefer.
5548 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5549 *GNU* | *'with BFD'*)
5550 test "$with_gnu_ld" != no && break
5551 ;;
5552 *)
5553 test "$with_gnu_ld" != yes && break
5554 ;;
5555 esac
5556 fi
5557 done
5558 IFS="$lt_save_ifs"
5559else
5560 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5561fi
5562fi
5563
5564LD="$lt_cv_path_LD"
5565if test -n "$LD"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5567$as_echo "$LD" >&6; }
5568else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570$as_echo "no" >&6; }
5571fi
5572test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5574$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5575if ${lt_cv_prog_gnu_ld+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577else
5578 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5579case `$LD -v 2>&1 </dev/null` in
5580*GNU* | *'with BFD'*)
5581 lt_cv_prog_gnu_ld=yes
5582 ;;
5583*)
5584 lt_cv_prog_gnu_ld=no
5585 ;;
5586esac
5587fi
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5589$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5590with_gnu_ld=$lt_cv_prog_gnu_ld
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5601$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5602if ${lt_cv_path_NM+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604else
5605 if test -n "$NM"; then
5606 # Let the user override the test.
5607 lt_cv_path_NM="$NM"
5608else
5609 lt_nm_to_check="${ac_tool_prefix}nm"
5610 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5611 lt_nm_to_check="$lt_nm_to_check nm"
5612 fi
5613 for lt_tmp_nm in $lt_nm_to_check; do
5614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5615 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5616 IFS="$lt_save_ifs"
5617 test -z "$ac_dir" && ac_dir=.
5618 tmp_nm="$ac_dir/$lt_tmp_nm"
5619 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5620 # Check to see if the nm accepts a BSD-compat flag.
5621 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5622 # nm: unknown option "B" ignored
5623 # Tru64's nm complains that /dev/null is an invalid object file
5624 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5625 */dev/null* | *'Invalid file or object type'*)
5626 lt_cv_path_NM="$tmp_nm -B"
5627 break
5628 ;;
5629 *)
5630 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5631 */dev/null*)
5632 lt_cv_path_NM="$tmp_nm -p"
5633 break
5634 ;;
5635 *)
5636 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5637 continue # so that we can try to find one that supports BSD flags
5638 ;;
5639 esac
5640 ;;
5641 esac
5642 fi
5643 done
5644 IFS="$lt_save_ifs"
5645 done
5646 : ${lt_cv_path_NM=no}
5647fi
5648fi
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5650$as_echo "$lt_cv_path_NM" >&6; }
5651if test "$lt_cv_path_NM" != "no"; then
5652 NM="$lt_cv_path_NM"
5653else
5654 # Didn't find any BSD compatible name lister, look for dumpbin.
5655 if test -n "$DUMPBIN"; then :
5656 # Let the user override the test.
5657 else
5658 if test -n "$ac_tool_prefix"; then
5659 for ac_prog in dumpbin "link -dump"
5660 do
5661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5662set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664$as_echo_n "checking for $ac_word... " >&6; }
5665if ${ac_cv_prog_DUMPBIN+:} false; then :
5666 $as_echo_n "(cached) " >&6
5667else
5668 if test -n "$DUMPBIN"; then
5669 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5670else
5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 break 2
5681 fi
5682done
5683 done
5684IFS=$as_save_IFS
5685
5686fi
5687fi
5688DUMPBIN=$ac_cv_prog_DUMPBIN
5689if test -n "$DUMPBIN"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5691$as_echo "$DUMPBIN" >&6; }
5692else
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694$as_echo "no" >&6; }
5695fi
5696
5697
5698 test -n "$DUMPBIN" && break
5699 done
5700fi
5701if test -z "$DUMPBIN"; then
5702 ac_ct_DUMPBIN=$DUMPBIN
5703 for ac_prog in dumpbin "link -dump"
5704do
5705 # Extract the first word of "$ac_prog", so it can be a program name with args.
5706set dummy $ac_prog; ac_word=$2
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708$as_echo_n "checking for $ac_word... " >&6; }
5709if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5710 $as_echo_n "(cached) " >&6
5711else
5712 if test -n "$ac_ct_DUMPBIN"; then
5713 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5714else
5715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716for as_dir in $PATH
5717do
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 break 2
5725 fi
5726done
5727 done
5728IFS=$as_save_IFS
5729
5730fi
5731fi
5732ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5733if test -n "$ac_ct_DUMPBIN"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5735$as_echo "$ac_ct_DUMPBIN" >&6; }
5736else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738$as_echo "no" >&6; }
5739fi
5740
5741
5742 test -n "$ac_ct_DUMPBIN" && break
5743done
5744
5745 if test "x$ac_ct_DUMPBIN" = x; then
5746 DUMPBIN=":"
5747 else
5748 case $cross_compiling:$ac_tool_warned in
5749yes:)
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5752ac_tool_warned=yes ;;
5753esac
5754 DUMPBIN=$ac_ct_DUMPBIN
5755 fi
5756fi
5757
5758 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5759 *COFF*)
5760 DUMPBIN="$DUMPBIN -symbols"
5761 ;;
5762 *)
5763 DUMPBIN=:
5764 ;;
5765 esac
5766 fi
5767
5768 if test "$DUMPBIN" != ":"; then
5769 NM="$DUMPBIN"
5770 fi
5771fi
5772test -z "$NM" && NM=nm
5773
5774
5775
5776
5777
5778
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5780$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5781if ${lt_cv_nm_interface+:} false; then :
5782 $as_echo_n "(cached) " >&6
5783else
5784 lt_cv_nm_interface="BSD nm"
5785 echo "int some_variable = 0;" > conftest.$ac_ext
5786 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5787 (eval "$ac_compile" 2>conftest.err)
5788 cat conftest.err >&5
5789 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5790 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5791 cat conftest.err >&5
5792 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5793 cat conftest.out >&5
5794 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5795 lt_cv_nm_interface="MS dumpbin"
5796 fi
5797 rm -f conftest*
5798fi
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5800$as_echo "$lt_cv_nm_interface" >&6; }
5801
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5803$as_echo_n "checking whether ln -s works... " >&6; }
5804LN_S=$as_ln_s
5805if test "$LN_S" = "ln -s"; then
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5807$as_echo "yes" >&6; }
5808else
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5810$as_echo "no, using $LN_S" >&6; }
5811fi
5812
5813# find the maximum length of command line arguments
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5815$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5816if ${lt_cv_sys_max_cmd_len+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818else
5819 i=0
5820 teststring="ABCD"
5821
5822 case $build_os in
5823 msdosdjgpp*)
5824 # On DJGPP, this test can blow up pretty badly due to problems in libc
5825 # (any single argument exceeding 2000 bytes causes a buffer overrun
5826 # during glob expansion). Even if it were fixed, the result of this
5827 # check would be larger than it should be.
5828 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5829 ;;
5830
5831 gnu*)
5832 # Under GNU Hurd, this test is not required because there is
5833 # no limit to the length of command line arguments.
5834 # Libtool will interpret -1 as no limit whatsoever
5835 lt_cv_sys_max_cmd_len=-1;
5836 ;;
5837
5838 cygwin* | mingw* | cegcc*)
5839 # On Win9x/ME, this test blows up -- it succeeds, but takes
5840 # about 5 minutes as the teststring grows exponentially.
5841 # Worse, since 9x/ME are not pre-emptively multitasking,
5842 # you end up with a "frozen" computer, even though with patience
5843 # the test eventually succeeds (with a max line length of 256k).
5844 # Instead, let's just punt: use the minimum linelength reported by
5845 # all of the supported platforms: 8192 (on NT/2K/XP).
5846 lt_cv_sys_max_cmd_len=8192;
5847 ;;
5848
5849 mint*)
5850 # On MiNT this can take a long time and run out of memory.
5851 lt_cv_sys_max_cmd_len=8192;
5852 ;;
5853
5854 amigaos*)
5855 # On AmigaOS with pdksh, this test takes hours, literally.
5856 # So we just punt and use a minimum line length of 8192.
5857 lt_cv_sys_max_cmd_len=8192;
5858 ;;
5859
5860 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5861 # This has been around since 386BSD, at least. Likely further.
5862 if test -x /sbin/sysctl; then
5863 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5864 elif test -x /usr/sbin/sysctl; then
5865 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5866 else
5867 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5868 fi
5869 # And add a safety zone
5870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5872 ;;
5873
5874 interix*)
5875 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5876 lt_cv_sys_max_cmd_len=196608
5877 ;;
5878
5879 os2*)
5880 # The test takes a long time on OS/2.
5881 lt_cv_sys_max_cmd_len=8192
5882 ;;
5883
5884 osf*)
5885 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5886 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5887 # nice to cause kernel panics so lets avoid the loop below.
5888 # First set a reasonable default.
5889 lt_cv_sys_max_cmd_len=16384
5890 #
5891 if test -x /sbin/sysconfig; then
5892 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5893 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5894 esac
5895 fi
5896 ;;
5897 sco3.2v5*)
5898 lt_cv_sys_max_cmd_len=102400
5899 ;;
5900 sysv5* | sco5v6* | sysv4.2uw2*)
5901 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5902 if test -n "$kargmax"; then
5903 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5904 else
5905 lt_cv_sys_max_cmd_len=32768
5906 fi
5907 ;;
5908 *)
5909 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5910 if test -n "$lt_cv_sys_max_cmd_len" && \
5911 test undefined != "$lt_cv_sys_max_cmd_len"; then
5912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5914 else
5915 # Make teststring a little bigger before we do anything with it.
5916 # a 1K string should be a reasonable start.
5917 for i in 1 2 3 4 5 6 7 8 ; do
5918 teststring=$teststring$teststring
5919 done
5920 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5921 # If test is not a shell built-in, we'll probably end up computing a
5922 # maximum length that is only half of the actual maximum length, but
5923 # we can't tell.
5924 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5925 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5926 test $i != 17 # 1/2 MB should be enough
5927 do
5928 i=`expr $i + 1`
5929 teststring=$teststring$teststring
5930 done
5931 # Only check the string length outside the loop.
5932 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5933 teststring=
5934 # Add a significant safety factor because C++ compilers can tack on
5935 # massive amounts of additional arguments before passing them to the
5936 # linker. It appears as though 1/2 is a usable value.
5937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5938 fi
5939 ;;
5940 esac
5941
5942fi
5943
5944if test -n $lt_cv_sys_max_cmd_len ; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5946$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5947else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5949$as_echo "none" >&6; }
5950fi
5951max_cmd_len=$lt_cv_sys_max_cmd_len
5952
5953
5954
5955
5956
5957
5958: ${CP="cp -f"}
5959: ${MV="mv -f"}
5960: ${RM="rm -f"}
5961
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5963$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5964# Try some XSI features
5965xsi_shell=no
5966( _lt_dummy="a/b/c"
5967 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5968 = c,a/b,b/c, \
5969 && eval 'test $(( 1 + 1 )) -eq 2 \
5970 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5971 && xsi_shell=yes
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5973$as_echo "$xsi_shell" >&6; }
5974
5975
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5977$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5978lt_shell_append=no
5979( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5980 >/dev/null 2>&1 \
5981 && lt_shell_append=yes
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5983$as_echo "$lt_shell_append" >&6; }
5984
5985
5986if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5987 lt_unset=unset
5988else
5989 lt_unset=false
5990fi
5991
5992
5993
5994
5995
5996# test EBCDIC or ASCII
5997case `echo X|tr X '\101'` in
5998 A) # ASCII based system
5999 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6000 lt_SP2NL='tr \040 \012'
6001 lt_NL2SP='tr \015\012 \040\040'
6002 ;;
6003 *) # EBCDIC based system
6004 lt_SP2NL='tr \100 \n'
6005 lt_NL2SP='tr \r\n \100\100'
6006 ;;
6007esac
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6018$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6019if ${lt_cv_to_host_file_cmd+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021else
6022 case $host in
6023 *-*-mingw* )
6024 case $build in
6025 *-*-mingw* ) # actually msys
6026 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6027 ;;
6028 *-*-cygwin* )
6029 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6030 ;;
6031 * ) # otherwise, assume *nix
6032 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6033 ;;
6034 esac
6035 ;;
6036 *-*-cygwin* )
6037 case $build in
6038 *-*-mingw* ) # actually msys
6039 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6040 ;;
6041 *-*-cygwin* )
6042 lt_cv_to_host_file_cmd=func_convert_file_noop
6043 ;;
6044 * ) # otherwise, assume *nix
6045 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6046 ;;
6047 esac
6048 ;;
6049 * ) # unhandled hosts (and "normal" native builds)
6050 lt_cv_to_host_file_cmd=func_convert_file_noop
6051 ;;
6052esac
6053
6054fi
6055
6056to_host_file_cmd=$lt_cv_to_host_file_cmd
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6058$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6059
6060
6061
6062
6063
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6065$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6066if ${lt_cv_to_tool_file_cmd+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068else
6069 #assume ordinary cross tools, or native build.
6070lt_cv_to_tool_file_cmd=func_convert_file_noop
6071case $host in
6072 *-*-mingw* )
6073 case $build in
6074 *-*-mingw* ) # actually msys
6075 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6076 ;;
6077 esac
6078 ;;
6079esac
6080
6081fi
6082
6083to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6085$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6086
6087
6088
6089
6090
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6092$as_echo_n "checking for $LD option to reload object files... " >&6; }
6093if ${lt_cv_ld_reload_flag+:} false; then :
6094 $as_echo_n "(cached) " >&6
6095else
6096 lt_cv_ld_reload_flag='-r'
6097fi
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6099$as_echo "$lt_cv_ld_reload_flag" >&6; }
6100reload_flag=$lt_cv_ld_reload_flag
6101case $reload_flag in
6102"" | " "*) ;;
6103*) reload_flag=" $reload_flag" ;;
6104esac
6105reload_cmds='$LD$reload_flag -o $output$reload_objs'
6106case $host_os in
6107 cygwin* | mingw* | pw32* | cegcc*)
6108 if test "$GCC" != yes; then
6109 reload_cmds=false
6110 fi
6111 ;;
6112 darwin*)
6113 if test "$GCC" = yes; then
6114 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6115 else
6116 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6117 fi
6118 ;;
6119esac
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129if test -n "$ac_tool_prefix"; then
6130 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6131set dummy ${ac_tool_prefix}objdump; ac_word=$2
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133$as_echo_n "checking for $ac_word... " >&6; }
6134if ${ac_cv_prog_OBJDUMP+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136else
6137 if test -n "$OBJDUMP"; then
6138 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151done
6152 done
6153IFS=$as_save_IFS
6154
6155fi
6156fi
6157OBJDUMP=$ac_cv_prog_OBJDUMP
6158if test -n "$OBJDUMP"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6160$as_echo "$OBJDUMP" >&6; }
6161else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163$as_echo "no" >&6; }
6164fi
6165
6166
6167fi
6168if test -z "$ac_cv_prog_OBJDUMP"; then
6169 ac_ct_OBJDUMP=$OBJDUMP
6170 # Extract the first word of "objdump", so it can be a program name with args.
6171set dummy objdump; ac_word=$2
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173$as_echo_n "checking for $ac_word... " >&6; }
6174if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6175 $as_echo_n "(cached) " >&6
6176else
6177 if test -n "$ac_ct_OBJDUMP"; then
6178 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191done
6192 done
6193IFS=$as_save_IFS
6194
6195fi
6196fi
6197ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6198if test -n "$ac_ct_OBJDUMP"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6200$as_echo "$ac_ct_OBJDUMP" >&6; }
6201else
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203$as_echo "no" >&6; }
6204fi
6205
6206 if test "x$ac_ct_OBJDUMP" = x; then
6207 OBJDUMP="false"
6208 else
6209 case $cross_compiling:$ac_tool_warned in
6210yes:)
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213ac_tool_warned=yes ;;
6214esac
6215 OBJDUMP=$ac_ct_OBJDUMP
6216 fi
6217else
6218 OBJDUMP="$ac_cv_prog_OBJDUMP"
6219fi
6220
6221test -z "$OBJDUMP" && OBJDUMP=objdump
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6232$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6233if ${lt_cv_deplibs_check_method+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235else
6236 lt_cv_file_magic_cmd='$MAGIC_CMD'
6237lt_cv_file_magic_test_file=
6238lt_cv_deplibs_check_method='unknown'
6239# Need to set the preceding variable on all platforms that support
6240# interlibrary dependencies.
6241# 'none' -- dependencies not supported.
6242# `unknown' -- same as none, but documents that we really don't know.
6243# 'pass_all' -- all dependencies passed with no checks.
6244# 'test_compile' -- check by making test program.
6245# 'file_magic [[regex]]' -- check by looking for files in library path
6246# which responds to the $file_magic_cmd with a given extended regex.
6247# If you have `file' or equivalent on your system and you're not sure
6248# whether `pass_all' will *always* work, you probably want this one.
6249
6250case $host_os in
6251aix[4-9]*)
6252 lt_cv_deplibs_check_method=pass_all
6253 ;;
6254
6255beos*)
6256 lt_cv_deplibs_check_method=pass_all
6257 ;;
6258
6259bsdi[45]*)
6260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6261 lt_cv_file_magic_cmd='/usr/bin/file -L'
6262 lt_cv_file_magic_test_file=/shlib/libc.so
6263 ;;
6264
6265cygwin*)
6266 # func_win32_libid is a shell function defined in ltmain.sh
6267 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6268 lt_cv_file_magic_cmd='func_win32_libid'
6269 ;;
6270
6271mingw* | pw32*)
6272 # Base MSYS/MinGW do not provide the 'file' command needed by
6273 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6274 # unless we find 'file', for example because we are cross-compiling.
6275 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6276 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6277 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6278 lt_cv_file_magic_cmd='func_win32_libid'
6279 else
6280 # Keep this pattern in sync with the one in func_win32_libid.
6281 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6282 lt_cv_file_magic_cmd='$OBJDUMP -f'
6283 fi
6284 ;;
6285
6286cegcc*)
6287 # use the weaker test based on 'objdump'. See mingw*.
6288 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6289 lt_cv_file_magic_cmd='$OBJDUMP -f'
6290 ;;
6291
6292darwin* | rhapsody*)
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
6295
6296freebsd* | dragonfly*)
6297 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6298 case $host_cpu in
6299 i*86 )
6300 # Not sure whether the presence of OpenBSD here was a mistake.
6301 # Let's accept both of them until this is cleared up.
6302 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6303 lt_cv_file_magic_cmd=/usr/bin/file
6304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6305 ;;
6306 esac
6307 else
6308 lt_cv_deplibs_check_method=pass_all
6309 fi
6310 ;;
6311
6312haiku*)
6313 lt_cv_deplibs_check_method=pass_all
6314 ;;
6315
6316hpux10.20* | hpux11*)
6317 lt_cv_file_magic_cmd=/usr/bin/file
6318 case $host_cpu in
6319 ia64*)
6320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6321 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6322 ;;
6323 hppa*64*)
6324 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]'
6325 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6326 ;;
6327 *)
6328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6329 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6330 ;;
6331 esac
6332 ;;
6333
6334interix[3-9]*)
6335 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6337 ;;
6338
6339irix5* | irix6* | nonstopux*)
6340 case $LD in
6341 *-32|*"-32 ") libmagic=32-bit;;
6342 *-n32|*"-n32 ") libmagic=N32;;
6343 *-64|*"-64 ") libmagic=64-bit;;
6344 *) libmagic=never-match;;
6345 esac
6346 lt_cv_deplibs_check_method=pass_all
6347 ;;
6348
6349# This must be glibc/ELF.
6350linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6351 lt_cv_deplibs_check_method=pass_all
6352 ;;
6353
6354netbsd* | netbsdelf*-gnu)
6355 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6357 else
6358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6359 fi
6360 ;;
6361
6362newos6*)
6363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6364 lt_cv_file_magic_cmd=/usr/bin/file
6365 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6366 ;;
6367
6368*nto* | *qnx*)
6369 lt_cv_deplibs_check_method=pass_all
6370 ;;
6371
6372openbsd*)
6373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6375 else
6376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6377 fi
6378 ;;
6379
6380osf3* | osf4* | osf5*)
6381 lt_cv_deplibs_check_method=pass_all
6382 ;;
6383
6384rdos*)
6385 lt_cv_deplibs_check_method=pass_all
6386 ;;
6387
6388solaris*)
6389 lt_cv_deplibs_check_method=pass_all
6390 ;;
6391
6392sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6393 lt_cv_deplibs_check_method=pass_all
6394 ;;
6395
6396sysv4 | sysv4.3*)
6397 case $host_vendor in
6398 motorola)
6399 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]'
6400 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6401 ;;
6402 ncr)
6403 lt_cv_deplibs_check_method=pass_all
6404 ;;
6405 sequent)
6406 lt_cv_file_magic_cmd='/bin/file'
6407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6408 ;;
6409 sni)
6410 lt_cv_file_magic_cmd='/bin/file'
6411 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6412 lt_cv_file_magic_test_file=/lib/libc.so
6413 ;;
6414 siemens)
6415 lt_cv_deplibs_check_method=pass_all
6416 ;;
6417 pc)
6418 lt_cv_deplibs_check_method=pass_all
6419 ;;
6420 esac
6421 ;;
6422
6423tpf*)
6424 lt_cv_deplibs_check_method=pass_all
6425 ;;
6426esac
6427
6428fi
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6430$as_echo "$lt_cv_deplibs_check_method" >&6; }
6431
6432file_magic_glob=
6433want_nocaseglob=no
6434if test "$build" = "$host"; then
6435 case $host_os in
6436 mingw* | pw32*)
6437 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6438 want_nocaseglob=yes
6439 else
6440 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6441 fi
6442 ;;
6443 esac
6444fi
6445
6446file_magic_cmd=$lt_cv_file_magic_cmd
6447deplibs_check_method=$lt_cv_deplibs_check_method
6448test -z "$deplibs_check_method" && deplibs_check_method=unknown
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471if test -n "$ac_tool_prefix"; then
6472 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6473set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475$as_echo_n "checking for $ac_word... " >&6; }
6476if ${ac_cv_prog_DLLTOOL+:} false; then :
6477 $as_echo_n "(cached) " >&6
6478else
6479 if test -n "$DLLTOOL"; then
6480 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6481else
6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483for as_dir in $PATH
6484do
6485 IFS=$as_save_IFS
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 break 2
6492 fi
6493done
6494 done
6495IFS=$as_save_IFS
6496
6497fi
6498fi
6499DLLTOOL=$ac_cv_prog_DLLTOOL
6500if test -n "$DLLTOOL"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6502$as_echo "$DLLTOOL" >&6; }
6503else
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505$as_echo "no" >&6; }
6506fi
6507
6508
6509fi
6510if test -z "$ac_cv_prog_DLLTOOL"; then
6511 ac_ct_DLLTOOL=$DLLTOOL
6512 # Extract the first word of "dlltool", so it can be a program name with args.
6513set dummy dlltool; ac_word=$2
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515$as_echo_n "checking for $ac_word... " >&6; }
6516if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6517 $as_echo_n "(cached) " >&6
6518else
6519 if test -n "$ac_ct_DLLTOOL"; then
6520 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6521else
6522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523for as_dir in $PATH
6524do
6525 IFS=$as_save_IFS
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6529 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 break 2
6532 fi
6533done
6534 done
6535IFS=$as_save_IFS
6536
6537fi
6538fi
6539ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6540if test -n "$ac_ct_DLLTOOL"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6542$as_echo "$ac_ct_DLLTOOL" >&6; }
6543else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545$as_echo "no" >&6; }
6546fi
6547
6548 if test "x$ac_ct_DLLTOOL" = x; then
6549 DLLTOOL="false"
6550 else
6551 case $cross_compiling:$ac_tool_warned in
6552yes:)
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555ac_tool_warned=yes ;;
6556esac
6557 DLLTOOL=$ac_ct_DLLTOOL
6558 fi
6559else
6560 DLLTOOL="$ac_cv_prog_DLLTOOL"
6561fi
6562
6563test -z "$DLLTOOL" && DLLTOOL=dlltool
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6575$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6576if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6577 $as_echo_n "(cached) " >&6
6578else
6579 lt_cv_sharedlib_from_linklib_cmd='unknown'
6580
6581case $host_os in
6582cygwin* | mingw* | pw32* | cegcc*)
6583 # two different shell functions defined in ltmain.sh
6584 # decide which to use based on capabilities of $DLLTOOL
6585 case `$DLLTOOL --help 2>&1` in
6586 *--identify-strict*)
6587 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6588 ;;
6589 *)
6590 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6591 ;;
6592 esac
6593 ;;
6594*)
6595 # fallback: assume linklib IS sharedlib
6596 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6597 ;;
6598esac
6599
6600fi
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6602$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6603sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6604test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6605
6606
6607
6608
6609
6610
6611
6612if test -n "$ac_tool_prefix"; then
6613 for ac_prog in ar
6614 do
6615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6616set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618$as_echo_n "checking for $ac_word... " >&6; }
6619if ${ac_cv_prog_AR+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621else
6622 if test -n "$AR"; then
6623 ac_cv_prog_AR="$AR" # Let the user override the test.
6624else
6625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6635 fi
6636done
6637 done
6638IFS=$as_save_IFS
6639
6640fi
6641fi
6642AR=$ac_cv_prog_AR
6643if test -n "$AR"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6645$as_echo "$AR" >&6; }
6646else
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648$as_echo "no" >&6; }
6649fi
6650
6651
6652 test -n "$AR" && break
6653 done
6654fi
6655if test -z "$AR"; then
6656 ac_ct_AR=$AR
6657 for ac_prog in ar
6658do
6659 # Extract the first word of "$ac_prog", so it can be a program name with args.
6660set dummy $ac_prog; ac_word=$2
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662$as_echo_n "checking for $ac_word... " >&6; }
6663if ${ac_cv_prog_ac_ct_AR+:} false; then :
6664 $as_echo_n "(cached) " >&6
6665else
6666 if test -n "$ac_ct_AR"; then
6667 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6668else
6669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670for as_dir in $PATH
6671do
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676 ac_cv_prog_ac_ct_AR="$ac_prog"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 break 2
6679 fi
6680done
6681 done
6682IFS=$as_save_IFS
6683
6684fi
6685fi
6686ac_ct_AR=$ac_cv_prog_ac_ct_AR
6687if test -n "$ac_ct_AR"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6689$as_echo "$ac_ct_AR" >&6; }
6690else
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692$as_echo "no" >&6; }
6693fi
6694
6695
6696 test -n "$ac_ct_AR" && break
6697done
6698
6699 if test "x$ac_ct_AR" = x; then
6700 AR="false"
6701 else
6702 case $cross_compiling:$ac_tool_warned in
6703yes:)
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706ac_tool_warned=yes ;;
6707esac
6708 AR=$ac_ct_AR
6709 fi
6710fi
6711
6712: ${AR=ar}
6713: ${AR_FLAGS=cru}
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6726$as_echo_n "checking for archiver @FILE support... " >&6; }
6727if ${lt_cv_ar_at_file+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729else
6730 lt_cv_ar_at_file=no
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732/* end confdefs.h. */
6733
6734int
6735main ()
6736{
6737
6738 ;
6739 return 0;
6740}
6741_ACEOF
6742if ac_fn_c_try_compile "$LINENO"; then :
6743 echo conftest.$ac_objext > conftest.lst
6744 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6746 (eval $lt_ar_try) 2>&5
6747 ac_status=$?
6748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749 test $ac_status = 0; }
6750 if test "$ac_status" -eq 0; then
6751 # Ensure the archiver fails upon bogus file names.
6752 rm -f conftest.$ac_objext libconftest.a
6753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6754 (eval $lt_ar_try) 2>&5
6755 ac_status=$?
6756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6757 test $ac_status = 0; }
6758 if test "$ac_status" -ne 0; then
6759 lt_cv_ar_at_file=@
6760 fi
6761 fi
6762 rm -f conftest.* libconftest.a
6763
6764fi
6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766
6767fi
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6769$as_echo "$lt_cv_ar_at_file" >&6; }
6770
6771if test "x$lt_cv_ar_at_file" = xno; then
6772 archiver_list_spec=
6773else
6774 archiver_list_spec=$lt_cv_ar_at_file
6775fi
6776
6777
6778
6779
6780
6781
6782
6783if test -n "$ac_tool_prefix"; then
6784 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6785set dummy ${ac_tool_prefix}strip; 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; }
6788if ${ac_cv_prog_STRIP+:} false; then :
6789 $as_echo_n "(cached) " >&6
6790else
6791 if test -n "$STRIP"; then
6792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6793else
6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
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_STRIP="${ac_tool_prefix}strip"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6804 fi
6805done
6806 done
6807IFS=$as_save_IFS
6808
6809fi
6810fi
6811STRIP=$ac_cv_prog_STRIP
6812if test -n "$STRIP"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6814$as_echo "$STRIP" >&6; }
6815else
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817$as_echo "no" >&6; }
6818fi
6819
6820
6821fi
6822if test -z "$ac_cv_prog_STRIP"; then
6823 ac_ct_STRIP=$STRIP
6824 # Extract the first word of "strip", so it can be a program name with args.
6825set dummy strip; ac_word=$2
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827$as_echo_n "checking for $ac_word... " >&6; }
6828if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830else
6831 if test -n "$ac_ct_STRIP"; then
6832 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6833else
6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6841 ac_cv_prog_ac_ct_STRIP="strip"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6844 fi
6845done
6846 done
6847IFS=$as_save_IFS
6848
6849fi
6850fi
6851ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6852if test -n "$ac_ct_STRIP"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6854$as_echo "$ac_ct_STRIP" >&6; }
6855else
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857$as_echo "no" >&6; }
6858fi
6859
6860 if test "x$ac_ct_STRIP" = x; then
6861 STRIP=":"
6862 else
6863 case $cross_compiling:$ac_tool_warned in
6864yes:)
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867ac_tool_warned=yes ;;
6868esac
6869 STRIP=$ac_ct_STRIP
6870 fi
6871else
6872 STRIP="$ac_cv_prog_STRIP"
6873fi
6874
6875test -z "$STRIP" && STRIP=:
6876
6877
6878
6879
6880
6881
6882if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6884set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886$as_echo_n "checking for $ac_word... " >&6; }
6887if ${ac_cv_prog_RANLIB+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889else
6890 if test -n "$RANLIB"; then
6891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6892else
6893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894for as_dir in $PATH
6895do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904done
6905 done
6906IFS=$as_save_IFS
6907
6908fi
6909fi
6910RANLIB=$ac_cv_prog_RANLIB
6911if test -n "$RANLIB"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6913$as_echo "$RANLIB" >&6; }
6914else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916$as_echo "no" >&6; }
6917fi
6918
6919
6920fi
6921if test -z "$ac_cv_prog_RANLIB"; then
6922 ac_ct_RANLIB=$RANLIB
6923 # Extract the first word of "ranlib", so it can be a program name with args.
6924set dummy ranlib; ac_word=$2
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926$as_echo_n "checking for $ac_word... " >&6; }
6927if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6928 $as_echo_n "(cached) " >&6
6929else
6930 if test -n "$ac_ct_RANLIB"; then
6931 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6932else
6933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934for as_dir in $PATH
6935do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_ac_ct_RANLIB="ranlib"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944done
6945 done
6946IFS=$as_save_IFS
6947
6948fi
6949fi
6950ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6951if test -n "$ac_ct_RANLIB"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6953$as_echo "$ac_ct_RANLIB" >&6; }
6954else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956$as_echo "no" >&6; }
6957fi
6958
6959 if test "x$ac_ct_RANLIB" = x; then
6960 RANLIB=":"
6961 else
6962 case $cross_compiling:$ac_tool_warned in
6963yes:)
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966ac_tool_warned=yes ;;
6967esac
6968 RANLIB=$ac_ct_RANLIB
6969 fi
6970else
6971 RANLIB="$ac_cv_prog_RANLIB"
6972fi
6973
6974test -z "$RANLIB" && RANLIB=:
6975
6976
6977
6978
6979
6980
6981# Determine commands to create old-style static archives.
6982old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6983old_postinstall_cmds='chmod 644 $oldlib'
6984old_postuninstall_cmds=
6985
6986if test -n "$RANLIB"; then
6987 case $host_os in
6988 openbsd*)
6989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6990 ;;
6991 *)
6992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6993 ;;
6994 esac
6995 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6996fi
6997
6998case $host_os in
6999 darwin*)
7000 lock_old_archive_extraction=yes ;;
7001 *)
7002 lock_old_archive_extraction=no ;;
7003esac
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043# If no C compiler was specified, use CC.
7044LTCC=${LTCC-"$CC"}
7045
7046# If no C compiler flags were specified, use CFLAGS.
7047LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7048
7049# Allow CC to be a program name with arguments.
7050compiler=$CC
7051
7052
7053# Check for command to grab the raw symbol name followed by C symbol from nm.
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7055$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7056if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7057 $as_echo_n "(cached) " >&6
7058else
7059
7060# These are sane defaults that work on at least a few old systems.
7061# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7062
7063# Character class describing NM global symbol codes.
7064symcode='[BCDEGRST]'
7065
7066# Regexp to match symbols that can be accessed directly from C.
7067sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7068
7069# Define system-specific variables.
7070case $host_os in
7071aix*)
7072 symcode='[BCDT]'
7073 ;;
7074cygwin* | mingw* | pw32* | cegcc*)
7075 symcode='[ABCDGISTW]'
7076 ;;
7077hpux*)
7078 if test "$host_cpu" = ia64; then
7079 symcode='[ABCDEGRST]'
7080 fi
7081 ;;
7082irix* | nonstopux*)
7083 symcode='[BCDEGRST]'
7084 ;;
7085osf*)
7086 symcode='[BCDEGQRST]'
7087 ;;
7088solaris*)
7089 symcode='[BDRT]'
7090 ;;
7091sco3.2v5*)
7092 symcode='[DT]'
7093 ;;
7094sysv4.2uw2*)
7095 symcode='[DT]'
7096 ;;
7097sysv5* | sco5v6* | unixware* | OpenUNIX*)
7098 symcode='[ABDT]'
7099 ;;
7100sysv4)
7101 symcode='[DFNSTU]'
7102 ;;
7103esac
7104
7105# If we're using GNU nm, then use its standard symbol codes.
7106case `$NM -V 2>&1` in
7107*GNU* | *'with BFD'*)
7108 symcode='[ABCDGIRSTW]' ;;
7109esac
7110
7111# Transform an extracted symbol line into a proper C declaration.
7112# Some systems (esp. on ia64) link data and code symbols differently,
7113# so use this general approach.
7114lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7115
7116# Transform an extracted symbol line into symbol name and symbol address
7117lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7118lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7119
7120# Handle CRLF in mingw tool chain
7121opt_cr=
7122case $build_os in
7123mingw*)
7124 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7125 ;;
7126esac
7127
7128# Try without a prefix underscore, then with it.
7129for ac_symprfx in "" "_"; do
7130
7131 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7132 symxfrm="\\1 $ac_symprfx\\2 \\2"
7133
7134 # Write the raw and C identifiers.
7135 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7136 # Fake it for dumpbin and say T for any non-static function
7137 # and D for any global variable.
7138 # Also find C++ and __fastcall symbols from MSVC++,
7139 # which start with @ or ?.
7140 lt_cv_sys_global_symbol_pipe="$AWK '"\
7141" {last_section=section; section=\$ 3};"\
7142" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7143" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7144" \$ 0!~/External *\|/{next};"\
7145" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7146" {if(hide[section]) next};"\
7147" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7148" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7149" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7150" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7151" ' prfx=^$ac_symprfx"
7152 else
7153 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7154 fi
7155 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7156
7157 # Check to see that the pipe works correctly.
7158 pipe_works=no
7159
7160 rm -f conftest*
7161 cat > conftest.$ac_ext <<_LT_EOF
7162#ifdef __cplusplus
7163extern "C" {
7164#endif
7165char nm_test_var;
7166void nm_test_func(void);
7167void nm_test_func(void){}
7168#ifdef __cplusplus
7169}
7170#endif
7171int main(){nm_test_var='a';nm_test_func();return(0);}
7172_LT_EOF
7173
7174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7175 (eval $ac_compile) 2>&5
7176 ac_status=$?
7177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7178 test $ac_status = 0; }; then
7179 # Now try to grab the symbols.
7180 nlist=conftest.nm
7181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7182 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7183 ac_status=$?
7184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7185 test $ac_status = 0; } && test -s "$nlist"; then
7186 # Try sorting and uniquifying the output.
7187 if sort "$nlist" | uniq > "$nlist"T; then
7188 mv -f "$nlist"T "$nlist"
7189 else
7190 rm -f "$nlist"T
7191 fi
7192
7193 # Make sure that we snagged all the symbols we need.
7194 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7195 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7196 cat <<_LT_EOF > conftest.$ac_ext
7197/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7198#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7199/* DATA imports from DLLs on WIN32 con't be const, because runtime
7200 relocations are performed -- see ld's documentation on pseudo-relocs. */
7201# define LT_DLSYM_CONST
7202#elif defined(__osf__)
7203/* This system does not cope well with relocations in const data. */
7204# define LT_DLSYM_CONST
7205#else
7206# define LT_DLSYM_CONST const
7207#endif
7208
7209#ifdef __cplusplus
7210extern "C" {
7211#endif
7212
7213_LT_EOF
7214 # Now generate the symbol file.
7215 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7216
7217 cat <<_LT_EOF >> conftest.$ac_ext
7218
7219/* The mapping between symbol names and symbols. */
7220LT_DLSYM_CONST struct {
7221 const char *name;
7222 void *address;
7223}
7224lt__PROGRAM__LTX_preloaded_symbols[] =
7225{
7226 { "@PROGRAM@", (void *) 0 },
7227_LT_EOF
7228 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7229 cat <<\_LT_EOF >> conftest.$ac_ext
7230 {0, (void *) 0}
7231};
7232
7233/* This works around a problem in FreeBSD linker */
7234#ifdef FREEBSD_WORKAROUND
7235static const void *lt_preloaded_setup() {
7236 return lt__PROGRAM__LTX_preloaded_symbols;
7237}
7238#endif
7239
7240#ifdef __cplusplus
7241}
7242#endif
7243_LT_EOF
7244 # Now try linking the two files.
7245 mv conftest.$ac_objext conftstm.$ac_objext
7246 lt_globsym_save_LIBS=$LIBS
7247 lt_globsym_save_CFLAGS=$CFLAGS
7248 LIBS="conftstm.$ac_objext"
7249 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7251 (eval $ac_link) 2>&5
7252 ac_status=$?
7253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7255 pipe_works=yes
7256 fi
7257 LIBS=$lt_globsym_save_LIBS
7258 CFLAGS=$lt_globsym_save_CFLAGS
7259 else
7260 echo "cannot find nm_test_func in $nlist" >&5
7261 fi
7262 else
7263 echo "cannot find nm_test_var in $nlist" >&5
7264 fi
7265 else
7266 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7267 fi
7268 else
7269 echo "$progname: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7271 fi
7272 rm -rf conftest* conftst*
7273
7274 # Do not use the global_symbol_pipe unless it works.
7275 if test "$pipe_works" = yes; then
7276 break
7277 else
7278 lt_cv_sys_global_symbol_pipe=
7279 fi
7280done
7281
7282fi
7283
7284if test -z "$lt_cv_sys_global_symbol_pipe"; then
7285 lt_cv_sys_global_symbol_to_cdecl=
7286fi
7287if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7289$as_echo "failed" >&6; }
7290else
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7292$as_echo "ok" >&6; }
7293fi
7294
7295# Response file support.
7296if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7297 nm_file_list_spec='@'
7298elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7299 nm_file_list_spec='@'
7300fi
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7329$as_echo_n "checking for sysroot... " >&6; }
7330
7331# Check whether --with-sysroot was given.
7332if test "${with_sysroot+set}" = set; then :
7333 withval=$with_sysroot;
7334else
7335 with_sysroot=no
7336fi
7337
7338
7339lt_sysroot=
7340case ${with_sysroot} in #(
7341 yes)
7342 if test "$GCC" = yes; then
7343 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7344 fi
7345 ;; #(
7346 /*)
7347 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7348 ;; #(
7349 no|'')
7350 ;; #(
7351 *)
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7353$as_echo "${with_sysroot}" >&6; }
7354 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7355 ;;
7356esac
7357
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7359$as_echo "${lt_sysroot:-no}" >&6; }
7360
7361
7362
7363
7364
7365# Check whether --enable-libtool-lock was given.
7366if test "${enable_libtool_lock+set}" = set; then :
7367 enableval=$enable_libtool_lock;
7368fi
7369
7370test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7371
7372# Some flags need to be propagated to the compiler or linker for good
7373# libtool support.
7374case $host in
7375ia64-*-hpux*)
7376 # Find out which ABI we are using.
7377 echo 'int i;' > conftest.$ac_ext
7378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7379 (eval $ac_compile) 2>&5
7380 ac_status=$?
7381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7382 test $ac_status = 0; }; then
7383 case `/usr/bin/file conftest.$ac_objext` in
7384 *ELF-32*)
7385 HPUX_IA64_MODE="32"
7386 ;;
7387 *ELF-64*)
7388 HPUX_IA64_MODE="64"
7389 ;;
7390 esac
7391 fi
7392 rm -rf conftest*
7393 ;;
7394*-*-irix6*)
7395 # Find out which ABI we are using.
7396 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7398 (eval $ac_compile) 2>&5
7399 ac_status=$?
7400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7401 test $ac_status = 0; }; then
7402 if test "$lt_cv_prog_gnu_ld" = yes; then
7403 case `/usr/bin/file conftest.$ac_objext` in
7404 *32-bit*)
7405 LD="${LD-ld} -melf32bsmip"
7406 ;;
7407 *N32*)
7408 LD="${LD-ld} -melf32bmipn32"
7409 ;;
7410 *64-bit*)
7411 LD="${LD-ld} -melf64bmip"
7412 ;;
7413 esac
7414 else
7415 case `/usr/bin/file conftest.$ac_objext` in
7416 *32-bit*)
7417 LD="${LD-ld} -32"
7418 ;;
7419 *N32*)
7420 LD="${LD-ld} -n32"
7421 ;;
7422 *64-bit*)
7423 LD="${LD-ld} -64"
7424 ;;
7425 esac
7426 fi
7427 fi
7428 rm -rf conftest*
7429 ;;
7430
7431x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7432s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7433 # Find out which ABI we are using.
7434 echo 'int i;' > conftest.$ac_ext
7435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7436 (eval $ac_compile) 2>&5
7437 ac_status=$?
7438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7439 test $ac_status = 0; }; then
7440 case `/usr/bin/file conftest.o` in
7441 *32-bit*)
7442 case $host in
7443 x86_64-*kfreebsd*-gnu)
7444 LD="${LD-ld} -m elf_i386_fbsd"
7445 ;;
7446 x86_64-*linux*)
7447 case `/usr/bin/file conftest.o` in
7448 *x86-64*)
7449 LD="${LD-ld} -m elf32_x86_64"
7450 ;;
7451 *)
7452 LD="${LD-ld} -m elf_i386"
7453 ;;
7454 esac
7455 ;;
7456 powerpc64le-*)
7457 LD="${LD-ld} -m elf32lppclinux"
7458 ;;
7459 powerpc64-*)
7460 LD="${LD-ld} -m elf32ppclinux"
7461 ;;
7462 s390x-*linux*)
7463 LD="${LD-ld} -m elf_s390"
7464 ;;
7465 sparc64-*linux*)
7466 LD="${LD-ld} -m elf32_sparc"
7467 ;;
7468 esac
7469 ;;
7470 *64-bit*)
7471 case $host in
7472 x86_64-*kfreebsd*-gnu)
7473 LD="${LD-ld} -m elf_x86_64_fbsd"
7474 ;;
7475 x86_64-*linux*)
7476 LD="${LD-ld} -m elf_x86_64"
7477 ;;
7478 powerpcle-*)
7479 LD="${LD-ld} -m elf64lppc"
7480 ;;
7481 powerpc-*)
7482 LD="${LD-ld} -m elf64ppc"
7483 ;;
7484 s390*-*linux*|s390*-*tpf*)
7485 LD="${LD-ld} -m elf64_s390"
7486 ;;
7487 sparc*-*linux*)
7488 LD="${LD-ld} -m elf64_sparc"
7489 ;;
7490 esac
7491 ;;
7492 esac
7493 fi
7494 rm -rf conftest*
7495 ;;
7496
7497*-*-sco3.2v5*)
7498 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7499 SAVE_CFLAGS="$CFLAGS"
7500 CFLAGS="$CFLAGS -belf"
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7502$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7503if ${lt_cv_cc_needs_belf+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505else
7506 ac_ext=c
7507ac_cpp='$CPP $CPPFLAGS'
7508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511
7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513/* end confdefs.h. */
7514
7515int
7516main ()
7517{
7518
7519 ;
7520 return 0;
7521}
7522_ACEOF
7523if ac_fn_c_try_link "$LINENO"; then :
7524 lt_cv_cc_needs_belf=yes
7525else
7526 lt_cv_cc_needs_belf=no
7527fi
7528rm -f core conftest.err conftest.$ac_objext \
7529 conftest$ac_exeext conftest.$ac_ext
7530 ac_ext=c
7531ac_cpp='$CPP $CPPFLAGS'
7532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7534ac_compiler_gnu=$ac_cv_c_compiler_gnu
7535
7536fi
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7538$as_echo "$lt_cv_cc_needs_belf" >&6; }
7539 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7540 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7541 CFLAGS="$SAVE_CFLAGS"
7542 fi
7543 ;;
7544*-*solaris*)
7545 # Find out which ABI we are using.
7546 echo 'int i;' > conftest.$ac_ext
7547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7548 (eval $ac_compile) 2>&5
7549 ac_status=$?
7550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551 test $ac_status = 0; }; then
7552 case `/usr/bin/file conftest.o` in
7553 *64-bit*)
7554 case $lt_cv_prog_gnu_ld in
7555 yes*)
7556 case $host in
7557 i?86-*-solaris*)
7558 LD="${LD-ld} -m elf_x86_64"
7559 ;;
7560 sparc*-*-solaris*)
7561 LD="${LD-ld} -m elf64_sparc"
7562 ;;
7563 esac
7564 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7565 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7566 LD="${LD-ld}_sol2"
7567 fi
7568 ;;
7569 *)
7570 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7571 LD="${LD-ld} -64"
7572 fi
7573 ;;
7574 esac
7575 ;;
7576 esac
7577 fi
7578 rm -rf conftest*
7579 ;;
7580esac
7581
7582need_locks="$enable_libtool_lock"
7583
7584if test -n "$ac_tool_prefix"; then
7585 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7586set dummy ${ac_tool_prefix}mt; ac_word=$2
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588$as_echo_n "checking for $ac_word... " >&6; }
7589if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591else
7592 if test -n "$MANIFEST_TOOL"; then
7593 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7594else
7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7605 fi
7606done
7607 done
7608IFS=$as_save_IFS
7609
7610fi
7611fi
7612MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7613if test -n "$MANIFEST_TOOL"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7615$as_echo "$MANIFEST_TOOL" >&6; }
7616else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618$as_echo "no" >&6; }
7619fi
7620
7621
7622fi
7623if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7624 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7625 # Extract the first word of "mt", so it can be a program name with args.
7626set dummy mt; ac_word=$2
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628$as_echo_n "checking for $ac_word... " >&6; }
7629if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631else
7632 if test -n "$ac_ct_MANIFEST_TOOL"; then
7633 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7634else
7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 break 2
7645 fi
7646done
7647 done
7648IFS=$as_save_IFS
7649
7650fi
7651fi
7652ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7653if test -n "$ac_ct_MANIFEST_TOOL"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7655$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7656else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658$as_echo "no" >&6; }
7659fi
7660
7661 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7662 MANIFEST_TOOL=":"
7663 else
7664 case $cross_compiling:$ac_tool_warned in
7665yes:)
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668ac_tool_warned=yes ;;
7669esac
7670 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7671 fi
7672else
7673 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7674fi
7675
7676test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7678$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7679if ${lt_cv_path_mainfest_tool+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681else
7682 lt_cv_path_mainfest_tool=no
7683 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7684 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7685 cat conftest.err >&5
7686 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7687 lt_cv_path_mainfest_tool=yes
7688 fi
7689 rm -f conftest*
7690fi
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7692$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7693if test "x$lt_cv_path_mainfest_tool" != xyes; then
7694 MANIFEST_TOOL=:
7695fi
7696
7697
7698
7699
7700
7701
7702 case $host_os in
7703 rhapsody* | darwin*)
7704 if test -n "$ac_tool_prefix"; then
7705 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7706set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708$as_echo_n "checking for $ac_word... " >&6; }
7709if ${ac_cv_prog_DSYMUTIL+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711else
7712 if test -n "$DSYMUTIL"; then
7713 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7714else
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726done
7727 done
7728IFS=$as_save_IFS
7729
7730fi
7731fi
7732DSYMUTIL=$ac_cv_prog_DSYMUTIL
7733if test -n "$DSYMUTIL"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7735$as_echo "$DSYMUTIL" >&6; }
7736else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738$as_echo "no" >&6; }
7739fi
7740
7741
7742fi
7743if test -z "$ac_cv_prog_DSYMUTIL"; then
7744 ac_ct_DSYMUTIL=$DSYMUTIL
7745 # Extract the first word of "dsymutil", so it can be a program name with args.
7746set dummy dsymutil; ac_word=$2
7747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748$as_echo_n "checking for $ac_word... " >&6; }
7749if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751else
7752 if test -n "$ac_ct_DSYMUTIL"; then
7753 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7754else
7755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756for as_dir in $PATH
7757do
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 break 2
7765 fi
7766done
7767 done
7768IFS=$as_save_IFS
7769
7770fi
7771fi
7772ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7773if test -n "$ac_ct_DSYMUTIL"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7775$as_echo "$ac_ct_DSYMUTIL" >&6; }
7776else
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778$as_echo "no" >&6; }
7779fi
7780
7781 if test "x$ac_ct_DSYMUTIL" = x; then
7782 DSYMUTIL=":"
7783 else
7784 case $cross_compiling:$ac_tool_warned in
7785yes:)
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788ac_tool_warned=yes ;;
7789esac
7790 DSYMUTIL=$ac_ct_DSYMUTIL
7791 fi
7792else
7793 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7794fi
7795
7796 if test -n "$ac_tool_prefix"; then
7797 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7798set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800$as_echo_n "checking for $ac_word... " >&6; }
7801if ${ac_cv_prog_NMEDIT+:} false; then :
7802 $as_echo_n "(cached) " >&6
7803else
7804 if test -n "$NMEDIT"; then
7805 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7806else
7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808for as_dir in $PATH
7809do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7817 fi
7818done
7819 done
7820IFS=$as_save_IFS
7821
7822fi
7823fi
7824NMEDIT=$ac_cv_prog_NMEDIT
7825if test -n "$NMEDIT"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7827$as_echo "$NMEDIT" >&6; }
7828else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830$as_echo "no" >&6; }
7831fi
7832
7833
7834fi
7835if test -z "$ac_cv_prog_NMEDIT"; then
7836 ac_ct_NMEDIT=$NMEDIT
7837 # Extract the first word of "nmedit", so it can be a program name with args.
7838set dummy nmedit; ac_word=$2
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840$as_echo_n "checking for $ac_word... " >&6; }
7841if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7842 $as_echo_n "(cached) " >&6
7843else
7844 if test -n "$ac_ct_NMEDIT"; then
7845 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7846else
7847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848for as_dir in $PATH
7849do
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7854 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 break 2
7857 fi
7858done
7859 done
7860IFS=$as_save_IFS
7861
7862fi
7863fi
7864ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7865if test -n "$ac_ct_NMEDIT"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7867$as_echo "$ac_ct_NMEDIT" >&6; }
7868else
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870$as_echo "no" >&6; }
7871fi
7872
7873 if test "x$ac_ct_NMEDIT" = x; then
7874 NMEDIT=":"
7875 else
7876 case $cross_compiling:$ac_tool_warned in
7877yes:)
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7880ac_tool_warned=yes ;;
7881esac
7882 NMEDIT=$ac_ct_NMEDIT
7883 fi
7884else
7885 NMEDIT="$ac_cv_prog_NMEDIT"
7886fi
7887
7888 if test -n "$ac_tool_prefix"; then
7889 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7890set dummy ${ac_tool_prefix}lipo; ac_word=$2
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892$as_echo_n "checking for $ac_word... " >&6; }
7893if ${ac_cv_prog_LIPO+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895else
7896 if test -n "$LIPO"; then
7897 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7898else
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910done
7911 done
7912IFS=$as_save_IFS
7913
7914fi
7915fi
7916LIPO=$ac_cv_prog_LIPO
7917if test -n "$LIPO"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7919$as_echo "$LIPO" >&6; }
7920else
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
7923fi
7924
7925
7926fi
7927if test -z "$ac_cv_prog_LIPO"; then
7928 ac_ct_LIPO=$LIPO
7929 # Extract the first word of "lipo", so it can be a program name with args.
7930set dummy lipo; ac_word=$2
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932$as_echo_n "checking for $ac_word... " >&6; }
7933if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7934 $as_echo_n "(cached) " >&6
7935else
7936 if test -n "$ac_ct_LIPO"; then
7937 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7938else
7939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940for as_dir in $PATH
7941do
7942 IFS=$as_save_IFS
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946 ac_cv_prog_ac_ct_LIPO="lipo"
7947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948 break 2
7949 fi
7950done
7951 done
7952IFS=$as_save_IFS
7953
7954fi
7955fi
7956ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7957if test -n "$ac_ct_LIPO"; then
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7959$as_echo "$ac_ct_LIPO" >&6; }
7960else
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962$as_echo "no" >&6; }
7963fi
7964
7965 if test "x$ac_ct_LIPO" = x; then
7966 LIPO=":"
7967 else
7968 case $cross_compiling:$ac_tool_warned in
7969yes:)
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7972ac_tool_warned=yes ;;
7973esac
7974 LIPO=$ac_ct_LIPO
7975 fi
7976else
7977 LIPO="$ac_cv_prog_LIPO"
7978fi
7979
7980 if test -n "$ac_tool_prefix"; then
7981 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7982set dummy ${ac_tool_prefix}otool; ac_word=$2
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984$as_echo_n "checking for $ac_word... " >&6; }
7985if ${ac_cv_prog_OTOOL+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987else
7988 if test -n "$OTOOL"; then
7989 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7990else
7991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992for as_dir in $PATH
7993do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002done
8003 done
8004IFS=$as_save_IFS
8005
8006fi
8007fi
8008OTOOL=$ac_cv_prog_OTOOL
8009if test -n "$OTOOL"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8011$as_echo "$OTOOL" >&6; }
8012else
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014$as_echo "no" >&6; }
8015fi
8016
8017
8018fi
8019if test -z "$ac_cv_prog_OTOOL"; then
8020 ac_ct_OTOOL=$OTOOL
8021 # Extract the first word of "otool", so it can be a program name with args.
8022set dummy otool; ac_word=$2
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024$as_echo_n "checking for $ac_word... " >&6; }
8025if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027else
8028 if test -n "$ac_ct_OTOOL"; then
8029 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8030else
8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038 ac_cv_prog_ac_ct_OTOOL="otool"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 break 2
8041 fi
8042done
8043 done
8044IFS=$as_save_IFS
8045
8046fi
8047fi
8048ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8049if test -n "$ac_ct_OTOOL"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8051$as_echo "$ac_ct_OTOOL" >&6; }
8052else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054$as_echo "no" >&6; }
8055fi
8056
8057 if test "x$ac_ct_OTOOL" = x; then
8058 OTOOL=":"
8059 else
8060 case $cross_compiling:$ac_tool_warned in
8061yes:)
8062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064ac_tool_warned=yes ;;
8065esac
8066 OTOOL=$ac_ct_OTOOL
8067 fi
8068else
8069 OTOOL="$ac_cv_prog_OTOOL"
8070fi
8071
8072 if test -n "$ac_tool_prefix"; then
8073 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8074set dummy ${ac_tool_prefix}otool64; ac_word=$2
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076$as_echo_n "checking for $ac_word... " >&6; }
8077if ${ac_cv_prog_OTOOL64+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079else
8080 if test -n "$OTOOL64"; then
8081 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8082else
8083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084for as_dir in $PATH
8085do
8086 IFS=$as_save_IFS
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 break 2
8093 fi
8094done
8095 done
8096IFS=$as_save_IFS
8097
8098fi
8099fi
8100OTOOL64=$ac_cv_prog_OTOOL64
8101if test -n "$OTOOL64"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8103$as_echo "$OTOOL64" >&6; }
8104else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106$as_echo "no" >&6; }
8107fi
8108
8109
8110fi
8111if test -z "$ac_cv_prog_OTOOL64"; then
8112 ac_ct_OTOOL64=$OTOOL64
8113 # Extract the first word of "otool64", so it can be a program name with args.
8114set dummy otool64; ac_word=$2
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116$as_echo_n "checking for $ac_word... " >&6; }
8117if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8118 $as_echo_n "(cached) " >&6
8119else
8120 if test -n "$ac_ct_OTOOL64"; then
8121 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8122else
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130 ac_cv_prog_ac_ct_OTOOL64="otool64"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8133 fi
8134done
8135 done
8136IFS=$as_save_IFS
8137
8138fi
8139fi
8140ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8141if test -n "$ac_ct_OTOOL64"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8143$as_echo "$ac_ct_OTOOL64" >&6; }
8144else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146$as_echo "no" >&6; }
8147fi
8148
8149 if test "x$ac_ct_OTOOL64" = x; then
8150 OTOOL64=":"
8151 else
8152 case $cross_compiling:$ac_tool_warned in
8153yes:)
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8156ac_tool_warned=yes ;;
8157esac
8158 OTOOL64=$ac_ct_OTOOL64
8159 fi
8160else
8161 OTOOL64="$ac_cv_prog_OTOOL64"
8162fi
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8191$as_echo_n "checking for -single_module linker flag... " >&6; }
8192if ${lt_cv_apple_cc_single_mod+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194else
8195 lt_cv_apple_cc_single_mod=no
8196 if test -z "${LT_MULTI_MODULE}"; then
8197 # By default we will add the -single_module flag. You can override
8198 # by either setting the environment variable LT_MULTI_MODULE
8199 # non-empty at configure time, or by adding -multi_module to the
8200 # link flags.
8201 rm -rf libconftest.dylib*
8202 echo "int foo(void){return 1;}" > conftest.c
8203 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8204-dynamiclib -Wl,-single_module conftest.c" >&5
8205 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8206 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8207 _lt_result=$?
8208 # If there is a non-empty error log, and "single_module"
8209 # appears in it, assume the flag caused a linker warning
8210 if test -s conftest.err && $GREP single_module conftest.err; then
8211 cat conftest.err >&5
8212 # Otherwise, if the output was created with a 0 exit code from
8213 # the compiler, it worked.
8214 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8215 lt_cv_apple_cc_single_mod=yes
8216 else
8217 cat conftest.err >&5
8218 fi
8219 rm -rf libconftest.dylib*
8220 rm -f conftest.*
8221 fi
8222fi
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8224$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8225
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8227$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8228if ${lt_cv_ld_exported_symbols_list+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230else
8231 lt_cv_ld_exported_symbols_list=no
8232 save_LDFLAGS=$LDFLAGS
8233 echo "_main" > conftest.sym
8234 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236/* end confdefs.h. */
8237
8238int
8239main ()
8240{
8241
8242 ;
8243 return 0;
8244}
8245_ACEOF
8246if ac_fn_c_try_link "$LINENO"; then :
8247 lt_cv_ld_exported_symbols_list=yes
8248else
8249 lt_cv_ld_exported_symbols_list=no
8250fi
8251rm -f core conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8253 LDFLAGS="$save_LDFLAGS"
8254
8255fi
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8257$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8258
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8260$as_echo_n "checking for -force_load linker flag... " >&6; }
8261if ${lt_cv_ld_force_load+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263else
8264 lt_cv_ld_force_load=no
8265 cat > conftest.c << _LT_EOF
8266int forced_loaded() { return 2;}
8267_LT_EOF
8268 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8269 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8270 echo "$AR cru libconftest.a conftest.o" >&5
8271 $AR cru libconftest.a conftest.o 2>&5
8272 echo "$RANLIB libconftest.a" >&5
8273 $RANLIB libconftest.a 2>&5
8274 cat > conftest.c << _LT_EOF
8275int main() { return 0;}
8276_LT_EOF
8277 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8278 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8279 _lt_result=$?
8280 if test -s conftest.err && $GREP force_load conftest.err; then
8281 cat conftest.err >&5
8282 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8283 lt_cv_ld_force_load=yes
8284 else
8285 cat conftest.err >&5
8286 fi
8287 rm -f conftest.err libconftest.a conftest conftest.c
8288 rm -rf conftest.dSYM
8289
8290fi
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8292$as_echo "$lt_cv_ld_force_load" >&6; }
8293 case $host_os in
8294 rhapsody* | darwin1.[012])
8295 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8296 darwin1.*)
8297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8298 darwin*) # darwin 5.x on
8299 # if running on 10.5 or later, the deployment target defaults
8300 # to the OS version, if on x86, and 10.4, the deployment
8301 # target defaults to 10.4. Don't you love it?
8302 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8303 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8304 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8305 10.[012]*)
8306 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8307 10.*)
8308 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8309 esac
8310 ;;
8311 esac
8312 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8313 _lt_dar_single_mod='$single_module'
8314 fi
8315 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8316 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8317 else
8318 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8319 fi
8320 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8321 _lt_dsymutil='~$DSYMUTIL $lib || :'
8322 else
8323 _lt_dsymutil=
8324 fi
8325 ;;
8326 esac
8327
8328# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8329for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8330 inttypes.h stdint.h unistd.h
8331do :
8332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8333ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8334"
8335if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8336 cat >>confdefs.h <<_ACEOF
8337#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8338_ACEOF
8339
8340fi
8341
8342done
8343
8344
8345for ac_header in dlfcn.h
8346do :
8347 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8348"
8349if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8350 cat >>confdefs.h <<_ACEOF
8351#define HAVE_DLFCN_H 1
8352_ACEOF
8353
8354fi
8355
8356done
8357
8358
8359
8360
8361
8362# Set options
8363
8364
8365
8366 enable_dlopen=no
8367
8368
8369 enable_win32_dll=no
8370
8371
8372 # Check whether --enable-shared was given.
8373if test "${enable_shared+set}" = set; then :
8374 enableval=$enable_shared; p=${PACKAGE-default}
8375 case $enableval in
8376 yes) enable_shared=yes ;;
8377 no) enable_shared=no ;;
8378 *)
8379 enable_shared=no
8380 # Look at the argument we got. We use all the common list separators.
8381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8382 for pkg in $enableval; do
8383 IFS="$lt_save_ifs"
8384 if test "X$pkg" = "X$p"; then
8385 enable_shared=yes
8386 fi
8387 done
8388 IFS="$lt_save_ifs"
8389 ;;
8390 esac
8391else
8392 enable_shared=yes
8393fi
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405# Check whether --with-pic was given.
8406if test "${with_pic+set}" = set; then :
8407 withval=$with_pic; lt_p=${PACKAGE-default}
8408 case $withval in
8409 yes|no) pic_mode=$withval ;;
8410 *)
8411 pic_mode=default
8412 # Look at the argument we got. We use all the common list separators.
8413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8414 for lt_pkg in $withval; do
8415 IFS="$lt_save_ifs"
8416 if test "X$lt_pkg" = "X$lt_p"; then
8417 pic_mode=yes
8418 fi
8419 done
8420 IFS="$lt_save_ifs"
8421 ;;
8422 esac
8423else
8424 pic_mode=default
8425fi
8426
8427
8428test -z "$pic_mode" && pic_mode=default
8429
8430
8431
8432
8433
8434
8435
8436 # Check whether --enable-fast-install was given.
8437if test "${enable_fast_install+set}" = set; then :
8438 enableval=$enable_fast_install; p=${PACKAGE-default}
8439 case $enableval in
8440 yes) enable_fast_install=yes ;;
8441 no) enable_fast_install=no ;;
8442 *)
8443 enable_fast_install=no
8444 # Look at the argument we got. We use all the common list separators.
8445 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8446 for pkg in $enableval; do
8447 IFS="$lt_save_ifs"
8448 if test "X$pkg" = "X$p"; then
8449 enable_fast_install=yes
8450 fi
8451 done
8452 IFS="$lt_save_ifs"
8453 ;;
8454 esac
8455else
8456 enable_fast_install=yes
8457fi
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469# This can be used to rebuild libtool when needed
8470LIBTOOL_DEPS="$ltmain"
8471
8472# Always use our own libtool.
8473LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504test -z "$LN_S" && LN_S="ln -s"
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519if test -n "${ZSH_VERSION+set}" ; then
8520 setopt NO_GLOB_SUBST
8521fi
8522
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8524$as_echo_n "checking for objdir... " >&6; }
8525if ${lt_cv_objdir+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527else
8528 rm -f .libs 2>/dev/null
8529mkdir .libs 2>/dev/null
8530if test -d .libs; then
8531 lt_cv_objdir=.libs
8532else
8533 # MS-DOS does not allow filenames that begin with a dot.
8534 lt_cv_objdir=_libs
8535fi
8536rmdir .libs 2>/dev/null
8537fi
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8539$as_echo "$lt_cv_objdir" >&6; }
8540objdir=$lt_cv_objdir
8541
8542
8543
8544
8545
8546cat >>confdefs.h <<_ACEOF
8547#define LT_OBJDIR "$lt_cv_objdir/"
8548_ACEOF
8549
8550
8551
8552
8553case $host_os in
8554aix3*)
8555 # AIX sometimes has problems with the GCC collect2 program. For some
8556 # reason, if we set the COLLECT_NAMES environment variable, the problems
8557 # vanish in a puff of smoke.
8558 if test "X${COLLECT_NAMES+set}" != Xset; then
8559 COLLECT_NAMES=
8560 export COLLECT_NAMES
8561 fi
8562 ;;
8563esac
8564
8565# Global variables:
8566ofile=libtool
8567can_build_shared=yes
8568
8569# All known linkers require a `.a' archive for static linking (except MSVC,
8570# which needs '.lib').
8571libext=a
8572
8573with_gnu_ld="$lt_cv_prog_gnu_ld"
8574
8575old_CC="$CC"
8576old_CFLAGS="$CFLAGS"
8577
8578# Set sane defaults for various variables
8579test -z "$CC" && CC=cc
8580test -z "$LTCC" && LTCC=$CC
8581test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8582test -z "$LD" && LD=ld
8583test -z "$ac_objext" && ac_objext=o
8584
8585for cc_temp in $compiler""; do
8586 case $cc_temp in
8587 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8588 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8589 \-*) ;;
8590 *) break;;
8591 esac
8592done
8593cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8594
8595
8596# Only perform the check for file, if the check method requires it
8597test -z "$MAGIC_CMD" && MAGIC_CMD=file
8598case $deplibs_check_method in
8599file_magic*)
8600 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8602$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8603if ${lt_cv_path_MAGIC_CMD+:} false; then :
8604 $as_echo_n "(cached) " >&6
8605else
8606 case $MAGIC_CMD in
8607[\\/*] | ?:[\\/]*)
8608 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8609 ;;
8610*)
8611 lt_save_MAGIC_CMD="$MAGIC_CMD"
8612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8613 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8614 for ac_dir in $ac_dummy; do
8615 IFS="$lt_save_ifs"
8616 test -z "$ac_dir" && ac_dir=.
8617 if test -f $ac_dir/${ac_tool_prefix}file; then
8618 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8619 if test -n "$file_magic_test_file"; then
8620 case $deplibs_check_method in
8621 "file_magic "*)
8622 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8624 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8625 $EGREP "$file_magic_regex" > /dev/null; then
8626 :
8627 else
8628 cat <<_LT_EOF 1>&2
8629
8630*** Warning: the command libtool uses to detect shared libraries,
8631*** $file_magic_cmd, produces output that libtool cannot recognize.
8632*** The result is that libtool may fail to recognize shared libraries
8633*** as such. This will affect the creation of libtool libraries that
8634*** depend on shared libraries, but programs linked with such libtool
8635*** libraries will work regardless of this problem. Nevertheless, you
8636*** may want to report the problem to your system manager and/or to
8637*** bug-libtool@gnu.org
8638
8639_LT_EOF
8640 fi ;;
8641 esac
8642 fi
8643 break
8644 fi
8645 done
8646 IFS="$lt_save_ifs"
8647 MAGIC_CMD="$lt_save_MAGIC_CMD"
8648 ;;
8649esac
8650fi
8651
8652MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8653if test -n "$MAGIC_CMD"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8655$as_echo "$MAGIC_CMD" >&6; }
8656else
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658$as_echo "no" >&6; }
8659fi
8660
8661
8662
8663
8664
8665if test -z "$lt_cv_path_MAGIC_CMD"; then
8666 if test -n "$ac_tool_prefix"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8668$as_echo_n "checking for file... " >&6; }
8669if ${lt_cv_path_MAGIC_CMD+:} false; then :
8670 $as_echo_n "(cached) " >&6
8671else
8672 case $MAGIC_CMD in
8673[\\/*] | ?:[\\/]*)
8674 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8675 ;;
8676*)
8677 lt_save_MAGIC_CMD="$MAGIC_CMD"
8678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8679 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8680 for ac_dir in $ac_dummy; do
8681 IFS="$lt_save_ifs"
8682 test -z "$ac_dir" && ac_dir=.
8683 if test -f $ac_dir/file; then
8684 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8685 if test -n "$file_magic_test_file"; then
8686 case $deplibs_check_method in
8687 "file_magic "*)
8688 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8689 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8690 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8691 $EGREP "$file_magic_regex" > /dev/null; then
8692 :
8693 else
8694 cat <<_LT_EOF 1>&2
8695
8696*** Warning: the command libtool uses to detect shared libraries,
8697*** $file_magic_cmd, produces output that libtool cannot recognize.
8698*** The result is that libtool may fail to recognize shared libraries
8699*** as such. This will affect the creation of libtool libraries that
8700*** depend on shared libraries, but programs linked with such libtool
8701*** libraries will work regardless of this problem. Nevertheless, you
8702*** may want to report the problem to your system manager and/or to
8703*** bug-libtool@gnu.org
8704
8705_LT_EOF
8706 fi ;;
8707 esac
8708 fi
8709 break
8710 fi
8711 done
8712 IFS="$lt_save_ifs"
8713 MAGIC_CMD="$lt_save_MAGIC_CMD"
8714 ;;
8715esac
8716fi
8717
8718MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8719if test -n "$MAGIC_CMD"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8721$as_echo "$MAGIC_CMD" >&6; }
8722else
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724$as_echo "no" >&6; }
8725fi
8726
8727
8728 else
8729 MAGIC_CMD=:
8730 fi
8731fi
8732
8733 fi
8734 ;;
8735esac
8736
8737# Use C for the default configuration in the libtool script
8738
8739lt_save_CC="$CC"
8740ac_ext=c
8741ac_cpp='$CPP $CPPFLAGS'
8742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8744ac_compiler_gnu=$ac_cv_c_compiler_gnu
8745
8746
8747# Source file extension for C test sources.
8748ac_ext=c
8749
8750# Object file extension for compiled C test sources.
8751objext=o
8752objext=$objext
8753
8754# Code to be used in simple compile tests
8755lt_simple_compile_test_code="int some_variable = 0;"
8756
8757# Code to be used in simple link tests
8758lt_simple_link_test_code='int main(){return(0);}'
8759
8760
8761
8762
8763
8764
8765
8766# If no C compiler was specified, use CC.
8767LTCC=${LTCC-"$CC"}
8768
8769# If no C compiler flags were specified, use CFLAGS.
8770LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8771
8772# Allow CC to be a program name with arguments.
8773compiler=$CC
8774
8775# Save the default compiler, since it gets overwritten when the other
8776# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8777compiler_DEFAULT=$CC
8778
8779# save warnings/boilerplate of simple test code
8780ac_outfile=conftest.$ac_objext
8781echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8782eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8783_lt_compiler_boilerplate=`cat conftest.err`
8784$RM conftest*
8785
8786ac_outfile=conftest.$ac_objext
8787echo "$lt_simple_link_test_code" >conftest.$ac_ext
8788eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8789_lt_linker_boilerplate=`cat conftest.err`
8790$RM -r conftest*
8791
8792
8793if test -n "$compiler"; then
8794
8795lt_prog_compiler_no_builtin_flag=
8796
8797if test "$GCC" = yes; then
8798 case $cc_basename in
8799 nvcc*)
8800 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8801 *)
8802 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8803 esac
8804
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8806$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8807if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809else
8810 lt_cv_prog_compiler_rtti_exceptions=no
8811 ac_outfile=conftest.$ac_objext
8812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8813 lt_compiler_flag="-fno-rtti -fno-exceptions"
8814 # Insert the option either (1) after the last *FLAGS variable, or
8815 # (2) before a word containing "conftest.", or (3) at the end.
8816 # Note that $ac_compile itself does not contain backslashes and begins
8817 # with a dollar sign (not a hyphen), so the echo should work correctly.
8818 # The option is referenced via a variable to avoid confusing sed.
8819 lt_compile=`echo "$ac_compile" | $SED \
8820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8822 -e 's:$: $lt_compiler_flag:'`
8823 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8824 (eval "$lt_compile" 2>conftest.err)
8825 ac_status=$?
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 if (exit $ac_status) && test -s "$ac_outfile"; then
8829 # The compiler can only warn and ignore the option if not recognized
8830 # So say no if there are warnings other than the usual output.
8831 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8832 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8833 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8834 lt_cv_prog_compiler_rtti_exceptions=yes
8835 fi
8836 fi
8837 $RM conftest*
8838
8839fi
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8841$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8842
8843if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8844 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8845else
8846 :
8847fi
8848
8849fi
8850
8851
8852
8853
8854
8855
8856 lt_prog_compiler_wl=
8857lt_prog_compiler_pic=
8858lt_prog_compiler_static=
8859
8860
8861 if test "$GCC" = yes; then
8862 lt_prog_compiler_wl='-Wl,'
8863 lt_prog_compiler_static='-static'
8864
8865 case $host_os in
8866 aix*)
8867 # All AIX code is PIC.
8868 if test "$host_cpu" = ia64; then
8869 # AIX 5 now supports IA64 processor
8870 lt_prog_compiler_static='-Bstatic'
8871 fi
8872 ;;
8873
8874 amigaos*)
8875 case $host_cpu in
8876 powerpc)
8877 # see comment about AmigaOS4 .so support
8878 lt_prog_compiler_pic='-fPIC'
8879 ;;
8880 m68k)
8881 # FIXME: we need at least 68020 code to build shared libraries, but
8882 # adding the `-m68020' flag to GCC prevents building anything better,
8883 # like `-m68040'.
8884 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8885 ;;
8886 esac
8887 ;;
8888
8889 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8890 # PIC is the default for these OSes.
8891 ;;
8892
8893 mingw* | cygwin* | pw32* | os2* | cegcc*)
8894 # This hack is so that the source file can tell whether it is being
8895 # built for inclusion in a dll (and should export symbols for example).
8896 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8897 # (--disable-auto-import) libraries
8898 lt_prog_compiler_pic='-DDLL_EXPORT'
8899 ;;
8900
8901 darwin* | rhapsody*)
8902 # PIC is the default on this platform
8903 # Common symbols not allowed in MH_DYLIB files
8904 lt_prog_compiler_pic='-fno-common'
8905 ;;
8906
8907 haiku*)
8908 # PIC is the default for Haiku.
8909 # The "-static" flag exists, but is broken.
8910 lt_prog_compiler_static=
8911 ;;
8912
8913 hpux*)
8914 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8915 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8916 # sets the default TLS model and affects inlining.
8917 case $host_cpu in
8918 hppa*64*)
8919 # +Z the default
8920 ;;
8921 *)
8922 lt_prog_compiler_pic='-fPIC'
8923 ;;
8924 esac
8925 ;;
8926
8927 interix[3-9]*)
8928 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8929 # Instead, we relocate shared libraries at runtime.
8930 ;;
8931
8932 msdosdjgpp*)
8933 # Just because we use GCC doesn't mean we suddenly get shared libraries
8934 # on systems that don't support them.
8935 lt_prog_compiler_can_build_shared=no
8936 enable_shared=no
8937 ;;
8938
8939 *nto* | *qnx*)
8940 # QNX uses GNU C++, but need to define -shared option too, otherwise
8941 # it will coredump.
8942 lt_prog_compiler_pic='-fPIC -shared'
8943 ;;
8944
8945 sysv4*MP*)
8946 if test -d /usr/nec; then
8947 lt_prog_compiler_pic=-Kconform_pic
8948 fi
8949 ;;
8950
8951 *)
8952 lt_prog_compiler_pic='-fPIC'
8953 ;;
8954 esac
8955
8956 case $cc_basename in
8957 nvcc*) # Cuda Compiler Driver 2.2
8958 lt_prog_compiler_wl='-Xlinker '
8959 if test -n "$lt_prog_compiler_pic"; then
8960 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8961 fi
8962 ;;
8963 esac
8964 else
8965 # PORTME Check for flag to pass linker flags through the system compiler.
8966 case $host_os in
8967 aix*)
8968 lt_prog_compiler_wl='-Wl,'
8969 if test "$host_cpu" = ia64; then
8970 # AIX 5 now supports IA64 processor
8971 lt_prog_compiler_static='-Bstatic'
8972 else
8973 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8974 fi
8975 ;;
8976
8977 mingw* | cygwin* | pw32* | os2* | cegcc*)
8978 # This hack is so that the source file can tell whether it is being
8979 # built for inclusion in a dll (and should export symbols for example).
8980 lt_prog_compiler_pic='-DDLL_EXPORT'
8981 ;;
8982
8983 hpux9* | hpux10* | hpux11*)
8984 lt_prog_compiler_wl='-Wl,'
8985 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8986 # not for PA HP-UX.
8987 case $host_cpu in
8988 hppa*64*|ia64*)
8989 # +Z the default
8990 ;;
8991 *)
8992 lt_prog_compiler_pic='+Z'
8993 ;;
8994 esac
8995 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8996 lt_prog_compiler_static='${wl}-a ${wl}archive'
8997 ;;
8998
8999 irix5* | irix6* | nonstopux*)
9000 lt_prog_compiler_wl='-Wl,'
9001 # PIC (with -KPIC) is the default.
9002 lt_prog_compiler_static='-non_shared'
9003 ;;
9004
9005 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9006 case $cc_basename in
9007 # old Intel for x86_64 which still supported -KPIC.
9008 ecc*)
9009 lt_prog_compiler_wl='-Wl,'
9010 lt_prog_compiler_pic='-KPIC'
9011 lt_prog_compiler_static='-static'
9012 ;;
9013 # icc used to be incompatible with GCC.
9014 # ICC 10 doesn't accept -KPIC any more.
9015 icc* | ifort*)
9016 lt_prog_compiler_wl='-Wl,'
9017 lt_prog_compiler_pic='-fPIC'
9018 lt_prog_compiler_static='-static'
9019 ;;
9020 # Lahey Fortran 8.1.
9021 lf95*)
9022 lt_prog_compiler_wl='-Wl,'
9023 lt_prog_compiler_pic='--shared'
9024 lt_prog_compiler_static='--static'
9025 ;;
9026 nagfor*)
9027 # NAG Fortran compiler
9028 lt_prog_compiler_wl='-Wl,-Wl,,'
9029 lt_prog_compiler_pic='-PIC'
9030 lt_prog_compiler_static='-Bstatic'
9031 ;;
9032 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9033 # Portland Group compilers (*not* the Pentium gcc compiler,
9034 # which looks to be a dead project)
9035 lt_prog_compiler_wl='-Wl,'
9036 lt_prog_compiler_pic='-fpic'
9037 lt_prog_compiler_static='-Bstatic'
9038 ;;
9039 ccc*)
9040 lt_prog_compiler_wl='-Wl,'
9041 # All Alpha code is PIC.
9042 lt_prog_compiler_static='-non_shared'
9043 ;;
9044 xl* | bgxl* | bgf* | mpixl*)
9045 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9046 lt_prog_compiler_wl='-Wl,'
9047 lt_prog_compiler_pic='-qpic'
9048 lt_prog_compiler_static='-qstaticlink'
9049 ;;
9050 *)
9051 case `$CC -V 2>&1 | sed 5q` in
9052 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9053 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9054 lt_prog_compiler_pic='-KPIC'
9055 lt_prog_compiler_static='-Bstatic'
9056 lt_prog_compiler_wl=''
9057 ;;
9058 *Sun\ F* | *Sun*Fortran*)
9059 lt_prog_compiler_pic='-KPIC'
9060 lt_prog_compiler_static='-Bstatic'
9061 lt_prog_compiler_wl='-Qoption ld '
9062 ;;
9063 *Sun\ C*)
9064 # Sun C 5.9
9065 lt_prog_compiler_pic='-KPIC'
9066 lt_prog_compiler_static='-Bstatic'
9067 lt_prog_compiler_wl='-Wl,'
9068 ;;
9069 *Intel*\ [CF]*Compiler*)
9070 lt_prog_compiler_wl='-Wl,'
9071 lt_prog_compiler_pic='-fPIC'
9072 lt_prog_compiler_static='-static'
9073 ;;
9074 *Portland\ Group*)
9075 lt_prog_compiler_wl='-Wl,'
9076 lt_prog_compiler_pic='-fpic'
9077 lt_prog_compiler_static='-Bstatic'
9078 ;;
9079 esac
9080 ;;
9081 esac
9082 ;;
9083
9084 newsos6)
9085 lt_prog_compiler_pic='-KPIC'
9086 lt_prog_compiler_static='-Bstatic'
9087 ;;
9088
9089 *nto* | *qnx*)
9090 # QNX uses GNU C++, but need to define -shared option too, otherwise
9091 # it will coredump.
9092 lt_prog_compiler_pic='-fPIC -shared'
9093 ;;
9094
9095 osf3* | osf4* | osf5*)
9096 lt_prog_compiler_wl='-Wl,'
9097 # All OSF/1 code is PIC.
9098 lt_prog_compiler_static='-non_shared'
9099 ;;
9100
9101 rdos*)
9102 lt_prog_compiler_static='-non_shared'
9103 ;;
9104
9105 solaris*)
9106 lt_prog_compiler_pic='-KPIC'
9107 lt_prog_compiler_static='-Bstatic'
9108 case $cc_basename in
9109 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9110 lt_prog_compiler_wl='-Qoption ld ';;
9111 *)
9112 lt_prog_compiler_wl='-Wl,';;
9113 esac
9114 ;;
9115
9116 sunos4*)
9117 lt_prog_compiler_wl='-Qoption ld '
9118 lt_prog_compiler_pic='-PIC'
9119 lt_prog_compiler_static='-Bstatic'
9120 ;;
9121
9122 sysv4 | sysv4.2uw2* | sysv4.3*)
9123 lt_prog_compiler_wl='-Wl,'
9124 lt_prog_compiler_pic='-KPIC'
9125 lt_prog_compiler_static='-Bstatic'
9126 ;;
9127
9128 sysv4*MP*)
9129 if test -d /usr/nec ;then
9130 lt_prog_compiler_pic='-Kconform_pic'
9131 lt_prog_compiler_static='-Bstatic'
9132 fi
9133 ;;
9134
9135 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9136 lt_prog_compiler_wl='-Wl,'
9137 lt_prog_compiler_pic='-KPIC'
9138 lt_prog_compiler_static='-Bstatic'
9139 ;;
9140
9141 unicos*)
9142 lt_prog_compiler_wl='-Wl,'
9143 lt_prog_compiler_can_build_shared=no
9144 ;;
9145
9146 uts4*)
9147 lt_prog_compiler_pic='-pic'
9148 lt_prog_compiler_static='-Bstatic'
9149 ;;
9150
9151 *)
9152 lt_prog_compiler_can_build_shared=no
9153 ;;
9154 esac
9155 fi
9156
9157case $host_os in
9158 # For platforms which do not support PIC, -DPIC is meaningless:
9159 *djgpp*)
9160 lt_prog_compiler_pic=
9161 ;;
9162 *)
9163 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9164 ;;
9165esac
9166
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9168$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9169if ${lt_cv_prog_compiler_pic+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171else
9172 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9173fi
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9175$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9176lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9177
9178#
9179# Check to make sure the PIC flag actually works.
9180#
9181if test -n "$lt_prog_compiler_pic"; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9183$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9184if ${lt_cv_prog_compiler_pic_works+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186else
9187 lt_cv_prog_compiler_pic_works=no
9188 ac_outfile=conftest.$ac_objext
9189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9190 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9191 # Insert the option either (1) after the last *FLAGS variable, or
9192 # (2) before a word containing "conftest.", or (3) at the end.
9193 # Note that $ac_compile itself does not contain backslashes and begins
9194 # with a dollar sign (not a hyphen), so the echo should work correctly.
9195 # The option is referenced via a variable to avoid confusing sed.
9196 lt_compile=`echo "$ac_compile" | $SED \
9197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9199 -e 's:$: $lt_compiler_flag:'`
9200 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9201 (eval "$lt_compile" 2>conftest.err)
9202 ac_status=$?
9203 cat conftest.err >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 if (exit $ac_status) && test -s "$ac_outfile"; then
9206 # The compiler can only warn and ignore the option if not recognized
9207 # So say no if there are warnings other than the usual output.
9208 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9210 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9211 lt_cv_prog_compiler_pic_works=yes
9212 fi
9213 fi
9214 $RM conftest*
9215
9216fi
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9218$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9219
9220if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9221 case $lt_prog_compiler_pic in
9222 "" | " "*) ;;
9223 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9224 esac
9225else
9226 lt_prog_compiler_pic=
9227 lt_prog_compiler_can_build_shared=no
9228fi
9229
9230fi
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242#
9243# Check to make sure the static flag actually works.
9244#
9245wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9247$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9248if ${lt_cv_prog_compiler_static_works+:} false; then :
9249 $as_echo_n "(cached) " >&6
9250else
9251 lt_cv_prog_compiler_static_works=no
9252 save_LDFLAGS="$LDFLAGS"
9253 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9254 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9255 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9256 # The linker can only warn and ignore the option if not recognized
9257 # So say no if there are warnings
9258 if test -s conftest.err; then
9259 # Append any errors to the config.log.
9260 cat conftest.err 1>&5
9261 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9263 if diff conftest.exp conftest.er2 >/dev/null; then
9264 lt_cv_prog_compiler_static_works=yes
9265 fi
9266 else
9267 lt_cv_prog_compiler_static_works=yes
9268 fi
9269 fi
9270 $RM -r conftest*
9271 LDFLAGS="$save_LDFLAGS"
9272
9273fi
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9275$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9276
9277if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9278 :
9279else
9280 lt_prog_compiler_static=
9281fi
9282
9283
9284
9285
9286
9287
9288
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9290$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9291if ${lt_cv_prog_compiler_c_o+:} false; then :
9292 $as_echo_n "(cached) " >&6
9293else
9294 lt_cv_prog_compiler_c_o=no
9295 $RM -r conftest 2>/dev/null
9296 mkdir conftest
9297 cd conftest
9298 mkdir out
9299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9300
9301 lt_compiler_flag="-o out/conftest2.$ac_objext"
9302 # Insert the option either (1) after the last *FLAGS variable, or
9303 # (2) before a word containing "conftest.", or (3) at the end.
9304 # Note that $ac_compile itself does not contain backslashes and begins
9305 # with a dollar sign (not a hyphen), so the echo should work correctly.
9306 lt_compile=`echo "$ac_compile" | $SED \
9307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9309 -e 's:$: $lt_compiler_flag:'`
9310 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9311 (eval "$lt_compile" 2>out/conftest.err)
9312 ac_status=$?
9313 cat out/conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9316 then
9317 # The compiler can only warn and ignore the option if not recognized
9318 # So say no if there are warnings
9319 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9320 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9321 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9322 lt_cv_prog_compiler_c_o=yes
9323 fi
9324 fi
9325 chmod u+w . 2>&5
9326 $RM conftest*
9327 # SGI C++ compiler will create directory out/ii_files/ for
9328 # template instantiation
9329 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9330 $RM out/* && rmdir out
9331 cd ..
9332 $RM -r conftest
9333 $RM conftest*
9334
9335fi
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9337$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9338
9339
9340
9341
9342
9343
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9345$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9346if ${lt_cv_prog_compiler_c_o+:} false; then :
9347 $as_echo_n "(cached) " >&6
9348else
9349 lt_cv_prog_compiler_c_o=no
9350 $RM -r conftest 2>/dev/null
9351 mkdir conftest
9352 cd conftest
9353 mkdir out
9354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9355
9356 lt_compiler_flag="-o out/conftest2.$ac_objext"
9357 # Insert the option either (1) after the last *FLAGS variable, or
9358 # (2) before a word containing "conftest.", or (3) at the end.
9359 # Note that $ac_compile itself does not contain backslashes and begins
9360 # with a dollar sign (not a hyphen), so the echo should work correctly.
9361 lt_compile=`echo "$ac_compile" | $SED \
9362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9364 -e 's:$: $lt_compiler_flag:'`
9365 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9366 (eval "$lt_compile" 2>out/conftest.err)
9367 ac_status=$?
9368 cat out/conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9371 then
9372 # The compiler can only warn and ignore the option if not recognized
9373 # So say no if there are warnings
9374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9377 lt_cv_prog_compiler_c_o=yes
9378 fi
9379 fi
9380 chmod u+w . 2>&5
9381 $RM conftest*
9382 # SGI C++ compiler will create directory out/ii_files/ for
9383 # template instantiation
9384 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9385 $RM out/* && rmdir out
9386 cd ..
9387 $RM -r conftest
9388 $RM conftest*
9389
9390fi
9391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9392$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9393
9394
9395
9396
9397hard_links="nottested"
9398if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9399 # do not overwrite the value of need_locks provided by the user
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9401$as_echo_n "checking if we can lock with hard links... " >&6; }
9402 hard_links=yes
9403 $RM conftest*
9404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9405 touch conftest.a
9406 ln conftest.a conftest.b 2>&5 || hard_links=no
9407 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9409$as_echo "$hard_links" >&6; }
9410 if test "$hard_links" = no; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9412$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9413 need_locks=warn
9414 fi
9415else
9416 need_locks=no
9417fi
9418
9419
9420
9421
9422
9423
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9425$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9426
9427 runpath_var=
9428 allow_undefined_flag=
9429 always_export_symbols=no
9430 archive_cmds=
9431 archive_expsym_cmds=
9432 compiler_needs_object=no
9433 enable_shared_with_static_runtimes=no
9434 export_dynamic_flag_spec=
9435 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9436 hardcode_automatic=no
9437 hardcode_direct=no
9438 hardcode_direct_absolute=no
9439 hardcode_libdir_flag_spec=
9440 hardcode_libdir_separator=
9441 hardcode_minus_L=no
9442 hardcode_shlibpath_var=unsupported
9443 inherit_rpath=no
9444 link_all_deplibs=unknown
9445 module_cmds=
9446 module_expsym_cmds=
9447 old_archive_from_new_cmds=
9448 old_archive_from_expsyms_cmds=
9449 thread_safe_flag_spec=
9450 whole_archive_flag_spec=
9451 # include_expsyms should be a list of space-separated symbols to be *always*
9452 # included in the symbol list
9453 include_expsyms=
9454 # exclude_expsyms can be an extended regexp of symbols to exclude
9455 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9456 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9457 # as well as any symbol that contains `d'.
9458 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9459 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9460 # platforms (ab)use it in PIC code, but their linkers get confused if
9461 # the symbol is explicitly referenced. Since portable code cannot
9462 # rely on this symbol name, it's probably fine to never include it in
9463 # preloaded symbol tables.
9464 # Exclude shared library initialization/finalization symbols.
9465 extract_expsyms_cmds=
9466
9467 case $host_os in
9468 cygwin* | mingw* | pw32* | cegcc*)
9469 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9470 # When not using gcc, we currently assume that we are using
9471 # Microsoft Visual C++.
9472 if test "$GCC" != yes; then
9473 with_gnu_ld=no
9474 fi
9475 ;;
9476 interix*)
9477 # we just hope/assume this is gcc and not c89 (= MSVC++)
9478 with_gnu_ld=yes
9479 ;;
9480 openbsd*)
9481 with_gnu_ld=no
9482 ;;
9483 linux* | k*bsd*-gnu | gnu*)
9484 link_all_deplibs=no
9485 ;;
9486 esac
9487
9488 ld_shlibs=yes
9489
9490 # On some targets, GNU ld is compatible enough with the native linker
9491 # that we're better off using the native interface for both.
9492 lt_use_gnu_ld_interface=no
9493 if test "$with_gnu_ld" = yes; then
9494 case $host_os in
9495 aix*)
9496 # The AIX port of GNU ld has always aspired to compatibility
9497 # with the native linker. However, as the warning in the GNU ld
9498 # block says, versions before 2.19.5* couldn't really create working
9499 # shared libraries, regardless of the interface used.
9500 case `$LD -v 2>&1` in
9501 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9502 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9503 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9504 *)
9505 lt_use_gnu_ld_interface=yes
9506 ;;
9507 esac
9508 ;;
9509 *)
9510 lt_use_gnu_ld_interface=yes
9511 ;;
9512 esac
9513 fi
9514
9515 if test "$lt_use_gnu_ld_interface" = yes; then
9516 # If archive_cmds runs LD, not CC, wlarc should be empty
9517 wlarc='${wl}'
9518
9519 # Set some defaults for GNU ld with shared library support. These
9520 # are reset later if shared libraries are not supported. Putting them
9521 # here allows them to be overridden if necessary.
9522 runpath_var=LD_RUN_PATH
9523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9524 export_dynamic_flag_spec='${wl}--export-dynamic'
9525 # ancient GNU ld didn't support --whole-archive et. al.
9526 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9527 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9528 else
9529 whole_archive_flag_spec=
9530 fi
9531 supports_anon_versioning=no
9532 case `$LD -v 2>&1` in
9533 *GNU\ gold*) supports_anon_versioning=yes ;;
9534 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9535 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9536 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9537 *\ 2.11.*) ;; # other 2.11 versions
9538 *) supports_anon_versioning=yes ;;
9539 esac
9540
9541 # See if GNU ld supports shared libraries.
9542 case $host_os in
9543 aix[3-9]*)
9544 # On AIX/PPC, the GNU linker is very broken
9545 if test "$host_cpu" != ia64; then
9546 ld_shlibs=no
9547 cat <<_LT_EOF 1>&2
9548
9549*** Warning: the GNU linker, at least up to release 2.19, is reported
9550*** to be unable to reliably create shared libraries on AIX.
9551*** Therefore, libtool is disabling shared libraries support. If you
9552*** really care for shared libraries, you may want to install binutils
9553*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9554*** You will then need to restart the configuration process.
9555
9556_LT_EOF
9557 fi
9558 ;;
9559
9560 amigaos*)
9561 case $host_cpu in
9562 powerpc)
9563 # see comment about AmigaOS4 .so support
9564 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565 archive_expsym_cmds=''
9566 ;;
9567 m68k)
9568 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)'
9569 hardcode_libdir_flag_spec='-L$libdir'
9570 hardcode_minus_L=yes
9571 ;;
9572 esac
9573 ;;
9574
9575 beos*)
9576 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9577 allow_undefined_flag=unsupported
9578 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9579 # support --undefined. This deserves some investigation. FIXME
9580 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9581 else
9582 ld_shlibs=no
9583 fi
9584 ;;
9585
9586 cygwin* | mingw* | pw32* | cegcc*)
9587 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9588 # as there is no search path for DLLs.
9589 hardcode_libdir_flag_spec='-L$libdir'
9590 export_dynamic_flag_spec='${wl}--export-all-symbols'
9591 allow_undefined_flag=unsupported
9592 always_export_symbols=no
9593 enable_shared_with_static_runtimes=yes
9594 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'
9595 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9596
9597 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9599 # If the export-symbols file already is a .def file (1st line
9600 # is EXPORTS), use it as is; otherwise, prepend...
9601 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9602 cp $export_symbols $output_objdir/$soname.def;
9603 else
9604 echo EXPORTS > $output_objdir/$soname.def;
9605 cat $export_symbols >> $output_objdir/$soname.def;
9606 fi~
9607 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9608 else
9609 ld_shlibs=no
9610 fi
9611 ;;
9612
9613 haiku*)
9614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9615 link_all_deplibs=yes
9616 ;;
9617
9618 interix[3-9]*)
9619 hardcode_direct=no
9620 hardcode_shlibpath_var=no
9621 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9622 export_dynamic_flag_spec='${wl}-E'
9623 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9624 # Instead, shared libraries are loaded at an image base (0x10000000 by
9625 # default) and relocated if they conflict, which is a slow very memory
9626 # consuming and fragmenting process. To avoid this, we pick a random,
9627 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9628 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9629 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9630 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'
9631 ;;
9632
9633 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9634 tmp_diet=no
9635 if test "$host_os" = linux-dietlibc; then
9636 case $cc_basename in
9637 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9638 esac
9639 fi
9640 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9641 && test "$tmp_diet" = no
9642 then
9643 tmp_addflag=' $pic_flag'
9644 tmp_sharedflag='-shared'
9645 case $cc_basename,$host_cpu in
9646 pgcc*) # Portland Group C compiler
9647 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'
9648 tmp_addflag=' $pic_flag'
9649 ;;
9650 pgf77* | pgf90* | pgf95* | pgfortran*)
9651 # Portland Group f77 and f90 compilers
9652 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'
9653 tmp_addflag=' $pic_flag -Mnomain' ;;
9654 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9655 tmp_addflag=' -i_dynamic' ;;
9656 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9657 tmp_addflag=' -i_dynamic -nofor_main' ;;
9658 ifc* | ifort*) # Intel Fortran compiler
9659 tmp_addflag=' -nofor_main' ;;
9660 lf95*) # Lahey Fortran 8.1
9661 whole_archive_flag_spec=
9662 tmp_sharedflag='--shared' ;;
9663 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9664 tmp_sharedflag='-qmkshrobj'
9665 tmp_addflag= ;;
9666 nvcc*) # Cuda Compiler Driver 2.2
9667 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'
9668 compiler_needs_object=yes
9669 ;;
9670 esac
9671 case `$CC -V 2>&1 | sed 5q` in
9672 *Sun\ C*) # Sun C 5.9
9673 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'
9674 compiler_needs_object=yes
9675 tmp_sharedflag='-G' ;;
9676 *Sun\ F*) # Sun Fortran 8.3
9677 tmp_sharedflag='-G' ;;
9678 esac
9679 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9680
9681 if test "x$supports_anon_versioning" = xyes; then
9682 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9683 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9684 echo "local: *; };" >> $output_objdir/$libname.ver~
9685 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9686 fi
9687
9688 case $cc_basename in
9689 xlf* | bgf* | bgxlf* | mpixlf*)
9690 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9691 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9692 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9693 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9694 if test "x$supports_anon_versioning" = xyes; then
9695 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9697 echo "local: *; };" >> $output_objdir/$libname.ver~
9698 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9699 fi
9700 ;;
9701 esac
9702 else
9703 ld_shlibs=no
9704 fi
9705 ;;
9706
9707 netbsd* | netbsdelf*-gnu)
9708 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9709 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9710 wlarc=
9711 else
9712 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9713 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9714 fi
9715 ;;
9716
9717 solaris*)
9718 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9719 ld_shlibs=no
9720 cat <<_LT_EOF 1>&2
9721
9722*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9723*** create shared libraries on Solaris systems. Therefore, libtool
9724*** is disabling shared libraries support. We urge you to upgrade GNU
9725*** binutils to release 2.9.1 or newer. Another option is to modify
9726*** your PATH or compiler configuration so that the native linker is
9727*** used, and then restart.
9728
9729_LT_EOF
9730 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9731 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9732 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9733 else
9734 ld_shlibs=no
9735 fi
9736 ;;
9737
9738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9739 case `$LD -v 2>&1` in
9740 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9741 ld_shlibs=no
9742 cat <<_LT_EOF 1>&2
9743
9744*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9745*** reliably create shared libraries on SCO systems. Therefore, libtool
9746*** is disabling shared libraries support. We urge you to upgrade GNU
9747*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9748*** your PATH or compiler configuration so that the native linker is
9749*** used, and then restart.
9750
9751_LT_EOF
9752 ;;
9753 *)
9754 # For security reasons, it is highly recommended that you always
9755 # use absolute paths for naming shared libraries, and exclude the
9756 # DT_RUNPATH tag from executables and libraries. But doing so
9757 # requires that you compile everything twice, which is a pain.
9758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9762 else
9763 ld_shlibs=no
9764 fi
9765 ;;
9766 esac
9767 ;;
9768
9769 sunos4*)
9770 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9771 wlarc=
9772 hardcode_direct=yes
9773 hardcode_shlibpath_var=no
9774 ;;
9775
9776 *)
9777 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9778 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9779 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9780 else
9781 ld_shlibs=no
9782 fi
9783 ;;
9784 esac
9785
9786 if test "$ld_shlibs" = no; then
9787 runpath_var=
9788 hardcode_libdir_flag_spec=
9789 export_dynamic_flag_spec=
9790 whole_archive_flag_spec=
9791 fi
9792 else
9793 # PORTME fill in a description of your system's linker (not GNU ld)
9794 case $host_os in
9795 aix3*)
9796 allow_undefined_flag=unsupported
9797 always_export_symbols=yes
9798 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'
9799 # Note: this linker hardcodes the directories in LIBPATH if there
9800 # are no directories specified by -L.
9801 hardcode_minus_L=yes
9802 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9803 # Neither direct hardcoding nor static linking is supported with a
9804 # broken collect2.
9805 hardcode_direct=unsupported
9806 fi
9807 ;;
9808
9809 aix[4-9]*)
9810 if test "$host_cpu" = ia64; then
9811 # On IA64, the linker does run time linking by default, so we don't
9812 # have to do anything special.
9813 aix_use_runtimelinking=no
9814 exp_sym_flag='-Bexport'
9815 no_entry_flag=""
9816 else
9817 # If we're using GNU nm, then we don't want the "-C" option.
9818 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9819 # Also, AIX nm treats weak defined symbols like other global
9820 # defined symbols, whereas GNU nm marks them as "W".
9821 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9822 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9823 else
9824 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9825 fi
9826 aix_use_runtimelinking=no
9827
9828 # Test if we are trying to use run time linking or normal
9829 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9830 # need to do runtime linking.
9831 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9832 for ld_flag in $LDFLAGS; do
9833 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9834 aix_use_runtimelinking=yes
9835 break
9836 fi
9837 done
9838 ;;
9839 esac
9840
9841 exp_sym_flag='-bexport'
9842 no_entry_flag='-bnoentry'
9843 fi
9844
9845 # When large executables or shared objects are built, AIX ld can
9846 # have problems creating the table of contents. If linking a library
9847 # or program results in "error TOC overflow" add -mminimal-toc to
9848 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9849 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9850
9851 archive_cmds=''
9852 hardcode_direct=yes
9853 hardcode_direct_absolute=yes
9854 hardcode_libdir_separator=':'
9855 link_all_deplibs=yes
9856 file_list_spec='${wl}-f,'
9857
9858 if test "$GCC" = yes; then
9859 case $host_os in aix4.[012]|aix4.[012].*)
9860 # We only want to do this on AIX 4.2 and lower, the check
9861 # below for broken collect2 doesn't work under 4.3+
9862 collect2name=`${CC} -print-prog-name=collect2`
9863 if test -f "$collect2name" &&
9864 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9865 then
9866 # We have reworked collect2
9867 :
9868 else
9869 # We have old collect2
9870 hardcode_direct=unsupported
9871 # It fails to find uninstalled libraries when the uninstalled
9872 # path is not listed in the libpath. Setting hardcode_minus_L
9873 # to unsupported forces relinking
9874 hardcode_minus_L=yes
9875 hardcode_libdir_flag_spec='-L$libdir'
9876 hardcode_libdir_separator=
9877 fi
9878 ;;
9879 esac
9880 shared_flag='-shared'
9881 if test "$aix_use_runtimelinking" = yes; then
9882 shared_flag="$shared_flag "'${wl}-G'
9883 fi
9884 link_all_deplibs=no
9885 else
9886 # not using gcc
9887 if test "$host_cpu" = ia64; then
9888 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9889 # chokes on -Wl,-G. The following line is correct:
9890 shared_flag='-G'
9891 else
9892 if test "$aix_use_runtimelinking" = yes; then
9893 shared_flag='${wl}-G'
9894 else
9895 shared_flag='${wl}-bM:SRE'
9896 fi
9897 fi
9898 fi
9899
9900 export_dynamic_flag_spec='${wl}-bexpall'
9901 # It seems that -bexpall does not export symbols beginning with
9902 # underscore (_), so it is better to generate a list of symbols to export.
9903 always_export_symbols=yes
9904 if test "$aix_use_runtimelinking" = yes; then
9905 # Warning - without using the other runtime loading flags (-brtl),
9906 # -berok will link without error, but may produce a broken library.
9907 allow_undefined_flag='-berok'
9908 # Determine the default libpath from the value encoded in an
9909 # empty executable.
9910 if test "${lt_cv_aix_libpath+set}" = set; then
9911 aix_libpath=$lt_cv_aix_libpath
9912else
9913 if ${lt_cv_aix_libpath_+:} false; then :
9914 $as_echo_n "(cached) " >&6
9915else
9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917/* end confdefs.h. */
9918
9919int
9920main ()
9921{
9922
9923 ;
9924 return 0;
9925}
9926_ACEOF
9927if ac_fn_c_try_link "$LINENO"; then :
9928
9929 lt_aix_libpath_sed='
9930 /Import File Strings/,/^$/ {
9931 /^0/ {
9932 s/^0 *\([^ ]*\) *$/\1/
9933 p
9934 }
9935 }'
9936 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9937 # Check for a 64-bit object if we didn't find anything.
9938 if test -z "$lt_cv_aix_libpath_"; then
9939 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9940 fi
9941fi
9942rm -f core conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9944 if test -z "$lt_cv_aix_libpath_"; then
9945 lt_cv_aix_libpath_="/usr/lib:/lib"
9946 fi
9947
9948fi
9949
9950 aix_libpath=$lt_cv_aix_libpath_
9951fi
9952
9953 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9954 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9955 else
9956 if test "$host_cpu" = ia64; then
9957 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9958 allow_undefined_flag="-z nodefs"
9959 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"
9960 else
9961 # Determine the default libpath from the value encoded in an
9962 # empty executable.
9963 if test "${lt_cv_aix_libpath+set}" = set; then
9964 aix_libpath=$lt_cv_aix_libpath
9965else
9966 if ${lt_cv_aix_libpath_+:} false; then :
9967 $as_echo_n "(cached) " >&6
9968else
9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970/* end confdefs.h. */
9971
9972int
9973main ()
9974{
9975
9976 ;
9977 return 0;
9978}
9979_ACEOF
9980if ac_fn_c_try_link "$LINENO"; then :
9981
9982 lt_aix_libpath_sed='
9983 /Import File Strings/,/^$/ {
9984 /^0/ {
9985 s/^0 *\([^ ]*\) *$/\1/
9986 p
9987 }
9988 }'
9989 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9990 # Check for a 64-bit object if we didn't find anything.
9991 if test -z "$lt_cv_aix_libpath_"; then
9992 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9993 fi
9994fi
9995rm -f core conftest.err conftest.$ac_objext \
9996 conftest$ac_exeext conftest.$ac_ext
9997 if test -z "$lt_cv_aix_libpath_"; then
9998 lt_cv_aix_libpath_="/usr/lib:/lib"
9999 fi
10000
10001fi
10002
10003 aix_libpath=$lt_cv_aix_libpath_
10004fi
10005
10006 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10007 # Warning - without using the other run time loading flags,
10008 # -berok will link without error, but may produce a broken library.
10009 no_undefined_flag=' ${wl}-bernotok'
10010 allow_undefined_flag=' ${wl}-berok'
10011 if test "$with_gnu_ld" = yes; then
10012 # We only use this code for GNU lds that support --whole-archive.
10013 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10014 else
10015 # Exported symbols can be pulled into shared objects from archives
10016 whole_archive_flag_spec='$convenience'
10017 fi
10018 archive_cmds_need_lc=yes
10019 # This is similar to how AIX traditionally builds its shared libraries.
10020 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10021 fi
10022 fi
10023 ;;
10024
10025 amigaos*)
10026 case $host_cpu in
10027 powerpc)
10028 # see comment about AmigaOS4 .so support
10029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10030 archive_expsym_cmds=''
10031 ;;
10032 m68k)
10033 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)'
10034 hardcode_libdir_flag_spec='-L$libdir'
10035 hardcode_minus_L=yes
10036 ;;
10037 esac
10038 ;;
10039
10040 bsdi[45]*)
10041 export_dynamic_flag_spec=-rdynamic
10042 ;;
10043
10044 cygwin* | mingw* | pw32* | cegcc*)
10045 # When not using gcc, we currently assume that we are using
10046 # Microsoft Visual C++.
10047 # hardcode_libdir_flag_spec is actually meaningless, as there is
10048 # no search path for DLLs.
10049 case $cc_basename in
10050 cl*)
10051 # Native MSVC
10052 hardcode_libdir_flag_spec=' '
10053 allow_undefined_flag=unsupported
10054 always_export_symbols=yes
10055 file_list_spec='@'
10056 # Tell ltmain to make .lib files, not .a files.
10057 libext=lib
10058 # Tell ltmain to make .dll files, not .so files.
10059 shrext_cmds=".dll"
10060 # FIXME: Setting linknames here is a bad hack.
10061 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10062 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10063 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10064 else
10065 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10066 fi~
10067 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10068 linknames='
10069 # The linker will not automatically build a static lib if we build a DLL.
10070 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10071 enable_shared_with_static_runtimes=yes
10072 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10074 # Don't use ranlib
10075 old_postinstall_cmds='chmod 644 $oldlib'
10076 postlink_cmds='lt_outputfile="@OUTPUT@"~
10077 lt_tool_outputfile="@TOOL_OUTPUT@"~
10078 case $lt_outputfile in
10079 *.exe|*.EXE) ;;
10080 *)
10081 lt_outputfile="$lt_outputfile.exe"
10082 lt_tool_outputfile="$lt_tool_outputfile.exe"
10083 ;;
10084 esac~
10085 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10086 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10087 $RM "$lt_outputfile.manifest";
10088 fi'
10089 ;;
10090 *)
10091 # Assume MSVC wrapper
10092 hardcode_libdir_flag_spec=' '
10093 allow_undefined_flag=unsupported
10094 # Tell ltmain to make .lib files, not .a files.
10095 libext=lib
10096 # Tell ltmain to make .dll files, not .so files.
10097 shrext_cmds=".dll"
10098 # FIXME: Setting linknames here is a bad hack.
10099 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10100 # The linker will automatically build a .lib file if we build a DLL.
10101 old_archive_from_new_cmds='true'
10102 # FIXME: Should let the user specify the lib program.
10103 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10104 enable_shared_with_static_runtimes=yes
10105 ;;
10106 esac
10107 ;;
10108
10109 darwin* | rhapsody*)
10110
10111
10112 archive_cmds_need_lc=no
10113 hardcode_direct=no
10114 hardcode_automatic=yes
10115 hardcode_shlibpath_var=unsupported
10116 if test "$lt_cv_ld_force_load" = "yes"; then
10117 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\"`'
10118
10119 else
10120 whole_archive_flag_spec=''
10121 fi
10122 link_all_deplibs=yes
10123 allow_undefined_flag="$_lt_dar_allow_undefined"
10124 case $cc_basename in
10125 ifort*) _lt_dar_can_shared=yes ;;
10126 *) _lt_dar_can_shared=$GCC ;;
10127 esac
10128 if test "$_lt_dar_can_shared" = "yes"; then
10129 output_verbose_link_cmd=func_echo_all
10130 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10131 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10132 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}"
10133 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}"
10134
10135 else
10136 ld_shlibs=no
10137 fi
10138
10139 ;;
10140
10141 dgux*)
10142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10143 hardcode_libdir_flag_spec='-L$libdir'
10144 hardcode_shlibpath_var=no
10145 ;;
10146
10147 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10148 # support. Future versions do this automatically, but an explicit c++rt0.o
10149 # does not break anything, and helps significantly (at the cost of a little
10150 # extra space).
10151 freebsd2.2*)
10152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10153 hardcode_libdir_flag_spec='-R$libdir'
10154 hardcode_direct=yes
10155 hardcode_shlibpath_var=no
10156 ;;
10157
10158 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10159 freebsd2.*)
10160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10161 hardcode_direct=yes
10162 hardcode_minus_L=yes
10163 hardcode_shlibpath_var=no
10164 ;;
10165
10166 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10167 freebsd* | dragonfly*)
10168 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10169 hardcode_libdir_flag_spec='-R$libdir'
10170 hardcode_direct=yes
10171 hardcode_shlibpath_var=no
10172 ;;
10173
10174 hpux9*)
10175 if test "$GCC" = yes; then
10176 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10177 else
10178 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10179 fi
10180 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10181 hardcode_libdir_separator=:
10182 hardcode_direct=yes
10183
10184 # hardcode_minus_L: Not really in the search PATH,
10185 # but as the default location of the library.
10186 hardcode_minus_L=yes
10187 export_dynamic_flag_spec='${wl}-E'
10188 ;;
10189
10190 hpux10*)
10191 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10192 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10193 else
10194 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10195 fi
10196 if test "$with_gnu_ld" = no; then
10197 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10198 hardcode_libdir_separator=:
10199 hardcode_direct=yes
10200 hardcode_direct_absolute=yes
10201 export_dynamic_flag_spec='${wl}-E'
10202 # hardcode_minus_L: Not really in the search PATH,
10203 # but as the default location of the library.
10204 hardcode_minus_L=yes
10205 fi
10206 ;;
10207
10208 hpux11*)
10209 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10210 case $host_cpu in
10211 hppa*64*)
10212 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10213 ;;
10214 ia64*)
10215 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10216 ;;
10217 *)
10218 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10219 ;;
10220 esac
10221 else
10222 case $host_cpu in
10223 hppa*64*)
10224 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10225 ;;
10226 ia64*)
10227 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10228 ;;
10229 *)
10230
10231 # Older versions of the 11.00 compiler do not understand -b yet
10232 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10234$as_echo_n "checking if $CC understands -b... " >&6; }
10235if ${lt_cv_prog_compiler__b+:} false; then :
10236 $as_echo_n "(cached) " >&6
10237else
10238 lt_cv_prog_compiler__b=no
10239 save_LDFLAGS="$LDFLAGS"
10240 LDFLAGS="$LDFLAGS -b"
10241 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10243 # The linker can only warn and ignore the option if not recognized
10244 # So say no if there are warnings
10245 if test -s conftest.err; then
10246 # Append any errors to the config.log.
10247 cat conftest.err 1>&5
10248 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10250 if diff conftest.exp conftest.er2 >/dev/null; then
10251 lt_cv_prog_compiler__b=yes
10252 fi
10253 else
10254 lt_cv_prog_compiler__b=yes
10255 fi
10256 fi
10257 $RM -r conftest*
10258 LDFLAGS="$save_LDFLAGS"
10259
10260fi
10261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10262$as_echo "$lt_cv_prog_compiler__b" >&6; }
10263
10264if test x"$lt_cv_prog_compiler__b" = xyes; then
10265 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10266else
10267 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10268fi
10269
10270 ;;
10271 esac
10272 fi
10273 if test "$with_gnu_ld" = no; then
10274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10275 hardcode_libdir_separator=:
10276
10277 case $host_cpu in
10278 hppa*64*|ia64*)
10279 hardcode_direct=no
10280 hardcode_shlibpath_var=no
10281 ;;
10282 *)
10283 hardcode_direct=yes
10284 hardcode_direct_absolute=yes
10285 export_dynamic_flag_spec='${wl}-E'
10286
10287 # hardcode_minus_L: Not really in the search PATH,
10288 # but as the default location of the library.
10289 hardcode_minus_L=yes
10290 ;;
10291 esac
10292 fi
10293 ;;
10294
10295 irix5* | irix6* | nonstopux*)
10296 if test "$GCC" = yes; then
10297 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'
10298 # Try to use the -exported_symbol ld option, if it does not
10299 # work, assume that -exports_file does not work either and
10300 # implicitly export all symbols.
10301 # This should be the same for all languages, so no per-tag cache variable.
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10303$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10304if ${lt_cv_irix_exported_symbol+:} false; then :
10305 $as_echo_n "(cached) " >&6
10306else
10307 save_LDFLAGS="$LDFLAGS"
10308 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310/* end confdefs.h. */
10311int foo (void) { return 0; }
10312_ACEOF
10313if ac_fn_c_try_link "$LINENO"; then :
10314 lt_cv_irix_exported_symbol=yes
10315else
10316 lt_cv_irix_exported_symbol=no
10317fi
10318rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10320 LDFLAGS="$save_LDFLAGS"
10321fi
10322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10323$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10324 if test "$lt_cv_irix_exported_symbol" = yes; then
10325 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'
10326 fi
10327 else
10328 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'
10329 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'
10330 fi
10331 archive_cmds_need_lc='no'
10332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10333 hardcode_libdir_separator=:
10334 inherit_rpath=yes
10335 link_all_deplibs=yes
10336 ;;
10337
10338 netbsd* | netbsdelf*-gnu)
10339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10341 else
10342 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10343 fi
10344 hardcode_libdir_flag_spec='-R$libdir'
10345 hardcode_direct=yes
10346 hardcode_shlibpath_var=no
10347 ;;
10348
10349 newsos6)
10350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351 hardcode_direct=yes
10352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10353 hardcode_libdir_separator=:
10354 hardcode_shlibpath_var=no
10355 ;;
10356
10357 *nto* | *qnx*)
10358 ;;
10359
10360 openbsd*)
10361 if test -f /usr/libexec/ld.so; then
10362 hardcode_direct=yes
10363 hardcode_shlibpath_var=no
10364 hardcode_direct_absolute=yes
10365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10367 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10368 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10369 export_dynamic_flag_spec='${wl}-E'
10370 else
10371 case $host_os in
10372 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10374 hardcode_libdir_flag_spec='-R$libdir'
10375 ;;
10376 *)
10377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10378 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10379 ;;
10380 esac
10381 fi
10382 else
10383 ld_shlibs=no
10384 fi
10385 ;;
10386
10387 os2*)
10388 hardcode_libdir_flag_spec='-L$libdir'
10389 hardcode_minus_L=yes
10390 allow_undefined_flag=unsupported
10391 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10392 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10393 ;;
10394
10395 osf3*)
10396 if test "$GCC" = yes; then
10397 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10398 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'
10399 else
10400 allow_undefined_flag=' -expect_unresolved \*'
10401 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'
10402 fi
10403 archive_cmds_need_lc='no'
10404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10405 hardcode_libdir_separator=:
10406 ;;
10407
10408 osf4* | osf5*) # as osf3* with the addition of -msym flag
10409 if test "$GCC" = yes; then
10410 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10411 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'
10412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10413 else
10414 allow_undefined_flag=' -expect_unresolved \*'
10415 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'
10416 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~
10417 $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'
10418
10419 # Both c and cxx compiler support -rpath directly
10420 hardcode_libdir_flag_spec='-rpath $libdir'
10421 fi
10422 archive_cmds_need_lc='no'
10423 hardcode_libdir_separator=:
10424 ;;
10425
10426 solaris*)
10427 no_undefined_flag=' -z defs'
10428 if test "$GCC" = yes; then
10429 wlarc='${wl}'
10430 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10431 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10432 $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'
10433 else
10434 case `$CC -V 2>&1` in
10435 *"Compilers 5.0"*)
10436 wlarc=''
10437 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10438 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10439 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10440 ;;
10441 *)
10442 wlarc='${wl}'
10443 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10444 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10445 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10446 ;;
10447 esac
10448 fi
10449 hardcode_libdir_flag_spec='-R$libdir'
10450 hardcode_shlibpath_var=no
10451 case $host_os in
10452 solaris2.[0-5] | solaris2.[0-5].*) ;;
10453 *)
10454 # The compiler driver will combine and reorder linker options,
10455 # but understands `-z linker_flag'. GCC discards it without `$wl',
10456 # but is careful enough not to reorder.
10457 # Supported since Solaris 2.6 (maybe 2.5.1?)
10458 if test "$GCC" = yes; then
10459 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10460 else
10461 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10462 fi
10463 ;;
10464 esac
10465 link_all_deplibs=yes
10466 ;;
10467
10468 sunos4*)
10469 if test "x$host_vendor" = xsequent; then
10470 # Use $CC to link under sequent, because it throws in some extra .o
10471 # files that make .init and .fini sections work.
10472 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10473 else
10474 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10475 fi
10476 hardcode_libdir_flag_spec='-L$libdir'
10477 hardcode_direct=yes
10478 hardcode_minus_L=yes
10479 hardcode_shlibpath_var=no
10480 ;;
10481
10482 sysv4)
10483 case $host_vendor in
10484 sni)
10485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10486 hardcode_direct=yes # is this really true???
10487 ;;
10488 siemens)
10489 ## LD is ld it makes a PLAMLIB
10490 ## CC just makes a GrossModule.
10491 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10492 reload_cmds='$CC -r -o $output$reload_objs'
10493 hardcode_direct=no
10494 ;;
10495 motorola)
10496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10497 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10498 ;;
10499 esac
10500 runpath_var='LD_RUN_PATH'
10501 hardcode_shlibpath_var=no
10502 ;;
10503
10504 sysv4.3*)
10505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10506 hardcode_shlibpath_var=no
10507 export_dynamic_flag_spec='-Bexport'
10508 ;;
10509
10510 sysv4*MP*)
10511 if test -d /usr/nec; then
10512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513 hardcode_shlibpath_var=no
10514 runpath_var=LD_RUN_PATH
10515 hardcode_runpath_var=yes
10516 ld_shlibs=yes
10517 fi
10518 ;;
10519
10520 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10521 no_undefined_flag='${wl}-z,text'
10522 archive_cmds_need_lc=no
10523 hardcode_shlibpath_var=no
10524 runpath_var='LD_RUN_PATH'
10525
10526 if test "$GCC" = yes; then
10527 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10528 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10529 else
10530 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10531 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10532 fi
10533 ;;
10534
10535 sysv5* | sco3.2v5* | sco5v6*)
10536 # Note: We can NOT use -z defs as we might desire, because we do not
10537 # link with -lc, and that would cause any symbols used from libc to
10538 # always be unresolved, which means just about no library would
10539 # ever link correctly. If we're not using GNU ld we use -z text
10540 # though, which does catch some bad symbols but isn't as heavy-handed
10541 # as -z defs.
10542 no_undefined_flag='${wl}-z,text'
10543 allow_undefined_flag='${wl}-z,nodefs'
10544 archive_cmds_need_lc=no
10545 hardcode_shlibpath_var=no
10546 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10547 hardcode_libdir_separator=':'
10548 link_all_deplibs=yes
10549 export_dynamic_flag_spec='${wl}-Bexport'
10550 runpath_var='LD_RUN_PATH'
10551
10552 if test "$GCC" = yes; then
10553 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10554 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10555 else
10556 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10557 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10558 fi
10559 ;;
10560
10561 uts4*)
10562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10563 hardcode_libdir_flag_spec='-L$libdir'
10564 hardcode_shlibpath_var=no
10565 ;;
10566
10567 *)
10568 ld_shlibs=no
10569 ;;
10570 esac
10571
10572 if test x$host_vendor = xsni; then
10573 case $host in
10574 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10575 export_dynamic_flag_spec='${wl}-Blargedynsym'
10576 ;;
10577 esac
10578 fi
10579 fi
10580
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10582$as_echo "$ld_shlibs" >&6; }
10583test "$ld_shlibs" = no && can_build_shared=no
10584
10585with_gnu_ld=$with_gnu_ld
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601#
10602# Do we need to explicitly link libc?
10603#
10604case "x$archive_cmds_need_lc" in
10605x|xyes)
10606 # Assume -lc should be added
10607 archive_cmds_need_lc=yes
10608
10609 if test "$enable_shared" = yes && test "$GCC" = yes; then
10610 case $archive_cmds in
10611 *'~'*)
10612 # FIXME: we may have to deal with multi-command sequences.
10613 ;;
10614 '$CC '*)
10615 # Test whether the compiler implicitly links with -lc since on some
10616 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10617 # to ld, don't add -lc before -lgcc.
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10619$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10620if ${lt_cv_archive_cmds_need_lc+:} false; then :
10621 $as_echo_n "(cached) " >&6
10622else
10623 $RM conftest*
10624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10625
10626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10627 (eval $ac_compile) 2>&5
10628 ac_status=$?
10629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10630 test $ac_status = 0; } 2>conftest.err; then
10631 soname=conftest
10632 lib=conftest
10633 libobjs=conftest.$ac_objext
10634 deplibs=
10635 wl=$lt_prog_compiler_wl
10636 pic_flag=$lt_prog_compiler_pic
10637 compiler_flags=-v
10638 linker_flags=-v
10639 verstring=
10640 output_objdir=.
10641 libname=conftest
10642 lt_save_allow_undefined_flag=$allow_undefined_flag
10643 allow_undefined_flag=
10644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10645 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10646 ac_status=$?
10647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10648 test $ac_status = 0; }
10649 then
10650 lt_cv_archive_cmds_need_lc=no
10651 else
10652 lt_cv_archive_cmds_need_lc=yes
10653 fi
10654 allow_undefined_flag=$lt_save_allow_undefined_flag
10655 else
10656 cat conftest.err 1>&5
10657 fi
10658 $RM conftest*
10659
10660fi
10661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10662$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10663 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10664 ;;
10665 esac
10666 fi
10667 ;;
10668esac
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10822$as_echo_n "checking dynamic linker characteristics... " >&6; }
10823
10824if test "$GCC" = yes; then
10825 case $host_os in
10826 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10827 *) lt_awk_arg="/^libraries:/" ;;
10828 esac
10829 case $host_os in
10830 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10831 *) lt_sed_strip_eq="s,=/,/,g" ;;
10832 esac
10833 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10834 case $lt_search_path_spec in
10835 *\;*)
10836 # if the path contains ";" then we assume it to be the separator
10837 # otherwise default to the standard path separator (i.e. ":") - it is
10838 # assumed that no part of a normal pathname contains ";" but that should
10839 # okay in the real world where ";" in dirpaths is itself problematic.
10840 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10841 ;;
10842 *)
10843 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10844 ;;
10845 esac
10846 # Ok, now we have the path, separated by spaces, we can step through it
10847 # and add multilib dir if necessary.
10848 lt_tmp_lt_search_path_spec=
10849 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10850 for lt_sys_path in $lt_search_path_spec; do
10851 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10852 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10853 else
10854 test -d "$lt_sys_path" && \
10855 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10856 fi
10857 done
10858 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10859BEGIN {RS=" "; FS="/|\n";} {
10860 lt_foo="";
10861 lt_count=0;
10862 for (lt_i = NF; lt_i > 0; lt_i--) {
10863 if ($lt_i != "" && $lt_i != ".") {
10864 if ($lt_i == "..") {
10865 lt_count++;
10866 } else {
10867 if (lt_count == 0) {
10868 lt_foo="/" $lt_i lt_foo;
10869 } else {
10870 lt_count--;
10871 }
10872 }
10873 }
10874 }
10875 if (lt_foo != "") { lt_freq[lt_foo]++; }
10876 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10877}'`
10878 # AWK program above erroneously prepends '/' to C:/dos/paths
10879 # for these hosts.
10880 case $host_os in
10881 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10882 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10883 esac
10884 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10885else
10886 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10887fi
10888library_names_spec=
10889libname_spec='lib$name'
10890soname_spec=
10891shrext_cmds=".so"
10892postinstall_cmds=
10893postuninstall_cmds=
10894finish_cmds=
10895finish_eval=
10896shlibpath_var=
10897shlibpath_overrides_runpath=unknown
10898version_type=none
10899dynamic_linker="$host_os ld.so"
10900sys_lib_dlsearch_path_spec="/lib /usr/lib"
10901need_lib_prefix=unknown
10902hardcode_into_libs=no
10903
10904# when you set need_version to no, make sure it does not cause -set_version
10905# flags to be left without arguments
10906need_version=unknown
10907
10908case $host_os in
10909aix3*)
10910 version_type=linux # correct to gnu/linux during the next big refactor
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10912 shlibpath_var=LIBPATH
10913
10914 # AIX 3 has no versioning support, so we append a major version to the name.
10915 soname_spec='${libname}${release}${shared_ext}$major'
10916 ;;
10917
10918aix[4-9]*)
10919 version_type=linux # correct to gnu/linux during the next big refactor
10920 need_lib_prefix=no
10921 need_version=no
10922 hardcode_into_libs=yes
10923 if test "$host_cpu" = ia64; then
10924 # AIX 5 supports IA64
10925 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 else
10928 # With GCC up to 2.95.x, collect2 would create an import file
10929 # for dependence libraries. The import file would start with
10930 # the line `#! .'. This would cause the generated library to
10931 # depend on `.', always an invalid library. This was fixed in
10932 # development snapshots of GCC prior to 3.0.
10933 case $host_os in
10934 aix4 | aix4.[01] | aix4.[01].*)
10935 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10936 echo ' yes '
10937 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10938 :
10939 else
10940 can_build_shared=no
10941 fi
10942 ;;
10943 esac
10944 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10945 # soname into executable. Probably we can add versioning support to
10946 # collect2, so additional links can be useful in future.
10947 if test "$aix_use_runtimelinking" = yes; then
10948 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10949 # instead of lib<name>.a to let people know that these are not
10950 # typical AIX shared libraries.
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 else
10953 # We preserve .a as extension for shared libraries through AIX4.2
10954 # and later when we are not doing run time linking.
10955 library_names_spec='${libname}${release}.a $libname.a'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 fi
10958 shlibpath_var=LIBPATH
10959 fi
10960 ;;
10961
10962amigaos*)
10963 case $host_cpu in
10964 powerpc)
10965 # Since July 2007 AmigaOS4 officially supports .so libraries.
10966 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968 ;;
10969 m68k)
10970 library_names_spec='$libname.ixlibrary $libname.a'
10971 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10972 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10973 ;;
10974 esac
10975 ;;
10976
10977beos*)
10978 library_names_spec='${libname}${shared_ext}'
10979 dynamic_linker="$host_os ld.so"
10980 shlibpath_var=LIBRARY_PATH
10981 ;;
10982
10983bsdi[45]*)
10984 version_type=linux # correct to gnu/linux during the next big refactor
10985 need_version=no
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10991 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10992 # the default ld.so.conf also contains /usr/contrib/lib and
10993 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10994 # libtool to hard-code these into programs
10995 ;;
10996
10997cygwin* | mingw* | pw32* | cegcc*)
10998 version_type=windows
10999 shrext_cmds=".dll"
11000 need_version=no
11001 need_lib_prefix=no
11002
11003 case $GCC,$cc_basename in
11004 yes,*)
11005 # gcc
11006 library_names_spec='$libname.dll.a'
11007 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11008 postinstall_cmds='base_file=`basename \${file}`~
11009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11010 dldir=$destdir/`dirname \$dlpath`~
11011 test -d \$dldir || mkdir -p \$dldir~
11012 $install_prog $dir/$dlname \$dldir/$dlname~
11013 chmod a+x \$dldir/$dlname~
11014 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11015 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11016 fi'
11017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11018 dlpath=$dir/\$dldll~
11019 $RM \$dlpath'
11020 shlibpath_overrides_runpath=yes
11021
11022 case $host_os in
11023 cygwin*)
11024 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11025 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11026
11027 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11028 ;;
11029 mingw* | cegcc*)
11030 # MinGW DLLs use traditional 'lib' prefix
11031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11032 ;;
11033 pw32*)
11034 # pw32 DLLs use 'pw' prefix rather than 'lib'
11035 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11036 ;;
11037 esac
11038 dynamic_linker='Win32 ld.exe'
11039 ;;
11040
11041 *,cl*)
11042 # Native MSVC
11043 libname_spec='$name'
11044 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11045 library_names_spec='${libname}.dll.lib'
11046
11047 case $build_os in
11048 mingw*)
11049 sys_lib_search_path_spec=
11050 lt_save_ifs=$IFS
11051 IFS=';'
11052 for lt_path in $LIB
11053 do
11054 IFS=$lt_save_ifs
11055 # Let DOS variable expansion print the short 8.3 style file name.
11056 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11057 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11058 done
11059 IFS=$lt_save_ifs
11060 # Convert to MSYS style.
11061 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11062 ;;
11063 cygwin*)
11064 # Convert to unix form, then to dos form, then back to unix form
11065 # but this time dos style (no spaces!) so that the unix form looks
11066 # like /cygdrive/c/PROGRA~1:/cygdr...
11067 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11068 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11069 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11070 ;;
11071 *)
11072 sys_lib_search_path_spec="$LIB"
11073 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11074 # It is most probably a Windows format PATH.
11075 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11076 else
11077 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11078 fi
11079 # FIXME: find the short name or the path components, as spaces are
11080 # common. (e.g. "Program Files" -> "PROGRA~1")
11081 ;;
11082 esac
11083
11084 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11085 postinstall_cmds='base_file=`basename \${file}`~
11086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11087 dldir=$destdir/`dirname \$dlpath`~
11088 test -d \$dldir || mkdir -p \$dldir~
11089 $install_prog $dir/$dlname \$dldir/$dlname'
11090 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11091 dlpath=$dir/\$dldll~
11092 $RM \$dlpath'
11093 shlibpath_overrides_runpath=yes
11094 dynamic_linker='Win32 link.exe'
11095 ;;
11096
11097 *)
11098 # Assume MSVC wrapper
11099 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11100 dynamic_linker='Win32 ld.exe'
11101 ;;
11102 esac
11103 # FIXME: first we should search . and the directory the executable is in
11104 shlibpath_var=PATH
11105 ;;
11106
11107darwin* | rhapsody*)
11108 dynamic_linker="$host_os dyld"
11109 version_type=darwin
11110 need_lib_prefix=no
11111 need_version=no
11112 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11113 soname_spec='${libname}${release}${major}$shared_ext'
11114 shlibpath_overrides_runpath=yes
11115 shlibpath_var=DYLD_LIBRARY_PATH
11116 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11117
11118 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11120 ;;
11121
11122dgux*)
11123 version_type=linux # correct to gnu/linux during the next big refactor
11124 need_lib_prefix=no
11125 need_version=no
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11127 soname_spec='${libname}${release}${shared_ext}$major'
11128 shlibpath_var=LD_LIBRARY_PATH
11129 ;;
11130
11131freebsd* | dragonfly*)
11132 # DragonFly does not have aout. When/if they implement a new
11133 # versioning mechanism, adjust this.
11134 if test -x /usr/bin/objformat; then
11135 objformat=`/usr/bin/objformat`
11136 else
11137 case $host_os in
11138 freebsd[23].*) objformat=aout ;;
11139 *) objformat=elf ;;
11140 esac
11141 fi
11142 version_type=freebsd-$objformat
11143 case $version_type in
11144 freebsd-elf*)
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11146 need_version=no
11147 need_lib_prefix=no
11148 ;;
11149 freebsd-*)
11150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11151 need_version=yes
11152 ;;
11153 esac
11154 shlibpath_var=LD_LIBRARY_PATH
11155 case $host_os in
11156 freebsd2.*)
11157 shlibpath_overrides_runpath=yes
11158 ;;
11159 freebsd3.[01]* | freebsdelf3.[01]*)
11160 shlibpath_overrides_runpath=yes
11161 hardcode_into_libs=yes
11162 ;;
11163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11165 shlibpath_overrides_runpath=no
11166 hardcode_into_libs=yes
11167 ;;
11168 *) # from 4.6 on, and DragonFly
11169 shlibpath_overrides_runpath=yes
11170 hardcode_into_libs=yes
11171 ;;
11172 esac
11173 ;;
11174
11175haiku*)
11176 version_type=linux # correct to gnu/linux during the next big refactor
11177 need_lib_prefix=no
11178 need_version=no
11179 dynamic_linker="$host_os runtime_loader"
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11181 soname_spec='${libname}${release}${shared_ext}$major'
11182 shlibpath_var=LIBRARY_PATH
11183 shlibpath_overrides_runpath=yes
11184 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11185 hardcode_into_libs=yes
11186 ;;
11187
11188hpux9* | hpux10* | hpux11*)
11189 # Give a soname corresponding to the major version so that dld.sl refuses to
11190 # link against other versions.
11191 version_type=sunos
11192 need_lib_prefix=no
11193 need_version=no
11194 case $host_cpu in
11195 ia64*)
11196 shrext_cmds='.so'
11197 hardcode_into_libs=yes
11198 dynamic_linker="$host_os dld.so"
11199 shlibpath_var=LD_LIBRARY_PATH
11200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 soname_spec='${libname}${release}${shared_ext}$major'
11203 if test "X$HPUX_IA64_MODE" = X32; then
11204 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11205 else
11206 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11207 fi
11208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11209 ;;
11210 hppa*64*)
11211 shrext_cmds='.sl'
11212 hardcode_into_libs=yes
11213 dynamic_linker="$host_os dld.sl"
11214 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11215 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11220 ;;
11221 *)
11222 shrext_cmds='.sl'
11223 dynamic_linker="$host_os dld.sl"
11224 shlibpath_var=SHLIB_PATH
11225 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227 soname_spec='${libname}${release}${shared_ext}$major'
11228 ;;
11229 esac
11230 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11231 postinstall_cmds='chmod 555 $lib'
11232 # or fails outright, so override atomically:
11233 install_override_mode=555
11234 ;;
11235
11236interix[3-9]*)
11237 version_type=linux # correct to gnu/linux during the next big refactor
11238 need_lib_prefix=no
11239 need_version=no
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11241 soname_spec='${libname}${release}${shared_ext}$major'
11242 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 shlibpath_overrides_runpath=no
11245 hardcode_into_libs=yes
11246 ;;
11247
11248irix5* | irix6* | nonstopux*)
11249 case $host_os in
11250 nonstopux*) version_type=nonstopux ;;
11251 *)
11252 if test "$lt_cv_prog_gnu_ld" = yes; then
11253 version_type=linux # correct to gnu/linux during the next big refactor
11254 else
11255 version_type=irix
11256 fi ;;
11257 esac
11258 need_lib_prefix=no
11259 need_version=no
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11262 case $host_os in
11263 irix5* | nonstopux*)
11264 libsuff= shlibsuff=
11265 ;;
11266 *)
11267 case $LD in # libtool.m4 will add one of these switches to LD
11268 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11269 libsuff= shlibsuff= libmagic=32-bit;;
11270 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11271 libsuff=32 shlibsuff=N32 libmagic=N32;;
11272 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11273 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11274 *) libsuff= shlibsuff= libmagic=never-match;;
11275 esac
11276 ;;
11277 esac
11278 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11279 shlibpath_overrides_runpath=no
11280 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11281 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11282 hardcode_into_libs=yes
11283 ;;
11284
11285# No shared lib support for Linux oldld, aout, or coff.
11286linux*oldld* | linux*aout* | linux*coff*)
11287 dynamic_linker=no
11288 ;;
11289
11290# This must be glibc/ELF.
11291linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11292 version_type=linux # correct to gnu/linux during the next big refactor
11293 need_lib_prefix=no
11294 need_version=no
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 shlibpath_overrides_runpath=no
11300
11301 # Some binutils ld are patched to set DT_RUNPATH
11302 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11303 $as_echo_n "(cached) " >&6
11304else
11305 lt_cv_shlibpath_overrides_runpath=no
11306 save_LDFLAGS=$LDFLAGS
11307 save_libdir=$libdir
11308 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11309 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311/* end confdefs.h. */
11312
11313int
11314main ()
11315{
11316
11317 ;
11318 return 0;
11319}
11320_ACEOF
11321if ac_fn_c_try_link "$LINENO"; then :
11322 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11323 lt_cv_shlibpath_overrides_runpath=yes
11324fi
11325fi
11326rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 LDFLAGS=$save_LDFLAGS
11329 libdir=$save_libdir
11330
11331fi
11332
11333 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11334
11335 # This implies no fast_install, which is unacceptable.
11336 # Some rework will be needed to allow for fast_install
11337 # before this can be enabled.
11338 hardcode_into_libs=yes
11339
11340 # Append ld.so.conf contents to the search path
11341 if test -f /etc/ld.so.conf; then
11342 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' ' '`
11343 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11344 fi
11345
11346 # We used to test for /lib/ld.so.1 and disable shared libraries on
11347 # powerpc, because MkLinux only supported shared libraries with the
11348 # GNU dynamic linker. Since this was broken with cross compilers,
11349 # most powerpc-linux boxes support dynamic linking these days and
11350 # people can always --disable-shared, the test was removed, and we
11351 # assume the GNU/Linux dynamic linker is in use.
11352 dynamic_linker='GNU/Linux ld.so'
11353 ;;
11354
11355netbsdelf*-gnu)
11356 version_type=linux
11357 need_lib_prefix=no
11358 need_version=no
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 shlibpath_overrides_runpath=no
11363 hardcode_into_libs=yes
11364 dynamic_linker='NetBSD ld.elf_so'
11365 ;;
11366
11367netbsd*)
11368 version_type=sunos
11369 need_lib_prefix=no
11370 need_version=no
11371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11374 dynamic_linker='NetBSD (a.out) ld.so'
11375 else
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11377 soname_spec='${libname}${release}${shared_ext}$major'
11378 dynamic_linker='NetBSD ld.elf_so'
11379 fi
11380 shlibpath_var=LD_LIBRARY_PATH
11381 shlibpath_overrides_runpath=yes
11382 hardcode_into_libs=yes
11383 ;;
11384
11385newsos6)
11386 version_type=linux # correct to gnu/linux during the next big refactor
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 shlibpath_var=LD_LIBRARY_PATH
11389 shlibpath_overrides_runpath=yes
11390 ;;
11391
11392*nto* | *qnx*)
11393 version_type=qnx
11394 need_lib_prefix=no
11395 need_version=no
11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11397 soname_spec='${libname}${release}${shared_ext}$major'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 shlibpath_overrides_runpath=no
11400 hardcode_into_libs=yes
11401 dynamic_linker='ldqnx.so'
11402 ;;
11403
11404openbsd*)
11405 version_type=sunos
11406 sys_lib_dlsearch_path_spec="/usr/lib"
11407 need_lib_prefix=no
11408 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11409 case $host_os in
11410 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11411 *) need_version=no ;;
11412 esac
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11415 shlibpath_var=LD_LIBRARY_PATH
11416 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11417 case $host_os in
11418 openbsd2.[89] | openbsd2.[89].*)
11419 shlibpath_overrides_runpath=no
11420 ;;
11421 *)
11422 shlibpath_overrides_runpath=yes
11423 ;;
11424 esac
11425 else
11426 shlibpath_overrides_runpath=yes
11427 fi
11428 ;;
11429
11430os2*)
11431 libname_spec='$name'
11432 shrext_cmds=".dll"
11433 need_lib_prefix=no
11434 library_names_spec='$libname${shared_ext} $libname.a'
11435 dynamic_linker='OS/2 ld.exe'
11436 shlibpath_var=LIBPATH
11437 ;;
11438
11439osf3* | osf4* | osf5*)
11440 version_type=osf
11441 need_lib_prefix=no
11442 need_version=no
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11447 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11448 ;;
11449
11450rdos*)
11451 dynamic_linker=no
11452 ;;
11453
11454solaris*)
11455 version_type=linux # correct to gnu/linux during the next big refactor
11456 need_lib_prefix=no
11457 need_version=no
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459 soname_spec='${libname}${release}${shared_ext}$major'
11460 shlibpath_var=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath=yes
11462 hardcode_into_libs=yes
11463 # ldd complains unless libraries are executable
11464 postinstall_cmds='chmod +x $lib'
11465 ;;
11466
11467sunos4*)
11468 version_type=sunos
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11470 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11471 shlibpath_var=LD_LIBRARY_PATH
11472 shlibpath_overrides_runpath=yes
11473 if test "$with_gnu_ld" = yes; then
11474 need_lib_prefix=no
11475 fi
11476 need_version=yes
11477 ;;
11478
11479sysv4 | sysv4.3*)
11480 version_type=linux # correct to gnu/linux during the next big refactor
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11482 soname_spec='${libname}${release}${shared_ext}$major'
11483 shlibpath_var=LD_LIBRARY_PATH
11484 case $host_vendor in
11485 sni)
11486 shlibpath_overrides_runpath=no
11487 need_lib_prefix=no
11488 runpath_var=LD_RUN_PATH
11489 ;;
11490 siemens)
11491 need_lib_prefix=no
11492 ;;
11493 motorola)
11494 need_lib_prefix=no
11495 need_version=no
11496 shlibpath_overrides_runpath=no
11497 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11498 ;;
11499 esac
11500 ;;
11501
11502sysv4*MP*)
11503 if test -d /usr/nec ;then
11504 version_type=linux # correct to gnu/linux during the next big refactor
11505 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11506 soname_spec='$libname${shared_ext}.$major'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 fi
11509 ;;
11510
11511sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11512 version_type=freebsd-elf
11513 need_lib_prefix=no
11514 need_version=no
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11516 soname_spec='${libname}${release}${shared_ext}$major'
11517 shlibpath_var=LD_LIBRARY_PATH
11518 shlibpath_overrides_runpath=yes
11519 hardcode_into_libs=yes
11520 if test "$with_gnu_ld" = yes; then
11521 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11522 else
11523 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11524 case $host_os in
11525 sco3.2v5*)
11526 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11527 ;;
11528 esac
11529 fi
11530 sys_lib_dlsearch_path_spec='/usr/lib'
11531 ;;
11532
11533tpf*)
11534 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11535 version_type=linux # correct to gnu/linux during the next big refactor
11536 need_lib_prefix=no
11537 need_version=no
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539 shlibpath_var=LD_LIBRARY_PATH
11540 shlibpath_overrides_runpath=no
11541 hardcode_into_libs=yes
11542 ;;
11543
11544uts4*)
11545 version_type=linux # correct to gnu/linux during the next big refactor
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 ;;
11550
11551*)
11552 dynamic_linker=no
11553 ;;
11554esac
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11556$as_echo "$dynamic_linker" >&6; }
11557test "$dynamic_linker" = no && can_build_shared=no
11558
11559variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11560if test "$GCC" = yes; then
11561 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11562fi
11563
11564if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11565 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11566fi
11567if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11568 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11569fi
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11663$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11664hardcode_action=
11665if test -n "$hardcode_libdir_flag_spec" ||
11666 test -n "$runpath_var" ||
11667 test "X$hardcode_automatic" = "Xyes" ; then
11668
11669 # We can hardcode non-existent directories.
11670 if test "$hardcode_direct" != no &&
11671 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11672 # have to relink, otherwise we might link with an installed library
11673 # when we should be linking with a yet-to-be-installed one
11674 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11675 test "$hardcode_minus_L" != no; then
11676 # Linking always hardcodes the temporary library directory.
11677 hardcode_action=relink
11678 else
11679 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11680 hardcode_action=immediate
11681 fi
11682else
11683 # We cannot hardcode anything, or else we can only hardcode existing
11684 # directories.
11685 hardcode_action=unsupported
11686fi
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11688$as_echo "$hardcode_action" >&6; }
11689
11690if test "$hardcode_action" = relink ||
11691 test "$inherit_rpath" = yes; then
11692 # Fast installation is not supported
11693 enable_fast_install=no
11694elif test "$shlibpath_overrides_runpath" = yes ||
11695 test "$enable_shared" = no; then
11696 # Fast installation is not necessary
11697 enable_fast_install=needless
11698fi
11699
11700
11701
11702
11703
11704
11705 if test "x$enable_dlopen" != xyes; then
11706 enable_dlopen=unknown
11707 enable_dlopen_self=unknown
11708 enable_dlopen_self_static=unknown
11709else
11710 lt_cv_dlopen=no
11711 lt_cv_dlopen_libs=
11712
11713 case $host_os in
11714 beos*)
11715 lt_cv_dlopen="load_add_on"
11716 lt_cv_dlopen_libs=
11717 lt_cv_dlopen_self=yes
11718 ;;
11719
11720 mingw* | pw32* | cegcc*)
11721 lt_cv_dlopen="LoadLibrary"
11722 lt_cv_dlopen_libs=
11723 ;;
11724
11725 cygwin*)
11726 lt_cv_dlopen="dlopen"
11727 lt_cv_dlopen_libs=
11728 ;;
11729
11730 darwin*)
11731 # if libdl is installed we need to link against it
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11733$as_echo_n "checking for dlopen in -ldl... " >&6; }
11734if ${ac_cv_lib_dl_dlopen+:} false; then :
11735 $as_echo_n "(cached) " >&6
11736else
11737 ac_check_lib_save_LIBS=$LIBS
11738LIBS="-ldl $LIBS"
11739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740/* end confdefs.h. */
11741
11742/* Override any GCC internal prototype to avoid an error.
11743 Use char because int might match the return type of a GCC
11744 builtin and then its argument prototype would still apply. */
11745#ifdef __cplusplus
11746extern "C"
11747#endif
11748char dlopen ();
11749int
11750main ()
11751{
11752return dlopen ();
11753 ;
11754 return 0;
11755}
11756_ACEOF
11757if ac_fn_c_try_link "$LINENO"; then :
11758 ac_cv_lib_dl_dlopen=yes
11759else
11760 ac_cv_lib_dl_dlopen=no
11761fi
11762rm -f core conftest.err conftest.$ac_objext \
11763 conftest$ac_exeext conftest.$ac_ext
11764LIBS=$ac_check_lib_save_LIBS
11765fi
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11767$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11768if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11770else
11771
11772 lt_cv_dlopen="dyld"
11773 lt_cv_dlopen_libs=
11774 lt_cv_dlopen_self=yes
11775
11776fi
11777
11778 ;;
11779
11780 *)
11781 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11782if test "x$ac_cv_func_shl_load" = xyes; then :
11783 lt_cv_dlopen="shl_load"
11784else
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11786$as_echo_n "checking for shl_load in -ldld... " >&6; }
11787if ${ac_cv_lib_dld_shl_load+:} false; then :
11788 $as_echo_n "(cached) " >&6
11789else
11790 ac_check_lib_save_LIBS=$LIBS
11791LIBS="-ldld $LIBS"
11792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793/* end confdefs.h. */
11794
11795/* Override any GCC internal prototype to avoid an error.
11796 Use char because int might match the return type of a GCC
11797 builtin and then its argument prototype would still apply. */
11798#ifdef __cplusplus
11799extern "C"
11800#endif
11801char shl_load ();
11802int
11803main ()
11804{
11805return shl_load ();
11806 ;
11807 return 0;
11808}
11809_ACEOF
11810if ac_fn_c_try_link "$LINENO"; then :
11811 ac_cv_lib_dld_shl_load=yes
11812else
11813 ac_cv_lib_dld_shl_load=no
11814fi
11815rm -f core conftest.err conftest.$ac_objext \
11816 conftest$ac_exeext conftest.$ac_ext
11817LIBS=$ac_check_lib_save_LIBS
11818fi
11819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11820$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11821if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11822 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11823else
11824 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11825if test "x$ac_cv_func_dlopen" = xyes; then :
11826 lt_cv_dlopen="dlopen"
11827else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11829$as_echo_n "checking for dlopen in -ldl... " >&6; }
11830if ${ac_cv_lib_dl_dlopen+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832else
11833 ac_check_lib_save_LIBS=$LIBS
11834LIBS="-ldl $LIBS"
11835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836/* end confdefs.h. */
11837
11838/* Override any GCC internal prototype to avoid an error.
11839 Use char because int might match the return type of a GCC
11840 builtin and then its argument prototype would still apply. */
11841#ifdef __cplusplus
11842extern "C"
11843#endif
11844char dlopen ();
11845int
11846main ()
11847{
11848return dlopen ();
11849 ;
11850 return 0;
11851}
11852_ACEOF
11853if ac_fn_c_try_link "$LINENO"; then :
11854 ac_cv_lib_dl_dlopen=yes
11855else
11856 ac_cv_lib_dl_dlopen=no
11857fi
11858rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11860LIBS=$ac_check_lib_save_LIBS
11861fi
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11863$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11864if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11865 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11866else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11868$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11869if ${ac_cv_lib_svld_dlopen+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871else
11872 ac_check_lib_save_LIBS=$LIBS
11873LIBS="-lsvld $LIBS"
11874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875/* end confdefs.h. */
11876
11877/* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880#ifdef __cplusplus
11881extern "C"
11882#endif
11883char dlopen ();
11884int
11885main ()
11886{
11887return dlopen ();
11888 ;
11889 return 0;
11890}
11891_ACEOF
11892if ac_fn_c_try_link "$LINENO"; then :
11893 ac_cv_lib_svld_dlopen=yes
11894else
11895 ac_cv_lib_svld_dlopen=no
11896fi
11897rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899LIBS=$ac_check_lib_save_LIBS
11900fi
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11902$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11903if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11905else
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11907$as_echo_n "checking for dld_link in -ldld... " >&6; }
11908if ${ac_cv_lib_dld_dld_link+:} false; then :
11909 $as_echo_n "(cached) " >&6
11910else
11911 ac_check_lib_save_LIBS=$LIBS
11912LIBS="-ldld $LIBS"
11913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914/* end confdefs.h. */
11915
11916/* Override any GCC internal prototype to avoid an error.
11917 Use char because int might match the return type of a GCC
11918 builtin and then its argument prototype would still apply. */
11919#ifdef __cplusplus
11920extern "C"
11921#endif
11922char dld_link ();
11923int
11924main ()
11925{
11926return dld_link ();
11927 ;
11928 return 0;
11929}
11930_ACEOF
11931if ac_fn_c_try_link "$LINENO"; then :
11932 ac_cv_lib_dld_dld_link=yes
11933else
11934 ac_cv_lib_dld_dld_link=no
11935fi
11936rm -f core conftest.err conftest.$ac_objext \
11937 conftest$ac_exeext conftest.$ac_ext
11938LIBS=$ac_check_lib_save_LIBS
11939fi
11940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11941$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11942if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11943 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11944fi
11945
11946
11947fi
11948
11949
11950fi
11951
11952
11953fi
11954
11955
11956fi
11957
11958
11959fi
11960
11961 ;;
11962 esac
11963
11964 if test "x$lt_cv_dlopen" != xno; then
11965 enable_dlopen=yes
11966 else
11967 enable_dlopen=no
11968 fi
11969
11970 case $lt_cv_dlopen in
11971 dlopen)
11972 save_CPPFLAGS="$CPPFLAGS"
11973 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11974
11975 save_LDFLAGS="$LDFLAGS"
11976 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11977
11978 save_LIBS="$LIBS"
11979 LIBS="$lt_cv_dlopen_libs $LIBS"
11980
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11982$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11983if ${lt_cv_dlopen_self+:} false; then :
11984 $as_echo_n "(cached) " >&6
11985else
11986 if test "$cross_compiling" = yes; then :
11987 lt_cv_dlopen_self=cross
11988else
11989 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11990 lt_status=$lt_dlunknown
11991 cat > conftest.$ac_ext <<_LT_EOF
11992#line $LINENO "configure"
11993#include "confdefs.h"
11994
11995#if HAVE_DLFCN_H
11996#include <dlfcn.h>
11997#endif
11998
11999#include <stdio.h>
12000
12001#ifdef RTLD_GLOBAL
12002# define LT_DLGLOBAL RTLD_GLOBAL
12003#else
12004# ifdef DL_GLOBAL
12005# define LT_DLGLOBAL DL_GLOBAL
12006# else
12007# define LT_DLGLOBAL 0
12008# endif
12009#endif
12010
12011/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12012 find out it does not work in some platform. */
12013#ifndef LT_DLLAZY_OR_NOW
12014# ifdef RTLD_LAZY
12015# define LT_DLLAZY_OR_NOW RTLD_LAZY
12016# else
12017# ifdef DL_LAZY
12018# define LT_DLLAZY_OR_NOW DL_LAZY
12019# else
12020# ifdef RTLD_NOW
12021# define LT_DLLAZY_OR_NOW RTLD_NOW
12022# else
12023# ifdef DL_NOW
12024# define LT_DLLAZY_OR_NOW DL_NOW
12025# else
12026# define LT_DLLAZY_OR_NOW 0
12027# endif
12028# endif
12029# endif
12030# endif
12031#endif
12032
12033/* When -fvisbility=hidden is used, assume the code has been annotated
12034 correspondingly for the symbols needed. */
12035#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12036int fnord () __attribute__((visibility("default")));
12037#endif
12038
12039int fnord () { return 42; }
12040int main ()
12041{
12042 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12043 int status = $lt_dlunknown;
12044
12045 if (self)
12046 {
12047 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12048 else
12049 {
12050 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12051 else puts (dlerror ());
12052 }
12053 /* dlclose (self); */
12054 }
12055 else
12056 puts (dlerror ());
12057
12058 return status;
12059}
12060_LT_EOF
12061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12062 (eval $ac_link) 2>&5
12063 ac_status=$?
12064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12065 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12066 (./conftest; exit; ) >&5 2>/dev/null
12067 lt_status=$?
12068 case x$lt_status in
12069 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12070 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12071 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12072 esac
12073 else :
12074 # compilation failed
12075 lt_cv_dlopen_self=no
12076 fi
12077fi
12078rm -fr conftest*
12079
12080
12081fi
12082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12083$as_echo "$lt_cv_dlopen_self" >&6; }
12084
12085 if test "x$lt_cv_dlopen_self" = xyes; then
12086 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12088$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12089if ${lt_cv_dlopen_self_static+:} false; then :
12090 $as_echo_n "(cached) " >&6
12091else
12092 if test "$cross_compiling" = yes; then :
12093 lt_cv_dlopen_self_static=cross
12094else
12095 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12096 lt_status=$lt_dlunknown
12097 cat > conftest.$ac_ext <<_LT_EOF
12098#line $LINENO "configure"
12099#include "confdefs.h"
12100
12101#if HAVE_DLFCN_H
12102#include <dlfcn.h>
12103#endif
12104
12105#include <stdio.h>
12106
12107#ifdef RTLD_GLOBAL
12108# define LT_DLGLOBAL RTLD_GLOBAL
12109#else
12110# ifdef DL_GLOBAL
12111# define LT_DLGLOBAL DL_GLOBAL
12112# else
12113# define LT_DLGLOBAL 0
12114# endif
12115#endif
12116
12117/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12118 find out it does not work in some platform. */
12119#ifndef LT_DLLAZY_OR_NOW
12120# ifdef RTLD_LAZY
12121# define LT_DLLAZY_OR_NOW RTLD_LAZY
12122# else
12123# ifdef DL_LAZY
12124# define LT_DLLAZY_OR_NOW DL_LAZY
12125# else
12126# ifdef RTLD_NOW
12127# define LT_DLLAZY_OR_NOW RTLD_NOW
12128# else
12129# ifdef DL_NOW
12130# define LT_DLLAZY_OR_NOW DL_NOW
12131# else
12132# define LT_DLLAZY_OR_NOW 0
12133# endif
12134# endif
12135# endif
12136# endif
12137#endif
12138
12139/* When -fvisbility=hidden is used, assume the code has been annotated
12140 correspondingly for the symbols needed. */
12141#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12142int fnord () __attribute__((visibility("default")));
12143#endif
12144
12145int fnord () { return 42; }
12146int main ()
12147{
12148 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12149 int status = $lt_dlunknown;
12150
12151 if (self)
12152 {
12153 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12154 else
12155 {
12156 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12157 else puts (dlerror ());
12158 }
12159 /* dlclose (self); */
12160 }
12161 else
12162 puts (dlerror ());
12163
12164 return status;
12165}
12166_LT_EOF
12167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12168 (eval $ac_link) 2>&5
12169 ac_status=$?
12170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12171 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12172 (./conftest; exit; ) >&5 2>/dev/null
12173 lt_status=$?
12174 case x$lt_status in
12175 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12176 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12177 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12178 esac
12179 else :
12180 # compilation failed
12181 lt_cv_dlopen_self_static=no
12182 fi
12183fi
12184rm -fr conftest*
12185
12186
12187fi
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12189$as_echo "$lt_cv_dlopen_self_static" >&6; }
12190 fi
12191
12192 CPPFLAGS="$save_CPPFLAGS"
12193 LDFLAGS="$save_LDFLAGS"
12194 LIBS="$save_LIBS"
12195 ;;
12196 esac
12197
12198 case $lt_cv_dlopen_self in
12199 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12200 *) enable_dlopen_self=unknown ;;
12201 esac
12202
12203 case $lt_cv_dlopen_self_static in
12204 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12205 *) enable_dlopen_self_static=unknown ;;
12206 esac
12207fi
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225striplib=
12226old_striplib=
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12228$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12229if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12230 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12231 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12233$as_echo "yes" >&6; }
12234else
12235# FIXME - insert some real tests, host_os isn't really good enough
12236 case $host_os in
12237 darwin*)
12238 if test -n "$STRIP" ; then
12239 striplib="$STRIP -x"
12240 old_striplib="$STRIP -S"
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12242$as_echo "yes" >&6; }
12243 else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245$as_echo "no" >&6; }
12246 fi
12247 ;;
12248 *)
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250$as_echo "no" >&6; }
12251 ;;
12252 esac
12253fi
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266 # Report which library types will actually be built
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12268$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12270$as_echo "$can_build_shared" >&6; }
12271
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12273$as_echo_n "checking whether to build shared libraries... " >&6; }
12274 test "$can_build_shared" = "no" && enable_shared=no
12275
12276 # On AIX, shared libraries and static libraries use the same namespace, and
12277 # are all built from PIC.
12278 case $host_os in
12279 aix3*)
12280 test "$enable_shared" = yes && enable_static=no
12281 if test -n "$RANLIB"; then
12282 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12283 postinstall_cmds='$RANLIB $lib'
12284 fi
12285 ;;
12286
12287 aix[4-9]*)
12288 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12289 test "$enable_shared" = yes && enable_static=no
12290 fi
12291 ;;
12292 esac
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12294$as_echo "$enable_shared" >&6; }
12295
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12297$as_echo_n "checking whether to build static libraries... " >&6; }
12298 # Make sure either enable_shared or enable_static is yes.
12299 test "$enable_shared" = yes || enable_static=yes
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12301$as_echo "$enable_static" >&6; }
12302
12303
12304
12305
12306fi
12307ac_ext=c
12308ac_cpp='$CPP $CPPFLAGS'
12309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12311ac_compiler_gnu=$ac_cv_c_compiler_gnu
12312
12313CC="$lt_save_CC"
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329 ac_config_commands="$ac_config_commands libtool"
12330
12331
12332
12333
12334# Only expand once:
12335
12336
12337if test -n "$ac_tool_prefix"; then
12338 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12339set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12341$as_echo_n "checking for $ac_word... " >&6; }
12342if ${ac_cv_prog_RANLIB+:} false; then :
12343 $as_echo_n "(cached) " >&6
12344else
12345 if test -n "$RANLIB"; then
12346 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12347else
12348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349for as_dir in $PATH
12350do
12351 IFS=$as_save_IFS
12352 test -z "$as_dir" && as_dir=.
12353 for ac_exec_ext in '' $ac_executable_extensions; do
12354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12355 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12357 break 2
12358 fi
12359done
12360 done
12361IFS=$as_save_IFS
12362
12363fi
12364fi
12365RANLIB=$ac_cv_prog_RANLIB
12366if test -n "$RANLIB"; then
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12368$as_echo "$RANLIB" >&6; }
12369else
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371$as_echo "no" >&6; }
12372fi
12373
12374
12375fi
12376if test -z "$ac_cv_prog_RANLIB"; then
12377 ac_ct_RANLIB=$RANLIB
12378 # Extract the first word of "ranlib", so it can be a program name with args.
12379set dummy ranlib; ac_word=$2
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12381$as_echo_n "checking for $ac_word... " >&6; }
12382if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12383 $as_echo_n "(cached) " >&6
12384else
12385 if test -n "$ac_ct_RANLIB"; then
12386 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12387else
12388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389for as_dir in $PATH
12390do
12391 IFS=$as_save_IFS
12392 test -z "$as_dir" && as_dir=.
12393 for ac_exec_ext in '' $ac_executable_extensions; do
12394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12395 ac_cv_prog_ac_ct_RANLIB="ranlib"
12396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12397 break 2
12398 fi
12399done
12400 done
12401IFS=$as_save_IFS
12402
12403fi
12404fi
12405ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12406if test -n "$ac_ct_RANLIB"; then
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12408$as_echo "$ac_ct_RANLIB" >&6; }
12409else
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411$as_echo "no" >&6; }
12412fi
12413
12414 if test "x$ac_ct_RANLIB" = x; then
12415 RANLIB=":"
12416 else
12417 case $cross_compiling:$ac_tool_warned in
12418yes:)
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12421ac_tool_warned=yes ;;
12422esac
12423 RANLIB=$ac_ct_RANLIB
12424 fi
12425else
12426 RANLIB="$ac_cv_prog_RANLIB"
12427fi
12428
12429
12430
12431
12432
12433
12434
12435
12436if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12437 if test -n "$ac_tool_prefix"; then
12438 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12439set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12441$as_echo_n "checking for $ac_word... " >&6; }
12442if ${ac_cv_path_PKG_CONFIG+:} false; then :
12443 $as_echo_n "(cached) " >&6
12444else
12445 case $PKG_CONFIG in
12446 [\\/]* | ?:[\\/]*)
12447 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12448 ;;
12449 *)
12450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451for as_dir in $PATH
12452do
12453 IFS=$as_save_IFS
12454 test -z "$as_dir" && as_dir=.
12455 for ac_exec_ext in '' $ac_executable_extensions; do
12456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12457 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12459 break 2
12460 fi
12461done
12462 done
12463IFS=$as_save_IFS
12464
12465 ;;
12466esac
12467fi
12468PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12469if test -n "$PKG_CONFIG"; then
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12471$as_echo "$PKG_CONFIG" >&6; }
12472else
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12474$as_echo "no" >&6; }
12475fi
12476
12477
12478fi
12479if test -z "$ac_cv_path_PKG_CONFIG"; then
12480 ac_pt_PKG_CONFIG=$PKG_CONFIG
12481 # Extract the first word of "pkg-config", so it can be a program name with args.
12482set dummy pkg-config; ac_word=$2
12483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12484$as_echo_n "checking for $ac_word... " >&6; }
12485if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12486 $as_echo_n "(cached) " >&6
12487else
12488 case $ac_pt_PKG_CONFIG in
12489 [\\/]* | ?:[\\/]*)
12490 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12491 ;;
12492 *)
12493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494for as_dir in $PATH
12495do
12496 IFS=$as_save_IFS
12497 test -z "$as_dir" && as_dir=.
12498 for ac_exec_ext in '' $ac_executable_extensions; do
12499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12500 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12502 break 2
12503 fi
12504done
12505 done
12506IFS=$as_save_IFS
12507
12508 ;;
12509esac
12510fi
12511ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12512if test -n "$ac_pt_PKG_CONFIG"; then
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12514$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12515else
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517$as_echo "no" >&6; }
12518fi
12519
12520 if test "x$ac_pt_PKG_CONFIG" = x; then
12521 PKG_CONFIG=""
12522 else
12523 case $cross_compiling:$ac_tool_warned in
12524yes:)
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12527ac_tool_warned=yes ;;
12528esac
12529 PKG_CONFIG=$ac_pt_PKG_CONFIG
12530 fi
12531else
12532 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12533fi
12534
12535fi
12536if test -n "$PKG_CONFIG"; then
12537 _pkg_min_version=0.9.0
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12539$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12540 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12542$as_echo "yes" >&6; }
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545$as_echo "no" >&6; }
12546 PKG_CONFIG=""
12547 fi
12548fi
12549
12550ac_config_files="$ac_config_files Makefile libqrencode.pc tests/Makefile qrencode.spec qrencode.1"
12551
12552
12553for ac_func in strdup
12554do :
12555 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
12556if test "x$ac_cv_func_strdup" = xyes; then :
12557 cat >>confdefs.h <<_ACEOF
12558#define HAVE_STRDUP 1
12559_ACEOF
12560
12561fi
12562done
12563
12564
12565# Check whether --enable-thread-safety was given.
12566if test "${enable_thread_safety+set}" = set; then :
12567 enableval=$enable_thread_safety;
12568else
12569 enable_thread_safety=yes
12570fi
12571
12572
12573if test x$enable_thread_safety = xyes; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
12575$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
12576if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
12577 $as_echo_n "(cached) " >&6
12578else
12579 ac_check_lib_save_LIBS=$LIBS
12580LIBS="-lpthread $LIBS"
12581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582/* end confdefs.h. */
12583
12584/* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
12587#ifdef __cplusplus
12588extern "C"
12589#endif
12590char pthread_mutex_init ();
12591int
12592main ()
12593{
12594return pthread_mutex_init ();
12595 ;
12596 return 0;
12597}
12598_ACEOF
12599if ac_fn_c_try_link "$LINENO"; then :
12600 ac_cv_lib_pthread_pthread_mutex_init=yes
12601else
12602 ac_cv_lib_pthread_pthread_mutex_init=no
12603fi
12604rm -f core conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12606LIBS=$ac_check_lib_save_LIBS
12607fi
12608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12609$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12610if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
12611 LIBPTHREAD=-lpthread
12612
12613fi
12614
12615fi
12616 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = "xyes" ; then
12617 HAVE_LIBPTHREAD_TRUE=
12618 HAVE_LIBPTHREAD_FALSE='#'
12619else
12620 HAVE_LIBPTHREAD_TRUE='#'
12621 HAVE_LIBPTHREAD_FALSE=
12622fi
12623
12624# FIXME: isn't it able to integrate the followings to AC_CHECK_LIB?
12625if test x$ac_cv_lib_pthread_pthread_mutex_init = xyes ; then
12626
12627$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
12628
12629fi
12630
12631
12632
12633# Check whether --with-tools was given.
12634if test "${with_tools+set}" = set; then :
12635 withval=$with_tools; build_tools=$withval
12636else
12637 build_tools=yes
12638fi
12639
12640
12641 if test "x$build_tools" = "xyes" ; then
12642 BUILD_TOOLS_TRUE=
12643 BUILD_TOOLS_FALSE='#'
12644else
12645 BUILD_TOOLS_TRUE='#'
12646 BUILD_TOOLS_FALSE=
12647fi
12648
12649if test x$build_tools = xyes ; then
12650
12651pkg_failed=no
12652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for png" >&5
12653$as_echo_n "checking for png... " >&6; }
12654
12655if test -n "$png_CFLAGS"; then
12656 pkg_cv_png_CFLAGS="$png_CFLAGS"
12657 elif test -n "$PKG_CONFIG"; then
12658 if test -n "$PKG_CONFIG" && \
12659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"libpng\"\""; } >&5
12660 ($PKG_CONFIG --exists --print-errors ""libpng"") 2>&5
12661 ac_status=$?
12662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12663 test $ac_status = 0; }; then
12664 pkg_cv_png_CFLAGS=`$PKG_CONFIG --cflags ""libpng"" 2>/dev/null`
12665 test "x$?" != "x0" && pkg_failed=yes
12666else
12667 pkg_failed=yes
12668fi
12669 else
12670 pkg_failed=untried
12671fi
12672if test -n "$png_LIBS"; then
12673 pkg_cv_png_LIBS="$png_LIBS"
12674 elif test -n "$PKG_CONFIG"; then
12675 if test -n "$PKG_CONFIG" && \
12676 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"libpng\"\""; } >&5
12677 ($PKG_CONFIG --exists --print-errors ""libpng"") 2>&5
12678 ac_status=$?
12679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12680 test $ac_status = 0; }; then
12681 pkg_cv_png_LIBS=`$PKG_CONFIG --libs ""libpng"" 2>/dev/null`
12682 test "x$?" != "x0" && pkg_failed=yes
12683else
12684 pkg_failed=yes
12685fi
12686 else
12687 pkg_failed=untried
12688fi
12689
12690
12691
12692if test $pkg_failed = yes; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694$as_echo "no" >&6; }
12695
12696if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12697 _pkg_short_errors_supported=yes
12698else
12699 _pkg_short_errors_supported=no
12700fi
12701 if test $_pkg_short_errors_supported = yes; then
12702 png_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""libpng"" 2>&1`
12703 else
12704 png_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""libpng"" 2>&1`
12705 fi
12706 # Put the nasty error message in config.log where it belongs
12707 echo "$png_PKG_ERRORS" >&5
12708
12709 as_fn_error $? "Package requirements (\"libpng\") were not met:
12710
12711$png_PKG_ERRORS
12712
12713Consider adjusting the PKG_CONFIG_PATH environment variable if you
12714installed software in a non-standard prefix.
12715
12716Alternatively, you may set the environment variables png_CFLAGS
12717and png_LIBS to avoid the need to call pkg-config.
12718See the pkg-config man page for more details." "$LINENO" 5
12719elif test $pkg_failed = untried; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721$as_echo "no" >&6; }
12722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12724as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12725is in your PATH or set the PKG_CONFIG environment variable to the full
12726path to pkg-config.
12727
12728Alternatively, you may set the environment variables png_CFLAGS
12729and png_LIBS to avoid the need to call pkg-config.
12730See the pkg-config man page for more details.
12731
12732To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12733See \`config.log' for more details" "$LINENO" 5; }
12734else
12735 png_CFLAGS=$pkg_cv_png_CFLAGS
12736 png_LIBS=$pkg_cv_png_LIBS
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12738$as_echo "yes" >&6; }
12739
12740fi
12741fi
12742
12743
12744# Check whether --with-tests was given.
12745if test "${with_tests+set}" = set; then :
12746 withval=$with_tests; build_tests=$withval
12747else
12748 build_tests=no
12749fi
12750
12751
12752 if test "x$build_tests" = "xyes" ; then
12753 BUILD_TESTS_TRUE=
12754 BUILD_TESTS_FALSE='#'
12755else
12756 BUILD_TESTS_TRUE='#'
12757 BUILD_TESTS_FALSE=
12758fi
12759
12760
12761if test x$build_tests = xyes ; then
12762echo "#define __STATIC" >>confdefs.h
12763echo "#define WITH_TESTS 1" >>confdefs.h
12764else
12765echo "#define __STATIC static" >>confdefs.h
12766echo "/* #undef WITH_TESTS */" >>confdefs.h
12767fi
12768
12769if test x$build_tests = xyes ; then
12770 SDL_REQUIRED_VERSION=1.2.0
12771
12772# Check whether --with-sdl-prefix was given.
12773if test "${with_sdl_prefix+set}" = set; then :
12774 withval=$with_sdl_prefix; sdl_prefix="$withval"
12775else
12776 sdl_prefix=""
12777fi
12778
12779
12780# Check whether --with-sdl-exec-prefix was given.
12781if test "${with_sdl_exec_prefix+set}" = set; then :
12782 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12783else
12784 sdl_exec_prefix=""
12785fi
12786
12787# Check whether --enable-sdltest was given.
12788if test "${enable_sdltest+set}" = set; then :
12789 enableval=$enable_sdltest;
12790else
12791 enable_sdltest=yes
12792fi
12793
12794
12795 if test x$sdl_exec_prefix != x ; then
12796 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
12797 if test x${SDL_CONFIG+set} != xset ; then
12798 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12799 fi
12800 fi
12801 if test x$sdl_prefix != x ; then
12802 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
12803 if test x${SDL_CONFIG+set} != xset ; then
12804 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12805 fi
12806 fi
12807
12808 as_save_PATH="$PATH"
12809 if test "x$prefix" != xNONE; then
12810 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12811 fi
12812 # Extract the first word of "sdl-config", so it can be a program name with args.
12813set dummy sdl-config; ac_word=$2
12814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12815$as_echo_n "checking for $ac_word... " >&6; }
12816if ${ac_cv_path_SDL_CONFIG+:} false; then :
12817 $as_echo_n "(cached) " >&6
12818else
12819 case $SDL_CONFIG in
12820 [\\/]* | ?:[\\/]*)
12821 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12822 ;;
12823 *)
12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825for as_dir in $PATH
12826do
12827 IFS=$as_save_IFS
12828 test -z "$as_dir" && as_dir=.
12829 for ac_exec_ext in '' $ac_executable_extensions; do
12830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12831 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12833 break 2
12834 fi
12835done
12836 done
12837IFS=$as_save_IFS
12838
12839 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12840 ;;
12841esac
12842fi
12843SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12844if test -n "$SDL_CONFIG"; then
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
12846$as_echo "$SDL_CONFIG" >&6; }
12847else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849$as_echo "no" >&6; }
12850fi
12851
12852
12853 PATH="$as_save_PATH"
12854 min_sdl_version=$SDL_REQUIRED_VERSION
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
12856$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12857 no_sdl=""
12858 if test "$SDL_CONFIG" = "no" ; then
12859 no_sdl=yes
12860 else
12861 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
12862 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
12863
12864 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
12865 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12866 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
12867 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12868 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12869 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12870 if test "x$enable_sdltest" = "xyes" ; then
12871 ac_save_CFLAGS="$CFLAGS"
12872 ac_save_CXXFLAGS="$CXXFLAGS"
12873 ac_save_LIBS="$LIBS"
12874 CFLAGS="$CFLAGS $SDL_CFLAGS"
12875 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12876 LIBS="$LIBS $SDL_LIBS"
12877 rm -f conf.sdltest
12878 if test "$cross_compiling" = yes; then :
12879 echo $ac_n "cross compiling; assumed OK... $ac_c"
12880else
12881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12882/* end confdefs.h. */
12883
12884#include <stdio.h>
12885#include <stdlib.h>
12886#include <string.h>
12887#include "SDL.h"
12888
12889char*
12890my_strdup (char *str)
12891{
12892 char *new_str;
12893
12894 if (str)
12895 {
12896 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12897 strcpy (new_str, str);
12898 }
12899 else
12900 new_str = NULL;
12901
12902 return new_str;
12903}
12904
12905int main (int argc, char *argv[])
12906{
12907 int major, minor, micro;
12908 char *tmp_version;
12909
12910 /* This hangs on some systems (?)
12911 system ("touch conf.sdltest");
12912 */
12913 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12914
12915 /* HP/UX 9 (%@#!) writes to sscanf strings */
12916 tmp_version = my_strdup("$min_sdl_version");
12917 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12918 printf("%s, bad version string\n", "$min_sdl_version");
12919 exit(1);
12920 }
12921
12922 if (($sdl_major_version > major) ||
12923 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12924 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12925 {
12926 return 0;
12927 }
12928 else
12929 {
12930 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12931 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12932 printf("*** best to upgrade to the required version.\n");
12933 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12934 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12935 printf("*** config.cache before re-running configure\n");
12936 return 1;
12937 }
12938}
12939
12940
12941_ACEOF
12942if ac_fn_c_try_run "$LINENO"; then :
12943
12944else
12945 no_sdl=yes
12946fi
12947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12948 conftest.$ac_objext conftest.beam conftest.$ac_ext
12949fi
12950
12951 CFLAGS="$ac_save_CFLAGS"
12952 CXXFLAGS="$ac_save_CXXFLAGS"
12953 LIBS="$ac_save_LIBS"
12954 fi
12955 fi
12956 if test "x$no_sdl" = x ; then
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12958$as_echo "yes" >&6; }
12959 :
12960 else
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962$as_echo "no" >&6; }
12963 if test "$SDL_CONFIG" = "no" ; then
12964 echo "*** The sdl-config script installed by SDL could not be found"
12965 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12966 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12967 echo "*** full path to sdl-config."
12968 else
12969 if test -f conf.sdltest ; then
12970 :
12971 else
12972 echo "*** Could not run SDL test program, checking why..."
12973 CFLAGS="$CFLAGS $SDL_CFLAGS"
12974 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12975 LIBS="$LIBS $SDL_LIBS"
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h. */
12978
12979#include <stdio.h>
12980#include "SDL.h"
12981
12982int main(int argc, char *argv[])
12983{ return 0; }
12984#undef main
12985#define main K_and_R_C_main
12986
12987int
12988main ()
12989{
12990 return 0;
12991 ;
12992 return 0;
12993}
12994_ACEOF
12995if ac_fn_c_try_link "$LINENO"; then :
12996 echo "*** The test program compiled, but did not run. This usually means"
12997 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12998 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12999 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13000 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13001 echo "*** is required on your system"
13002 echo "***"
13003 echo "*** If you have an old version installed, it is best to remove it, although"
13004 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13005else
13006 echo "*** The test program failed to compile or link. See the file config.log for the"
13007 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
13008 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
13009 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
13010fi
13011rm -f core conftest.err conftest.$ac_objext \
13012 conftest$ac_exeext conftest.$ac_ext
13013 CFLAGS="$ac_save_CFLAGS"
13014 CXXFLAGS="$ac_save_CXXFLAGS"
13015 LIBS="$ac_save_LIBS"
13016 fi
13017 fi
13018 SDL_CFLAGS=""
13019 SDL_LIBS=""
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** SDL $SDL_REQUIRED_VERSION or better is required." >&5
13021$as_echo "$as_me: WARNING: *** SDL $SDL_REQUIRED_VERSION or better is required." >&2;}
13022 fi
13023
13024
13025 rm -f conf.sdltest
13026
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: SDL check done." >&5
13028$as_echo "$as_me: SDL check done." >&6;}
13029
13030 if test "X$prefix" = "XNONE"; then
13031 acl_final_prefix="$ac_default_prefix"
13032 else
13033 acl_final_prefix="$prefix"
13034 fi
13035 if test "X$exec_prefix" = "XNONE"; then
13036 acl_final_exec_prefix='${prefix}'
13037 else
13038 acl_final_exec_prefix="$exec_prefix"
13039 fi
13040 acl_save_prefix="$prefix"
13041 prefix="$acl_final_prefix"
13042 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13043 prefix="$acl_save_prefix"
13044
13045
13046
13047# Check whether --with-gnu-ld was given.
13048if test "${with_gnu_ld+set}" = set; then :
13049 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13050else
13051 with_gnu_ld=no
13052fi
13053
13054# Prepare PATH_SEPARATOR.
13055# The user is always right.
13056if test "${PATH_SEPARATOR+set}" != set; then
13057 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13058 # contains only /bin. Note that ksh looks also at the FPATH variable,
13059 # so we have to set that as well for the test.
13060 PATH_SEPARATOR=:
13061 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13062 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13063 || PATH_SEPARATOR=';'
13064 }
13065fi
13066
13067ac_prog=ld
13068if test "$GCC" = yes; then
13069 # Check if gcc -print-prog-name=ld gives a path.
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13071$as_echo_n "checking for ld used by $CC... " >&6; }
13072 case $host in
13073 *-*-mingw*)
13074 # gcc leaves a trailing carriage return which upsets mingw
13075 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13076 *)
13077 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13078 esac
13079 case $ac_prog in
13080 # Accept absolute paths.
13081 [\\/]* | ?:[\\/]*)
13082 re_direlt='/[^/][^/]*/\.\./'
13083 # Canonicalize the pathname of ld
13084 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13085 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13086 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13087 done
13088 test -z "$LD" && LD="$ac_prog"
13089 ;;
13090 "")
13091 # If it fails, then pretend we aren't using GCC.
13092 ac_prog=ld
13093 ;;
13094 *)
13095 # If it is relative, then search for the first ld in PATH.
13096 with_gnu_ld=unknown
13097 ;;
13098 esac
13099elif test "$with_gnu_ld" = yes; then
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13101$as_echo_n "checking for GNU ld... " >&6; }
13102else
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13104$as_echo_n "checking for non-GNU ld... " >&6; }
13105fi
13106if ${acl_cv_path_LD+:} false; then :
13107 $as_echo_n "(cached) " >&6
13108else
13109 if test -z "$LD"; then
13110 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13111 for ac_dir in $PATH; do
13112 IFS="$acl_save_ifs"
13113 test -z "$ac_dir" && ac_dir=.
13114 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13115 acl_cv_path_LD="$ac_dir/$ac_prog"
13116 # Check to see if the program is GNU ld. I'd rather use --version,
13117 # but apparently some variants of GNU ld only accept -v.
13118 # Break only if it was the GNU/non-GNU ld that we prefer.
13119 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13120 *GNU* | *'with BFD'*)
13121 test "$with_gnu_ld" != no && break
13122 ;;
13123 *)
13124 test "$with_gnu_ld" != yes && break
13125 ;;
13126 esac
13127 fi
13128 done
13129 IFS="$acl_save_ifs"
13130else
13131 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13132fi
13133fi
13134
13135LD="$acl_cv_path_LD"
13136if test -n "$LD"; then
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13138$as_echo "$LD" >&6; }
13139else
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141$as_echo "no" >&6; }
13142fi
13143test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13145$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13146if ${acl_cv_prog_gnu_ld+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148else
13149 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13150case `$LD -v 2>&1 </dev/null` in
13151*GNU* | *'with BFD'*)
13152 acl_cv_prog_gnu_ld=yes
13153 ;;
13154*)
13155 acl_cv_prog_gnu_ld=no
13156 ;;
13157esac
13158fi
13159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13160$as_echo "$acl_cv_prog_gnu_ld" >&6; }
13161with_gnu_ld=$acl_cv_prog_gnu_ld
13162
13163
13164
13165
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13167$as_echo_n "checking for shared library run path origin... " >&6; }
13168if ${acl_cv_rpath+:} false; then :
13169 $as_echo_n "(cached) " >&6
13170else
13171
13172 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13173 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13174 . ./conftest.sh
13175 rm -f ./conftest.sh
13176 acl_cv_rpath=done
13177
13178fi
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13180$as_echo "$acl_cv_rpath" >&6; }
13181 wl="$acl_cv_wl"
13182 acl_libext="$acl_cv_libext"
13183 acl_shlibext="$acl_cv_shlibext"
13184 acl_libname_spec="$acl_cv_libname_spec"
13185 acl_library_names_spec="$acl_cv_library_names_spec"
13186 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13187 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13188 acl_hardcode_direct="$acl_cv_hardcode_direct"
13189 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13190 # Check whether --enable-rpath was given.
13191if test "${enable_rpath+set}" = set; then :
13192 enableval=$enable_rpath; :
13193else
13194 enable_rpath=yes
13195fi
13196
13197
13198
13199
13200 acl_libdirstem=lib
13201 acl_libdirstem2=
13202 case "$host_os" in
13203 solaris*)
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13205$as_echo_n "checking for 64-bit host... " >&6; }
13206if ${gl_cv_solaris_64bit+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208else
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210/* end confdefs.h. */
13211
13212#ifdef _LP64
13213sixtyfour bits
13214#endif
13215
13216_ACEOF
13217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13218 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13219 gl_cv_solaris_64bit=yes
13220else
13221 gl_cv_solaris_64bit=no
13222fi
13223rm -f conftest*
13224
13225
13226fi
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13228$as_echo "$gl_cv_solaris_64bit" >&6; }
13229 if test $gl_cv_solaris_64bit = yes; then
13230 acl_libdirstem=lib/64
13231 case "$host_cpu" in
13232 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13233 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13234 esac
13235 fi
13236 ;;
13237 *)
13238 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13239 if test -n "$searchpath"; then
13240 acl_save_IFS="${IFS= }"; IFS=":"
13241 for searchdir in $searchpath; do
13242 if test -d "$searchdir"; then
13243 case "$searchdir" in
13244 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13245 */../ | */.. )
13246 # Better ignore directories of this form. They are misleading.
13247 ;;
13248 *) searchdir=`cd "$searchdir" && pwd`
13249 case "$searchdir" in
13250 */lib64 ) acl_libdirstem=lib64 ;;
13251 esac ;;
13252 esac
13253 fi
13254 done
13255 IFS="$acl_save_IFS"
13256 fi
13257 ;;
13258 esac
13259 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272 use_additional=yes
13273
13274 acl_save_prefix="$prefix"
13275 prefix="$acl_final_prefix"
13276 acl_save_exec_prefix="$exec_prefix"
13277 exec_prefix="$acl_final_exec_prefix"
13278
13279 eval additional_includedir=\"$includedir\"
13280 eval additional_libdir=\"$libdir\"
13281
13282 exec_prefix="$acl_save_exec_prefix"
13283 prefix="$acl_save_prefix"
13284
13285
13286# Check whether --with-libiconv-prefix was given.
13287if test "${with_libiconv_prefix+set}" = set; then :
13288 withval=$with_libiconv_prefix;
13289 if test "X$withval" = "Xno"; then
13290 use_additional=no
13291 else
13292 if test "X$withval" = "X"; then
13293
13294 acl_save_prefix="$prefix"
13295 prefix="$acl_final_prefix"
13296 acl_save_exec_prefix="$exec_prefix"
13297 exec_prefix="$acl_final_exec_prefix"
13298
13299 eval additional_includedir=\"$includedir\"
13300 eval additional_libdir=\"$libdir\"
13301
13302 exec_prefix="$acl_save_exec_prefix"
13303 prefix="$acl_save_prefix"
13304
13305 else
13306 additional_includedir="$withval/include"
13307 additional_libdir="$withval/$acl_libdirstem"
13308 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13309 && ! test -d "$withval/$acl_libdirstem"; then
13310 additional_libdir="$withval/$acl_libdirstem2"
13311 fi
13312 fi
13313 fi
13314
13315fi
13316
13317 LIBICONV=
13318 LTLIBICONV=
13319 INCICONV=
13320 LIBICONV_PREFIX=
13321 HAVE_LIBICONV=
13322 rpathdirs=
13323 ltrpathdirs=
13324 names_already_handled=
13325 names_next_round='iconv '
13326 while test -n "$names_next_round"; do
13327 names_this_round="$names_next_round"
13328 names_next_round=
13329 for name in $names_this_round; do
13330 already_handled=
13331 for n in $names_already_handled; do
13332 if test "$n" = "$name"; then
13333 already_handled=yes
13334 break
13335 fi
13336 done
13337 if test -z "$already_handled"; then
13338 names_already_handled="$names_already_handled $name"
13339 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13340 eval value=\"\$HAVE_LIB$uppername\"
13341 if test -n "$value"; then
13342 if test "$value" = yes; then
13343 eval value=\"\$LIB$uppername\"
13344 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13345 eval value=\"\$LTLIB$uppername\"
13346 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13347 else
13348 :
13349 fi
13350 else
13351 found_dir=
13352 found_la=
13353 found_so=
13354 found_a=
13355 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13356 if test -n "$acl_shlibext"; then
13357 shrext=".$acl_shlibext" # typically: shrext=.so
13358 else
13359 shrext=
13360 fi
13361 if test $use_additional = yes; then
13362 dir="$additional_libdir"
13363 if test -n "$acl_shlibext"; then
13364 if test -f "$dir/$libname$shrext"; then
13365 found_dir="$dir"
13366 found_so="$dir/$libname$shrext"
13367 else
13368 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13369 ver=`(cd "$dir" && \
13370 for f in "$libname$shrext".*; do echo "$f"; done \
13371 | sed -e "s,^$libname$shrext\\\\.,," \
13372 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13373 | sed 1q ) 2>/dev/null`
13374 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13375 found_dir="$dir"
13376 found_so="$dir/$libname$shrext.$ver"
13377 fi
13378 else
13379 eval library_names=\"$acl_library_names_spec\"
13380 for f in $library_names; do
13381 if test -f "$dir/$f"; then
13382 found_dir="$dir"
13383 found_so="$dir/$f"
13384 break
13385 fi
13386 done
13387 fi
13388 fi
13389 fi
13390 if test "X$found_dir" = "X"; then
13391 if test -f "$dir/$libname.$acl_libext"; then
13392 found_dir="$dir"
13393 found_a="$dir/$libname.$acl_libext"
13394 fi
13395 fi
13396 if test "X$found_dir" != "X"; then
13397 if test -f "$dir/$libname.la"; then
13398 found_la="$dir/$libname.la"
13399 fi
13400 fi
13401 fi
13402 if test "X$found_dir" = "X"; then
13403 for x in $LDFLAGS $LTLIBICONV; do
13404
13405 acl_save_prefix="$prefix"
13406 prefix="$acl_final_prefix"
13407 acl_save_exec_prefix="$exec_prefix"
13408 exec_prefix="$acl_final_exec_prefix"
13409 eval x=\"$x\"
13410 exec_prefix="$acl_save_exec_prefix"
13411 prefix="$acl_save_prefix"
13412
13413 case "$x" in
13414 -L*)
13415 dir=`echo "X$x" | sed -e 's/^X-L//'`
13416 if test -n "$acl_shlibext"; then
13417 if test -f "$dir/$libname$shrext"; then
13418 found_dir="$dir"
13419 found_so="$dir/$libname$shrext"
13420 else
13421 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13422 ver=`(cd "$dir" && \
13423 for f in "$libname$shrext".*; do echo "$f"; done \
13424 | sed -e "s,^$libname$shrext\\\\.,," \
13425 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13426 | sed 1q ) 2>/dev/null`
13427 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13428 found_dir="$dir"
13429 found_so="$dir/$libname$shrext.$ver"
13430 fi
13431 else
13432 eval library_names=\"$acl_library_names_spec\"
13433 for f in $library_names; do
13434 if test -f "$dir/$f"; then
13435 found_dir="$dir"
13436 found_so="$dir/$f"
13437 break
13438 fi
13439 done
13440 fi
13441 fi
13442 fi
13443 if test "X$found_dir" = "X"; then
13444 if test -f "$dir/$libname.$acl_libext"; then
13445 found_dir="$dir"
13446 found_a="$dir/$libname.$acl_libext"
13447 fi
13448 fi
13449 if test "X$found_dir" != "X"; then
13450 if test -f "$dir/$libname.la"; then
13451 found_la="$dir/$libname.la"
13452 fi
13453 fi
13454 ;;
13455 esac
13456 if test "X$found_dir" != "X"; then
13457 break
13458 fi
13459 done
13460 fi
13461 if test "X$found_dir" != "X"; then
13462 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13463 if test "X$found_so" != "X"; then
13464 if test "$enable_rpath" = no \
13465 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13466 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13467 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13468 else
13469 haveit=
13470 for x in $ltrpathdirs; do
13471 if test "X$x" = "X$found_dir"; then
13472 haveit=yes
13473 break
13474 fi
13475 done
13476 if test -z "$haveit"; then
13477 ltrpathdirs="$ltrpathdirs $found_dir"
13478 fi
13479 if test "$acl_hardcode_direct" = yes; then
13480 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13481 else
13482 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13483 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13484 haveit=
13485 for x in $rpathdirs; do
13486 if test "X$x" = "X$found_dir"; then
13487 haveit=yes
13488 break
13489 fi
13490 done
13491 if test -z "$haveit"; then
13492 rpathdirs="$rpathdirs $found_dir"
13493 fi
13494 else
13495 haveit=
13496 for x in $LDFLAGS $LIBICONV; do
13497
13498 acl_save_prefix="$prefix"
13499 prefix="$acl_final_prefix"
13500 acl_save_exec_prefix="$exec_prefix"
13501 exec_prefix="$acl_final_exec_prefix"
13502 eval x=\"$x\"
13503 exec_prefix="$acl_save_exec_prefix"
13504 prefix="$acl_save_prefix"
13505
13506 if test "X$x" = "X-L$found_dir"; then
13507 haveit=yes
13508 break
13509 fi
13510 done
13511 if test -z "$haveit"; then
13512 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13513 fi
13514 if test "$acl_hardcode_minus_L" != no; then
13515 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13516 else
13517 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13518 fi
13519 fi
13520 fi
13521 fi
13522 else
13523 if test "X$found_a" != "X"; then
13524 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13525 else
13526 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13527 fi
13528 fi
13529 additional_includedir=
13530 case "$found_dir" in
13531 */$acl_libdirstem | */$acl_libdirstem/)
13532 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13533 if test "$name" = 'iconv'; then
13534 LIBICONV_PREFIX="$basedir"
13535 fi
13536 additional_includedir="$basedir/include"
13537 ;;
13538 */$acl_libdirstem2 | */$acl_libdirstem2/)
13539 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13540 if test "$name" = 'iconv'; then
13541 LIBICONV_PREFIX="$basedir"
13542 fi
13543 additional_includedir="$basedir/include"
13544 ;;
13545 esac
13546 if test "X$additional_includedir" != "X"; then
13547 if test "X$additional_includedir" != "X/usr/include"; then
13548 haveit=
13549 if test "X$additional_includedir" = "X/usr/local/include"; then
13550 if test -n "$GCC"; then
13551 case $host_os in
13552 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13553 esac
13554 fi
13555 fi
13556 if test -z "$haveit"; then
13557 for x in $CPPFLAGS $INCICONV; do
13558
13559 acl_save_prefix="$prefix"
13560 prefix="$acl_final_prefix"
13561 acl_save_exec_prefix="$exec_prefix"
13562 exec_prefix="$acl_final_exec_prefix"
13563 eval x=\"$x\"
13564 exec_prefix="$acl_save_exec_prefix"
13565 prefix="$acl_save_prefix"
13566
13567 if test "X$x" = "X-I$additional_includedir"; then
13568 haveit=yes
13569 break
13570 fi
13571 done
13572 if test -z "$haveit"; then
13573 if test -d "$additional_includedir"; then
13574 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13575 fi
13576 fi
13577 fi
13578 fi
13579 fi
13580 if test -n "$found_la"; then
13581 save_libdir="$libdir"
13582 case "$found_la" in
13583 */* | *\\*) . "$found_la" ;;
13584 *) . "./$found_la" ;;
13585 esac
13586 libdir="$save_libdir"
13587 for dep in $dependency_libs; do
13588 case "$dep" in
13589 -L*)
13590 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13591 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13592 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13593 haveit=
13594 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13595 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13596 if test -n "$GCC"; then
13597 case $host_os in
13598 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13599 esac
13600 fi
13601 fi
13602 if test -z "$haveit"; then
13603 haveit=
13604 for x in $LDFLAGS $LIBICONV; do
13605
13606 acl_save_prefix="$prefix"
13607 prefix="$acl_final_prefix"
13608 acl_save_exec_prefix="$exec_prefix"
13609 exec_prefix="$acl_final_exec_prefix"
13610 eval x=\"$x\"
13611 exec_prefix="$acl_save_exec_prefix"
13612 prefix="$acl_save_prefix"
13613
13614 if test "X$x" = "X-L$additional_libdir"; then
13615 haveit=yes
13616 break
13617 fi
13618 done
13619 if test -z "$haveit"; then
13620 if test -d "$additional_libdir"; then
13621 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13622 fi
13623 fi
13624 haveit=
13625 for x in $LDFLAGS $LTLIBICONV; do
13626
13627 acl_save_prefix="$prefix"
13628 prefix="$acl_final_prefix"
13629 acl_save_exec_prefix="$exec_prefix"
13630 exec_prefix="$acl_final_exec_prefix"
13631 eval x=\"$x\"
13632 exec_prefix="$acl_save_exec_prefix"
13633 prefix="$acl_save_prefix"
13634
13635 if test "X$x" = "X-L$additional_libdir"; then
13636 haveit=yes
13637 break
13638 fi
13639 done
13640 if test -z "$haveit"; then
13641 if test -d "$additional_libdir"; then
13642 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13643 fi
13644 fi
13645 fi
13646 fi
13647 ;;
13648 -R*)
13649 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13650 if test "$enable_rpath" != no; then
13651 haveit=
13652 for x in $rpathdirs; do
13653 if test "X$x" = "X$dir"; then
13654 haveit=yes
13655 break
13656 fi
13657 done
13658 if test -z "$haveit"; then
13659 rpathdirs="$rpathdirs $dir"
13660 fi
13661 haveit=
13662 for x in $ltrpathdirs; do
13663 if test "X$x" = "X$dir"; then
13664 haveit=yes
13665 break
13666 fi
13667 done
13668 if test -z "$haveit"; then
13669 ltrpathdirs="$ltrpathdirs $dir"
13670 fi
13671 fi
13672 ;;
13673 -l*)
13674 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13675 ;;
13676 *.la)
13677 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13678 ;;
13679 *)
13680 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13681 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13682 ;;
13683 esac
13684 done
13685 fi
13686 else
13687 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13688 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13689 fi
13690 fi
13691 fi
13692 done
13693 done
13694 if test "X$rpathdirs" != "X"; then
13695 if test -n "$acl_hardcode_libdir_separator"; then
13696 alldirs=
13697 for found_dir in $rpathdirs; do
13698 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13699 done
13700 acl_save_libdir="$libdir"
13701 libdir="$alldirs"
13702 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13703 libdir="$acl_save_libdir"
13704 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13705 else
13706 for found_dir in $rpathdirs; do
13707 acl_save_libdir="$libdir"
13708 libdir="$found_dir"
13709 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13710 libdir="$acl_save_libdir"
13711 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13712 done
13713 fi
13714 fi
13715 if test "X$ltrpathdirs" != "X"; then
13716 for found_dir in $ltrpathdirs; do
13717 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13718 done
13719 fi
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731 am_save_CPPFLAGS="$CPPFLAGS"
13732
13733 for element in $INCICONV; do
13734 haveit=
13735 for x in $CPPFLAGS; do
13736
13737 acl_save_prefix="$prefix"
13738 prefix="$acl_final_prefix"
13739 acl_save_exec_prefix="$exec_prefix"
13740 exec_prefix="$acl_final_exec_prefix"
13741 eval x=\"$x\"
13742 exec_prefix="$acl_save_exec_prefix"
13743 prefix="$acl_save_prefix"
13744
13745 if test "X$x" = "X$element"; then
13746 haveit=yes
13747 break
13748 fi
13749 done
13750 if test -z "$haveit"; then
13751 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13752 fi
13753 done
13754
13755
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13757$as_echo_n "checking for iconv... " >&6; }
13758if ${am_cv_func_iconv+:} false; then :
13759 $as_echo_n "(cached) " >&6
13760else
13761
13762 am_cv_func_iconv="no, consider installing GNU libiconv"
13763 am_cv_lib_iconv=no
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765/* end confdefs.h. */
13766
13767#include <stdlib.h>
13768#include <iconv.h>
13769
13770int
13771main ()
13772{
13773iconv_t cd = iconv_open("","");
13774 iconv(cd,NULL,NULL,NULL,NULL);
13775 iconv_close(cd);
13776 ;
13777 return 0;
13778}
13779_ACEOF
13780if ac_fn_c_try_link "$LINENO"; then :
13781 am_cv_func_iconv=yes
13782fi
13783rm -f core conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
13785 if test "$am_cv_func_iconv" != yes; then
13786 am_save_LIBS="$LIBS"
13787 LIBS="$LIBS $LIBICONV"
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789/* end confdefs.h. */
13790
13791#include <stdlib.h>
13792#include <iconv.h>
13793
13794int
13795main ()
13796{
13797iconv_t cd = iconv_open("","");
13798 iconv(cd,NULL,NULL,NULL,NULL);
13799 iconv_close(cd);
13800 ;
13801 return 0;
13802}
13803_ACEOF
13804if ac_fn_c_try_link "$LINENO"; then :
13805 am_cv_lib_iconv=yes
13806 am_cv_func_iconv=yes
13807fi
13808rm -f core conftest.err conftest.$ac_objext \
13809 conftest$ac_exeext conftest.$ac_ext
13810 LIBS="$am_save_LIBS"
13811 fi
13812
13813fi
13814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13815$as_echo "$am_cv_func_iconv" >&6; }
13816 if test "$am_cv_func_iconv" = yes; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13818$as_echo_n "checking for working iconv... " >&6; }
13819if ${am_cv_func_iconv_works+:} false; then :
13820 $as_echo_n "(cached) " >&6
13821else
13822
13823 am_save_LIBS="$LIBS"
13824 if test $am_cv_lib_iconv = yes; then
13825 LIBS="$LIBS $LIBICONV"
13826 fi
13827 if test "$cross_compiling" = yes; then :
13828
13829 case "$host_os" in
13830 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13831 *) am_cv_func_iconv_works="guessing yes" ;;
13832 esac
13833
13834else
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836/* end confdefs.h. */
13837
13838#include <iconv.h>
13839#include <string.h>
13840int main ()
13841{
13842 int result = 0;
13843 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13844 returns. */
13845 {
13846 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13847 if (cd_utf8_to_88591 != (iconv_t)(-1))
13848 {
13849 static const char input[] = "\342\202\254"; /* EURO SIGN */
13850 char buf[10];
13851 const char *inptr = input;
13852 size_t inbytesleft = strlen (input);
13853 char *outptr = buf;
13854 size_t outbytesleft = sizeof (buf);
13855 size_t res = iconv (cd_utf8_to_88591,
13856 (char **) &inptr, &inbytesleft,
13857 &outptr, &outbytesleft);
13858 if (res == 0)
13859 result |= 1;
13860 iconv_close (cd_utf8_to_88591);
13861 }
13862 }
13863 /* Test against Solaris 10 bug: Failures are not distinguishable from
13864 successful returns. */
13865 {
13866 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13867 if (cd_ascii_to_88591 != (iconv_t)(-1))
13868 {
13869 static const char input[] = "\263";
13870 char buf[10];
13871 const char *inptr = input;
13872 size_t inbytesleft = strlen (input);
13873 char *outptr = buf;
13874 size_t outbytesleft = sizeof (buf);
13875 size_t res = iconv (cd_ascii_to_88591,
13876 (char **) &inptr, &inbytesleft,
13877 &outptr, &outbytesleft);
13878 if (res == 0)
13879 result |= 2;
13880 iconv_close (cd_ascii_to_88591);
13881 }
13882 }
13883 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
13884 {
13885 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
13886 if (cd_88591_to_utf8 != (iconv_t)(-1))
13887 {
13888 static const char input[] = "\304";
13889 static char buf[2] = { (char)0xDE, (char)0xAD };
13890 const char *inptr = input;
13891 size_t inbytesleft = 1;
13892 char *outptr = buf;
13893 size_t outbytesleft = 1;
13894 size_t res = iconv (cd_88591_to_utf8,
13895 (char **) &inptr, &inbytesleft,
13896 &outptr, &outbytesleft);
13897 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
13898 result |= 4;
13899 iconv_close (cd_88591_to_utf8);
13900 }
13901 }
13902#if 0 /* This bug could be worked around by the caller. */
13903 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13904 {
13905 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13906 if (cd_88591_to_utf8 != (iconv_t)(-1))
13907 {
13908 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13909 char buf[50];
13910 const char *inptr = input;
13911 size_t inbytesleft = strlen (input);
13912 char *outptr = buf;
13913 size_t outbytesleft = sizeof (buf);
13914 size_t res = iconv (cd_88591_to_utf8,
13915 (char **) &inptr, &inbytesleft,
13916 &outptr, &outbytesleft);
13917 if ((int)res > 0)
13918 result |= 8;
13919 iconv_close (cd_88591_to_utf8);
13920 }
13921 }
13922#endif
13923 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13924 provided. */
13925 if (/* Try standardized names. */
13926 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13927 /* Try IRIX, OSF/1 names. */
13928 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13929 /* Try AIX names. */
13930 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13931 /* Try HP-UX names. */
13932 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13933 result |= 16;
13934 return result;
13935}
13936_ACEOF
13937if ac_fn_c_try_run "$LINENO"; then :
13938 am_cv_func_iconv_works=yes
13939else
13940 am_cv_func_iconv_works=no
13941fi
13942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13943 conftest.$ac_objext conftest.beam conftest.$ac_ext
13944fi
13945
13946 LIBS="$am_save_LIBS"
13947
13948fi
13949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13950$as_echo "$am_cv_func_iconv_works" >&6; }
13951 case "$am_cv_func_iconv_works" in
13952 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13953 *) am_func_iconv=yes ;;
13954 esac
13955 else
13956 am_func_iconv=no am_cv_lib_iconv=no
13957 fi
13958 if test "$am_func_iconv" = yes; then
13959
13960$as_echo "#define HAVE_ICONV 1" >>confdefs.h
13961
13962 fi
13963 if test "$am_cv_lib_iconv" = yes; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13965$as_echo_n "checking how to link with libiconv... " >&6; }
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13967$as_echo "$LIBICONV" >&6; }
13968 else
13969 CPPFLAGS="$am_save_CPPFLAGS"
13970 LIBICONV=
13971 LTLIBICONV=
13972 fi
13973
13974
13975
13976fi
13977 if test "x$SDL_CFLAGS" != "x" ; then
13978 HAVE_SDL_TRUE=
13979 HAVE_SDL_FALSE='#'
13980else
13981 HAVE_SDL_TRUE='#'
13982 HAVE_SDL_FALSE=
13983fi
13984
13985
13986
13987# Check whether --enable-gprof was given.
13988if test "${enable_gprof+set}" = set; then :
13989 enableval=$enable_gprof;
13990else
13991 enable_gprof=no
13992fi
13993
13994
13995if test x$enable_gprof = xyes; then
13996 CFLAGS="$CFLAGS -g -pg"
13997fi
13998
13999
14000# Check whether --enable-gcov was given.
14001if test "${enable_gcov+set}" = set; then :
14002 enableval=$enable_gcov;
14003else
14004 enable_gcov=no
14005fi
14006
14007
14008if test x$enable_gcov = xyes; then
14009 CFLAGS="$CFLAGS --coverage"
14010fi
14011
14012
14013# Check whether --enable-mudflap was given.
14014if test "${enable_mudflap+set}" = set; then :
14015 enableval=$enable_mudflap;
14016else
14017 enable_mudflap=no
14018fi
14019
14020
14021if test x$enable_mudflap = xyes; then
14022 if test x$enable_thread_safety = xyes; then
14023 CFLAGS="$CFLAGS -fmudflapth"
14024 LDFLAGS="$LDFLAGS -lmudflapth"
14025 else
14026 CFLAGS="$CFLAGS -fmudflap"
14027 LDFLAGS="$LDFLAGS -lmudflap"
14028 fi
14029fi
14030
14031
14032CFLAGS="-Wall $CFLAGS"
14033
14034
14035cat >confcache <<\_ACEOF
14036# This file is a shell script that caches the results of configure
14037# tests run on this system so they can be shared between configure
14038# scripts and configure runs, see configure's option --config-cache.
14039# It is not useful on other systems. If it contains results you don't
14040# want to keep, you may remove or edit it.
14041#
14042# config.status only pays attention to the cache file if you give it
14043# the --recheck option to rerun configure.
14044#
14045# `ac_cv_env_foo' variables (set or unset) will be overridden when
14046# loading this file, other *unset* `ac_cv_foo' will be assigned the
14047# following values.
14048
14049_ACEOF
14050
14051# The following way of writing the cache mishandles newlines in values,
14052# but we know of no workaround that is simple, portable, and efficient.
14053# So, we kill variables containing newlines.
14054# Ultrix sh set writes to stderr and can't be redirected directly,
14055# and sets the high bit in the cache file unless we assign to the vars.
14056(
14057 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14058 eval ac_val=\$$ac_var
14059 case $ac_val in #(
14060 *${as_nl}*)
14061 case $ac_var in #(
14062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14063$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14064 esac
14065 case $ac_var in #(
14066 _ | IFS | as_nl) ;; #(
14067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14068 *) { eval $ac_var=; unset $ac_var;} ;;
14069 esac ;;
14070 esac
14071 done
14072
14073 (set) 2>&1 |
14074 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14075 *${as_nl}ac_space=\ *)
14076 # `set' does not quote correctly, so add quotes: double-quote
14077 # substitution turns \\\\ into \\, and sed turns \\ into \.
14078 sed -n \
14079 "s/'/'\\\\''/g;
14080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14081 ;; #(
14082 *)
14083 # `set' quotes correctly as required by POSIX, so do not add quotes.
14084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14085 ;;
14086 esac |
14087 sort
14088) |
14089 sed '
14090 /^ac_cv_env_/b end
14091 t clear
14092 :clear
14093 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14094 t end
14095 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14096 :end' >>confcache
14097if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14098 if test -w "$cache_file"; then
14099 if test "x$cache_file" != "x/dev/null"; then
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14101$as_echo "$as_me: updating cache $cache_file" >&6;}
14102 if test ! -f "$cache_file" || test -h "$cache_file"; then
14103 cat confcache >"$cache_file"
14104 else
14105 case $cache_file in #(
14106 */* | ?:*)
14107 mv -f confcache "$cache_file"$$ &&
14108 mv -f "$cache_file"$$ "$cache_file" ;; #(
14109 *)
14110 mv -f confcache "$cache_file" ;;
14111 esac
14112 fi
14113 fi
14114 else
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14116$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14117 fi
14118fi
14119rm -f confcache
14120
14121test "x$prefix" = xNONE && prefix=$ac_default_prefix
14122# Let make expand exec_prefix.
14123test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14124
14125DEFS=-DHAVE_CONFIG_H
14126
14127ac_libobjs=
14128ac_ltlibobjs=
14129U=
14130for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14131 # 1. Remove the extension, and $U if already installed.
14132 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14133 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14134 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14135 # will be set to the directory where LIBOBJS objects are built.
14136 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14137 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14138done
14139LIBOBJS=$ac_libobjs
14140
14141LTLIBOBJS=$ac_ltlibobjs
14142
14143
14144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14145$as_echo_n "checking that generated files are newer than configure... " >&6; }
14146 if test -n "$am_sleep_pid"; then
14147 # Hide warnings about reused PIDs.
14148 wait $am_sleep_pid 2>/dev/null
14149 fi
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14151$as_echo "done" >&6; }
14152 if test -n "$EXEEXT"; then
14153 am__EXEEXT_TRUE=
14154 am__EXEEXT_FALSE='#'
14155else
14156 am__EXEEXT_TRUE='#'
14157 am__EXEEXT_FALSE=
14158fi
14159
14160if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14161 as_fn_error $? "conditional \"AMDEP\" was never defined.
14162Usually this means the macro was only invoked conditionally." "$LINENO" 5
14163fi
14164if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14165 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14166Usually this means the macro was only invoked conditionally." "$LINENO" 5
14167fi
14168if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14169 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14170Usually this means the macro was only invoked conditionally." "$LINENO" 5
14171fi
14172if test -z "${HAVE_LIBPTHREAD_TRUE}" && test -z "${HAVE_LIBPTHREAD_FALSE}"; then
14173 as_fn_error $? "conditional \"HAVE_LIBPTHREAD\" was never defined.
14174Usually this means the macro was only invoked conditionally." "$LINENO" 5
14175fi
14176if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
14177 as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
14178Usually this means the macro was only invoked conditionally." "$LINENO" 5
14179fi
14180if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
14181 as_fn_error $? "conditional \"BUILD_TESTS\" was never defined.
14182Usually this means the macro was only invoked conditionally." "$LINENO" 5
14183fi
14184if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
14185 as_fn_error $? "conditional \"HAVE_SDL\" was never defined.
14186Usually this means the macro was only invoked conditionally." "$LINENO" 5
14187fi
14188
14189: "${CONFIG_STATUS=./config.status}"
14190ac_write_fail=0
14191ac_clean_files_save=$ac_clean_files
14192ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14193{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14194$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14195as_write_fail=0
14196cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14197#! $SHELL
14198# Generated by $as_me.
14199# Run this file to recreate the current configuration.
14200# Compiler output produced by configure, useful for debugging
14201# configure, is in config.log if it exists.
14202
14203debug=false
14204ac_cs_recheck=false
14205ac_cs_silent=false
14206
14207SHELL=\${CONFIG_SHELL-$SHELL}
14208export SHELL
14209_ASEOF
14210cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14211## -------------------- ##
14212## M4sh Initialization. ##
14213## -------------------- ##
14214
14215# Be more Bourne compatible
14216DUALCASE=1; export DUALCASE # for MKS sh
14217if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14218 emulate sh
14219 NULLCMD=:
14220 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14221 # is contrary to our usage. Disable this feature.
14222 alias -g '${1+"$@"}'='"$@"'
14223 setopt NO_GLOB_SUBST
14224else
14225 case `(set -o) 2>/dev/null` in #(
14226 *posix*) :
14227 set -o posix ;; #(
14228 *) :
14229 ;;
14230esac
14231fi
14232
14233
14234as_nl='
14235'
14236export as_nl
14237# Printing a long string crashes Solaris 7 /usr/bin/printf.
14238as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14239as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14240as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14241# Prefer a ksh shell builtin over an external printf program on Solaris,
14242# but without wasting forks for bash or zsh.
14243if test -z "$BASH_VERSION$ZSH_VERSION" \
14244 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14245 as_echo='print -r --'
14246 as_echo_n='print -rn --'
14247elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14248 as_echo='printf %s\n'
14249 as_echo_n='printf %s'
14250else
14251 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14252 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14253 as_echo_n='/usr/ucb/echo -n'
14254 else
14255 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14256 as_echo_n_body='eval
14257 arg=$1;
14258 case $arg in #(
14259 *"$as_nl"*)
14260 expr "X$arg" : "X\\(.*\\)$as_nl";
14261 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14262 esac;
14263 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14264 '
14265 export as_echo_n_body
14266 as_echo_n='sh -c $as_echo_n_body as_echo'
14267 fi
14268 export as_echo_body
14269 as_echo='sh -c $as_echo_body as_echo'
14270fi
14271
14272# The user is always right.
14273if test "${PATH_SEPARATOR+set}" != set; then
14274 PATH_SEPARATOR=:
14275 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14276 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14277 PATH_SEPARATOR=';'
14278 }
14279fi
14280
14281
14282# IFS
14283# We need space, tab and new line, in precisely that order. Quoting is
14284# there to prevent editors from complaining about space-tab.
14285# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14286# splitting by setting IFS to empty value.)
14287IFS=" "" $as_nl"
14288
14289# Find who we are. Look in the path if we contain no directory separator.
14290as_myself=
14291case $0 in #((
14292 *[\\/]* ) as_myself=$0 ;;
14293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294for as_dir in $PATH
14295do
14296 IFS=$as_save_IFS
14297 test -z "$as_dir" && as_dir=.
14298 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14299 done
14300IFS=$as_save_IFS
14301
14302 ;;
14303esac
14304# We did not find ourselves, most probably we were run as `sh COMMAND'
14305# in which case we are not to be found in the path.
14306if test "x$as_myself" = x; then
14307 as_myself=$0
14308fi
14309if test ! -f "$as_myself"; then
14310 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14311 exit 1
14312fi
14313
14314# Unset variables that we do not need and which cause bugs (e.g. in
14315# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14316# suppresses any "Segmentation fault" message there. '((' could
14317# trigger a bug in pdksh 5.2.14.
14318for as_var in BASH_ENV ENV MAIL MAILPATH
14319do eval test x\${$as_var+set} = xset \
14320 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14321done
14322PS1='$ '
14323PS2='> '
14324PS4='+ '
14325
14326# NLS nuisances.
14327LC_ALL=C
14328export LC_ALL
14329LANGUAGE=C
14330export LANGUAGE
14331
14332# CDPATH.
14333(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14334
14335
14336# as_fn_error STATUS ERROR [LINENO LOG_FD]
14337# ----------------------------------------
14338# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14339# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14340# script with STATUS, using 1 if that was 0.
14341as_fn_error ()
14342{
14343 as_status=$1; test $as_status -eq 0 && as_status=1
14344 if test "$4"; then
14345 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14346 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14347 fi
14348 $as_echo "$as_me: error: $2" >&2
14349 as_fn_exit $as_status
14350} # as_fn_error
14351
14352
14353# as_fn_set_status STATUS
14354# -----------------------
14355# Set $? to STATUS, without forking.
14356as_fn_set_status ()
14357{
14358 return $1
14359} # as_fn_set_status
14360
14361# as_fn_exit STATUS
14362# -----------------
14363# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14364as_fn_exit ()
14365{
14366 set +e
14367 as_fn_set_status $1
14368 exit $1
14369} # as_fn_exit
14370
14371# as_fn_unset VAR
14372# ---------------
14373# Portably unset VAR.
14374as_fn_unset ()
14375{
14376 { eval $1=; unset $1;}
14377}
14378as_unset=as_fn_unset
14379# as_fn_append VAR VALUE
14380# ----------------------
14381# Append the text in VALUE to the end of the definition contained in VAR. Take
14382# advantage of any shell optimizations that allow amortized linear growth over
14383# repeated appends, instead of the typical quadratic growth present in naive
14384# implementations.
14385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14386 eval 'as_fn_append ()
14387 {
14388 eval $1+=\$2
14389 }'
14390else
14391 as_fn_append ()
14392 {
14393 eval $1=\$$1\$2
14394 }
14395fi # as_fn_append
14396
14397# as_fn_arith ARG...
14398# ------------------
14399# Perform arithmetic evaluation on the ARGs, and store the result in the
14400# global $as_val. Take advantage of shells that can avoid forks. The arguments
14401# must be portable across $(()) and expr.
14402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14403 eval 'as_fn_arith ()
14404 {
14405 as_val=$(( $* ))
14406 }'
14407else
14408 as_fn_arith ()
14409 {
14410 as_val=`expr "$@" || test $? -eq 1`
14411 }
14412fi # as_fn_arith
14413
14414
14415if expr a : '\(a\)' >/dev/null 2>&1 &&
14416 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14417 as_expr=expr
14418else
14419 as_expr=false
14420fi
14421
14422if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14423 as_basename=basename
14424else
14425 as_basename=false
14426fi
14427
14428if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14429 as_dirname=dirname
14430else
14431 as_dirname=false
14432fi
14433
14434as_me=`$as_basename -- "$0" ||
14435$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14436 X"$0" : 'X\(//\)$' \| \
14437 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14438$as_echo X/"$0" |
14439 sed '/^.*\/\([^/][^/]*\)\/*$/{
14440 s//\1/
14441 q
14442 }
14443 /^X\/\(\/\/\)$/{
14444 s//\1/
14445 q
14446 }
14447 /^X\/\(\/\).*/{
14448 s//\1/
14449 q
14450 }
14451 s/.*/./; q'`
14452
14453# Avoid depending upon Character Ranges.
14454as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14455as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14456as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14457as_cr_digits='0123456789'
14458as_cr_alnum=$as_cr_Letters$as_cr_digits
14459
14460ECHO_C= ECHO_N= ECHO_T=
14461case `echo -n x` in #(((((
14462-n*)
14463 case `echo 'xy\c'` in
14464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14465 xy) ECHO_C='\c';;
14466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14467 ECHO_T=' ';;
14468 esac;;
14469*)
14470 ECHO_N='-n';;
14471esac
14472
14473rm -f conf$$ conf$$.exe conf$$.file
14474if test -d conf$$.dir; then
14475 rm -f conf$$.dir/conf$$.file
14476else
14477 rm -f conf$$.dir
14478 mkdir conf$$.dir 2>/dev/null
14479fi
14480if (echo >conf$$.file) 2>/dev/null; then
14481 if ln -s conf$$.file conf$$ 2>/dev/null; then
14482 as_ln_s='ln -s'
14483 # ... but there are two gotchas:
14484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14486 # In both cases, we have to default to `cp -pR'.
14487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14488 as_ln_s='cp -pR'
14489 elif ln conf$$.file conf$$ 2>/dev/null; then
14490 as_ln_s=ln
14491 else
14492 as_ln_s='cp -pR'
14493 fi
14494else
14495 as_ln_s='cp -pR'
14496fi
14497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14498rmdir conf$$.dir 2>/dev/null
14499
14500
14501# as_fn_mkdir_p
14502# -------------
14503# Create "$as_dir" as a directory, including parents if necessary.
14504as_fn_mkdir_p ()
14505{
14506
14507 case $as_dir in #(
14508 -*) as_dir=./$as_dir;;
14509 esac
14510 test -d "$as_dir" || eval $as_mkdir_p || {
14511 as_dirs=
14512 while :; do
14513 case $as_dir in #(
14514 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14515 *) as_qdir=$as_dir;;
14516 esac
14517 as_dirs="'$as_qdir' $as_dirs"
14518 as_dir=`$as_dirname -- "$as_dir" ||
14519$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14520 X"$as_dir" : 'X\(//\)[^/]' \| \
14521 X"$as_dir" : 'X\(//\)$' \| \
14522 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14523$as_echo X"$as_dir" |
14524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14525 s//\1/
14526 q
14527 }
14528 /^X\(\/\/\)[^/].*/{
14529 s//\1/
14530 q
14531 }
14532 /^X\(\/\/\)$/{
14533 s//\1/
14534 q
14535 }
14536 /^X\(\/\).*/{
14537 s//\1/
14538 q
14539 }
14540 s/.*/./; q'`
14541 test -d "$as_dir" && break
14542 done
14543 test -z "$as_dirs" || eval "mkdir $as_dirs"
14544 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14545
14546
14547} # as_fn_mkdir_p
14548if mkdir -p . 2>/dev/null; then
14549 as_mkdir_p='mkdir -p "$as_dir"'
14550else
14551 test -d ./-p && rmdir ./-p
14552 as_mkdir_p=false
14553fi
14554
14555
14556# as_fn_executable_p FILE
14557# -----------------------
14558# Test if FILE is an executable regular file.
14559as_fn_executable_p ()
14560{
14561 test -f "$1" && test -x "$1"
14562} # as_fn_executable_p
14563as_test_x='test -x'
14564as_executable_p=as_fn_executable_p
14565
14566# Sed expression to map a string onto a valid CPP name.
14567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14568
14569# Sed expression to map a string onto a valid variable name.
14570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14571
14572
14573exec 6>&1
14574## ----------------------------------- ##
14575## Main body of $CONFIG_STATUS script. ##
14576## ----------------------------------- ##
14577_ASEOF
14578test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14579
14580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14581# Save the log message, to keep $0 and so on meaningful, and to
14582# report actual input values of CONFIG_FILES etc. instead of their
14583# values after options handling.
14584ac_log="
14585This file was extended by QRencode $as_me 3.4.4, which was
14586generated by GNU Autoconf 2.69. Invocation command line was
14587
14588 CONFIG_FILES = $CONFIG_FILES
14589 CONFIG_HEADERS = $CONFIG_HEADERS
14590 CONFIG_LINKS = $CONFIG_LINKS
14591 CONFIG_COMMANDS = $CONFIG_COMMANDS
14592 $ $0 $@
14593
14594on `(hostname || uname -n) 2>/dev/null | sed 1q`
14595"
14596
14597_ACEOF
14598
14599case $ac_config_files in *"
14600"*) set x $ac_config_files; shift; ac_config_files=$*;;
14601esac
14602
14603case $ac_config_headers in *"
14604"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14605esac
14606
14607
14608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14609# Files that config.status was made for.
14610config_files="$ac_config_files"
14611config_headers="$ac_config_headers"
14612config_commands="$ac_config_commands"
14613
14614_ACEOF
14615
14616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14617ac_cs_usage="\
14618\`$as_me' instantiates files and other configuration actions
14619from templates according to the current configuration. Unless the files
14620and actions are specified as TAGs, all are instantiated by default.
14621
14622Usage: $0 [OPTION]... [TAG]...
14623
14624 -h, --help print this help, then exit
14625 -V, --version print version number and configuration settings, then exit
14626 --config print configuration, then exit
14627 -q, --quiet, --silent
14628 do not print progress messages
14629 -d, --debug don't remove temporary files
14630 --recheck update $as_me by reconfiguring in the same conditions
14631 --file=FILE[:TEMPLATE]
14632 instantiate the configuration file FILE
14633 --header=FILE[:TEMPLATE]
14634 instantiate the configuration header FILE
14635
14636Configuration files:
14637$config_files
14638
14639Configuration headers:
14640$config_headers
14641
14642Configuration commands:
14643$config_commands
14644
14645Report bugs to the package provider."
14646
14647_ACEOF
14648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14649ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14650ac_cs_version="\\
14651QRencode config.status 3.4.4
14652configured by $0, generated by GNU Autoconf 2.69,
14653 with options \\"\$ac_cs_config\\"
14654
14655Copyright (C) 2012 Free Software Foundation, Inc.
14656This config.status script is free software; the Free Software Foundation
14657gives unlimited permission to copy, distribute and modify it."
14658
14659ac_pwd='$ac_pwd'
14660srcdir='$srcdir'
14661INSTALL='$INSTALL'
14662MKDIR_P='$MKDIR_P'
14663AWK='$AWK'
14664test -n "\$AWK" || AWK=awk
14665_ACEOF
14666
14667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14668# The default lists apply if the user does not specify any file.
14669ac_need_defaults=:
14670while test $# != 0
14671do
14672 case $1 in
14673 --*=?*)
14674 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14675 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14676 ac_shift=:
14677 ;;
14678 --*=)
14679 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14680 ac_optarg=
14681 ac_shift=:
14682 ;;
14683 *)
14684 ac_option=$1
14685 ac_optarg=$2
14686 ac_shift=shift
14687 ;;
14688 esac
14689
14690 case $ac_option in
14691 # Handling of the options.
14692 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14693 ac_cs_recheck=: ;;
14694 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14695 $as_echo "$ac_cs_version"; exit ;;
14696 --config | --confi | --conf | --con | --co | --c )
14697 $as_echo "$ac_cs_config"; exit ;;
14698 --debug | --debu | --deb | --de | --d | -d )
14699 debug=: ;;
14700 --file | --fil | --fi | --f )
14701 $ac_shift
14702 case $ac_optarg in
14703 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14704 '') as_fn_error $? "missing file argument" ;;
14705 esac
14706 as_fn_append CONFIG_FILES " '$ac_optarg'"
14707 ac_need_defaults=false;;
14708 --header | --heade | --head | --hea )
14709 $ac_shift
14710 case $ac_optarg in
14711 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14712 esac
14713 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14714 ac_need_defaults=false;;
14715 --he | --h)
14716 # Conflict between --help and --header
14717 as_fn_error $? "ambiguous option: \`$1'
14718Try \`$0 --help' for more information.";;
14719 --help | --hel | -h )
14720 $as_echo "$ac_cs_usage"; exit ;;
14721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14722 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14723 ac_cs_silent=: ;;
14724
14725 # This is an error.
14726 -*) as_fn_error $? "unrecognized option: \`$1'
14727Try \`$0 --help' for more information." ;;
14728
14729 *) as_fn_append ac_config_targets " $1"
14730 ac_need_defaults=false ;;
14731
14732 esac
14733 shift
14734done
14735
14736ac_configure_extra_args=
14737
14738if $ac_cs_silent; then
14739 exec 6>/dev/null
14740 ac_configure_extra_args="$ac_configure_extra_args --silent"
14741fi
14742
14743_ACEOF
14744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14745if \$ac_cs_recheck; then
14746 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14747 shift
14748 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14749 CONFIG_SHELL='$SHELL'
14750 export CONFIG_SHELL
14751 exec "\$@"
14752fi
14753
14754_ACEOF
14755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14756exec 5>>config.log
14757{
14758 echo
14759 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14760## Running $as_me. ##
14761_ASBOX
14762 $as_echo "$ac_log"
14763} >&5
14764
14765_ACEOF
14766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14767#
14768# INIT-COMMANDS
14769#
14770AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14771
14772
14773# The HP-UX ksh and POSIX shell print the target directory to stdout
14774# if CDPATH is set.
14775(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14776
14777sed_quote_subst='$sed_quote_subst'
14778double_quote_subst='$double_quote_subst'
14779delay_variable_subst='$delay_variable_subst'
14780enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14781macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14782macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14783enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14784pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14785enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14786SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14787ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14788PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14789host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14790host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14791host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14792build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14793build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14794build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14795SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14796Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14797GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14798EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14799FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14800LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14801NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14802LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14803max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14804ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14805exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14806lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14807lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14808lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14809lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14810lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14811reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14812reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14813OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14814deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14815file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14816file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14817want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14818DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14819sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14820AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14821AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14822archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14823STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14824RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14825old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14826old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14827old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14828lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14829CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14830CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14831compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14832GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14833lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14834lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14835lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14836lt_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"`'
14837nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14838lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14839objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14840MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14841lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14842lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14843lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14844lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14845lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14846need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14847MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14848DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14849NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14850LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14851OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14852OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14853libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14854shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14855extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14856archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14857enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14858export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14859whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14860compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14861old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14862old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14863archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14864archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14865module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14866module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14867with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14868allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14869no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14870hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14871hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14872hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14873hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14874hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14875hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14876hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14877inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14878link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14879always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14880export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14881exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14882include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14883prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14884postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14885file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14886variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14887need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14888need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14889version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14890runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14891shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14892shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14893libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14894library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14895soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14896install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14897postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14898postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14899finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14900finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14901hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14902sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14903sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14904hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14905enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14906enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14907enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14908old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14909striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14910
14911LTCC='$LTCC'
14912LTCFLAGS='$LTCFLAGS'
14913compiler='$compiler_DEFAULT'
14914
14915# A function that is used when there is no print builtin or printf.
14916func_fallback_echo ()
14917{
14918 eval 'cat <<_LTECHO_EOF
14919\$1
14920_LTECHO_EOF'
14921}
14922
14923# Quote evaled strings.
14924for var in SHELL \
14925ECHO \
14926PATH_SEPARATOR \
14927SED \
14928GREP \
14929EGREP \
14930FGREP \
14931LD \
14932NM \
14933LN_S \
14934lt_SP2NL \
14935lt_NL2SP \
14936reload_flag \
14937OBJDUMP \
14938deplibs_check_method \
14939file_magic_cmd \
14940file_magic_glob \
14941want_nocaseglob \
14942DLLTOOL \
14943sharedlib_from_linklib_cmd \
14944AR \
14945AR_FLAGS \
14946archiver_list_spec \
14947STRIP \
14948RANLIB \
14949CC \
14950CFLAGS \
14951compiler \
14952lt_cv_sys_global_symbol_pipe \
14953lt_cv_sys_global_symbol_to_cdecl \
14954lt_cv_sys_global_symbol_to_c_name_address \
14955lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14956nm_file_list_spec \
14957lt_prog_compiler_no_builtin_flag \
14958lt_prog_compiler_pic \
14959lt_prog_compiler_wl \
14960lt_prog_compiler_static \
14961lt_cv_prog_compiler_c_o \
14962need_locks \
14963MANIFEST_TOOL \
14964DSYMUTIL \
14965NMEDIT \
14966LIPO \
14967OTOOL \
14968OTOOL64 \
14969shrext_cmds \
14970export_dynamic_flag_spec \
14971whole_archive_flag_spec \
14972compiler_needs_object \
14973with_gnu_ld \
14974allow_undefined_flag \
14975no_undefined_flag \
14976hardcode_libdir_flag_spec \
14977hardcode_libdir_separator \
14978exclude_expsyms \
14979include_expsyms \
14980file_list_spec \
14981variables_saved_for_relink \
14982libname_spec \
14983library_names_spec \
14984soname_spec \
14985install_override_mode \
14986finish_eval \
14987old_striplib \
14988striplib; do
14989 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14990 *[\\\\\\\`\\"\\\$]*)
14991 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14992 ;;
14993 *)
14994 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14995 ;;
14996 esac
14997done
14998
14999# Double-quote double-evaled strings.
15000for var in reload_cmds \
15001old_postinstall_cmds \
15002old_postuninstall_cmds \
15003old_archive_cmds \
15004extract_expsyms_cmds \
15005old_archive_from_new_cmds \
15006old_archive_from_expsyms_cmds \
15007archive_cmds \
15008archive_expsym_cmds \
15009module_cmds \
15010module_expsym_cmds \
15011export_symbols_cmds \
15012prelink_cmds \
15013postlink_cmds \
15014postinstall_cmds \
15015postuninstall_cmds \
15016finish_cmds \
15017sys_lib_search_path_spec \
15018sys_lib_dlsearch_path_spec; do
15019 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15020 *[\\\\\\\`\\"\\\$]*)
15021 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15022 ;;
15023 *)
15024 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15025 ;;
15026 esac
15027done
15028
15029ac_aux_dir='$ac_aux_dir'
15030xsi_shell='$xsi_shell'
15031lt_shell_append='$lt_shell_append'
15032
15033# See if we are running on zsh, and set the options which allow our
15034# commands through without removal of \ escapes INIT.
15035if test -n "\${ZSH_VERSION+set}" ; then
15036 setopt NO_GLOB_SUBST
15037fi
15038
15039
15040 PACKAGE='$PACKAGE'
15041 VERSION='$VERSION'
15042 TIMESTAMP='$TIMESTAMP'
15043 RM='$RM'
15044 ofile='$ofile'
15045
15046
15047
15048
15049_ACEOF
15050
15051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15052
15053# Handling of arguments.
15054for ac_config_target in $ac_config_targets
15055do
15056 case $ac_config_target in
15057 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15058 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15059 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15060 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15061 "libqrencode.pc") CONFIG_FILES="$CONFIG_FILES libqrencode.pc" ;;
15062 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15063 "qrencode.spec") CONFIG_FILES="$CONFIG_FILES qrencode.spec" ;;
15064 "qrencode.1") CONFIG_FILES="$CONFIG_FILES qrencode.1" ;;
15065
15066 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15067 esac
15068done
15069
15070
15071# If the user did not use the arguments to specify the items to instantiate,
15072# then the envvar interface is used. Set only those that are not.
15073# We use the long form for the default assignment because of an extremely
15074# bizarre bug on SunOS 4.1.3.
15075if $ac_need_defaults; then
15076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15077 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15078 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15079fi
15080
15081# Have a temporary directory for convenience. Make it in the build tree
15082# simply because there is no reason against having it here, and in addition,
15083# creating and moving files from /tmp can sometimes cause problems.
15084# Hook for its removal unless debugging.
15085# Note that there is a small window in which the directory will not be cleaned:
15086# after its creation but before its name has been assigned to `$tmp'.
15087$debug ||
15088{
15089 tmp= ac_tmp=
15090 trap 'exit_status=$?
15091 : "${ac_tmp:=$tmp}"
15092 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15093' 0
15094 trap 'as_fn_exit 1' 1 2 13 15
15095}
15096# Create a (secure) tmp directory for tmp files.
15097
15098{
15099 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15100 test -d "$tmp"
15101} ||
15102{
15103 tmp=./conf$$-$RANDOM
15104 (umask 077 && mkdir "$tmp")
15105} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15106ac_tmp=$tmp
15107
15108# Set up the scripts for CONFIG_FILES section.
15109# No need to generate them if there are no CONFIG_FILES.
15110# This happens for instance with `./config.status config.h'.
15111if test -n "$CONFIG_FILES"; then
15112
15113
15114ac_cr=`echo X | tr X '\015'`
15115# On cygwin, bash can eat \r inside `` if the user requested igncr.
15116# But we know of no other shell where ac_cr would be empty at this
15117# point, so we can use a bashism as a fallback.
15118if test "x$ac_cr" = x; then
15119 eval ac_cr=\$\'\\r\'
15120fi
15121ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15122if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15123 ac_cs_awk_cr='\\r'
15124else
15125 ac_cs_awk_cr=$ac_cr
15126fi
15127
15128echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15129_ACEOF
15130
15131
15132{
15133 echo "cat >conf$$subs.awk <<_ACEOF" &&
15134 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15135 echo "_ACEOF"
15136} >conf$$subs.sh ||
15137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15138ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15139ac_delim='%!_!# '
15140for ac_last_try in false false false false false :; do
15141 . ./conf$$subs.sh ||
15142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15143
15144 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15145 if test $ac_delim_n = $ac_delim_num; then
15146 break
15147 elif $ac_last_try; then
15148 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15149 else
15150 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15151 fi
15152done
15153rm -f conf$$subs.sh
15154
15155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15156cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15157_ACEOF
15158sed -n '
15159h
15160s/^/S["/; s/!.*/"]=/
15161p
15162g
15163s/^[^!]*!//
15164:repl
15165t repl
15166s/'"$ac_delim"'$//
15167t delim
15168:nl
15169h
15170s/\(.\{148\}\)..*/\1/
15171t more1
15172s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15173p
15174n
15175b repl
15176:more1
15177s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15178p
15179g
15180s/.\{148\}//
15181t nl
15182:delim
15183h
15184s/\(.\{148\}\)..*/\1/
15185t more2
15186s/["\\]/\\&/g; s/^/"/; s/$/"/
15187p
15188b
15189:more2
15190s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15191p
15192g
15193s/.\{148\}//
15194t delim
15195' <conf$$subs.awk | sed '
15196/^[^""]/{
15197 N
15198 s/\n//
15199}
15200' >>$CONFIG_STATUS || ac_write_fail=1
15201rm -f conf$$subs.awk
15202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15203_ACAWK
15204cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15205 for (key in S) S_is_set[key] = 1
15206 FS = ""
15207
15208}
15209{
15210 line = $ 0
15211 nfields = split(line, field, "@")
15212 substed = 0
15213 len = length(field[1])
15214 for (i = 2; i < nfields; i++) {
15215 key = field[i]
15216 keylen = length(key)
15217 if (S_is_set[key]) {
15218 value = S[key]
15219 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15220 len += length(value) + length(field[++i])
15221 substed = 1
15222 } else
15223 len += 1 + keylen
15224 }
15225
15226 print line
15227}
15228
15229_ACAWK
15230_ACEOF
15231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15232if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15233 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15234else
15235 cat
15236fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15237 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15238_ACEOF
15239
15240# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15241# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15242# trailing colons and then remove the whole line if VPATH becomes empty
15243# (actually we leave an empty line to preserve line numbers).
15244if test "x$srcdir" = x.; then
15245 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15246h
15247s///
15248s/^/:/
15249s/[ ]*$/:/
15250s/:\$(srcdir):/:/g
15251s/:\${srcdir}:/:/g
15252s/:@srcdir@:/:/g
15253s/^:*//
15254s/:*$//
15255x
15256s/\(=[ ]*\).*/\1/
15257G
15258s/\n//
15259s/^[^=]*=[ ]*$//
15260}'
15261fi
15262
15263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15264fi # test -n "$CONFIG_FILES"
15265
15266# Set up the scripts for CONFIG_HEADERS section.
15267# No need to generate them if there are no CONFIG_HEADERS.
15268# This happens for instance with `./config.status Makefile'.
15269if test -n "$CONFIG_HEADERS"; then
15270cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15271BEGIN {
15272_ACEOF
15273
15274# Transform confdefs.h into an awk script `defines.awk', embedded as
15275# here-document in config.status, that substitutes the proper values into
15276# config.h.in to produce config.h.
15277
15278# Create a delimiter string that does not exist in confdefs.h, to ease
15279# handling of long lines.
15280ac_delim='%!_!# '
15281for ac_last_try in false false :; do
15282 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15283 if test -z "$ac_tt"; then
15284 break
15285 elif $ac_last_try; then
15286 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15287 else
15288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15289 fi
15290done
15291
15292# For the awk script, D is an array of macro values keyed by name,
15293# likewise P contains macro parameters if any. Preserve backslash
15294# newline sequences.
15295
15296ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15297sed -n '
15298s/.\{148\}/&'"$ac_delim"'/g
15299t rset
15300:rset
15301s/^[ ]*#[ ]*define[ ][ ]*/ /
15302t def
15303d
15304:def
15305s/\\$//
15306t bsnl
15307s/["\\]/\\&/g
15308s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15309D["\1"]=" \3"/p
15310s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15311d
15312:bsnl
15313s/["\\]/\\&/g
15314s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15315D["\1"]=" \3\\\\\\n"\\/p
15316t cont
15317s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15318t cont
15319d
15320:cont
15321n
15322s/.\{148\}/&'"$ac_delim"'/g
15323t clear
15324:clear
15325s/\\$//
15326t bsnlc
15327s/["\\]/\\&/g; s/^/"/; s/$/"/p
15328d
15329:bsnlc
15330s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15331b cont
15332' <confdefs.h | sed '
15333s/'"$ac_delim"'/"\\\
15334"/g' >>$CONFIG_STATUS || ac_write_fail=1
15335
15336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15337 for (key in D) D_is_set[key] = 1
15338 FS = ""
15339}
15340/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15341 line = \$ 0
15342 split(line, arg, " ")
15343 if (arg[1] == "#") {
15344 defundef = arg[2]
15345 mac1 = arg[3]
15346 } else {
15347 defundef = substr(arg[1], 2)
15348 mac1 = arg[2]
15349 }
15350 split(mac1, mac2, "(") #)
15351 macro = mac2[1]
15352 prefix = substr(line, 1, index(line, defundef) - 1)
15353 if (D_is_set[macro]) {
15354 # Preserve the white space surrounding the "#".
15355 print prefix "define", macro P[macro] D[macro]
15356 next
15357 } else {
15358 # Replace #undef with comments. This is necessary, for example,
15359 # in the case of _POSIX_SOURCE, which is predefined and required
15360 # on some systems where configure will not decide to define it.
15361 if (defundef == "undef") {
15362 print "/*", prefix defundef, macro, "*/"
15363 next
15364 }
15365 }
15366}
15367{ print }
15368_ACAWK
15369_ACEOF
15370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15371 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15372fi # test -n "$CONFIG_HEADERS"
15373
15374
15375eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15376shift
15377for ac_tag
15378do
15379 case $ac_tag in
15380 :[FHLC]) ac_mode=$ac_tag; continue;;
15381 esac
15382 case $ac_mode$ac_tag in
15383 :[FHL]*:*);;
15384 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15385 :[FH]-) ac_tag=-:-;;
15386 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15387 esac
15388 ac_save_IFS=$IFS
15389 IFS=:
15390 set x $ac_tag
15391 IFS=$ac_save_IFS
15392 shift
15393 ac_file=$1
15394 shift
15395
15396 case $ac_mode in
15397 :L) ac_source=$1;;
15398 :[FH])
15399 ac_file_inputs=
15400 for ac_f
15401 do
15402 case $ac_f in
15403 -) ac_f="$ac_tmp/stdin";;
15404 *) # Look for the file first in the build tree, then in the source tree
15405 # (if the path is not absolute). The absolute path cannot be DOS-style,
15406 # because $ac_f cannot contain `:'.
15407 test -f "$ac_f" ||
15408 case $ac_f in
15409 [\\/$]*) false;;
15410 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15411 esac ||
15412 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15413 esac
15414 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15415 as_fn_append ac_file_inputs " '$ac_f'"
15416 done
15417
15418 # Let's still pretend it is `configure' which instantiates (i.e., don't
15419 # use $as_me), people would be surprised to read:
15420 # /* config.h. Generated by config.status. */
15421 configure_input='Generated from '`
15422 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15423 `' by configure.'
15424 if test x"$ac_file" != x-; then
15425 configure_input="$ac_file. $configure_input"
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15427$as_echo "$as_me: creating $ac_file" >&6;}
15428 fi
15429 # Neutralize special characters interpreted by sed in replacement strings.
15430 case $configure_input in #(
15431 *\&* | *\|* | *\\* )
15432 ac_sed_conf_input=`$as_echo "$configure_input" |
15433 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15434 *) ac_sed_conf_input=$configure_input;;
15435 esac
15436
15437 case $ac_tag in
15438 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15439 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15440 esac
15441 ;;
15442 esac
15443
15444 ac_dir=`$as_dirname -- "$ac_file" ||
15445$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15446 X"$ac_file" : 'X\(//\)[^/]' \| \
15447 X"$ac_file" : 'X\(//\)$' \| \
15448 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15449$as_echo X"$ac_file" |
15450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15451 s//\1/
15452 q
15453 }
15454 /^X\(\/\/\)[^/].*/{
15455 s//\1/
15456 q
15457 }
15458 /^X\(\/\/\)$/{
15459 s//\1/
15460 q
15461 }
15462 /^X\(\/\).*/{
15463 s//\1/
15464 q
15465 }
15466 s/.*/./; q'`
15467 as_dir="$ac_dir"; as_fn_mkdir_p
15468 ac_builddir=.
15469
15470case "$ac_dir" in
15471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15472*)
15473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15474 # A ".." for each directory in $ac_dir_suffix.
15475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15476 case $ac_top_builddir_sub in
15477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15479 esac ;;
15480esac
15481ac_abs_top_builddir=$ac_pwd
15482ac_abs_builddir=$ac_pwd$ac_dir_suffix
15483# for backward compatibility:
15484ac_top_builddir=$ac_top_build_prefix
15485
15486case $srcdir in
15487 .) # We are building in place.
15488 ac_srcdir=.
15489 ac_top_srcdir=$ac_top_builddir_sub
15490 ac_abs_top_srcdir=$ac_pwd ;;
15491 [\\/]* | ?:[\\/]* ) # Absolute name.
15492 ac_srcdir=$srcdir$ac_dir_suffix;
15493 ac_top_srcdir=$srcdir
15494 ac_abs_top_srcdir=$srcdir ;;
15495 *) # Relative name.
15496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15497 ac_top_srcdir=$ac_top_build_prefix$srcdir
15498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15499esac
15500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15501
15502
15503 case $ac_mode in
15504 :F)
15505 #
15506 # CONFIG_FILE
15507 #
15508
15509 case $INSTALL in
15510 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15511 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15512 esac
15513 ac_MKDIR_P=$MKDIR_P
15514 case $MKDIR_P in
15515 [\\/$]* | ?:[\\/]* ) ;;
15516 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15517 esac
15518_ACEOF
15519
15520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15521# If the template does not know about datarootdir, expand it.
15522# FIXME: This hack should be removed a few years after 2.60.
15523ac_datarootdir_hack=; ac_datarootdir_seen=
15524ac_sed_dataroot='
15525/datarootdir/ {
15526 p
15527 q
15528}
15529/@datadir@/p
15530/@docdir@/p
15531/@infodir@/p
15532/@localedir@/p
15533/@mandir@/p'
15534case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15535*datarootdir*) ac_datarootdir_seen=yes;;
15536*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15538$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15539_ACEOF
15540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15541 ac_datarootdir_hack='
15542 s&@datadir@&$datadir&g
15543 s&@docdir@&$docdir&g
15544 s&@infodir@&$infodir&g
15545 s&@localedir@&$localedir&g
15546 s&@mandir@&$mandir&g
15547 s&\\\${datarootdir}&$datarootdir&g' ;;
15548esac
15549_ACEOF
15550
15551# Neutralize VPATH when `$srcdir' = `.'.
15552# Shell code in configure.ac might set extrasub.
15553# FIXME: do we really want to maintain this feature?
15554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15555ac_sed_extra="$ac_vpsub
15556$extrasub
15557_ACEOF
15558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15559:t
15560/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15561s|@configure_input@|$ac_sed_conf_input|;t t
15562s&@top_builddir@&$ac_top_builddir_sub&;t t
15563s&@top_build_prefix@&$ac_top_build_prefix&;t t
15564s&@srcdir@&$ac_srcdir&;t t
15565s&@abs_srcdir@&$ac_abs_srcdir&;t t
15566s&@top_srcdir@&$ac_top_srcdir&;t t
15567s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15568s&@builddir@&$ac_builddir&;t t
15569s&@abs_builddir@&$ac_abs_builddir&;t t
15570s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15571s&@INSTALL@&$ac_INSTALL&;t t
15572s&@MKDIR_P@&$ac_MKDIR_P&;t t
15573$ac_datarootdir_hack
15574"
15575eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15576 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15577
15578test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15579 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15580 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15581 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15583which seems to be undefined. Please make sure it is defined" >&5
15584$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15585which seems to be undefined. Please make sure it is defined" >&2;}
15586
15587 rm -f "$ac_tmp/stdin"
15588 case $ac_file in
15589 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15590 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15591 esac \
15592 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15593 ;;
15594 :H)
15595 #
15596 # CONFIG_HEADER
15597 #
15598 if test x"$ac_file" != x-; then
15599 {
15600 $as_echo "/* $configure_input */" \
15601 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15602 } >"$ac_tmp/config.h" \
15603 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15604 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15606$as_echo "$as_me: $ac_file is unchanged" >&6;}
15607 else
15608 rm -f "$ac_file"
15609 mv "$ac_tmp/config.h" "$ac_file" \
15610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15611 fi
15612 else
15613 $as_echo "/* $configure_input */" \
15614 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15615 || as_fn_error $? "could not create -" "$LINENO" 5
15616 fi
15617# Compute "$ac_file"'s index in $config_headers.
15618_am_arg="$ac_file"
15619_am_stamp_count=1
15620for _am_header in $config_headers :; do
15621 case $_am_header in
15622 $_am_arg | $_am_arg:* )
15623 break ;;
15624 * )
15625 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15626 esac
15627done
15628echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15629$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15630 X"$_am_arg" : 'X\(//\)[^/]' \| \
15631 X"$_am_arg" : 'X\(//\)$' \| \
15632 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15633$as_echo X"$_am_arg" |
15634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15635 s//\1/
15636 q
15637 }
15638 /^X\(\/\/\)[^/].*/{
15639 s//\1/
15640 q
15641 }
15642 /^X\(\/\/\)$/{
15643 s//\1/
15644 q
15645 }
15646 /^X\(\/\).*/{
15647 s//\1/
15648 q
15649 }
15650 s/.*/./; q'`/stamp-h$_am_stamp_count
15651 ;;
15652
15653 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15654$as_echo "$as_me: executing $ac_file commands" >&6;}
15655 ;;
15656 esac
15657
15658
15659 case $ac_file$ac_mode in
15660 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15661 # Older Autoconf quotes --file arguments for eval, but not when files
15662 # are listed without --file. Let's play safe and only enable the eval
15663 # if we detect the quoting.
15664 case $CONFIG_FILES in
15665 *\'*) eval set x "$CONFIG_FILES" ;;
15666 *) set x $CONFIG_FILES ;;
15667 esac
15668 shift
15669 for mf
15670 do
15671 # Strip MF so we end up with the name of the file.
15672 mf=`echo "$mf" | sed -e 's/:.*$//'`
15673 # Check whether this is an Automake generated Makefile or not.
15674 # We used to match only the files named 'Makefile.in', but
15675 # some people rename them; so instead we look at the file content.
15676 # Grep'ing the first line is not enough: some people post-process
15677 # each Makefile.in and add a new line on top of each file to say so.
15678 # Grep'ing the whole file is not good either: AIX grep has a line
15679 # limit of 2048, but all sed's we know have understand at least 4000.
15680 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15681 dirpart=`$as_dirname -- "$mf" ||
15682$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15683 X"$mf" : 'X\(//\)[^/]' \| \
15684 X"$mf" : 'X\(//\)$' \| \
15685 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15686$as_echo X"$mf" |
15687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15688 s//\1/
15689 q
15690 }
15691 /^X\(\/\/\)[^/].*/{
15692 s//\1/
15693 q
15694 }
15695 /^X\(\/\/\)$/{
15696 s//\1/
15697 q
15698 }
15699 /^X\(\/\).*/{
15700 s//\1/
15701 q
15702 }
15703 s/.*/./; q'`
15704 else
15705 continue
15706 fi
15707 # Extract the definition of DEPDIR, am__include, and am__quote
15708 # from the Makefile without running 'make'.
15709 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15710 test -z "$DEPDIR" && continue
15711 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15712 test -z "$am__include" && continue
15713 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15714 # Find all dependency output files, they are included files with
15715 # $(DEPDIR) in their names. We invoke sed twice because it is the
15716 # simplest approach to changing $(DEPDIR) to its actual value in the
15717 # expansion.
15718 for file in `sed -n "
15719 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15720 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15721 # Make sure the directory exists.
15722 test -f "$dirpart/$file" && continue
15723 fdir=`$as_dirname -- "$file" ||
15724$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15725 X"$file" : 'X\(//\)[^/]' \| \
15726 X"$file" : 'X\(//\)$' \| \
15727 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15728$as_echo X"$file" |
15729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15730 s//\1/
15731 q
15732 }
15733 /^X\(\/\/\)[^/].*/{
15734 s//\1/
15735 q
15736 }
15737 /^X\(\/\/\)$/{
15738 s//\1/
15739 q
15740 }
15741 /^X\(\/\).*/{
15742 s//\1/
15743 q
15744 }
15745 s/.*/./; q'`
15746 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15747 # echo "creating $dirpart/$file"
15748 echo '# dummy' > "$dirpart/$file"
15749 done
15750 done
15751}
15752 ;;
15753 "libtool":C)
15754
15755 # See if we are running on zsh, and set the options which allow our
15756 # commands through without removal of \ escapes.
15757 if test -n "${ZSH_VERSION+set}" ; then
15758 setopt NO_GLOB_SUBST
15759 fi
15760
15761 cfgfile="${ofile}T"
15762 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15763 $RM "$cfgfile"
15764
15765 cat <<_LT_EOF >> "$cfgfile"
15766#! $SHELL
15767
15768# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15769# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15770# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15771# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15772#
15773# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15774# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15775# Foundation, Inc.
15776# Written by Gordon Matzigkeit, 1996
15777#
15778# This file is part of GNU Libtool.
15779#
15780# GNU Libtool is free software; you can redistribute it and/or
15781# modify it under the terms of the GNU General Public License as
15782# published by the Free Software Foundation; either version 2 of
15783# the License, or (at your option) any later version.
15784#
15785# As a special exception to the GNU General Public License,
15786# if you distribute this file as part of a program or library that
15787# is built using GNU Libtool, you may include this file under the
15788# same distribution terms that you use for the rest of that program.
15789#
15790# GNU Libtool is distributed in the hope that it will be useful,
15791# but WITHOUT ANY WARRANTY; without even the implied warranty of
15792# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15793# GNU General Public License for more details.
15794#
15795# You should have received a copy of the GNU General Public License
15796# along with GNU Libtool; see the file COPYING. If not, a copy
15797# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15798# obtained by writing to the Free Software Foundation, Inc.,
15799# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15800
15801
15802# The names of the tagged configurations supported by this script.
15803available_tags=""
15804
15805# ### BEGIN LIBTOOL CONFIG
15806
15807# Whether or not to build static libraries.
15808build_old_libs=$enable_static
15809
15810# Which release of libtool.m4 was used?
15811macro_version=$macro_version
15812macro_revision=$macro_revision
15813
15814# Whether or not to build shared libraries.
15815build_libtool_libs=$enable_shared
15816
15817# What type of objects to build.
15818pic_mode=$pic_mode
15819
15820# Whether or not to optimize for fast installation.
15821fast_install=$enable_fast_install
15822
15823# Shell to use when invoking shell scripts.
15824SHELL=$lt_SHELL
15825
15826# An echo program that protects backslashes.
15827ECHO=$lt_ECHO
15828
15829# The PATH separator for the build system.
15830PATH_SEPARATOR=$lt_PATH_SEPARATOR
15831
15832# The host system.
15833host_alias=$host_alias
15834host=$host
15835host_os=$host_os
15836
15837# The build system.
15838build_alias=$build_alias
15839build=$build
15840build_os=$build_os
15841
15842# A sed program that does not truncate output.
15843SED=$lt_SED
15844
15845# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15846Xsed="\$SED -e 1s/^X//"
15847
15848# A grep program that handles long lines.
15849GREP=$lt_GREP
15850
15851# An ERE matcher.
15852EGREP=$lt_EGREP
15853
15854# A literal string matcher.
15855FGREP=$lt_FGREP
15856
15857# A BSD- or MS-compatible name lister.
15858NM=$lt_NM
15859
15860# Whether we need soft or hard links.
15861LN_S=$lt_LN_S
15862
15863# What is the maximum length of a command?
15864max_cmd_len=$max_cmd_len
15865
15866# Object file suffix (normally "o").
15867objext=$ac_objext
15868
15869# Executable file suffix (normally "").
15870exeext=$exeext
15871
15872# whether the shell understands "unset".
15873lt_unset=$lt_unset
15874
15875# turn spaces into newlines.
15876SP2NL=$lt_lt_SP2NL
15877
15878# turn newlines into spaces.
15879NL2SP=$lt_lt_NL2SP
15880
15881# convert \$build file names to \$host format.
15882to_host_file_cmd=$lt_cv_to_host_file_cmd
15883
15884# convert \$build files to toolchain format.
15885to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15886
15887# An object symbol dumper.
15888OBJDUMP=$lt_OBJDUMP
15889
15890# Method to check whether dependent libraries are shared objects.
15891deplibs_check_method=$lt_deplibs_check_method
15892
15893# Command to use when deplibs_check_method = "file_magic".
15894file_magic_cmd=$lt_file_magic_cmd
15895
15896# How to find potential files when deplibs_check_method = "file_magic".
15897file_magic_glob=$lt_file_magic_glob
15898
15899# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15900want_nocaseglob=$lt_want_nocaseglob
15901
15902# DLL creation program.
15903DLLTOOL=$lt_DLLTOOL
15904
15905# Command to associate shared and link libraries.
15906sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15907
15908# The archiver.
15909AR=$lt_AR
15910
15911# Flags to create an archive.
15912AR_FLAGS=$lt_AR_FLAGS
15913
15914# How to feed a file listing to the archiver.
15915archiver_list_spec=$lt_archiver_list_spec
15916
15917# A symbol stripping program.
15918STRIP=$lt_STRIP
15919
15920# Commands used to install an old-style archive.
15921RANLIB=$lt_RANLIB
15922old_postinstall_cmds=$lt_old_postinstall_cmds
15923old_postuninstall_cmds=$lt_old_postuninstall_cmds
15924
15925# Whether to use a lock for old archive extraction.
15926lock_old_archive_extraction=$lock_old_archive_extraction
15927
15928# A C compiler.
15929LTCC=$lt_CC
15930
15931# LTCC compiler flags.
15932LTCFLAGS=$lt_CFLAGS
15933
15934# Take the output of nm and produce a listing of raw symbols and C names.
15935global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15936
15937# Transform the output of nm in a proper C declaration.
15938global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15939
15940# Transform the output of nm in a C name address pair.
15941global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15942
15943# Transform the output of nm in a C name address pair when lib prefix is needed.
15944global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15945
15946# Specify filename containing input files for \$NM.
15947nm_file_list_spec=$lt_nm_file_list_spec
15948
15949# The root where to search for dependent libraries,and in which our libraries should be installed.
15950lt_sysroot=$lt_sysroot
15951
15952# The name of the directory that contains temporary libtool files.
15953objdir=$objdir
15954
15955# Used to examine libraries when file_magic_cmd begins with "file".
15956MAGIC_CMD=$MAGIC_CMD
15957
15958# Must we lock files when doing compilation?
15959need_locks=$lt_need_locks
15960
15961# Manifest tool.
15962MANIFEST_TOOL=$lt_MANIFEST_TOOL
15963
15964# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15965DSYMUTIL=$lt_DSYMUTIL
15966
15967# Tool to change global to local symbols on Mac OS X.
15968NMEDIT=$lt_NMEDIT
15969
15970# Tool to manipulate fat objects and archives on Mac OS X.
15971LIPO=$lt_LIPO
15972
15973# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15974OTOOL=$lt_OTOOL
15975
15976# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15977OTOOL64=$lt_OTOOL64
15978
15979# Old archive suffix (normally "a").
15980libext=$libext
15981
15982# Shared library suffix (normally ".so").
15983shrext_cmds=$lt_shrext_cmds
15984
15985# The commands to extract the exported symbol list from a shared archive.
15986extract_expsyms_cmds=$lt_extract_expsyms_cmds
15987
15988# Variables whose values should be saved in libtool wrapper scripts and
15989# restored at link time.
15990variables_saved_for_relink=$lt_variables_saved_for_relink
15991
15992# Do we need the "lib" prefix for modules?
15993need_lib_prefix=$need_lib_prefix
15994
15995# Do we need a version for libraries?
15996need_version=$need_version
15997
15998# Library versioning type.
15999version_type=$version_type
16000
16001# Shared library runtime path variable.
16002runpath_var=$runpath_var
16003
16004# Shared library path variable.
16005shlibpath_var=$shlibpath_var
16006
16007# Is shlibpath searched before the hard-coded library search path?
16008shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16009
16010# Format of library name prefix.
16011libname_spec=$lt_libname_spec
16012
16013# List of archive names. First name is the real one, the rest are links.
16014# The last name is the one that the linker finds with -lNAME
16015library_names_spec=$lt_library_names_spec
16016
16017# The coded name of the library, if different from the real name.
16018soname_spec=$lt_soname_spec
16019
16020# Permission mode override for installation of shared libraries.
16021install_override_mode=$lt_install_override_mode
16022
16023# Command to use after installation of a shared archive.
16024postinstall_cmds=$lt_postinstall_cmds
16025
16026# Command to use after uninstallation of a shared archive.
16027postuninstall_cmds=$lt_postuninstall_cmds
16028
16029# Commands used to finish a libtool library installation in a directory.
16030finish_cmds=$lt_finish_cmds
16031
16032# As "finish_cmds", except a single script fragment to be evaled but
16033# not shown.
16034finish_eval=$lt_finish_eval
16035
16036# Whether we should hardcode library paths into libraries.
16037hardcode_into_libs=$hardcode_into_libs
16038
16039# Compile-time system search path for libraries.
16040sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16041
16042# Run-time system search path for libraries.
16043sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16044
16045# Whether dlopen is supported.
16046dlopen_support=$enable_dlopen
16047
16048# Whether dlopen of programs is supported.
16049dlopen_self=$enable_dlopen_self
16050
16051# Whether dlopen of statically linked programs is supported.
16052dlopen_self_static=$enable_dlopen_self_static
16053
16054# Commands to strip libraries.
16055old_striplib=$lt_old_striplib
16056striplib=$lt_striplib
16057
16058
16059# The linker used to build libraries.
16060LD=$lt_LD
16061
16062# How to create reloadable object files.
16063reload_flag=$lt_reload_flag
16064reload_cmds=$lt_reload_cmds
16065
16066# Commands used to build an old-style archive.
16067old_archive_cmds=$lt_old_archive_cmds
16068
16069# A language specific compiler.
16070CC=$lt_compiler
16071
16072# Is the compiler the GNU compiler?
16073with_gcc=$GCC
16074
16075# Compiler flag to turn off builtin functions.
16076no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16077
16078# Additional compiler flags for building library objects.
16079pic_flag=$lt_lt_prog_compiler_pic
16080
16081# How to pass a linker flag through the compiler.
16082wl=$lt_lt_prog_compiler_wl
16083
16084# Compiler flag to prevent dynamic linking.
16085link_static_flag=$lt_lt_prog_compiler_static
16086
16087# Does compiler simultaneously support -c and -o options?
16088compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16089
16090# Whether or not to add -lc for building shared libraries.
16091build_libtool_need_lc=$archive_cmds_need_lc
16092
16093# Whether or not to disallow shared libs when runtime libs are static.
16094allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16095
16096# Compiler flag to allow reflexive dlopens.
16097export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16098
16099# Compiler flag to generate shared objects directly from archives.
16100whole_archive_flag_spec=$lt_whole_archive_flag_spec
16101
16102# Whether the compiler copes with passing no objects directly.
16103compiler_needs_object=$lt_compiler_needs_object
16104
16105# Create an old-style archive from a shared archive.
16106old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16107
16108# Create a temporary old-style archive to link instead of a shared archive.
16109old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16110
16111# Commands used to build a shared archive.
16112archive_cmds=$lt_archive_cmds
16113archive_expsym_cmds=$lt_archive_expsym_cmds
16114
16115# Commands used to build a loadable module if different from building
16116# a shared archive.
16117module_cmds=$lt_module_cmds
16118module_expsym_cmds=$lt_module_expsym_cmds
16119
16120# Whether we are building with GNU ld or not.
16121with_gnu_ld=$lt_with_gnu_ld
16122
16123# Flag that allows shared libraries with undefined symbols to be built.
16124allow_undefined_flag=$lt_allow_undefined_flag
16125
16126# Flag that enforces no undefined symbols.
16127no_undefined_flag=$lt_no_undefined_flag
16128
16129# Flag to hardcode \$libdir into a binary during linking.
16130# This must work even if \$libdir does not exist
16131hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16132
16133# Whether we need a single "-rpath" flag with a separated argument.
16134hardcode_libdir_separator=$lt_hardcode_libdir_separator
16135
16136# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16137# DIR into the resulting binary.
16138hardcode_direct=$hardcode_direct
16139
16140# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16141# DIR into the resulting binary and the resulting library dependency is
16142# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16143# library is relocated.
16144hardcode_direct_absolute=$hardcode_direct_absolute
16145
16146# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16147# into the resulting binary.
16148hardcode_minus_L=$hardcode_minus_L
16149
16150# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16151# into the resulting binary.
16152hardcode_shlibpath_var=$hardcode_shlibpath_var
16153
16154# Set to "yes" if building a shared library automatically hardcodes DIR
16155# into the library and all subsequent libraries and executables linked
16156# against it.
16157hardcode_automatic=$hardcode_automatic
16158
16159# Set to yes if linker adds runtime paths of dependent libraries
16160# to runtime path list.
16161inherit_rpath=$inherit_rpath
16162
16163# Whether libtool must link a program against all its dependency libraries.
16164link_all_deplibs=$link_all_deplibs
16165
16166# Set to "yes" if exported symbols are required.
16167always_export_symbols=$always_export_symbols
16168
16169# The commands to list exported symbols.
16170export_symbols_cmds=$lt_export_symbols_cmds
16171
16172# Symbols that should not be listed in the preloaded symbols.
16173exclude_expsyms=$lt_exclude_expsyms
16174
16175# Symbols that must always be exported.
16176include_expsyms=$lt_include_expsyms
16177
16178# Commands necessary for linking programs (against libraries) with templates.
16179prelink_cmds=$lt_prelink_cmds
16180
16181# Commands necessary for finishing linking programs.
16182postlink_cmds=$lt_postlink_cmds
16183
16184# Specify filename containing input files.
16185file_list_spec=$lt_file_list_spec
16186
16187# How to hardcode a shared library path into an executable.
16188hardcode_action=$hardcode_action
16189
16190# ### END LIBTOOL CONFIG
16191
16192_LT_EOF
16193
16194 case $host_os in
16195 aix3*)
16196 cat <<\_LT_EOF >> "$cfgfile"
16197# AIX sometimes has problems with the GCC collect2 program. For some
16198# reason, if we set the COLLECT_NAMES environment variable, the problems
16199# vanish in a puff of smoke.
16200if test "X${COLLECT_NAMES+set}" != Xset; then
16201 COLLECT_NAMES=
16202 export COLLECT_NAMES
16203fi
16204_LT_EOF
16205 ;;
16206 esac
16207
16208
16209ltmain="$ac_aux_dir/ltmain.sh"
16210
16211
16212 # We use sed instead of cat because bash on DJGPP gets confused if
16213 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16214 # text mode, it properly converts lines to CR/LF. This bash problem
16215 # is reportedly fixed, but why not run on old versions too?
16216 sed '$q' "$ltmain" >> "$cfgfile" \
16217 || (rm -f "$cfgfile"; exit 1)
16218
16219 if test x"$xsi_shell" = xyes; then
16220 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16221func_dirname ()\
16222{\
16223\ case ${1} in\
16224\ */*) func_dirname_result="${1%/*}${2}" ;;\
16225\ * ) func_dirname_result="${3}" ;;\
16226\ esac\
16227} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16228 && mv -f "$cfgfile.tmp" "$cfgfile" \
16229 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16230test 0 -eq $? || _lt_function_replace_fail=:
16231
16232
16233 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16234func_basename ()\
16235{\
16236\ func_basename_result="${1##*/}"\
16237} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16238 && mv -f "$cfgfile.tmp" "$cfgfile" \
16239 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16240test 0 -eq $? || _lt_function_replace_fail=:
16241
16242
16243 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16244func_dirname_and_basename ()\
16245{\
16246\ case ${1} in\
16247\ */*) func_dirname_result="${1%/*}${2}" ;;\
16248\ * ) func_dirname_result="${3}" ;;\
16249\ esac\
16250\ func_basename_result="${1##*/}"\
16251} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16252 && mv -f "$cfgfile.tmp" "$cfgfile" \
16253 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16254test 0 -eq $? || _lt_function_replace_fail=:
16255
16256
16257 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16258func_stripname ()\
16259{\
16260\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16261\ # positional parameters, so assign one to ordinary parameter first.\
16262\ func_stripname_result=${3}\
16263\ func_stripname_result=${func_stripname_result#"${1}"}\
16264\ func_stripname_result=${func_stripname_result%"${2}"}\
16265} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16266 && mv -f "$cfgfile.tmp" "$cfgfile" \
16267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16268test 0 -eq $? || _lt_function_replace_fail=:
16269
16270
16271 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16272func_split_long_opt ()\
16273{\
16274\ func_split_long_opt_name=${1%%=*}\
16275\ func_split_long_opt_arg=${1#*=}\
16276} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16277 && mv -f "$cfgfile.tmp" "$cfgfile" \
16278 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16279test 0 -eq $? || _lt_function_replace_fail=:
16280
16281
16282 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16283func_split_short_opt ()\
16284{\
16285\ func_split_short_opt_arg=${1#??}\
16286\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16287} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16288 && mv -f "$cfgfile.tmp" "$cfgfile" \
16289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16290test 0 -eq $? || _lt_function_replace_fail=:
16291
16292
16293 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16294func_lo2o ()\
16295{\
16296\ case ${1} in\
16297\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16298\ *) func_lo2o_result=${1} ;;\
16299\ esac\
16300} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16301 && mv -f "$cfgfile.tmp" "$cfgfile" \
16302 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16303test 0 -eq $? || _lt_function_replace_fail=:
16304
16305
16306 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16307func_xform ()\
16308{\
16309 func_xform_result=${1%.*}.lo\
16310} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16311 && mv -f "$cfgfile.tmp" "$cfgfile" \
16312 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16313test 0 -eq $? || _lt_function_replace_fail=:
16314
16315
16316 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16317func_arith ()\
16318{\
16319 func_arith_result=$(( $* ))\
16320} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16321 && mv -f "$cfgfile.tmp" "$cfgfile" \
16322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16323test 0 -eq $? || _lt_function_replace_fail=:
16324
16325
16326 sed -e '/^func_len ()$/,/^} # func_len /c\
16327func_len ()\
16328{\
16329 func_len_result=${#1}\
16330} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16331 && mv -f "$cfgfile.tmp" "$cfgfile" \
16332 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16333test 0 -eq $? || _lt_function_replace_fail=:
16334
16335fi
16336
16337if test x"$lt_shell_append" = xyes; then
16338 sed -e '/^func_append ()$/,/^} # func_append /c\
16339func_append ()\
16340{\
16341 eval "${1}+=\\${2}"\
16342} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16343 && mv -f "$cfgfile.tmp" "$cfgfile" \
16344 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16345test 0 -eq $? || _lt_function_replace_fail=:
16346
16347
16348 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16349func_append_quoted ()\
16350{\
16351\ func_quote_for_eval "${2}"\
16352\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16353} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16354 && mv -f "$cfgfile.tmp" "$cfgfile" \
16355 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16356test 0 -eq $? || _lt_function_replace_fail=:
16357
16358
16359 # Save a `func_append' function call where possible by direct use of '+='
16360 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16361 && mv -f "$cfgfile.tmp" "$cfgfile" \
16362 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16363 test 0 -eq $? || _lt_function_replace_fail=:
16364else
16365 # Save a `func_append' function call even when '+=' is not available
16366 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16367 && mv -f "$cfgfile.tmp" "$cfgfile" \
16368 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16369 test 0 -eq $? || _lt_function_replace_fail=:
16370fi
16371
16372if test x"$_lt_function_replace_fail" = x":"; then
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16374$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16375fi
16376
16377
16378 mv -f "$cfgfile" "$ofile" ||
16379 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16380 chmod +x "$ofile"
16381
16382 ;;
16383
16384 esac
16385done # for ac_tag
16386
16387
16388as_fn_exit 0
16389_ACEOF
16390ac_clean_files=$ac_clean_files_save
16391
16392test $ac_write_fail = 0 ||
16393 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16394
16395
16396# configure is writing to config.log, and then calls config.status.
16397# config.status does its own redirection, appending to config.log.
16398# Unfortunately, on DOS this fails, as config.log is still kept open
16399# by configure, so config.status won't be able to write to it; its
16400# output is simply discarded. So we exec the FD to /dev/null,
16401# effectively closing config.log, so it can be properly (re)opened and
16402# appended to by config.status. When coming back to configure, we
16403# need to make the FD available again.
16404if test "$no_create" != yes; then
16405 ac_cs_success=:
16406 ac_config_status_args=
16407 test "$silent" = yes &&
16408 ac_config_status_args="$ac_config_status_args --quiet"
16409 exec 5>/dev/null
16410 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16411 exec 5>>config.log
16412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16413 # would make configure fail if this is the last instruction.
16414 $ac_cs_success || as_fn_exit 1
16415fi
16416if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16418$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16419fi
16420
16421
16422echo ""
16423echo "Options used to compile and link:"
16424echo " CC = $CC"
16425echo " CFLAGS = $CFLAGS"
16426echo " CPPFLAGS = $CPPFLAGS"
16427echo " CXX = $CXX"
16428echo " CXXFLAGS = $CXXFLAGS"
16429echo " LDFLAGS = $LDFLAGS"
16430echo ""