Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for QRencode 4.1.1.
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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 }
79 fi
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.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
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
100 IFS=$as_save_IFS
101
102 ;;
103 esac
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.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
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.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export 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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $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
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if 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
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -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
199 test \$(( 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
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
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
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
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
242 fi; }
243 IFS=$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.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $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
265 exit 255
266 fi
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 [email protected] 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
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_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.
313 as_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.
323 as_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.
371 as_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.
381 if (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 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # 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.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # 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.
416 as_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
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_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.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_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
508 ECHO_C= ECHO_N= ECHO_T=
509 case `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';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (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
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_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.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 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.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='QRencode'
589 PACKAGE_TARNAME='qrencode'
590 PACKAGE_VERSION='4.1.1'
591 PACKAGE_STRING='QRencode 4.1.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="qrencode.c"
596 # Factoring default headers for most tests.
597 ac_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
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 HAVE_SDL_FALSE
637 HAVE_SDL_TRUE
638 LTLIBICONV
639 LIBICONV
640 SDL_LIBS
641 SDL_CFLAGS
642 BUILD_TESTS_FALSE
643 BUILD_TESTS_TRUE
644 HAVE_PNG_FALSE
645 HAVE_PNG_TRUE
646 png_LIBS
647 png_CFLAGS
648 BUILD_TOOLS_FALSE
649 BUILD_TOOLS_TRUE
650 HAVE_LIBPTHREAD_FALSE
651 HAVE_LIBPTHREAD_TRUE
652 LIBPTHREAD
653 MINGW_FALSE
654 MINGW_TRUE
655 PKG_CONFIG_LIBDIR
656 PKG_CONFIG_PATH
657 PKG_CONFIG
658 LT_SYS_LIBRARY_PATH
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
664 MANIFEST_TOOL
665 RANLIB
666 ac_ct_AR
667 AR
668 DLLTOOL
669 OBJDUMP
670 LN_S
671 NM
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LD
675 FGREP
676 SED
677 LIBTOOL
678 EGREP
679 GREP
680 CPP
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__include
689 DEPDIR
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
696 CC
697 AM_BACKSLASH
698 AM_DEFAULT_VERBOSITY
699 AM_DEFAULT_V
700 AM_V
701 am__untar
702 am__tar
703 AMTAR
704 am__leading_dot
705 SET_MAKE
706 AWK
707 mkdir_p
708 MKDIR_P
709 INSTALL_STRIP_PROGRAM
710 STRIP
711 install_sh
712 MAKEINFO
713 AUTOHEADER
714 AUTOMAKE
715 AUTOCONF
716 ACLOCAL
717 VERSION
718 PACKAGE
719 CYGPATH_W
720 am__isrc
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 MICRO_VERSION
737 MINOR_VERSION
738 MAJOR_VERSION
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 runstatedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL
778 am__quote'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_silent_rules
783 enable_static
784 enable_dependency_tracking
785 enable_shared
786 with_pic
787 enable_fast_install
788 with_aix_soname
789 with_gnu_ld
790 with_sysroot
791 enable_libtool_lock
792 enable_thread_safety
793 with_png
794 with_tools
795 with_tests
796 enable_rpath
797 with_libiconv_prefix
798 enable_gprof
799 enable_gcov
800 enable_mudflap
801 enable_asan
802 '
803 ac_precious_vars='build_alias
804 host_alias
805 target_alias
806 CC
807 CFLAGS
808 LDFLAGS
809 LIBS
810 CPPFLAGS
811 CPP
812 LT_SYS_LIBRARY_PATH
813 PKG_CONFIG
814 PKG_CONFIG_PATH
815 PKG_CONFIG_LIBDIR
816 png_CFLAGS
817 png_LIBS
818 SDL_CFLAGS
819 SDL_LIBS'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 runstatedir='${localstatedir}/run'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
878 ac_prev=
879 continue
880 fi
881
882 case $ac_option in
883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *=) ac_optarg= ;;
885 *) ac_optarg=yes ;;
886 esac
887
888 # Accept the important Cygnus configure options, so we can diagnose typos.
889
890 case $ac_dashdash$ac_option in
891 --)
892 ac_dashdash=yes ;;
893
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
898
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
903
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
910
911 --config-cache | -C)
912 cache_file=config.cache ;;
913
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
918
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
925
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=no ;;
941
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
946
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
951
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
967
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
976
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
980
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
987
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
992
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
998
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1005
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1010
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1015
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1022
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1027
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1034
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1039
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1043
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1047
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1051
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1060
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1065
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1072
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1079
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1096
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1101
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1106
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1110
1111 -runstatedir | --runstatedir | --runstatedi | --runstated \
1112 | --runstate | --runstat | --runsta | --runst | --runs \
1113 | --run | --ru | --r)
1114 ac_prev=runstatedir ;;
1115 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1116 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1117 | --run=* | --ru=* | --r=*)
1118 runstatedir=$ac_optarg ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1164
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1180
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1214
1215 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217 ;;
1218
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1228
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 ;;
1236
1237 esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir runstatedir
1258 do
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error $? "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335 else
1336 ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1362
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures QRencode 4.1.1 to adapt to many kinds of systems.
1371
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1376
1377 Defaults for the options are specified in brackets.
1378
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking ...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1395
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1400
1401 For better control, use the options below.
1402
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/qrencode]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 --target=TARGET configure for building compilers for TARGET [HOST]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of QRencode 4.1.1:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-silent-rules less verbose build output (undo: "make V=1")
1451 --disable-silent-rules verbose build output (undo: "make V=0")
1452 --enable-static[=PKGS] build static libraries [default=no]
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --enable-thread-safety make the library thread-safe. [default=yes]
1462 --disable-rpath do not hardcode runtime library paths
1463 --enable-gprof generate extra code to write profile information
1464 suitable for gprof [default=no]
1465 --enable-gcov generate extra code to write coverage information
1466 suitable for gcov [default=no]
1467 --enable-mudflap generate extra code to check memory leaks
1468 [default=no]
1469 --enable-asan use AddressSanitizer [default=no]
1470
1471 Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1475 both]
1476 --with-aix-soname=aix|svr4|both
1477 shared library versioning (aka "SONAME") variant to
1478 provide on AIX, [default=aix].
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1481 compiler's sysroot if not specified).
1482 --without-png disable PNG support
1483 --with-tools build utility tools [default=yes]
1484 --with-tests build tests [default=no]
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1487 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 CPP C preprocessor
1498 LT_SYS_LIBRARY_PATH
1499 User-defined run-time library search path.
1500 PKG_CONFIG path to pkg-config utility
1501 PKG_CONFIG_PATH
1502 directories to add to pkg-config's search path
1503 PKG_CONFIG_LIBDIR
1504 path overriding pkg-config's built-in search path
1505 png_CFLAGS C compiler flags for png, overriding pkg-config
1506 png_LIBS linker flags for png, overriding pkg-config
1507 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1508 SDL_LIBS linker flags for SDL, overriding pkg-config
1509
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1512
1513 Report bugs to the package provider.
1514 _ACEOF
1515 ac_status=$?
1516 fi
1517
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
1524 ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 QRencode configure 4.1.1
1577 generated by GNU Autoconf 2.69
1578
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1584 fi
1585
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1589
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622 fi
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_compile
1627
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_cpp ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1647 fi
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } > conftest.i && {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659 fi
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_cpp
1664
1665 # ac_fn_c_try_run LINENO
1666 # ----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1668 # that executables *can* be run.
1669 ac_fn_c_try_run ()
1670 {
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_link"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>&5
1680 ac_status=$?
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1683 { { case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_try") 2>&5
1690 ac_status=$?
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; }; }; then :
1693 ac_retval=0
1694 else
1695 $as_echo "$as_me: program exited with status $ac_status" >&5
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=$ac_status
1700 fi
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_run
1706
1707 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1710 # the include files in INCLUDES and setting the cache variable VAR
1711 # accordingly.
1712 ac_fn_c_check_header_mongrel ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if eval \${$3+:} false; then :
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1720 fi
1721 eval ac_res=\$$3
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724 else
1725 # Is the header compilable?
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1727 $as_echo_n "checking $2 usability... " >&6; }
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 $4
1731 #include <$2>
1732 _ACEOF
1733 if ac_fn_c_try_compile "$LINENO"; then :
1734 ac_header_compiler=yes
1735 else
1736 ac_header_compiler=no
1737 fi
1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1740 $as_echo "$ac_header_compiler" >&6; }
1741
1742 # Is the header present?
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1744 $as_echo_n "checking $2 presence... " >&6; }
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_cpp "$LINENO"; then :
1750 ac_header_preproc=yes
1751 else
1752 ac_header_preproc=no
1753 fi
1754 rm -f conftest.err conftest.i conftest.$ac_ext
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1756 $as_echo "$ac_header_preproc" >&6; }
1757
1758 # So? What about this header?
1759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1760 yes:no: )
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1762 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1765 ;;
1766 no:yes:* )
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1768 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1770 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1772 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1774 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1776 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777 ;;
1778 esac
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1783 else
1784 eval "$3=\$ac_header_compiler"
1785 fi
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 fi
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_header_mongrel
1793
1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists and can be compiled using the include files in
1797 # INCLUDES, setting the cache variable VAR accordingly.
1798 ac_fn_c_check_header_compile ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1805 else
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 $4
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 eval "$3=yes"
1813 else
1814 eval "$3=no"
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 fi
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823 } # ac_fn_c_check_header_compile
1824
1825 # ac_fn_c_try_link LINENO
1826 # -----------------------
1827 # Try to link conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_c_try_link ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext conftest$ac_exeext
1832 if { { ac_try="$ac_link"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_link") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1845 fi
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_c_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest$ac_exeext && {
1851 test "$cross_compiling" = yes ||
1852 test -x conftest$ac_exeext
1853 }; then :
1854 ac_retval=0
1855 else
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1858
1859 ac_retval=1
1860 fi
1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863 # interfere with the next link command; also delete a directory that is
1864 # left behind by Apple's compiler. We do this before executing the actions.
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1868
1869 } # ac_fn_c_try_link
1870
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886 #define $2 innocuous_$2
1887
1888 /* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1892
1893 #ifdef __STDC__
1894 # include <limits.h>
1895 #else
1896 # include <assert.h>
1897 #endif
1898
1899 #undef $2
1900
1901 /* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1904 #ifdef __cplusplus
1905 extern "C"
1906 #endif
1907 char $2 ();
1908 /* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911 #if defined __stub_$2 || defined __stub___$2
1912 choke me
1913 #endif
1914
1915 int
1916 main ()
1917 {
1918 return $2 ();
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_link "$LINENO"; then :
1924 eval "$3=yes"
1925 else
1926 eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_func
1937 cat >config.log <<_ACEOF
1938 This file contains any messages produced by compilers while
1939 running configure, to aid debugging if configure makes a mistake.
1940
1941 It was created by QRencode $as_me 4.1.1, which was
1942 generated by GNU Autoconf 2.69. Invocation command line was
1943
1944 $ $0 $@
1945
1946 _ACEOF
1947 exec 5>>config.log
1948 {
1949 cat <<_ASUNAME
1950 ## --------- ##
1951 ## Platform. ##
1952 ## --------- ##
1953
1954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1955 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1956 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1957 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1958 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1959
1960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1961 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1962
1963 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1964 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1966 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1967 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1968 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1969 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1970
1971 _ASUNAME
1972
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 $as_echo "PATH: $as_dir"
1979 done
1980 IFS=$as_save_IFS
1981
1982 } >&5
1983
1984 cat >&5 <<_ACEOF
1985
1986
1987 ## ----------- ##
1988 ## Core tests. ##
1989 ## ----------- ##
1990
1991 _ACEOF
1992
1993
1994 # Keep a trace of the command line.
1995 # Strip out --no-create and --no-recursion so they do not pile up.
1996 # Strip out --silent because we don't want to record it for future runs.
1997 # Also quote any args containing shell meta-characters.
1998 # Make two passes to allow for proper duplicate-argument suppression.
1999 ac_configure_args=
2000 ac_configure_args0=
2001 ac_configure_args1=
2002 ac_must_keep_next=false
2003 for ac_pass in 1 2
2004 do
2005 for ac_arg
2006 do
2007 case $ac_arg in
2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2010 | -silent | --silent | --silen | --sile | --sil)
2011 continue ;;
2012 *\'*)
2013 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014 esac
2015 case $ac_pass in
2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2017 2)
2018 as_fn_append ac_configure_args1 " '$ac_arg'"
2019 if test $ac_must_keep_next = true; then
2020 ac_must_keep_next=false # Got value, back to normal.
2021 else
2022 case $ac_arg in
2023 *=* | --config-cache | -C | -disable-* | --disable-* \
2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2026 | -with-* | --with-* | -without-* | --without-* | --x)
2027 case "$ac_configure_args0 " in
2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029 esac
2030 ;;
2031 -* ) ac_must_keep_next=true ;;
2032 esac
2033 fi
2034 as_fn_append ac_configure_args " '$ac_arg'"
2035 ;;
2036 esac
2037 done
2038 done
2039 { ac_configure_args0=; unset ac_configure_args0;}
2040 { ac_configure_args1=; unset ac_configure_args1;}
2041
2042 # When interrupted or exit'd, cleanup temporary files, and complete
2043 # config.log. We remove comments because anyway the quotes in there
2044 # would cause problems or look ugly.
2045 # WARNING: Use '\'' to represent an apostrophe within the trap.
2046 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2047 trap 'exit_status=$?
2048 # Save into config.log some information that might help in debugging.
2049 {
2050 echo
2051
2052 $as_echo "## ---------------- ##
2053 ## Cache variables. ##
2054 ## ---------------- ##"
2055 echo
2056 # The following way of writing the cache mishandles newlines in values,
2057 (
2058 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2059 eval ac_val=\$$ac_var
2060 case $ac_val in #(
2061 *${as_nl}*)
2062 case $ac_var in #(
2063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2064 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2065 esac
2066 case $ac_var in #(
2067 _ | IFS | as_nl) ;; #(
2068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2069 *) { eval $ac_var=; unset $ac_var;} ;;
2070 esac ;;
2071 esac
2072 done
2073 (set) 2>&1 |
2074 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2075 *${as_nl}ac_space=\ *)
2076 sed -n \
2077 "s/'\''/'\''\\\\'\'''\''/g;
2078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2079 ;; #(
2080 *)
2081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2082 ;;
2083 esac |
2084 sort
2085 )
2086 echo
2087
2088 $as_echo "## ----------------- ##
2089 ## Output variables. ##
2090 ## ----------------- ##"
2091 echo
2092 for ac_var in $ac_subst_vars
2093 do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 $as_echo "$ac_var='\''$ac_val'\''"
2099 done | sort
2100 echo
2101
2102 if test -n "$ac_subst_files"; then
2103 $as_echo "## ------------------- ##
2104 ## File substitutions. ##
2105 ## ------------------- ##"
2106 echo
2107 for ac_var in $ac_subst_files
2108 do
2109 eval ac_val=\$$ac_var
2110 case $ac_val in
2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 esac
2113 $as_echo "$ac_var='\''$ac_val'\''"
2114 done | sort
2115 echo
2116 fi
2117
2118 if test -s confdefs.h; then
2119 $as_echo "## ----------- ##
2120 ## confdefs.h. ##
2121 ## ----------- ##"
2122 echo
2123 cat confdefs.h
2124 echo
2125 fi
2126 test "$ac_signal" != 0 &&
2127 $as_echo "$as_me: caught signal $ac_signal"
2128 $as_echo "$as_me: exit $exit_status"
2129 } >&5
2130 rm -f core *.core core.conftest.* &&
2131 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2132 exit $exit_status
2133 ' 0
2134 for ac_signal in 1 2 13 15; do
2135 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2136 done
2137 ac_signal=0
2138
2139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2140 rm -f -r conftest* confdefs.h
2141
2142 $as_echo "/* confdefs.h */" > confdefs.h
2143
2144 # Predefined preprocessor variables.
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_NAME "$PACKAGE_NAME"
2148 _ACEOF
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2156 _ACEOF
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_STRING "$PACKAGE_STRING"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_URL "$PACKAGE_URL"
2168 _ACEOF
2169
2170
2171 # Let the site file select an alternate cache file if it wants to.
2172 # Prefer an explicitly selected file to automatically selected ones.
2173 ac_site_file1=NONE
2174 ac_site_file2=NONE
2175 if test -n "$CONFIG_SITE"; then
2176 # We do not want a PATH search for config.site.
2177 case $CONFIG_SITE in #((
2178 -*) ac_site_file1=./$CONFIG_SITE;;
2179 */*) ac_site_file1=$CONFIG_SITE;;
2180 *) ac_site_file1=./$CONFIG_SITE;;
2181 esac
2182 elif test "x$prefix" != xNONE; then
2183 ac_site_file1=$prefix/share/config.site
2184 ac_site_file2=$prefix/etc/config.site
2185 else
2186 ac_site_file1=$ac_default_prefix/share/config.site
2187 ac_site_file2=$ac_default_prefix/etc/config.site
2188 fi
2189 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2190 do
2191 test "x$ac_site_file" = xNONE && continue
2192 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2195 sed 's/^/| /' "$ac_site_file" >&5
2196 . "$ac_site_file" \
2197 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199 as_fn_error $? "failed to load site script $ac_site_file
2200 See \`config.log' for more details" "$LINENO" 5; }
2201 fi
2202 done
2203
2204 if test -r "$cache_file"; then
2205 # Some versions of bash will fail to source /dev/null (special files
2206 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2207 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2209 $as_echo "$as_me: loading cache $cache_file" >&6;}
2210 case $cache_file in
2211 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2212 *) . "./$cache_file";;
2213 esac
2214 fi
2215 else
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2217 $as_echo "$as_me: creating cache $cache_file" >&6;}
2218 >$cache_file
2219 fi
2220
2221 # Check that the precious variables saved in the cache have kept the same
2222 # value.
2223 ac_cache_corrupted=false
2224 for ac_var in $ac_precious_vars; do
2225 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2226 eval ac_new_set=\$ac_env_${ac_var}_set
2227 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2228 eval ac_new_val=\$ac_env_${ac_var}_value
2229 case $ac_old_set,$ac_new_set in
2230 set,)
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2232 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2233 ac_cache_corrupted=: ;;
2234 ,set)
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2236 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2237 ac_cache_corrupted=: ;;
2238 ,);;
2239 *)
2240 if test "x$ac_old_val" != "x$ac_new_val"; then
2241 # differences in whitespace do not lead to failure.
2242 ac_old_val_w=`echo x $ac_old_val`
2243 ac_new_val_w=`echo x $ac_new_val`
2244 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2246 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2247 ac_cache_corrupted=:
2248 else
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2250 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2251 eval $ac_var=\$ac_old_val
2252 fi
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2254 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2256 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2257 fi;;
2258 esac
2259 # Pass precious variables to config.status.
2260 if test "$ac_new_set" = set; then
2261 case $ac_new_val in
2262 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2263 *) ac_arg=$ac_var=$ac_new_val ;;
2264 esac
2265 case " $ac_configure_args " in
2266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2267 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2268 esac
2269 fi
2270 done
2271 if $ac_cache_corrupted; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2275 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2276 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2277 fi
2278 ## -------------------- ##
2279 ## Main body of script. ##
2280 ## -------------------- ##
2281
2282 ac_ext=c
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287
2288
2289
2290 MAJOR_VERSION=4
2291 MINOR_VERSION=1
2292 MICRO_VERSION=1
2293
2294
2295
2296
2297 cat >>confdefs.h <<_ACEOF
2298 #define MAJOR_VERSION $MAJOR_VERSION
2299 _ACEOF
2300
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define MINOR_VERSION $MINOR_VERSION
2304 _ACEOF
2305
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define MICRO_VERSION $MICRO_VERSION
2309 _ACEOF
2310
2311
2312
2313 ac_config_headers="$ac_config_headers config.h"
2314
2315 ac_aux_dir=
2316 for ac_dir in use "$srcdir"/use; do
2317 if test -f "$ac_dir/install-sh"; then
2318 ac_aux_dir=$ac_dir
2319 ac_install_sh="$ac_aux_dir/install-sh -c"
2320 break
2321 elif test -f "$ac_dir/install.sh"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/install.sh -c"
2324 break
2325 elif test -f "$ac_dir/shtool"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/shtool install -c"
2328 break
2329 fi
2330 done
2331 if test -z "$ac_aux_dir"; then
2332 as_fn_error $? "cannot find install-sh, install.sh, or shtool in use \"$srcdir\"/use" "$LINENO" 5
2333 fi
2334
2335 # These three variables are undocumented and unsupported,
2336 # and are intended to be withdrawn in a future Autoconf release.
2337 # They can cause serious problems if a builder's source tree is in a directory
2338 # whose full name contains unusual characters.
2339 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2340 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2341 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2342
2343
2344
2345 # Make sure we can run config.sub.
2346 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2347 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2348
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2350 $as_echo_n "checking build system type... " >&6; }
2351 if ${ac_cv_build+:} false; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 ac_build_alias=$build_alias
2355 test "x$ac_build_alias" = x &&
2356 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2357 test "x$ac_build_alias" = x &&
2358 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2359 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2360 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2361
2362 fi
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2364 $as_echo "$ac_cv_build" >&6; }
2365 case $ac_cv_build in
2366 *-*-*) ;;
2367 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2368 esac
2369 build=$ac_cv_build
2370 ac_save_IFS=$IFS; IFS='-'
2371 set x $ac_cv_build
2372 shift
2373 build_cpu=$1
2374 build_vendor=$2
2375 shift; shift
2376 # Remember, the first character of IFS is used to create $*,
2377 # except with old shells:
2378 build_os=$*
2379 IFS=$ac_save_IFS
2380 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2381
2382
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2384 $as_echo_n "checking host system type... " >&6; }
2385 if ${ac_cv_host+:} false; then :
2386 $as_echo_n "(cached) " >&6
2387 else
2388 if test "x$host_alias" = x; then
2389 ac_cv_host=$ac_cv_build
2390 else
2391 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2392 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2393 fi
2394
2395 fi
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2397 $as_echo "$ac_cv_host" >&6; }
2398 case $ac_cv_host in
2399 *-*-*) ;;
2400 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2401 esac
2402 host=$ac_cv_host
2403 ac_save_IFS=$IFS; IFS='-'
2404 set x $ac_cv_host
2405 shift
2406 host_cpu=$1
2407 host_vendor=$2
2408 shift; shift
2409 # Remember, the first character of IFS is used to create $*,
2410 # except with old shells:
2411 host_os=$*
2412 IFS=$ac_save_IFS
2413 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2414
2415
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2417 $as_echo_n "checking target system type... " >&6; }
2418 if ${ac_cv_target+:} false; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 if test "x$target_alias" = x; then
2422 ac_cv_target=$ac_cv_host
2423 else
2424 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2425 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2426 fi
2427
2428 fi
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2430 $as_echo "$ac_cv_target" >&6; }
2431 case $ac_cv_target in
2432 *-*-*) ;;
2433 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2434 esac
2435 target=$ac_cv_target
2436 ac_save_IFS=$IFS; IFS='-'
2437 set x $ac_cv_target
2438 shift
2439 target_cpu=$1
2440 target_vendor=$2
2441 shift; shift
2442 # Remember, the first character of IFS is used to create $*,
2443 # except with old shells:
2444 target_os=$*
2445 IFS=$ac_save_IFS
2446 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2447
2448
2449 # The aliases save the names the user supplied, while $host etc.
2450 # will get canonicalized.
2451 test -n "$target_alias" &&
2452 test "$program_prefix$program_suffix$program_transform_name" = \
2453 NONENONEs,x,x, &&
2454 program_prefix=${target_alias}-
2455
2456 am__api_version='1.16'
2457
2458 # Find a good install program. We prefer a C program (faster),
2459 # so one script is as good as another. But avoid the broken or
2460 # incompatible versions:
2461 # SysV /etc/install, /usr/sbin/install
2462 # SunOS /usr/etc/install
2463 # IRIX /sbin/install
2464 # AIX /bin/install
2465 # AmigaOS /C/install, which installs bootblocks on floppy discs
2466 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2467 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2468 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2469 # OS/2's system install, which has a completely different semantic
2470 # ./install, which can be erroneously created by make from ./install.sh.
2471 # Reject install programs that cannot install multiple files.
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2473 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2474 if test -z "$INSTALL"; then
2475 if ${ac_cv_path_install+:} false; then :
2476 $as_echo_n "(cached) " >&6
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 # Account for people who put trailing slashes in PATH elements.
2484 case $as_dir/ in #((
2485 ./ | .// | /[cC]/* | \
2486 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2487 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2488 /usr/ucb/* ) ;;
2489 *)
2490 # OSF1 and SCO ODT 3.0 have their own names for install.
2491 # Don't use installbsd from OSF since it installs stuff as root
2492 # by default.
2493 for ac_prog in ginstall scoinst install; do
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2496 if test $ac_prog = install &&
2497 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2498 # AIX install. It has an incompatible calling convention.
2499 :
2500 elif test $ac_prog = install &&
2501 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2502 # program-specific install script used by HP pwplus--don't use.
2503 :
2504 else
2505 rm -rf conftest.one conftest.two conftest.dir
2506 echo one > conftest.one
2507 echo two > conftest.two
2508 mkdir conftest.dir
2509 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2510 test -s conftest.one && test -s conftest.two &&
2511 test -s conftest.dir/conftest.one &&
2512 test -s conftest.dir/conftest.two
2513 then
2514 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2515 break 3
2516 fi
2517 fi
2518 fi
2519 done
2520 done
2521 ;;
2522 esac
2523
2524 done
2525 IFS=$as_save_IFS
2526
2527 rm -rf conftest.one conftest.two conftest.dir
2528
2529 fi
2530 if test "${ac_cv_path_install+set}" = set; then
2531 INSTALL=$ac_cv_path_install
2532 else
2533 # As a last resort, use the slow shell script. Don't cache a
2534 # value for INSTALL within a source directory, because that will
2535 # break other packages using the cache if that directory is
2536 # removed, or if the value is a relative name.
2537 INSTALL=$ac_install_sh
2538 fi
2539 fi
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2541 $as_echo "$INSTALL" >&6; }
2542
2543 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2544 # It thinks the first close brace ends the variable substitution.
2545 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2546
2547 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2548
2549 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2550
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2552 $as_echo_n "checking whether build environment is sane... " >&6; }
2553 # Reject unsafe characters in $srcdir or the absolute working directory
2554 # name. Accept space and tab only in the latter.
2555 am_lf='
2556 '
2557 case `pwd` in
2558 *[\\\"\#\$\&\'\`$am_lf]*)
2559 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2560 esac
2561 case $srcdir in
2562 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2563 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2564 esac
2565
2566 # Do 'set' in a subshell so we don't clobber the current shell's
2567 # arguments. Must try -L first in case configure is actually a
2568 # symlink; some systems play weird games with the mod time of symlinks
2569 # (eg FreeBSD returns the mod time of the symlink's containing
2570 # directory).
2571 if (
2572 am_has_slept=no
2573 for am_try in 1 2; do
2574 echo "timestamp, slept: $am_has_slept" > conftest.file
2575 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2576 if test "$*" = "X"; then
2577 # -L didn't work.
2578 set X `ls -t "$srcdir/configure" conftest.file`
2579 fi
2580 if test "$*" != "X $srcdir/configure conftest.file" \
2581 && test "$*" != "X conftest.file $srcdir/configure"; then
2582
2583 # If neither matched, then we have a broken ls. This can happen
2584 # if, for instance, CONFIG_SHELL is bash and it inherits a
2585 # broken ls alias from the environment. This has actually
2586 # happened. Such a system could not be considered "sane".
2587 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2588 alias in your environment" "$LINENO" 5
2589 fi
2590 if test "$2" = conftest.file || test $am_try -eq 2; then
2591 break
2592 fi
2593 # Just in case.
2594 sleep 1
2595 am_has_slept=yes
2596 done
2597 test "$2" = conftest.file
2598 )
2599 then
2600 # Ok.
2601 :
2602 else
2603 as_fn_error $? "newly created file is older than distributed files!
2604 Check your system clock" "$LINENO" 5
2605 fi
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2607 $as_echo "yes" >&6; }
2608 # If we didn't sleep, we still need to ensure time stamps of config.status and
2609 # generated files are strictly newer.
2610 am_sleep_pid=
2611 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2612 ( sleep 1 ) &
2613 am_sleep_pid=$!
2614 fi
2615
2616 rm -f conftest.file
2617
2618 test "$program_prefix" != NONE &&
2619 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2620 # Use a double $ so make ignores it.
2621 test "$program_suffix" != NONE &&
2622 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2623 # Double any \ or $.
2624 # By default was `s,x,x', remove it if useless.
2625 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2626 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2627
2628 # Expand $ac_aux_dir to an absolute path.
2629 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2630
2631 if test x"${MISSING+set}" != xset; then
2632 case $am_aux_dir in
2633 *\ * | *\ *)
2634 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2635 *)
2636 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2637 esac
2638 fi
2639 # Use eval to expand $SHELL
2640 if eval "$MISSING --is-lightweight"; then
2641 am_missing_run="$MISSING "
2642 else
2643 am_missing_run=
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2645 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2646 fi
2647
2648 if test x"${install_sh+set}" != xset; then
2649 case $am_aux_dir in
2650 *\ * | *\ *)
2651 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2652 *)
2653 install_sh="\${SHELL} $am_aux_dir/install-sh"
2654 esac
2655 fi
2656
2657 # Installed binaries are usually stripped using 'strip' when the user
2658 # run "make install-strip". However 'strip' might not be the right
2659 # tool to use in cross-compilation environments, therefore Automake
2660 # will honor the 'STRIP' environment variable to overrule this program.
2661 if test "$cross_compiling" != no; then
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}strip; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if ${ac_cv_prog_STRIP+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$STRIP"; then
2671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 STRIP=$ac_cv_prog_STRIP
2691 if test -n "$STRIP"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2693 $as_echo "$STRIP" >&6; }
2694 else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2697 fi
2698
2699
2700 fi
2701 if test -z "$ac_cv_prog_STRIP"; then
2702 ac_ct_STRIP=$STRIP
2703 # Extract the first word of "strip", so it can be a program name with args.
2704 set dummy strip; ac_word=$2
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 if test -n "$ac_ct_STRIP"; then
2711 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2720 ac_cv_prog_ac_ct_STRIP="strip"
2721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 break 2
2723 fi
2724 done
2725 done
2726 IFS=$as_save_IFS
2727
2728 fi
2729 fi
2730 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2731 if test -n "$ac_ct_STRIP"; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2733 $as_echo "$ac_ct_STRIP" >&6; }
2734 else
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2737 fi
2738
2739 if test "x$ac_ct_STRIP" = x; then
2740 STRIP=":"
2741 else
2742 case $cross_compiling:$ac_tool_warned in
2743 yes:)
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2746 ac_tool_warned=yes ;;
2747 esac
2748 STRIP=$ac_ct_STRIP
2749 fi
2750 else
2751 STRIP="$ac_cv_prog_STRIP"
2752 fi
2753
2754 fi
2755 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2756
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2758 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2759 if test -z "$MKDIR_P"; then
2760 if ${ac_cv_path_mkdir+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2765 do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_prog in mkdir gmkdir; do
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2771 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2772 'mkdir (GNU coreutils) '* | \
2773 'mkdir (coreutils) '* | \
2774 'mkdir (fileutils) '4.1*)
2775 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2776 break 3;;
2777 esac
2778 done
2779 done
2780 done
2781 IFS=$as_save_IFS
2782
2783 fi
2784
2785 test -d ./--version && rmdir ./--version
2786 if test "${ac_cv_path_mkdir+set}" = set; then
2787 MKDIR_P="$ac_cv_path_mkdir -p"
2788 else
2789 # As a last resort, use the slow shell script. Don't cache a
2790 # value for MKDIR_P within a source directory, because that will
2791 # break other packages using the cache if that directory is
2792 # removed, or if the value is a relative name.
2793 MKDIR_P="$ac_install_sh -d"
2794 fi
2795 fi
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2797 $as_echo "$MKDIR_P" >&6; }
2798
2799 for ac_prog in gawk mawk nawk awk
2800 do
2801 # Extract the first word of "$ac_prog", so it can be a program name with args.
2802 set dummy $ac_prog; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_AWK+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test -n "$AWK"; then
2809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818 ac_cv_prog_AWK="$ac_prog"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2821 fi
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 AWK=$ac_cv_prog_AWK
2829 if test -n "$AWK"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2831 $as_echo "$AWK" >&6; }
2832 else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838 test -n "$AWK" && break
2839 done
2840
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2842 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2843 set x ${MAKE-make}
2844 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2845 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 cat >conftest.make <<\_ACEOF
2849 SHELL = /bin/sh
2850 all:
2851 @echo '@@@%%%=$(MAKE)=@@@%%%'
2852 _ACEOF
2853 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2854 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2855 *@@@%%%=?*=@@@%%%*)
2856 eval ac_cv_prog_make_${ac_make}_set=yes;;
2857 *)
2858 eval ac_cv_prog_make_${ac_make}_set=no;;
2859 esac
2860 rm -f conftest.make
2861 fi
2862 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2864 $as_echo "yes" >&6; }
2865 SET_MAKE=
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 SET_MAKE="MAKE=${MAKE-make}"
2870 fi
2871
2872 rm -rf .tst 2>/dev/null
2873 mkdir .tst 2>/dev/null
2874 if test -d .tst; then
2875 am__leading_dot=.
2876 else
2877 am__leading_dot=_
2878 fi
2879 rmdir .tst 2>/dev/null
2880
2881 # Check whether --enable-silent-rules was given.
2882 if test "${enable_silent_rules+set}" = set; then :
2883 enableval=$enable_silent_rules;
2884 fi
2885
2886 case $enable_silent_rules in # (((
2887 yes) AM_DEFAULT_VERBOSITY=0;;
2888 no) AM_DEFAULT_VERBOSITY=1;;
2889 *) AM_DEFAULT_VERBOSITY=1;;
2890 esac
2891 am_make=${MAKE-make}
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2893 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2894 if ${am_cv_make_support_nested_variables+:} false; then :
2895 $as_echo_n "(cached) " >&6
2896 else
2897 if $as_echo 'TRUE=$(BAR$(V))
2898 BAR0=false
2899 BAR1=true
2900 V=1
2901 am__doit:
2902 @$(TRUE)
2903 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2904 am_cv_make_support_nested_variables=yes
2905 else
2906 am_cv_make_support_nested_variables=no
2907 fi
2908 fi
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2910 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2911 if test $am_cv_make_support_nested_variables = yes; then
2912 AM_V='$(V)'
2913 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2914 else
2915 AM_V=$AM_DEFAULT_VERBOSITY
2916 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2917 fi
2918 AM_BACKSLASH='\'
2919
2920 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2921 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2922 # is not polluted with repeated "-I."
2923 am__isrc=' -I$(srcdir)'
2924 # test to see if srcdir already configured
2925 if test -f $srcdir/config.status; then
2926 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2927 fi
2928 fi
2929
2930 # test whether we have cygpath
2931 if test -z "$CYGPATH_W"; then
2932 if (cygpath --version) >/dev/null 2>/dev/null; then
2933 CYGPATH_W='cygpath -w'
2934 else
2935 CYGPATH_W=echo
2936 fi
2937 fi
2938
2939
2940 # Define the identity of the package.
2941 PACKAGE='qrencode'
2942 VERSION='4.1.1'
2943
2944
2945 cat >>confdefs.h <<_ACEOF
2946 #define PACKAGE "$PACKAGE"
2947 _ACEOF
2948
2949
2950 cat >>confdefs.h <<_ACEOF
2951 #define VERSION "$VERSION"
2952 _ACEOF
2953
2954 # Some tools Automake needs.
2955
2956 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2957
2958
2959 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2960
2961
2962 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2963
2964
2965 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2966
2967
2968 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2969
2970 # For better backward compatibility. To be removed once Automake 1.9.x
2971 # dies out for good. For more background, see:
2972 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2973 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2974 mkdir_p='$(MKDIR_P)'
2975
2976 # We need awk for the "check" target (and possibly the TAP driver). The
2977 # system "awk" is bad on some platforms.
2978 # Always define AMTAR for backward compatibility. Yes, it's still used
2979 # in the wild :-( We should find a proper way to deprecate it ...
2980 AMTAR='$${TAR-tar}'
2981
2982
2983 # We'll loop over all known methods to create a tar archive until one works.
2984 _am_tools='gnutar pax cpio none'
2985
2986 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2987
2988
2989
2990
2991
2992
2993 # POSIX will say in a future version that running "rm -f" with no argument
2994 # is OK; and we want to be able to make that assumption in our Makefile
2995 # recipes. So use an aggressive probe to check that the usage we want is
2996 # actually supported "in the wild" to an acceptable degree.
2997 # See automake bug#10828.
2998 # To make any issue more visible, cause the running configure to be aborted
2999 # by default if the 'rm' program in use doesn't match our expectations; the
3000 # user can still override this though.
3001 if rm -f && rm -fr && rm -rf; then : OK; else
3002 cat >&2 <<'END'
3003 Oops!
3004
3005 Your 'rm' program seems unable to run without file operands specified
3006 on the command line, even when the '-f' option is present. This is contrary
3007 to the behaviour of most rm programs out there, and not conforming with
3008 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3009
3010 Please tell [email protected] about your system, including the value
3011 of your $PATH and any error possibly output before this message. This
3012 can help us improve future automake versions.
3013
3014 END
3015 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3016 echo 'Configuration will proceed anyway, since you have set the' >&2
3017 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3018 echo >&2
3019 else
3020 cat >&2 <<'END'
3021 Aborting the configuration process, to ensure you take notice of the issue.
3022
3023 You can download and install GNU coreutils to get an 'rm' implementation
3024 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3025
3026 If you want to complete the configuration process using your problematic
3027 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3028 to "yes", and re-run configure.
3029
3030 END
3031 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3032 fi
3033 fi
3034
3035
3036 # Check whether --enable-static was given.
3037 if test "${enable_static+set}" = set; then :
3038 enableval=$enable_static; p=${PACKAGE-default}
3039 case $enableval in
3040 yes) enable_static=yes ;;
3041 no) enable_static=no ;;
3042 *)
3043 enable_static=no
3044 # Look at the argument we got. We use all the common list separators.
3045 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3046 for pkg in $enableval; do
3047 IFS=$lt_save_ifs
3048 if test "X$pkg" = "X$p"; then
3049 enable_static=yes
3050 fi
3051 done
3052 IFS=$lt_save_ifs
3053 ;;
3054 esac
3055 else
3056 enable_static=no
3057 fi
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067 DEPDIR="${am__leading_dot}deps"
3068
3069 ac_config_commands="$ac_config_commands depfiles"
3070
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3072 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3073 cat > confinc.mk << 'END'
3074 am__doit:
3075 @echo this is the am__doit target >confinc.out
3076 .PHONY: am__doit
3077 END
3078 am__include="#"
3079 am__quote=
3080 # BSD make does it like this.
3081 echo '.include "confinc.mk" # ignored' > confmf.BSD
3082 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3083 echo 'include confinc.mk # ignored' > confmf.GNU
3084 _am_result=no
3085 for s in GNU BSD; do
3086 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3087 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }
3091 case $?:`cat confinc.out 2>/dev/null` in #(
3092 '0:this is the am__doit target') :
3093 case $s in #(
3094 BSD) :
3095 am__include='.include' am__quote='"' ;; #(
3096 *) :
3097 am__include='include' am__quote='' ;;
3098 esac ;; #(
3099 *) :
3100 ;;
3101 esac
3102 if test "$am__include" != "#"; then
3103 _am_result="yes ($s style)"
3104 break
3105 fi
3106 done
3107 rm -f confinc.* confmf.*
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3109 $as_echo "${_am_result}" >&6; }
3110
3111 # Check whether --enable-dependency-tracking was given.
3112 if test "${enable_dependency_tracking+set}" = set; then :
3113 enableval=$enable_dependency_tracking;
3114 fi
3115
3116 if test "x$enable_dependency_tracking" != xno; then
3117 am_depcomp="$ac_aux_dir/depcomp"
3118 AMDEPBACKSLASH='\'
3119 am__nodep='_no'
3120 fi
3121 if test "x$enable_dependency_tracking" != xno; then
3122 AMDEP_TRUE=
3123 AMDEP_FALSE='#'
3124 else
3125 AMDEP_TRUE='#'
3126 AMDEP_FALSE=
3127 fi
3128
3129
3130 ac_ext=c
3131 ac_cpp='$CPP $CPPFLAGS'
3132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3137 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if ${ac_cv_prog_CC+:} false; then :
3141 $as_echo_n "(cached) " >&6
3142 else
3143 if test -n "$CC"; then
3144 ac_cv_prog_CC="$CC" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 break 2
3156 fi
3157 done
3158 done
3159 IFS=$as_save_IFS
3160
3161 fi
3162 fi
3163 CC=$ac_cv_prog_CC
3164 if test -n "$CC"; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3166 $as_echo "$CC" >&6; }
3167 else
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3170 fi
3171
3172
3173 fi
3174 if test -z "$ac_cv_prog_CC"; then
3175 ac_ct_CC=$CC
3176 # Extract the first word of "gcc", so it can be a program name with args.
3177 set dummy gcc; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3183 if test -n "$ac_ct_CC"; then
3184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_ac_ct_CC="gcc"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204 if test -n "$ac_ct_CC"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3206 $as_echo "$ac_ct_CC" >&6; }
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212 if test "x$ac_ct_CC" = x; then
3213 CC=""
3214 else
3215 case $cross_compiling:$ac_tool_warned in
3216 yes:)
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3219 ac_tool_warned=yes ;;
3220 esac
3221 CC=$ac_ct_CC
3222 fi
3223 else
3224 CC="$ac_cv_prog_CC"
3225 fi
3226
3227 if test -z "$CC"; then
3228 if test -n "$ac_tool_prefix"; then
3229 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3230 set dummy ${ac_tool_prefix}cc; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if ${ac_cv_prog_CC+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 if test -n "$CC"; then
3237 ac_cv_prog_CC="$CC" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3241 do
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246 ac_cv_prog_CC="${ac_tool_prefix}cc"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250 done
3251 done
3252 IFS=$as_save_IFS
3253
3254 fi
3255 fi
3256 CC=$ac_cv_prog_CC
3257 if test -n "$CC"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259 $as_echo "$CC" >&6; }
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 fi
3264
3265
3266 fi
3267 fi
3268 if test -z "$CC"; then
3269 # Extract the first word of "cc", so it can be a program name with args.
3270 set dummy cc; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
3278 else
3279 ac_prog_rejected=no
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3288 ac_prog_rejected=yes
3289 continue
3290 fi
3291 ac_cv_prog_CC="cc"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3294 fi
3295 done
3296 done
3297 IFS=$as_save_IFS
3298
3299 if test $ac_prog_rejected = yes; then
3300 # We found a bogon in the path, so make sure we never use it.
3301 set dummy $ac_cv_prog_CC
3302 shift
3303 if test $# != 0; then
3304 # We chose a different compiler from the bogus one.
3305 # However, it has the same basename, so the bogon will be chosen
3306 # first if we set CC to just the basename; use the full file name.
3307 shift
3308 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3309 fi
3310 fi
3311 fi
3312 fi
3313 CC=$ac_cv_prog_CC
3314 if test -n "$CC"; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3316 $as_echo "$CC" >&6; }
3317 else
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319 $as_echo "no" >&6; }
3320 fi
3321
3322
3323 fi
3324 if test -z "$CC"; then
3325 if test -n "$ac_tool_prefix"; then
3326 for ac_prog in cl.exe
3327 do
3328 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if ${ac_cv_prog_CC+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 if test -n "$CC"; then
3336 ac_cv_prog_CC="$CC" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3348 fi
3349 done
3350 done
3351 IFS=$as_save_IFS
3352
3353 fi
3354 fi
3355 CC=$ac_cv_prog_CC
3356 if test -n "$CC"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358 $as_echo "$CC" >&6; }
3359 else
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3362 fi
3363
3364
3365 test -n "$CC" && break
3366 done
3367 fi
3368 if test -z "$CC"; then
3369 ac_ct_CC=$CC
3370 for ac_prog in cl.exe
3371 do
3372 # Extract the first word of "$ac_prog", so it can be a program name with args.
3373 set dummy $ac_prog; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 $as_echo_n "checking for $ac_word... " >&6; }
3376 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3377 $as_echo_n "(cached) " >&6
3378 else
3379 if test -n "$ac_ct_CC"; then
3380 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3384 do
3385 IFS=$as_save_IFS
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389 ac_cv_prog_ac_ct_CC="$ac_prog"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 break 2
3392 fi
3393 done
3394 done
3395 IFS=$as_save_IFS
3396
3397 fi
3398 fi
3399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3400 if test -n "$ac_ct_CC"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3402 $as_echo "$ac_ct_CC" >&6; }
3403 else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 fi
3407
3408
3409 test -n "$ac_ct_CC" && break
3410 done
3411
3412 if test "x$ac_ct_CC" = x; then
3413 CC=""
3414 else
3415 case $cross_compiling:$ac_tool_warned in
3416 yes:)
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3419 ac_tool_warned=yes ;;
3420 esac
3421 CC=$ac_ct_CC
3422 fi
3423 fi
3424
3425 fi
3426
3427
3428 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error $? "no acceptable C compiler found in \$PATH
3431 See \`config.log' for more details" "$LINENO" 5; }
3432
3433 # Provide some information about the compiler.
3434 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3435 set X $ac_compile
3436 ac_compiler=$2
3437 for ac_option in --version -v -V -qversion; do
3438 { { ac_try="$ac_compiler $ac_option >&5"
3439 case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3446 ac_status=$?
3447 if test -s conftest.err; then
3448 sed '10a\
3449 ... rest of stderr output deleted ...
3450 10q' conftest.err >conftest.er1
3451 cat conftest.er1 >&5
3452 fi
3453 rm -f conftest.er1 conftest.err
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }
3456 done
3457
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3460
3461 int
3462 main ()
3463 {
3464
3465 ;
3466 return 0;
3467 }
3468 _ACEOF
3469 ac_clean_files_save=$ac_clean_files
3470 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3471 # Try to create an executable without -o first, disregard a.out.
3472 # It will help us diagnose broken compilers, and finding out an intuition
3473 # of exeext.
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3475 $as_echo_n "checking whether the C compiler works... " >&6; }
3476 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3477
3478 # The possible output files:
3479 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3480
3481 ac_rmfiles=
3482 for ac_file in $ac_files
3483 do
3484 case $ac_file in
3485 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3486 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3487 esac
3488 done
3489 rm -f $ac_rmfiles
3490
3491 if { { ac_try="$ac_link_default"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 $as_echo "$ac_try_echo"; } >&5
3498 (eval "$ac_link_default") 2>&5
3499 ac_status=$?
3500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501 test $ac_status = 0; }; then :
3502 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3503 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3504 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3505 # so that the user can short-circuit this test for compilers unknown to
3506 # Autoconf.
3507 for ac_file in $ac_files ''
3508 do
3509 test -f "$ac_file" || continue
3510 case $ac_file in
3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3512 ;;
3513 [ab].out )
3514 # We found the default executable, but exeext='' is most
3515 # certainly right.
3516 break;;
3517 *.* )
3518 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3519 then :; else
3520 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3521 fi
3522 # We set ac_cv_exeext here because the later test for it is not
3523 # safe: cross compilers may not add the suffix if given an `-o'
3524 # argument, so we may need to know it at that point already.
3525 # Even if this section looks crufty: it has the advantage of
3526 # actually working.
3527 break;;
3528 * )
3529 break;;
3530 esac
3531 done
3532 test "$ac_cv_exeext" = no && ac_cv_exeext=
3533
3534 else
3535 ac_file=''
3536 fi
3537 if test -z "$ac_file"; then :
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 $as_echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3542
3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error 77 "C compiler cannot create executables
3546 See \`config.log' for more details" "$LINENO" 5; }
3547 else
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3549 $as_echo "yes" >&6; }
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3552 $as_echo_n "checking for C compiler default output file name... " >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3554 $as_echo "$ac_file" >&6; }
3555 ac_exeext=$ac_cv_exeext
3556
3557 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3558 ac_clean_files=$ac_clean_files_save
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3560 $as_echo_n "checking for suffix of executables... " >&6; }
3561 if { { ac_try="$ac_link"
3562 case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565 esac
3566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567 $as_echo "$ac_try_echo"; } >&5
3568 (eval "$ac_link") 2>&5
3569 ac_status=$?
3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571 test $ac_status = 0; }; then :
3572 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3573 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3574 # work properly (i.e., refer to `conftest.exe'), while it won't with
3575 # `rm'.
3576 for ac_file in conftest.exe conftest conftest.*; do
3577 test -f "$ac_file" || continue
3578 case $ac_file in
3579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3580 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3581 break;;
3582 * ) break;;
3583 esac
3584 done
3585 else
3586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3589 See \`config.log' for more details" "$LINENO" 5; }
3590 fi
3591 rm -f conftest conftest$ac_cv_exeext
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3593 $as_echo "$ac_cv_exeext" >&6; }
3594
3595 rm -f conftest.$ac_ext
3596 EXEEXT=$ac_cv_exeext
3597 ac_exeext=$EXEEXT
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3600 #include <stdio.h>
3601 int
3602 main ()
3603 {
3604 FILE *f = fopen ("conftest.out", "w");
3605 return ferror (f) || fclose (f) != 0;
3606
3607 ;
3608 return 0;
3609 }
3610 _ACEOF
3611 ac_clean_files="$ac_clean_files conftest.out"
3612 # Check that the compiler produces executables we can run. If not, either
3613 # the compiler is broken, or we cross compile.
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3615 $as_echo_n "checking whether we are cross compiling... " >&6; }
3616 if test "$cross_compiling" != yes; then
3617 { { ac_try="$ac_link"
3618 case "(($ac_try" in
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3621 esac
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624 (eval "$ac_link") 2>&5
3625 ac_status=$?
3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627 test $ac_status = 0; }
3628 if { ac_try='./conftest$ac_cv_exeext'
3629 { { case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634 $as_echo "$ac_try_echo"; } >&5
3635 (eval "$ac_try") 2>&5
3636 ac_status=$?
3637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638 test $ac_status = 0; }; }; then
3639 cross_compiling=no
3640 else
3641 if test "$cross_compiling" = maybe; then
3642 cross_compiling=yes
3643 else
3644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646 as_fn_error $? "cannot run C compiled programs.
3647 If you meant to cross compile, use \`--host'.
3648 See \`config.log' for more details" "$LINENO" 5; }
3649 fi
3650 fi
3651 fi
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3653 $as_echo "$cross_compiling" >&6; }
3654
3655 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3656 ac_clean_files=$ac_clean_files_save
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3658 $as_echo_n "checking for suffix of object files... " >&6; }
3659 if ${ac_cv_objext+:} false; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3664
3665 int
3666 main ()
3667 {
3668
3669 ;
3670 return 0;
3671 }
3672 _ACEOF
3673 rm -f conftest.o conftest.obj
3674 if { { ac_try="$ac_compile"
3675 case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678 esac
3679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3680 $as_echo "$ac_try_echo"; } >&5
3681 (eval "$ac_compile") 2>&5
3682 ac_status=$?
3683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3684 test $ac_status = 0; }; then :
3685 for ac_file in conftest.o conftest.obj conftest.*; do
3686 test -f "$ac_file" || continue;
3687 case $ac_file in
3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3689 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3690 break;;
3691 esac
3692 done
3693 else
3694 $as_echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3699 as_fn_error $? "cannot compute suffix of object files: cannot compile
3700 See \`config.log' for more details" "$LINENO" 5; }
3701 fi
3702 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3703 fi
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3705 $as_echo "$ac_cv_objext" >&6; }
3706 OBJEXT=$ac_cv_objext
3707 ac_objext=$OBJEXT
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3709 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3710 if ${ac_cv_c_compiler_gnu+:} false; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715
3716 int
3717 main ()
3718 {
3719 #ifndef __GNUC__
3720 choke me
3721 #endif
3722
3723 ;
3724 return 0;
3725 }
3726 _ACEOF
3727 if ac_fn_c_try_compile "$LINENO"; then :
3728 ac_compiler_gnu=yes
3729 else
3730 ac_compiler_gnu=no
3731 fi
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3734
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3737 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3738 if test $ac_compiler_gnu = yes; then
3739 GCC=yes
3740 else
3741 GCC=
3742 fi
3743 ac_test_CFLAGS=${CFLAGS+set}
3744 ac_save_CFLAGS=$CFLAGS
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3746 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3747 if ${ac_cv_prog_cc_g+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 ac_save_c_werror_flag=$ac_c_werror_flag
3751 ac_c_werror_flag=yes
3752 ac_cv_prog_cc_g=no
3753 CFLAGS="-g"
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756
3757 int
3758 main ()
3759 {
3760
3761 ;
3762 return 0;
3763 }
3764 _ACEOF
3765 if ac_fn_c_try_compile "$LINENO"; then :
3766 ac_cv_prog_cc_g=yes
3767 else
3768 CFLAGS=""
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771
3772 int
3773 main ()
3774 {
3775
3776 ;
3777 return 0;
3778 }
3779 _ACEOF
3780 if ac_fn_c_try_compile "$LINENO"; then :
3781
3782 else
3783 ac_c_werror_flag=$ac_save_c_werror_flag
3784 CFLAGS="-g"
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787
3788 int
3789 main ()
3790 {
3791
3792 ;
3793 return 0;
3794 }
3795 _ACEOF
3796 if ac_fn_c_try_compile "$LINENO"; then :
3797 ac_cv_prog_cc_g=yes
3798 fi
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 fi
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 ac_c_werror_flag=$ac_save_c_werror_flag
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3807 $as_echo "$ac_cv_prog_cc_g" >&6; }
3808 if test "$ac_test_CFLAGS" = set; then
3809 CFLAGS=$ac_save_CFLAGS
3810 elif test $ac_cv_prog_cc_g = yes; then
3811 if test "$GCC" = yes; then
3812 CFLAGS="-g -O2"
3813 else
3814 CFLAGS="-g"
3815 fi
3816 else
3817 if test "$GCC" = yes; then
3818 CFLAGS="-O2"
3819 else
3820 CFLAGS=
3821 fi
3822 fi
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3824 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3825 if ${ac_cv_prog_cc_c89+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 ac_cv_prog_cc_c89=no
3829 ac_save_CC=$CC
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3832 #include <stdarg.h>
3833 #include <stdio.h>
3834 struct stat;
3835 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3836 struct buf { int x; };
3837 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3838 static char *e (p, i)
3839 char **p;
3840 int i;
3841 {
3842 return p[i];
3843 }
3844 static char *f (char * (*g) (char **, int), char **p, ...)
3845 {
3846 char *s;
3847 va_list v;
3848 va_start (v,p);
3849 s = g (p, va_arg (v,int));
3850 va_end (v);
3851 return s;
3852 }
3853
3854 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3855 function prototypes and stuff, but not '\xHH' hex character constants.
3856 These don't provoke an error unfortunately, instead are silently treated
3857 as 'x'. The following induces an error, until -std is added to get
3858 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3859 array size at least. It's necessary to write '\x00'==0 to get something
3860 that's true only with -std. */
3861 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3862
3863 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3864 inside strings and character constants. */
3865 #define FOO(x) 'x'
3866 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3867
3868 int test (int i, double x);
3869 struct s1 {int (*f) (int a);};
3870 struct s2 {int (*f) (double a);};
3871 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3872 int argc;
3873 char **argv;
3874 int
3875 main ()
3876 {
3877 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3878 ;
3879 return 0;
3880 }
3881 _ACEOF
3882 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3883 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3884 do
3885 CC="$ac_save_CC $ac_arg"
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887 ac_cv_prog_cc_c89=$ac_arg
3888 fi
3889 rm -f core conftest.err conftest.$ac_objext
3890 test "x$ac_cv_prog_cc_c89" != "xno" && break
3891 done
3892 rm -f conftest.$ac_ext
3893 CC=$ac_save_CC
3894
3895 fi
3896 # AC_CACHE_VAL
3897 case "x$ac_cv_prog_cc_c89" in
3898 x)
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3900 $as_echo "none needed" >&6; } ;;
3901 xno)
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3903 $as_echo "unsupported" >&6; } ;;
3904 *)
3905 CC="$CC $ac_cv_prog_cc_c89"
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3907 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3908 esac
3909 if test "x$ac_cv_prog_cc_c89" != xno; then :
3910
3911 fi
3912
3913 ac_ext=c
3914 ac_cpp='$CPP $CPPFLAGS'
3915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918
3919 ac_ext=c
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3925 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3926 if ${am_cv_prog_cc_c_o+:} false; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3931
3932 int
3933 main ()
3934 {
3935
3936 ;
3937 return 0;
3938 }
3939 _ACEOF
3940 # Make sure it works both with $CC and with simple cc.
3941 # Following AC_PROG_CC_C_O, we do the test twice because some
3942 # compilers refuse to overwrite an existing .o file with -o,
3943 # though they will create one.
3944 am_cv_prog_cc_c_o=yes
3945 for am_i in 1 2; do
3946 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3947 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } \
3951 && test -f conftest2.$ac_objext; then
3952 : OK
3953 else
3954 am_cv_prog_cc_c_o=no
3955 break
3956 fi
3957 done
3958 rm -f core conftest*
3959 unset am_i
3960 fi
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3962 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3963 if test "$am_cv_prog_cc_c_o" != yes; then
3964 # Losing compiler, so override with the script.
3965 # FIXME: It is wrong to rewrite CC.
3966 # But if we don't then we get into trouble of one sort or another.
3967 # A longer-term fix would be to have automake use am__CC in this case,
3968 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3969 CC="$am_aux_dir/compile $CC"
3970 fi
3971 ac_ext=c
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976
3977
3978 depcc="$CC" am_compiler_list=
3979
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3981 $as_echo_n "checking dependency style of $depcc... " >&6; }
3982 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3986 # We make a subdir and do the tests there. Otherwise we can end up
3987 # making bogus files that we don't know about and never remove. For
3988 # instance it was reported that on HP-UX the gcc test will end up
3989 # making a dummy file named 'D' -- because '-MD' means "put the output
3990 # in D".
3991 rm -rf conftest.dir
3992 mkdir conftest.dir
3993 # Copy depcomp to subdir because otherwise we won't find it if we're
3994 # using a relative directory.
3995 cp "$am_depcomp" conftest.dir
3996 cd conftest.dir
3997 # We will build objects and dependencies in a subdirectory because
3998 # it helps to detect inapplicable dependency modes. For instance
3999 # both Tru64's cc and ICC support -MD to output dependencies as a
4000 # side effect of compilation, but ICC will put the dependencies in
4001 # the current directory while Tru64 will put them in the object
4002 # directory.
4003 mkdir sub
4004
4005 am_cv_CC_dependencies_compiler_type=none
4006 if test "$am_compiler_list" = ""; then
4007 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4008 fi
4009 am__universal=false
4010 case " $depcc " in #(
4011 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4012 esac
4013
4014 for depmode in $am_compiler_list; do
4015 # Setup a source with many dependencies, because some compilers
4016 # like to wrap large dependency lists on column 80 (with \), and
4017 # we should not choose a depcomp mode which is confused by this.
4018 #
4019 # We need to recreate these files for each test, as the compiler may
4020 # overwrite some of them when testing with obscure command lines.
4021 # This happens at least with the AIX C compiler.
4022 : > sub/conftest.c
4023 for i in 1 2 3 4 5 6; do
4024 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4025 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4026 # Solaris 10 /bin/sh.
4027 echo '/* dummy */' > sub/conftst$i.h
4028 done
4029 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4030
4031 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4032 # mode. It turns out that the SunPro C++ compiler does not properly
4033 # handle '-M -o', and we need to detect this. Also, some Intel
4034 # versions had trouble with output in subdirs.
4035 am__obj=sub/conftest.${OBJEXT-o}
4036 am__minus_obj="-o $am__obj"
4037 case $depmode in
4038 gcc)
4039 # This depmode causes a compiler race in universal mode.
4040 test "$am__universal" = false || continue
4041 ;;
4042 nosideeffect)
4043 # After this tag, mechanisms are not by side-effect, so they'll
4044 # only be used when explicitly requested.
4045 if test "x$enable_dependency_tracking" = xyes; then
4046 continue
4047 else
4048 break
4049 fi
4050 ;;
4051 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4052 # This compiler won't grok '-c -o', but also, the minuso test has
4053 # not run yet. These depmodes are late enough in the game, and
4054 # so weak that their functioning should not be impacted.
4055 am__obj=conftest.${OBJEXT-o}
4056 am__minus_obj=
4057 ;;
4058 none) break ;;
4059 esac
4060 if depmode=$depmode \
4061 source=sub/conftest.c object=$am__obj \
4062 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4063 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4064 >/dev/null 2>conftest.err &&
4065 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4066 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4067 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4068 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4069 # icc doesn't choke on unknown options, it will just issue warnings
4070 # or remarks (even with -Werror). So we grep stderr for any message
4071 # that says an option was ignored or not supported.
4072 # When given -MP, icc 7.0 and 7.1 complain thusly:
4073 # icc: Command line warning: ignoring option '-M'; no argument required
4074 # The diagnosis changed in icc 8.0:
4075 # icc: Command line remark: option '-MP' not supported
4076 if (grep 'ignoring option' conftest.err ||
4077 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4078 am_cv_CC_dependencies_compiler_type=$depmode
4079 break
4080 fi
4081 fi
4082 done
4083
4084 cd ..
4085 rm -rf conftest.dir
4086 else
4087 am_cv_CC_dependencies_compiler_type=none
4088 fi
4089
4090 fi
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4092 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4093 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4094
4095 if
4096 test "x$enable_dependency_tracking" != xno \
4097 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4098 am__fastdepCC_TRUE=
4099 am__fastdepCC_FALSE='#'
4100 else
4101 am__fastdepCC_TRUE='#'
4102 am__fastdepCC_FALSE=
4103 fi
4104
4105
4106
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4108 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4109 if ${ac_cv_c_const+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114
4115 int
4116 main ()
4117 {
4118
4119 #ifndef __cplusplus
4120 /* Ultrix mips cc rejects this sort of thing. */
4121 typedef int charset[2];
4122 const charset cs = { 0, 0 };
4123 /* SunOS 4.1.1 cc rejects this. */
4124 char const *const *pcpcc;
4125 char **ppc;
4126 /* NEC SVR4.0.2 mips cc rejects this. */
4127 struct point {int x, y;};
4128 static struct point const zero = {0,0};
4129 /* AIX XL C 1.02.0.0 rejects this.
4130 It does not let you subtract one const X* pointer from another in
4131 an arm of an if-expression whose if-part is not a constant
4132 expression */
4133 const char *g = "string";
4134 pcpcc = &g + (g ? g-g : 0);
4135 /* HPUX 7.0 cc rejects these. */
4136 ++pcpcc;
4137 ppc = (char**) pcpcc;
4138 pcpcc = (char const *const *) ppc;
4139 { /* SCO 3.2v4 cc rejects this sort of thing. */
4140 char tx;
4141 char *t = &tx;
4142 char const *s = 0 ? (char *) 0 : (char const *) 0;
4143
4144 *t++ = 0;
4145 if (s) return 0;
4146 }
4147 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4148 int x[] = {25, 17};
4149 const int *foo = &x[0];
4150 ++foo;
4151 }
4152 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4153 typedef const int *iptr;
4154 iptr p = 0;
4155 ++p;
4156 }
4157 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4158 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4159 struct s { int j; const int *ap[3]; } bx;
4160 struct s *b = &bx; b->j = 5;
4161 }
4162 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4163 const int foo = 10;
4164 if (!foo) return 0;
4165 }
4166 return !cs[0] && !zero.x;
4167 #endif
4168
4169 ;
4170 return 0;
4171 }
4172 _ACEOF
4173 if ac_fn_c_try_compile "$LINENO"; then :
4174 ac_cv_c_const=yes
4175 else
4176 ac_cv_c_const=no
4177 fi
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4181 $as_echo "$ac_cv_c_const" >&6; }
4182 if test $ac_cv_c_const = no; then
4183
4184 $as_echo "#define const /**/" >>confdefs.h
4185
4186 fi
4187
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4189 $as_echo_n "checking for inline... " >&6; }
4190 if ${ac_cv_c_inline+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 ac_cv_c_inline=no
4194 for ac_kw in inline __inline__ __inline; do
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197 #ifndef __cplusplus
4198 typedef int foo_t;
4199 static $ac_kw foo_t static_foo () {return 0; }
4200 $ac_kw foo_t foo () {return 0; }
4201 #endif
4202
4203 _ACEOF
4204 if ac_fn_c_try_compile "$LINENO"; then :
4205 ac_cv_c_inline=$ac_kw
4206 fi
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 test "$ac_cv_c_inline" != no && break
4209 done
4210
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4213 $as_echo "$ac_cv_c_inline" >&6; }
4214
4215 case $ac_cv_c_inline in
4216 inline | yes) ;;
4217 *)
4218 case $ac_cv_c_inline in
4219 no) ac_val=;;
4220 *) ac_val=$ac_cv_c_inline;;
4221 esac
4222 cat >>confdefs.h <<_ACEOF
4223 #ifndef __cplusplus
4224 #define inline $ac_val
4225 #endif
4226 _ACEOF
4227 ;;
4228 esac
4229
4230 ac_ext=c
4231 ac_cpp='$CPP $CPPFLAGS'
4232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4236 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4237 # On Suns, sometimes $CPP names a directory.
4238 if test -n "$CPP" && test -d "$CPP"; then
4239 CPP=
4240 fi
4241 if test -z "$CPP"; then
4242 if ${ac_cv_prog_CPP+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 # Double quotes because CPP needs to be expanded
4246 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4247 do
4248 ac_preproc_ok=false
4249 for ac_c_preproc_warn_flag in '' yes
4250 do
4251 # Use a header file that comes with gcc, so configuring glibc
4252 # with a fresh cross-compiler works.
4253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4254 # <limits.h> exists even on freestanding compilers.
4255 # On the NeXT, cc -E runs the code through the compiler's parser,
4256 # not just through cpp. "Syntax error" is here to catch this case.
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #ifdef __STDC__
4260 # include <limits.h>
4261 #else
4262 # include <assert.h>
4263 #endif
4264 Syntax error
4265 _ACEOF
4266 if ac_fn_c_try_cpp "$LINENO"; then :
4267
4268 else
4269 # Broken: fails on valid input.
4270 continue
4271 fi
4272 rm -f conftest.err conftest.i conftest.$ac_ext
4273
4274 # OK, works on sane cases. Now check whether nonexistent headers
4275 # can be detected and how.
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 #include <ac_nonexistent.h>
4279 _ACEOF
4280 if ac_fn_c_try_cpp "$LINENO"; then :
4281 # Broken: success on invalid input.
4282 continue
4283 else
4284 # Passes both tests.
4285 ac_preproc_ok=:
4286 break
4287 fi
4288 rm -f conftest.err conftest.i conftest.$ac_ext
4289
4290 done
4291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4292 rm -f conftest.i conftest.err conftest.$ac_ext
4293 if $ac_preproc_ok; then :
4294 break
4295 fi
4296
4297 done
4298 ac_cv_prog_CPP=$CPP
4299
4300 fi
4301 CPP=$ac_cv_prog_CPP
4302 else
4303 ac_cv_prog_CPP=$CPP
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4306 $as_echo "$CPP" >&6; }
4307 ac_preproc_ok=false
4308 for ac_c_preproc_warn_flag in '' yes
4309 do
4310 # Use a header file that comes with gcc, so configuring glibc
4311 # with a fresh cross-compiler works.
4312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4313 # <limits.h> exists even on freestanding compilers.
4314 # On the NeXT, cc -E runs the code through the compiler's parser,
4315 # not just through cpp. "Syntax error" is here to catch this case.
4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h. */
4318 #ifdef __STDC__
4319 # include <limits.h>
4320 #else
4321 # include <assert.h>
4322 #endif
4323 Syntax error
4324 _ACEOF
4325 if ac_fn_c_try_cpp "$LINENO"; then :
4326
4327 else
4328 # Broken: fails on valid input.
4329 continue
4330 fi
4331 rm -f conftest.err conftest.i conftest.$ac_ext
4332
4333 # OK, works on sane cases. Now check whether nonexistent headers
4334 # can be detected and how.
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337 #include <ac_nonexistent.h>
4338 _ACEOF
4339 if ac_fn_c_try_cpp "$LINENO"; then :
4340 # Broken: success on invalid input.
4341 continue
4342 else
4343 # Passes both tests.
4344 ac_preproc_ok=:
4345 break
4346 fi
4347 rm -f conftest.err conftest.i conftest.$ac_ext
4348
4349 done
4350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4351 rm -f conftest.i conftest.err conftest.$ac_ext
4352 if $ac_preproc_ok; then :
4353
4354 else
4355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4357 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4358 See \`config.log' for more details" "$LINENO" 5; }
4359 fi
4360
4361 ac_ext=c
4362 ac_cpp='$CPP $CPPFLAGS'
4363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4366
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4369 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4370 if ${ac_cv_path_GREP+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 if test -z "$GREP"; then
4374 ac_path_GREP_found=false
4375 # Loop through the user's path and test for each of PROGNAME-LIST
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4378 do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_prog in grep ggrep; do
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4384 as_fn_executable_p "$ac_path_GREP" || continue
4385 # Check for GNU ac_path_GREP and select it if it is found.
4386 # Check for GNU $ac_path_GREP
4387 case `"$ac_path_GREP" --version 2>&1` in
4388 *GNU*)
4389 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4390 *)
4391 ac_count=0
4392 $as_echo_n 0123456789 >"conftest.in"
4393 while :
4394 do
4395 cat "conftest.in" "conftest.in" >"conftest.tmp"
4396 mv "conftest.tmp" "conftest.in"
4397 cp "conftest.in" "conftest.nl"
4398 $as_echo 'GREP' >> "conftest.nl"
4399 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4401 as_fn_arith $ac_count + 1 && ac_count=$as_val
4402 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4403 # Best one so far, save it but keep looking for a better one
4404 ac_cv_path_GREP="$ac_path_GREP"
4405 ac_path_GREP_max=$ac_count
4406 fi
4407 # 10*(2^10) chars as input seems more than enough
4408 test $ac_count -gt 10 && break
4409 done
4410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4411 esac
4412
4413 $ac_path_GREP_found && break 3
4414 done
4415 done
4416 done
4417 IFS=$as_save_IFS
4418 if test -z "$ac_cv_path_GREP"; then
4419 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4420 fi
4421 else
4422 ac_cv_path_GREP=$GREP
4423 fi
4424
4425 fi
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4427 $as_echo "$ac_cv_path_GREP" >&6; }
4428 GREP="$ac_cv_path_GREP"
4429
4430
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4432 $as_echo_n "checking for egrep... " >&6; }
4433 if ${ac_cv_path_EGREP+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4437 then ac_cv_path_EGREP="$GREP -E"
4438 else
4439 if test -z "$EGREP"; then
4440 ac_path_EGREP_found=false
4441 # Loop through the user's path and test for each of PROGNAME-LIST
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4444 do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_prog in egrep; do
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4450 as_fn_executable_p "$ac_path_EGREP" || continue
4451 # Check for GNU ac_path_EGREP and select it if it is found.
4452 # Check for GNU $ac_path_EGREP
4453 case `"$ac_path_EGREP" --version 2>&1` in
4454 *GNU*)
4455 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4456 *)
4457 ac_count=0
4458 $as_echo_n 0123456789 >"conftest.in"
4459 while :
4460 do
4461 cat "conftest.in" "conftest.in" >"conftest.tmp"
4462 mv "conftest.tmp" "conftest.in"
4463 cp "conftest.in" "conftest.nl"
4464 $as_echo 'EGREP' >> "conftest.nl"
4465 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4466 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4467 as_fn_arith $ac_count + 1 && ac_count=$as_val
4468 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4469 # Best one so far, save it but keep looking for a better one
4470 ac_cv_path_EGREP="$ac_path_EGREP"
4471 ac_path_EGREP_max=$ac_count
4472 fi
4473 # 10*(2^10) chars as input seems more than enough
4474 test $ac_count -gt 10 && break
4475 done
4476 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4477 esac
4478
4479 $ac_path_EGREP_found && break 3
4480 done
4481 done
4482 done
4483 IFS=$as_save_IFS
4484 if test -z "$ac_cv_path_EGREP"; then
4485 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4486 fi
4487 else
4488 ac_cv_path_EGREP=$EGREP
4489 fi
4490
4491 fi
4492 fi
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4494 $as_echo "$ac_cv_path_EGREP" >&6; }
4495 EGREP="$ac_cv_path_EGREP"
4496
4497
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4499 $as_echo_n "checking for ANSI C header files... " >&6; }
4500 if ${ac_cv_header_stdc+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505 #include <stdlib.h>
4506 #include <stdarg.h>
4507 #include <string.h>
4508 #include <float.h>
4509
4510 int
4511 main ()
4512 {
4513
4514 ;
4515 return 0;
4516 }
4517 _ACEOF
4518 if ac_fn_c_try_compile "$LINENO"; then :
4519 ac_cv_header_stdc=yes
4520 else
4521 ac_cv_header_stdc=no
4522 fi
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524
4525 if test $ac_cv_header_stdc = yes; then
4526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529 #include <string.h>
4530
4531 _ACEOF
4532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4533 $EGREP "memchr" >/dev/null 2>&1; then :
4534
4535 else
4536 ac_cv_header_stdc=no
4537 fi
4538 rm -f conftest*
4539
4540 fi
4541
4542 if test $ac_cv_header_stdc = yes; then
4543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #include <stdlib.h>
4547
4548 _ACEOF
4549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4550 $EGREP "free" >/dev/null 2>&1; then :
4551
4552 else
4553 ac_cv_header_stdc=no
4554 fi
4555 rm -f conftest*
4556
4557 fi
4558
4559 if test $ac_cv_header_stdc = yes; then
4560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4561 if test "$cross_compiling" = yes; then :
4562 :
4563 else
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 #include <ctype.h>
4567 #include <stdlib.h>
4568 #if ((' ' & 0x0FF) == 0x020)
4569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4571 #else
4572 # define ISLOWER(c) \
4573 (('a' <= (c) && (c) <= 'i') \
4574 || ('j' <= (c) && (c) <= 'r') \
4575 || ('s' <= (c) && (c) <= 'z'))
4576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4577 #endif
4578
4579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4580 int
4581 main ()
4582 {
4583 int i;
4584 for (i = 0; i < 256; i++)
4585 if (XOR (islower (i), ISLOWER (i))
4586 || toupper (i) != TOUPPER (i))
4587 return 2;
4588 return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_c_try_run "$LINENO"; then :
4592
4593 else
4594 ac_cv_header_stdc=no
4595 fi
4596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4597 conftest.$ac_objext conftest.beam conftest.$ac_ext
4598 fi
4599
4600 fi
4601 fi
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4603 $as_echo "$ac_cv_header_stdc" >&6; }
4604 if test $ac_cv_header_stdc = yes; then
4605
4606 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4607
4608 fi
4609
4610 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4611 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4612 inttypes.h stdint.h unistd.h
4613 do :
4614 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4615 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4616 "
4617 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4618 cat >>confdefs.h <<_ACEOF
4619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4620 _ACEOF
4621
4622 fi
4623
4624 done
4625
4626
4627 for ac_header in sys/time.h
4628 do :
4629 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4630 if test "x$ac_cv_header_sys_time_h" = xyes; then :
4631 cat >>confdefs.h <<_ACEOF
4632 #define HAVE_SYS_TIME_H 1
4633 _ACEOF
4634
4635 fi
4636
4637 done
4638
4639
4640 case `pwd` in
4641 *\ * | *\ *)
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4643 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4644 esac
4645
4646
4647
4648 macro_version='2.4.6'
4649 macro_revision='2.4.6'
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663 ltmain=$ac_aux_dir/ltmain.sh
4664
4665 # Backslashify metacharacters that are still active within
4666 # double-quoted strings.
4667 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4668
4669 # Same as above, but do not quote variable references.
4670 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4671
4672 # Sed substitution to delay expansion of an escaped shell variable in a
4673 # double_quote_subst'ed string.
4674 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4675
4676 # Sed substitution to delay expansion of an escaped single quote.
4677 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4678
4679 # Sed substitution to avoid accidental globbing in evaled expressions
4680 no_glob_subst='s/\*/\\\*/g'
4681
4682 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4683 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4684 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4687 $as_echo_n "checking how to print strings... " >&6; }
4688 # Test print first, because it will be a builtin if present.
4689 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4690 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4691 ECHO='print -r --'
4692 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4693 ECHO='printf %s\n'
4694 else
4695 # Use this function as a fallback that always works.
4696 func_fallback_echo ()
4697 {
4698 eval 'cat <<_LTECHO_EOF
4699 $1
4700 _LTECHO_EOF'
4701 }
4702 ECHO='func_fallback_echo'
4703 fi
4704
4705 # func_echo_all arg...
4706 # Invoke $ECHO with all args, space-separated.
4707 func_echo_all ()
4708 {
4709 $ECHO ""
4710 }
4711
4712 case $ECHO in
4713 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4714 $as_echo "printf" >&6; } ;;
4715 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4716 $as_echo "print -r" >&6; } ;;
4717 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4718 $as_echo "cat" >&6; } ;;
4719 esac
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4735 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4736 if ${ac_cv_path_SED+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4740 for ac_i in 1 2 3 4 5 6 7; do
4741 ac_script="$ac_script$as_nl$ac_script"
4742 done
4743 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4744 { ac_script=; unset ac_script;}
4745 if test -z "$SED"; then
4746 ac_path_SED_found=false
4747 # Loop through the user's path and test for each of PROGNAME-LIST
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_prog in sed gsed; do
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4756 as_fn_executable_p "$ac_path_SED" || continue
4757 # Check for GNU ac_path_SED and select it if it is found.
4758 # Check for GNU $ac_path_SED
4759 case `"$ac_path_SED" --version 2>&1` in
4760 *GNU*)
4761 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4762 *)
4763 ac_count=0
4764 $as_echo_n 0123456789 >"conftest.in"
4765 while :
4766 do
4767 cat "conftest.in" "conftest.in" >"conftest.tmp"
4768 mv "conftest.tmp" "conftest.in"
4769 cp "conftest.in" "conftest.nl"
4770 $as_echo '' >> "conftest.nl"
4771 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4772 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4773 as_fn_arith $ac_count + 1 && ac_count=$as_val
4774 if test $ac_count -gt ${ac_path_SED_max-0}; then
4775 # Best one so far, save it but keep looking for a better one
4776 ac_cv_path_SED="$ac_path_SED"
4777 ac_path_SED_max=$ac_count
4778 fi
4779 # 10*(2^10) chars as input seems more than enough
4780 test $ac_count -gt 10 && break
4781 done
4782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4783 esac
4784
4785 $ac_path_SED_found && break 3
4786 done
4787 done
4788 done
4789 IFS=$as_save_IFS
4790 if test -z "$ac_cv_path_SED"; then
4791 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4792 fi
4793 else
4794 ac_cv_path_SED=$SED
4795 fi
4796
4797 fi
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4799 $as_echo "$ac_cv_path_SED" >&6; }
4800 SED="$ac_cv_path_SED"
4801 rm -f conftest.sed
4802
4803 test -z "$SED" && SED=sed
4804 Xsed="$SED -e 1s/^X//"
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4817 $as_echo_n "checking for fgrep... " >&6; }
4818 if ${ac_cv_path_FGREP+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4822 then ac_cv_path_FGREP="$GREP -F"
4823 else
4824 if test -z "$FGREP"; then
4825 ac_path_FGREP_found=false
4826 # Loop through the user's path and test for each of PROGNAME-LIST
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4829 do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_prog in fgrep; do
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4835 as_fn_executable_p "$ac_path_FGREP" || continue
4836 # Check for GNU ac_path_FGREP and select it if it is found.
4837 # Check for GNU $ac_path_FGREP
4838 case `"$ac_path_FGREP" --version 2>&1` in
4839 *GNU*)
4840 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4841 *)
4842 ac_count=0
4843 $as_echo_n 0123456789 >"conftest.in"
4844 while :
4845 do
4846 cat "conftest.in" "conftest.in" >"conftest.tmp"
4847 mv "conftest.tmp" "conftest.in"
4848 cp "conftest.in" "conftest.nl"
4849 $as_echo 'FGREP' >> "conftest.nl"
4850 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4852 as_fn_arith $ac_count + 1 && ac_count=$as_val
4853 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4854 # Best one so far, save it but keep looking for a better one
4855 ac_cv_path_FGREP="$ac_path_FGREP"
4856 ac_path_FGREP_max=$ac_count
4857 fi
4858 # 10*(2^10) chars as input seems more than enough
4859 test $ac_count -gt 10 && break
4860 done
4861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4862 esac
4863
4864 $ac_path_FGREP_found && break 3
4865 done
4866 done
4867 done
4868 IFS=$as_save_IFS
4869 if test -z "$ac_cv_path_FGREP"; then
4870 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4871 fi
4872 else
4873 ac_cv_path_FGREP=$FGREP
4874 fi
4875
4876 fi
4877 fi
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4879 $as_echo "$ac_cv_path_FGREP" >&6; }
4880 FGREP="$ac_cv_path_FGREP"
4881
4882
4883 test -z "$GREP" && GREP=grep
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903 # Check whether --with-gnu-ld was given.
4904 if test "${with_gnu_ld+set}" = set; then :
4905 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4906 else
4907 with_gnu_ld=no
4908 fi
4909
4910 ac_prog=ld
4911 if test yes = "$GCC"; then
4912 # Check if gcc -print-prog-name=ld gives a path.
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4914 $as_echo_n "checking for ld used by $CC... " >&6; }
4915 case $host in
4916 *-*-mingw*)
4917 # gcc leaves a trailing carriage return, which upsets mingw
4918 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4919 *)
4920 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4921 esac
4922 case $ac_prog in
4923 # Accept absolute paths.
4924 [\\/]* | ?:[\\/]*)
4925 re_direlt='/[^/][^/]*/\.\./'
4926 # Canonicalize the pathname of ld
4927 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4928 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4929 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4930 done
4931 test -z "$LD" && LD=$ac_prog
4932 ;;
4933 "")
4934 # If it fails, then pretend we aren't using GCC.
4935 ac_prog=ld
4936 ;;
4937 *)
4938 # If it is relative, then search for the first ld in PATH.
4939 with_gnu_ld=unknown
4940 ;;
4941 esac
4942 elif test yes = "$with_gnu_ld"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4944 $as_echo_n "checking for GNU ld... " >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4947 $as_echo_n "checking for non-GNU ld... " >&6; }
4948 fi
4949 if ${lt_cv_path_LD+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -z "$LD"; then
4953 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4954 for ac_dir in $PATH; do
4955 IFS=$lt_save_ifs
4956 test -z "$ac_dir" && ac_dir=.
4957 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4958 lt_cv_path_LD=$ac_dir/$ac_prog
4959 # Check to see if the program is GNU ld. I'd rather use --version,
4960 # but apparently some variants of GNU ld only accept -v.
4961 # Break only if it was the GNU/non-GNU ld that we prefer.
4962 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4963 *GNU* | *'with BFD'*)
4964 test no != "$with_gnu_ld" && break
4965 ;;
4966 *)
4967 test yes != "$with_gnu_ld" && break
4968 ;;
4969 esac
4970 fi
4971 done
4972 IFS=$lt_save_ifs
4973 else
4974 lt_cv_path_LD=$LD # Let the user override the test with a path.
4975 fi
4976 fi
4977
4978 LD=$lt_cv_path_LD
4979 if test -n "$LD"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4981 $as_echo "$LD" >&6; }
4982 else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4985 fi
4986 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4988 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4989 if ${lt_cv_prog_gnu_ld+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4993 case `$LD -v 2>&1 </dev/null` in
4994 *GNU* | *'with BFD'*)
4995 lt_cv_prog_gnu_ld=yes
4996 ;;
4997 *)
4998 lt_cv_prog_gnu_ld=no
4999 ;;
5000 esac
5001 fi
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5003 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5004 with_gnu_ld=$lt_cv_prog_gnu_ld
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5015 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5016 if ${lt_cv_path_NM+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 if test -n "$NM"; then
5020 # Let the user override the test.
5021 lt_cv_path_NM=$NM
5022 else
5023 lt_nm_to_check=${ac_tool_prefix}nm
5024 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5025 lt_nm_to_check="$lt_nm_to_check nm"
5026 fi
5027 for lt_tmp_nm in $lt_nm_to_check; do
5028 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5029 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5030 IFS=$lt_save_ifs
5031 test -z "$ac_dir" && ac_dir=.
5032 tmp_nm=$ac_dir/$lt_tmp_nm
5033 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5034 # Check to see if the nm accepts a BSD-compat flag.
5035 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5036 # nm: unknown option "B" ignored
5037 # Tru64's nm complains that /dev/null is an invalid object file
5038 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5039 case $build_os in
5040 mingw*) lt_bad_file=conftest.nm/nofile ;;
5041 *) lt_bad_file=/dev/null ;;
5042 esac
5043 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5044 *$lt_bad_file* | *'Invalid file or object type'*)
5045 lt_cv_path_NM="$tmp_nm -B"
5046 break 2
5047 ;;
5048 *)
5049 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5050 */dev/null*)
5051 lt_cv_path_NM="$tmp_nm -p"
5052 break 2
5053 ;;
5054 *)
5055 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5056 continue # so that we can try to find one that supports BSD flags
5057 ;;
5058 esac
5059 ;;
5060 esac
5061 fi
5062 done
5063 IFS=$lt_save_ifs
5064 done
5065 : ${lt_cv_path_NM=no}
5066 fi
5067 fi
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5069 $as_echo "$lt_cv_path_NM" >&6; }
5070 if test no != "$lt_cv_path_NM"; then
5071 NM=$lt_cv_path_NM
5072 else
5073 # Didn't find any BSD compatible name lister, look for dumpbin.
5074 if test -n "$DUMPBIN"; then :
5075 # Let the user override the test.
5076 else
5077 if test -n "$ac_tool_prefix"; then
5078 for ac_prog in dumpbin "link -dump"
5079 do
5080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_DUMPBIN+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$DUMPBIN"; then
5088 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5100 fi
5101 done
5102 done
5103 IFS=$as_save_IFS
5104
5105 fi
5106 fi
5107 DUMPBIN=$ac_cv_prog_DUMPBIN
5108 if test -n "$DUMPBIN"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5110 $as_echo "$DUMPBIN" >&6; }
5111 else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115
5116
5117 test -n "$DUMPBIN" && break
5118 done
5119 fi
5120 if test -z "$DUMPBIN"; then
5121 ac_ct_DUMPBIN=$DUMPBIN
5122 for ac_prog in dumpbin "link -dump"
5123 do
5124 # Extract the first word of "$ac_prog", so it can be a program name with args.
5125 set dummy $ac_prog; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$ac_ct_DUMPBIN"; then
5132 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5144 fi
5145 done
5146 done
5147 IFS=$as_save_IFS
5148
5149 fi
5150 fi
5151 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5152 if test -n "$ac_ct_DUMPBIN"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5154 $as_echo "$ac_ct_DUMPBIN" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5158 fi
5159
5160
5161 test -n "$ac_ct_DUMPBIN" && break
5162 done
5163
5164 if test "x$ac_ct_DUMPBIN" = x; then
5165 DUMPBIN=":"
5166 else
5167 case $cross_compiling:$ac_tool_warned in
5168 yes:)
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5171 ac_tool_warned=yes ;;
5172 esac
5173 DUMPBIN=$ac_ct_DUMPBIN
5174 fi
5175 fi
5176
5177 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5178 *COFF*)
5179 DUMPBIN="$DUMPBIN -symbols -headers"
5180 ;;
5181 *)
5182 DUMPBIN=:
5183 ;;
5184 esac
5185 fi
5186
5187 if test : != "$DUMPBIN"; then
5188 NM=$DUMPBIN
5189 fi
5190 fi
5191 test -z "$NM" && NM=nm
5192
5193
5194
5195
5196
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5199 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5200 if ${lt_cv_nm_interface+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 lt_cv_nm_interface="BSD nm"
5204 echo "int some_variable = 0;" > conftest.$ac_ext
5205 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5206 (eval "$ac_compile" 2>conftest.err)
5207 cat conftest.err >&5
5208 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5209 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5210 cat conftest.err >&5
5211 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5212 cat conftest.out >&5
5213 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5214 lt_cv_nm_interface="MS dumpbin"
5215 fi
5216 rm -f conftest*
5217 fi
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5219 $as_echo "$lt_cv_nm_interface" >&6; }
5220
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5222 $as_echo_n "checking whether ln -s works... " >&6; }
5223 LN_S=$as_ln_s
5224 if test "$LN_S" = "ln -s"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5226 $as_echo "yes" >&6; }
5227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5229 $as_echo "no, using $LN_S" >&6; }
5230 fi
5231
5232 # find the maximum length of command line arguments
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5234 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5235 if ${lt_cv_sys_max_cmd_len+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 i=0
5239 teststring=ABCD
5240
5241 case $build_os in
5242 msdosdjgpp*)
5243 # On DJGPP, this test can blow up pretty badly due to problems in libc
5244 # (any single argument exceeding 2000 bytes causes a buffer overrun
5245 # during glob expansion). Even if it were fixed, the result of this
5246 # check would be larger than it should be.
5247 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5248 ;;
5249
5250 gnu*)
5251 # Under GNU Hurd, this test is not required because there is
5252 # no limit to the length of command line arguments.
5253 # Libtool will interpret -1 as no limit whatsoever
5254 lt_cv_sys_max_cmd_len=-1;
5255 ;;
5256
5257 cygwin* | mingw* | cegcc*)
5258 # On Win9x/ME, this test blows up -- it succeeds, but takes
5259 # about 5 minutes as the teststring grows exponentially.
5260 # Worse, since 9x/ME are not pre-emptively multitasking,
5261 # you end up with a "frozen" computer, even though with patience
5262 # the test eventually succeeds (with a max line length of 256k).
5263 # Instead, let's just punt: use the minimum linelength reported by
5264 # all of the supported platforms: 8192 (on NT/2K/XP).
5265 lt_cv_sys_max_cmd_len=8192;
5266 ;;
5267
5268 mint*)
5269 # On MiNT this can take a long time and run out of memory.
5270 lt_cv_sys_max_cmd_len=8192;
5271 ;;
5272
5273 amigaos*)
5274 # On AmigaOS with pdksh, this test takes hours, literally.
5275 # So we just punt and use a minimum line length of 8192.
5276 lt_cv_sys_max_cmd_len=8192;
5277 ;;
5278
5279 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5280 # This has been around since 386BSD, at least. Likely further.
5281 if test -x /sbin/sysctl; then
5282 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5283 elif test -x /usr/sbin/sysctl; then
5284 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5285 else
5286 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5287 fi
5288 # And add a safety zone
5289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5291 ;;
5292
5293 interix*)
5294 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5295 lt_cv_sys_max_cmd_len=196608
5296 ;;
5297
5298 os2*)
5299 # The test takes a long time on OS/2.
5300 lt_cv_sys_max_cmd_len=8192
5301 ;;
5302
5303 osf*)
5304 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5305 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5306 # nice to cause kernel panics so lets avoid the loop below.
5307 # First set a reasonable default.
5308 lt_cv_sys_max_cmd_len=16384
5309 #
5310 if test -x /sbin/sysconfig; then
5311 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5312 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5313 esac
5314 fi
5315 ;;
5316 sco3.2v5*)
5317 lt_cv_sys_max_cmd_len=102400
5318 ;;
5319 sysv5* | sco5v6* | sysv4.2uw2*)
5320 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5321 if test -n "$kargmax"; then
5322 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5323 else
5324 lt_cv_sys_max_cmd_len=32768
5325 fi
5326 ;;
5327 *)
5328 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5329 if test -n "$lt_cv_sys_max_cmd_len" && \
5330 test undefined != "$lt_cv_sys_max_cmd_len"; then
5331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5333 else
5334 # Make teststring a little bigger before we do anything with it.
5335 # a 1K string should be a reasonable start.
5336 for i in 1 2 3 4 5 6 7 8; do
5337 teststring=$teststring$teststring
5338 done
5339 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5340 # If test is not a shell built-in, we'll probably end up computing a
5341 # maximum length that is only half of the actual maximum length, but
5342 # we can't tell.
5343 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5344 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5345 test 17 != "$i" # 1/2 MB should be enough
5346 do
5347 i=`expr $i + 1`
5348 teststring=$teststring$teststring
5349 done
5350 # Only check the string length outside the loop.
5351 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5352 teststring=
5353 # Add a significant safety factor because C++ compilers can tack on
5354 # massive amounts of additional arguments before passing them to the
5355 # linker. It appears as though 1/2 is a usable value.
5356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5357 fi
5358 ;;
5359 esac
5360
5361 fi
5362
5363 if test -n "$lt_cv_sys_max_cmd_len"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5365 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5368 $as_echo "none" >&6; }
5369 fi
5370 max_cmd_len=$lt_cv_sys_max_cmd_len
5371
5372
5373
5374
5375
5376
5377 : ${CP="cp -f"}
5378 : ${MV="mv -f"}
5379 : ${RM="rm -f"}
5380
5381 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5382 lt_unset=unset
5383 else
5384 lt_unset=false
5385 fi
5386
5387
5388
5389
5390
5391 # test EBCDIC or ASCII
5392 case `echo X|tr X '\101'` in
5393 A) # ASCII based system
5394 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5395 lt_SP2NL='tr \040 \012'
5396 lt_NL2SP='tr \015\012 \040\040'
5397 ;;
5398 *) # EBCDIC based system
5399 lt_SP2NL='tr \100 \n'
5400 lt_NL2SP='tr \r\n \100\100'
5401 ;;
5402 esac
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5413 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5414 if ${lt_cv_to_host_file_cmd+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 case $host in
5418 *-*-mingw* )
5419 case $build in
5420 *-*-mingw* ) # actually msys
5421 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5422 ;;
5423 *-*-cygwin* )
5424 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5425 ;;
5426 * ) # otherwise, assume *nix
5427 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5428 ;;
5429 esac
5430 ;;
5431 *-*-cygwin* )
5432 case $build in
5433 *-*-mingw* ) # actually msys
5434 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5435 ;;
5436 *-*-cygwin* )
5437 lt_cv_to_host_file_cmd=func_convert_file_noop
5438 ;;
5439 * ) # otherwise, assume *nix
5440 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5441 ;;
5442 esac
5443 ;;
5444 * ) # unhandled hosts (and "normal" native builds)
5445 lt_cv_to_host_file_cmd=func_convert_file_noop
5446 ;;
5447 esac
5448
5449 fi
5450
5451 to_host_file_cmd=$lt_cv_to_host_file_cmd
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5453 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5454
5455
5456
5457
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5460 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5461 if ${lt_cv_to_tool_file_cmd+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 #assume ordinary cross tools, or native build.
5465 lt_cv_to_tool_file_cmd=func_convert_file_noop
5466 case $host in
5467 *-*-mingw* )
5468 case $build in
5469 *-*-mingw* ) # actually msys
5470 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5471 ;;
5472 esac
5473 ;;
5474 esac
5475
5476 fi
5477
5478 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5480 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5481
5482
5483
5484
5485
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5487 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5488 if ${lt_cv_ld_reload_flag+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 lt_cv_ld_reload_flag='-r'
5492 fi
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5494 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5495 reload_flag=$lt_cv_ld_reload_flag
5496 case $reload_flag in
5497 "" | " "*) ;;
5498 *) reload_flag=" $reload_flag" ;;
5499 esac
5500 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5501 case $host_os in
5502 cygwin* | mingw* | pw32* | cegcc*)
5503 if test yes != "$GCC"; then
5504 reload_cmds=false
5505 fi
5506 ;;
5507 darwin*)
5508 if test yes = "$GCC"; then
5509 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5510 else
5511 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5512 fi
5513 ;;
5514 esac
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524 if test -n "$ac_tool_prefix"; then
5525 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5526 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_OBJDUMP+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -n "$OBJDUMP"; then
5533 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5545 fi
5546 done
5547 done
5548 IFS=$as_save_IFS
5549
5550 fi
5551 fi
5552 OBJDUMP=$ac_cv_prog_OBJDUMP
5553 if test -n "$OBJDUMP"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5555 $as_echo "$OBJDUMP" >&6; }
5556 else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560
5561
5562 fi
5563 if test -z "$ac_cv_prog_OBJDUMP"; then
5564 ac_ct_OBJDUMP=$OBJDUMP
5565 # Extract the first word of "objdump", so it can be a program name with args.
5566 set dummy objdump; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 if test -n "$ac_ct_OBJDUMP"; then
5573 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5574 else
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5577 do
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5582 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 break 2
5585 fi
5586 done
5587 done
5588 IFS=$as_save_IFS
5589
5590 fi
5591 fi
5592 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5593 if test -n "$ac_ct_OBJDUMP"; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5595 $as_echo "$ac_ct_OBJDUMP" >&6; }
5596 else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5599 fi
5600
5601 if test "x$ac_ct_OBJDUMP" = x; then
5602 OBJDUMP="false"
5603 else
5604 case $cross_compiling:$ac_tool_warned in
5605 yes:)
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5608 ac_tool_warned=yes ;;
5609 esac
5610 OBJDUMP=$ac_ct_OBJDUMP
5611 fi
5612 else
5613 OBJDUMP="$ac_cv_prog_OBJDUMP"
5614 fi
5615
5616 test -z "$OBJDUMP" && OBJDUMP=objdump
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5627 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5628 if ${lt_cv_deplibs_check_method+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 lt_cv_file_magic_cmd='$MAGIC_CMD'
5632 lt_cv_file_magic_test_file=
5633 lt_cv_deplibs_check_method='unknown'
5634 # Need to set the preceding variable on all platforms that support
5635 # interlibrary dependencies.
5636 # 'none' -- dependencies not supported.
5637 # 'unknown' -- same as none, but documents that we really don't know.
5638 # 'pass_all' -- all dependencies passed with no checks.
5639 # 'test_compile' -- check by making test program.
5640 # 'file_magic [[regex]]' -- check by looking for files in library path
5641 # that responds to the $file_magic_cmd with a given extended regex.
5642 # If you have 'file' or equivalent on your system and you're not sure
5643 # whether 'pass_all' will *always* work, you probably want this one.
5644
5645 case $host_os in
5646 aix[4-9]*)
5647 lt_cv_deplibs_check_method=pass_all
5648 ;;
5649
5650 beos*)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653
5654 bsdi[45]*)
5655 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5656 lt_cv_file_magic_cmd='/usr/bin/file -L'
5657 lt_cv_file_magic_test_file=/shlib/libc.so
5658 ;;
5659
5660 cygwin*)
5661 # func_win32_libid is a shell function defined in ltmain.sh
5662 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5663 lt_cv_file_magic_cmd='func_win32_libid'
5664 ;;
5665
5666 mingw* | pw32*)
5667 # Base MSYS/MinGW do not provide the 'file' command needed by
5668 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5669 # unless we find 'file', for example because we are cross-compiling.
5670 if ( file / ) >/dev/null 2>&1; then
5671 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5672 lt_cv_file_magic_cmd='func_win32_libid'
5673 else
5674 # Keep this pattern in sync with the one in func_win32_libid.
5675 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5676 lt_cv_file_magic_cmd='$OBJDUMP -f'
5677 fi
5678 ;;
5679
5680 cegcc*)
5681 # use the weaker test based on 'objdump'. See mingw*.
5682 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5683 lt_cv_file_magic_cmd='$OBJDUMP -f'
5684 ;;
5685
5686 darwin* | rhapsody*)
5687 lt_cv_deplibs_check_method=pass_all
5688 ;;
5689
5690 freebsd* | dragonfly*)
5691 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5692 case $host_cpu in
5693 i*86 )
5694 # Not sure whether the presence of OpenBSD here was a mistake.
5695 # Let's accept both of them until this is cleared up.
5696 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5697 lt_cv_file_magic_cmd=/usr/bin/file
5698 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5699 ;;
5700 esac
5701 else
5702 lt_cv_deplibs_check_method=pass_all
5703 fi
5704 ;;
5705
5706 haiku*)
5707 lt_cv_deplibs_check_method=pass_all
5708 ;;
5709
5710 hpux10.20* | hpux11*)
5711 lt_cv_file_magic_cmd=/usr/bin/file
5712 case $host_cpu in
5713 ia64*)
5714 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5715 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5716 ;;
5717 hppa*64*)
5718 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]'
5719 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5720 ;;
5721 *)
5722 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5723 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5724 ;;
5725 esac
5726 ;;
5727
5728 interix[3-9]*)
5729 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5731 ;;
5732
5733 irix5* | irix6* | nonstopux*)
5734 case $LD in
5735 *-32|*"-32 ") libmagic=32-bit;;
5736 *-n32|*"-n32 ") libmagic=N32;;
5737 *-64|*"-64 ") libmagic=64-bit;;
5738 *) libmagic=never-match;;
5739 esac
5740 lt_cv_deplibs_check_method=pass_all
5741 ;;
5742
5743 # This must be glibc/ELF.
5744 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5745 lt_cv_deplibs_check_method=pass_all
5746 ;;
5747
5748 netbsd* | netbsdelf*-gnu)
5749 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5751 else
5752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5753 fi
5754 ;;
5755
5756 newos6*)
5757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5758 lt_cv_file_magic_cmd=/usr/bin/file
5759 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5760 ;;
5761
5762 *nto* | *qnx*)
5763 lt_cv_deplibs_check_method=pass_all
5764 ;;
5765
5766 openbsd* | bitrig*)
5767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5768 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5769 else
5770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5771 fi
5772 ;;
5773
5774 osf3* | osf4* | osf5*)
5775 lt_cv_deplibs_check_method=pass_all
5776 ;;
5777
5778 rdos*)
5779 lt_cv_deplibs_check_method=pass_all
5780 ;;
5781
5782 solaris*)
5783 lt_cv_deplibs_check_method=pass_all
5784 ;;
5785
5786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5787 lt_cv_deplibs_check_method=pass_all
5788 ;;
5789
5790 sysv4 | sysv4.3*)
5791 case $host_vendor in
5792 motorola)
5793 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]'
5794 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5795 ;;
5796 ncr)
5797 lt_cv_deplibs_check_method=pass_all
5798 ;;
5799 sequent)
5800 lt_cv_file_magic_cmd='/bin/file'
5801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5802 ;;
5803 sni)
5804 lt_cv_file_magic_cmd='/bin/file'
5805 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5806 lt_cv_file_magic_test_file=/lib/libc.so
5807 ;;
5808 siemens)
5809 lt_cv_deplibs_check_method=pass_all
5810 ;;
5811 pc)
5812 lt_cv_deplibs_check_method=pass_all
5813 ;;
5814 esac
5815 ;;
5816
5817 tpf*)
5818 lt_cv_deplibs_check_method=pass_all
5819 ;;
5820 os2*)
5821 lt_cv_deplibs_check_method=pass_all
5822 ;;
5823 esac
5824
5825 fi
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5827 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5828
5829 file_magic_glob=
5830 want_nocaseglob=no
5831 if test "$build" = "$host"; then
5832 case $host_os in
5833 mingw* | pw32*)
5834 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5835 want_nocaseglob=yes
5836 else
5837 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5838 fi
5839 ;;
5840 esac
5841 fi
5842
5843 file_magic_cmd=$lt_cv_file_magic_cmd
5844 deplibs_check_method=$lt_cv_deplibs_check_method
5845 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868 if test -n "$ac_tool_prefix"; then
5869 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5870 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if ${ac_cv_prog_DLLTOOL+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 if test -n "$DLLTOOL"; then
5877 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 break 2
5889 fi
5890 done
5891 done
5892 IFS=$as_save_IFS
5893
5894 fi
5895 fi
5896 DLLTOOL=$ac_cv_prog_DLLTOOL
5897 if test -n "$DLLTOOL"; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5899 $as_echo "$DLLTOOL" >&6; }
5900 else
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5903 fi
5904
5905
5906 fi
5907 if test -z "$ac_cv_prog_DLLTOOL"; then
5908 ac_ct_DLLTOOL=$DLLTOOL
5909 # Extract the first word of "dlltool", so it can be a program name with args.
5910 set dummy dlltool; ac_word=$2
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912 $as_echo_n "checking for $ac_word... " >&6; }
5913 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 if test -n "$ac_ct_DLLTOOL"; then
5917 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5918 else
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5921 do
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 break 2
5929 fi
5930 done
5931 done
5932 IFS=$as_save_IFS
5933
5934 fi
5935 fi
5936 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5937 if test -n "$ac_ct_DLLTOOL"; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5939 $as_echo "$ac_ct_DLLTOOL" >&6; }
5940 else
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5943 fi
5944
5945 if test "x$ac_ct_DLLTOOL" = x; then
5946 DLLTOOL="false"
5947 else
5948 case $cross_compiling:$ac_tool_warned in
5949 yes:)
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5952 ac_tool_warned=yes ;;
5953 esac
5954 DLLTOOL=$ac_ct_DLLTOOL
5955 fi
5956 else
5957 DLLTOOL="$ac_cv_prog_DLLTOOL"
5958 fi
5959
5960 test -z "$DLLTOOL" && DLLTOOL=dlltool
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5972 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5973 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 lt_cv_sharedlib_from_linklib_cmd='unknown'
5977
5978 case $host_os in
5979 cygwin* | mingw* | pw32* | cegcc*)
5980 # two different shell functions defined in ltmain.sh;
5981 # decide which one to use based on capabilities of $DLLTOOL
5982 case `$DLLTOOL --help 2>&1` in
5983 *--identify-strict*)
5984 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5985 ;;
5986 *)
5987 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5988 ;;
5989 esac
5990 ;;
5991 *)
5992 # fallback: assume linklib IS sharedlib
5993 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5994 ;;
5995 esac
5996
5997 fi
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5999 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6000 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6001 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6002
6003
6004
6005
6006
6007
6008
6009 if test -n "$ac_tool_prefix"; then
6010 for ac_prog in ar
6011 do
6012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if ${ac_cv_prog_AR+:} false; then :
6017 $as_echo_n "(cached) " >&6
6018 else
6019 if test -n "$AR"; then
6020 ac_cv_prog_AR="$AR" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6029 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 break 2
6032 fi
6033 done
6034 done
6035 IFS=$as_save_IFS
6036
6037 fi
6038 fi
6039 AR=$ac_cv_prog_AR
6040 if test -n "$AR"; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6042 $as_echo "$AR" >&6; }
6043 else
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }
6046 fi
6047
6048
6049 test -n "$AR" && break
6050 done
6051 fi
6052 if test -z "$AR"; then
6053 ac_ct_AR=$AR
6054 for ac_prog in ar
6055 do
6056 # Extract the first word of "$ac_prog", so it can be a program name with args.
6057 set dummy $ac_prog; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 if test -n "$ac_ct_AR"; then
6064 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_ac_ct_AR="$ac_prog"
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077 done
6078 done
6079 IFS=$as_save_IFS
6080
6081 fi
6082 fi
6083 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6084 if test -n "$ac_ct_AR"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6086 $as_echo "$ac_ct_AR" >&6; }
6087 else
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6090 fi
6091
6092
6093 test -n "$ac_ct_AR" && break
6094 done
6095
6096 if test "x$ac_ct_AR" = x; then
6097 AR="false"
6098 else
6099 case $cross_compiling:$ac_tool_warned in
6100 yes:)
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6103 ac_tool_warned=yes ;;
6104 esac
6105 AR=$ac_ct_AR
6106 fi
6107 fi
6108
6109 : ${AR=ar}
6110 : ${AR_FLAGS=cr}
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6123 $as_echo_n "checking for archiver @FILE support... " >&6; }
6124 if ${lt_cv_ar_at_file+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 lt_cv_ar_at_file=no
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h. */
6130
6131 int
6132 main ()
6133 {
6134
6135 ;
6136 return 0;
6137 }
6138 _ACEOF
6139 if ac_fn_c_try_compile "$LINENO"; then :
6140 echo conftest.$ac_objext > conftest.lst
6141 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6143 (eval $lt_ar_try) 2>&5
6144 ac_status=$?
6145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6146 test $ac_status = 0; }
6147 if test 0 -eq "$ac_status"; then
6148 # Ensure the archiver fails upon bogus file names.
6149 rm -f conftest.$ac_objext libconftest.a
6150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6151 (eval $lt_ar_try) 2>&5
6152 ac_status=$?
6153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154 test $ac_status = 0; }
6155 if test 0 -ne "$ac_status"; then
6156 lt_cv_ar_at_file=@
6157 fi
6158 fi
6159 rm -f conftest.* libconftest.a
6160
6161 fi
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163
6164 fi
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6166 $as_echo "$lt_cv_ar_at_file" >&6; }
6167
6168 if test no = "$lt_cv_ar_at_file"; then
6169 archiver_list_spec=
6170 else
6171 archiver_list_spec=$lt_cv_ar_at_file
6172 fi
6173
6174
6175
6176
6177
6178
6179
6180 if test -n "$ac_tool_prefix"; then
6181 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6182 set dummy ${ac_tool_prefix}strip; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_STRIP+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 if test -n "$STRIP"; then
6189 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6198 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 STRIP=$ac_cv_prog_STRIP
6209 if test -n "$STRIP"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6211 $as_echo "$STRIP" >&6; }
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217
6218 fi
6219 if test -z "$ac_cv_prog_STRIP"; then
6220 ac_ct_STRIP=$STRIP
6221 # Extract the first word of "strip", so it can be a program name with args.
6222 set dummy strip; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 if test -n "$ac_ct_STRIP"; then
6229 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238 ac_cv_prog_ac_ct_STRIP="strip"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242 done
6243 done
6244 IFS=$as_save_IFS
6245
6246 fi
6247 fi
6248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6249 if test -n "$ac_ct_STRIP"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6251 $as_echo "$ac_ct_STRIP" >&6; }
6252 else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256
6257 if test "x$ac_ct_STRIP" = x; then
6258 STRIP=":"
6259 else
6260 case $cross_compiling:$ac_tool_warned in
6261 yes:)
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264 ac_tool_warned=yes ;;
6265 esac
6266 STRIP=$ac_ct_STRIP
6267 fi
6268 else
6269 STRIP="$ac_cv_prog_STRIP"
6270 fi
6271
6272 test -z "$STRIP" && STRIP=:
6273
6274
6275
6276
6277
6278
6279 if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if ${ac_cv_prog_RANLIB+:} false; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 if test -n "$RANLIB"; then
6288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301 done
6302 done
6303 IFS=$as_save_IFS
6304
6305 fi
6306 fi
6307 RANLIB=$ac_cv_prog_RANLIB
6308 if test -n "$RANLIB"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6310 $as_echo "$RANLIB" >&6; }
6311 else
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6314 fi
6315
6316
6317 fi
6318 if test -z "$ac_cv_prog_RANLIB"; then
6319 ac_ct_RANLIB=$RANLIB
6320 # Extract the first word of "ranlib", so it can be a program name with args.
6321 set dummy ranlib; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 if test -n "$ac_ct_RANLIB"; then
6328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6332 do
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_ac_ct_RANLIB="ranlib"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6340 fi
6341 done
6342 done
6343 IFS=$as_save_IFS
6344
6345 fi
6346 fi
6347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6348 if test -n "$ac_ct_RANLIB"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6350 $as_echo "$ac_ct_RANLIB" >&6; }
6351 else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6354 fi
6355
6356 if test "x$ac_ct_RANLIB" = x; then
6357 RANLIB=":"
6358 else
6359 case $cross_compiling:$ac_tool_warned in
6360 yes:)
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363 ac_tool_warned=yes ;;
6364 esac
6365 RANLIB=$ac_ct_RANLIB
6366 fi
6367 else
6368 RANLIB="$ac_cv_prog_RANLIB"
6369 fi
6370
6371 test -z "$RANLIB" && RANLIB=:
6372
6373
6374
6375
6376
6377
6378 # Determine commands to create old-style static archives.
6379 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6380 old_postinstall_cmds='chmod 644 $oldlib'
6381 old_postuninstall_cmds=
6382
6383 if test -n "$RANLIB"; then
6384 case $host_os in
6385 bitrig* | openbsd*)
6386 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6387 ;;
6388 *)
6389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6390 ;;
6391 esac
6392 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6393 fi
6394
6395 case $host_os in
6396 darwin*)
6397 lock_old_archive_extraction=yes ;;
6398 *)
6399 lock_old_archive_extraction=no ;;
6400 esac
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440 # If no C compiler was specified, use CC.
6441 LTCC=${LTCC-"$CC"}
6442
6443 # If no C compiler flags were specified, use CFLAGS.
6444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6445
6446 # Allow CC to be a program name with arguments.
6447 compiler=$CC
6448
6449
6450 # Check for command to grab the raw symbol name followed by C symbol from nm.
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6452 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6453 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456
6457 # These are sane defaults that work on at least a few old systems.
6458 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6459
6460 # Character class describing NM global symbol codes.
6461 symcode='[BCDEGRST]'
6462
6463 # Regexp to match symbols that can be accessed directly from C.
6464 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6465
6466 # Define system-specific variables.
6467 case $host_os in
6468 aix*)
6469 symcode='[BCDT]'
6470 ;;
6471 cygwin* | mingw* | pw32* | cegcc*)
6472 symcode='[ABCDGISTW]'
6473 ;;
6474 hpux*)
6475 if test ia64 = "$host_cpu"; then
6476 symcode='[ABCDEGRST]'
6477 fi
6478 ;;
6479 irix* | nonstopux*)
6480 symcode='[BCDEGRST]'
6481 ;;
6482 osf*)
6483 symcode='[BCDEGQRST]'
6484 ;;
6485 solaris*)
6486 symcode='[BDRT]'
6487 ;;
6488 sco3.2v5*)
6489 symcode='[DT]'
6490 ;;
6491 sysv4.2uw2*)
6492 symcode='[DT]'
6493 ;;
6494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6495 symcode='[ABDT]'
6496 ;;
6497 sysv4)
6498 symcode='[DFNSTU]'
6499 ;;
6500 esac
6501
6502 # If we're using GNU nm, then use its standard symbol codes.
6503 case `$NM -V 2>&1` in
6504 *GNU* | *'with BFD'*)
6505 symcode='[ABCDGIRSTW]' ;;
6506 esac
6507
6508 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6509 # Gets list of data symbols to import.
6510 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6511 # Adjust the below global symbol transforms to fixup imported variables.
6512 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6513 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6514 lt_c_name_lib_hook="\
6515 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6516 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6517 else
6518 # Disable hooks by default.
6519 lt_cv_sys_global_symbol_to_import=
6520 lt_cdecl_hook=
6521 lt_c_name_hook=
6522 lt_c_name_lib_hook=
6523 fi
6524
6525 # Transform an extracted symbol line into a proper C declaration.
6526 # Some systems (esp. on ia64) link data and code symbols differently,
6527 # so use this general approach.
6528 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6529 $lt_cdecl_hook\
6530 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6531 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6532
6533 # Transform an extracted symbol line into symbol name and symbol address
6534 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6535 $lt_c_name_hook\
6536 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6537 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6538
6539 # Transform an extracted symbol line into symbol name with lib prefix and
6540 # symbol address.
6541 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6542 $lt_c_name_lib_hook\
6543 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6544 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6545 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6546
6547 # Handle CRLF in mingw tool chain
6548 opt_cr=
6549 case $build_os in
6550 mingw*)
6551 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6552 ;;
6553 esac
6554
6555 # Try without a prefix underscore, then with it.
6556 for ac_symprfx in "" "_"; do
6557
6558 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6559 symxfrm="\\1 $ac_symprfx\\2 \\2"
6560
6561 # Write the raw and C identifiers.
6562 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6563 # Fake it for dumpbin and say T for any non-static function,
6564 # D for any global variable and I for any imported variable.
6565 # Also find C++ and __fastcall symbols from MSVC++,
6566 # which start with @ or ?.
6567 lt_cv_sys_global_symbol_pipe="$AWK '"\
6568 " {last_section=section; section=\$ 3};"\
6569 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6570 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6571 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6572 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6573 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6574 " \$ 0!~/External *\|/{next};"\
6575 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6576 " {if(hide[section]) next};"\
6577 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6578 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6579 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6580 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6581 " ' prfx=^$ac_symprfx"
6582 else
6583 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6584 fi
6585 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6586
6587 # Check to see that the pipe works correctly.
6588 pipe_works=no
6589
6590 rm -f conftest*
6591 cat > conftest.$ac_ext <<_LT_EOF
6592 #ifdef __cplusplus
6593 extern "C" {
6594 #endif
6595 char nm_test_var;
6596 void nm_test_func(void);
6597 void nm_test_func(void){}
6598 #ifdef __cplusplus
6599 }
6600 #endif
6601 int main(){nm_test_var='a';nm_test_func();return(0);}
6602 _LT_EOF
6603
6604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6605 (eval $ac_compile) 2>&5
6606 ac_status=$?
6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608 test $ac_status = 0; }; then
6609 # Now try to grab the symbols.
6610 nlist=conftest.nm
6611 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6612 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6613 # Try sorting and uniquifying the output.
6614 if sort "$nlist" | uniq > "$nlist"T; then
6615 mv -f "$nlist"T "$nlist"
6616 else
6617 rm -f "$nlist"T
6618 fi
6619
6620 # Make sure that we snagged all the symbols we need.
6621 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6622 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6623 cat <<_LT_EOF > conftest.$ac_ext
6624 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6625 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6626 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6627 relocations are performed -- see ld's documentation on pseudo-relocs. */
6628 # define LT_DLSYM_CONST
6629 #elif defined __osf__
6630 /* This system does not cope well with relocations in const data. */
6631 # define LT_DLSYM_CONST
6632 #else
6633 # define LT_DLSYM_CONST const
6634 #endif
6635
6636 #ifdef __cplusplus
6637 extern "C" {
6638 #endif
6639
6640 _LT_EOF
6641 # Now generate the symbol file.
6642 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6643
6644 cat <<_LT_EOF >> conftest.$ac_ext
6645
6646 /* The mapping between symbol names and symbols. */
6647 LT_DLSYM_CONST struct {
6648 const char *name;
6649 void *address;
6650 }
6651 lt__PROGRAM__LTX_preloaded_symbols[] =
6652 {
6653 { "@PROGRAM@", (void *) 0 },
6654 _LT_EOF
6655 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6656 cat <<\_LT_EOF >> conftest.$ac_ext
6657 {0, (void *) 0}
6658 };
6659
6660 /* This works around a problem in FreeBSD linker */
6661 #ifdef FREEBSD_WORKAROUND
6662 static const void *lt_preloaded_setup() {
6663 return lt__PROGRAM__LTX_preloaded_symbols;
6664 }
6665 #endif
6666
6667 #ifdef __cplusplus
6668 }
6669 #endif
6670 _LT_EOF
6671 # Now try linking the two files.
6672 mv conftest.$ac_objext conftstm.$ac_objext
6673 lt_globsym_save_LIBS=$LIBS
6674 lt_globsym_save_CFLAGS=$CFLAGS
6675 LIBS=conftstm.$ac_objext
6676 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6678 (eval $ac_link) 2>&5
6679 ac_status=$?
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6682 pipe_works=yes
6683 fi
6684 LIBS=$lt_globsym_save_LIBS
6685 CFLAGS=$lt_globsym_save_CFLAGS
6686 else
6687 echo "cannot find nm_test_func in $nlist" >&5
6688 fi
6689 else
6690 echo "cannot find nm_test_var in $nlist" >&5
6691 fi
6692 else
6693 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6694 fi
6695 else
6696 echo "$progname: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6698 fi
6699 rm -rf conftest* conftst*
6700
6701 # Do not use the global_symbol_pipe unless it works.
6702 if test yes = "$pipe_works"; then
6703 break
6704 else
6705 lt_cv_sys_global_symbol_pipe=
6706 fi
6707 done
6708
6709 fi
6710
6711 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6712 lt_cv_sys_global_symbol_to_cdecl=
6713 fi
6714 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6716 $as_echo "failed" >&6; }
6717 else
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6719 $as_echo "ok" >&6; }
6720 fi
6721
6722 # Response file support.
6723 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6724 nm_file_list_spec='@'
6725 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6726 nm_file_list_spec='@'
6727 fi
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6766 $as_echo_n "checking for sysroot... " >&6; }
6767
6768 # Check whether --with-sysroot was given.
6769 if test "${with_sysroot+set}" = set; then :
6770 withval=$with_sysroot;
6771 else
6772 with_sysroot=no
6773 fi
6774
6775
6776 lt_sysroot=
6777 case $with_sysroot in #(
6778 yes)
6779 if test yes = "$GCC"; then
6780 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6781 fi
6782 ;; #(
6783 /*)
6784 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6785 ;; #(
6786 no|'')
6787 ;; #(
6788 *)
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6790 $as_echo "$with_sysroot" >&6; }
6791 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6792 ;;
6793 esac
6794
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6796 $as_echo "${lt_sysroot:-no}" >&6; }
6797
6798
6799
6800
6801
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6803 $as_echo_n "checking for a working dd... " >&6; }
6804 if ${ac_cv_path_lt_DD+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 printf 0123456789abcdef0123456789abcdef >conftest.i
6808 cat conftest.i conftest.i >conftest2.i
6809 : ${lt_DD:=$DD}
6810 if test -z "$lt_DD"; then
6811 ac_path_lt_DD_found=false
6812 # Loop through the user's path and test for each of PROGNAME-LIST
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6815 do
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_prog in dd; do
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6821 as_fn_executable_p "$ac_path_lt_DD" || continue
6822 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6823 cmp -s conftest.i conftest.out \
6824 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6825 fi
6826 $ac_path_lt_DD_found && break 3
6827 done
6828 done
6829 done
6830 IFS=$as_save_IFS
6831 if test -z "$ac_cv_path_lt_DD"; then
6832 :
6833 fi
6834 else
6835 ac_cv_path_lt_DD=$lt_DD
6836 fi
6837
6838 rm -f conftest.i conftest2.i conftest.out
6839 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6841 $as_echo "$ac_cv_path_lt_DD" >&6; }
6842
6843
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6845 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6846 if ${lt_cv_truncate_bin+:} false; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 printf 0123456789abcdef0123456789abcdef >conftest.i
6850 cat conftest.i conftest.i >conftest2.i
6851 lt_cv_truncate_bin=
6852 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6853 cmp -s conftest.i conftest.out \
6854 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6855 fi
6856 rm -f conftest.i conftest2.i conftest.out
6857 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6858 fi
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6860 $as_echo "$lt_cv_truncate_bin" >&6; }
6861
6862
6863
6864
6865
6866
6867
6868 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6869 func_cc_basename ()
6870 {
6871 for cc_temp in $*""; do
6872 case $cc_temp in
6873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6875 \-*) ;;
6876 *) break;;
6877 esac
6878 done
6879 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6880 }
6881
6882 # Check whether --enable-libtool-lock was given.
6883 if test "${enable_libtool_lock+set}" = set; then :
6884 enableval=$enable_libtool_lock;
6885 fi
6886
6887 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6888
6889 # Some flags need to be propagated to the compiler or linker for good
6890 # libtool support.
6891 case $host in
6892 ia64-*-hpux*)
6893 # Find out what ABI is being produced by ac_compile, and set mode
6894 # options accordingly.
6895 echo 'int i;' > conftest.$ac_ext
6896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6897 (eval $ac_compile) 2>&5
6898 ac_status=$?
6899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6900 test $ac_status = 0; }; then
6901 case `/usr/bin/file conftest.$ac_objext` in
6902 *ELF-32*)
6903 HPUX_IA64_MODE=32
6904 ;;
6905 *ELF-64*)
6906 HPUX_IA64_MODE=64
6907 ;;
6908 esac
6909 fi
6910 rm -rf conftest*
6911 ;;
6912 *-*-irix6*)
6913 # Find out what ABI is being produced by ac_compile, and set linker
6914 # options accordingly.
6915 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6917 (eval $ac_compile) 2>&5
6918 ac_status=$?
6919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6920 test $ac_status = 0; }; then
6921 if test yes = "$lt_cv_prog_gnu_ld"; then
6922 case `/usr/bin/file conftest.$ac_objext` in
6923 *32-bit*)
6924 LD="${LD-ld} -melf32bsmip"
6925 ;;
6926 *N32*)
6927 LD="${LD-ld} -melf32bmipn32"
6928 ;;
6929 *64-bit*)
6930 LD="${LD-ld} -melf64bmip"
6931 ;;
6932 esac
6933 else
6934 case `/usr/bin/file conftest.$ac_objext` in
6935 *32-bit*)
6936 LD="${LD-ld} -32"
6937 ;;
6938 *N32*)
6939 LD="${LD-ld} -n32"
6940 ;;
6941 *64-bit*)
6942 LD="${LD-ld} -64"
6943 ;;
6944 esac
6945 fi
6946 fi
6947 rm -rf conftest*
6948 ;;
6949
6950 mips64*-*linux*)
6951 # Find out what ABI is being produced by ac_compile, and set linker
6952 # options accordingly.
6953 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6955 (eval $ac_compile) 2>&5
6956 ac_status=$?
6957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6958 test $ac_status = 0; }; then
6959 emul=elf
6960 case `/usr/bin/file conftest.$ac_objext` in
6961 *32-bit*)
6962 emul="${emul}32"
6963 ;;
6964 *64-bit*)
6965 emul="${emul}64"
6966 ;;
6967 esac
6968 case `/usr/bin/file conftest.$ac_objext` in
6969 *MSB*)
6970 emul="${emul}btsmip"
6971 ;;
6972 *LSB*)
6973 emul="${emul}ltsmip"
6974 ;;
6975 esac
6976 case `/usr/bin/file conftest.$ac_objext` in
6977 *N32*)
6978 emul="${emul}n32"
6979 ;;
6980 esac
6981 LD="${LD-ld} -m $emul"
6982 fi
6983 rm -rf conftest*
6984 ;;
6985
6986 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6987 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6988 # Find out what ABI is being produced by ac_compile, and set linker
6989 # options accordingly. Note that the listed cases only cover the
6990 # situations where additional linker options are needed (such as when
6991 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6992 # vice versa); the common cases where no linker options are needed do
6993 # not appear in the list.
6994 echo 'int i;' > conftest.$ac_ext
6995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6996 (eval $ac_compile) 2>&5
6997 ac_status=$?
6998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6999 test $ac_status = 0; }; then
7000 case `/usr/bin/file conftest.o` in
7001 *32-bit*)
7002 case $host in
7003 x86_64-*kfreebsd*-gnu)
7004 LD="${LD-ld} -m elf_i386_fbsd"
7005 ;;
7006 x86_64-*linux*)
7007 case `/usr/bin/file conftest.o` in
7008 *x86-64*)
7009 LD="${LD-ld} -m elf32_x86_64"
7010 ;;
7011 *)
7012 LD="${LD-ld} -m elf_i386"
7013 ;;
7014 esac
7015 ;;
7016 powerpc64le-*linux*)
7017 LD="${LD-ld} -m elf32lppclinux"
7018 ;;
7019 powerpc64-*linux*)
7020 LD="${LD-ld} -m elf32ppclinux"
7021 ;;
7022 s390x-*linux*)
7023 LD="${LD-ld} -m elf_s390"
7024 ;;
7025 sparc64-*linux*)
7026 LD="${LD-ld} -m elf32_sparc"
7027 ;;
7028 esac
7029 ;;
7030 *64-bit*)
7031 case $host in
7032 x86_64-*kfreebsd*-gnu)
7033 LD="${LD-ld} -m elf_x86_64_fbsd"
7034 ;;
7035 x86_64-*linux*)
7036 LD="${LD-ld} -m elf_x86_64"
7037 ;;
7038 powerpcle-*linux*)
7039 LD="${LD-ld} -m elf64lppc"
7040 ;;
7041 powerpc-*linux*)
7042 LD="${LD-ld} -m elf64ppc"
7043 ;;
7044 s390*-*linux*|s390*-*tpf*)
7045 LD="${LD-ld} -m elf64_s390"
7046 ;;
7047 sparc*-*linux*)
7048 LD="${LD-ld} -m elf64_sparc"
7049 ;;
7050 esac
7051 ;;
7052 esac
7053 fi
7054 rm -rf conftest*
7055 ;;
7056
7057 *-*-sco3.2v5*)
7058 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7059 SAVE_CFLAGS=$CFLAGS
7060 CFLAGS="$CFLAGS -belf"
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7062 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7063 if ${lt_cv_cc_needs_belf+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 ac_ext=c
7067 ac_cpp='$CPP $CPPFLAGS'
7068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7071
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074
7075 int
7076 main ()
7077 {
7078
7079 ;
7080 return 0;
7081 }
7082 _ACEOF
7083 if ac_fn_c_try_link "$LINENO"; then :
7084 lt_cv_cc_needs_belf=yes
7085 else
7086 lt_cv_cc_needs_belf=no
7087 fi
7088 rm -f core conftest.err conftest.$ac_objext \
7089 conftest$ac_exeext conftest.$ac_ext
7090 ac_ext=c
7091 ac_cpp='$CPP $CPPFLAGS'
7092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7095
7096 fi
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7098 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7099 if test yes != "$lt_cv_cc_needs_belf"; then
7100 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7101 CFLAGS=$SAVE_CFLAGS
7102 fi
7103 ;;
7104 *-*solaris*)
7105 # Find out what ABI is being produced by ac_compile, and set linker
7106 # options accordingly.
7107 echo 'int i;' > conftest.$ac_ext
7108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7109 (eval $ac_compile) 2>&5
7110 ac_status=$?
7111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7112 test $ac_status = 0; }; then
7113 case `/usr/bin/file conftest.o` in
7114 *64-bit*)
7115 case $lt_cv_prog_gnu_ld in
7116 yes*)
7117 case $host in
7118 i?86-*-solaris*|x86_64-*-solaris*)
7119 LD="${LD-ld} -m elf_x86_64"
7120 ;;
7121 sparc*-*-solaris*)
7122 LD="${LD-ld} -m elf64_sparc"
7123 ;;
7124 esac
7125 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7126 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7127 LD=${LD-ld}_sol2
7128 fi
7129 ;;
7130 *)
7131 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7132 LD="${LD-ld} -64"
7133 fi
7134 ;;
7135 esac
7136 ;;
7137 esac
7138 fi
7139 rm -rf conftest*
7140 ;;
7141 esac
7142
7143 need_locks=$enable_libtool_lock
7144
7145 if test -n "$ac_tool_prefix"; then
7146 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}mt; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 if test -n "$MANIFEST_TOOL"; then
7154 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167 done
7168 done
7169 IFS=$as_save_IFS
7170
7171 fi
7172 fi
7173 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7174 if test -n "$MANIFEST_TOOL"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7176 $as_echo "$MANIFEST_TOOL" >&6; }
7177 else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7181
7182
7183 fi
7184 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7185 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7186 # Extract the first word of "mt", so it can be a program name with args.
7187 set dummy mt; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 if test -n "$ac_ct_MANIFEST_TOOL"; then
7194 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207 done
7208 done
7209 IFS=$as_save_IFS
7210
7211 fi
7212 fi
7213 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7214 if test -n "$ac_ct_MANIFEST_TOOL"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7216 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7217 else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7220 fi
7221
7222 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7223 MANIFEST_TOOL=":"
7224 else
7225 case $cross_compiling:$ac_tool_warned in
7226 yes:)
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229 ac_tool_warned=yes ;;
7230 esac
7231 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7232 fi
7233 else
7234 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7235 fi
7236
7237 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7239 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7240 if ${lt_cv_path_mainfest_tool+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 lt_cv_path_mainfest_tool=no
7244 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7245 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7246 cat conftest.err >&5
7247 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7248 lt_cv_path_mainfest_tool=yes
7249 fi
7250 rm -f conftest*
7251 fi
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7253 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7254 if test yes != "$lt_cv_path_mainfest_tool"; then
7255 MANIFEST_TOOL=:
7256 fi
7257
7258
7259
7260
7261
7262
7263 case $host_os in
7264 rhapsody* | darwin*)
7265 if test -n "$ac_tool_prefix"; then
7266 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7267 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273 if test -n "$DSYMUTIL"; then
7274 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7275 else
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7286 fi
7287 done
7288 done
7289 IFS=$as_save_IFS
7290
7291 fi
7292 fi
7293 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7294 if test -n "$DSYMUTIL"; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7296 $as_echo "$DSYMUTIL" >&6; }
7297 else
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7300 fi
7301
7302
7303 fi
7304 if test -z "$ac_cv_prog_DSYMUTIL"; then
7305 ac_ct_DSYMUTIL=$DSYMUTIL
7306 # Extract the first word of "dsymutil", so it can be a program name with args.
7307 set dummy dsymutil; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 if test -n "$ac_ct_DSYMUTIL"; then
7314 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7315 else
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7318 do
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 break 2
7326 fi
7327 done
7328 done
7329 IFS=$as_save_IFS
7330
7331 fi
7332 fi
7333 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7334 if test -n "$ac_ct_DSYMUTIL"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7336 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7337 else
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7340 fi
7341
7342 if test "x$ac_ct_DSYMUTIL" = x; then
7343 DSYMUTIL=":"
7344 else
7345 case $cross_compiling:$ac_tool_warned in
7346 yes:)
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7349 ac_tool_warned=yes ;;
7350 esac
7351 DSYMUTIL=$ac_ct_DSYMUTIL
7352 fi
7353 else
7354 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7355 fi
7356
7357 if test -n "$ac_tool_prefix"; then
7358 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7359 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if ${ac_cv_prog_NMEDIT+:} false; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365 if test -n "$NMEDIT"; then
7366 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7378 fi
7379 done
7380 done
7381 IFS=$as_save_IFS
7382
7383 fi
7384 fi
7385 NMEDIT=$ac_cv_prog_NMEDIT
7386 if test -n "$NMEDIT"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7388 $as_echo "$NMEDIT" >&6; }
7389 else
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7392 fi
7393
7394
7395 fi
7396 if test -z "$ac_cv_prog_NMEDIT"; then
7397 ac_ct_NMEDIT=$NMEDIT
7398 # Extract the first word of "nmedit", so it can be a program name with args.
7399 set dummy nmedit; ac_word=$2
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401 $as_echo_n "checking for $ac_word... " >&6; }
7402 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7403 $as_echo_n "(cached) " >&6
7404 else
7405 if test -n "$ac_ct_NMEDIT"; then
7406 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7407 else
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 for as_dir in $PATH
7410 do
7411 IFS=$as_save_IFS
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7415 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 break 2
7418 fi
7419 done
7420 done
7421 IFS=$as_save_IFS
7422
7423 fi
7424 fi
7425 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7426 if test -n "$ac_ct_NMEDIT"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7428 $as_echo "$ac_ct_NMEDIT" >&6; }
7429 else
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7432 fi
7433
7434 if test "x$ac_ct_NMEDIT" = x; then
7435 NMEDIT=":"
7436 else
7437 case $cross_compiling:$ac_tool_warned in
7438 yes:)
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7441 ac_tool_warned=yes ;;
7442 esac
7443 NMEDIT=$ac_ct_NMEDIT
7444 fi
7445 else
7446 NMEDIT="$ac_cv_prog_NMEDIT"
7447 fi
7448
7449 if test -n "$ac_tool_prefix"; then
7450 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7451 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_LIPO+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 if test -n "$LIPO"; then
7458 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463 IFS=$as_save_IFS
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 break 2
7470 fi
7471 done
7472 done
7473 IFS=$as_save_IFS
7474
7475 fi
7476 fi
7477 LIPO=$ac_cv_prog_LIPO
7478 if test -n "$LIPO"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7480 $as_echo "$LIPO" >&6; }
7481 else
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484 fi
7485
7486
7487 fi
7488 if test -z "$ac_cv_prog_LIPO"; then
7489 ac_ct_LIPO=$LIPO
7490 # Extract the first word of "lipo", so it can be a program name with args.
7491 set dummy lipo; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 if test -n "$ac_ct_LIPO"; then
7498 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507 ac_cv_prog_ac_ct_LIPO="lipo"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7510 fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515 fi
7516 fi
7517 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7518 if test -n "$ac_ct_LIPO"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7520 $as_echo "$ac_ct_LIPO" >&6; }
7521 else
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7524 fi
7525
7526 if test "x$ac_ct_LIPO" = x; then
7527 LIPO=":"
7528 else
7529 case $cross_compiling:$ac_tool_warned in
7530 yes:)
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7533 ac_tool_warned=yes ;;
7534 esac
7535 LIPO=$ac_ct_LIPO
7536 fi
7537 else
7538 LIPO="$ac_cv_prog_LIPO"
7539 fi
7540
7541 if test -n "$ac_tool_prefix"; then
7542 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7543 set dummy ${ac_tool_prefix}otool; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_prog_OTOOL+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 if test -n "$OTOOL"; then
7550 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7562 fi
7563 done
7564 done
7565 IFS=$as_save_IFS
7566
7567 fi
7568 fi
7569 OTOOL=$ac_cv_prog_OTOOL
7570 if test -n "$OTOOL"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7572 $as_echo "$OTOOL" >&6; }
7573 else
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7576 fi
7577
7578
7579 fi
7580 if test -z "$ac_cv_prog_OTOOL"; then
7581 ac_ct_OTOOL=$OTOOL
7582 # Extract the first word of "otool", so it can be a program name with args.
7583 set dummy otool; ac_word=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 if test -n "$ac_ct_OTOOL"; then
7590 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7591 else
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7594 do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_prog_ac_ct_OTOOL="otool"
7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603 done
7604 done
7605 IFS=$as_save_IFS
7606
7607 fi
7608 fi
7609 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7610 if test -n "$ac_ct_OTOOL"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7612 $as_echo "$ac_ct_OTOOL" >&6; }
7613 else
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7616 fi
7617
7618 if test "x$ac_ct_OTOOL" = x; then
7619 OTOOL=":"
7620 else
7621 case $cross_compiling:$ac_tool_warned in
7622 yes:)
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7625 ac_tool_warned=yes ;;
7626 esac
7627 OTOOL=$ac_ct_OTOOL
7628 fi
7629 else
7630 OTOOL="$ac_cv_prog_OTOOL"
7631 fi
7632
7633 if test -n "$ac_tool_prefix"; then
7634 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if ${ac_cv_prog_OTOOL64+:} false; then :
7639 $as_echo_n "(cached) " >&6
7640 else
7641 if test -n "$OTOOL64"; then
7642 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7643 else
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 break 2
7654 fi
7655 done
7656 done
7657 IFS=$as_save_IFS
7658
7659 fi
7660 fi
7661 OTOOL64=$ac_cv_prog_OTOOL64
7662 if test -n "$OTOOL64"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7664 $as_echo "$OTOOL64" >&6; }
7665 else
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7668 fi
7669
7670
7671 fi
7672 if test -z "$ac_cv_prog_OTOOL64"; then
7673 ac_ct_OTOOL64=$OTOOL64
7674 # Extract the first word of "otool64", so it can be a program name with args.
7675 set dummy otool64; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 if test -n "$ac_ct_OTOOL64"; then
7682 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691 ac_cv_prog_ac_ct_OTOOL64="otool64"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 break 2
7694 fi
7695 done
7696 done
7697 IFS=$as_save_IFS
7698
7699 fi
7700 fi
7701 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7702 if test -n "$ac_ct_OTOOL64"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7704 $as_echo "$ac_ct_OTOOL64" >&6; }
7705 else
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7708 fi
7709
7710 if test "x$ac_ct_OTOOL64" = x; then
7711 OTOOL64=":"
7712 else
7713 case $cross_compiling:$ac_tool_warned in
7714 yes:)
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7718 esac
7719 OTOOL64=$ac_ct_OTOOL64
7720 fi
7721 else
7722 OTOOL64="$ac_cv_prog_OTOOL64"
7723 fi
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7752 $as_echo_n "checking for -single_module linker flag... " >&6; }
7753 if ${lt_cv_apple_cc_single_mod+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 lt_cv_apple_cc_single_mod=no
7757 if test -z "$LT_MULTI_MODULE"; then
7758 # By default we will add the -single_module flag. You can override
7759 # by either setting the environment variable LT_MULTI_MODULE
7760 # non-empty at configure time, or by adding -multi_module to the
7761 # link flags.
7762 rm -rf libconftest.dylib*
7763 echo "int foo(void){return 1;}" > conftest.c
7764 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7765 -dynamiclib -Wl,-single_module conftest.c" >&5
7766 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7767 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7768 _lt_result=$?
7769 # If there is a non-empty error log, and "single_module"
7770 # appears in it, assume the flag caused a linker warning
7771 if test -s conftest.err && $GREP single_module conftest.err; then
7772 cat conftest.err >&5
7773 # Otherwise, if the output was created with a 0 exit code from
7774 # the compiler, it worked.
7775 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7776 lt_cv_apple_cc_single_mod=yes
7777 else
7778 cat conftest.err >&5
7779 fi
7780 rm -rf libconftest.dylib*
7781 rm -f conftest.*
7782 fi
7783 fi
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7785 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7786
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7788 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7789 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 lt_cv_ld_exported_symbols_list=no
7793 save_LDFLAGS=$LDFLAGS
7794 echo "_main" > conftest.sym
7795 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7798
7799 int
7800 main ()
7801 {
7802
7803 ;
7804 return 0;
7805 }
7806 _ACEOF
7807 if ac_fn_c_try_link "$LINENO"; then :
7808 lt_cv_ld_exported_symbols_list=yes
7809 else
7810 lt_cv_ld_exported_symbols_list=no
7811 fi
7812 rm -f core conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7814 LDFLAGS=$save_LDFLAGS
7815
7816 fi
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7818 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7819
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7821 $as_echo_n "checking for -force_load linker flag... " >&6; }
7822 if ${lt_cv_ld_force_load+:} false; then :
7823 $as_echo_n "(cached) " >&6
7824 else
7825 lt_cv_ld_force_load=no
7826 cat > conftest.c << _LT_EOF
7827 int forced_loaded() { return 2;}
7828 _LT_EOF
7829 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7830 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7831 echo "$AR cr libconftest.a conftest.o" >&5
7832 $AR cr libconftest.a conftest.o 2>&5
7833 echo "$RANLIB libconftest.a" >&5
7834 $RANLIB libconftest.a 2>&5
7835 cat > conftest.c << _LT_EOF
7836 int main() { return 0;}
7837 _LT_EOF
7838 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7839 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7840 _lt_result=$?
7841 if test -s conftest.err && $GREP force_load conftest.err; then
7842 cat conftest.err >&5
7843 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7844 lt_cv_ld_force_load=yes
7845 else
7846 cat conftest.err >&5
7847 fi
7848 rm -f conftest.err libconftest.a conftest conftest.c
7849 rm -rf conftest.dSYM
7850
7851 fi
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7853 $as_echo "$lt_cv_ld_force_load" >&6; }
7854 case $host_os in
7855 rhapsody* | darwin1.[012])
7856 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7857 darwin1.*)
7858 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7859 darwin*) # darwin 5.x on
7860 # if running on 10.5 or later, the deployment target defaults
7861 # to the OS version, if on x86, and 10.4, the deployment
7862 # target defaults to 10.4. Don't you love it?
7863 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7864 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7865 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7866 10.[012][,.]*)
7867 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7868 10.*)
7869 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7870 esac
7871 ;;
7872 esac
7873 if test yes = "$lt_cv_apple_cc_single_mod"; then
7874 _lt_dar_single_mod='$single_module'
7875 fi
7876 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7877 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7878 else
7879 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7880 fi
7881 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7882 _lt_dsymutil='~$DSYMUTIL $lib || :'
7883 else
7884 _lt_dsymutil=
7885 fi
7886 ;;
7887 esac
7888
7889 # func_munge_path_list VARIABLE PATH
7890 # -----------------------------------
7891 # VARIABLE is name of variable containing _space_ separated list of
7892 # directories to be munged by the contents of PATH, which is string
7893 # having a format:
7894 # "DIR[:DIR]:"
7895 # string "DIR[ DIR]" will be prepended to VARIABLE
7896 # ":DIR[:DIR]"
7897 # string "DIR[ DIR]" will be appended to VARIABLE
7898 # "DIRP[:DIRP]::[DIRA:]DIRA"
7899 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7900 # "DIRA[ DIRA]" will be appended to VARIABLE
7901 # "DIR[:DIR]"
7902 # VARIABLE will be replaced by "DIR[ DIR]"
7903 func_munge_path_list ()
7904 {
7905 case x$2 in
7906 x)
7907 ;;
7908 *:)
7909 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7910 ;;
7911 x:*)
7912 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7913 ;;
7914 *::*)
7915 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7916 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7917 ;;
7918 *)
7919 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7920 ;;
7921 esac
7922 }
7923
7924 for ac_header in dlfcn.h
7925 do :
7926 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7927 "
7928 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7929 cat >>confdefs.h <<_ACEOF
7930 #define HAVE_DLFCN_H 1
7931 _ACEOF
7932
7933 fi
7934
7935 done
7936
7937
7938
7939
7940
7941 # Set options
7942
7943
7944
7945 enable_dlopen=no
7946
7947
7948 enable_win32_dll=no
7949
7950
7951 # Check whether --enable-shared was given.
7952 if test "${enable_shared+set}" = set; then :
7953 enableval=$enable_shared; p=${PACKAGE-default}
7954 case $enableval in
7955 yes) enable_shared=yes ;;
7956 no) enable_shared=no ;;
7957 *)
7958 enable_shared=no
7959 # Look at the argument we got. We use all the common list separators.
7960 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7961 for pkg in $enableval; do
7962 IFS=$lt_save_ifs
7963 if test "X$pkg" = "X$p"; then
7964 enable_shared=yes
7965 fi
7966 done
7967 IFS=$lt_save_ifs
7968 ;;
7969 esac
7970 else
7971 enable_shared=yes
7972 fi
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984 # Check whether --with-pic was given.
7985 if test "${with_pic+set}" = set; then :
7986 withval=$with_pic; lt_p=${PACKAGE-default}
7987 case $withval in
7988 yes|no) pic_mode=$withval ;;
7989 *)
7990 pic_mode=default
7991 # Look at the argument we got. We use all the common list separators.
7992 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7993 for lt_pkg in $withval; do
7994 IFS=$lt_save_ifs
7995 if test "X$lt_pkg" = "X$lt_p"; then
7996 pic_mode=yes
7997 fi
7998 done
7999 IFS=$lt_save_ifs
8000 ;;
8001 esac
8002 else
8003 pic_mode=default
8004 fi
8005
8006
8007
8008
8009
8010
8011
8012
8013 # Check whether --enable-fast-install was given.
8014 if test "${enable_fast_install+set}" = set; then :
8015 enableval=$enable_fast_install; p=${PACKAGE-default}
8016 case $enableval in
8017 yes) enable_fast_install=yes ;;
8018 no) enable_fast_install=no ;;
8019 *)
8020 enable_fast_install=no
8021 # Look at the argument we got. We use all the common list separators.
8022 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8023 for pkg in $enableval; do
8024 IFS=$lt_save_ifs
8025 if test "X$pkg" = "X$p"; then
8026 enable_fast_install=yes
8027 fi
8028 done
8029 IFS=$lt_save_ifs
8030 ;;
8031 esac
8032 else
8033 enable_fast_install=yes
8034 fi
8035
8036
8037
8038
8039
8040
8041
8042
8043 shared_archive_member_spec=
8044 case $host,$enable_shared in
8045 power*-*-aix[5-9]*,yes)
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8047 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8048
8049 # Check whether --with-aix-soname was given.
8050 if test "${with_aix_soname+set}" = set; then :
8051 withval=$with_aix_soname; case $withval in
8052 aix|svr4|both)
8053 ;;
8054 *)
8055 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8056 ;;
8057 esac
8058 lt_cv_with_aix_soname=$with_aix_soname
8059 else
8060 if ${lt_cv_with_aix_soname+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 lt_cv_with_aix_soname=aix
8064 fi
8065
8066 with_aix_soname=$lt_cv_with_aix_soname
8067 fi
8068
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8070 $as_echo "$with_aix_soname" >&6; }
8071 if test aix != "$with_aix_soname"; then
8072 # For the AIX way of multilib, we name the shared archive member
8073 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8074 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8075 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8076 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8077 if test 64 = "${OBJECT_MODE-32}"; then
8078 shared_archive_member_spec=shr_64
8079 else
8080 shared_archive_member_spec=shr
8081 fi
8082 fi
8083 ;;
8084 *)
8085 with_aix_soname=aix
8086 ;;
8087 esac
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098 # This can be used to rebuild libtool when needed
8099 LIBTOOL_DEPS=$ltmain
8100
8101 # Always use our own libtool.
8102 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133 test -z "$LN_S" && LN_S="ln -s"
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148 if test -n "${ZSH_VERSION+set}"; then
8149 setopt NO_GLOB_SUBST
8150 fi
8151
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8153 $as_echo_n "checking for objdir... " >&6; }
8154 if ${lt_cv_objdir+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 rm -f .libs 2>/dev/null
8158 mkdir .libs 2>/dev/null
8159 if test -d .libs; then
8160 lt_cv_objdir=.libs
8161 else
8162 # MS-DOS does not allow filenames that begin with a dot.
8163 lt_cv_objdir=_libs
8164 fi
8165 rmdir .libs 2>/dev/null
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8168 $as_echo "$lt_cv_objdir" >&6; }
8169 objdir=$lt_cv_objdir
8170
8171
8172
8173
8174
8175 cat >>confdefs.h <<_ACEOF
8176 #define LT_OBJDIR "$lt_cv_objdir/"
8177 _ACEOF
8178
8179
8180
8181
8182 case $host_os in
8183 aix3*)
8184 # AIX sometimes has problems with the GCC collect2 program. For some
8185 # reason, if we set the COLLECT_NAMES environment variable, the problems
8186 # vanish in a puff of smoke.
8187 if test set != "${COLLECT_NAMES+set}"; then
8188 COLLECT_NAMES=
8189 export COLLECT_NAMES
8190 fi
8191 ;;
8192 esac
8193
8194 # Global variables:
8195 ofile=libtool
8196 can_build_shared=yes
8197
8198 # All known linkers require a '.a' archive for static linking (except MSVC,
8199 # which needs '.lib').
8200 libext=a
8201
8202 with_gnu_ld=$lt_cv_prog_gnu_ld
8203
8204 old_CC=$CC
8205 old_CFLAGS=$CFLAGS
8206
8207 # Set sane defaults for various variables
8208 test -z "$CC" && CC=cc
8209 test -z "$LTCC" && LTCC=$CC
8210 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8211 test -z "$LD" && LD=ld
8212 test -z "$ac_objext" && ac_objext=o
8213
8214 func_cc_basename $compiler
8215 cc_basename=$func_cc_basename_result
8216
8217
8218 # Only perform the check for file, if the check method requires it
8219 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8220 case $deplibs_check_method in
8221 file_magic*)
8222 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8224 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8225 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 case $MAGIC_CMD in
8229 [\\/*] | ?:[\\/]*)
8230 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8231 ;;
8232 *)
8233 lt_save_MAGIC_CMD=$MAGIC_CMD
8234 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8235 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8236 for ac_dir in $ac_dummy; do
8237 IFS=$lt_save_ifs
8238 test -z "$ac_dir" && ac_dir=.
8239 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8240 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8241 if test -n "$file_magic_test_file"; then
8242 case $deplibs_check_method in
8243 "file_magic "*)
8244 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8245 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8246 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8247 $EGREP "$file_magic_regex" > /dev/null; then
8248 :
8249 else
8250 cat <<_LT_EOF 1>&2
8251
8252 *** Warning: the command libtool uses to detect shared libraries,
8253 *** $file_magic_cmd, produces output that libtool cannot recognize.
8254 *** The result is that libtool may fail to recognize shared libraries
8255 *** as such. This will affect the creation of libtool libraries that
8256 *** depend on shared libraries, but programs linked with such libtool
8257 *** libraries will work regardless of this problem. Nevertheless, you
8258 *** may want to report the problem to your system manager and/or to
8259 *** [email protected]
8260
8261 _LT_EOF
8262 fi ;;
8263 esac
8264 fi
8265 break
8266 fi
8267 done
8268 IFS=$lt_save_ifs
8269 MAGIC_CMD=$lt_save_MAGIC_CMD
8270 ;;
8271 esac
8272 fi
8273
8274 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8275 if test -n "$MAGIC_CMD"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8277 $as_echo "$MAGIC_CMD" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8281 fi
8282
8283
8284
8285
8286
8287 if test -z "$lt_cv_path_MAGIC_CMD"; then
8288 if test -n "$ac_tool_prefix"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8290 $as_echo_n "checking for file... " >&6; }
8291 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 case $MAGIC_CMD in
8295 [\\/*] | ?:[\\/]*)
8296 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8297 ;;
8298 *)
8299 lt_save_MAGIC_CMD=$MAGIC_CMD
8300 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8301 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8302 for ac_dir in $ac_dummy; do
8303 IFS=$lt_save_ifs
8304 test -z "$ac_dir" && ac_dir=.
8305 if test -f "$ac_dir/file"; then
8306 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8307 if test -n "$file_magic_test_file"; then
8308 case $deplibs_check_method in
8309 "file_magic "*)
8310 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8311 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8313 $EGREP "$file_magic_regex" > /dev/null; then
8314 :
8315 else
8316 cat <<_LT_EOF 1>&2
8317
8318 *** Warning: the command libtool uses to detect shared libraries,
8319 *** $file_magic_cmd, produces output that libtool cannot recognize.
8320 *** The result is that libtool may fail to recognize shared libraries
8321 *** as such. This will affect the creation of libtool libraries that
8322 *** depend on shared libraries, but programs linked with such libtool
8323 *** libraries will work regardless of this problem. Nevertheless, you
8324 *** may want to report the problem to your system manager and/or to
8325 *** [email protected]
8326
8327 _LT_EOF
8328 fi ;;
8329 esac
8330 fi
8331 break
8332 fi
8333 done
8334 IFS=$lt_save_ifs
8335 MAGIC_CMD=$lt_save_MAGIC_CMD
8336 ;;
8337 esac
8338 fi
8339
8340 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8341 if test -n "$MAGIC_CMD"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8343 $as_echo "$MAGIC_CMD" >&6; }
8344 else
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8347 fi
8348
8349
8350 else
8351 MAGIC_CMD=:
8352 fi
8353 fi
8354
8355 fi
8356 ;;
8357 esac
8358
8359 # Use C for the default configuration in the libtool script
8360
8361 lt_save_CC=$CC
8362 ac_ext=c
8363 ac_cpp='$CPP $CPPFLAGS'
8364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8367
8368
8369 # Source file extension for C test sources.
8370 ac_ext=c
8371
8372 # Object file extension for compiled C test sources.
8373 objext=o
8374 objext=$objext
8375
8376 # Code to be used in simple compile tests
8377 lt_simple_compile_test_code="int some_variable = 0;"
8378
8379 # Code to be used in simple link tests
8380 lt_simple_link_test_code='int main(){return(0);}'
8381
8382
8383
8384
8385
8386
8387
8388 # If no C compiler was specified, use CC.
8389 LTCC=${LTCC-"$CC"}
8390
8391 # If no C compiler flags were specified, use CFLAGS.
8392 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8393
8394 # Allow CC to be a program name with arguments.
8395 compiler=$CC
8396
8397 # Save the default compiler, since it gets overwritten when the other
8398 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8399 compiler_DEFAULT=$CC
8400
8401 # save warnings/boilerplate of simple test code
8402 ac_outfile=conftest.$ac_objext
8403 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8404 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8405 _lt_compiler_boilerplate=`cat conftest.err`
8406 $RM conftest*
8407
8408 ac_outfile=conftest.$ac_objext
8409 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8410 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8411 _lt_linker_boilerplate=`cat conftest.err`
8412 $RM -r conftest*
8413
8414
8415 if test -n "$compiler"; then
8416
8417 lt_prog_compiler_no_builtin_flag=
8418
8419 if test yes = "$GCC"; then
8420 case $cc_basename in
8421 nvcc*)
8422 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8423 *)
8424 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8425 esac
8426
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8428 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8429 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8430 $as_echo_n "(cached) " >&6
8431 else
8432 lt_cv_prog_compiler_rtti_exceptions=no
8433 ac_outfile=conftest.$ac_objext
8434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8435 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8436 # Insert the option either (1) after the last *FLAGS variable, or
8437 # (2) before a word containing "conftest.", or (3) at the end.
8438 # Note that $ac_compile itself does not contain backslashes and begins
8439 # with a dollar sign (not a hyphen), so the echo should work correctly.
8440 # The option is referenced via a variable to avoid confusing sed.
8441 lt_compile=`echo "$ac_compile" | $SED \
8442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8444 -e 's:$: $lt_compiler_flag:'`
8445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8446 (eval "$lt_compile" 2>conftest.err)
8447 ac_status=$?
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 if (exit $ac_status) && test -s "$ac_outfile"; then
8451 # The compiler can only warn and ignore the option if not recognized
8452 # So say no if there are warnings other than the usual output.
8453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8456 lt_cv_prog_compiler_rtti_exceptions=yes
8457 fi
8458 fi
8459 $RM conftest*
8460
8461 fi
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8463 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8464
8465 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8466 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8467 else
8468 :
8469 fi
8470
8471 fi
8472
8473
8474
8475
8476
8477
8478 lt_prog_compiler_wl=
8479 lt_prog_compiler_pic=
8480 lt_prog_compiler_static=
8481
8482
8483 if test yes = "$GCC"; then
8484 lt_prog_compiler_wl='-Wl,'
8485 lt_prog_compiler_static='-static'
8486
8487 case $host_os in
8488 aix*)
8489 # All AIX code is PIC.
8490 if test ia64 = "$host_cpu"; then
8491 # AIX 5 now supports IA64 processor
8492 lt_prog_compiler_static='-Bstatic'
8493 fi
8494 lt_prog_compiler_pic='-fPIC'
8495 ;;
8496
8497 amigaos*)
8498 case $host_cpu in
8499 powerpc)
8500 # see comment about AmigaOS4 .so support
8501 lt_prog_compiler_pic='-fPIC'
8502 ;;
8503 m68k)
8504 # FIXME: we need at least 68020 code to build shared libraries, but
8505 # adding the '-m68020' flag to GCC prevents building anything better,
8506 # like '-m68040'.
8507 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8508 ;;
8509 esac
8510 ;;
8511
8512 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8513 # PIC is the default for these OSes.
8514 ;;
8515
8516 mingw* | cygwin* | pw32* | os2* | cegcc*)
8517 # This hack is so that the source file can tell whether it is being
8518 # built for inclusion in a dll (and should export symbols for example).
8519 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8520 # (--disable-auto-import) libraries
8521 lt_prog_compiler_pic='-DDLL_EXPORT'
8522 case $host_os in
8523 os2*)
8524 lt_prog_compiler_static='$wl-static'
8525 ;;
8526 esac
8527 ;;
8528
8529 darwin* | rhapsody*)
8530 # PIC is the default on this platform
8531 # Common symbols not allowed in MH_DYLIB files
8532 lt_prog_compiler_pic='-fno-common'
8533 ;;
8534
8535 haiku*)
8536 # PIC is the default for Haiku.
8537 # The "-static" flag exists, but is broken.
8538 lt_prog_compiler_static=
8539 ;;
8540
8541 hpux*)
8542 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8543 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8544 # sets the default TLS model and affects inlining.
8545 case $host_cpu in
8546 hppa*64*)
8547 # +Z the default
8548 ;;
8549 *)
8550 lt_prog_compiler_pic='-fPIC'
8551 ;;
8552 esac
8553 ;;
8554
8555 interix[3-9]*)
8556 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8557 # Instead, we relocate shared libraries at runtime.
8558 ;;
8559
8560 msdosdjgpp*)
8561 # Just because we use GCC doesn't mean we suddenly get shared libraries
8562 # on systems that don't support them.
8563 lt_prog_compiler_can_build_shared=no
8564 enable_shared=no
8565 ;;
8566
8567 *nto* | *qnx*)
8568 # QNX uses GNU C++, but need to define -shared option too, otherwise
8569 # it will coredump.
8570 lt_prog_compiler_pic='-fPIC -shared'
8571 ;;
8572
8573 sysv4*MP*)
8574 if test -d /usr/nec; then
8575 lt_prog_compiler_pic=-Kconform_pic
8576 fi
8577 ;;
8578
8579 *)
8580 lt_prog_compiler_pic='-fPIC'
8581 ;;
8582 esac
8583
8584 case $cc_basename in
8585 nvcc*) # Cuda Compiler Driver 2.2
8586 lt_prog_compiler_wl='-Xlinker '
8587 if test -n "$lt_prog_compiler_pic"; then
8588 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8589 fi
8590 ;;
8591 esac
8592 else
8593 # PORTME Check for flag to pass linker flags through the system compiler.
8594 case $host_os in
8595 aix*)
8596 lt_prog_compiler_wl='-Wl,'
8597 if test ia64 = "$host_cpu"; then
8598 # AIX 5 now supports IA64 processor
8599 lt_prog_compiler_static='-Bstatic'
8600 else
8601 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8602 fi
8603 ;;
8604
8605 darwin* | rhapsody*)
8606 # PIC is the default on this platform
8607 # Common symbols not allowed in MH_DYLIB files
8608 lt_prog_compiler_pic='-fno-common'
8609 case $cc_basename in
8610 nagfor*)
8611 # NAG Fortran compiler
8612 lt_prog_compiler_wl='-Wl,-Wl,,'
8613 lt_prog_compiler_pic='-PIC'
8614 lt_prog_compiler_static='-Bstatic'
8615 ;;
8616 esac
8617 ;;
8618
8619 mingw* | cygwin* | pw32* | os2* | cegcc*)
8620 # This hack is so that the source file can tell whether it is being
8621 # built for inclusion in a dll (and should export symbols for example).
8622 lt_prog_compiler_pic='-DDLL_EXPORT'
8623 case $host_os in
8624 os2*)
8625 lt_prog_compiler_static='$wl-static'
8626 ;;
8627 esac
8628 ;;
8629
8630 hpux9* | hpux10* | hpux11*)
8631 lt_prog_compiler_wl='-Wl,'
8632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8633 # not for PA HP-UX.
8634 case $host_cpu in
8635 hppa*64*|ia64*)
8636 # +Z the default
8637 ;;
8638 *)
8639 lt_prog_compiler_pic='+Z'
8640 ;;
8641 esac
8642 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8643 lt_prog_compiler_static='$wl-a ${wl}archive'
8644 ;;
8645
8646 irix5* | irix6* | nonstopux*)
8647 lt_prog_compiler_wl='-Wl,'
8648 # PIC (with -KPIC) is the default.
8649 lt_prog_compiler_static='-non_shared'
8650 ;;
8651
8652 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8653 case $cc_basename in
8654 # old Intel for x86_64, which still supported -KPIC.
8655 ecc*)
8656 lt_prog_compiler_wl='-Wl,'
8657 lt_prog_compiler_pic='-KPIC'
8658 lt_prog_compiler_static='-static'
8659 ;;
8660 # flang / f18. f95 an alias for gfortran or flang on Debian
8661 flang* | f18* | f95*)
8662 lt_prog_compiler_wl='-Wl,'
8663 lt_prog_compiler_pic='-fPIC'
8664 lt_prog_compiler_static='-static'
8665 ;;
8666 # icc used to be incompatible with GCC.
8667 # ICC 10 doesn't accept -KPIC any more.
8668 icc* | ifort*)
8669 lt_prog_compiler_wl='-Wl,'
8670 lt_prog_compiler_pic='-fPIC'
8671 lt_prog_compiler_static='-static'
8672 ;;
8673 # Lahey Fortran 8.1.
8674 lf95*)
8675 lt_prog_compiler_wl='-Wl,'
8676 lt_prog_compiler_pic='--shared'
8677 lt_prog_compiler_static='--static'
8678 ;;
8679 nagfor*)
8680 # NAG Fortran compiler
8681 lt_prog_compiler_wl='-Wl,-Wl,,'
8682 lt_prog_compiler_pic='-PIC'
8683 lt_prog_compiler_static='-Bstatic'
8684 ;;
8685 tcc*)
8686 # Fabrice Bellard et al's Tiny C Compiler
8687 lt_prog_compiler_wl='-Wl,'
8688 lt_prog_compiler_pic='-fPIC'
8689 lt_prog_compiler_static='-static'
8690 ;;
8691 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8692 # Portland Group compilers (*not* the Pentium gcc compiler,
8693 # which looks to be a dead project)
8694 lt_prog_compiler_wl='-Wl,'
8695 lt_prog_compiler_pic='-fpic'
8696 lt_prog_compiler_static='-Bstatic'
8697 ;;
8698 ccc*)
8699 lt_prog_compiler_wl='-Wl,'
8700 # All Alpha code is PIC.
8701 lt_prog_compiler_static='-non_shared'
8702 ;;
8703 xl* | bgxl* | bgf* | mpixl*)
8704 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_pic='-qpic'
8707 lt_prog_compiler_static='-qstaticlink'
8708 ;;
8709 *)
8710 case `$CC -V 2>&1 | sed 5q` in
8711 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8712 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8713 lt_prog_compiler_pic='-KPIC'
8714 lt_prog_compiler_static='-Bstatic'
8715 lt_prog_compiler_wl=''
8716 ;;
8717 *Sun\ F* | *Sun*Fortran*)
8718 lt_prog_compiler_pic='-KPIC'
8719 lt_prog_compiler_static='-Bstatic'
8720 lt_prog_compiler_wl='-Qoption ld '
8721 ;;
8722 *Sun\ C*)
8723 # Sun C 5.9
8724 lt_prog_compiler_pic='-KPIC'
8725 lt_prog_compiler_static='-Bstatic'
8726 lt_prog_compiler_wl='-Wl,'
8727 ;;
8728 *Intel*\ [CF]*Compiler*)
8729 lt_prog_compiler_wl='-Wl,'
8730 lt_prog_compiler_pic='-fPIC'
8731 lt_prog_compiler_static='-static'
8732 ;;
8733 *Portland\ Group*)
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_pic='-fpic'
8736 lt_prog_compiler_static='-Bstatic'
8737 ;;
8738 esac
8739 ;;
8740 esac
8741 ;;
8742
8743 newsos6)
8744 lt_prog_compiler_pic='-KPIC'
8745 lt_prog_compiler_static='-Bstatic'
8746 ;;
8747
8748 *nto* | *qnx*)
8749 # QNX uses GNU C++, but need to define -shared option too, otherwise
8750 # it will coredump.
8751 lt_prog_compiler_pic='-fPIC -shared'
8752 ;;
8753
8754 osf3* | osf4* | osf5*)
8755 lt_prog_compiler_wl='-Wl,'
8756 # All OSF/1 code is PIC.
8757 lt_prog_compiler_static='-non_shared'
8758 ;;
8759
8760 rdos*)
8761 lt_prog_compiler_static='-non_shared'
8762 ;;
8763
8764 solaris*)
8765 lt_prog_compiler_pic='-KPIC'
8766 lt_prog_compiler_static='-Bstatic'
8767 case $cc_basename in
8768 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8769 lt_prog_compiler_wl='-Qoption ld ';;
8770 *)
8771 lt_prog_compiler_wl='-Wl,';;
8772 esac
8773 ;;
8774
8775 sunos4*)
8776 lt_prog_compiler_wl='-Qoption ld '
8777 lt_prog_compiler_pic='-PIC'
8778 lt_prog_compiler_static='-Bstatic'
8779 ;;
8780
8781 sysv4 | sysv4.2uw2* | sysv4.3*)
8782 lt_prog_compiler_wl='-Wl,'
8783 lt_prog_compiler_pic='-KPIC'
8784 lt_prog_compiler_static='-Bstatic'
8785 ;;
8786
8787 sysv4*MP*)
8788 if test -d /usr/nec; then
8789 lt_prog_compiler_pic='-Kconform_pic'
8790 lt_prog_compiler_static='-Bstatic'
8791 fi
8792 ;;
8793
8794 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8795 lt_prog_compiler_wl='-Wl,'
8796 lt_prog_compiler_pic='-KPIC'
8797 lt_prog_compiler_static='-Bstatic'
8798 ;;
8799
8800 unicos*)
8801 lt_prog_compiler_wl='-Wl,'
8802 lt_prog_compiler_can_build_shared=no
8803 ;;
8804
8805 uts4*)
8806 lt_prog_compiler_pic='-pic'
8807 lt_prog_compiler_static='-Bstatic'
8808 ;;
8809
8810 *)
8811 lt_prog_compiler_can_build_shared=no
8812 ;;
8813 esac
8814 fi
8815
8816 case $host_os in
8817 # For platforms that do not support PIC, -DPIC is meaningless:
8818 *djgpp*)
8819 lt_prog_compiler_pic=
8820 ;;
8821 *)
8822 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8823 ;;
8824 esac
8825
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8827 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8828 if ${lt_cv_prog_compiler_pic+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8832 fi
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8834 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8835 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8836
8837 #
8838 # Check to make sure the PIC flag actually works.
8839 #
8840 if test -n "$lt_prog_compiler_pic"; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8842 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8843 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 lt_cv_prog_compiler_pic_works=no
8847 ac_outfile=conftest.$ac_objext
8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8850 # Insert the option either (1) after the last *FLAGS variable, or
8851 # (2) before a word containing "conftest.", or (3) at the end.
8852 # Note that $ac_compile itself does not contain backslashes and begins
8853 # with a dollar sign (not a hyphen), so the echo should work correctly.
8854 # The option is referenced via a variable to avoid confusing sed.
8855 lt_compile=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
8859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8860 (eval "$lt_compile" 2>conftest.err)
8861 ac_status=$?
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 if (exit $ac_status) && test -s "$ac_outfile"; then
8865 # The compiler can only warn and ignore the option if not recognized
8866 # So say no if there are warnings other than the usual output.
8867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8870 lt_cv_prog_compiler_pic_works=yes
8871 fi
8872 fi
8873 $RM conftest*
8874
8875 fi
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8877 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8878
8879 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8880 case $lt_prog_compiler_pic in
8881 "" | " "*) ;;
8882 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8883 esac
8884 else
8885 lt_prog_compiler_pic=
8886 lt_prog_compiler_can_build_shared=no
8887 fi
8888
8889 fi
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901 #
8902 # Check to make sure the static flag actually works.
8903 #
8904 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8906 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8907 if ${lt_cv_prog_compiler_static_works+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 lt_cv_prog_compiler_static_works=no
8911 save_LDFLAGS=$LDFLAGS
8912 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8913 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8914 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8915 # The linker can only warn and ignore the option if not recognized
8916 # So say no if there are warnings
8917 if test -s conftest.err; then
8918 # Append any errors to the config.log.
8919 cat conftest.err 1>&5
8920 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8922 if diff conftest.exp conftest.er2 >/dev/null; then
8923 lt_cv_prog_compiler_static_works=yes
8924 fi
8925 else
8926 lt_cv_prog_compiler_static_works=yes
8927 fi
8928 fi
8929 $RM -r conftest*
8930 LDFLAGS=$save_LDFLAGS
8931
8932 fi
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8934 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8935
8936 if test yes = "$lt_cv_prog_compiler_static_works"; then
8937 :
8938 else
8939 lt_prog_compiler_static=
8940 fi
8941
8942
8943
8944
8945
8946
8947
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8949 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8950 if ${lt_cv_prog_compiler_c_o+:} false; then :
8951 $as_echo_n "(cached) " >&6
8952 else
8953 lt_cv_prog_compiler_c_o=no
8954 $RM -r conftest 2>/dev/null
8955 mkdir conftest
8956 cd conftest
8957 mkdir out
8958 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8959
8960 lt_compiler_flag="-o out/conftest2.$ac_objext"
8961 # Insert the option either (1) after the last *FLAGS variable, or
8962 # (2) before a word containing "conftest.", or (3) at the end.
8963 # Note that $ac_compile itself does not contain backslashes and begins
8964 # with a dollar sign (not a hyphen), so the echo should work correctly.
8965 lt_compile=`echo "$ac_compile" | $SED \
8966 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8968 -e 's:$: $lt_compiler_flag:'`
8969 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8970 (eval "$lt_compile" 2>out/conftest.err)
8971 ac_status=$?
8972 cat out/conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8975 then
8976 # The compiler can only warn and ignore the option if not recognized
8977 # So say no if there are warnings
8978 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8979 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8980 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8981 lt_cv_prog_compiler_c_o=yes
8982 fi
8983 fi
8984 chmod u+w . 2>&5
8985 $RM conftest*
8986 # SGI C++ compiler will create directory out/ii_files/ for
8987 # template instantiation
8988 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8989 $RM out/* && rmdir out
8990 cd ..
8991 $RM -r conftest
8992 $RM conftest*
8993
8994 fi
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8996 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8997
8998
8999
9000
9001
9002
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9004 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9005 if ${lt_cv_prog_compiler_c_o+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 lt_cv_prog_compiler_c_o=no
9009 $RM -r conftest 2>/dev/null
9010 mkdir conftest
9011 cd conftest
9012 mkdir out
9013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9014
9015 lt_compiler_flag="-o out/conftest2.$ac_objext"
9016 # Insert the option either (1) after the last *FLAGS variable, or
9017 # (2) before a word containing "conftest.", or (3) at the end.
9018 # Note that $ac_compile itself does not contain backslashes and begins
9019 # with a dollar sign (not a hyphen), so the echo should work correctly.
9020 lt_compile=`echo "$ac_compile" | $SED \
9021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9023 -e 's:$: $lt_compiler_flag:'`
9024 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9025 (eval "$lt_compile" 2>out/conftest.err)
9026 ac_status=$?
9027 cat out/conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9030 then
9031 # The compiler can only warn and ignore the option if not recognized
9032 # So say no if there are warnings
9033 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9034 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9035 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler_c_o=yes
9037 fi
9038 fi
9039 chmod u+w . 2>&5
9040 $RM conftest*
9041 # SGI C++ compiler will create directory out/ii_files/ for
9042 # template instantiation
9043 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9044 $RM out/* && rmdir out
9045 cd ..
9046 $RM -r conftest
9047 $RM conftest*
9048
9049 fi
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9051 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9052
9053
9054
9055
9056 hard_links=nottested
9057 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9058 # do not overwrite the value of need_locks provided by the user
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9060 $as_echo_n "checking if we can lock with hard links... " >&6; }
9061 hard_links=yes
9062 $RM conftest*
9063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9064 touch conftest.a
9065 ln conftest.a conftest.b 2>&5 || hard_links=no
9066 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9068 $as_echo "$hard_links" >&6; }
9069 if test no = "$hard_links"; then
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9071 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9072 need_locks=warn
9073 fi
9074 else
9075 need_locks=no
9076 fi
9077
9078
9079
9080
9081
9082
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9084 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9085
9086 runpath_var=
9087 allow_undefined_flag=
9088 always_export_symbols=no
9089 archive_cmds=
9090 archive_expsym_cmds=
9091 compiler_needs_object=no
9092 enable_shared_with_static_runtimes=no
9093 export_dynamic_flag_spec=
9094 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9095 hardcode_automatic=no
9096 hardcode_direct=no
9097 hardcode_direct_absolute=no
9098 hardcode_libdir_flag_spec=
9099 hardcode_libdir_separator=
9100 hardcode_minus_L=no
9101 hardcode_shlibpath_var=unsupported
9102 inherit_rpath=no
9103 link_all_deplibs=unknown
9104 module_cmds=
9105 module_expsym_cmds=
9106 old_archive_from_new_cmds=
9107 old_archive_from_expsyms_cmds=
9108 thread_safe_flag_spec=
9109 whole_archive_flag_spec=
9110 # include_expsyms should be a list of space-separated symbols to be *always*
9111 # included in the symbol list
9112 include_expsyms=
9113 # exclude_expsyms can be an extended regexp of symbols to exclude
9114 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9115 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9116 # as well as any symbol that contains 'd'.
9117 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9118 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9119 # platforms (ab)use it in PIC code, but their linkers get confused if
9120 # the symbol is explicitly referenced. Since portable code cannot
9121 # rely on this symbol name, it's probably fine to never include it in
9122 # preloaded symbol tables.
9123 # Exclude shared library initialization/finalization symbols.
9124 extract_expsyms_cmds=
9125
9126 case $host_os in
9127 cygwin* | mingw* | pw32* | cegcc*)
9128 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9129 # When not using gcc, we currently assume that we are using
9130 # Microsoft Visual C++.
9131 if test yes != "$GCC"; then
9132 with_gnu_ld=no
9133 fi
9134 ;;
9135 interix*)
9136 # we just hope/assume this is gcc and not c89 (= MSVC++)
9137 with_gnu_ld=yes
9138 ;;
9139 openbsd* | bitrig*)
9140 with_gnu_ld=no
9141 ;;
9142 linux* | k*bsd*-gnu | gnu*)
9143 link_all_deplibs=no
9144 ;;
9145 esac
9146
9147 ld_shlibs=yes
9148
9149 # On some targets, GNU ld is compatible enough with the native linker
9150 # that we're better off using the native interface for both.
9151 lt_use_gnu_ld_interface=no
9152 if test yes = "$with_gnu_ld"; then
9153 case $host_os in
9154 aix*)
9155 # The AIX port of GNU ld has always aspired to compatibility
9156 # with the native linker. However, as the warning in the GNU ld
9157 # block says, versions before 2.19.5* couldn't really create working
9158 # shared libraries, regardless of the interface used.
9159 case `$LD -v 2>&1` in
9160 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9161 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9162 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9163 *)
9164 lt_use_gnu_ld_interface=yes
9165 ;;
9166 esac
9167 ;;
9168 *)
9169 lt_use_gnu_ld_interface=yes
9170 ;;
9171 esac
9172 fi
9173
9174 if test yes = "$lt_use_gnu_ld_interface"; then
9175 # If archive_cmds runs LD, not CC, wlarc should be empty
9176 wlarc='$wl'
9177
9178 # Set some defaults for GNU ld with shared library support. These
9179 # are reset later if shared libraries are not supported. Putting them
9180 # here allows them to be overridden if necessary.
9181 runpath_var=LD_RUN_PATH
9182 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9183 export_dynamic_flag_spec='$wl--export-dynamic'
9184 # ancient GNU ld didn't support --whole-archive et. al.
9185 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9186 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9187 else
9188 whole_archive_flag_spec=
9189 fi
9190 supports_anon_versioning=no
9191 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9192 *GNU\ gold*) supports_anon_versioning=yes ;;
9193 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9194 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9195 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9196 *\ 2.11.*) ;; # other 2.11 versions
9197 *) supports_anon_versioning=yes ;;
9198 esac
9199
9200 # See if GNU ld supports shared libraries.
9201 case $host_os in
9202 aix[3-9]*)
9203 # On AIX/PPC, the GNU linker is very broken
9204 if test ia64 != "$host_cpu"; then
9205 ld_shlibs=no
9206 cat <<_LT_EOF 1>&2
9207
9208 *** Warning: the GNU linker, at least up to release 2.19, is reported
9209 *** to be unable to reliably create shared libraries on AIX.
9210 *** Therefore, libtool is disabling shared libraries support. If you
9211 *** really care for shared libraries, you may want to install binutils
9212 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9213 *** You will then need to restart the configuration process.
9214
9215 _LT_EOF
9216 fi
9217 ;;
9218
9219 amigaos*)
9220 case $host_cpu in
9221 powerpc)
9222 # see comment about AmigaOS4 .so support
9223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9224 archive_expsym_cmds=''
9225 ;;
9226 m68k)
9227 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)'
9228 hardcode_libdir_flag_spec='-L$libdir'
9229 hardcode_minus_L=yes
9230 ;;
9231 esac
9232 ;;
9233
9234 beos*)
9235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9236 allow_undefined_flag=unsupported
9237 # Joseph Beckenbach <[email protected]> says some releases of gcc
9238 # support --undefined. This deserves some investigation. FIXME
9239 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9240 else
9241 ld_shlibs=no
9242 fi
9243 ;;
9244
9245 cygwin* | mingw* | pw32* | cegcc*)
9246 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9247 # as there is no search path for DLLs.
9248 hardcode_libdir_flag_spec='-L$libdir'
9249 export_dynamic_flag_spec='$wl--export-all-symbols'
9250 allow_undefined_flag=unsupported
9251 always_export_symbols=no
9252 enable_shared_with_static_runtimes=yes
9253 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'
9254 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9255
9256 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9258 # If the export-symbols file already is a .def file, use it as
9259 # is; otherwise, prepend EXPORTS...
9260 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9261 cp $export_symbols $output_objdir/$soname.def;
9262 else
9263 echo EXPORTS > $output_objdir/$soname.def;
9264 cat $export_symbols >> $output_objdir/$soname.def;
9265 fi~
9266 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9267 else
9268 ld_shlibs=no
9269 fi
9270 ;;
9271
9272 haiku*)
9273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9274 link_all_deplibs=yes
9275 ;;
9276
9277 os2*)
9278 hardcode_libdir_flag_spec='-L$libdir'
9279 hardcode_minus_L=yes
9280 allow_undefined_flag=unsupported
9281 shrext_cmds=.dll
9282 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9283 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9284 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9285 $ECHO EXPORTS >> $output_objdir/$libname.def~
9286 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9287 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9288 emximp -o $lib $output_objdir/$libname.def'
9289 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9290 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9291 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9292 $ECHO EXPORTS >> $output_objdir/$libname.def~
9293 prefix_cmds="$SED"~
9294 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9295 prefix_cmds="$prefix_cmds -e 1d";
9296 fi~
9297 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9298 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9299 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9300 emximp -o $lib $output_objdir/$libname.def'
9301 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9302 enable_shared_with_static_runtimes=yes
9303 ;;
9304
9305 interix[3-9]*)
9306 hardcode_direct=no
9307 hardcode_shlibpath_var=no
9308 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9309 export_dynamic_flag_spec='$wl-E'
9310 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9311 # Instead, shared libraries are loaded at an image base (0x10000000 by
9312 # default) and relocated if they conflict, which is a slow very memory
9313 # consuming and fragmenting process. To avoid this, we pick a random,
9314 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9315 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9316 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9317 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'
9318 ;;
9319
9320 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9321 tmp_diet=no
9322 if test linux-dietlibc = "$host_os"; then
9323 case $cc_basename in
9324 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9325 esac
9326 fi
9327 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9328 && test no = "$tmp_diet"
9329 then
9330 tmp_addflag=' $pic_flag'
9331 tmp_sharedflag='-shared'
9332 case $cc_basename,$host_cpu in
9333 pgcc*) # Portland Group C compiler
9334 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'
9335 tmp_addflag=' $pic_flag'
9336 ;;
9337 pgf77* | pgf90* | pgf95* | pgfortran*)
9338 # Portland Group f77 and f90 compilers
9339 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'
9340 tmp_addflag=' $pic_flag -Mnomain' ;;
9341 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9342 tmp_addflag=' -i_dynamic' ;;
9343 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9344 tmp_addflag=' -i_dynamic -nofor_main' ;;
9345 ifc* | ifort*) # Intel Fortran compiler
9346 tmp_addflag=' -nofor_main' ;;
9347 lf95*) # Lahey Fortran 8.1
9348 whole_archive_flag_spec=
9349 tmp_sharedflag='--shared' ;;
9350 nagfor*) # NAGFOR 5.3
9351 tmp_sharedflag='-Wl,-shared' ;;
9352 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9353 tmp_sharedflag='-qmkshrobj'
9354 tmp_addflag= ;;
9355 nvcc*) # Cuda Compiler Driver 2.2
9356 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'
9357 compiler_needs_object=yes
9358 ;;
9359 esac
9360 case `$CC -V 2>&1 | sed 5q` in
9361 *Sun\ C*) # Sun C 5.9
9362 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'
9363 compiler_needs_object=yes
9364 tmp_sharedflag='-G' ;;
9365 *Sun\ F*) # Sun Fortran 8.3
9366 tmp_sharedflag='-G' ;;
9367 esac
9368 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9369
9370 if test yes = "$supports_anon_versioning"; then
9371 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9372 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9373 echo "local: *; };" >> $output_objdir/$libname.ver~
9374 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9375 fi
9376
9377 case $cc_basename in
9378 tcc*)
9379 export_dynamic_flag_spec='-rdynamic'
9380 ;;
9381 xlf* | bgf* | bgxlf* | mpixlf*)
9382 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9383 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9384 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9385 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9386 if test yes = "$supports_anon_versioning"; then
9387 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9388 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9389 echo "local: *; };" >> $output_objdir/$libname.ver~
9390 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9391 fi
9392 ;;
9393 esac
9394 else
9395 ld_shlibs=no
9396 fi
9397 ;;
9398
9399 netbsd* | netbsdelf*-gnu)
9400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9401 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9402 wlarc=
9403 else
9404 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9405 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9406 fi
9407 ;;
9408
9409 solaris*)
9410 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9411 ld_shlibs=no
9412 cat <<_LT_EOF 1>&2
9413
9414 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9415 *** create shared libraries on Solaris systems. Therefore, libtool
9416 *** is disabling shared libraries support. We urge you to upgrade GNU
9417 *** binutils to release 2.9.1 or newer. Another option is to modify
9418 *** your PATH or compiler configuration so that the native linker is
9419 *** used, and then restart.
9420
9421 _LT_EOF
9422 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9423 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9424 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9425 else
9426 ld_shlibs=no
9427 fi
9428 ;;
9429
9430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9431 case `$LD -v 2>&1` in
9432 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9433 ld_shlibs=no
9434 cat <<_LT_EOF 1>&2
9435
9436 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9437 *** reliably create shared libraries on SCO systems. Therefore, libtool
9438 *** is disabling shared libraries support. We urge you to upgrade GNU
9439 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9440 *** your PATH or compiler configuration so that the native linker is
9441 *** used, and then restart.
9442
9443 _LT_EOF
9444 ;;
9445 *)
9446 # For security reasons, it is highly recommended that you always
9447 # use absolute paths for naming shared libraries, and exclude the
9448 # DT_RUNPATH tag from executables and libraries. But doing so
9449 # requires that you compile everything twice, which is a pain.
9450 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9451 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9453 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9454 else
9455 ld_shlibs=no
9456 fi
9457 ;;
9458 esac
9459 ;;
9460
9461 sunos4*)
9462 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9463 wlarc=
9464 hardcode_direct=yes
9465 hardcode_shlibpath_var=no
9466 ;;
9467
9468 *)
9469 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9470 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9471 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9472 else
9473 ld_shlibs=no
9474 fi
9475 ;;
9476 esac
9477
9478 if test no = "$ld_shlibs"; then
9479 runpath_var=
9480 hardcode_libdir_flag_spec=
9481 export_dynamic_flag_spec=
9482 whole_archive_flag_spec=
9483 fi
9484 else
9485 # PORTME fill in a description of your system's linker (not GNU ld)
9486 case $host_os in
9487 aix3*)
9488 allow_undefined_flag=unsupported
9489 always_export_symbols=yes
9490 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'
9491 # Note: this linker hardcodes the directories in LIBPATH if there
9492 # are no directories specified by -L.
9493 hardcode_minus_L=yes
9494 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9495 # Neither direct hardcoding nor static linking is supported with a
9496 # broken collect2.
9497 hardcode_direct=unsupported
9498 fi
9499 ;;
9500
9501 aix[4-9]*)
9502 if test ia64 = "$host_cpu"; then
9503 # On IA64, the linker does run time linking by default, so we don't
9504 # have to do anything special.
9505 aix_use_runtimelinking=no
9506 exp_sym_flag='-Bexport'
9507 no_entry_flag=
9508 else
9509 # If we're using GNU nm, then we don't want the "-C" option.
9510 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9511 # Without the "-l" option, or with the "-B" option, AIX nm treats
9512 # weak defined symbols like other global defined symbols, whereas
9513 # GNU nm marks them as "W".
9514 # While the 'weak' keyword is ignored in the Export File, we need
9515 # it in the Import File for the 'aix-soname' feature, so we have
9516 # to replace the "-B" option with "-P" for AIX nm.
9517 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9518 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9519 else
9520 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9521 fi
9522 aix_use_runtimelinking=no
9523
9524 # Test if we are trying to use run time linking or normal
9525 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9526 # have runtime linking enabled, and use it for executables.
9527 # For shared libraries, we enable/disable runtime linking
9528 # depending on the kind of the shared library created -
9529 # when "with_aix_soname,aix_use_runtimelinking" is:
9530 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9531 # "aix,yes" lib.so shared, rtl:yes, for executables
9532 # lib.a static archive
9533 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9534 # lib.a(lib.so.V) shared, rtl:no, for executables
9535 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9536 # lib.a(lib.so.V) shared, rtl:no
9537 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9538 # lib.a static archive
9539 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9540 for ld_flag in $LDFLAGS; do
9541 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9542 aix_use_runtimelinking=yes
9543 break
9544 fi
9545 done
9546 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9547 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9548 # so we don't have lib.a shared libs to link our executables.
9549 # We have to force runtime linking in this case.
9550 aix_use_runtimelinking=yes
9551 LDFLAGS="$LDFLAGS -Wl,-brtl"
9552 fi
9553 ;;
9554 esac
9555
9556 exp_sym_flag='-bexport'
9557 no_entry_flag='-bnoentry'
9558 fi
9559
9560 # When large executables or shared objects are built, AIX ld can
9561 # have problems creating the table of contents. If linking a library
9562 # or program results in "error TOC overflow" add -mminimal-toc to
9563 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9564 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9565
9566 archive_cmds=''
9567 hardcode_direct=yes
9568 hardcode_direct_absolute=yes
9569 hardcode_libdir_separator=':'
9570 link_all_deplibs=yes
9571 file_list_spec='$wl-f,'
9572 case $with_aix_soname,$aix_use_runtimelinking in
9573 aix,*) ;; # traditional, no import file
9574 svr4,* | *,yes) # use import file
9575 # The Import File defines what to hardcode.
9576 hardcode_direct=no
9577 hardcode_direct_absolute=no
9578 ;;
9579 esac
9580
9581 if test yes = "$GCC"; then
9582 case $host_os in aix4.[012]|aix4.[012].*)
9583 # We only want to do this on AIX 4.2 and lower, the check
9584 # below for broken collect2 doesn't work under 4.3+
9585 collect2name=`$CC -print-prog-name=collect2`
9586 if test -f "$collect2name" &&
9587 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9588 then
9589 # We have reworked collect2
9590 :
9591 else
9592 # We have old collect2
9593 hardcode_direct=unsupported
9594 # It fails to find uninstalled libraries when the uninstalled
9595 # path is not listed in the libpath. Setting hardcode_minus_L
9596 # to unsupported forces relinking
9597 hardcode_minus_L=yes
9598 hardcode_libdir_flag_spec='-L$libdir'
9599 hardcode_libdir_separator=
9600 fi
9601 ;;
9602 esac
9603 shared_flag='-shared'
9604 if test yes = "$aix_use_runtimelinking"; then
9605 shared_flag="$shared_flag "'$wl-G'
9606 fi
9607 # Need to ensure runtime linking is disabled for the traditional
9608 # shared library, or the linker may eventually find shared libraries
9609 # /with/ Import File - we do not want to mix them.
9610 shared_flag_aix='-shared'
9611 shared_flag_svr4='-shared $wl-G'
9612 else
9613 # not using gcc
9614 if test ia64 = "$host_cpu"; then
9615 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9616 # chokes on -Wl,-G. The following line is correct:
9617 shared_flag='-G'
9618 else
9619 if test yes = "$aix_use_runtimelinking"; then
9620 shared_flag='$wl-G'
9621 else
9622 shared_flag='$wl-bM:SRE'
9623 fi
9624 shared_flag_aix='$wl-bM:SRE'
9625 shared_flag_svr4='$wl-G'
9626 fi
9627 fi
9628
9629 export_dynamic_flag_spec='$wl-bexpall'
9630 # It seems that -bexpall does not export symbols beginning with
9631 # underscore (_), so it is better to generate a list of symbols to export.
9632 always_export_symbols=yes
9633 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9634 # Warning - without using the other runtime loading flags (-brtl),
9635 # -berok will link without error, but may produce a broken library.
9636 allow_undefined_flag='-berok'
9637 # Determine the default libpath from the value encoded in an
9638 # empty executable.
9639 if test set = "${lt_cv_aix_libpath+set}"; then
9640 aix_libpath=$lt_cv_aix_libpath
9641 else
9642 if ${lt_cv_aix_libpath_+:} false; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9647
9648 int
9649 main ()
9650 {
9651
9652 ;
9653 return 0;
9654 }
9655 _ACEOF
9656 if ac_fn_c_try_link "$LINENO"; then :
9657
9658 lt_aix_libpath_sed='
9659 /Import File Strings/,/^$/ {
9660 /^0/ {
9661 s/^0 *\([^ ]*\) *$/\1/
9662 p
9663 }
9664 }'
9665 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9666 # Check for a 64-bit object if we didn't find anything.
9667 if test -z "$lt_cv_aix_libpath_"; then
9668 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9669 fi
9670 fi
9671 rm -f core conftest.err conftest.$ac_objext \
9672 conftest$ac_exeext conftest.$ac_ext
9673 if test -z "$lt_cv_aix_libpath_"; then
9674 lt_cv_aix_libpath_=/usr/lib:/lib
9675 fi
9676
9677 fi
9678
9679 aix_libpath=$lt_cv_aix_libpath_
9680 fi
9681
9682 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9683 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9684 else
9685 if test ia64 = "$host_cpu"; then
9686 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9687 allow_undefined_flag="-z nodefs"
9688 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"
9689 else
9690 # Determine the default libpath from the value encoded in an
9691 # empty executable.
9692 if test set = "${lt_cv_aix_libpath+set}"; then
9693 aix_libpath=$lt_cv_aix_libpath
9694 else
9695 if ${lt_cv_aix_libpath_+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9700
9701 int
9702 main ()
9703 {
9704
9705 ;
9706 return 0;
9707 }
9708 _ACEOF
9709 if ac_fn_c_try_link "$LINENO"; then :
9710
9711 lt_aix_libpath_sed='
9712 /Import File Strings/,/^$/ {
9713 /^0/ {
9714 s/^0 *\([^ ]*\) *$/\1/
9715 p
9716 }
9717 }'
9718 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9719 # Check for a 64-bit object if we didn't find anything.
9720 if test -z "$lt_cv_aix_libpath_"; then
9721 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9722 fi
9723 fi
9724 rm -f core conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9726 if test -z "$lt_cv_aix_libpath_"; then
9727 lt_cv_aix_libpath_=/usr/lib:/lib
9728 fi
9729
9730 fi
9731
9732 aix_libpath=$lt_cv_aix_libpath_
9733 fi
9734
9735 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9736 # Warning - without using the other run time loading flags,
9737 # -berok will link without error, but may produce a broken library.
9738 no_undefined_flag=' $wl-bernotok'
9739 allow_undefined_flag=' $wl-berok'
9740 if test yes = "$with_gnu_ld"; then
9741 # We only use this code for GNU lds that support --whole-archive.
9742 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9743 else
9744 # Exported symbols can be pulled into shared objects from archives
9745 whole_archive_flag_spec='$convenience'
9746 fi
9747 archive_cmds_need_lc=yes
9748 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9749 # -brtl affects multiple linker settings, -berok does not and is overridden later
9750 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9751 if test svr4 != "$with_aix_soname"; then
9752 # This is similar to how AIX traditionally builds its shared libraries.
9753 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9754 fi
9755 if test aix != "$with_aix_soname"; then
9756 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9757 else
9758 # used by -dlpreopen to get the symbols
9759 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9760 fi
9761 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9762 fi
9763 fi
9764 ;;
9765
9766 amigaos*)
9767 case $host_cpu in
9768 powerpc)
9769 # see comment about AmigaOS4 .so support
9770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9771 archive_expsym_cmds=''
9772 ;;
9773 m68k)
9774 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)'
9775 hardcode_libdir_flag_spec='-L$libdir'
9776 hardcode_minus_L=yes
9777 ;;
9778 esac
9779 ;;
9780
9781 bsdi[45]*)
9782 export_dynamic_flag_spec=-rdynamic
9783 ;;
9784
9785 cygwin* | mingw* | pw32* | cegcc*)
9786 # When not using gcc, we currently assume that we are using
9787 # Microsoft Visual C++.
9788 # hardcode_libdir_flag_spec is actually meaningless, as there is
9789 # no search path for DLLs.
9790 case $cc_basename in
9791 cl*)
9792 # Native MSVC
9793 hardcode_libdir_flag_spec=' '
9794 allow_undefined_flag=unsupported
9795 always_export_symbols=yes
9796 file_list_spec='@'
9797 # Tell ltmain to make .lib files, not .a files.
9798 libext=lib
9799 # Tell ltmain to make .dll files, not .so files.
9800 shrext_cmds=.dll
9801 # FIXME: Setting linknames here is a bad hack.
9802 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9803 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9804 cp "$export_symbols" "$output_objdir/$soname.def";
9805 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9806 else
9807 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9808 fi~
9809 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9810 linknames='
9811 # The linker will not automatically build a static lib if we build a DLL.
9812 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9813 enable_shared_with_static_runtimes=yes
9814 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9815 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9816 # Don't use ranlib
9817 old_postinstall_cmds='chmod 644 $oldlib'
9818 postlink_cmds='lt_outputfile="@OUTPUT@"~
9819 lt_tool_outputfile="@TOOL_OUTPUT@"~
9820 case $lt_outputfile in
9821 *.exe|*.EXE) ;;
9822 *)
9823 lt_outputfile=$lt_outputfile.exe
9824 lt_tool_outputfile=$lt_tool_outputfile.exe
9825 ;;
9826 esac~
9827 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9828 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9829 $RM "$lt_outputfile.manifest";
9830 fi'
9831 ;;
9832 *)
9833 # Assume MSVC wrapper
9834 hardcode_libdir_flag_spec=' '
9835 allow_undefined_flag=unsupported
9836 # Tell ltmain to make .lib files, not .a files.
9837 libext=lib
9838 # Tell ltmain to make .dll files, not .so files.
9839 shrext_cmds=.dll
9840 # FIXME: Setting linknames here is a bad hack.
9841 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9842 # The linker will automatically build a .lib file if we build a DLL.
9843 old_archive_from_new_cmds='true'
9844 # FIXME: Should let the user specify the lib program.
9845 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9846 enable_shared_with_static_runtimes=yes
9847 ;;
9848 esac
9849 ;;
9850
9851 darwin* | rhapsody*)
9852
9853
9854 archive_cmds_need_lc=no
9855 hardcode_direct=no
9856 hardcode_automatic=yes
9857 hardcode_shlibpath_var=unsupported
9858 if test yes = "$lt_cv_ld_force_load"; then
9859 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\"`'
9860
9861 else
9862 whole_archive_flag_spec=''
9863 fi
9864 link_all_deplibs=yes
9865 allow_undefined_flag=$_lt_dar_allow_undefined
9866 case $cc_basename in
9867 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9868 *) _lt_dar_can_shared=$GCC ;;
9869 esac
9870 if test yes = "$_lt_dar_can_shared"; then
9871 output_verbose_link_cmd=func_echo_all
9872 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9873 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9874 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"
9875 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"
9876
9877 else
9878 ld_shlibs=no
9879 fi
9880
9881 ;;
9882
9883 dgux*)
9884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9885 hardcode_libdir_flag_spec='-L$libdir'
9886 hardcode_shlibpath_var=no
9887 ;;
9888
9889 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9890 # support. Future versions do this automatically, but an explicit c++rt0.o
9891 # does not break anything, and helps significantly (at the cost of a little
9892 # extra space).
9893 freebsd2.2*)
9894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9895 hardcode_libdir_flag_spec='-R$libdir'
9896 hardcode_direct=yes
9897 hardcode_shlibpath_var=no
9898 ;;
9899
9900 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9901 freebsd2.*)
9902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9903 hardcode_direct=yes
9904 hardcode_minus_L=yes
9905 hardcode_shlibpath_var=no
9906 ;;
9907
9908 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9909 freebsd* | dragonfly*)
9910 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9911 hardcode_libdir_flag_spec='-R$libdir'
9912 hardcode_direct=yes
9913 hardcode_shlibpath_var=no
9914 ;;
9915
9916 hpux9*)
9917 if test yes = "$GCC"; then
9918 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9919 else
9920 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9921 fi
9922 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9923 hardcode_libdir_separator=:
9924 hardcode_direct=yes
9925
9926 # hardcode_minus_L: Not really in the search PATH,
9927 # but as the default location of the library.
9928 hardcode_minus_L=yes
9929 export_dynamic_flag_spec='$wl-E'
9930 ;;
9931
9932 hpux10*)
9933 if test yes,no = "$GCC,$with_gnu_ld"; then
9934 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9935 else
9936 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9937 fi
9938 if test no = "$with_gnu_ld"; then
9939 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9940 hardcode_libdir_separator=:
9941 hardcode_direct=yes
9942 hardcode_direct_absolute=yes
9943 export_dynamic_flag_spec='$wl-E'
9944 # hardcode_minus_L: Not really in the search PATH,
9945 # but as the default location of the library.
9946 hardcode_minus_L=yes
9947 fi
9948 ;;
9949
9950 hpux11*)
9951 if test yes,no = "$GCC,$with_gnu_ld"; then
9952 case $host_cpu in
9953 hppa*64*)
9954 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9955 ;;
9956 ia64*)
9957 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9958 ;;
9959 *)
9960 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9961 ;;
9962 esac
9963 else
9964 case $host_cpu in
9965 hppa*64*)
9966 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9967 ;;
9968 ia64*)
9969 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9970 ;;
9971 *)
9972
9973 # Older versions of the 11.00 compiler do not understand -b yet
9974 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9976 $as_echo_n "checking if $CC understands -b... " >&6; }
9977 if ${lt_cv_prog_compiler__b+:} false; then :
9978 $as_echo_n "(cached) " >&6
9979 else
9980 lt_cv_prog_compiler__b=no
9981 save_LDFLAGS=$LDFLAGS
9982 LDFLAGS="$LDFLAGS -b"
9983 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9984 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9985 # The linker can only warn and ignore the option if not recognized
9986 # So say no if there are warnings
9987 if test -s conftest.err; then
9988 # Append any errors to the config.log.
9989 cat conftest.err 1>&5
9990 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9992 if diff conftest.exp conftest.er2 >/dev/null; then
9993 lt_cv_prog_compiler__b=yes
9994 fi
9995 else
9996 lt_cv_prog_compiler__b=yes
9997 fi
9998 fi
9999 $RM -r conftest*
10000 LDFLAGS=$save_LDFLAGS
10001
10002 fi
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10004 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10005
10006 if test yes = "$lt_cv_prog_compiler__b"; then
10007 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10008 else
10009 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10010 fi
10011
10012 ;;
10013 esac
10014 fi
10015 if test no = "$with_gnu_ld"; then
10016 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10017 hardcode_libdir_separator=:
10018
10019 case $host_cpu in
10020 hppa*64*|ia64*)
10021 hardcode_direct=no
10022 hardcode_shlibpath_var=no
10023 ;;
10024 *)
10025 hardcode_direct=yes
10026 hardcode_direct_absolute=yes
10027 export_dynamic_flag_spec='$wl-E'
10028
10029 # hardcode_minus_L: Not really in the search PATH,
10030 # but as the default location of the library.
10031 hardcode_minus_L=yes
10032 ;;
10033 esac
10034 fi
10035 ;;
10036
10037 irix5* | irix6* | nonstopux*)
10038 if test yes = "$GCC"; then
10039 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'
10040 # Try to use the -exported_symbol ld option, if it does not
10041 # work, assume that -exports_file does not work either and
10042 # implicitly export all symbols.
10043 # This should be the same for all languages, so no per-tag cache variable.
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10045 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10046 if ${lt_cv_irix_exported_symbol+:} false; then :
10047 $as_echo_n "(cached) " >&6
10048 else
10049 save_LDFLAGS=$LDFLAGS
10050 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10053 int foo (void) { return 0; }
10054 _ACEOF
10055 if ac_fn_c_try_link "$LINENO"; then :
10056 lt_cv_irix_exported_symbol=yes
10057 else
10058 lt_cv_irix_exported_symbol=no
10059 fi
10060 rm -f core conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10062 LDFLAGS=$save_LDFLAGS
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10065 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10066 if test yes = "$lt_cv_irix_exported_symbol"; then
10067 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'
10068 fi
10069 link_all_deplibs=no
10070 else
10071 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'
10072 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'
10073 fi
10074 archive_cmds_need_lc='no'
10075 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10076 hardcode_libdir_separator=:
10077 inherit_rpath=yes
10078 link_all_deplibs=yes
10079 ;;
10080
10081 linux*)
10082 case $cc_basename in
10083 tcc*)
10084 # Fabrice Bellard et al's Tiny C Compiler
10085 ld_shlibs=yes
10086 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10087 ;;
10088 esac
10089 ;;
10090
10091 netbsd* | netbsdelf*-gnu)
10092 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10093 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10094 else
10095 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10096 fi
10097 hardcode_libdir_flag_spec='-R$libdir'
10098 hardcode_direct=yes
10099 hardcode_shlibpath_var=no
10100 ;;
10101
10102 newsos6)
10103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10104 hardcode_direct=yes
10105 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10106 hardcode_libdir_separator=:
10107 hardcode_shlibpath_var=no
10108 ;;
10109
10110 *nto* | *qnx*)
10111 ;;
10112
10113 openbsd* | bitrig*)
10114 if test -f /usr/libexec/ld.so; then
10115 hardcode_direct=yes
10116 hardcode_shlibpath_var=no
10117 hardcode_direct_absolute=yes
10118 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10119 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10120 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10121 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10122 export_dynamic_flag_spec='$wl-E'
10123 else
10124 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10125 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10126 fi
10127 else
10128 ld_shlibs=no
10129 fi
10130 ;;
10131
10132 os2*)
10133 hardcode_libdir_flag_spec='-L$libdir'
10134 hardcode_minus_L=yes
10135 allow_undefined_flag=unsupported
10136 shrext_cmds=.dll
10137 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10138 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10139 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10140 $ECHO EXPORTS >> $output_objdir/$libname.def~
10141 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10142 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10143 emximp -o $lib $output_objdir/$libname.def'
10144 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10145 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10146 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10147 $ECHO EXPORTS >> $output_objdir/$libname.def~
10148 prefix_cmds="$SED"~
10149 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10150 prefix_cmds="$prefix_cmds -e 1d";
10151 fi~
10152 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10153 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10154 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10155 emximp -o $lib $output_objdir/$libname.def'
10156 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10157 enable_shared_with_static_runtimes=yes
10158 ;;
10159
10160 osf3*)
10161 if test yes = "$GCC"; then
10162 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10163 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'
10164 else
10165 allow_undefined_flag=' -expect_unresolved \*'
10166 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'
10167 fi
10168 archive_cmds_need_lc='no'
10169 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10170 hardcode_libdir_separator=:
10171 ;;
10172
10173 osf4* | osf5*) # as osf3* with the addition of -msym flag
10174 if test yes = "$GCC"; then
10175 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10176 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'
10177 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10178 else
10179 allow_undefined_flag=' -expect_unresolved \*'
10180 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'
10181 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~
10182 $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'
10183
10184 # Both c and cxx compiler support -rpath directly
10185 hardcode_libdir_flag_spec='-rpath $libdir'
10186 fi
10187 archive_cmds_need_lc='no'
10188 hardcode_libdir_separator=:
10189 ;;
10190
10191 solaris*)
10192 no_undefined_flag=' -z defs'
10193 if test yes = "$GCC"; then
10194 wlarc='$wl'
10195 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10196 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10197 $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'
10198 else
10199 case `$CC -V 2>&1` in
10200 *"Compilers 5.0"*)
10201 wlarc=''
10202 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10204 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10205 ;;
10206 *)
10207 wlarc='$wl'
10208 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10209 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10210 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10211 ;;
10212 esac
10213 fi
10214 hardcode_libdir_flag_spec='-R$libdir'
10215 hardcode_shlibpath_var=no
10216 case $host_os in
10217 solaris2.[0-5] | solaris2.[0-5].*) ;;
10218 *)
10219 # The compiler driver will combine and reorder linker options,
10220 # but understands '-z linker_flag'. GCC discards it without '$wl',
10221 # but is careful enough not to reorder.
10222 # Supported since Solaris 2.6 (maybe 2.5.1?)
10223 if test yes = "$GCC"; then
10224 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10225 else
10226 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10227 fi
10228 ;;
10229 esac
10230 link_all_deplibs=yes
10231 ;;
10232
10233 sunos4*)
10234 if test sequent = "$host_vendor"; then
10235 # Use $CC to link under sequent, because it throws in some extra .o
10236 # files that make .init and .fini sections work.
10237 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10238 else
10239 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10240 fi
10241 hardcode_libdir_flag_spec='-L$libdir'
10242 hardcode_direct=yes
10243 hardcode_minus_L=yes
10244 hardcode_shlibpath_var=no
10245 ;;
10246
10247 sysv4)
10248 case $host_vendor in
10249 sni)
10250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10251 hardcode_direct=yes # is this really true???
10252 ;;
10253 siemens)
10254 ## LD is ld it makes a PLAMLIB
10255 ## CC just makes a GrossModule.
10256 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10257 reload_cmds='$CC -r -o $output$reload_objs'
10258 hardcode_direct=no
10259 ;;
10260 motorola)
10261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10262 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10263 ;;
10264 esac
10265 runpath_var='LD_RUN_PATH'
10266 hardcode_shlibpath_var=no
10267 ;;
10268
10269 sysv4.3*)
10270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10271 hardcode_shlibpath_var=no
10272 export_dynamic_flag_spec='-Bexport'
10273 ;;
10274
10275 sysv4*MP*)
10276 if test -d /usr/nec; then
10277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10278 hardcode_shlibpath_var=no
10279 runpath_var=LD_RUN_PATH
10280 hardcode_runpath_var=yes
10281 ld_shlibs=yes
10282 fi
10283 ;;
10284
10285 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10286 no_undefined_flag='$wl-z,text'
10287 archive_cmds_need_lc=no
10288 hardcode_shlibpath_var=no
10289 runpath_var='LD_RUN_PATH'
10290
10291 if test yes = "$GCC"; then
10292 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10293 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10294 else
10295 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 fi
10298 ;;
10299
10300 sysv5* | sco3.2v5* | sco5v6*)
10301 # Note: We CANNOT use -z defs as we might desire, because we do not
10302 # link with -lc, and that would cause any symbols used from libc to
10303 # always be unresolved, which means just about no library would
10304 # ever link correctly. If we're not using GNU ld we use -z text
10305 # though, which does catch some bad symbols but isn't as heavy-handed
10306 # as -z defs.
10307 no_undefined_flag='$wl-z,text'
10308 allow_undefined_flag='$wl-z,nodefs'
10309 archive_cmds_need_lc=no
10310 hardcode_shlibpath_var=no
10311 hardcode_libdir_flag_spec='$wl-R,$libdir'
10312 hardcode_libdir_separator=':'
10313 link_all_deplibs=yes
10314 export_dynamic_flag_spec='$wl-Bexport'
10315 runpath_var='LD_RUN_PATH'
10316
10317 if test yes = "$GCC"; then
10318 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10320 else
10321 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10323 fi
10324 ;;
10325
10326 uts4*)
10327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10328 hardcode_libdir_flag_spec='-L$libdir'
10329 hardcode_shlibpath_var=no
10330 ;;
10331
10332 *)
10333 ld_shlibs=no
10334 ;;
10335 esac
10336
10337 if test sni = "$host_vendor"; then
10338 case $host in
10339 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10340 export_dynamic_flag_spec='$wl-Blargedynsym'
10341 ;;
10342 esac
10343 fi
10344 fi
10345
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10347 $as_echo "$ld_shlibs" >&6; }
10348 test no = "$ld_shlibs" && can_build_shared=no
10349
10350 with_gnu_ld=$with_gnu_ld
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366 #
10367 # Do we need to explicitly link libc?
10368 #
10369 case "x$archive_cmds_need_lc" in
10370 x|xyes)
10371 # Assume -lc should be added
10372 archive_cmds_need_lc=yes
10373
10374 if test yes,yes = "$GCC,$enable_shared"; then
10375 case $archive_cmds in
10376 *'~'*)
10377 # FIXME: we may have to deal with multi-command sequences.
10378 ;;
10379 '$CC '*)
10380 # Test whether the compiler implicitly links with -lc since on some
10381 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10382 # to ld, don't add -lc before -lgcc.
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10384 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10385 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10386 $as_echo_n "(cached) " >&6
10387 else
10388 $RM conftest*
10389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10390
10391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10392 (eval $ac_compile) 2>&5
10393 ac_status=$?
10394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10395 test $ac_status = 0; } 2>conftest.err; then
10396 soname=conftest
10397 lib=conftest
10398 libobjs=conftest.$ac_objext
10399 deplibs=
10400 wl=$lt_prog_compiler_wl
10401 pic_flag=$lt_prog_compiler_pic
10402 compiler_flags=-v
10403 linker_flags=-v
10404 verstring=
10405 output_objdir=.
10406 libname=conftest
10407 lt_save_allow_undefined_flag=$allow_undefined_flag
10408 allow_undefined_flag=
10409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10410 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10411 ac_status=$?
10412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10413 test $ac_status = 0; }
10414 then
10415 lt_cv_archive_cmds_need_lc=no
10416 else
10417 lt_cv_archive_cmds_need_lc=yes
10418 fi
10419 allow_undefined_flag=$lt_save_allow_undefined_flag
10420 else
10421 cat conftest.err 1>&5
10422 fi
10423 $RM conftest*
10424
10425 fi
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10427 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10428 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10429 ;;
10430 esac
10431 fi
10432 ;;
10433 esac
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10587 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10588
10589 if test yes = "$GCC"; then
10590 case $host_os in
10591 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10592 *) lt_awk_arg='/^libraries:/' ;;
10593 esac
10594 case $host_os in
10595 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10596 *) lt_sed_strip_eq='s|=/|/|g' ;;
10597 esac
10598 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10599 case $lt_search_path_spec in
10600 *\;*)
10601 # if the path contains ";" then we assume it to be the separator
10602 # otherwise default to the standard path separator (i.e. ":") - it is
10603 # assumed that no part of a normal pathname contains ";" but that should
10604 # okay in the real world where ";" in dirpaths is itself problematic.
10605 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10606 ;;
10607 *)
10608 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10609 ;;
10610 esac
10611 # Ok, now we have the path, separated by spaces, we can step through it
10612 # and add multilib dir if necessary...
10613 lt_tmp_lt_search_path_spec=
10614 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10615 # ...but if some path component already ends with the multilib dir we assume
10616 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10617 case "$lt_multi_os_dir; $lt_search_path_spec " in
10618 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10619 lt_multi_os_dir=
10620 ;;
10621 esac
10622 for lt_sys_path in $lt_search_path_spec; do
10623 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10624 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10625 elif test -n "$lt_multi_os_dir"; then
10626 test -d "$lt_sys_path" && \
10627 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10628 fi
10629 done
10630 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10631 BEGIN {RS = " "; FS = "/|\n";} {
10632 lt_foo = "";
10633 lt_count = 0;
10634 for (lt_i = NF; lt_i > 0; lt_i--) {
10635 if ($lt_i != "" && $lt_i != ".") {
10636 if ($lt_i == "..") {
10637 lt_count++;
10638 } else {
10639 if (lt_count == 0) {
10640 lt_foo = "/" $lt_i lt_foo;
10641 } else {
10642 lt_count--;
10643 }
10644 }
10645 }
10646 }
10647 if (lt_foo != "") { lt_freq[lt_foo]++; }
10648 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10649 }'`
10650 # AWK program above erroneously prepends '/' to C:/dos/paths
10651 # for these hosts.
10652 case $host_os in
10653 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10654 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10655 esac
10656 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10657 else
10658 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10659 fi
10660 library_names_spec=
10661 libname_spec='lib$name'
10662 soname_spec=
10663 shrext_cmds=.so
10664 postinstall_cmds=
10665 postuninstall_cmds=
10666 finish_cmds=
10667 finish_eval=
10668 shlibpath_var=
10669 shlibpath_overrides_runpath=unknown
10670 version_type=none
10671 dynamic_linker="$host_os ld.so"
10672 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10673 need_lib_prefix=unknown
10674 hardcode_into_libs=no
10675
10676 # when you set need_version to no, make sure it does not cause -set_version
10677 # flags to be left without arguments
10678 need_version=unknown
10679
10680
10681
10682 case $host_os in
10683 aix3*)
10684 version_type=linux # correct to gnu/linux during the next big refactor
10685 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10686 shlibpath_var=LIBPATH
10687
10688 # AIX 3 has no versioning support, so we append a major version to the name.
10689 soname_spec='$libname$release$shared_ext$major'
10690 ;;
10691
10692 aix[4-9]*)
10693 version_type=linux # correct to gnu/linux during the next big refactor
10694 need_lib_prefix=no
10695 need_version=no
10696 hardcode_into_libs=yes
10697 if test ia64 = "$host_cpu"; then
10698 # AIX 5 supports IA64
10699 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 else
10702 # With GCC up to 2.95.x, collect2 would create an import file
10703 # for dependence libraries. The import file would start with
10704 # the line '#! .'. This would cause the generated library to
10705 # depend on '.', always an invalid library. This was fixed in
10706 # development snapshots of GCC prior to 3.0.
10707 case $host_os in
10708 aix4 | aix4.[01] | aix4.[01].*)
10709 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10710 echo ' yes '
10711 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10712 :
10713 else
10714 can_build_shared=no
10715 fi
10716 ;;
10717 esac
10718 # Using Import Files as archive members, it is possible to support
10719 # filename-based versioning of shared library archives on AIX. While
10720 # this would work for both with and without runtime linking, it will
10721 # prevent static linking of such archives. So we do filename-based
10722 # shared library versioning with .so extension only, which is used
10723 # when both runtime linking and shared linking is enabled.
10724 # Unfortunately, runtime linking may impact performance, so we do
10725 # not want this to be the default eventually. Also, we use the
10726 # versioned .so libs for executables only if there is the -brtl
10727 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10728 # To allow for filename-based versioning support, we need to create
10729 # libNAME.so.V as an archive file, containing:
10730 # *) an Import File, referring to the versioned filename of the
10731 # archive as well as the shared archive member, telling the
10732 # bitwidth (32 or 64) of that shared object, and providing the
10733 # list of exported symbols of that shared object, eventually
10734 # decorated with the 'weak' keyword
10735 # *) the shared object with the F_LOADONLY flag set, to really avoid
10736 # it being seen by the linker.
10737 # At run time we better use the real file rather than another symlink,
10738 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10739
10740 case $with_aix_soname,$aix_use_runtimelinking in
10741 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10742 # soname into executable. Probably we can add versioning support to
10743 # collect2, so additional links can be useful in future.
10744 aix,yes) # traditional libtool
10745 dynamic_linker='AIX unversionable lib.so'
10746 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10747 # instead of lib<name>.a to let people know that these are not
10748 # typical AIX shared libraries.
10749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10750 ;;
10751 aix,no) # traditional AIX only
10752 dynamic_linker='AIX lib.a(lib.so.V)'
10753 # We preserve .a as extension for shared libraries through AIX4.2
10754 # and later when we are not doing run time linking.
10755 library_names_spec='$libname$release.a $libname.a'
10756 soname_spec='$libname$release$shared_ext$major'
10757 ;;
10758 svr4,*) # full svr4 only
10759 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10760 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10761 # We do not specify a path in Import Files, so LIBPATH fires.
10762 shlibpath_overrides_runpath=yes
10763 ;;
10764 *,yes) # both, prefer svr4
10765 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10766 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10767 # unpreferred sharedlib libNAME.a needs extra handling
10768 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10769 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10770 # We do not specify a path in Import Files, so LIBPATH fires.
10771 shlibpath_overrides_runpath=yes
10772 ;;
10773 *,no) # both, prefer aix
10774 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10775 library_names_spec='$libname$release.a $libname.a'
10776 soname_spec='$libname$release$shared_ext$major'
10777 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10778 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10779 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10780 ;;
10781 esac
10782 shlibpath_var=LIBPATH
10783 fi
10784 ;;
10785
10786 amigaos*)
10787 case $host_cpu in
10788 powerpc)
10789 # Since July 2007 AmigaOS4 officially supports .so libraries.
10790 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10792 ;;
10793 m68k)
10794 library_names_spec='$libname.ixlibrary $libname.a'
10795 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10796 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10797 ;;
10798 esac
10799 ;;
10800
10801 beos*)
10802 library_names_spec='$libname$shared_ext'
10803 dynamic_linker="$host_os ld.so"
10804 shlibpath_var=LIBRARY_PATH
10805 ;;
10806
10807 bsdi[45]*)
10808 version_type=linux # correct to gnu/linux during the next big refactor
10809 need_version=no
10810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10811 soname_spec='$libname$release$shared_ext$major'
10812 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10813 shlibpath_var=LD_LIBRARY_PATH
10814 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10815 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10816 # the default ld.so.conf also contains /usr/contrib/lib and
10817 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10818 # libtool to hard-code these into programs
10819 ;;
10820
10821 cygwin* | mingw* | pw32* | cegcc*)
10822 version_type=windows
10823 shrext_cmds=.dll
10824 need_version=no
10825 need_lib_prefix=no
10826
10827 case $GCC,$cc_basename in
10828 yes,*)
10829 # gcc
10830 library_names_spec='$libname.dll.a'
10831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10832 postinstall_cmds='base_file=`basename \$file`~
10833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10834 dldir=$destdir/`dirname \$dlpath`~
10835 test -d \$dldir || mkdir -p \$dldir~
10836 $install_prog $dir/$dlname \$dldir/$dlname~
10837 chmod a+x \$dldir/$dlname~
10838 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10839 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10840 fi'
10841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10842 dlpath=$dir/\$dldll~
10843 $RM \$dlpath'
10844 shlibpath_overrides_runpath=yes
10845
10846 case $host_os in
10847 cygwin*)
10848 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10849 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10850
10851 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10852 ;;
10853 mingw* | cegcc*)
10854 # MinGW DLLs use traditional 'lib' prefix
10855 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10856 ;;
10857 pw32*)
10858 # pw32 DLLs use 'pw' prefix rather than 'lib'
10859 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10860 ;;
10861 esac
10862 dynamic_linker='Win32 ld.exe'
10863 ;;
10864
10865 *,cl*)
10866 # Native MSVC
10867 libname_spec='$name'
10868 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10869 library_names_spec='$libname.dll.lib'
10870
10871 case $build_os in
10872 mingw*)
10873 sys_lib_search_path_spec=
10874 lt_save_ifs=$IFS
10875 IFS=';'
10876 for lt_path in $LIB
10877 do
10878 IFS=$lt_save_ifs
10879 # Let DOS variable expansion print the short 8.3 style file name.
10880 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10881 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10882 done
10883 IFS=$lt_save_ifs
10884 # Convert to MSYS style.
10885 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10886 ;;
10887 cygwin*)
10888 # Convert to unix form, then to dos form, then back to unix form
10889 # but this time dos style (no spaces!) so that the unix form looks
10890 # like /cygdrive/c/PROGRA~1:/cygdr...
10891 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10892 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10893 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10894 ;;
10895 *)
10896 sys_lib_search_path_spec=$LIB
10897 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10898 # It is most probably a Windows format PATH.
10899 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10900 else
10901 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10902 fi
10903 # FIXME: find the short name or the path components, as spaces are
10904 # common. (e.g. "Program Files" -> "PROGRA~1")
10905 ;;
10906 esac
10907
10908 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10909 postinstall_cmds='base_file=`basename \$file`~
10910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10911 dldir=$destdir/`dirname \$dlpath`~
10912 test -d \$dldir || mkdir -p \$dldir~
10913 $install_prog $dir/$dlname \$dldir/$dlname'
10914 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10915 dlpath=$dir/\$dldll~
10916 $RM \$dlpath'
10917 shlibpath_overrides_runpath=yes
10918 dynamic_linker='Win32 link.exe'
10919 ;;
10920
10921 *)
10922 # Assume MSVC wrapper
10923 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10924 dynamic_linker='Win32 ld.exe'
10925 ;;
10926 esac
10927 # FIXME: first we should search . and the directory the executable is in
10928 shlibpath_var=PATH
10929 ;;
10930
10931 darwin* | rhapsody*)
10932 dynamic_linker="$host_os dyld"
10933 version_type=darwin
10934 need_lib_prefix=no
10935 need_version=no
10936 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10937 soname_spec='$libname$release$major$shared_ext'
10938 shlibpath_overrides_runpath=yes
10939 shlibpath_var=DYLD_LIBRARY_PATH
10940 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10941
10942 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10944 ;;
10945
10946 dgux*)
10947 version_type=linux # correct to gnu/linux during the next big refactor
10948 need_lib_prefix=no
10949 need_version=no
10950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10951 soname_spec='$libname$release$shared_ext$major'
10952 shlibpath_var=LD_LIBRARY_PATH
10953 ;;
10954
10955 freebsd* | dragonfly*)
10956 # DragonFly does not have aout. When/if they implement a new
10957 # versioning mechanism, adjust this.
10958 if test -x /usr/bin/objformat; then
10959 objformat=`/usr/bin/objformat`
10960 else
10961 case $host_os in
10962 freebsd[23].*) objformat=aout ;;
10963 *) objformat=elf ;;
10964 esac
10965 fi
10966 version_type=freebsd-$objformat
10967 case $version_type in
10968 freebsd-elf*)
10969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10970 soname_spec='$libname$release$shared_ext$major'
10971 need_version=no
10972 need_lib_prefix=no
10973 ;;
10974 freebsd-*)
10975 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10976 need_version=yes
10977 ;;
10978 esac
10979 shlibpath_var=LD_LIBRARY_PATH
10980 case $host_os in
10981 freebsd2.*)
10982 shlibpath_overrides_runpath=yes
10983 ;;
10984 freebsd3.[01]* | freebsdelf3.[01]*)
10985 shlibpath_overrides_runpath=yes
10986 hardcode_into_libs=yes
10987 ;;
10988 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10989 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10990 shlibpath_overrides_runpath=no
10991 hardcode_into_libs=yes
10992 ;;
10993 *) # from 4.6 on, and DragonFly
10994 shlibpath_overrides_runpath=yes
10995 hardcode_into_libs=yes
10996 ;;
10997 esac
10998 ;;
10999
11000 haiku*)
11001 version_type=linux # correct to gnu/linux during the next big refactor
11002 need_lib_prefix=no
11003 need_version=no
11004 dynamic_linker="$host_os runtime_loader"
11005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11006 soname_spec='$libname$release$shared_ext$major'
11007 shlibpath_var=LIBRARY_PATH
11008 shlibpath_overrides_runpath=no
11009 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11010 hardcode_into_libs=yes
11011 ;;
11012
11013 hpux9* | hpux10* | hpux11*)
11014 # Give a soname corresponding to the major version so that dld.sl refuses to
11015 # link against other versions.
11016 version_type=sunos
11017 need_lib_prefix=no
11018 need_version=no
11019 case $host_cpu in
11020 ia64*)
11021 shrext_cmds='.so'
11022 hardcode_into_libs=yes
11023 dynamic_linker="$host_os dld.so"
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11027 soname_spec='$libname$release$shared_ext$major'
11028 if test 32 = "$HPUX_IA64_MODE"; then
11029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11030 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11031 else
11032 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11033 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11034 fi
11035 ;;
11036 hppa*64*)
11037 shrext_cmds='.sl'
11038 hardcode_into_libs=yes
11039 dynamic_linker="$host_os dld.sl"
11040 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11043 soname_spec='$libname$release$shared_ext$major'
11044 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11046 ;;
11047 *)
11048 shrext_cmds='.sl'
11049 dynamic_linker="$host_os dld.sl"
11050 shlibpath_var=SHLIB_PATH
11051 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11053 soname_spec='$libname$release$shared_ext$major'
11054 ;;
11055 esac
11056 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11057 postinstall_cmds='chmod 555 $lib'
11058 # or fails outright, so override atomically:
11059 install_override_mode=555
11060 ;;
11061
11062 interix[3-9]*)
11063 version_type=linux # correct to gnu/linux during the next big refactor
11064 need_lib_prefix=no
11065 need_version=no
11066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11067 soname_spec='$libname$release$shared_ext$major'
11068 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=no
11071 hardcode_into_libs=yes
11072 ;;
11073
11074 irix5* | irix6* | nonstopux*)
11075 case $host_os in
11076 nonstopux*) version_type=nonstopux ;;
11077 *)
11078 if test yes = "$lt_cv_prog_gnu_ld"; then
11079 version_type=linux # correct to gnu/linux during the next big refactor
11080 else
11081 version_type=irix
11082 fi ;;
11083 esac
11084 need_lib_prefix=no
11085 need_version=no
11086 soname_spec='$libname$release$shared_ext$major'
11087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11088 case $host_os in
11089 irix5* | nonstopux*)
11090 libsuff= shlibsuff=
11091 ;;
11092 *)
11093 case $LD in # libtool.m4 will add one of these switches to LD
11094 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11095 libsuff= shlibsuff= libmagic=32-bit;;
11096 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11097 libsuff=32 shlibsuff=N32 libmagic=N32;;
11098 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11099 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11100 *) libsuff= shlibsuff= libmagic=never-match;;
11101 esac
11102 ;;
11103 esac
11104 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11105 shlibpath_overrides_runpath=no
11106 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11107 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11108 hardcode_into_libs=yes
11109 ;;
11110
11111 # No shared lib support for Linux oldld, aout, or coff.
11112 linux*oldld* | linux*aout* | linux*coff*)
11113 dynamic_linker=no
11114 ;;
11115
11116 linux*android*)
11117 version_type=none # Android doesn't support versioned libraries.
11118 need_lib_prefix=no
11119 need_version=no
11120 library_names_spec='$libname$release$shared_ext'
11121 soname_spec='$libname$release$shared_ext'
11122 finish_cmds=
11123 shlibpath_var=LD_LIBRARY_PATH
11124 shlibpath_overrides_runpath=yes
11125
11126 # This implies no fast_install, which is unacceptable.
11127 # Some rework will be needed to allow for fast_install
11128 # before this can be enabled.
11129 hardcode_into_libs=yes
11130
11131 dynamic_linker='Android linker'
11132 # Don't embed -rpath directories since the linker doesn't support them.
11133 hardcode_libdir_flag_spec='-L$libdir'
11134 ;;
11135
11136 # This must be glibc/ELF.
11137 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11138 version_type=linux # correct to gnu/linux during the next big refactor
11139 need_lib_prefix=no
11140 need_version=no
11141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142 soname_spec='$libname$release$shared_ext$major'
11143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 shlibpath_overrides_runpath=no
11146
11147 # Some binutils ld are patched to set DT_RUNPATH
11148 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11151 lt_cv_shlibpath_overrides_runpath=no
11152 save_LDFLAGS=$LDFLAGS
11153 save_libdir=$libdir
11154 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11155 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11158
11159 int
11160 main ()
11161 {
11162
11163 ;
11164 return 0;
11165 }
11166 _ACEOF
11167 if ac_fn_c_try_link "$LINENO"; then :
11168 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11169 lt_cv_shlibpath_overrides_runpath=yes
11170 fi
11171 fi
11172 rm -f core conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11174 LDFLAGS=$save_LDFLAGS
11175 libdir=$save_libdir
11176
11177 fi
11178
11179 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11180
11181 # This implies no fast_install, which is unacceptable.
11182 # Some rework will be needed to allow for fast_install
11183 # before this can be enabled.
11184 hardcode_into_libs=yes
11185
11186 # Ideally, we could use ldconfig to report *all* directores which are
11187 # searched for libraries, however this is still not possible. Aside from not
11188 # being certain /sbin/ldconfig is available, command
11189 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11190 # even though it is searched at run-time. Try to do the best guess by
11191 # appending ld.so.conf contents (and includes) to the search path.
11192 if test -f /etc/ld.so.conf; then
11193 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' ' '`
11194 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11195 fi
11196
11197 # We used to test for /lib/ld.so.1 and disable shared libraries on
11198 # powerpc, because MkLinux only supported shared libraries with the
11199 # GNU dynamic linker. Since this was broken with cross compilers,
11200 # most powerpc-linux boxes support dynamic linking these days and
11201 # people can always --disable-shared, the test was removed, and we
11202 # assume the GNU/Linux dynamic linker is in use.
11203 dynamic_linker='GNU/Linux ld.so'
11204 ;;
11205
11206 netbsdelf*-gnu)
11207 version_type=linux
11208 need_lib_prefix=no
11209 need_version=no
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=no
11214 hardcode_into_libs=yes
11215 dynamic_linker='NetBSD ld.elf_so'
11216 ;;
11217
11218 netbsd*)
11219 version_type=sunos
11220 need_lib_prefix=no
11221 need_version=no
11222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11223 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11225 dynamic_linker='NetBSD (a.out) ld.so'
11226 else
11227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11228 soname_spec='$libname$release$shared_ext$major'
11229 dynamic_linker='NetBSD ld.elf_so'
11230 fi
11231 shlibpath_var=LD_LIBRARY_PATH
11232 shlibpath_overrides_runpath=yes
11233 hardcode_into_libs=yes
11234 ;;
11235
11236 newsos6)
11237 version_type=linux # correct to gnu/linux during the next big refactor
11238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 shlibpath_overrides_runpath=yes
11241 ;;
11242
11243 *nto* | *qnx*)
11244 version_type=qnx
11245 need_lib_prefix=no
11246 need_version=no
11247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11248 soname_spec='$libname$release$shared_ext$major'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 shlibpath_overrides_runpath=no
11251 hardcode_into_libs=yes
11252 dynamic_linker='ldqnx.so'
11253 ;;
11254
11255 openbsd* | bitrig*)
11256 version_type=sunos
11257 sys_lib_dlsearch_path_spec=/usr/lib
11258 need_lib_prefix=no
11259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11260 need_version=no
11261 else
11262 need_version=yes
11263 fi
11264 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11266 shlibpath_var=LD_LIBRARY_PATH
11267 shlibpath_overrides_runpath=yes
11268 ;;
11269
11270 os2*)
11271 libname_spec='$name'
11272 version_type=windows
11273 shrext_cmds=.dll
11274 need_version=no
11275 need_lib_prefix=no
11276 # OS/2 can only load a DLL with a base name of 8 characters or less.
11277 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11278 v=$($ECHO $release$versuffix | tr -d .-);
11279 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11280 $ECHO $n$v`$shared_ext'
11281 library_names_spec='${libname}_dll.$libext'
11282 dynamic_linker='OS/2 ld.exe'
11283 shlibpath_var=BEGINLIBPATH
11284 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11286 postinstall_cmds='base_file=`basename \$file`~
11287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11288 dldir=$destdir/`dirname \$dlpath`~
11289 test -d \$dldir || mkdir -p \$dldir~
11290 $install_prog $dir/$dlname \$dldir/$dlname~
11291 chmod a+x \$dldir/$dlname~
11292 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11293 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11294 fi'
11295 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11296 dlpath=$dir/\$dldll~
11297 $RM \$dlpath'
11298 ;;
11299
11300 osf3* | osf4* | osf5*)
11301 version_type=osf
11302 need_lib_prefix=no
11303 need_version=no
11304 soname_spec='$libname$release$shared_ext$major'
11305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11306 shlibpath_var=LD_LIBRARY_PATH
11307 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11309 ;;
11310
11311 rdos*)
11312 dynamic_linker=no
11313 ;;
11314
11315 solaris*)
11316 version_type=linux # correct to gnu/linux during the next big refactor
11317 need_lib_prefix=no
11318 need_version=no
11319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11320 soname_spec='$libname$release$shared_ext$major'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=yes
11323 hardcode_into_libs=yes
11324 # ldd complains unless libraries are executable
11325 postinstall_cmds='chmod +x $lib'
11326 ;;
11327
11328 sunos4*)
11329 version_type=sunos
11330 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11331 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11332 shlibpath_var=LD_LIBRARY_PATH
11333 shlibpath_overrides_runpath=yes
11334 if test yes = "$with_gnu_ld"; then
11335 need_lib_prefix=no
11336 fi
11337 need_version=yes
11338 ;;
11339
11340 sysv4 | sysv4.3*)
11341 version_type=linux # correct to gnu/linux during the next big refactor
11342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11343 soname_spec='$libname$release$shared_ext$major'
11344 shlibpath_var=LD_LIBRARY_PATH
11345 case $host_vendor in
11346 sni)
11347 shlibpath_overrides_runpath=no
11348 need_lib_prefix=no
11349 runpath_var=LD_RUN_PATH
11350 ;;
11351 siemens)
11352 need_lib_prefix=no
11353 ;;
11354 motorola)
11355 need_lib_prefix=no
11356 need_version=no
11357 shlibpath_overrides_runpath=no
11358 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11359 ;;
11360 esac
11361 ;;
11362
11363 sysv4*MP*)
11364 if test -d /usr/nec; then
11365 version_type=linux # correct to gnu/linux during the next big refactor
11366 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11367 soname_spec='$libname$shared_ext.$major'
11368 shlibpath_var=LD_LIBRARY_PATH
11369 fi
11370 ;;
11371
11372 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11373 version_type=sco
11374 need_lib_prefix=no
11375 need_version=no
11376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11377 soname_spec='$libname$release$shared_ext$major'
11378 shlibpath_var=LD_LIBRARY_PATH
11379 shlibpath_overrides_runpath=yes
11380 hardcode_into_libs=yes
11381 if test yes = "$with_gnu_ld"; then
11382 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11383 else
11384 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11385 case $host_os in
11386 sco3.2v5*)
11387 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11388 ;;
11389 esac
11390 fi
11391 sys_lib_dlsearch_path_spec='/usr/lib'
11392 ;;
11393
11394 tpf*)
11395 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11396 version_type=linux # correct to gnu/linux during the next big refactor
11397 need_lib_prefix=no
11398 need_version=no
11399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11400 shlibpath_var=LD_LIBRARY_PATH
11401 shlibpath_overrides_runpath=no
11402 hardcode_into_libs=yes
11403 ;;
11404
11405 uts4*)
11406 version_type=linux # correct to gnu/linux during the next big refactor
11407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11408 soname_spec='$libname$release$shared_ext$major'
11409 shlibpath_var=LD_LIBRARY_PATH
11410 ;;
11411
11412 *)
11413 dynamic_linker=no
11414 ;;
11415 esac
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11417 $as_echo "$dynamic_linker" >&6; }
11418 test no = "$dynamic_linker" && can_build_shared=no
11419
11420 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11421 if test yes = "$GCC"; then
11422 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11423 fi
11424
11425 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11426 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11427 fi
11428
11429 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11430 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11431 fi
11432
11433 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11434 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11435
11436 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11437 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11438
11439 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11440 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11539 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11540 hardcode_action=
11541 if test -n "$hardcode_libdir_flag_spec" ||
11542 test -n "$runpath_var" ||
11543 test yes = "$hardcode_automatic"; then
11544
11545 # We can hardcode non-existent directories.
11546 if test no != "$hardcode_direct" &&
11547 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11548 # have to relink, otherwise we might link with an installed library
11549 # when we should be linking with a yet-to-be-installed one
11550 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11551 test no != "$hardcode_minus_L"; then
11552 # Linking always hardcodes the temporary library directory.
11553 hardcode_action=relink
11554 else
11555 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11556 hardcode_action=immediate
11557 fi
11558 else
11559 # We cannot hardcode anything, or else we can only hardcode existing
11560 # directories.
11561 hardcode_action=unsupported
11562 fi
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11564 $as_echo "$hardcode_action" >&6; }
11565
11566 if test relink = "$hardcode_action" ||
11567 test yes = "$inherit_rpath"; then
11568 # Fast installation is not supported
11569 enable_fast_install=no
11570 elif test yes = "$shlibpath_overrides_runpath" ||
11571 test no = "$enable_shared"; then
11572 # Fast installation is not necessary
11573 enable_fast_install=needless
11574 fi
11575
11576
11577
11578
11579
11580
11581 if test yes != "$enable_dlopen"; then
11582 enable_dlopen=unknown
11583 enable_dlopen_self=unknown
11584 enable_dlopen_self_static=unknown
11585 else
11586 lt_cv_dlopen=no
11587 lt_cv_dlopen_libs=
11588
11589 case $host_os in
11590 beos*)
11591 lt_cv_dlopen=load_add_on
11592 lt_cv_dlopen_libs=
11593 lt_cv_dlopen_self=yes
11594 ;;
11595
11596 mingw* | pw32* | cegcc*)
11597 lt_cv_dlopen=LoadLibrary
11598 lt_cv_dlopen_libs=
11599 ;;
11600
11601 cygwin*)
11602 lt_cv_dlopen=dlopen
11603 lt_cv_dlopen_libs=
11604 ;;
11605
11606 darwin*)
11607 # if libdl is installed we need to link against it
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11609 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11610 if ${ac_cv_lib_dl_dlopen+:} false; then :
11611 $as_echo_n "(cached) " >&6
11612 else
11613 ac_check_lib_save_LIBS=$LIBS
11614 LIBS="-ldl $LIBS"
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11617
11618 /* Override any GCC internal prototype to avoid an error.
11619 Use char because int might match the return type of a GCC
11620 builtin and then its argument prototype would still apply. */
11621 #ifdef __cplusplus
11622 extern "C"
11623 #endif
11624 char dlopen ();
11625 int
11626 main ()
11627 {
11628 return dlopen ();
11629 ;
11630 return 0;
11631 }
11632 _ACEOF
11633 if ac_fn_c_try_link "$LINENO"; then :
11634 ac_cv_lib_dl_dlopen=yes
11635 else
11636 ac_cv_lib_dl_dlopen=no
11637 fi
11638 rm -f core conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
11640 LIBS=$ac_check_lib_save_LIBS
11641 fi
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11643 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11644 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11645 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11646 else
11647
11648 lt_cv_dlopen=dyld
11649 lt_cv_dlopen_libs=
11650 lt_cv_dlopen_self=yes
11651
11652 fi
11653
11654 ;;
11655
11656 tpf*)
11657 # Don't try to run any link tests for TPF. We know it's impossible
11658 # because TPF is a cross-compiler, and we know how we open DSOs.
11659 lt_cv_dlopen=dlopen
11660 lt_cv_dlopen_libs=
11661 lt_cv_dlopen_self=no
11662 ;;
11663
11664 *)
11665 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11666 if test "x$ac_cv_func_shl_load" = xyes; then :
11667 lt_cv_dlopen=shl_load
11668 else
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11670 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11671 if ${ac_cv_lib_dld_shl_load+:} false; then :
11672 $as_echo_n "(cached) " >&6
11673 else
11674 ac_check_lib_save_LIBS=$LIBS
11675 LIBS="-ldld $LIBS"
11676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677 /* end confdefs.h. */
11678
11679 /* Override any GCC internal prototype to avoid an error.
11680 Use char because int might match the return type of a GCC
11681 builtin and then its argument prototype would still apply. */
11682 #ifdef __cplusplus
11683 extern "C"
11684 #endif
11685 char shl_load ();
11686 int
11687 main ()
11688 {
11689 return shl_load ();
11690 ;
11691 return 0;
11692 }
11693 _ACEOF
11694 if ac_fn_c_try_link "$LINENO"; then :
11695 ac_cv_lib_dld_shl_load=yes
11696 else
11697 ac_cv_lib_dld_shl_load=no
11698 fi
11699 rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
11701 LIBS=$ac_check_lib_save_LIBS
11702 fi
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11704 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11705 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11706 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11707 else
11708 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11709 if test "x$ac_cv_func_dlopen" = xyes; then :
11710 lt_cv_dlopen=dlopen
11711 else
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11713 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11714 if ${ac_cv_lib_dl_dlopen+:} false; then :
11715 $as_echo_n "(cached) " >&6
11716 else
11717 ac_check_lib_save_LIBS=$LIBS
11718 LIBS="-ldl $LIBS"
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11721
11722 /* Override any GCC internal prototype to avoid an error.
11723 Use char because int might match the return type of a GCC
11724 builtin and then its argument prototype would still apply. */
11725 #ifdef __cplusplus
11726 extern "C"
11727 #endif
11728 char dlopen ();
11729 int
11730 main ()
11731 {
11732 return dlopen ();
11733 ;
11734 return 0;
11735 }
11736 _ACEOF
11737 if ac_fn_c_try_link "$LINENO"; then :
11738 ac_cv_lib_dl_dlopen=yes
11739 else
11740 ac_cv_lib_dl_dlopen=no
11741 fi
11742 rm -f core conftest.err conftest.$ac_objext \
11743 conftest$ac_exeext conftest.$ac_ext
11744 LIBS=$ac_check_lib_save_LIBS
11745 fi
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11747 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11748 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11749 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11750 else
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11752 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11753 if ${ac_cv_lib_svld_dlopen+:} false; then :
11754 $as_echo_n "(cached) " >&6
11755 else
11756 ac_check_lib_save_LIBS=$LIBS
11757 LIBS="-lsvld $LIBS"
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760
11761 /* Override any GCC internal prototype to avoid an error.
11762 Use char because int might match the return type of a GCC
11763 builtin and then its argument prototype would still apply. */
11764 #ifdef __cplusplus
11765 extern "C"
11766 #endif
11767 char dlopen ();
11768 int
11769 main ()
11770 {
11771 return dlopen ();
11772 ;
11773 return 0;
11774 }
11775 _ACEOF
11776 if ac_fn_c_try_link "$LINENO"; then :
11777 ac_cv_lib_svld_dlopen=yes
11778 else
11779 ac_cv_lib_svld_dlopen=no
11780 fi
11781 rm -f core conftest.err conftest.$ac_objext \
11782 conftest$ac_exeext conftest.$ac_ext
11783 LIBS=$ac_check_lib_save_LIBS
11784 fi
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11786 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11787 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11788 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11789 else
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11791 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11792 if ${ac_cv_lib_dld_dld_link+:} false; then :
11793 $as_echo_n "(cached) " >&6
11794 else
11795 ac_check_lib_save_LIBS=$LIBS
11796 LIBS="-ldld $LIBS"
11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798 /* end confdefs.h. */
11799
11800 /* Override any GCC internal prototype to avoid an error.
11801 Use char because int might match the return type of a GCC
11802 builtin and then its argument prototype would still apply. */
11803 #ifdef __cplusplus
11804 extern "C"
11805 #endif
11806 char dld_link ();
11807 int
11808 main ()
11809 {
11810 return dld_link ();
11811 ;
11812 return 0;
11813 }
11814 _ACEOF
11815 if ac_fn_c_try_link "$LINENO"; then :
11816 ac_cv_lib_dld_dld_link=yes
11817 else
11818 ac_cv_lib_dld_dld_link=no
11819 fi
11820 rm -f core conftest.err conftest.$ac_objext \
11821 conftest$ac_exeext conftest.$ac_ext
11822 LIBS=$ac_check_lib_save_LIBS
11823 fi
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11825 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11826 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11827 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11828 fi
11829
11830
11831 fi
11832
11833
11834 fi
11835
11836
11837 fi
11838
11839
11840 fi
11841
11842
11843 fi
11844
11845 ;;
11846 esac
11847
11848 if test no = "$lt_cv_dlopen"; then
11849 enable_dlopen=no
11850 else
11851 enable_dlopen=yes
11852 fi
11853
11854 case $lt_cv_dlopen in
11855 dlopen)
11856 save_CPPFLAGS=$CPPFLAGS
11857 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11858
11859 save_LDFLAGS=$LDFLAGS
11860 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11861
11862 save_LIBS=$LIBS
11863 LIBS="$lt_cv_dlopen_libs $LIBS"
11864
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11866 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11867 if ${lt_cv_dlopen_self+:} false; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 if test yes = "$cross_compiling"; then :
11871 lt_cv_dlopen_self=cross
11872 else
11873 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11874 lt_status=$lt_dlunknown
11875 cat > conftest.$ac_ext <<_LT_EOF
11876 #line $LINENO "configure"
11877 #include "confdefs.h"
11878
11879 #if HAVE_DLFCN_H
11880 #include <dlfcn.h>
11881 #endif
11882
11883 #include <stdio.h>
11884
11885 #ifdef RTLD_GLOBAL
11886 # define LT_DLGLOBAL RTLD_GLOBAL
11887 #else
11888 # ifdef DL_GLOBAL
11889 # define LT_DLGLOBAL DL_GLOBAL
11890 # else
11891 # define LT_DLGLOBAL 0
11892 # endif
11893 #endif
11894
11895 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11896 find out it does not work in some platform. */
11897 #ifndef LT_DLLAZY_OR_NOW
11898 # ifdef RTLD_LAZY
11899 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11900 # else
11901 # ifdef DL_LAZY
11902 # define LT_DLLAZY_OR_NOW DL_LAZY
11903 # else
11904 # ifdef RTLD_NOW
11905 # define LT_DLLAZY_OR_NOW RTLD_NOW
11906 # else
11907 # ifdef DL_NOW
11908 # define LT_DLLAZY_OR_NOW DL_NOW
11909 # else
11910 # define LT_DLLAZY_OR_NOW 0
11911 # endif
11912 # endif
11913 # endif
11914 # endif
11915 #endif
11916
11917 /* When -fvisibility=hidden is used, assume the code has been annotated
11918 correspondingly for the symbols needed. */
11919 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11920 int fnord () __attribute__((visibility("default")));
11921 #endif
11922
11923 int fnord () { return 42; }
11924 int main ()
11925 {
11926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11927 int status = $lt_dlunknown;
11928
11929 if (self)
11930 {
11931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11932 else
11933 {
11934 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11935 else puts (dlerror ());
11936 }
11937 /* dlclose (self); */
11938 }
11939 else
11940 puts (dlerror ());
11941
11942 return status;
11943 }
11944 _LT_EOF
11945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11946 (eval $ac_link) 2>&5
11947 ac_status=$?
11948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11949 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11950 (./conftest; exit; ) >&5 2>/dev/null
11951 lt_status=$?
11952 case x$lt_status in
11953 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11954 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11955 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11956 esac
11957 else :
11958 # compilation failed
11959 lt_cv_dlopen_self=no
11960 fi
11961 fi
11962 rm -fr conftest*
11963
11964
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11967 $as_echo "$lt_cv_dlopen_self" >&6; }
11968
11969 if test yes = "$lt_cv_dlopen_self"; then
11970 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11972 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11973 if ${lt_cv_dlopen_self_static+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 if test yes = "$cross_compiling"; then :
11977 lt_cv_dlopen_self_static=cross
11978 else
11979 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11980 lt_status=$lt_dlunknown
11981 cat > conftest.$ac_ext <<_LT_EOF
11982 #line $LINENO "configure"
11983 #include "confdefs.h"
11984
11985 #if HAVE_DLFCN_H
11986 #include <dlfcn.h>
11987 #endif
11988
11989 #include <stdio.h>
11990
11991 #ifdef RTLD_GLOBAL
11992 # define LT_DLGLOBAL RTLD_GLOBAL
11993 #else
11994 # ifdef DL_GLOBAL
11995 # define LT_DLGLOBAL DL_GLOBAL
11996 # else
11997 # define LT_DLGLOBAL 0
11998 # endif
11999 #endif
12000
12001 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12002 find out it does not work in some platform. */
12003 #ifndef LT_DLLAZY_OR_NOW
12004 # ifdef RTLD_LAZY
12005 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12006 # else
12007 # ifdef DL_LAZY
12008 # define LT_DLLAZY_OR_NOW DL_LAZY
12009 # else
12010 # ifdef RTLD_NOW
12011 # define LT_DLLAZY_OR_NOW RTLD_NOW
12012 # else
12013 # ifdef DL_NOW
12014 # define LT_DLLAZY_OR_NOW DL_NOW
12015 # else
12016 # define LT_DLLAZY_OR_NOW 0
12017 # endif
12018 # endif
12019 # endif
12020 # endif
12021 #endif
12022
12023 /* When -fvisibility=hidden is used, assume the code has been annotated
12024 correspondingly for the symbols needed. */
12025 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12026 int fnord () __attribute__((visibility("default")));
12027 #endif
12028
12029 int fnord () { return 42; }
12030 int main ()
12031 {
12032 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12033 int status = $lt_dlunknown;
12034
12035 if (self)
12036 {
12037 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12038 else
12039 {
12040 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12041 else puts (dlerror ());
12042 }
12043 /* dlclose (self); */
12044 }
12045 else
12046 puts (dlerror ());
12047
12048 return status;
12049 }
12050 _LT_EOF
12051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12052 (eval $ac_link) 2>&5
12053 ac_status=$?
12054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12055 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12056 (./conftest; exit; ) >&5 2>/dev/null
12057 lt_status=$?
12058 case x$lt_status in
12059 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12060 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12061 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12062 esac
12063 else :
12064 # compilation failed
12065 lt_cv_dlopen_self_static=no
12066 fi
12067 fi
12068 rm -fr conftest*
12069
12070
12071 fi
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12073 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12074 fi
12075
12076 CPPFLAGS=$save_CPPFLAGS
12077 LDFLAGS=$save_LDFLAGS
12078 LIBS=$save_LIBS
12079 ;;
12080 esac
12081
12082 case $lt_cv_dlopen_self in
12083 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12084 *) enable_dlopen_self=unknown ;;
12085 esac
12086
12087 case $lt_cv_dlopen_self_static in
12088 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12089 *) enable_dlopen_self_static=unknown ;;
12090 esac
12091 fi
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109 striplib=
12110 old_striplib=
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12112 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12113 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12114 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12115 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12117 $as_echo "yes" >&6; }
12118 else
12119 # FIXME - insert some real tests, host_os isn't really good enough
12120 case $host_os in
12121 darwin*)
12122 if test -n "$STRIP"; then
12123 striplib="$STRIP -x"
12124 old_striplib="$STRIP -S"
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12126 $as_echo "yes" >&6; }
12127 else
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129 $as_echo "no" >&6; }
12130 fi
12131 ;;
12132 *)
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12135 ;;
12136 esac
12137 fi
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150 # Report what library types will actually be built
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12152 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12154 $as_echo "$can_build_shared" >&6; }
12155
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12157 $as_echo_n "checking whether to build shared libraries... " >&6; }
12158 test no = "$can_build_shared" && enable_shared=no
12159
12160 # On AIX, shared libraries and static libraries use the same namespace, and
12161 # are all built from PIC.
12162 case $host_os in
12163 aix3*)
12164 test yes = "$enable_shared" && enable_static=no
12165 if test -n "$RANLIB"; then
12166 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12167 postinstall_cmds='$RANLIB $lib'
12168 fi
12169 ;;
12170
12171 aix[4-9]*)
12172 if test ia64 != "$host_cpu"; then
12173 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12174 yes,aix,yes) ;; # shared object as lib.so file only
12175 yes,svr4,*) ;; # shared object as lib.so archive member only
12176 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12177 esac
12178 fi
12179 ;;
12180 esac
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12182 $as_echo "$enable_shared" >&6; }
12183
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12185 $as_echo_n "checking whether to build static libraries... " >&6; }
12186 # Make sure either enable_shared or enable_static is yes.
12187 test yes = "$enable_shared" || enable_static=yes
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12189 $as_echo "$enable_static" >&6; }
12190
12191
12192
12193
12194 fi
12195 ac_ext=c
12196 ac_cpp='$CPP $CPPFLAGS'
12197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12200
12201 CC=$lt_save_CC
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217 ac_config_commands="$ac_config_commands libtool"
12218
12219
12220
12221
12222 # Only expand once:
12223
12224
12225 ac_ext=c
12226 ac_cpp='$CPP $CPPFLAGS'
12227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12230 if test -n "$ac_tool_prefix"; then
12231 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12232 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234 $as_echo_n "checking for $ac_word... " >&6; }
12235 if ${ac_cv_prog_CC+:} false; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 if test -n "$CC"; then
12239 ac_cv_prog_CC="$CC" # Let the user override the test.
12240 else
12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12243 do
12244 IFS=$as_save_IFS
12245 test -z "$as_dir" && as_dir=.
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12248 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12250 break 2
12251 fi
12252 done
12253 done
12254 IFS=$as_save_IFS
12255
12256 fi
12257 fi
12258 CC=$ac_cv_prog_CC
12259 if test -n "$CC"; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12261 $as_echo "$CC" >&6; }
12262 else
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264 $as_echo "no" >&6; }
12265 fi
12266
12267
12268 fi
12269 if test -z "$ac_cv_prog_CC"; then
12270 ac_ct_CC=$CC
12271 # Extract the first word of "gcc", so it can be a program name with args.
12272 set dummy gcc; ac_word=$2
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274 $as_echo_n "checking for $ac_word... " >&6; }
12275 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 if test -n "$ac_ct_CC"; then
12279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12280 else
12281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282 for as_dir in $PATH
12283 do
12284 IFS=$as_save_IFS
12285 test -z "$as_dir" && as_dir=.
12286 for ac_exec_ext in '' $ac_executable_extensions; do
12287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12288 ac_cv_prog_ac_ct_CC="gcc"
12289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12290 break 2
12291 fi
12292 done
12293 done
12294 IFS=$as_save_IFS
12295
12296 fi
12297 fi
12298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12299 if test -n "$ac_ct_CC"; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12301 $as_echo "$ac_ct_CC" >&6; }
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12305 fi
12306
12307 if test "x$ac_ct_CC" = x; then
12308 CC=""
12309 else
12310 case $cross_compiling:$ac_tool_warned in
12311 yes:)
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12314 ac_tool_warned=yes ;;
12315 esac
12316 CC=$ac_ct_CC
12317 fi
12318 else
12319 CC="$ac_cv_prog_CC"
12320 fi
12321
12322 if test -z "$CC"; then
12323 if test -n "$ac_tool_prefix"; then
12324 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12325 set dummy ${ac_tool_prefix}cc; ac_word=$2
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if ${ac_cv_prog_CC+:} false; then :
12329 $as_echo_n "(cached) " >&6
12330 else
12331 if test -n "$CC"; then
12332 ac_cv_prog_CC="$CC" # Let the user override the test.
12333 else
12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in $PATH
12336 do
12337 IFS=$as_save_IFS
12338 test -z "$as_dir" && as_dir=.
12339 for ac_exec_ext in '' $ac_executable_extensions; do
12340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12341 ac_cv_prog_CC="${ac_tool_prefix}cc"
12342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 break 2
12344 fi
12345 done
12346 done
12347 IFS=$as_save_IFS
12348
12349 fi
12350 fi
12351 CC=$ac_cv_prog_CC
12352 if test -n "$CC"; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12354 $as_echo "$CC" >&6; }
12355 else
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12358 fi
12359
12360
12361 fi
12362 fi
12363 if test -z "$CC"; then
12364 # Extract the first word of "cc", so it can be a program name with args.
12365 set dummy cc; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367 $as_echo_n "checking for $ac_word... " >&6; }
12368 if ${ac_cv_prog_CC+:} false; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12371 if test -n "$CC"; then
12372 ac_cv_prog_CC="$CC" # Let the user override the test.
12373 else
12374 ac_prog_rejected=no
12375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376 for as_dir in $PATH
12377 do
12378 IFS=$as_save_IFS
12379 test -z "$as_dir" && as_dir=.
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12382 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12383 ac_prog_rejected=yes
12384 continue
12385 fi
12386 ac_cv_prog_CC="cc"
12387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388 break 2
12389 fi
12390 done
12391 done
12392 IFS=$as_save_IFS
12393
12394 if test $ac_prog_rejected = yes; then
12395 # We found a bogon in the path, so make sure we never use it.
12396 set dummy $ac_cv_prog_CC
12397 shift
12398 if test $# != 0; then
12399 # We chose a different compiler from the bogus one.
12400 # However, it has the same basename, so the bogon will be chosen
12401 # first if we set CC to just the basename; use the full file name.
12402 shift
12403 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12404 fi
12405 fi
12406 fi
12407 fi
12408 CC=$ac_cv_prog_CC
12409 if test -n "$CC"; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12411 $as_echo "$CC" >&6; }
12412 else
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12415 fi
12416
12417
12418 fi
12419 if test -z "$CC"; then
12420 if test -n "$ac_tool_prefix"; then
12421 for ac_prog in cl.exe
12422 do
12423 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12424 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426 $as_echo_n "checking for $ac_word... " >&6; }
12427 if ${ac_cv_prog_CC+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 if test -n "$CC"; then
12431 ac_cv_prog_CC="$CC" # Let the user override the test.
12432 else
12433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12435 do
12436 IFS=$as_save_IFS
12437 test -z "$as_dir" && as_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12440 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 break 2
12443 fi
12444 done
12445 done
12446 IFS=$as_save_IFS
12447
12448 fi
12449 fi
12450 CC=$ac_cv_prog_CC
12451 if test -n "$CC"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12453 $as_echo "$CC" >&6; }
12454 else
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12457 fi
12458
12459
12460 test -n "$CC" && break
12461 done
12462 fi
12463 if test -z "$CC"; then
12464 ac_ct_CC=$CC
12465 for ac_prog in cl.exe
12466 do
12467 # Extract the first word of "$ac_prog", so it can be a program name with args.
12468 set dummy $ac_prog; ac_word=$2
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12470 $as_echo_n "checking for $ac_word... " >&6; }
12471 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12472 $as_echo_n "(cached) " >&6
12473 else
12474 if test -n "$ac_ct_CC"; then
12475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12476 else
12477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12478 for as_dir in $PATH
12479 do
12480 IFS=$as_save_IFS
12481 test -z "$as_dir" && as_dir=.
12482 for ac_exec_ext in '' $ac_executable_extensions; do
12483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12484 ac_cv_prog_ac_ct_CC="$ac_prog"
12485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12486 break 2
12487 fi
12488 done
12489 done
12490 IFS=$as_save_IFS
12491
12492 fi
12493 fi
12494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12495 if test -n "$ac_ct_CC"; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12497 $as_echo "$ac_ct_CC" >&6; }
12498 else
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500 $as_echo "no" >&6; }
12501 fi
12502
12503
12504 test -n "$ac_ct_CC" && break
12505 done
12506
12507 if test "x$ac_ct_CC" = x; then
12508 CC=""
12509 else
12510 case $cross_compiling:$ac_tool_warned in
12511 yes:)
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12514 ac_tool_warned=yes ;;
12515 esac
12516 CC=$ac_ct_CC
12517 fi
12518 fi
12519
12520 fi
12521
12522
12523 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12525 as_fn_error $? "no acceptable C compiler found in \$PATH
12526 See \`config.log' for more details" "$LINENO" 5; }
12527
12528 # Provide some information about the compiler.
12529 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12530 set X $ac_compile
12531 ac_compiler=$2
12532 for ac_option in --version -v -V -qversion; do
12533 { { ac_try="$ac_compiler $ac_option >&5"
12534 case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12537 esac
12538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12539 $as_echo "$ac_try_echo"; } >&5
12540 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12541 ac_status=$?
12542 if test -s conftest.err; then
12543 sed '10a\
12544 ... rest of stderr output deleted ...
12545 10q' conftest.err >conftest.er1
12546 cat conftest.er1 >&5
12547 fi
12548 rm -f conftest.er1 conftest.err
12549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12550 test $ac_status = 0; }
12551 done
12552
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12554 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12555 if ${ac_cv_c_compiler_gnu+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560
12561 int
12562 main ()
12563 {
12564 #ifndef __GNUC__
12565 choke me
12566 #endif
12567
12568 ;
12569 return 0;
12570 }
12571 _ACEOF
12572 if ac_fn_c_try_compile "$LINENO"; then :
12573 ac_compiler_gnu=yes
12574 else
12575 ac_compiler_gnu=no
12576 fi
12577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12579
12580 fi
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12582 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12583 if test $ac_compiler_gnu = yes; then
12584 GCC=yes
12585 else
12586 GCC=
12587 fi
12588 ac_test_CFLAGS=${CFLAGS+set}
12589 ac_save_CFLAGS=$CFLAGS
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12591 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12592 if ${ac_cv_prog_cc_g+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 ac_save_c_werror_flag=$ac_c_werror_flag
12596 ac_c_werror_flag=yes
12597 ac_cv_prog_cc_g=no
12598 CFLAGS="-g"
12599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12601
12602 int
12603 main ()
12604 {
12605
12606 ;
12607 return 0;
12608 }
12609 _ACEOF
12610 if ac_fn_c_try_compile "$LINENO"; then :
12611 ac_cv_prog_cc_g=yes
12612 else
12613 CFLAGS=""
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12616
12617 int
12618 main ()
12619 {
12620
12621 ;
12622 return 0;
12623 }
12624 _ACEOF
12625 if ac_fn_c_try_compile "$LINENO"; then :
12626
12627 else
12628 ac_c_werror_flag=$ac_save_c_werror_flag
12629 CFLAGS="-g"
12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12632
12633 int
12634 main ()
12635 {
12636
12637 ;
12638 return 0;
12639 }
12640 _ACEOF
12641 if ac_fn_c_try_compile "$LINENO"; then :
12642 ac_cv_prog_cc_g=yes
12643 fi
12644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12645 fi
12646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12647 fi
12648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12649 ac_c_werror_flag=$ac_save_c_werror_flag
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12652 $as_echo "$ac_cv_prog_cc_g" >&6; }
12653 if test "$ac_test_CFLAGS" = set; then
12654 CFLAGS=$ac_save_CFLAGS
12655 elif test $ac_cv_prog_cc_g = yes; then
12656 if test "$GCC" = yes; then
12657 CFLAGS="-g -O2"
12658 else
12659 CFLAGS="-g"
12660 fi
12661 else
12662 if test "$GCC" = yes; then
12663 CFLAGS="-O2"
12664 else
12665 CFLAGS=
12666 fi
12667 fi
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12669 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12670 if ${ac_cv_prog_cc_c89+:} false; then :
12671 $as_echo_n "(cached) " >&6
12672 else
12673 ac_cv_prog_cc_c89=no
12674 ac_save_CC=$CC
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677 #include <stdarg.h>
12678 #include <stdio.h>
12679 struct stat;
12680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12681 struct buf { int x; };
12682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12683 static char *e (p, i)
12684 char **p;
12685 int i;
12686 {
12687 return p[i];
12688 }
12689 static char *f (char * (*g) (char **, int), char **p, ...)
12690 {
12691 char *s;
12692 va_list v;
12693 va_start (v,p);
12694 s = g (p, va_arg (v,int));
12695 va_end (v);
12696 return s;
12697 }
12698
12699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12700 function prototypes and stuff, but not '\xHH' hex character constants.
12701 These don't provoke an error unfortunately, instead are silently treated
12702 as 'x'. The following induces an error, until -std is added to get
12703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12704 array size at least. It's necessary to write '\x00'==0 to get something
12705 that's true only with -std. */
12706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12707
12708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12709 inside strings and character constants. */
12710 #define FOO(x) 'x'
12711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12712
12713 int test (int i, double x);
12714 struct s1 {int (*f) (int a);};
12715 struct s2 {int (*f) (double a);};
12716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12717 int argc;
12718 char **argv;
12719 int
12720 main ()
12721 {
12722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12723 ;
12724 return 0;
12725 }
12726 _ACEOF
12727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12729 do
12730 CC="$ac_save_CC $ac_arg"
12731 if ac_fn_c_try_compile "$LINENO"; then :
12732 ac_cv_prog_cc_c89=$ac_arg
12733 fi
12734 rm -f core conftest.err conftest.$ac_objext
12735 test "x$ac_cv_prog_cc_c89" != "xno" && break
12736 done
12737 rm -f conftest.$ac_ext
12738 CC=$ac_save_CC
12739
12740 fi
12741 # AC_CACHE_VAL
12742 case "x$ac_cv_prog_cc_c89" in
12743 x)
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12745 $as_echo "none needed" >&6; } ;;
12746 xno)
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12748 $as_echo "unsupported" >&6; } ;;
12749 *)
12750 CC="$CC $ac_cv_prog_cc_c89"
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12752 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12753 esac
12754 if test "x$ac_cv_prog_cc_c89" != xno; then :
12755
12756 fi
12757
12758 ac_ext=c
12759 ac_cpp='$CPP $CPPFLAGS'
12760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12763
12764 ac_ext=c
12765 ac_cpp='$CPP $CPPFLAGS'
12766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12770 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12771 if ${am_cv_prog_cc_c_o+:} false; then :
12772 $as_echo_n "(cached) " >&6
12773 else
12774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h. */
12776
12777 int
12778 main ()
12779 {
12780
12781 ;
12782 return 0;
12783 }
12784 _ACEOF
12785 # Make sure it works both with $CC and with simple cc.
12786 # Following AC_PROG_CC_C_O, we do the test twice because some
12787 # compilers refuse to overwrite an existing .o file with -o,
12788 # though they will create one.
12789 am_cv_prog_cc_c_o=yes
12790 for am_i in 1 2; do
12791 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12792 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } \
12796 && test -f conftest2.$ac_objext; then
12797 : OK
12798 else
12799 am_cv_prog_cc_c_o=no
12800 break
12801 fi
12802 done
12803 rm -f core conftest*
12804 unset am_i
12805 fi
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12807 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12808 if test "$am_cv_prog_cc_c_o" != yes; then
12809 # Losing compiler, so override with the script.
12810 # FIXME: It is wrong to rewrite CC.
12811 # But if we don't then we get into trouble of one sort or another.
12812 # A longer-term fix would be to have automake use am__CC in this case,
12813 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12814 CC="$am_aux_dir/compile $CC"
12815 fi
12816 ac_ext=c
12817 ac_cpp='$CPP $CPPFLAGS'
12818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12821
12822
12823 depcc="$CC" am_compiler_list=
12824
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12826 $as_echo_n "checking dependency style of $depcc... " >&6; }
12827 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12828 $as_echo_n "(cached) " >&6
12829 else
12830 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12831 # We make a subdir and do the tests there. Otherwise we can end up
12832 # making bogus files that we don't know about and never remove. For
12833 # instance it was reported that on HP-UX the gcc test will end up
12834 # making a dummy file named 'D' -- because '-MD' means "put the output
12835 # in D".
12836 rm -rf conftest.dir
12837 mkdir conftest.dir
12838 # Copy depcomp to subdir because otherwise we won't find it if we're
12839 # using a relative directory.
12840 cp "$am_depcomp" conftest.dir
12841 cd conftest.dir
12842 # We will build objects and dependencies in a subdirectory because
12843 # it helps to detect inapplicable dependency modes. For instance
12844 # both Tru64's cc and ICC support -MD to output dependencies as a
12845 # side effect of compilation, but ICC will put the dependencies in
12846 # the current directory while Tru64 will put them in the object
12847 # directory.
12848 mkdir sub
12849
12850 am_cv_CC_dependencies_compiler_type=none
12851 if test "$am_compiler_list" = ""; then
12852 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12853 fi
12854 am__universal=false
12855 case " $depcc " in #(
12856 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12857 esac
12858
12859 for depmode in $am_compiler_list; do
12860 # Setup a source with many dependencies, because some compilers
12861 # like to wrap large dependency lists on column 80 (with \), and
12862 # we should not choose a depcomp mode which is confused by this.
12863 #
12864 # We need to recreate these files for each test, as the compiler may
12865 # overwrite some of them when testing with obscure command lines.
12866 # This happens at least with the AIX C compiler.
12867 : > sub/conftest.c
12868 for i in 1 2 3 4 5 6; do
12869 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12870 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12871 # Solaris 10 /bin/sh.
12872 echo '/* dummy */' > sub/conftst$i.h
12873 done
12874 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12875
12876 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12877 # mode. It turns out that the SunPro C++ compiler does not properly
12878 # handle '-M -o', and we need to detect this. Also, some Intel
12879 # versions had trouble with output in subdirs.
12880 am__obj=sub/conftest.${OBJEXT-o}
12881 am__minus_obj="-o $am__obj"
12882 case $depmode in
12883 gcc)
12884 # This depmode causes a compiler race in universal mode.
12885 test "$am__universal" = false || continue
12886 ;;
12887 nosideeffect)
12888 # After this tag, mechanisms are not by side-effect, so they'll
12889 # only be used when explicitly requested.
12890 if test "x$enable_dependency_tracking" = xyes; then
12891 continue
12892 else
12893 break
12894 fi
12895 ;;
12896 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12897 # This compiler won't grok '-c -o', but also, the minuso test has
12898 # not run yet. These depmodes are late enough in the game, and
12899 # so weak that their functioning should not be impacted.
12900 am__obj=conftest.${OBJEXT-o}
12901 am__minus_obj=
12902 ;;
12903 none) break ;;
12904 esac
12905 if depmode=$depmode \
12906 source=sub/conftest.c object=$am__obj \
12907 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12908 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12909 >/dev/null 2>conftest.err &&
12910 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12911 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12912 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12913 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12914 # icc doesn't choke on unknown options, it will just issue warnings
12915 # or remarks (even with -Werror). So we grep stderr for any message
12916 # that says an option was ignored or not supported.
12917 # When given -MP, icc 7.0 and 7.1 complain thusly:
12918 # icc: Command line warning: ignoring option '-M'; no argument required
12919 # The diagnosis changed in icc 8.0:
12920 # icc: Command line remark: option '-MP' not supported
12921 if (grep 'ignoring option' conftest.err ||
12922 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12923 am_cv_CC_dependencies_compiler_type=$depmode
12924 break
12925 fi
12926 fi
12927 done
12928
12929 cd ..
12930 rm -rf conftest.dir
12931 else
12932 am_cv_CC_dependencies_compiler_type=none
12933 fi
12934
12935 fi
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12937 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12938 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12939
12940 if
12941 test "x$enable_dependency_tracking" != xno \
12942 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12943 am__fastdepCC_TRUE=
12944 am__fastdepCC_FALSE='#'
12945 else
12946 am__fastdepCC_TRUE='#'
12947 am__fastdepCC_FALSE=
12948 fi
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12962 if test -n "$ac_tool_prefix"; then
12963 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12964 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12966 $as_echo_n "checking for $ac_word... " >&6; }
12967 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 case $PKG_CONFIG in
12971 [\\/]* | ?:[\\/]*)
12972 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12973 ;;
12974 *)
12975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976 for as_dir in $PATH
12977 do
12978 IFS=$as_save_IFS
12979 test -z "$as_dir" && as_dir=.
12980 for ac_exec_ext in '' $ac_executable_extensions; do
12981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12982 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12984 break 2
12985 fi
12986 done
12987 done
12988 IFS=$as_save_IFS
12989
12990 ;;
12991 esac
12992 fi
12993 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12994 if test -n "$PKG_CONFIG"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12996 $as_echo "$PKG_CONFIG" >&6; }
12997 else
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13000 fi
13001
13002
13003 fi
13004 if test -z "$ac_cv_path_PKG_CONFIG"; then
13005 ac_pt_PKG_CONFIG=$PKG_CONFIG
13006 # Extract the first word of "pkg-config", so it can be a program name with args.
13007 set dummy pkg-config; ac_word=$2
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13009 $as_echo_n "checking for $ac_word... " >&6; }
13010 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13011 $as_echo_n "(cached) " >&6
13012 else
13013 case $ac_pt_PKG_CONFIG in
13014 [\\/]* | ?:[\\/]*)
13015 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13016 ;;
13017 *)
13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH
13020 do
13021 IFS=$as_save_IFS
13022 test -z "$as_dir" && as_dir=.
13023 for ac_exec_ext in '' $ac_executable_extensions; do
13024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13025 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027 break 2
13028 fi
13029 done
13030 done
13031 IFS=$as_save_IFS
13032
13033 ;;
13034 esac
13035 fi
13036 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13037 if test -n "$ac_pt_PKG_CONFIG"; then
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13039 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13040 else
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042 $as_echo "no" >&6; }
13043 fi
13044
13045 if test "x$ac_pt_PKG_CONFIG" = x; then
13046 PKG_CONFIG=""
13047 else
13048 case $cross_compiling:$ac_tool_warned in
13049 yes:)
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13052 ac_tool_warned=yes ;;
13053 esac
13054 PKG_CONFIG=$ac_pt_PKG_CONFIG
13055 fi
13056 else
13057 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13058 fi
13059
13060 fi
13061 if test -n "$PKG_CONFIG"; then
13062 _pkg_min_version=0.9.0
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13064 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13065 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13067 $as_echo "yes" >&6; }
13068 else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13071 PKG_CONFIG=""
13072 fi
13073 fi
13074
13075 case "${target}" in
13076 *-*-mingw*)
13077 mingw=yes
13078 esac
13079 if test "x$mingw" = "xyes" ; then
13080 MINGW_TRUE=
13081 MINGW_FALSE='#'
13082 else
13083 MINGW_TRUE='#'
13084 MINGW_FALSE=
13085 fi
13086
13087
13088 ac_config_files="$ac_config_files Makefile libqrencode.pc tests/Makefile qrencode.1"
13089
13090
13091 for ac_func in strdup
13092 do :
13093 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13094 if test "x$ac_cv_func_strdup" = xyes; then :
13095 cat >>confdefs.h <<_ACEOF
13096 #define HAVE_STRDUP 1
13097 _ACEOF
13098
13099 fi
13100 done
13101
13102
13103 # Check whether --enable-thread-safety was given.
13104 if test "${enable_thread_safety+set}" = set; then :
13105 enableval=$enable_thread_safety;
13106 else
13107 enable_thread_safety=yes
13108 fi
13109
13110
13111 if test x$enable_thread_safety = xyes; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
13113 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
13114 if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
13115 $as_echo_n "(cached) " >&6
13116 else
13117 ac_check_lib_save_LIBS=$LIBS
13118 LIBS="-lpthread $LIBS"
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h. */
13121
13122 /* Override any GCC internal prototype to avoid an error.
13123 Use char because int might match the return type of a GCC
13124 builtin and then its argument prototype would still apply. */
13125 #ifdef __cplusplus
13126 extern "C"
13127 #endif
13128 char pthread_mutex_init ();
13129 int
13130 main ()
13131 {
13132 return pthread_mutex_init ();
13133 ;
13134 return 0;
13135 }
13136 _ACEOF
13137 if ac_fn_c_try_link "$LINENO"; then :
13138 ac_cv_lib_pthread_pthread_mutex_init=yes
13139 else
13140 ac_cv_lib_pthread_pthread_mutex_init=no
13141 fi
13142 rm -f core conftest.err conftest.$ac_objext \
13143 conftest$ac_exeext conftest.$ac_ext
13144 LIBS=$ac_check_lib_save_LIBS
13145 fi
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13147 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13148 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
13149 LIBPTHREAD=-lpthread
13150
13151 fi
13152
13153 fi
13154 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = "xyes" ; then
13155 HAVE_LIBPTHREAD_TRUE=
13156 HAVE_LIBPTHREAD_FALSE='#'
13157 else
13158 HAVE_LIBPTHREAD_TRUE='#'
13159 HAVE_LIBPTHREAD_FALSE=
13160 fi
13161
13162 # FIXME: isn't it able to integrate the followings to AC_CHECK_LIB?
13163 if test x$ac_cv_lib_pthread_pthread_mutex_init = xyes ; then
13164
13165 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
13166
13167 CFLAGS="$CFLAGS -pthread"
13168 fi
13169
13170
13171 # Check whether --with-png was given.
13172 if test "${with_png+set}" = set; then :
13173 withval=$with_png; with_png=$withval
13174 else
13175 with_png=yes
13176 fi
13177
13178
13179
13180 # Check whether --with-tools was given.
13181 if test "${with_tools+set}" = set; then :
13182 withval=$with_tools; build_tools=$withval
13183 else
13184 build_tools=yes
13185 fi
13186
13187
13188 if test "x$build_tools" = "xyes" ; then
13189 BUILD_TOOLS_TRUE=
13190 BUILD_TOOLS_FALSE='#'
13191 else
13192 BUILD_TOOLS_TRUE='#'
13193 BUILD_TOOLS_FALSE=
13194 fi
13195
13196 if test x$build_tools = xyes && test x$with_png = xyes ; then
13197
13198 pkg_failed=no
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png" >&5
13200 $as_echo_n "checking for png... " >&6; }
13201
13202 if test -n "$png_CFLAGS"; then
13203 pkg_cv_png_CFLAGS="$png_CFLAGS"
13204 elif test -n "$PKG_CONFIG"; then
13205 if test -n "$PKG_CONFIG" && \
13206 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"libpng\"\""; } >&5
13207 ($PKG_CONFIG --exists --print-errors ""libpng"") 2>&5
13208 ac_status=$?
13209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13210 test $ac_status = 0; }; then
13211 pkg_cv_png_CFLAGS=`$PKG_CONFIG --cflags ""libpng"" 2>/dev/null`
13212 test "x$?" != "x0" && pkg_failed=yes
13213 else
13214 pkg_failed=yes
13215 fi
13216 else
13217 pkg_failed=untried
13218 fi
13219 if test -n "$png_LIBS"; then
13220 pkg_cv_png_LIBS="$png_LIBS"
13221 elif test -n "$PKG_CONFIG"; then
13222 if test -n "$PKG_CONFIG" && \
13223 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"libpng\"\""; } >&5
13224 ($PKG_CONFIG --exists --print-errors ""libpng"") 2>&5
13225 ac_status=$?
13226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13227 test $ac_status = 0; }; then
13228 pkg_cv_png_LIBS=`$PKG_CONFIG --libs ""libpng"" 2>/dev/null`
13229 test "x$?" != "x0" && pkg_failed=yes
13230 else
13231 pkg_failed=yes
13232 fi
13233 else
13234 pkg_failed=untried
13235 fi
13236
13237
13238
13239 if test $pkg_failed = yes; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 $as_echo "no" >&6; }
13242
13243 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13244 _pkg_short_errors_supported=yes
13245 else
13246 _pkg_short_errors_supported=no
13247 fi
13248 if test $_pkg_short_errors_supported = yes; then
13249 png_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""libpng"" 2>&1`
13250 else
13251 png_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""libpng"" 2>&1`
13252 fi
13253 # Put the nasty error message in config.log where it belongs
13254 echo "$png_PKG_ERRORS" >&5
13255
13256 $as_echo "#define HAVE_PNG 0" >>confdefs.h
13257
13258 elif test $pkg_failed = untried; then
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13261 $as_echo "#define HAVE_PNG 0" >>confdefs.h
13262
13263 else
13264 png_CFLAGS=$pkg_cv_png_CFLAGS
13265 png_LIBS=$pkg_cv_png_LIBS
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13267 $as_echo "yes" >&6; }
13268
13269 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13270
13271 fi
13272 if test "x$png_CFLAGS" = "x" && test x$with_png = xyes ; then
13273 echo "
13274 !!!!!!!!!!
13275 LIBPNG is required to build the utility tools. Temporarily disabled.
13276 !!!!!!!!!!
13277 "
13278 fi
13279 fi
13280 if test "x$png_CFLAGS" != "x" ; then
13281 HAVE_PNG_TRUE=
13282 HAVE_PNG_FALSE='#'
13283 else
13284 HAVE_PNG_TRUE='#'
13285 HAVE_PNG_FALSE=
13286 fi
13287
13288
13289
13290 # Check whether --with-tests was given.
13291 if test "${with_tests+set}" = set; then :
13292 withval=$with_tests; build_tests=$withval
13293 else
13294 build_tests=no
13295 fi
13296
13297
13298 if test "x$build_tests" = "xyes" ; then
13299 BUILD_TESTS_TRUE=
13300 BUILD_TESTS_FALSE='#'
13301 else
13302 BUILD_TESTS_TRUE='#'
13303 BUILD_TESTS_FALSE=
13304 fi
13305
13306
13307 if test x$build_tests = xyes ; then
13308 echo "#define STATIC_IN_RELEASE" >>confdefs.h
13309 echo "#define WITH_TESTS 1" >>confdefs.h
13310 else
13311 echo "#define STATIC_IN_RELEASE static" >>confdefs.h
13312 echo "/* #undef WITH_TESTS */" >>confdefs.h
13313 fi
13314
13315 if test x$build_tests = xyes ; then
13316 SDL_REQUIRED_VERSION=2.0.0
13317
13318 pkg_failed=no
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
13320 $as_echo_n "checking for SDL... " >&6; }
13321
13322 if test -n "$SDL_CFLAGS"; then
13323 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13324 elif test -n "$PKG_CONFIG"; then
13325 if test -n "$PKG_CONFIG" && \
13326 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$SDL_REQUIRED_VERSION\""; } >&5
13327 ($PKG_CONFIG --exists --print-errors "sdl2 >= $SDL_REQUIRED_VERSION") 2>&5
13328 ac_status=$?
13329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13330 test $ac_status = 0; }; then
13331 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $SDL_REQUIRED_VERSION" 2>/dev/null`
13332 test "x$?" != "x0" && pkg_failed=yes
13333 else
13334 pkg_failed=yes
13335 fi
13336 else
13337 pkg_failed=untried
13338 fi
13339 if test -n "$SDL_LIBS"; then
13340 pkg_cv_SDL_LIBS="$SDL_LIBS"
13341 elif test -n "$PKG_CONFIG"; then
13342 if test -n "$PKG_CONFIG" && \
13343 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$SDL_REQUIRED_VERSION\""; } >&5
13344 ($PKG_CONFIG --exists --print-errors "sdl2 >= $SDL_REQUIRED_VERSION") 2>&5
13345 ac_status=$?
13346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13347 test $ac_status = 0; }; then
13348 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $SDL_REQUIRED_VERSION" 2>/dev/null`
13349 test "x$?" != "x0" && pkg_failed=yes
13350 else
13351 pkg_failed=yes
13352 fi
13353 else
13354 pkg_failed=untried
13355 fi
13356
13357
13358
13359 if test $pkg_failed = yes; then
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361 $as_echo "no" >&6; }
13362
13363 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13364 _pkg_short_errors_supported=yes
13365 else
13366 _pkg_short_errors_supported=no
13367 fi
13368 if test $_pkg_short_errors_supported = yes; then
13369 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2 >= $SDL_REQUIRED_VERSION" 2>&1`
13370 else
13371 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2 >= $SDL_REQUIRED_VERSION" 2>&1`
13372 fi
13373 # Put the nasty error message in config.log where it belongs
13374 echo "$SDL_PKG_ERRORS" >&5
13375
13376 $as_echo "#define HAVE_SDL 0" >>confdefs.h
13377
13378 elif test $pkg_failed = untried; then
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380 $as_echo "no" >&6; }
13381 $as_echo "#define HAVE_SDL 0" >>confdefs.h
13382
13383 else
13384 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13385 SDL_LIBS=$pkg_cv_SDL_LIBS
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13387 $as_echo "yes" >&6; }
13388
13389 $as_echo "#define HAVE_SDL 1" >>confdefs.h
13390
13391 fi
13392
13393 if test "X$prefix" = "XNONE"; then
13394 acl_final_prefix="$ac_default_prefix"
13395 else
13396 acl_final_prefix="$prefix"
13397 fi
13398 if test "X$exec_prefix" = "XNONE"; then
13399 acl_final_exec_prefix='${prefix}'
13400 else
13401 acl_final_exec_prefix="$exec_prefix"
13402 fi
13403 acl_save_prefix="$prefix"
13404 prefix="$acl_final_prefix"
13405 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13406 prefix="$acl_save_prefix"
13407
13408
13409
13410 # Check whether --with-gnu-ld was given.
13411 if test "${with_gnu_ld+set}" = set; then :
13412 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13413 else
13414 with_gnu_ld=no
13415 fi
13416
13417 # Prepare PATH_SEPARATOR.
13418 # The user is always right.
13419 if test "${PATH_SEPARATOR+set}" != set; then
13420 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13421 # contains only /bin. Note that ksh looks also at the FPATH variable,
13422 # so we have to set that as well for the test.
13423 PATH_SEPARATOR=:
13424 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13425 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13426 || PATH_SEPARATOR=';'
13427 }
13428 fi
13429
13430 ac_prog=ld
13431 if test "$GCC" = yes; then
13432 # Check if gcc -print-prog-name=ld gives a path.
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13434 $as_echo_n "checking for ld used by $CC... " >&6; }
13435 case $host in
13436 *-*-mingw*)
13437 # gcc leaves a trailing carriage return which upsets mingw
13438 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13439 *)
13440 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13441 esac
13442 case $ac_prog in
13443 # Accept absolute paths.
13444 [\\/]* | ?:[\\/]*)
13445 re_direlt='/[^/][^/]*/\.\./'
13446 # Canonicalize the pathname of ld
13447 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13448 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13449 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13450 done
13451 test -z "$LD" && LD="$ac_prog"
13452 ;;
13453 "")
13454 # If it fails, then pretend we aren't using GCC.
13455 ac_prog=ld
13456 ;;
13457 *)
13458 # If it is relative, then search for the first ld in PATH.
13459 with_gnu_ld=unknown
13460 ;;
13461 esac
13462 elif test "$with_gnu_ld" = yes; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13464 $as_echo_n "checking for GNU ld... " >&6; }
13465 else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13467 $as_echo_n "checking for non-GNU ld... " >&6; }
13468 fi
13469 if ${acl_cv_path_LD+:} false; then :
13470 $as_echo_n "(cached) " >&6
13471 else
13472 if test -z "$LD"; then
13473 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13474 for ac_dir in $PATH; do
13475 IFS="$acl_save_ifs"
13476 test -z "$ac_dir" && ac_dir=.
13477 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13478 acl_cv_path_LD="$ac_dir/$ac_prog"
13479 # Check to see if the program is GNU ld. I'd rather use --version,
13480 # but apparently some variants of GNU ld only accept -v.
13481 # Break only if it was the GNU/non-GNU ld that we prefer.
13482 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13483 *GNU* | *'with BFD'*)
13484 test "$with_gnu_ld" != no && break
13485 ;;
13486 *)
13487 test "$with_gnu_ld" != yes && break
13488 ;;
13489 esac
13490 fi
13491 done
13492 IFS="$acl_save_ifs"
13493 else
13494 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13495 fi
13496 fi
13497
13498 LD="$acl_cv_path_LD"
13499 if test -n "$LD"; then
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13501 $as_echo "$LD" >&6; }
13502 else
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13505 fi
13506 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13508 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13509 if ${acl_cv_prog_gnu_ld+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13513 case `$LD -v 2>&1 </dev/null` in
13514 *GNU* | *'with BFD'*)
13515 acl_cv_prog_gnu_ld=yes
13516 ;;
13517 *)
13518 acl_cv_prog_gnu_ld=no
13519 ;;
13520 esac
13521 fi
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13523 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13524 with_gnu_ld=$acl_cv_prog_gnu_ld
13525
13526
13527
13528
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13530 $as_echo_n "checking for shared library run path origin... " >&6; }
13531 if ${acl_cv_rpath+:} false; then :
13532 $as_echo_n "(cached) " >&6
13533 else
13534
13535 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13536 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13537 . ./conftest.sh
13538 rm -f ./conftest.sh
13539 acl_cv_rpath=done
13540
13541 fi
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13543 $as_echo "$acl_cv_rpath" >&6; }
13544 wl="$acl_cv_wl"
13545 acl_libext="$acl_cv_libext"
13546 acl_shlibext="$acl_cv_shlibext"
13547 acl_libname_spec="$acl_cv_libname_spec"
13548 acl_library_names_spec="$acl_cv_library_names_spec"
13549 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13550 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13551 acl_hardcode_direct="$acl_cv_hardcode_direct"
13552 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13553 # Check whether --enable-rpath was given.
13554 if test "${enable_rpath+set}" = set; then :
13555 enableval=$enable_rpath; :
13556 else
13557 enable_rpath=yes
13558 fi
13559
13560
13561
13562
13563 acl_libdirstem=lib
13564 acl_libdirstem2=
13565 case "$host_os" in
13566 solaris*)
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13568 $as_echo_n "checking for 64-bit host... " >&6; }
13569 if ${gl_cv_solaris_64bit+:} false; then :
13570 $as_echo_n "(cached) " >&6
13571 else
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13574
13575 #ifdef _LP64
13576 sixtyfour bits
13577 #endif
13578
13579 _ACEOF
13580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13581 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13582 gl_cv_solaris_64bit=yes
13583 else
13584 gl_cv_solaris_64bit=no
13585 fi
13586 rm -f conftest*
13587
13588
13589 fi
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13591 $as_echo "$gl_cv_solaris_64bit" >&6; }
13592 if test $gl_cv_solaris_64bit = yes; then
13593 acl_libdirstem=lib/64
13594 case "$host_cpu" in
13595 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13596 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13597 esac
13598 fi
13599 ;;
13600 *)
13601 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13602 if test -n "$searchpath"; then
13603 acl_save_IFS="${IFS= }"; IFS=":"
13604 for searchdir in $searchpath; do
13605 if test -d "$searchdir"; then
13606 case "$searchdir" in
13607 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13608 */../ | */.. )
13609 # Better ignore directories of this form. They are misleading.
13610 ;;
13611 *) searchdir=`cd "$searchdir" && pwd`
13612 case "$searchdir" in
13613 */lib64 ) acl_libdirstem=lib64 ;;
13614 esac ;;
13615 esac
13616 fi
13617 done
13618 IFS="$acl_save_IFS"
13619 fi
13620 ;;
13621 esac
13622 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635 use_additional=yes
13636
13637 acl_save_prefix="$prefix"
13638 prefix="$acl_final_prefix"
13639 acl_save_exec_prefix="$exec_prefix"
13640 exec_prefix="$acl_final_exec_prefix"
13641
13642 eval additional_includedir=\"$includedir\"
13643 eval additional_libdir=\"$libdir\"
13644
13645 exec_prefix="$acl_save_exec_prefix"
13646 prefix="$acl_save_prefix"
13647
13648
13649 # Check whether --with-libiconv-prefix was given.
13650 if test "${with_libiconv_prefix+set}" = set; then :
13651 withval=$with_libiconv_prefix;
13652 if test "X$withval" = "Xno"; then
13653 use_additional=no
13654 else
13655 if test "X$withval" = "X"; then
13656
13657 acl_save_prefix="$prefix"
13658 prefix="$acl_final_prefix"
13659 acl_save_exec_prefix="$exec_prefix"
13660 exec_prefix="$acl_final_exec_prefix"
13661
13662 eval additional_includedir=\"$includedir\"
13663 eval additional_libdir=\"$libdir\"
13664
13665 exec_prefix="$acl_save_exec_prefix"
13666 prefix="$acl_save_prefix"
13667
13668 else
13669 additional_includedir="$withval/include"
13670 additional_libdir="$withval/$acl_libdirstem"
13671 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13672 && ! test -d "$withval/$acl_libdirstem"; then
13673 additional_libdir="$withval/$acl_libdirstem2"
13674 fi
13675 fi
13676 fi
13677
13678 fi
13679
13680 LIBICONV=
13681 LTLIBICONV=
13682 INCICONV=
13683 LIBICONV_PREFIX=
13684 HAVE_LIBICONV=
13685 rpathdirs=
13686 ltrpathdirs=
13687 names_already_handled=
13688 names_next_round='iconv '
13689 while test -n "$names_next_round"; do
13690 names_this_round="$names_next_round"
13691 names_next_round=
13692 for name in $names_this_round; do
13693 already_handled=
13694 for n in $names_already_handled; do
13695 if test "$n" = "$name"; then
13696 already_handled=yes
13697 break
13698 fi
13699 done
13700 if test -z "$already_handled"; then
13701 names_already_handled="$names_already_handled $name"
13702 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13703 eval value=\"\$HAVE_LIB$uppername\"
13704 if test -n "$value"; then
13705 if test "$value" = yes; then
13706 eval value=\"\$LIB$uppername\"
13707 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13708 eval value=\"\$LTLIB$uppername\"
13709 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13710 else
13711 :
13712 fi
13713 else
13714 found_dir=
13715 found_la=
13716 found_so=
13717 found_a=
13718 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13719 if test -n "$acl_shlibext"; then
13720 shrext=".$acl_shlibext" # typically: shrext=.so
13721 else
13722 shrext=
13723 fi
13724 if test $use_additional = yes; then
13725 dir="$additional_libdir"
13726 if test -n "$acl_shlibext"; then
13727 if test -f "$dir/$libname$shrext"; then
13728 found_dir="$dir"
13729 found_so="$dir/$libname$shrext"
13730 else
13731 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13732 ver=`(cd "$dir" && \
13733 for f in "$libname$shrext".*; do echo "$f"; done \
13734 | sed -e "s,^$libname$shrext\\\\.,," \
13735 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13736 | sed 1q ) 2>/dev/null`
13737 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13738 found_dir="$dir"
13739 found_so="$dir/$libname$shrext.$ver"
13740 fi
13741 else
13742 eval library_names=\"$acl_library_names_spec\"
13743 for f in $library_names; do
13744 if test -f "$dir/$f"; then
13745 found_dir="$dir"
13746 found_so="$dir/$f"
13747 break
13748 fi
13749 done
13750 fi
13751 fi
13752 fi
13753 if test "X$found_dir" = "X"; then
13754 if test -f "$dir/$libname.$acl_libext"; then
13755 found_dir="$dir"
13756 found_a="$dir/$libname.$acl_libext"
13757 fi
13758 fi
13759 if test "X$found_dir" != "X"; then
13760 if test -f "$dir/$libname.la"; then
13761 found_la="$dir/$libname.la"
13762 fi
13763 fi
13764 fi
13765 if test "X$found_dir" = "X"; then
13766 for x in $LDFLAGS $LTLIBICONV; do
13767
13768 acl_save_prefix="$prefix"
13769 prefix="$acl_final_prefix"
13770 acl_save_exec_prefix="$exec_prefix"
13771 exec_prefix="$acl_final_exec_prefix"
13772 eval x=\"$x\"
13773 exec_prefix="$acl_save_exec_prefix"
13774 prefix="$acl_save_prefix"
13775
13776 case "$x" in
13777 -L*)
13778 dir=`echo "X$x" | sed -e 's/^X-L//'`
13779 if test -n "$acl_shlibext"; then
13780 if test -f "$dir/$libname$shrext"; then
13781 found_dir="$dir"
13782 found_so="$dir/$libname$shrext"
13783 else
13784 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13785 ver=`(cd "$dir" && \
13786 for f in "$libname$shrext".*; do echo "$f"; done \
13787 | sed -e "s,^$libname$shrext\\\\.,," \
13788 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13789 | sed 1q ) 2>/dev/null`
13790 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13791 found_dir="$dir"
13792 found_so="$dir/$libname$shrext.$ver"
13793 fi
13794 else
13795 eval library_names=\"$acl_library_names_spec\"
13796 for f in $library_names; do
13797 if test -f "$dir/$f"; then
13798 found_dir="$dir"
13799 found_so="$dir/$f"
13800 break
13801 fi
13802 done
13803 fi
13804 fi
13805 fi
13806 if test "X$found_dir" = "X"; then
13807 if test -f "$dir/$libname.$acl_libext"; then
13808 found_dir="$dir"
13809 found_a="$dir/$libname.$acl_libext"
13810 fi
13811 fi
13812 if test "X$found_dir" != "X"; then
13813 if test -f "$dir/$libname.la"; then
13814 found_la="$dir/$libname.la"
13815 fi
13816 fi
13817 ;;
13818 esac
13819 if test "X$found_dir" != "X"; then
13820 break
13821 fi
13822 done
13823 fi
13824 if test "X$found_dir" != "X"; then
13825 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13826 if test "X$found_so" != "X"; then
13827 if test "$enable_rpath" = no \
13828 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13829 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13830 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13831 else
13832 haveit=
13833 for x in $ltrpathdirs; do
13834 if test "X$x" = "X$found_dir"; then
13835 haveit=yes
13836 break
13837 fi
13838 done
13839 if test -z "$haveit"; then
13840 ltrpathdirs="$ltrpathdirs $found_dir"
13841 fi
13842 if test "$acl_hardcode_direct" = yes; then
13843 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13844 else
13845 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13846 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13847 haveit=
13848 for x in $rpathdirs; do
13849 if test "X$x" = "X$found_dir"; then
13850 haveit=yes
13851 break
13852 fi
13853 done
13854 if test -z "$haveit"; then
13855 rpathdirs="$rpathdirs $found_dir"
13856 fi
13857 else
13858 haveit=
13859 for x in $LDFLAGS $LIBICONV; do
13860
13861 acl_save_prefix="$prefix"
13862 prefix="$acl_final_prefix"
13863 acl_save_exec_prefix="$exec_prefix"
13864 exec_prefix="$acl_final_exec_prefix"
13865 eval x=\"$x\"
13866 exec_prefix="$acl_save_exec_prefix"
13867 prefix="$acl_save_prefix"
13868
13869 if test "X$x" = "X-L$found_dir"; then
13870 haveit=yes
13871 break
13872 fi
13873 done
13874 if test -z "$haveit"; then
13875 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13876 fi
13877 if test "$acl_hardcode_minus_L" != no; then
13878 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13879 else
13880 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13881 fi
13882 fi
13883 fi
13884 fi
13885 else
13886 if test "X$found_a" != "X"; then
13887 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13888 else
13889 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13890 fi
13891 fi
13892 additional_includedir=
13893 case "$found_dir" in
13894 */$acl_libdirstem | */$acl_libdirstem/)
13895 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13896 if test "$name" = 'iconv'; then
13897 LIBICONV_PREFIX="$basedir"
13898 fi
13899 additional_includedir="$basedir/include"
13900 ;;
13901 */$acl_libdirstem2 | */$acl_libdirstem2/)
13902 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13903 if test "$name" = 'iconv'; then
13904 LIBICONV_PREFIX="$basedir"
13905 fi
13906 additional_includedir="$basedir/include"
13907 ;;
13908 esac
13909 if test "X$additional_includedir" != "X"; then
13910 if test "X$additional_includedir" != "X/usr/include"; then
13911 haveit=
13912 if test "X$additional_includedir" = "X/usr/local/include"; then
13913 if test -n "$GCC"; then
13914 case $host_os in
13915 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13916 esac
13917 fi
13918 fi
13919 if test -z "$haveit"; then
13920 for x in $CPPFLAGS $INCICONV; do
13921
13922 acl_save_prefix="$prefix"
13923 prefix="$acl_final_prefix"
13924 acl_save_exec_prefix="$exec_prefix"
13925 exec_prefix="$acl_final_exec_prefix"
13926 eval x=\"$x\"
13927 exec_prefix="$acl_save_exec_prefix"
13928 prefix="$acl_save_prefix"
13929
13930 if test "X$x" = "X-I$additional_includedir"; then
13931 haveit=yes
13932 break
13933 fi
13934 done
13935 if test -z "$haveit"; then
13936 if test -d "$additional_includedir"; then
13937 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13938 fi
13939 fi
13940 fi
13941 fi
13942 fi
13943 if test -n "$found_la"; then
13944 save_libdir="$libdir"
13945 case "$found_la" in
13946 */* | *\\*) . "$found_la" ;;
13947 *) . "./$found_la" ;;
13948 esac
13949 libdir="$save_libdir"
13950 for dep in $dependency_libs; do
13951 case "$dep" in
13952 -L*)
13953 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13954 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13955 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13956 haveit=
13957 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13958 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13959 if test -n "$GCC"; then
13960 case $host_os in
13961 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13962 esac
13963 fi
13964 fi
13965 if test -z "$haveit"; then
13966 haveit=
13967 for x in $LDFLAGS $LIBICONV; do
13968
13969 acl_save_prefix="$prefix"
13970 prefix="$acl_final_prefix"
13971 acl_save_exec_prefix="$exec_prefix"
13972 exec_prefix="$acl_final_exec_prefix"
13973 eval x=\"$x\"
13974 exec_prefix="$acl_save_exec_prefix"
13975 prefix="$acl_save_prefix"
13976
13977 if test "X$x" = "X-L$additional_libdir"; then
13978 haveit=yes
13979 break
13980 fi
13981 done
13982 if test -z "$haveit"; then
13983 if test -d "$additional_libdir"; then
13984 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13985 fi
13986 fi
13987 haveit=
13988 for x in $LDFLAGS $LTLIBICONV; do
13989
13990 acl_save_prefix="$prefix"
13991 prefix="$acl_final_prefix"
13992 acl_save_exec_prefix="$exec_prefix"
13993 exec_prefix="$acl_final_exec_prefix"
13994 eval x=\"$x\"
13995 exec_prefix="$acl_save_exec_prefix"
13996 prefix="$acl_save_prefix"
13997
13998 if test "X$x" = "X-L$additional_libdir"; then
13999 haveit=yes
14000 break
14001 fi
14002 done
14003 if test -z "$haveit"; then
14004 if test -d "$additional_libdir"; then
14005 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14006 fi
14007 fi
14008 fi
14009 fi
14010 ;;
14011 -R*)
14012 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14013 if test "$enable_rpath" != no; then
14014 haveit=
14015 for x in $rpathdirs; do
14016 if test "X$x" = "X$dir"; then
14017 haveit=yes
14018 break
14019 fi
14020 done
14021 if test -z "$haveit"; then
14022 rpathdirs="$rpathdirs $dir"
14023 fi
14024 haveit=
14025 for x in $ltrpathdirs; do
14026 if test "X$x" = "X$dir"; then
14027 haveit=yes
14028 break
14029 fi
14030 done
14031 if test -z "$haveit"; then
14032 ltrpathdirs="$ltrpathdirs $dir"
14033 fi
14034 fi
14035 ;;
14036 -l*)
14037 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14038 ;;
14039 *.la)
14040 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14041 ;;
14042 *)
14043 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14044 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14045 ;;
14046 esac
14047 done
14048 fi
14049 else
14050 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14051 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14052 fi
14053 fi
14054 fi
14055 done
14056 done
14057 if test "X$rpathdirs" != "X"; then
14058 if test -n "$acl_hardcode_libdir_separator"; then
14059 alldirs=
14060 for found_dir in $rpathdirs; do
14061 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14062 done
14063 acl_save_libdir="$libdir"
14064 libdir="$alldirs"
14065 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14066 libdir="$acl_save_libdir"
14067 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14068 else
14069 for found_dir in $rpathdirs; do
14070 acl_save_libdir="$libdir"
14071 libdir="$found_dir"
14072 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14073 libdir="$acl_save_libdir"
14074 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14075 done
14076 fi
14077 fi
14078 if test "X$ltrpathdirs" != "X"; then
14079 for found_dir in $ltrpathdirs; do
14080 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14081 done
14082 fi
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094 am_save_CPPFLAGS="$CPPFLAGS"
14095
14096 for element in $INCICONV; do
14097 haveit=
14098 for x in $CPPFLAGS; do
14099
14100 acl_save_prefix="$prefix"
14101 prefix="$acl_final_prefix"
14102 acl_save_exec_prefix="$exec_prefix"
14103 exec_prefix="$acl_final_exec_prefix"
14104 eval x=\"$x\"
14105 exec_prefix="$acl_save_exec_prefix"
14106 prefix="$acl_save_prefix"
14107
14108 if test "X$x" = "X$element"; then
14109 haveit=yes
14110 break
14111 fi
14112 done
14113 if test -z "$haveit"; then
14114 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14115 fi
14116 done
14117
14118
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14120 $as_echo_n "checking for iconv... " >&6; }
14121 if ${am_cv_func_iconv+:} false; then :
14122 $as_echo_n "(cached) " >&6
14123 else
14124
14125 am_cv_func_iconv="no, consider installing GNU libiconv"
14126 am_cv_lib_iconv=no
14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128 /* end confdefs.h. */
14129
14130 #include <stdlib.h>
14131 #include <iconv.h>
14132
14133 int
14134 main ()
14135 {
14136 iconv_t cd = iconv_open("","");
14137 iconv(cd,NULL,NULL,NULL,NULL);
14138 iconv_close(cd);
14139 ;
14140 return 0;
14141 }
14142 _ACEOF
14143 if ac_fn_c_try_link "$LINENO"; then :
14144 am_cv_func_iconv=yes
14145 fi
14146 rm -f core conftest.err conftest.$ac_objext \
14147 conftest$ac_exeext conftest.$ac_ext
14148 if test "$am_cv_func_iconv" != yes; then
14149 am_save_LIBS="$LIBS"
14150 LIBS="$LIBS $LIBICONV"
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14153
14154 #include <stdlib.h>
14155 #include <iconv.h>
14156
14157 int
14158 main ()
14159 {
14160 iconv_t cd = iconv_open("","");
14161 iconv(cd,NULL,NULL,NULL,NULL);
14162 iconv_close(cd);
14163 ;
14164 return 0;
14165 }
14166 _ACEOF
14167 if ac_fn_c_try_link "$LINENO"; then :
14168 am_cv_lib_iconv=yes
14169 am_cv_func_iconv=yes
14170 fi
14171 rm -f core conftest.err conftest.$ac_objext \
14172 conftest$ac_exeext conftest.$ac_ext
14173 LIBS="$am_save_LIBS"
14174 fi
14175
14176 fi
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14178 $as_echo "$am_cv_func_iconv" >&6; }
14179 if test "$am_cv_func_iconv" = yes; then
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14181 $as_echo_n "checking for working iconv... " >&6; }
14182 if ${am_cv_func_iconv_works+:} false; then :
14183 $as_echo_n "(cached) " >&6
14184 else
14185
14186 am_save_LIBS="$LIBS"
14187 if test $am_cv_lib_iconv = yes; then
14188 LIBS="$LIBS $LIBICONV"
14189 fi
14190 am_cv_func_iconv_works=no
14191 for ac_iconv_const in '' 'const'; do
14192 if test "$cross_compiling" = yes; then :
14193 case "$host_os" in
14194 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14195 *) am_cv_func_iconv_works="guessing yes" ;;
14196 esac
14197 else
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200
14201 #include <iconv.h>
14202 #include <string.h>
14203
14204 #ifndef ICONV_CONST
14205 # define ICONV_CONST $ac_iconv_const
14206 #endif
14207
14208 int
14209 main ()
14210 {
14211 int result = 0;
14212 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14213 returns. */
14214 {
14215 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14216 if (cd_utf8_to_88591 != (iconv_t)(-1))
14217 {
14218 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14219 char buf[10];
14220 ICONV_CONST char *inptr = input;
14221 size_t inbytesleft = strlen (input);
14222 char *outptr = buf;
14223 size_t outbytesleft = sizeof (buf);
14224 size_t res = iconv (cd_utf8_to_88591,
14225 &inptr, &inbytesleft,
14226 &outptr, &outbytesleft);
14227 if (res == 0)
14228 result |= 1;
14229 iconv_close (cd_utf8_to_88591);
14230 }
14231 }
14232 /* Test against Solaris 10 bug: Failures are not distinguishable from
14233 successful returns. */
14234 {
14235 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14236 if (cd_ascii_to_88591 != (iconv_t)(-1))
14237 {
14238 static ICONV_CONST char input[] = "\263";
14239 char buf[10];
14240 ICONV_CONST char *inptr = input;
14241 size_t inbytesleft = strlen (input);
14242 char *outptr = buf;
14243 size_t outbytesleft = sizeof (buf);
14244 size_t res = iconv (cd_ascii_to_88591,
14245 &inptr, &inbytesleft,
14246 &outptr, &outbytesleft);
14247 if (res == 0)
14248 result |= 2;
14249 iconv_close (cd_ascii_to_88591);
14250 }
14251 }
14252 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14253 {
14254 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14255 if (cd_88591_to_utf8 != (iconv_t)(-1))
14256 {
14257 static ICONV_CONST char input[] = "\304";
14258 static char buf[2] = { (char)0xDE, (char)0xAD };
14259 ICONV_CONST char *inptr = input;
14260 size_t inbytesleft = 1;
14261 char *outptr = buf;
14262 size_t outbytesleft = 1;
14263 size_t res = iconv (cd_88591_to_utf8,
14264 &inptr, &inbytesleft,
14265 &outptr, &outbytesleft);
14266 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14267 result |= 4;
14268 iconv_close (cd_88591_to_utf8);
14269 }
14270 }
14271 #if 0 /* This bug could be worked around by the caller. */
14272 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14273 {
14274 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14275 if (cd_88591_to_utf8 != (iconv_t)(-1))
14276 {
14277 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14278 char buf[50];
14279 ICONV_CONST char *inptr = input;
14280 size_t inbytesleft = strlen (input);
14281 char *outptr = buf;
14282 size_t outbytesleft = sizeof (buf);
14283 size_t res = iconv (cd_88591_to_utf8,
14284 &inptr, &inbytesleft,
14285 &outptr, &outbytesleft);
14286 if ((int)res > 0)
14287 result |= 8;
14288 iconv_close (cd_88591_to_utf8);
14289 }
14290 }
14291 #endif
14292 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14293 provided. */
14294 if (/* Try standardized names. */
14295 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14296 /* Try IRIX, OSF/1 names. */
14297 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14298 /* Try AIX names. */
14299 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14300 /* Try HP-UX names. */
14301 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14302 result |= 16;
14303 return result;
14304
14305 ;
14306 return 0;
14307 }
14308 _ACEOF
14309 if ac_fn_c_try_run "$LINENO"; then :
14310 am_cv_func_iconv_works=yes
14311 fi
14312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14313 conftest.$ac_objext conftest.beam conftest.$ac_ext
14314 fi
14315
14316 test "$am_cv_func_iconv_works" = no || break
14317 done
14318 LIBS="$am_save_LIBS"
14319
14320 fi
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14322 $as_echo "$am_cv_func_iconv_works" >&6; }
14323 case "$am_cv_func_iconv_works" in
14324 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14325 *) am_func_iconv=yes ;;
14326 esac
14327 else
14328 am_func_iconv=no am_cv_lib_iconv=no
14329 fi
14330 if test "$am_func_iconv" = yes; then
14331
14332 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14333
14334 fi
14335 if test "$am_cv_lib_iconv" = yes; then
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14337 $as_echo_n "checking how to link with libiconv... " >&6; }
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14339 $as_echo "$LIBICONV" >&6; }
14340 else
14341 CPPFLAGS="$am_save_CPPFLAGS"
14342 LIBICONV=
14343 LTLIBICONV=
14344 fi
14345
14346
14347
14348 fi
14349 if test "x$SDL_CFLAGS" != "x" ; then
14350 HAVE_SDL_TRUE=
14351 HAVE_SDL_FALSE='#'
14352 else
14353 HAVE_SDL_TRUE='#'
14354 HAVE_SDL_FALSE=
14355 fi
14356
14357
14358
14359 # Check whether --enable-gprof was given.
14360 if test "${enable_gprof+set}" = set; then :
14361 enableval=$enable_gprof;
14362 else
14363 enable_gprof=no
14364 fi
14365
14366
14367 if test x$enable_gprof = xyes; then
14368 CFLAGS="$CFLAGS -g -pg"
14369 fi
14370
14371
14372 # Check whether --enable-gcov was given.
14373 if test "${enable_gcov+set}" = set; then :
14374 enableval=$enable_gcov;
14375 else
14376 enable_gcov=no
14377 fi
14378
14379
14380 if test x$enable_gcov = xyes; then
14381 CFLAGS="$CFLAGS --coverage"
14382 fi
14383
14384
14385 # Check whether --enable-mudflap was given.
14386 if test "${enable_mudflap+set}" = set; then :
14387 enableval=$enable_mudflap;
14388 else
14389 enable_mudflap=no
14390 fi
14391
14392
14393 if test x$enable_mudflap = xyes; then
14394 if test x$enable_thread_safety = xyes; then
14395 CFLAGS="$CFLAGS -fmudflapth"
14396 LDFLAGS="$LDFLAGS -lmudflapth"
14397 else
14398 CFLAGS="$CFLAGS -fmudflap"
14399 LDFLAGS="$LDFLAGS -lmudflap"
14400 fi
14401 fi
14402
14403 # Check whether --enable-asan was given.
14404 if test "${enable_asan+set}" = set; then :
14405 enableval=$enable_asan;
14406 else
14407 enable_asan=no
14408 fi
14409
14410
14411 if test x$enable_asan = xyes; then
14412 CFLAGS="$CFLAGS -fsanitize=address -fno-omit-frame-pointer"
14413 LDFLAGS="$LDFLAGS -fsanitize=address"
14414 fi
14415
14416
14417 CFLAGS="-Wall $CFLAGS"
14418
14419
14420 cat >confcache <<\_ACEOF
14421 # This file is a shell script that caches the results of configure
14422 # tests run on this system so they can be shared between configure
14423 # scripts and configure runs, see configure's option --config-cache.
14424 # It is not useful on other systems. If it contains results you don't
14425 # want to keep, you may remove or edit it.
14426 #
14427 # config.status only pays attention to the cache file if you give it
14428 # the --recheck option to rerun configure.
14429 #
14430 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14431 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14432 # following values.
14433
14434 _ACEOF
14435
14436 # The following way of writing the cache mishandles newlines in values,
14437 # but we know of no workaround that is simple, portable, and efficient.
14438 # So, we kill variables containing newlines.
14439 # Ultrix sh set writes to stderr and can't be redirected directly,
14440 # and sets the high bit in the cache file unless we assign to the vars.
14441 (
14442 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14443 eval ac_val=\$$ac_var
14444 case $ac_val in #(
14445 *${as_nl}*)
14446 case $ac_var in #(
14447 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14448 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14449 esac
14450 case $ac_var in #(
14451 _ | IFS | as_nl) ;; #(
14452 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14453 *) { eval $ac_var=; unset $ac_var;} ;;
14454 esac ;;
14455 esac
14456 done
14457
14458 (set) 2>&1 |
14459 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14460 *${as_nl}ac_space=\ *)
14461 # `set' does not quote correctly, so add quotes: double-quote
14462 # substitution turns \\\\ into \\, and sed turns \\ into \.
14463 sed -n \
14464 "s/'/'\\\\''/g;
14465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14466 ;; #(
14467 *)
14468 # `set' quotes correctly as required by POSIX, so do not add quotes.
14469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14470 ;;
14471 esac |
14472 sort
14473 ) |
14474 sed '
14475 /^ac_cv_env_/b end
14476 t clear
14477 :clear
14478 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14479 t end
14480 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14481 :end' >>confcache
14482 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14483 if test -w "$cache_file"; then
14484 if test "x$cache_file" != "x/dev/null"; then
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14486 $as_echo "$as_me: updating cache $cache_file" >&6;}
14487 if test ! -f "$cache_file" || test -h "$cache_file"; then
14488 cat confcache >"$cache_file"
14489 else
14490 case $cache_file in #(
14491 */* | ?:*)
14492 mv -f confcache "$cache_file"$$ &&
14493 mv -f "$cache_file"$$ "$cache_file" ;; #(
14494 *)
14495 mv -f confcache "$cache_file" ;;
14496 esac
14497 fi
14498 fi
14499 else
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14501 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14502 fi
14503 fi
14504 rm -f confcache
14505
14506 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14507 # Let make expand exec_prefix.
14508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14509
14510 DEFS=-DHAVE_CONFIG_H
14511
14512 ac_libobjs=
14513 ac_ltlibobjs=
14514 U=
14515 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14516 # 1. Remove the extension, and $U if already installed.
14517 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14518 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14519 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14520 # will be set to the directory where LIBOBJS objects are built.
14521 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14522 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14523 done
14524 LIBOBJS=$ac_libobjs
14525
14526 LTLIBOBJS=$ac_ltlibobjs
14527
14528
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14530 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14531 if test -n "$am_sleep_pid"; then
14532 # Hide warnings about reused PIDs.
14533 wait $am_sleep_pid 2>/dev/null
14534 fi
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14536 $as_echo "done" >&6; }
14537 if test -n "$EXEEXT"; then
14538 am__EXEEXT_TRUE=
14539 am__EXEEXT_FALSE='#'
14540 else
14541 am__EXEEXT_TRUE='#'
14542 am__EXEEXT_FALSE=
14543 fi
14544
14545 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14546 as_fn_error $? "conditional \"AMDEP\" was never defined.
14547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14548 fi
14549 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14550 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14552 fi
14553 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14554 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14556 fi
14557 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
14558 as_fn_error $? "conditional \"MINGW\" was never defined.
14559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14560 fi
14561 if test -z "${HAVE_LIBPTHREAD_TRUE}" && test -z "${HAVE_LIBPTHREAD_FALSE}"; then
14562 as_fn_error $? "conditional \"HAVE_LIBPTHREAD\" was never defined.
14563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14564 fi
14565 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
14566 as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
14567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14568 fi
14569 if test -z "${HAVE_PNG_TRUE}" && test -z "${HAVE_PNG_FALSE}"; then
14570 as_fn_error $? "conditional \"HAVE_PNG\" was never defined.
14571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14572 fi
14573 if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
14574 as_fn_error $? "conditional \"BUILD_TESTS\" was never defined.
14575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14576 fi
14577 if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
14578 as_fn_error $? "conditional \"HAVE_SDL\" was never defined.
14579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14580 fi
14581
14582 : "${CONFIG_STATUS=./config.status}"
14583 ac_write_fail=0
14584 ac_clean_files_save=$ac_clean_files
14585 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14587 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14588 as_write_fail=0
14589 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14590 #! $SHELL
14591 # Generated by $as_me.
14592 # Run this file to recreate the current configuration.
14593 # Compiler output produced by configure, useful for debugging
14594 # configure, is in config.log if it exists.
14595
14596 debug=false
14597 ac_cs_recheck=false
14598 ac_cs_silent=false
14599
14600 SHELL=\${CONFIG_SHELL-$SHELL}
14601 export SHELL
14602 _ASEOF
14603 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14604 ## -------------------- ##
14605 ## M4sh Initialization. ##
14606 ## -------------------- ##
14607
14608 # Be more Bourne compatible
14609 DUALCASE=1; export DUALCASE # for MKS sh
14610 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14611 emulate sh
14612 NULLCMD=:
14613 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14614 # is contrary to our usage. Disable this feature.
14615 alias -g '${1+"$@"}'='"$@"'
14616 setopt NO_GLOB_SUBST
14617 else
14618 case `(set -o) 2>/dev/null` in #(
14619 *posix*) :
14620 set -o posix ;; #(
14621 *) :
14622 ;;
14623 esac
14624 fi
14625
14626
14627 as_nl='
14628 '
14629 export as_nl
14630 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14631 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14632 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14633 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14634 # Prefer a ksh shell builtin over an external printf program on Solaris,
14635 # but without wasting forks for bash or zsh.
14636 if test -z "$BASH_VERSION$ZSH_VERSION" \
14637 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14638 as_echo='print -r --'
14639 as_echo_n='print -rn --'
14640 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14641 as_echo='printf %s\n'
14642 as_echo_n='printf %s'
14643 else
14644 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14645 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14646 as_echo_n='/usr/ucb/echo -n'
14647 else
14648 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14649 as_echo_n_body='eval
14650 arg=$1;
14651 case $arg in #(
14652 *"$as_nl"*)
14653 expr "X$arg" : "X\\(.*\\)$as_nl";
14654 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14655 esac;
14656 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14657 '
14658 export as_echo_n_body
14659 as_echo_n='sh -c $as_echo_n_body as_echo'
14660 fi
14661 export as_echo_body
14662 as_echo='sh -c $as_echo_body as_echo'
14663 fi
14664
14665 # The user is always right.
14666 if test "${PATH_SEPARATOR+set}" != set; then
14667 PATH_SEPARATOR=:
14668 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14669 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14670 PATH_SEPARATOR=';'
14671 }
14672 fi
14673
14674
14675 # IFS
14676 # We need space, tab and new line, in precisely that order. Quoting is
14677 # there to prevent editors from complaining about space-tab.
14678 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14679 # splitting by setting IFS to empty value.)
14680 IFS=" "" $as_nl"
14681
14682 # Find who we are. Look in the path if we contain no directory separator.
14683 as_myself=
14684 case $0 in #((
14685 *[\\/]* ) as_myself=$0 ;;
14686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14687 for as_dir in $PATH
14688 do
14689 IFS=$as_save_IFS
14690 test -z "$as_dir" && as_dir=.
14691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14692 done
14693 IFS=$as_save_IFS
14694
14695 ;;
14696 esac
14697 # We did not find ourselves, most probably we were run as `sh COMMAND'
14698 # in which case we are not to be found in the path.
14699 if test "x$as_myself" = x; then
14700 as_myself=$0
14701 fi
14702 if test ! -f "$as_myself"; then
14703 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14704 exit 1
14705 fi
14706
14707 # Unset variables that we do not need and which cause bugs (e.g. in
14708 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14709 # suppresses any "Segmentation fault" message there. '((' could
14710 # trigger a bug in pdksh 5.2.14.
14711 for as_var in BASH_ENV ENV MAIL MAILPATH
14712 do eval test x\${$as_var+set} = xset \
14713 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14714 done
14715 PS1='$ '
14716 PS2='> '
14717 PS4='+ '
14718
14719 # NLS nuisances.
14720 LC_ALL=C
14721 export LC_ALL
14722 LANGUAGE=C
14723 export LANGUAGE
14724
14725 # CDPATH.
14726 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14727
14728
14729 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14730 # ----------------------------------------
14731 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14732 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14733 # script with STATUS, using 1 if that was 0.
14734 as_fn_error ()
14735 {
14736 as_status=$1; test $as_status -eq 0 && as_status=1
14737 if test "$4"; then
14738 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14739 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14740 fi
14741 $as_echo "$as_me: error: $2" >&2
14742 as_fn_exit $as_status
14743 } # as_fn_error
14744
14745
14746 # as_fn_set_status STATUS
14747 # -----------------------
14748 # Set $? to STATUS, without forking.
14749 as_fn_set_status ()
14750 {
14751 return $1
14752 } # as_fn_set_status
14753
14754 # as_fn_exit STATUS
14755 # -----------------
14756 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14757 as_fn_exit ()
14758 {
14759 set +e
14760 as_fn_set_status $1
14761 exit $1
14762 } # as_fn_exit
14763
14764 # as_fn_unset VAR
14765 # ---------------
14766 # Portably unset VAR.
14767 as_fn_unset ()
14768 {
14769 { eval $1=; unset $1;}
14770 }
14771 as_unset=as_fn_unset
14772 # as_fn_append VAR VALUE
14773 # ----------------------
14774 # Append the text in VALUE to the end of the definition contained in VAR. Take
14775 # advantage of any shell optimizations that allow amortized linear growth over
14776 # repeated appends, instead of the typical quadratic growth present in naive
14777 # implementations.
14778 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14779 eval 'as_fn_append ()
14780 {
14781 eval $1+=\$2
14782 }'
14783 else
14784 as_fn_append ()
14785 {
14786 eval $1=\$$1\$2
14787 }
14788 fi # as_fn_append
14789
14790 # as_fn_arith ARG...
14791 # ------------------
14792 # Perform arithmetic evaluation on the ARGs, and store the result in the
14793 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14794 # must be portable across $(()) and expr.
14795 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14796 eval 'as_fn_arith ()
14797 {
14798 as_val=$(( $* ))
14799 }'
14800 else
14801 as_fn_arith ()
14802 {
14803 as_val=`expr "$@" || test $? -eq 1`
14804 }
14805 fi # as_fn_arith
14806
14807
14808 if expr a : '\(a\)' >/dev/null 2>&1 &&
14809 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14810 as_expr=expr
14811 else
14812 as_expr=false
14813 fi
14814
14815 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14816 as_basename=basename
14817 else
14818 as_basename=false
14819 fi
14820
14821 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14822 as_dirname=dirname
14823 else
14824 as_dirname=false
14825 fi
14826
14827 as_me=`$as_basename -- "$0" ||
14828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14829 X"$0" : 'X\(//\)$' \| \
14830 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14831 $as_echo X/"$0" |
14832 sed '/^.*\/\([^/][^/]*\)\/*$/{
14833 s//\1/
14834 q
14835 }
14836 /^X\/\(\/\/\)$/{
14837 s//\1/
14838 q
14839 }
14840 /^X\/\(\/\).*/{
14841 s//\1/
14842 q
14843 }
14844 s/.*/./; q'`
14845
14846 # Avoid depending upon Character Ranges.
14847 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14848 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14849 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14850 as_cr_digits='0123456789'
14851 as_cr_alnum=$as_cr_Letters$as_cr_digits
14852
14853 ECHO_C= ECHO_N= ECHO_T=
14854 case `echo -n x` in #(((((
14855 -n*)
14856 case `echo 'xy\c'` in
14857 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14858 xy) ECHO_C='\c';;
14859 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14860 ECHO_T=' ';;
14861 esac;;
14862 *)
14863 ECHO_N='-n';;
14864 esac
14865
14866 rm -f conf$$ conf$$.exe conf$$.file
14867 if test -d conf$$.dir; then
14868 rm -f conf$$.dir/conf$$.file
14869 else
14870 rm -f conf$$.dir
14871 mkdir conf$$.dir 2>/dev/null
14872 fi
14873 if (echo >conf$$.file) 2>/dev/null; then
14874 if ln -s conf$$.file conf$$ 2>/dev/null; then
14875 as_ln_s='ln -s'
14876 # ... but there are two gotchas:
14877 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14878 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14879 # In both cases, we have to default to `cp -pR'.
14880 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14881 as_ln_s='cp -pR'
14882 elif ln conf$$.file conf$$ 2>/dev/null; then
14883 as_ln_s=ln
14884 else
14885 as_ln_s='cp -pR'
14886 fi
14887 else
14888 as_ln_s='cp -pR'
14889 fi
14890 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14891 rmdir conf$$.dir 2>/dev/null
14892
14893
14894 # as_fn_mkdir_p
14895 # -------------
14896 # Create "$as_dir" as a directory, including parents if necessary.
14897 as_fn_mkdir_p ()
14898 {
14899
14900 case $as_dir in #(
14901 -*) as_dir=./$as_dir;;
14902 esac
14903 test -d "$as_dir" || eval $as_mkdir_p || {
14904 as_dirs=
14905 while :; do
14906 case $as_dir in #(
14907 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14908 *) as_qdir=$as_dir;;
14909 esac
14910 as_dirs="'$as_qdir' $as_dirs"
14911 as_dir=`$as_dirname -- "$as_dir" ||
14912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14913 X"$as_dir" : 'X\(//\)[^/]' \| \
14914 X"$as_dir" : 'X\(//\)$' \| \
14915 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14916 $as_echo X"$as_dir" |
14917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14918 s//\1/
14919 q
14920 }
14921 /^X\(\/\/\)[^/].*/{
14922 s//\1/
14923 q
14924 }
14925 /^X\(\/\/\)$/{
14926 s//\1/
14927 q
14928 }
14929 /^X\(\/\).*/{
14930 s//\1/
14931 q
14932 }
14933 s/.*/./; q'`
14934 test -d "$as_dir" && break
14935 done
14936 test -z "$as_dirs" || eval "mkdir $as_dirs"
14937 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14938
14939
14940 } # as_fn_mkdir_p
14941 if mkdir -p . 2>/dev/null; then
14942 as_mkdir_p='mkdir -p "$as_dir"'
14943 else
14944 test -d ./-p && rmdir ./-p
14945 as_mkdir_p=false
14946 fi
14947
14948
14949 # as_fn_executable_p FILE
14950 # -----------------------
14951 # Test if FILE is an executable regular file.
14952 as_fn_executable_p ()
14953 {
14954 test -f "$1" && test -x "$1"
14955 } # as_fn_executable_p
14956 as_test_x='test -x'
14957 as_executable_p=as_fn_executable_p
14958
14959 # Sed expression to map a string onto a valid CPP name.
14960 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14961
14962 # Sed expression to map a string onto a valid variable name.
14963 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14964
14965
14966 exec 6>&1
14967 ## ----------------------------------- ##
14968 ## Main body of $CONFIG_STATUS script. ##
14969 ## ----------------------------------- ##
14970 _ASEOF
14971 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14972
14973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14974 # Save the log message, to keep $0 and so on meaningful, and to
14975 # report actual input values of CONFIG_FILES etc. instead of their
14976 # values after options handling.
14977 ac_log="
14978 This file was extended by QRencode $as_me 4.1.1, which was
14979 generated by GNU Autoconf 2.69. Invocation command line was
14980
14981 CONFIG_FILES = $CONFIG_FILES
14982 CONFIG_HEADERS = $CONFIG_HEADERS
14983 CONFIG_LINKS = $CONFIG_LINKS
14984 CONFIG_COMMANDS = $CONFIG_COMMANDS
14985 $ $0 $@
14986
14987 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14988 "
14989
14990 _ACEOF
14991
14992 case $ac_config_files in *"
14993 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14994 esac
14995
14996 case $ac_config_headers in *"
14997 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14998 esac
14999
15000
15001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15002 # Files that config.status was made for.
15003 config_files="$ac_config_files"
15004 config_headers="$ac_config_headers"
15005 config_commands="$ac_config_commands"
15006
15007 _ACEOF
15008
15009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15010 ac_cs_usage="\
15011 \`$as_me' instantiates files and other configuration actions
15012 from templates according to the current configuration. Unless the files
15013 and actions are specified as TAGs, all are instantiated by default.
15014
15015 Usage: $0 [OPTION]... [TAG]...
15016
15017 -h, --help print this help, then exit
15018 -V, --version print version number and configuration settings, then exit
15019 --config print configuration, then exit
15020 -q, --quiet, --silent
15021 do not print progress messages
15022 -d, --debug don't remove temporary files
15023 --recheck update $as_me by reconfiguring in the same conditions
15024 --file=FILE[:TEMPLATE]
15025 instantiate the configuration file FILE
15026 --header=FILE[:TEMPLATE]
15027 instantiate the configuration header FILE
15028
15029 Configuration files:
15030 $config_files
15031
15032 Configuration headers:
15033 $config_headers
15034
15035 Configuration commands:
15036 $config_commands
15037
15038 Report bugs to the package provider."
15039
15040 _ACEOF
15041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15042 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15043 ac_cs_version="\\
15044 QRencode config.status 4.1.1
15045 configured by $0, generated by GNU Autoconf 2.69,
15046 with options \\"\$ac_cs_config\\"
15047
15048 Copyright (C) 2012 Free Software Foundation, Inc.
15049 This config.status script is free software; the Free Software Foundation
15050 gives unlimited permission to copy, distribute and modify it."
15051
15052 ac_pwd='$ac_pwd'
15053 srcdir='$srcdir'
15054 INSTALL='$INSTALL'
15055 MKDIR_P='$MKDIR_P'
15056 AWK='$AWK'
15057 test -n "\$AWK" || AWK=awk
15058 _ACEOF
15059
15060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15061 # The default lists apply if the user does not specify any file.
15062 ac_need_defaults=:
15063 while test $# != 0
15064 do
15065 case $1 in
15066 --*=?*)
15067 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15068 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15069 ac_shift=:
15070 ;;
15071 --*=)
15072 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15073 ac_optarg=
15074 ac_shift=:
15075 ;;
15076 *)
15077 ac_option=$1
15078 ac_optarg=$2
15079 ac_shift=shift
15080 ;;
15081 esac
15082
15083 case $ac_option in
15084 # Handling of the options.
15085 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15086 ac_cs_recheck=: ;;
15087 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15088 $as_echo "$ac_cs_version"; exit ;;
15089 --config | --confi | --conf | --con | --co | --c )
15090 $as_echo "$ac_cs_config"; exit ;;
15091 --debug | --debu | --deb | --de | --d | -d )
15092 debug=: ;;
15093 --file | --fil | --fi | --f )
15094 $ac_shift
15095 case $ac_optarg in
15096 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15097 '') as_fn_error $? "missing file argument" ;;
15098 esac
15099 as_fn_append CONFIG_FILES " '$ac_optarg'"
15100 ac_need_defaults=false;;
15101 --header | --heade | --head | --hea )
15102 $ac_shift
15103 case $ac_optarg in
15104 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15105 esac
15106 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15107 ac_need_defaults=false;;
15108 --he | --h)
15109 # Conflict between --help and --header
15110 as_fn_error $? "ambiguous option: \`$1'
15111 Try \`$0 --help' for more information.";;
15112 --help | --hel | -h )
15113 $as_echo "$ac_cs_usage"; exit ;;
15114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15115 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15116 ac_cs_silent=: ;;
15117
15118 # This is an error.
15119 -*) as_fn_error $? "unrecognized option: \`$1'
15120 Try \`$0 --help' for more information." ;;
15121
15122 *) as_fn_append ac_config_targets " $1"
15123 ac_need_defaults=false ;;
15124
15125 esac
15126 shift
15127 done
15128
15129 ac_configure_extra_args=
15130
15131 if $ac_cs_silent; then
15132 exec 6>/dev/null
15133 ac_configure_extra_args="$ac_configure_extra_args --silent"
15134 fi
15135
15136 _ACEOF
15137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15138 if \$ac_cs_recheck; then
15139 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15140 shift
15141 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15142 CONFIG_SHELL='$SHELL'
15143 export CONFIG_SHELL
15144 exec "\$@"
15145 fi
15146
15147 _ACEOF
15148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15149 exec 5>>config.log
15150 {
15151 echo
15152 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15153 ## Running $as_me. ##
15154 _ASBOX
15155 $as_echo "$ac_log"
15156 } >&5
15157
15158 _ACEOF
15159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15160 #
15161 # INIT-COMMANDS
15162 #
15163 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15164
15165
15166 # The HP-UX ksh and POSIX shell print the target directory to stdout
15167 # if CDPATH is set.
15168 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15169
15170 sed_quote_subst='$sed_quote_subst'
15171 double_quote_subst='$double_quote_subst'
15172 delay_variable_subst='$delay_variable_subst'
15173 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15174 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15175 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15176 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15177 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15178 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15179 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15180 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15181 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15182 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15183 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15184 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15185 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15186 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15187 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15188 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15189 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15190 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15191 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15192 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15193 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15194 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15195 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15196 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15197 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15198 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15199 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15200 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15201 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15202 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15203 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15204 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15205 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15206 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15207 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15208 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15209 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15210 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15211 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15212 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15213 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15214 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15215 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15216 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15217 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15218 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15219 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15220 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15221 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15222 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15223 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15224 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15225 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15226 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15227 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15228 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15229 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15230 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15231 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15232 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15233 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15234 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15235 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15236 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15237 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15238 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15239 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15240 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15241 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15242 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15243 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15244 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15245 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15246 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15247 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15248 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15249 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15250 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15251 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15252 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15253 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15254 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15255 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15256 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15257 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15258 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15259 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15260 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15261 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15262 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15263 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15264 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15265 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15266 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15267 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15268 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15269 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15270 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15271 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15272 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15273 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15274 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15275 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15276 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15277 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15278 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15279 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15280 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15281 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15282 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15283 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15284 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15285 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15286 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15287 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15288 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15289 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15290 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15291 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15292 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15293 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15294 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15295 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15296 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15297 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15298 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15299 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15300 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15301 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15302 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15303 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15304 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15305 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15306 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15307 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15308
15309 LTCC='$LTCC'
15310 LTCFLAGS='$LTCFLAGS'
15311 compiler='$compiler_DEFAULT'
15312
15313 # A function that is used when there is no print builtin or printf.
15314 func_fallback_echo ()
15315 {
15316 eval 'cat <<_LTECHO_EOF
15317 \$1
15318 _LTECHO_EOF'
15319 }
15320
15321 # Quote evaled strings.
15322 for var in SHELL \
15323 ECHO \
15324 PATH_SEPARATOR \
15325 SED \
15326 GREP \
15327 EGREP \
15328 FGREP \
15329 LD \
15330 NM \
15331 LN_S \
15332 lt_SP2NL \
15333 lt_NL2SP \
15334 reload_flag \
15335 OBJDUMP \
15336 deplibs_check_method \
15337 file_magic_cmd \
15338 file_magic_glob \
15339 want_nocaseglob \
15340 DLLTOOL \
15341 sharedlib_from_linklib_cmd \
15342 AR \
15343 AR_FLAGS \
15344 archiver_list_spec \
15345 STRIP \
15346 RANLIB \
15347 CC \
15348 CFLAGS \
15349 compiler \
15350 lt_cv_sys_global_symbol_pipe \
15351 lt_cv_sys_global_symbol_to_cdecl \
15352 lt_cv_sys_global_symbol_to_import \
15353 lt_cv_sys_global_symbol_to_c_name_address \
15354 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15355 lt_cv_nm_interface \
15356 nm_file_list_spec \
15357 lt_cv_truncate_bin \
15358 lt_prog_compiler_no_builtin_flag \
15359 lt_prog_compiler_pic \
15360 lt_prog_compiler_wl \
15361 lt_prog_compiler_static \
15362 lt_cv_prog_compiler_c_o \
15363 need_locks \
15364 MANIFEST_TOOL \
15365 DSYMUTIL \
15366 NMEDIT \
15367 LIPO \
15368 OTOOL \
15369 OTOOL64 \
15370 shrext_cmds \
15371 export_dynamic_flag_spec \
15372 whole_archive_flag_spec \
15373 compiler_needs_object \
15374 with_gnu_ld \
15375 allow_undefined_flag \
15376 no_undefined_flag \
15377 hardcode_libdir_flag_spec \
15378 hardcode_libdir_separator \
15379 exclude_expsyms \
15380 include_expsyms \
15381 file_list_spec \
15382 variables_saved_for_relink \
15383 libname_spec \
15384 library_names_spec \
15385 soname_spec \
15386 install_override_mode \
15387 finish_eval \
15388 old_striplib \
15389 striplib; do
15390 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15391 *[\\\\\\\`\\"\\\$]*)
15392 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15393 ;;
15394 *)
15395 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15396 ;;
15397 esac
15398 done
15399
15400 # Double-quote double-evaled strings.
15401 for var in reload_cmds \
15402 old_postinstall_cmds \
15403 old_postuninstall_cmds \
15404 old_archive_cmds \
15405 extract_expsyms_cmds \
15406 old_archive_from_new_cmds \
15407 old_archive_from_expsyms_cmds \
15408 archive_cmds \
15409 archive_expsym_cmds \
15410 module_cmds \
15411 module_expsym_cmds \
15412 export_symbols_cmds \
15413 prelink_cmds \
15414 postlink_cmds \
15415 postinstall_cmds \
15416 postuninstall_cmds \
15417 finish_cmds \
15418 sys_lib_search_path_spec \
15419 configure_time_dlsearch_path \
15420 configure_time_lt_sys_library_path; do
15421 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15422 *[\\\\\\\`\\"\\\$]*)
15423 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15424 ;;
15425 *)
15426 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15427 ;;
15428 esac
15429 done
15430
15431 ac_aux_dir='$ac_aux_dir'
15432
15433 # See if we are running on zsh, and set the options that allow our
15434 # commands through without removal of \ escapes INIT.
15435 if test -n "\${ZSH_VERSION+set}"; then
15436 setopt NO_GLOB_SUBST
15437 fi
15438
15439
15440 PACKAGE='$PACKAGE'
15441 VERSION='$VERSION'
15442 RM='$RM'
15443 ofile='$ofile'
15444
15445
15446
15447
15448 _ACEOF
15449
15450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15451
15452 # Handling of arguments.
15453 for ac_config_target in $ac_config_targets
15454 do
15455 case $ac_config_target in
15456 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15457 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15458 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15459 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15460 "libqrencode.pc") CONFIG_FILES="$CONFIG_FILES libqrencode.pc" ;;
15461 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15462 "qrencode.1") CONFIG_FILES="$CONFIG_FILES qrencode.1" ;;
15463
15464 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15465 esac
15466 done
15467
15468
15469 # If the user did not use the arguments to specify the items to instantiate,
15470 # then the envvar interface is used. Set only those that are not.
15471 # We use the long form for the default assignment because of an extremely
15472 # bizarre bug on SunOS 4.1.3.
15473 if $ac_need_defaults; then
15474 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15475 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15476 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15477 fi
15478
15479 # Have a temporary directory for convenience. Make it in the build tree
15480 # simply because there is no reason against having it here, and in addition,
15481 # creating and moving files from /tmp can sometimes cause problems.
15482 # Hook for its removal unless debugging.
15483 # Note that there is a small window in which the directory will not be cleaned:
15484 # after its creation but before its name has been assigned to `$tmp'.
15485 $debug ||
15486 {
15487 tmp= ac_tmp=
15488 trap 'exit_status=$?
15489 : "${ac_tmp:=$tmp}"
15490 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15491 ' 0
15492 trap 'as_fn_exit 1' 1 2 13 15
15493 }
15494 # Create a (secure) tmp directory for tmp files.
15495
15496 {
15497 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15498 test -d "$tmp"
15499 } ||
15500 {
15501 tmp=./conf$$-$RANDOM
15502 (umask 077 && mkdir "$tmp")
15503 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15504 ac_tmp=$tmp
15505
15506 # Set up the scripts for CONFIG_FILES section.
15507 # No need to generate them if there are no CONFIG_FILES.
15508 # This happens for instance with `./config.status config.h'.
15509 if test -n "$CONFIG_FILES"; then
15510
15511
15512 ac_cr=`echo X | tr X '\015'`
15513 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15514 # But we know of no other shell where ac_cr would be empty at this
15515 # point, so we can use a bashism as a fallback.
15516 if test "x$ac_cr" = x; then
15517 eval ac_cr=\$\'\\r\'
15518 fi
15519 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15520 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15521 ac_cs_awk_cr='\\r'
15522 else
15523 ac_cs_awk_cr=$ac_cr
15524 fi
15525
15526 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15527 _ACEOF
15528
15529
15530 {
15531 echo "cat >conf$$subs.awk <<_ACEOF" &&
15532 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15533 echo "_ACEOF"
15534 } >conf$$subs.sh ||
15535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15536 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15537 ac_delim='%!_!# '
15538 for ac_last_try in false false false false false :; do
15539 . ./conf$$subs.sh ||
15540 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15541
15542 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15543 if test $ac_delim_n = $ac_delim_num; then
15544 break
15545 elif $ac_last_try; then
15546 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15547 else
15548 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15549 fi
15550 done
15551 rm -f conf$$subs.sh
15552
15553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15554 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15555 _ACEOF
15556 sed -n '
15557 h
15558 s/^/S["/; s/!.*/"]=/
15559 p
15560 g
15561 s/^[^!]*!//
15562 :repl
15563 t repl
15564 s/'"$ac_delim"'$//
15565 t delim
15566 :nl
15567 h
15568 s/\(.\{148\}\)..*/\1/
15569 t more1
15570 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15571 p
15572 n
15573 b repl
15574 :more1
15575 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15576 p
15577 g
15578 s/.\{148\}//
15579 t nl
15580 :delim
15581 h
15582 s/\(.\{148\}\)..*/\1/
15583 t more2
15584 s/["\\]/\\&/g; s/^/"/; s/$/"/
15585 p
15586 b
15587 :more2
15588 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15589 p
15590 g
15591 s/.\{148\}//
15592 t delim
15593 ' <conf$$subs.awk | sed '
15594 /^[^""]/{
15595 N
15596 s/\n//
15597 }
15598 ' >>$CONFIG_STATUS || ac_write_fail=1
15599 rm -f conf$$subs.awk
15600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15601 _ACAWK
15602 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15603 for (key in S) S_is_set[key] = 1
15604 FS = ""
15605
15606 }
15607 {
15608 line = $ 0
15609 nfields = split(line, field, "@")
15610 substed = 0
15611 len = length(field[1])
15612 for (i = 2; i < nfields; i++) {
15613 key = field[i]
15614 keylen = length(key)
15615 if (S_is_set[key]) {
15616 value = S[key]
15617 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15618 len += length(value) + length(field[++i])
15619 substed = 1
15620 } else
15621 len += 1 + keylen
15622 }
15623
15624 print line
15625 }
15626
15627 _ACAWK
15628 _ACEOF
15629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15630 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15631 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15632 else
15633 cat
15634 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15635 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15636 _ACEOF
15637
15638 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15639 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15640 # trailing colons and then remove the whole line if VPATH becomes empty
15641 # (actually we leave an empty line to preserve line numbers).
15642 if test "x$srcdir" = x.; then
15643 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15644 h
15645 s///
15646 s/^/:/
15647 s/[ ]*$/:/
15648 s/:\$(srcdir):/:/g
15649 s/:\${srcdir}:/:/g
15650 s/:@srcdir@:/:/g
15651 s/^:*//
15652 s/:*$//
15653 x
15654 s/\(=[ ]*\).*/\1/
15655 G
15656 s/\n//
15657 s/^[^=]*=[ ]*$//
15658 }'
15659 fi
15660
15661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15662 fi # test -n "$CONFIG_FILES"
15663
15664 # Set up the scripts for CONFIG_HEADERS section.
15665 # No need to generate them if there are no CONFIG_HEADERS.
15666 # This happens for instance with `./config.status Makefile'.
15667 if test -n "$CONFIG_HEADERS"; then
15668 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15669 BEGIN {
15670 _ACEOF
15671
15672 # Transform confdefs.h into an awk script `defines.awk', embedded as
15673 # here-document in config.status, that substitutes the proper values into
15674 # config.h.in to produce config.h.
15675
15676 # Create a delimiter string that does not exist in confdefs.h, to ease
15677 # handling of long lines.
15678 ac_delim='%!_!# '
15679 for ac_last_try in false false :; do
15680 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15681 if test -z "$ac_tt"; then
15682 break
15683 elif $ac_last_try; then
15684 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15685 else
15686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15687 fi
15688 done
15689
15690 # For the awk script, D is an array of macro values keyed by name,
15691 # likewise P contains macro parameters if any. Preserve backslash
15692 # newline sequences.
15693
15694 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15695 sed -n '
15696 s/.\{148\}/&'"$ac_delim"'/g
15697 t rset
15698 :rset
15699 s/^[ ]*#[ ]*define[ ][ ]*/ /
15700 t def
15701 d
15702 :def
15703 s/\\$//
15704 t bsnl
15705 s/["\\]/\\&/g
15706 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15707 D["\1"]=" \3"/p
15708 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15709 d
15710 :bsnl
15711 s/["\\]/\\&/g
15712 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15713 D["\1"]=" \3\\\\\\n"\\/p
15714 t cont
15715 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15716 t cont
15717 d
15718 :cont
15719 n
15720 s/.\{148\}/&'"$ac_delim"'/g
15721 t clear
15722 :clear
15723 s/\\$//
15724 t bsnlc
15725 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15726 d
15727 :bsnlc
15728 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15729 b cont
15730 ' <confdefs.h | sed '
15731 s/'"$ac_delim"'/"\\\
15732 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15733
15734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15735 for (key in D) D_is_set[key] = 1
15736 FS = ""
15737 }
15738 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15739 line = \$ 0
15740 split(line, arg, " ")
15741 if (arg[1] == "#") {
15742 defundef = arg[2]
15743 mac1 = arg[3]
15744 } else {
15745 defundef = substr(arg[1], 2)
15746 mac1 = arg[2]
15747 }
15748 split(mac1, mac2, "(") #)
15749 macro = mac2[1]
15750 prefix = substr(line, 1, index(line, defundef) - 1)
15751 if (D_is_set[macro]) {
15752 # Preserve the white space surrounding the "#".
15753 print prefix "define", macro P[macro] D[macro]
15754 next
15755 } else {
15756 # Replace #undef with comments. This is necessary, for example,
15757 # in the case of _POSIX_SOURCE, which is predefined and required
15758 # on some systems where configure will not decide to define it.
15759 if (defundef == "undef") {
15760 print "/*", prefix defundef, macro, "*/"
15761 next
15762 }
15763 }
15764 }
15765 { print }
15766 _ACAWK
15767 _ACEOF
15768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15769 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15770 fi # test -n "$CONFIG_HEADERS"
15771
15772
15773 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15774 shift
15775 for ac_tag
15776 do
15777 case $ac_tag in
15778 :[FHLC]) ac_mode=$ac_tag; continue;;
15779 esac
15780 case $ac_mode$ac_tag in
15781 :[FHL]*:*);;
15782 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15783 :[FH]-) ac_tag=-:-;;
15784 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15785 esac
15786 ac_save_IFS=$IFS
15787 IFS=:
15788 set x $ac_tag
15789 IFS=$ac_save_IFS
15790 shift
15791 ac_file=$1
15792 shift
15793
15794 case $ac_mode in
15795 :L) ac_source=$1;;
15796 :[FH])
15797 ac_file_inputs=
15798 for ac_f
15799 do
15800 case $ac_f in
15801 -) ac_f="$ac_tmp/stdin";;
15802 *) # Look for the file first in the build tree, then in the source tree
15803 # (if the path is not absolute). The absolute path cannot be DOS-style,
15804 # because $ac_f cannot contain `:'.
15805 test -f "$ac_f" ||
15806 case $ac_f in
15807 [\\/$]*) false;;
15808 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15809 esac ||
15810 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15811 esac
15812 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15813 as_fn_append ac_file_inputs " '$ac_f'"
15814 done
15815
15816 # Let's still pretend it is `configure' which instantiates (i.e., don't
15817 # use $as_me), people would be surprised to read:
15818 # /* config.h. Generated by config.status. */
15819 configure_input='Generated from '`
15820 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15821 `' by configure.'
15822 if test x"$ac_file" != x-; then
15823 configure_input="$ac_file. $configure_input"
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15825 $as_echo "$as_me: creating $ac_file" >&6;}
15826 fi
15827 # Neutralize special characters interpreted by sed in replacement strings.
15828 case $configure_input in #(
15829 *\&* | *\|* | *\\* )
15830 ac_sed_conf_input=`$as_echo "$configure_input" |
15831 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15832 *) ac_sed_conf_input=$configure_input;;
15833 esac
15834
15835 case $ac_tag in
15836 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15838 esac
15839 ;;
15840 esac
15841
15842 ac_dir=`$as_dirname -- "$ac_file" ||
15843 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15844 X"$ac_file" : 'X\(//\)[^/]' \| \
15845 X"$ac_file" : 'X\(//\)$' \| \
15846 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15847 $as_echo X"$ac_file" |
15848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15849 s//\1/
15850 q
15851 }
15852 /^X\(\/\/\)[^/].*/{
15853 s//\1/
15854 q
15855 }
15856 /^X\(\/\/\)$/{
15857 s//\1/
15858 q
15859 }
15860 /^X\(\/\).*/{
15861 s//\1/
15862 q
15863 }
15864 s/.*/./; q'`
15865 as_dir="$ac_dir"; as_fn_mkdir_p
15866 ac_builddir=.
15867
15868 case "$ac_dir" in
15869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15870 *)
15871 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15872 # A ".." for each directory in $ac_dir_suffix.
15873 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15874 case $ac_top_builddir_sub in
15875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15877 esac ;;
15878 esac
15879 ac_abs_top_builddir=$ac_pwd
15880 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15881 # for backward compatibility:
15882 ac_top_builddir=$ac_top_build_prefix
15883
15884 case $srcdir in
15885 .) # We are building in place.
15886 ac_srcdir=.
15887 ac_top_srcdir=$ac_top_builddir_sub
15888 ac_abs_top_srcdir=$ac_pwd ;;
15889 [\\/]* | ?:[\\/]* ) # Absolute name.
15890 ac_srcdir=$srcdir$ac_dir_suffix;
15891 ac_top_srcdir=$srcdir
15892 ac_abs_top_srcdir=$srcdir ;;
15893 *) # Relative name.
15894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15895 ac_top_srcdir=$ac_top_build_prefix$srcdir
15896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15897 esac
15898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15899
15900
15901 case $ac_mode in
15902 :F)
15903 #
15904 # CONFIG_FILE
15905 #
15906
15907 case $INSTALL in
15908 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15909 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15910 esac
15911 ac_MKDIR_P=$MKDIR_P
15912 case $MKDIR_P in
15913 [\\/$]* | ?:[\\/]* ) ;;
15914 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15915 esac
15916 _ACEOF
15917
15918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15919 # If the template does not know about datarootdir, expand it.
15920 # FIXME: This hack should be removed a few years after 2.60.
15921 ac_datarootdir_hack=; ac_datarootdir_seen=
15922 ac_sed_dataroot='
15923 /datarootdir/ {
15924 p
15925 q
15926 }
15927 /@datadir@/p
15928 /@docdir@/p
15929 /@infodir@/p
15930 /@localedir@/p
15931 /@mandir@/p'
15932 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15933 *datarootdir*) ac_datarootdir_seen=yes;;
15934 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15936 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15937 _ACEOF
15938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15939 ac_datarootdir_hack='
15940 s&@datadir@&$datadir&g
15941 s&@docdir@&$docdir&g
15942 s&@infodir@&$infodir&g
15943 s&@localedir@&$localedir&g
15944 s&@mandir@&$mandir&g
15945 s&\\\${datarootdir}&$datarootdir&g' ;;
15946 esac
15947 _ACEOF
15948
15949 # Neutralize VPATH when `$srcdir' = `.'.
15950 # Shell code in configure.ac might set extrasub.
15951 # FIXME: do we really want to maintain this feature?
15952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15953 ac_sed_extra="$ac_vpsub
15954 $extrasub
15955 _ACEOF
15956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15957 :t
15958 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15959 s|@configure_input@|$ac_sed_conf_input|;t t
15960 s&@top_builddir@&$ac_top_builddir_sub&;t t
15961 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15962 s&@srcdir@&$ac_srcdir&;t t
15963 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15964 s&@top_srcdir@&$ac_top_srcdir&;t t
15965 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15966 s&@builddir@&$ac_builddir&;t t
15967 s&@abs_builddir@&$ac_abs_builddir&;t t
15968 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15969 s&@INSTALL@&$ac_INSTALL&;t t
15970 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15971 $ac_datarootdir_hack
15972 "
15973 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15974 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15975
15976 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15977 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15978 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15979 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15981 which seems to be undefined. Please make sure it is defined" >&5
15982 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15983 which seems to be undefined. Please make sure it is defined" >&2;}
15984
15985 rm -f "$ac_tmp/stdin"
15986 case $ac_file in
15987 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15988 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15989 esac \
15990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15991 ;;
15992 :H)
15993 #
15994 # CONFIG_HEADER
15995 #
15996 if test x"$ac_file" != x-; then
15997 {
15998 $as_echo "/* $configure_input */" \
15999 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16000 } >"$ac_tmp/config.h" \
16001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16002 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16004 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16005 else
16006 rm -f "$ac_file"
16007 mv "$ac_tmp/config.h" "$ac_file" \
16008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16009 fi
16010 else
16011 $as_echo "/* $configure_input */" \
16012 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16013 || as_fn_error $? "could not create -" "$LINENO" 5
16014 fi
16015 # Compute "$ac_file"'s index in $config_headers.
16016 _am_arg="$ac_file"
16017 _am_stamp_count=1
16018 for _am_header in $config_headers :; do
16019 case $_am_header in
16020 $_am_arg | $_am_arg:* )
16021 break ;;
16022 * )
16023 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16024 esac
16025 done
16026 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16027 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16028 X"$_am_arg" : 'X\(//\)[^/]' \| \
16029 X"$_am_arg" : 'X\(//\)$' \| \
16030 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16031 $as_echo X"$_am_arg" |
16032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16033 s//\1/
16034 q
16035 }
16036 /^X\(\/\/\)[^/].*/{
16037 s//\1/
16038 q
16039 }
16040 /^X\(\/\/\)$/{
16041 s//\1/
16042 q
16043 }
16044 /^X\(\/\).*/{
16045 s//\1/
16046 q
16047 }
16048 s/.*/./; q'`/stamp-h$_am_stamp_count
16049 ;;
16050
16051 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16052 $as_echo "$as_me: executing $ac_file commands" >&6;}
16053 ;;
16054 esac
16055
16056
16057 case $ac_file$ac_mode in
16058 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16059 # Older Autoconf quotes --file arguments for eval, but not when files
16060 # are listed without --file. Let's play safe and only enable the eval
16061 # if we detect the quoting.
16062 # TODO: see whether this extra hack can be removed once we start
16063 # requiring Autoconf 2.70 or later.
16064 case $CONFIG_FILES in #(
16065 *\'*) :
16066 eval set x "$CONFIG_FILES" ;; #(
16067 *) :
16068 set x $CONFIG_FILES ;; #(
16069 *) :
16070 ;;
16071 esac
16072 shift
16073 # Used to flag and report bootstrapping failures.
16074 am_rc=0
16075 for am_mf
16076 do
16077 # Strip MF so we end up with the name of the file.
16078 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16079 # Check whether this is an Automake generated Makefile which includes
16080 # dependency-tracking related rules and includes.
16081 # Grep'ing the whole file directly is not great: AIX grep has a line
16082 # limit of 2048, but all sed's we know have understand at least 4000.
16083 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16084 || continue
16085 am_dirpart=`$as_dirname -- "$am_mf" ||
16086 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16087 X"$am_mf" : 'X\(//\)[^/]' \| \
16088 X"$am_mf" : 'X\(//\)$' \| \
16089 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16090 $as_echo X"$am_mf" |
16091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16092 s//\1/
16093 q
16094 }
16095 /^X\(\/\/\)[^/].*/{
16096 s//\1/
16097 q
16098 }
16099 /^X\(\/\/\)$/{
16100 s//\1/
16101 q
16102 }
16103 /^X\(\/\).*/{
16104 s//\1/
16105 q
16106 }
16107 s/.*/./; q'`
16108 am_filepart=`$as_basename -- "$am_mf" ||
16109 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16110 X"$am_mf" : 'X\(//\)$' \| \
16111 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16112 $as_echo X/"$am_mf" |
16113 sed '/^.*\/\([^/][^/]*\)\/*$/{
16114 s//\1/
16115 q
16116 }
16117 /^X\/\(\/\/\)$/{
16118 s//\1/
16119 q
16120 }
16121 /^X\/\(\/\).*/{
16122 s//\1/
16123 q
16124 }
16125 s/.*/./; q'`
16126 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16127 && sed -e '/# am--include-marker/d' "$am_filepart" \
16128 | $MAKE -f - am--depfiles" >&5
16129 (cd "$am_dirpart" \
16130 && sed -e '/# am--include-marker/d' "$am_filepart" \
16131 | $MAKE -f - am--depfiles) >&5 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } || am_rc=$?
16135 done
16136 if test $am_rc -ne 0; then
16137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16139 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16140 for automatic dependency tracking. Try re-running configure with the
16141 '--disable-dependency-tracking' option to at least be able to build
16142 the package (albeit without support for automatic dependency tracking).
16143 See \`config.log' for more details" "$LINENO" 5; }
16144 fi
16145 { am_dirpart=; unset am_dirpart;}
16146 { am_filepart=; unset am_filepart;}
16147 { am_mf=; unset am_mf;}
16148 { am_rc=; unset am_rc;}
16149 rm -f conftest-deps.mk
16150 }
16151 ;;
16152 "libtool":C)
16153
16154 # See if we are running on zsh, and set the options that allow our
16155 # commands through without removal of \ escapes.
16156 if test -n "${ZSH_VERSION+set}"; then
16157 setopt NO_GLOB_SUBST
16158 fi
16159
16160 cfgfile=${ofile}T
16161 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16162 $RM "$cfgfile"
16163
16164 cat <<_LT_EOF >> "$cfgfile"
16165 #! $SHELL
16166 # Generated automatically by $as_me ($PACKAGE) $VERSION
16167 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16168
16169 # Provide generalized library-building support services.
16170 # Written by Gordon Matzigkeit, 1996
16171
16172 # Copyright (C) 2014 Free Software Foundation, Inc.
16173 # This is free software; see the source for copying conditions. There is NO
16174 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16175
16176 # GNU Libtool is free software; you can redistribute it and/or modify
16177 # it under the terms of the GNU General Public License as published by
16178 # the Free Software Foundation; either version 2 of of the License, or
16179 # (at your option) any later version.
16180 #
16181 # As a special exception to the GNU General Public License, if you
16182 # distribute this file as part of a program or library that is built
16183 # using GNU Libtool, you may include this file under the same
16184 # distribution terms that you use for the rest of that program.
16185 #
16186 # GNU Libtool is distributed in the hope that it will be useful, but
16187 # WITHOUT ANY WARRANTY; without even the implied warranty of
16188 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16189 # GNU General Public License for more details.
16190 #
16191 # You should have received a copy of the GNU General Public License
16192 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16193
16194
16195 # The names of the tagged configurations supported by this script.
16196 available_tags=''
16197
16198 # Configured defaults for sys_lib_dlsearch_path munging.
16199 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16200
16201 # ### BEGIN LIBTOOL CONFIG
16202
16203 # Whether or not to build static libraries.
16204 build_old_libs=$enable_static
16205
16206 # Which release of libtool.m4 was used?
16207 macro_version=$macro_version
16208 macro_revision=$macro_revision
16209
16210 # Whether or not to build shared libraries.
16211 build_libtool_libs=$enable_shared
16212
16213 # What type of objects to build.
16214 pic_mode=$pic_mode
16215
16216 # Whether or not to optimize for fast installation.
16217 fast_install=$enable_fast_install
16218
16219 # Shared archive member basename,for filename based shared library versioning on AIX.
16220 shared_archive_member_spec=$shared_archive_member_spec
16221
16222 # Shell to use when invoking shell scripts.
16223 SHELL=$lt_SHELL
16224
16225 # An echo program that protects backslashes.
16226 ECHO=$lt_ECHO
16227
16228 # The PATH separator for the build system.
16229 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16230
16231 # The host system.
16232 host_alias=$host_alias
16233 host=$host
16234 host_os=$host_os
16235
16236 # The build system.
16237 build_alias=$build_alias
16238 build=$build
16239 build_os=$build_os
16240
16241 # A sed program that does not truncate output.
16242 SED=$lt_SED
16243
16244 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16245 Xsed="\$SED -e 1s/^X//"
16246
16247 # A grep program that handles long lines.
16248 GREP=$lt_GREP
16249
16250 # An ERE matcher.
16251 EGREP=$lt_EGREP
16252
16253 # A literal string matcher.
16254 FGREP=$lt_FGREP
16255
16256 # A BSD- or MS-compatible name lister.
16257 NM=$lt_NM
16258
16259 # Whether we need soft or hard links.
16260 LN_S=$lt_LN_S
16261
16262 # What is the maximum length of a command?
16263 max_cmd_len=$max_cmd_len
16264
16265 # Object file suffix (normally "o").
16266 objext=$ac_objext
16267
16268 # Executable file suffix (normally "").
16269 exeext=$exeext
16270
16271 # whether the shell understands "unset".
16272 lt_unset=$lt_unset
16273
16274 # turn spaces into newlines.
16275 SP2NL=$lt_lt_SP2NL
16276
16277 # turn newlines into spaces.
16278 NL2SP=$lt_lt_NL2SP
16279
16280 # convert \$build file names to \$host format.
16281 to_host_file_cmd=$lt_cv_to_host_file_cmd
16282
16283 # convert \$build files to toolchain format.
16284 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16285
16286 # An object symbol dumper.
16287 OBJDUMP=$lt_OBJDUMP
16288
16289 # Method to check whether dependent libraries are shared objects.
16290 deplibs_check_method=$lt_deplibs_check_method
16291
16292 # Command to use when deplibs_check_method = "file_magic".
16293 file_magic_cmd=$lt_file_magic_cmd
16294
16295 # How to find potential files when deplibs_check_method = "file_magic".
16296 file_magic_glob=$lt_file_magic_glob
16297
16298 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16299 want_nocaseglob=$lt_want_nocaseglob
16300
16301 # DLL creation program.
16302 DLLTOOL=$lt_DLLTOOL
16303
16304 # Command to associate shared and link libraries.
16305 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16306
16307 # The archiver.
16308 AR=$lt_AR
16309
16310 # Flags to create an archive.
16311 AR_FLAGS=$lt_AR_FLAGS
16312
16313 # How to feed a file listing to the archiver.
16314 archiver_list_spec=$lt_archiver_list_spec
16315
16316 # A symbol stripping program.
16317 STRIP=$lt_STRIP
16318
16319 # Commands used to install an old-style archive.
16320 RANLIB=$lt_RANLIB
16321 old_postinstall_cmds=$lt_old_postinstall_cmds
16322 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16323
16324 # Whether to use a lock for old archive extraction.
16325 lock_old_archive_extraction=$lock_old_archive_extraction
16326
16327 # A C compiler.
16328 LTCC=$lt_CC
16329
16330 # LTCC compiler flags.
16331 LTCFLAGS=$lt_CFLAGS
16332
16333 # Take the output of nm and produce a listing of raw symbols and C names.
16334 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16335
16336 # Transform the output of nm in a proper C declaration.
16337 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16338
16339 # Transform the output of nm into a list of symbols to manually relocate.
16340 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16341
16342 # Transform the output of nm in a C name address pair.
16343 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16344
16345 # Transform the output of nm in a C name address pair when lib prefix is needed.
16346 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16347
16348 # The name lister interface.
16349 nm_interface=$lt_lt_cv_nm_interface
16350
16351 # Specify filename containing input files for \$NM.
16352 nm_file_list_spec=$lt_nm_file_list_spec
16353
16354 # The root where to search for dependent libraries,and where our libraries should be installed.
16355 lt_sysroot=$lt_sysroot
16356
16357 # Command to truncate a binary pipe.
16358 lt_truncate_bin=$lt_lt_cv_truncate_bin
16359
16360 # The name of the directory that contains temporary libtool files.
16361 objdir=$objdir
16362
16363 # Used to examine libraries when file_magic_cmd begins with "file".
16364 MAGIC_CMD=$MAGIC_CMD
16365
16366 # Must we lock files when doing compilation?
16367 need_locks=$lt_need_locks
16368
16369 # Manifest tool.
16370 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16371
16372 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16373 DSYMUTIL=$lt_DSYMUTIL
16374
16375 # Tool to change global to local symbols on Mac OS X.
16376 NMEDIT=$lt_NMEDIT
16377
16378 # Tool to manipulate fat objects and archives on Mac OS X.
16379 LIPO=$lt_LIPO
16380
16381 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16382 OTOOL=$lt_OTOOL
16383
16384 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16385 OTOOL64=$lt_OTOOL64
16386
16387 # Old archive suffix (normally "a").
16388 libext=$libext
16389
16390 # Shared library suffix (normally ".so").
16391 shrext_cmds=$lt_shrext_cmds
16392
16393 # The commands to extract the exported symbol list from a shared archive.
16394 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16395
16396 # Variables whose values should be saved in libtool wrapper scripts and
16397 # restored at link time.
16398 variables_saved_for_relink=$lt_variables_saved_for_relink
16399
16400 # Do we need the "lib" prefix for modules?
16401 need_lib_prefix=$need_lib_prefix
16402
16403 # Do we need a version for libraries?
16404 need_version=$need_version
16405
16406 # Library versioning type.
16407 version_type=$version_type
16408
16409 # Shared library runtime path variable.
16410 runpath_var=$runpath_var
16411
16412 # Shared library path variable.
16413 shlibpath_var=$shlibpath_var
16414
16415 # Is shlibpath searched before the hard-coded library search path?
16416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16417
16418 # Format of library name prefix.
16419 libname_spec=$lt_libname_spec
16420
16421 # List of archive names. First name is the real one, the rest are links.
16422 # The last name is the one that the linker finds with -lNAME
16423 library_names_spec=$lt_library_names_spec
16424
16425 # The coded name of the library, if different from the real name.
16426 soname_spec=$lt_soname_spec
16427
16428 # Permission mode override for installation of shared libraries.
16429 install_override_mode=$lt_install_override_mode
16430
16431 # Command to use after installation of a shared archive.
16432 postinstall_cmds=$lt_postinstall_cmds
16433
16434 # Command to use after uninstallation of a shared archive.
16435 postuninstall_cmds=$lt_postuninstall_cmds
16436
16437 # Commands used to finish a libtool library installation in a directory.
16438 finish_cmds=$lt_finish_cmds
16439
16440 # As "finish_cmds", except a single script fragment to be evaled but
16441 # not shown.
16442 finish_eval=$lt_finish_eval
16443
16444 # Whether we should hardcode library paths into libraries.
16445 hardcode_into_libs=$hardcode_into_libs
16446
16447 # Compile-time system search path for libraries.
16448 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16449
16450 # Detected run-time system search path for libraries.
16451 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16452
16453 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16454 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16455
16456 # Whether dlopen is supported.
16457 dlopen_support=$enable_dlopen
16458
16459 # Whether dlopen of programs is supported.
16460 dlopen_self=$enable_dlopen_self
16461
16462 # Whether dlopen of statically linked programs is supported.
16463 dlopen_self_static=$enable_dlopen_self_static
16464
16465 # Commands to strip libraries.
16466 old_striplib=$lt_old_striplib
16467 striplib=$lt_striplib
16468
16469
16470 # The linker used to build libraries.
16471 LD=$lt_LD
16472
16473 # How to create reloadable object files.
16474 reload_flag=$lt_reload_flag
16475 reload_cmds=$lt_reload_cmds
16476
16477 # Commands used to build an old-style archive.
16478 old_archive_cmds=$lt_old_archive_cmds
16479
16480 # A language specific compiler.
16481 CC=$lt_compiler
16482
16483 # Is the compiler the GNU compiler?
16484 with_gcc=$GCC
16485
16486 # Compiler flag to turn off builtin functions.
16487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16488
16489 # Additional compiler flags for building library objects.
16490 pic_flag=$lt_lt_prog_compiler_pic
16491
16492 # How to pass a linker flag through the compiler.
16493 wl=$lt_lt_prog_compiler_wl
16494
16495 # Compiler flag to prevent dynamic linking.
16496 link_static_flag=$lt_lt_prog_compiler_static
16497
16498 # Does compiler simultaneously support -c and -o options?
16499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16500
16501 # Whether or not to add -lc for building shared libraries.
16502 build_libtool_need_lc=$archive_cmds_need_lc
16503
16504 # Whether or not to disallow shared libs when runtime libs are static.
16505 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16506
16507 # Compiler flag to allow reflexive dlopens.
16508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16509
16510 # Compiler flag to generate shared objects directly from archives.
16511 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16512
16513 # Whether the compiler copes with passing no objects directly.
16514 compiler_needs_object=$lt_compiler_needs_object
16515
16516 # Create an old-style archive from a shared archive.
16517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16518
16519 # Create a temporary old-style archive to link instead of a shared archive.
16520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16521
16522 # Commands used to build a shared archive.
16523 archive_cmds=$lt_archive_cmds
16524 archive_expsym_cmds=$lt_archive_expsym_cmds
16525
16526 # Commands used to build a loadable module if different from building
16527 # a shared archive.
16528 module_cmds=$lt_module_cmds
16529 module_expsym_cmds=$lt_module_expsym_cmds
16530
16531 # Whether we are building with GNU ld or not.
16532 with_gnu_ld=$lt_with_gnu_ld
16533
16534 # Flag that allows shared libraries with undefined symbols to be built.
16535 allow_undefined_flag=$lt_allow_undefined_flag
16536
16537 # Flag that enforces no undefined symbols.
16538 no_undefined_flag=$lt_no_undefined_flag
16539
16540 # Flag to hardcode \$libdir into a binary during linking.
16541 # This must work even if \$libdir does not exist
16542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16543
16544 # Whether we need a single "-rpath" flag with a separated argument.
16545 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16546
16547 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16548 # DIR into the resulting binary.
16549 hardcode_direct=$hardcode_direct
16550
16551 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16552 # DIR into the resulting binary and the resulting library dependency is
16553 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16554 # library is relocated.
16555 hardcode_direct_absolute=$hardcode_direct_absolute
16556
16557 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16558 # into the resulting binary.
16559 hardcode_minus_L=$hardcode_minus_L
16560
16561 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16562 # into the resulting binary.
16563 hardcode_shlibpath_var=$hardcode_shlibpath_var
16564
16565 # Set to "yes" if building a shared library automatically hardcodes DIR
16566 # into the library and all subsequent libraries and executables linked
16567 # against it.
16568 hardcode_automatic=$hardcode_automatic
16569
16570 # Set to yes if linker adds runtime paths of dependent libraries
16571 # to runtime path list.
16572 inherit_rpath=$inherit_rpath
16573
16574 # Whether libtool must link a program against all its dependency libraries.
16575 link_all_deplibs=$link_all_deplibs
16576
16577 # Set to "yes" if exported symbols are required.
16578 always_export_symbols=$always_export_symbols
16579
16580 # The commands to list exported symbols.
16581 export_symbols_cmds=$lt_export_symbols_cmds
16582
16583 # Symbols that should not be listed in the preloaded symbols.
16584 exclude_expsyms=$lt_exclude_expsyms
16585
16586 # Symbols that must always be exported.
16587 include_expsyms=$lt_include_expsyms
16588
16589 # Commands necessary for linking programs (against libraries) with templates.
16590 prelink_cmds=$lt_prelink_cmds
16591
16592 # Commands necessary for finishing linking programs.
16593 postlink_cmds=$lt_postlink_cmds
16594
16595 # Specify filename containing input files.
16596 file_list_spec=$lt_file_list_spec
16597
16598 # How to hardcode a shared library path into an executable.
16599 hardcode_action=$hardcode_action
16600
16601 # ### END LIBTOOL CONFIG
16602
16603 _LT_EOF
16604
16605 cat <<'_LT_EOF' >> "$cfgfile"
16606
16607 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16608
16609 # func_munge_path_list VARIABLE PATH
16610 # -----------------------------------
16611 # VARIABLE is name of variable containing _space_ separated list of
16612 # directories to be munged by the contents of PATH, which is string
16613 # having a format:
16614 # "DIR[:DIR]:"
16615 # string "DIR[ DIR]" will be prepended to VARIABLE
16616 # ":DIR[:DIR]"
16617 # string "DIR[ DIR]" will be appended to VARIABLE
16618 # "DIRP[:DIRP]::[DIRA:]DIRA"
16619 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16620 # "DIRA[ DIRA]" will be appended to VARIABLE
16621 # "DIR[:DIR]"
16622 # VARIABLE will be replaced by "DIR[ DIR]"
16623 func_munge_path_list ()
16624 {
16625 case x$2 in
16626 x)
16627 ;;
16628 *:)
16629 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16630 ;;
16631 x:*)
16632 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16633 ;;
16634 *::*)
16635 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16636 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16637 ;;
16638 *)
16639 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16640 ;;
16641 esac
16642 }
16643
16644
16645 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16646 func_cc_basename ()
16647 {
16648 for cc_temp in $*""; do
16649 case $cc_temp in
16650 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16651 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16652 \-*) ;;
16653 *) break;;
16654 esac
16655 done
16656 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16657 }
16658
16659
16660 # ### END FUNCTIONS SHARED WITH CONFIGURE
16661
16662 _LT_EOF
16663
16664 case $host_os in
16665 aix3*)
16666 cat <<\_LT_EOF >> "$cfgfile"
16667 # AIX sometimes has problems with the GCC collect2 program. For some
16668 # reason, if we set the COLLECT_NAMES environment variable, the problems
16669 # vanish in a puff of smoke.
16670 if test set != "${COLLECT_NAMES+set}"; then
16671 COLLECT_NAMES=
16672 export COLLECT_NAMES
16673 fi
16674 _LT_EOF
16675 ;;
16676 esac
16677
16678
16679 ltmain=$ac_aux_dir/ltmain.sh
16680
16681
16682 # We use sed instead of cat because bash on DJGPP gets confused if
16683 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16684 # text mode, it properly converts lines to CR/LF. This bash problem
16685 # is reportedly fixed, but why not run on old versions too?
16686 sed '$q' "$ltmain" >> "$cfgfile" \
16687 || (rm -f "$cfgfile"; exit 1)
16688
16689 mv -f "$cfgfile" "$ofile" ||
16690 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16691 chmod +x "$ofile"
16692
16693 ;;
16694
16695 esac
16696 done # for ac_tag
16697
16698
16699 as_fn_exit 0
16700 _ACEOF
16701 ac_clean_files=$ac_clean_files_save
16702
16703 test $ac_write_fail = 0 ||
16704 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16705
16706
16707 # configure is writing to config.log, and then calls config.status.
16708 # config.status does its own redirection, appending to config.log.
16709 # Unfortunately, on DOS this fails, as config.log is still kept open
16710 # by configure, so config.status won't be able to write to it; its
16711 # output is simply discarded. So we exec the FD to /dev/null,
16712 # effectively closing config.log, so it can be properly (re)opened and
16713 # appended to by config.status. When coming back to configure, we
16714 # need to make the FD available again.
16715 if test "$no_create" != yes; then
16716 ac_cs_success=:
16717 ac_config_status_args=
16718 test "$silent" = yes &&
16719 ac_config_status_args="$ac_config_status_args --quiet"
16720 exec 5>/dev/null
16721 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16722 exec 5>>config.log
16723 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16724 # would make configure fail if this is the last instruction.
16725 $ac_cs_success || as_fn_exit 1
16726 fi
16727 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16729 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16730 fi
16731
16732
16733 echo ""
16734 echo "Options used to compile and link:"
16735 echo " CC = $CC"
16736 echo " CFLAGS = $CFLAGS"
16737 echo " CPPFLAGS = $CPPFLAGS"
16738 echo " CXX = $CXX"
16739 echo " CXXFLAGS = $CXXFLAGS"
16740 echo " LDFLAGS = $LDFLAGS"
16741 echo ""