dpkg (1.18.25) stretch; urgency=medium
[dpkg] / configure
CommitLineData
1479465f
GJ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for dpkg 1.18.25.
4#
5# Report bugs to <debian-dpkg@lists.debian.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: debian-dpkg@lists.debian.org about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='dpkg'
592PACKAGE_TARNAME='dpkg'
593PACKAGE_VERSION='1.18.25'
594PACKAGE_STRING='dpkg 1.18.25'
595PACKAGE_BUGREPORT='debian-dpkg@lists.debian.org'
596PACKAGE_URL=''
597
598ac_unique_file="lib/dpkg/dpkg.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635gt_needs=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640AUTOM4TE
641HAVE_UNSETENV_FALSE
642HAVE_UNSETENV_TRUE
643HAVE_ALPHASORT_FALSE
644HAVE_ALPHASORT_TRUE
645HAVE_SCANDIR_FALSE
646HAVE_SCANDIR_TRUE
647HAVE_ASPRINTF_FALSE
648HAVE_ASPRINTF_TRUE
649HAVE_STRSIGNAL_FALSE
650HAVE_STRSIGNAL_TRUE
651HAVE_STRERROR_FALSE
652HAVE_STRERROR_TRUE
653HAVE_STRNDUP_FALSE
654HAVE_STRNDUP_TRUE
655HAVE_STRNLEN_FALSE
656HAVE_STRNLEN_TRUE
657HAVE_OBSTACK_FREE_FALSE
658HAVE_OBSTACK_FREE_TRUE
659HAVE_GETOPT_LONG_FALSE
660HAVE_GETOPT_LONG_TRUE
661HAVE_GETOPT_FALSE
662HAVE_GETOPT_TRUE
663HAVE_C99_SNPRINTF_FALSE
664HAVE_C99_SNPRINTF_TRUE
665HAVE_SYS_ERRLIST_FALSE
666HAVE_SYS_ERRLIST_TRUE
667KVM_LIBS
668PS_LIBS
669CURSES_LIBS
670USE_UNICODE
671HAVE_SETEXECFILECON_FALSE
672HAVE_SETEXECFILECON_TRUE
673WITH_LIBSELINUX_FALSE
674WITH_LIBSELINUX_TRUE
675SELINUX_CFLAGS
676SELINUX_LIBS
677PKG_CONFIG_LIBDIR
678PKG_CONFIG_PATH
679PKG_CONFIG
680LZMA_LIBS
681BZ2_LIBS
682Z_LIBS
683HAVE_LIBMD_MD5_FALSE
684HAVE_LIBMD_MD5_TRUE
685MD_LIBS
686PERL_COVER
687PERL_COVERAGE
688LCOV_GENHTML
689LCOV
690GCOV
691COVERAGE_ENABLED_FALSE
692COVERAGE_ENABLED_TRUE
693BUILD_POD_DOC_FALSE
694BUILD_POD_DOC_TRUE
695POD2MAN
696USE_PO4A
697PO4A
698HAVE_DOT
699DOXYGEN
700PATCH
701CXXCPP
702am__fastdepCXX_FALSE
703am__fastdepCXX_TRUE
704CXXDEPMODE
705ac_ct_CXX
706CXXFLAGS
707CXX
708TAR
709logdir
710admindir
711pkgconfdir
712devlibdir
713BUILD_DEVEL_DOCS
714PACKAGE_RELEASE_DATE
715PERL_LIBDIR
716PERL
717BUILD_UPDATE_ALTERNATIVES_FALSE
718BUILD_UPDATE_ALTERNATIVES_TRUE
719BUILD_START_STOP_DAEMON_FALSE
720BUILD_START_STOP_DAEMON_TRUE
721BUILD_DSELECT_FALSE
722BUILD_DSELECT_TRUE
723HAVE_LINKER_VERSION_SCRIPT_FALSE
724HAVE_LINKER_VERSION_SCRIPT_TRUE
725HAVE_LINKER_AS_NEEDED_FALSE
726HAVE_LINKER_AS_NEEDED_TRUE
727BUILD_SHARED_FALSE
728BUILD_SHARED_TRUE
729LT_SYS_LIBRARY_PATH
730OTOOL64
731OTOOL
732LIPO
733NMEDIT
734DSYMUTIL
735MANIFEST_TOOL
736RANLIB
737DLLTOOL
738OBJDUMP
739LN_S
740NM
741ac_ct_DUMPBIN
742DUMPBIN
743LD
744FGREP
745LIBTOOL
746ac_ct_AR
747AR
748POSUB
749LTLIBINTL
750LIBINTL
751INTLLIBS
752LTLIBICONV
753LIBICONV
754INTL_MACOSX_LIBS
755host_os
756host_vendor
757host_cpu
758host
759build_os
760build_vendor
761build_cpu
762build
763XGETTEXT_EXTRA_OPTIONS
764MSGMERGE
765XGETTEXT_015
766XGETTEXT
767GMSGFMT_015
768MSGFMT_015
769GMSGFMT
770MSGFMT
771GETTEXT_MACRO_VERSION
772USE_NLS
773SED
774AM_BACKSLASH
775AM_DEFAULT_VERBOSITY
776AM_DEFAULT_V
777AM_V
778am__fastdepCC_FALSE
779am__fastdepCC_TRUE
780CCDEPMODE
781am__nodep
782AMDEPBACKSLASH
783AMDEP_FALSE
784AMDEP_TRUE
785am__quote
786am__include
787DEPDIR
788am__untar
789am__tar
790AMTAR
791am__leading_dot
792SET_MAKE
793AWK
794mkdir_p
795MKDIR_P
796INSTALL_STRIP_PROGRAM
797STRIP
798install_sh
799MAKEINFO
800AUTOHEADER
801AUTOMAKE
802AUTOCONF
803ACLOCAL
804VERSION
805PACKAGE
806CYGPATH_W
807am__isrc
808INSTALL_DATA
809INSTALL_SCRIPT
810INSTALL_PROGRAM
811EGREP
812GREP
813CPP
814OBJEXT
815EXEEXT
816ac_ct_CC
817CPPFLAGS
818LDFLAGS
819CFLAGS
820CC
821PACKAGE_COPYRIGHT_HOLDER
822target_alias
823host_alias
824build_alias
825LIBS
826ECHO_T
827ECHO_N
828ECHO_C
829DEFS
830mandir
831localedir
832libdir
833psdir
834pdfdir
835dvidir
836htmldir
837infodir
838docdir
839oldincludedir
840includedir
841runstatedir
842localstatedir
843sharedstatedir
844sysconfdir
845datadir
846datarootdir
847libexecdir
848sbindir
849bindir
850program_transform_name
851prefix
852exec_prefix
853PACKAGE_URL
854PACKAGE_BUGREPORT
855PACKAGE_STRING
856PACKAGE_VERSION
857PACKAGE_TARNAME
858PACKAGE_NAME
859PATH_SEPARATOR
860SHELL'
861ac_subst_files=''
862ac_user_opts='
863enable_option_checking
864enable_dependency_tracking
865enable_silent_rules
866enable_nls
867with_gnu_ld
868enable_rpath
869with_libiconv_prefix
870with_libintl_prefix
871enable_shared
872enable_static
873with_pic
874enable_fast_install
875with_aix_soname
876with_sysroot
877enable_libtool_lock
878enable_dselect
879enable_start_stop_daemon
880enable_update_alternatives
881enable_devel_docs
882with_devlibdir
883with_pkgconfdir
884with_admindir
885with_logdir
886with_dpkg_deb_compressor
887enable_coverage
888enable_largefile
889with_libmd
890with_libz
891with_libbz2
892with_liblzma
893with_libselinux
894enable_unicode
895enable_mmap
896enable_disk_preallocate
897enable_compiler_warnings
898enable_compiler_optimizations
899enable_linker_optimizations
900'
901 ac_precious_vars='build_alias
902host_alias
903target_alias
904CC
905CFLAGS
906LDFLAGS
907LIBS
908CPPFLAGS
909CPP
910LT_SYS_LIBRARY_PATH
911PERL
912PERL_LIBDIR
913TAR
914CXX
915CXXFLAGS
916CCC
917CXXCPP
918PATCH
919MD_LIBS
920Z_LIBS
921BZ2_LIBS
922LZMA_LIBS
923PKG_CONFIG
924PKG_CONFIG_PATH
925PKG_CONFIG_LIBDIR
926SELINUX_LIBS
927SELINUX_CFLAGS
928CURSES_LIBS
929PS_LIBS
930KVM_LIBS'
931
932
933# Initialize some variables set by options.
934ac_init_help=
935ac_init_version=false
936ac_unrecognized_opts=
937ac_unrecognized_sep=
938# The variables have the same names as the options, with
939# dashes changed to underlines.
940cache_file=/dev/null
941exec_prefix=NONE
942no_create=
943no_recursion=
944prefix=NONE
945program_prefix=NONE
946program_suffix=NONE
947program_transform_name=s,x,x,
948silent=
949site=
950srcdir=
951verbose=
952x_includes=NONE
953x_libraries=NONE
954
955# Installation directory options.
956# These are left unexpanded so users can "make install exec_prefix=/foo"
957# and all the variables that are supposed to be based on exec_prefix
958# by default will actually change.
959# Use braces instead of parens because sh, perl, etc. also accept them.
960# (The list follows the same order as the GNU Coding Standards.)
961bindir='${exec_prefix}/bin'
962sbindir='${exec_prefix}/sbin'
963libexecdir='${exec_prefix}/libexec'
964datarootdir='${prefix}/share'
965datadir='${datarootdir}'
966sysconfdir='${prefix}/etc'
967sharedstatedir='${prefix}/com'
968localstatedir='${prefix}/var'
969runstatedir='${localstatedir}/run'
970includedir='${prefix}/include'
971oldincludedir='/usr/include'
972docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973infodir='${datarootdir}/info'
974htmldir='${docdir}'
975dvidir='${docdir}'
976pdfdir='${docdir}'
977psdir='${docdir}'
978libdir='${exec_prefix}/lib'
979localedir='${datarootdir}/locale'
980mandir='${datarootdir}/man'
981
982ac_prev=
983ac_dashdash=
984for ac_option
985do
986 # If the previous option needs an argument, assign it.
987 if test -n "$ac_prev"; then
988 eval $ac_prev=\$ac_option
989 ac_prev=
990 continue
991 fi
992
993 case $ac_option in
994 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 *=) ac_optarg= ;;
996 *) ac_optarg=yes ;;
997 esac
998
999 # Accept the important Cygnus configure options, so we can diagnose typos.
1000
1001 case $ac_dashdash$ac_option in
1002 --)
1003 ac_dashdash=yes ;;
1004
1005 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006 ac_prev=bindir ;;
1007 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1008 bindir=$ac_optarg ;;
1009
1010 -build | --build | --buil | --bui | --bu)
1011 ac_prev=build_alias ;;
1012 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1013 build_alias=$ac_optarg ;;
1014
1015 -cache-file | --cache-file | --cache-fil | --cache-fi \
1016 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1017 ac_prev=cache_file ;;
1018 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1019 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1020 cache_file=$ac_optarg ;;
1021
1022 --config-cache | -C)
1023 cache_file=config.cache ;;
1024
1025 -datadir | --datadir | --datadi | --datad)
1026 ac_prev=datadir ;;
1027 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1028 datadir=$ac_optarg ;;
1029
1030 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1031 | --dataroo | --dataro | --datar)
1032 ac_prev=datarootdir ;;
1033 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1034 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1035 datarootdir=$ac_optarg ;;
1036
1037 -disable-* | --disable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046"enable_$ac_useropt"
1047"*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=no ;;
1052
1053 -docdir | --docdir | --docdi | --doc | --do)
1054 ac_prev=docdir ;;
1055 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056 docdir=$ac_optarg ;;
1057
1058 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059 ac_prev=dvidir ;;
1060 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061 dvidir=$ac_optarg ;;
1062
1063 -enable-* | --enable-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error $? "invalid feature name: $ac_useropt"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1071 *"
1072"enable_$ac_useropt"
1073"*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval enable_$ac_useropt=\$ac_optarg ;;
1078
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
1086 exec_prefix=$ac_optarg ;;
1087
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1090 with_gas=yes ;;
1091
1092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
1098
1099 -host | --host | --hos | --ho)
1100 ac_prev=host_alias ;;
1101 -host=* | --host=* | --hos=* | --ho=*)
1102 host_alias=$ac_optarg ;;
1103
1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 ac_prev=htmldir ;;
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 | --ht=*)
1108 htmldir=$ac_optarg ;;
1109
1110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
1115 includedir=$ac_optarg ;;
1116
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 ac_prev=infodir ;;
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120 infodir=$ac_optarg ;;
1121
1122 -libdir | --libdir | --libdi | --libd)
1123 ac_prev=libdir ;;
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125 libdir=$ac_optarg ;;
1126
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
1132 libexecdir=$ac_optarg ;;
1133
1134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1138
1139 -localstatedir | --localstatedir | --localstatedi | --localstated \
1140 | --localstate | --localstat | --localsta | --localst | --locals)
1141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144 localstatedir=$ac_optarg ;;
1145
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 ac_prev=mandir ;;
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149 mandir=$ac_optarg ;;
1150
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1153 with_fp=no ;;
1154
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156 | --no-cr | --no-c | -n)
1157 no_create=yes ;;
1158
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161 no_recursion=yes ;;
1162
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170 oldincludedir=$ac_optarg ;;
1171
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 ac_prev=prefix ;;
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175 prefix=$ac_optarg ;;
1176
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182 program_prefix=$ac_optarg ;;
1183
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189 program_suffix=$ac_optarg ;;
1190
1191 -program-transform-name | --program-transform-name \
1192 | --program-transform-nam | --program-transform-na \
1193 | --program-transform-n | --program-transform- \
1194 | --program-transform | --program-transfor \
1195 | --program-transfo | --program-transf \
1196 | --program-trans | --program-tran \
1197 | --progr-tra | --program-tr | --program-t)
1198 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
1206 program_transform_name=$ac_optarg ;;
1207
1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 ac_prev=pdfdir ;;
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1212
1213 -psdir | --psdir | --psdi | --psd | --ps)
1214 ac_prev=psdir ;;
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216 psdir=$ac_optarg ;;
1217
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 silent=yes ;;
1221
1222 -runstatedir | --runstatedir | --runstatedi | --runstated \
1223 | --runstate | --runstat | --runsta | --runst | --runs \
1224 | --run | --ru | --r)
1225 ac_prev=runstatedir ;;
1226 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1227 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1228 | --run=* | --ru=* | --r=*)
1229 runstatedir=$ac_optarg ;;
1230
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1236
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1247
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1252
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1257
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1264
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1269
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1272
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1275
1276 -with-* | --with-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error $? "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1284 *"
1285"with_$ac_useropt"
1286"*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval with_$ac_useropt=\$ac_optarg ;;
1291
1292 -without-* | --without-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error $? "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1300 *"
1301"with_$ac_useropt"
1302"*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=no ;;
1307
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1311
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1318
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1325
1326 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1327Try \`$0 --help' for more information"
1328 ;;
1329
1330 *=*)
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' | [0-9]* | *[!_$as_cr_alnum]* )
1335 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1336 esac
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1339
1340 *)
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1346 ;;
1347
1348 esac
1349done
1350
1351if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error $? "missing argument to $ac_option"
1354fi
1355
1356if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1358 no) ;;
1359 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 esac
1362fi
1363
1364# Check all directory arguments for consistency.
1365for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir runstatedir
1369do
1370 eval ac_val=\$$ac_var
1371 # Remove trailing slashes.
1372 case $ac_val in
1373 */ )
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
1376 esac
1377 # Be sure to have absolute directory names.
1378 case $ac_val in
1379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 esac
1382 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1383done
1384
1385# There might be people who depend on the old broken behavior: `$host'
1386# used to hold the argument of --host etc.
1387# FIXME: To remove some day.
1388build=$build_alias
1389host=$host_alias
1390target=$target_alias
1391
1392# FIXME: To remove some day.
1393if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 elif test "x$build_alias" != "x$host_alias"; then
1397 cross_compiling=yes
1398 fi
1399fi
1400
1401ac_tool_prefix=
1402test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404test "$silent" = yes && exec 6>/dev/null
1405
1406
1407ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408ac_ls_di=`ls -di .` &&
1409ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error $? "working directory cannot be determined"
1411test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error $? "pwd does not report name of working directory"
1413
1414
1415# Find the source files, if location was not specified.
1416if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424$as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\).*/{
1438 s//\1/
1439 q
1440 }
1441 s/.*/./; q'`
1442 srcdir=$ac_confdir
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 srcdir=..
1445 fi
1446else
1447 ac_srcdir_defaulted=no
1448fi
1449if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1452fi
1453ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1456 pwd)`
1457# When building in place, set srcdir=.
1458if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 srcdir=.
1460fi
1461# Remove unnecessary trailing slashes from srcdir.
1462# Double slashes in file names in object file debugging info
1463# mess up M-x gdb in Emacs.
1464case $srcdir in
1465*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466esac
1467for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472done
1473
1474#
1475# Report the --help message.
1476#
1477if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1480 cat <<_ACEOF
1481\`configure' configures dpkg 1.18.25 to adapt to many kinds of systems.
1482
1483Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486VAR=VALUE. See below for descriptions of some of the useful variables.
1487
1488Defaults for the options are specified in brackets.
1489
1490Configuration:
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking ...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500
1501Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 [PREFIX]
1506
1507By default, \`make install' will install all the files in
1508\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510for instance \`--prefix=\$HOME'.
1511
1512For better control, use the options below.
1513
1514Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/dpkg]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1535_ACEOF
1536
1537 cat <<\_ACEOF
1538
1539Program names:
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543
1544System types:
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547_ACEOF
1548fi
1549
1550if test -n "$ac_init_help"; then
1551 case $ac_init_help in
1552 short | recursive ) echo "Configuration of dpkg 1.18.25:";;
1553 esac
1554 cat <<\_ACEOF
1555
1556Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-dependency-tracking
1561 do not reject slow dependency extractors
1562 --disable-dependency-tracking
1563 speeds up one-time build
1564 --enable-silent-rules less verbose build output (undo: "make V=1")
1565 --disable-silent-rules verbose build output (undo: "make V=0")
1566 --disable-nls do not use Native Language Support
1567 --disable-rpath do not hardcode runtime library paths
1568 --enable-shared[=PKGS] build shared libraries [default=no]
1569 --enable-static[=PKGS] build static libraries [default=yes]
1570 --enable-fast-install[=PKGS]
1571 optimize for fast installation [default=yes]
1572 --disable-libtool-lock avoid locking (might break parallel builds)
1573 --disable-dselect do not build or use dselect
1574 --disable-start-stop-daemon
1575 do not build or use start-stop-daemon
1576 --disable-update-alternatives
1577 do not build or use update-alternatives
1578 --disable-devel-docs build release docs
1579 --enable-coverage whether to enable code coverage
1580 --disable-largefile omit support for large files
1581 --disable-unicode do not use Unicode (wide chars) support
1582 --enable-mmap enable usage of unrealiable mmap if available
1583 --enable-disk-preallocate
1584 enable usage of disk size pre-allocation
1585 --disable-compiler-warnings
1586 Disable (detected) additional compiler warnings
1587 --disable-compiler-optimizations
1588 Disable (detected) compiler optimizations
1589 --disable-linker-optimizations
1590 Disable (detected) linker optimizations
1591
1592Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1596 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1597 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1598 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1599 --without-libintl-prefix don't search for libintl in includedir and libdir
1600 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1601 both]
1602 --with-aix-soname=aix|svr4|both
1603 shared library versioning (aka "SONAME") variant to
1604 provide on AIX, [default=aix].
1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1606 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1607 compiler's sysroot if not specified).
1608 --with-devlibdir=DIR dpkg development library directory [LIBDIR]
1609 --with-pkgconfdir=DIR dpkg configuration directory [SYSCONFDIR/dpkg]
1610 --with-admindir=DIR dpkg database directory [LOCALSTATEDIR/lib/dpkg]
1611 --with-logdir=DIR system logging directory [LOCALSTATEDIR/log]
1612 --with-dpkg-deb-compressor=COMP
1613 change default dpkg-deb build compressor
1614 --with-libmd use libmd library for message digest functions
1615 --with-libz use z library for compression and decompression
1616 --with-libbz2 use bz2 library for compression and decompression
1617 --with-liblzma use lzma library for compression and decompression
1618 --with-libselinux use selinux library to set security contexts
1619
1620Some influential environment variables:
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1624 nonstandard directory <lib dir>
1625 LIBS libraries to pass to the linker, e.g. -l<library>
1626 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1627 you have headers in a nonstandard directory <include dir>
1628 CPP C preprocessor
1629 LT_SYS_LIBRARY_PATH
1630 User-defined run-time library search path.
1631 PERL Perl interpreter
1632 PERL_LIBDIR Perl library directory
1633 TAR GNU tar program
1634 CXX C++ compiler command
1635 CXXFLAGS C++ compiler flags
1636 CXXCPP C++ preprocessor
1637 PATCH GNU patch program
1638 MD_LIBS linker flags for md library
1639 Z_LIBS linker flags for z library
1640 BZ2_LIBS linker flags for bz2 library
1641 LZMA_LIBS linker flags for lzma library
1642 PKG_CONFIG path to pkg-config utility
1643 PKG_CONFIG_PATH
1644 directories to add to pkg-config's search path
1645 PKG_CONFIG_LIBDIR
1646 path overriding pkg-config's built-in search path
1647 SELINUX_LIBS
1648 linker flags for selinux library
1649 SELINUX_CFLAGS
1650 C compiler flags for SELINUX, overriding pkg-config
1651 CURSES_LIBS linker flags for curses library
1652 PS_LIBS linker flags for ps library
1653 KVM_LIBS linker flags for kvm library
1654
1655Use these variables to override the choices made by `configure' or to help
1656it to find libraries and programs with nonstandard names/locations.
1657
1658Report bugs to <debian-dpkg@lists.debian.org>.
1659_ACEOF
1660ac_status=$?
1661fi
1662
1663if test "$ac_init_help" = "recursive"; then
1664 # If there are subdirs, report their specific --help.
1665 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1666 test -d "$ac_dir" ||
1667 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1668 continue
1669 ac_builddir=.
1670
1671case "$ac_dir" in
1672.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673*)
1674 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1675 # A ".." for each directory in $ac_dir_suffix.
1676 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1677 case $ac_top_builddir_sub in
1678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1680 esac ;;
1681esac
1682ac_abs_top_builddir=$ac_pwd
1683ac_abs_builddir=$ac_pwd$ac_dir_suffix
1684# for backward compatibility:
1685ac_top_builddir=$ac_top_build_prefix
1686
1687case $srcdir in
1688 .) # We are building in place.
1689 ac_srcdir=.
1690 ac_top_srcdir=$ac_top_builddir_sub
1691 ac_abs_top_srcdir=$ac_pwd ;;
1692 [\\/]* | ?:[\\/]* ) # Absolute name.
1693 ac_srcdir=$srcdir$ac_dir_suffix;
1694 ac_top_srcdir=$srcdir
1695 ac_abs_top_srcdir=$srcdir ;;
1696 *) # Relative name.
1697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1698 ac_top_srcdir=$ac_top_build_prefix$srcdir
1699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1700esac
1701ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1702
1703 cd "$ac_dir" || { ac_status=$?; continue; }
1704 # Check for guested configure.
1705 if test -f "$ac_srcdir/configure.gnu"; then
1706 echo &&
1707 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1708 elif test -f "$ac_srcdir/configure"; then
1709 echo &&
1710 $SHELL "$ac_srcdir/configure" --help=recursive
1711 else
1712 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1713 fi || ac_status=$?
1714 cd "$ac_pwd" || { ac_status=$?; break; }
1715 done
1716fi
1717
1718test -n "$ac_init_help" && exit $ac_status
1719if $ac_init_version; then
1720 cat <<\_ACEOF
1721dpkg configure 1.18.25
1722generated by GNU Autoconf 2.69
1723
1724Copyright (C) 2012 Free Software Foundation, Inc.
1725This configure script is free software; the Free Software Foundation
1726gives unlimited permission to copy, distribute and modify it.
1727_ACEOF
1728 exit
1729fi
1730
1731## ------------------------ ##
1732## Autoconf initialization. ##
1733## ------------------------ ##
1734
1735# ac_fn_c_try_compile LINENO
1736# --------------------------
1737# Try to compile conftest.$ac_ext, and return whether this succeeded.
1738ac_fn_c_try_compile ()
1739{
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1743case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1761 ac_retval=0
1762else
1763 $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767fi
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1770
1771} # ac_fn_c_try_compile
1772
1773# ac_fn_c_try_cpp LINENO
1774# ----------------------
1775# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1776ac_fn_c_try_cpp ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_cpp conftest.$ac_ext"
1780case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785$as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1792 fi
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } > conftest.i && {
1795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 }; then :
1798 ac_retval=0
1799else
1800 $as_echo "$as_me: failed program was:" >&5
1801sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=1
1804fi
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
1807
1808} # ac_fn_c_try_cpp
1809
1810# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811# -------------------------------------------------------
1812# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813# the include files in INCLUDES and setting the cache variable VAR
1814# accordingly.
1815ac_fn_c_check_header_mongrel ()
1816{
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if eval \${$3+:} false; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823fi
1824eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826$as_echo "$ac_res" >&6; }
1827else
1828 # Is the header compilable?
1829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830$as_echo_n "checking $2 usability... " >&6; }
1831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h. */
1833$4
1834#include <$2>
1835_ACEOF
1836if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_header_compiler=yes
1838else
1839 ac_header_compiler=no
1840fi
1841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843$as_echo "$ac_header_compiler" >&6; }
1844
1845# Is the header present?
1846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847$as_echo_n "checking $2 presence... " >&6; }
1848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h. */
1850#include <$2>
1851_ACEOF
1852if ac_fn_c_try_cpp "$LINENO"; then :
1853 ac_header_preproc=yes
1854else
1855 ac_header_preproc=no
1856fi
1857rm -f conftest.err conftest.i conftest.$ac_ext
1858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859$as_echo "$ac_header_preproc" >&6; }
1860
1861# So? What about this header?
1862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863 yes:no: )
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868 ;;
1869 no:yes:* )
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880( $as_echo "## ------------------------------------------- ##
1881## Report this to debian-dpkg@lists.debian.org ##
1882## ------------------------------------------- ##"
1883 ) | sed "s/^/$as_me: WARNING: /" >&2
1884 ;;
1885esac
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887$as_echo_n "checking for $2... " >&6; }
1888if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1890else
1891 eval "$3=\$ac_header_compiler"
1892fi
1893eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895$as_echo "$ac_res" >&6; }
1896fi
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899} # ac_fn_c_check_header_mongrel
1900
1901# ac_fn_c_try_run LINENO
1902# ----------------------
1903# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1904# that executables *can* be run.
1905ac_fn_c_try_run ()
1906{
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if { { ac_try="$ac_link"
1909case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912esac
1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914$as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_link") 2>&5
1916 ac_status=$?
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1919 { { case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922esac
1923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924$as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_try") 2>&5
1926 ac_status=$?
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; }; }; then :
1929 ac_retval=0
1930else
1931 $as_echo "$as_me: program exited with status $ac_status" >&5
1932 $as_echo "$as_me: failed program was:" >&5
1933sed 's/^/| /' conftest.$ac_ext >&5
1934
1935 ac_retval=$ac_status
1936fi
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1940
1941} # ac_fn_c_try_run
1942
1943# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1944# -------------------------------------------------------
1945# Tests whether HEADER exists and can be compiled using the include files in
1946# INCLUDES, setting the cache variable VAR accordingly.
1947ac_fn_c_check_header_compile ()
1948{
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951$as_echo_n "checking for $2... " >&6; }
1952if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1954else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h. */
1957$4
1958#include <$2>
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961 eval "$3=yes"
1962else
1963 eval "$3=no"
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966fi
1967eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972} # ac_fn_c_check_header_compile
1973
1974# ac_fn_c_try_link LINENO
1975# -----------------------
1976# Try to link conftest.$ac_ext, and return whether this succeeded.
1977ac_fn_c_try_link ()
1978{
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext conftest$ac_exeext
1981 if { { ac_try="$ac_link"
1982case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985esac
1986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987$as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>conftest.err
1989 ac_status=$?
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1994 fi
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_c_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest$ac_exeext && {
2000 test "$cross_compiling" = yes ||
2001 test -x conftest$ac_exeext
2002 }; then :
2003 ac_retval=0
2004else
2005 $as_echo "$as_me: failed program was:" >&5
2006sed 's/^/| /' conftest.$ac_ext >&5
2007
2008 ac_retval=1
2009fi
2010 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2011 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2012 # interfere with the next link command; also delete a directory that is
2013 # left behind by Apple's compiler. We do this before executing the actions.
2014 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 as_fn_set_status $ac_retval
2017
2018} # ac_fn_c_try_link
2019
2020# ac_fn_c_check_func LINENO FUNC VAR
2021# ----------------------------------
2022# Tests whether FUNC exists, setting the cache variable VAR accordingly
2023ac_fn_c_check_func ()
2024{
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027$as_echo_n "checking for $2... " >&6; }
2028if eval \${$3+:} false; then :
2029 $as_echo_n "(cached) " >&6
2030else
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h. */
2033/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2035#define $2 innocuous_$2
2036
2037/* System header to define __stub macros and hopefully few prototypes,
2038 which can conflict with char $2 (); below.
2039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2040 <limits.h> exists even on freestanding compilers. */
2041
2042#ifdef __STDC__
2043# include <limits.h>
2044#else
2045# include <assert.h>
2046#endif
2047
2048#undef $2
2049
2050/* Override any GCC internal prototype to avoid an error.
2051 Use char because int might match the return type of a GCC
2052 builtin and then its argument prototype would still apply. */
2053#ifdef __cplusplus
2054extern "C"
2055#endif
2056char $2 ();
2057/* The GNU C library defines this for functions which it implements
2058 to always fail with ENOSYS. Some functions are actually named
2059 something starting with __ and the normal name is an alias. */
2060#if defined __stub_$2 || defined __stub___$2
2061choke me
2062#endif
2063
2064int
2065main ()
2066{
2067return $2 ();
2068 ;
2069 return 0;
2070}
2071_ACEOF
2072if ac_fn_c_try_link "$LINENO"; then :
2073 eval "$3=yes"
2074else
2075 eval "$3=no"
2076fi
2077rm -f core conftest.err conftest.$ac_objext \
2078 conftest$ac_exeext conftest.$ac_ext
2079fi
2080eval ac_res=\$$3
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082$as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084
2085} # ac_fn_c_check_func
2086
2087# ac_fn_cxx_try_compile LINENO
2088# ----------------------------
2089# Try to compile conftest.$ac_ext, and return whether this succeeded.
2090ac_fn_cxx_try_compile ()
2091{
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 rm -f conftest.$ac_objext
2094 if { { ac_try="$ac_compile"
2095case "(($ac_try" in
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2098esac
2099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100$as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_compile") 2>conftest.err
2102 ac_status=$?
2103 if test -s conftest.err; then
2104 grep -v '^ *+' conftest.err >conftest.er1
2105 cat conftest.er1 >&5
2106 mv -f conftest.er1 conftest.err
2107 fi
2108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109 test $ac_status = 0; } && {
2110 test -z "$ac_cxx_werror_flag" ||
2111 test ! -s conftest.err
2112 } && test -s conftest.$ac_objext; then :
2113 ac_retval=0
2114else
2115 $as_echo "$as_me: failed program was:" >&5
2116sed 's/^/| /' conftest.$ac_ext >&5
2117
2118 ac_retval=1
2119fi
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 as_fn_set_status $ac_retval
2122
2123} # ac_fn_cxx_try_compile
2124
2125# ac_fn_cxx_try_cpp LINENO
2126# ------------------------
2127# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2128ac_fn_cxx_try_cpp ()
2129{
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 if { { ac_try="$ac_cpp conftest.$ac_ext"
2132case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135esac
2136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137$as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2139 ac_status=$?
2140 if test -s conftest.err; then
2141 grep -v '^ *+' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 mv -f conftest.er1 conftest.err
2144 fi
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } > conftest.i && {
2147 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2148 test ! -s conftest.err
2149 }; then :
2150 ac_retval=0
2151else
2152 $as_echo "$as_me: failed program was:" >&5
2153sed 's/^/| /' conftest.$ac_ext >&5
2154
2155 ac_retval=1
2156fi
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 as_fn_set_status $ac_retval
2159
2160} # ac_fn_cxx_try_cpp
2161
2162# ac_fn_cxx_try_link LINENO
2163# -------------------------
2164# Try to link conftest.$ac_ext, and return whether this succeeded.
2165ac_fn_cxx_try_link ()
2166{
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 rm -f conftest.$ac_objext conftest$ac_exeext
2169 if { { ac_try="$ac_link"
2170case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173esac
2174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175$as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_link") 2>conftest.err
2177 ac_status=$?
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2182 fi
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } && {
2185 test -z "$ac_cxx_werror_flag" ||
2186 test ! -s conftest.err
2187 } && test -s conftest$ac_exeext && {
2188 test "$cross_compiling" = yes ||
2189 test -x conftest$ac_exeext
2190 }; then :
2191 ac_retval=0
2192else
2193 $as_echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 ac_retval=1
2197fi
2198 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2199 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2200 # interfere with the next link command; also delete a directory that is
2201 # left behind by Apple's compiler. We do this before executing the actions.
2202 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 as_fn_set_status $ac_retval
2205
2206} # ac_fn_cxx_try_link
2207
2208# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2209# ---------------------------------------------------------
2210# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2211# the include files in INCLUDES and setting the cache variable VAR
2212# accordingly.
2213ac_fn_cxx_check_header_mongrel ()
2214{
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 if eval \${$3+:} false; then :
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218$as_echo_n "checking for $2... " >&6; }
2219if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2221fi
2222eval ac_res=\$$3
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224$as_echo "$ac_res" >&6; }
2225else
2226 # Is the header compilable?
2227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2228$as_echo_n "checking $2 usability... " >&6; }
2229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230/* end confdefs.h. */
2231$4
2232#include <$2>
2233_ACEOF
2234if ac_fn_cxx_try_compile "$LINENO"; then :
2235 ac_header_compiler=yes
2236else
2237 ac_header_compiler=no
2238fi
2239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2241$as_echo "$ac_header_compiler" >&6; }
2242
2243# Is the header present?
2244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2245$as_echo_n "checking $2 presence... " >&6; }
2246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247/* end confdefs.h. */
2248#include <$2>
2249_ACEOF
2250if ac_fn_cxx_try_cpp "$LINENO"; then :
2251 ac_header_preproc=yes
2252else
2253 ac_header_preproc=no
2254fi
2255rm -f conftest.err conftest.i conftest.$ac_ext
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2257$as_echo "$ac_header_preproc" >&6; }
2258
2259# So? What about this header?
2260case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2261 yes:no: )
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2263$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2265$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2266 ;;
2267 no:yes:* )
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2269$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2271$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2273$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2275$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2277$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2278( $as_echo "## ------------------------------------------- ##
2279## Report this to debian-dpkg@lists.debian.org ##
2280## ------------------------------------------- ##"
2281 ) | sed "s/^/$as_me: WARNING: /" >&2
2282 ;;
2283esac
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2285$as_echo_n "checking for $2... " >&6; }
2286if eval \${$3+:} false; then :
2287 $as_echo_n "(cached) " >&6
2288else
2289 eval "$3=\$ac_header_compiler"
2290fi
2291eval ac_res=\$$3
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293$as_echo "$ac_res" >&6; }
2294fi
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296
2297} # ac_fn_cxx_check_header_mongrel
2298
2299# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2300# -------------------------------------------
2301# Tests whether TYPE exists after having included INCLUDES, setting cache
2302# variable VAR accordingly.
2303ac_fn_c_check_type ()
2304{
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2307$as_echo_n "checking for $2... " >&6; }
2308if eval \${$3+:} false; then :
2309 $as_echo_n "(cached) " >&6
2310else
2311 eval "$3=no"
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313/* end confdefs.h. */
2314$4
2315int
2316main ()
2317{
2318if (sizeof ($2))
2319 return 0;
2320 ;
2321 return 0;
2322}
2323_ACEOF
2324if ac_fn_c_try_compile "$LINENO"; then :
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326/* end confdefs.h. */
2327$4
2328int
2329main ()
2330{
2331if (sizeof (($2)))
2332 return 0;
2333 ;
2334 return 0;
2335}
2336_ACEOF
2337if ac_fn_c_try_compile "$LINENO"; then :
2338
2339else
2340 eval "$3=yes"
2341fi
2342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343fi
2344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345fi
2346eval ac_res=\$$3
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348$as_echo "$ac_res" >&6; }
2349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2350
2351} # ac_fn_c_check_type
2352
2353# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2354# --------------------------------------------
2355# Tries to find the compile-time value of EXPR in a program that includes
2356# INCLUDES, setting VAR accordingly. Returns whether the value could be
2357# computed
2358ac_fn_c_compute_int ()
2359{
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 if test "$cross_compiling" = yes; then
2362 # Depending upon the size, compute the lo and hi bounds.
2363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364/* end confdefs.h. */
2365$4
2366int
2367main ()
2368{
2369static int test_array [1 - 2 * !(($2) >= 0)];
2370test_array [0] = 0;
2371return test_array [0];
2372
2373 ;
2374 return 0;
2375}
2376_ACEOF
2377if ac_fn_c_try_compile "$LINENO"; then :
2378 ac_lo=0 ac_mid=0
2379 while :; do
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381/* end confdefs.h. */
2382$4
2383int
2384main ()
2385{
2386static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2387test_array [0] = 0;
2388return test_array [0];
2389
2390 ;
2391 return 0;
2392}
2393_ACEOF
2394if ac_fn_c_try_compile "$LINENO"; then :
2395 ac_hi=$ac_mid; break
2396else
2397 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2398 if test $ac_lo -le $ac_mid; then
2399 ac_lo= ac_hi=
2400 break
2401 fi
2402 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2403fi
2404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 done
2406else
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408/* end confdefs.h. */
2409$4
2410int
2411main ()
2412{
2413static int test_array [1 - 2 * !(($2) < 0)];
2414test_array [0] = 0;
2415return test_array [0];
2416
2417 ;
2418 return 0;
2419}
2420_ACEOF
2421if ac_fn_c_try_compile "$LINENO"; then :
2422 ac_hi=-1 ac_mid=-1
2423 while :; do
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425/* end confdefs.h. */
2426$4
2427int
2428main ()
2429{
2430static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2431test_array [0] = 0;
2432return test_array [0];
2433
2434 ;
2435 return 0;
2436}
2437_ACEOF
2438if ac_fn_c_try_compile "$LINENO"; then :
2439 ac_lo=$ac_mid; break
2440else
2441 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2442 if test $ac_mid -le $ac_hi; then
2443 ac_lo= ac_hi=
2444 break
2445 fi
2446 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2447fi
2448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 done
2450else
2451 ac_lo= ac_hi=
2452fi
2453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454fi
2455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456# Binary search between lo and hi bounds.
2457while test "x$ac_lo" != "x$ac_hi"; do
2458 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460/* end confdefs.h. */
2461$4
2462int
2463main ()
2464{
2465static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2466test_array [0] = 0;
2467return test_array [0];
2468
2469 ;
2470 return 0;
2471}
2472_ACEOF
2473if ac_fn_c_try_compile "$LINENO"; then :
2474 ac_hi=$ac_mid
2475else
2476 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2477fi
2478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479done
2480case $ac_lo in #((
2481?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2482'') ac_retval=1 ;;
2483esac
2484 else
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486/* end confdefs.h. */
2487$4
2488static long int longval () { return $2; }
2489static unsigned long int ulongval () { return $2; }
2490#include <stdio.h>
2491#include <stdlib.h>
2492int
2493main ()
2494{
2495
2496 FILE *f = fopen ("conftest.val", "w");
2497 if (! f)
2498 return 1;
2499 if (($2) < 0)
2500 {
2501 long int i = longval ();
2502 if (i != ($2))
2503 return 1;
2504 fprintf (f, "%ld", i);
2505 }
2506 else
2507 {
2508 unsigned long int i = ulongval ();
2509 if (i != ($2))
2510 return 1;
2511 fprintf (f, "%lu", i);
2512 }
2513 /* Do not output a trailing newline, as this causes \r\n confusion
2514 on some platforms. */
2515 return ferror (f) || fclose (f) != 0;
2516
2517 ;
2518 return 0;
2519}
2520_ACEOF
2521if ac_fn_c_try_run "$LINENO"; then :
2522 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2523else
2524 ac_retval=1
2525fi
2526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2527 conftest.$ac_objext conftest.beam conftest.$ac_ext
2528rm -f conftest.val
2529
2530 fi
2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532 as_fn_set_status $ac_retval
2533
2534} # ac_fn_c_compute_int
2535
2536# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2537# ---------------------------------------------
2538# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2539# accordingly.
2540ac_fn_c_check_decl ()
2541{
2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543 as_decl_name=`echo $2|sed 's/ *(.*//'`
2544 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2546$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2547if eval \${$3+:} false; then :
2548 $as_echo_n "(cached) " >&6
2549else
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551/* end confdefs.h. */
2552$4
2553int
2554main ()
2555{
2556#ifndef $as_decl_name
2557#ifdef __cplusplus
2558 (void) $as_decl_use;
2559#else
2560 (void) $as_decl_name;
2561#endif
2562#endif
2563
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568if ac_fn_c_try_compile "$LINENO"; then :
2569 eval "$3=yes"
2570else
2571 eval "$3=no"
2572fi
2573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574fi
2575eval ac_res=\$$3
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2577$as_echo "$ac_res" >&6; }
2578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2579
2580} # ac_fn_c_check_decl
2581
2582# ac_fn_cxx_check_func LINENO FUNC VAR
2583# ------------------------------------
2584# Tests whether FUNC exists, setting the cache variable VAR accordingly
2585ac_fn_cxx_check_func ()
2586{
2587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2589$as_echo_n "checking for $2... " >&6; }
2590if eval \${$3+:} false; then :
2591 $as_echo_n "(cached) " >&6
2592else
2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594/* end confdefs.h. */
2595/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2597#define $2 innocuous_$2
2598
2599/* System header to define __stub macros and hopefully few prototypes,
2600 which can conflict with char $2 (); below.
2601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2602 <limits.h> exists even on freestanding compilers. */
2603
2604#ifdef __STDC__
2605# include <limits.h>
2606#else
2607# include <assert.h>
2608#endif
2609
2610#undef $2
2611
2612/* Override any GCC internal prototype to avoid an error.
2613 Use char because int might match the return type of a GCC
2614 builtin and then its argument prototype would still apply. */
2615#ifdef __cplusplus
2616extern "C"
2617#endif
2618char $2 ();
2619/* The GNU C library defines this for functions which it implements
2620 to always fail with ENOSYS. Some functions are actually named
2621 something starting with __ and the normal name is an alias. */
2622#if defined __stub_$2 || defined __stub___$2
2623choke me
2624#endif
2625
2626int
2627main ()
2628{
2629return $2 ();
2630 ;
2631 return 0;
2632}
2633_ACEOF
2634if ac_fn_cxx_try_link "$LINENO"; then :
2635 eval "$3=yes"
2636else
2637 eval "$3=no"
2638fi
2639rm -f core conftest.err conftest.$ac_objext \
2640 conftest$ac_exeext conftest.$ac_ext
2641fi
2642eval ac_res=\$$3
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2644$as_echo "$ac_res" >&6; }
2645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2646
2647} # ac_fn_cxx_check_func
2648cat >config.log <<_ACEOF
2649This file contains any messages produced by compilers while
2650running configure, to aid debugging if configure makes a mistake.
2651
2652It was created by dpkg $as_me 1.18.25, which was
2653generated by GNU Autoconf 2.69. Invocation command line was
2654
2655 $ $0 $@
2656
2657_ACEOF
2658exec 5>>config.log
2659{
2660cat <<_ASUNAME
2661## --------- ##
2662## Platform. ##
2663## --------- ##
2664
2665hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2666uname -m = `(uname -m) 2>/dev/null || echo unknown`
2667uname -r = `(uname -r) 2>/dev/null || echo unknown`
2668uname -s = `(uname -s) 2>/dev/null || echo unknown`
2669uname -v = `(uname -v) 2>/dev/null || echo unknown`
2670
2671/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2672/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2673
2674/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2675/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2676/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2677/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2678/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2679/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2680/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2681
2682_ASUNAME
2683
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 $as_echo "PATH: $as_dir"
2690 done
2691IFS=$as_save_IFS
2692
2693} >&5
2694
2695cat >&5 <<_ACEOF
2696
2697
2698## ----------- ##
2699## Core tests. ##
2700## ----------- ##
2701
2702_ACEOF
2703
2704
2705# Keep a trace of the command line.
2706# Strip out --no-create and --no-recursion so they do not pile up.
2707# Strip out --silent because we don't want to record it for future runs.
2708# Also quote any args containing shell meta-characters.
2709# Make two passes to allow for proper duplicate-argument suppression.
2710ac_configure_args=
2711ac_configure_args0=
2712ac_configure_args1=
2713ac_must_keep_next=false
2714for ac_pass in 1 2
2715do
2716 for ac_arg
2717 do
2718 case $ac_arg in
2719 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2721 | -silent | --silent | --silen | --sile | --sil)
2722 continue ;;
2723 *\'*)
2724 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2725 esac
2726 case $ac_pass in
2727 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2728 2)
2729 as_fn_append ac_configure_args1 " '$ac_arg'"
2730 if test $ac_must_keep_next = true; then
2731 ac_must_keep_next=false # Got value, back to normal.
2732 else
2733 case $ac_arg in
2734 *=* | --config-cache | -C | -disable-* | --disable-* \
2735 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2736 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2737 | -with-* | --with-* | -without-* | --without-* | --x)
2738 case "$ac_configure_args0 " in
2739 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2740 esac
2741 ;;
2742 -* ) ac_must_keep_next=true ;;
2743 esac
2744 fi
2745 as_fn_append ac_configure_args " '$ac_arg'"
2746 ;;
2747 esac
2748 done
2749done
2750{ ac_configure_args0=; unset ac_configure_args0;}
2751{ ac_configure_args1=; unset ac_configure_args1;}
2752
2753# When interrupted or exit'd, cleanup temporary files, and complete
2754# config.log. We remove comments because anyway the quotes in there
2755# would cause problems or look ugly.
2756# WARNING: Use '\'' to represent an apostrophe within the trap.
2757# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2758trap 'exit_status=$?
2759 # Save into config.log some information that might help in debugging.
2760 {
2761 echo
2762
2763 $as_echo "## ---------------- ##
2764## Cache variables. ##
2765## ---------------- ##"
2766 echo
2767 # The following way of writing the cache mishandles newlines in values,
2768(
2769 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2770 eval ac_val=\$$ac_var
2771 case $ac_val in #(
2772 *${as_nl}*)
2773 case $ac_var in #(
2774 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2775$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2776 esac
2777 case $ac_var in #(
2778 _ | IFS | as_nl) ;; #(
2779 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2780 *) { eval $ac_var=; unset $ac_var;} ;;
2781 esac ;;
2782 esac
2783 done
2784 (set) 2>&1 |
2785 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2786 *${as_nl}ac_space=\ *)
2787 sed -n \
2788 "s/'\''/'\''\\\\'\'''\''/g;
2789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2790 ;; #(
2791 *)
2792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2793 ;;
2794 esac |
2795 sort
2796)
2797 echo
2798
2799 $as_echo "## ----------------- ##
2800## Output variables. ##
2801## ----------------- ##"
2802 echo
2803 for ac_var in $ac_subst_vars
2804 do
2805 eval ac_val=\$$ac_var
2806 case $ac_val in
2807 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2808 esac
2809 $as_echo "$ac_var='\''$ac_val'\''"
2810 done | sort
2811 echo
2812
2813 if test -n "$ac_subst_files"; then
2814 $as_echo "## ------------------- ##
2815## File substitutions. ##
2816## ------------------- ##"
2817 echo
2818 for ac_var in $ac_subst_files
2819 do
2820 eval ac_val=\$$ac_var
2821 case $ac_val in
2822 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2823 esac
2824 $as_echo "$ac_var='\''$ac_val'\''"
2825 done | sort
2826 echo
2827 fi
2828
2829 if test -s confdefs.h; then
2830 $as_echo "## ----------- ##
2831## confdefs.h. ##
2832## ----------- ##"
2833 echo
2834 cat confdefs.h
2835 echo
2836 fi
2837 test "$ac_signal" != 0 &&
2838 $as_echo "$as_me: caught signal $ac_signal"
2839 $as_echo "$as_me: exit $exit_status"
2840 } >&5
2841 rm -f core *.core core.conftest.* &&
2842 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2843 exit $exit_status
2844' 0
2845for ac_signal in 1 2 13 15; do
2846 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2847done
2848ac_signal=0
2849
2850# confdefs.h avoids OS command line length limits that DEFS can exceed.
2851rm -f -r conftest* confdefs.h
2852
2853$as_echo "/* confdefs.h */" > confdefs.h
2854
2855# Predefined preprocessor variables.
2856
2857cat >>confdefs.h <<_ACEOF
2858#define PACKAGE_NAME "$PACKAGE_NAME"
2859_ACEOF
2860
2861cat >>confdefs.h <<_ACEOF
2862#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2863_ACEOF
2864
2865cat >>confdefs.h <<_ACEOF
2866#define PACKAGE_VERSION "$PACKAGE_VERSION"
2867_ACEOF
2868
2869cat >>confdefs.h <<_ACEOF
2870#define PACKAGE_STRING "$PACKAGE_STRING"
2871_ACEOF
2872
2873cat >>confdefs.h <<_ACEOF
2874#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2875_ACEOF
2876
2877cat >>confdefs.h <<_ACEOF
2878#define PACKAGE_URL "$PACKAGE_URL"
2879_ACEOF
2880
2881
2882# Let the site file select an alternate cache file if it wants to.
2883# Prefer an explicitly selected file to automatically selected ones.
2884ac_site_file1=NONE
2885ac_site_file2=NONE
2886if test -n "$CONFIG_SITE"; then
2887 # We do not want a PATH search for config.site.
2888 case $CONFIG_SITE in #((
2889 -*) ac_site_file1=./$CONFIG_SITE;;
2890 */*) ac_site_file1=$CONFIG_SITE;;
2891 *) ac_site_file1=./$CONFIG_SITE;;
2892 esac
2893elif test "x$prefix" != xNONE; then
2894 ac_site_file1=$prefix/share/config.site
2895 ac_site_file2=$prefix/etc/config.site
2896else
2897 ac_site_file1=$ac_default_prefix/share/config.site
2898 ac_site_file2=$ac_default_prefix/etc/config.site
2899fi
2900for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2901do
2902 test "x$ac_site_file" = xNONE && continue
2903 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2905$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2906 sed 's/^/| /' "$ac_site_file" >&5
2907 . "$ac_site_file" \
2908 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910as_fn_error $? "failed to load site script $ac_site_file
2911See \`config.log' for more details" "$LINENO" 5; }
2912 fi
2913done
2914
2915if test -r "$cache_file"; then
2916 # Some versions of bash will fail to source /dev/null (special files
2917 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2918 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2920$as_echo "$as_me: loading cache $cache_file" >&6;}
2921 case $cache_file in
2922 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2923 *) . "./$cache_file";;
2924 esac
2925 fi
2926else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2928$as_echo "$as_me: creating cache $cache_file" >&6;}
2929 >$cache_file
2930fi
2931
2932gt_needs="$gt_needs "
2933# Check that the precious variables saved in the cache have kept the same
2934# value.
2935ac_cache_corrupted=false
2936for ac_var in $ac_precious_vars; do
2937 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2938 eval ac_new_set=\$ac_env_${ac_var}_set
2939 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2940 eval ac_new_val=\$ac_env_${ac_var}_value
2941 case $ac_old_set,$ac_new_set in
2942 set,)
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2944$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2945 ac_cache_corrupted=: ;;
2946 ,set)
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2948$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2949 ac_cache_corrupted=: ;;
2950 ,);;
2951 *)
2952 if test "x$ac_old_val" != "x$ac_new_val"; then
2953 # differences in whitespace do not lead to failure.
2954 ac_old_val_w=`echo x $ac_old_val`
2955 ac_new_val_w=`echo x $ac_new_val`
2956 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2958$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2959 ac_cache_corrupted=:
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2962$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2963 eval $ac_var=\$ac_old_val
2964 fi
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2966$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2968$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2969 fi;;
2970 esac
2971 # Pass precious variables to config.status.
2972 if test "$ac_new_set" = set; then
2973 case $ac_new_val in
2974 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2975 *) ac_arg=$ac_var=$ac_new_val ;;
2976 esac
2977 case " $ac_configure_args " in
2978 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2979 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2980 esac
2981 fi
2982done
2983if $ac_cache_corrupted; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2987$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2988 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2989fi
2990## -------------------- ##
2991## Main body of script. ##
2992## -------------------- ##
2993
2994ac_ext=c
2995ac_cpp='$CPP $CPPFLAGS'
2996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999
3000
3001PACKAGE_COPYRIGHT_HOLDER='Dpkg Developers'
3002
3003
3004
3005ac_aux_dir=
3006for ac_dir in build-aux "$srcdir"/build-aux; do
3007 if test -f "$ac_dir/install-sh"; then
3008 ac_aux_dir=$ac_dir
3009 ac_install_sh="$ac_aux_dir/install-sh -c"
3010 break
3011 elif test -f "$ac_dir/install.sh"; then
3012 ac_aux_dir=$ac_dir
3013 ac_install_sh="$ac_aux_dir/install.sh -c"
3014 break
3015 elif test -f "$ac_dir/shtool"; then
3016 ac_aux_dir=$ac_dir
3017 ac_install_sh="$ac_aux_dir/shtool install -c"
3018 break
3019 fi
3020done
3021if test -z "$ac_aux_dir"; then
3022 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3023fi
3024
3025# These three variables are undocumented and unsupported,
3026# and are intended to be withdrawn in a future Autoconf release.
3027# They can cause serious problems if a builder's source tree is in a directory
3028# whose full name contains unusual characters.
3029ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3030ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3031ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3032
3033
3034
3035# Expand $ac_aux_dir to an absolute path.
3036am_aux_dir=`cd "$ac_aux_dir" && pwd`
3037
3038ac_ext=c
3039ac_cpp='$CPP $CPPFLAGS'
3040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043if test -n "$ac_tool_prefix"; then
3044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3045set dummy ${ac_tool_prefix}gcc; ac_word=$2
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047$as_echo_n "checking for $ac_word... " >&6; }
3048if ${ac_cv_prog_CC+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050else
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3053else
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065done
3066 done
3067IFS=$as_save_IFS
3068
3069fi
3070fi
3071CC=$ac_cv_prog_CC
3072if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074$as_echo "$CC" >&6; }
3075else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
3078fi
3079
3080
3081fi
3082if test -z "$ac_cv_prog_CC"; then
3083 ac_ct_CC=$CC
3084 # Extract the first word of "gcc", so it can be a program name with args.
3085set dummy gcc; ac_word=$2
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087$as_echo_n "checking for $ac_word... " >&6; }
3088if ${ac_cv_prog_ac_ct_CC+:} false; then :
3089 $as_echo_n "(cached) " >&6
3090else
3091 if test -n "$ac_ct_CC"; then
3092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3093else
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_ac_ct_CC="gcc"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105done
3106 done
3107IFS=$as_save_IFS
3108
3109fi
3110fi
3111ac_ct_CC=$ac_cv_prog_ac_ct_CC
3112if test -n "$ac_ct_CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114$as_echo "$ac_ct_CC" >&6; }
3115else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117$as_echo "no" >&6; }
3118fi
3119
3120 if test "x$ac_ct_CC" = x; then
3121 CC=""
3122 else
3123 case $cross_compiling:$ac_tool_warned in
3124yes:)
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127ac_tool_warned=yes ;;
3128esac
3129 CC=$ac_ct_CC
3130 fi
3131else
3132 CC="$ac_cv_prog_CC"
3133fi
3134
3135if test -z "$CC"; then
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3138set dummy ${ac_tool_prefix}cc; ac_word=$2
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140$as_echo_n "checking for $ac_word... " >&6; }
3141if ${ac_cv_prog_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146else
3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH
3149do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_CC="${ac_tool_prefix}cc"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158done
3159 done
3160IFS=$as_save_IFS
3161
3162fi
3163fi
3164CC=$ac_cv_prog_CC
3165if test -n "$CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167$as_echo "$CC" >&6; }
3168else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170$as_echo "no" >&6; }
3171fi
3172
3173
3174 fi
3175fi
3176if test -z "$CC"; then
3177 # Extract the first word of "cc", so it can be a program name with args.
3178set dummy cc; ac_word=$2
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180$as_echo_n "checking for $ac_word... " >&6; }
3181if ${ac_cv_prog_CC+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183else
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC="$CC" # Let the user override the test.
3186else
3187 ac_prog_rejected=no
3188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189for as_dir in $PATH
3190do
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3196 ac_prog_rejected=yes
3197 continue
3198 fi
3199 ac_cv_prog_CC="cc"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3202 fi
3203done
3204 done
3205IFS=$as_save_IFS
3206
3207if test $ac_prog_rejected = yes; then
3208 # We found a bogon in the path, so make sure we never use it.
3209 set dummy $ac_cv_prog_CC
3210 shift
3211 if test $# != 0; then
3212 # We chose a different compiler from the bogus one.
3213 # However, it has the same basename, so the bogon will be chosen
3214 # first if we set CC to just the basename; use the full file name.
3215 shift
3216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3217 fi
3218fi
3219fi
3220fi
3221CC=$ac_cv_prog_CC
3222if test -n "$CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224$as_echo "$CC" >&6; }
3225else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227$as_echo "no" >&6; }
3228fi
3229
3230
3231fi
3232if test -z "$CC"; then
3233 if test -n "$ac_tool_prefix"; then
3234 for ac_prog in cl.exe
3235 do
3236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3237set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239$as_echo_n "checking for $ac_word... " >&6; }
3240if ${ac_cv_prog_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245else
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257done
3258 done
3259IFS=$as_save_IFS
3260
3261fi
3262fi
3263CC=$ac_cv_prog_CC
3264if test -n "$CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266$as_echo "$CC" >&6; }
3267else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269$as_echo "no" >&6; }
3270fi
3271
3272
3273 test -n "$CC" && break
3274 done
3275fi
3276if test -z "$CC"; then
3277 ac_ct_CC=$CC
3278 for ac_prog in cl.exe
3279do
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281set dummy $ac_prog; ac_word=$2
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283$as_echo_n "checking for $ac_word... " >&6; }
3284if ${ac_cv_prog_ac_ct_CC+:} false; then :
3285 $as_echo_n "(cached) " >&6
3286else
3287 if test -n "$ac_ct_CC"; then
3288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3289else
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297 ac_cv_prog_ac_ct_CC="$ac_prog"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3300 fi
3301done
3302 done
3303IFS=$as_save_IFS
3304
3305fi
3306fi
3307ac_ct_CC=$ac_cv_prog_ac_ct_CC
3308if test -n "$ac_ct_CC"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3310$as_echo "$ac_ct_CC" >&6; }
3311else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313$as_echo "no" >&6; }
3314fi
3315
3316
3317 test -n "$ac_ct_CC" && break
3318done
3319
3320 if test "x$ac_ct_CC" = x; then
3321 CC=""
3322 else
3323 case $cross_compiling:$ac_tool_warned in
3324yes:)
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3327ac_tool_warned=yes ;;
3328esac
3329 CC=$ac_ct_CC
3330 fi
3331fi
3332
3333fi
3334
3335
3336test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338as_fn_error $? "no acceptable C compiler found in \$PATH
3339See \`config.log' for more details" "$LINENO" 5; }
3340
3341# Provide some information about the compiler.
3342$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3343set X $ac_compile
3344ac_compiler=$2
3345for ac_option in --version -v -V -qversion; do
3346 { { ac_try="$ac_compiler $ac_option >&5"
3347case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350esac
3351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352$as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3354 ac_status=$?
3355 if test -s conftest.err; then
3356 sed '10a\
3357... rest of stderr output deleted ...
3358 10q' conftest.err >conftest.er1
3359 cat conftest.er1 >&5
3360 fi
3361 rm -f conftest.er1 conftest.err
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }
3364done
3365
3366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367/* end confdefs.h. */
3368
3369int
3370main ()
3371{
3372
3373 ;
3374 return 0;
3375}
3376_ACEOF
3377ac_clean_files_save=$ac_clean_files
3378ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3379# Try to create an executable without -o first, disregard a.out.
3380# It will help us diagnose broken compilers, and finding out an intuition
3381# of exeext.
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3383$as_echo_n "checking whether the C compiler works... " >&6; }
3384ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3385
3386# The possible output files:
3387ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3388
3389ac_rmfiles=
3390for ac_file in $ac_files
3391do
3392 case $ac_file in
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3394 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3395 esac
3396done
3397rm -f $ac_rmfiles
3398
3399if { { ac_try="$ac_link_default"
3400case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403esac
3404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405$as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_link_default") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }; then :
3410 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3411# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3412# in a Makefile. We should not override ac_cv_exeext if it was cached,
3413# so that the user can short-circuit this test for compilers unknown to
3414# Autoconf.
3415for ac_file in $ac_files ''
3416do
3417 test -f "$ac_file" || continue
3418 case $ac_file in
3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3420 ;;
3421 [ab].out )
3422 # We found the default executable, but exeext='' is most
3423 # certainly right.
3424 break;;
3425 *.* )
3426 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3427 then :; else
3428 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3429 fi
3430 # We set ac_cv_exeext here because the later test for it is not
3431 # safe: cross compilers may not add the suffix if given an `-o'
3432 # argument, so we may need to know it at that point already.
3433 # Even if this section looks crufty: it has the advantage of
3434 # actually working.
3435 break;;
3436 * )
3437 break;;
3438 esac
3439done
3440test "$ac_cv_exeext" = no && ac_cv_exeext=
3441
3442else
3443 ac_file=''
3444fi
3445if test -z "$ac_file"; then :
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447$as_echo "no" >&6; }
3448$as_echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453as_fn_error 77 "C compiler cannot create executables
3454See \`config.log' for more details" "$LINENO" 5; }
3455else
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3457$as_echo "yes" >&6; }
3458fi
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3460$as_echo_n "checking for C compiler default output file name... " >&6; }
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3462$as_echo "$ac_file" >&6; }
3463ac_exeext=$ac_cv_exeext
3464
3465rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3466ac_clean_files=$ac_clean_files_save
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3468$as_echo_n "checking for suffix of executables... " >&6; }
3469if { { ac_try="$ac_link"
3470case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473esac
3474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475$as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_link") 2>&5
3477 ac_status=$?
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }; then :
3480 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3481# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3482# work properly (i.e., refer to `conftest.exe'), while it won't with
3483# `rm'.
3484for ac_file in conftest.exe conftest conftest.*; do
3485 test -f "$ac_file" || continue
3486 case $ac_file in
3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3488 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3489 break;;
3490 * ) break;;
3491 esac
3492done
3493else
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3497See \`config.log' for more details" "$LINENO" 5; }
3498fi
3499rm -f conftest conftest$ac_cv_exeext
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3501$as_echo "$ac_cv_exeext" >&6; }
3502
3503rm -f conftest.$ac_ext
3504EXEEXT=$ac_cv_exeext
3505ac_exeext=$EXEEXT
3506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507/* end confdefs.h. */
3508#include <stdio.h>
3509int
3510main ()
3511{
3512FILE *f = fopen ("conftest.out", "w");
3513 return ferror (f) || fclose (f) != 0;
3514
3515 ;
3516 return 0;
3517}
3518_ACEOF
3519ac_clean_files="$ac_clean_files conftest.out"
3520# Check that the compiler produces executables we can run. If not, either
3521# the compiler is broken, or we cross compile.
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3523$as_echo_n "checking whether we are cross compiling... " >&6; }
3524if test "$cross_compiling" != yes; then
3525 { { ac_try="$ac_link"
3526case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529esac
3530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531$as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_link") 2>&5
3533 ac_status=$?
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }
3536 if { ac_try='./conftest$ac_cv_exeext'
3537 { { case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540esac
3541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542$as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_try") 2>&5
3544 ac_status=$?
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }; }; then
3547 cross_compiling=no
3548 else
3549 if test "$cross_compiling" = maybe; then
3550 cross_compiling=yes
3551 else
3552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554as_fn_error $? "cannot run C compiled programs.
3555If you meant to cross compile, use \`--host'.
3556See \`config.log' for more details" "$LINENO" 5; }
3557 fi
3558 fi
3559fi
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3561$as_echo "$cross_compiling" >&6; }
3562
3563rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3564ac_clean_files=$ac_clean_files_save
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3566$as_echo_n "checking for suffix of object files... " >&6; }
3567if ${ac_cv_objext+:} false; then :
3568 $as_echo_n "(cached) " >&6
3569else
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571/* end confdefs.h. */
3572
3573int
3574main ()
3575{
3576
3577 ;
3578 return 0;
3579}
3580_ACEOF
3581rm -f conftest.o conftest.obj
3582if { { ac_try="$ac_compile"
3583case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586esac
3587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588$as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_compile") 2>&5
3590 ac_status=$?
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }; then :
3593 for ac_file in conftest.o conftest.obj conftest.*; do
3594 test -f "$ac_file" || continue;
3595 case $ac_file in
3596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3597 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3598 break;;
3599 esac
3600done
3601else
3602 $as_echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
3604
3605{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607as_fn_error $? "cannot compute suffix of object files: cannot compile
3608See \`config.log' for more details" "$LINENO" 5; }
3609fi
3610rm -f conftest.$ac_cv_objext conftest.$ac_ext
3611fi
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3613$as_echo "$ac_cv_objext" >&6; }
3614OBJEXT=$ac_cv_objext
3615ac_objext=$OBJEXT
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3617$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3618if ${ac_cv_c_compiler_gnu+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620else
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h. */
3623
3624int
3625main ()
3626{
3627#ifndef __GNUC__
3628 choke me
3629#endif
3630
3631 ;
3632 return 0;
3633}
3634_ACEOF
3635if ac_fn_c_try_compile "$LINENO"; then :
3636 ac_compiler_gnu=yes
3637else
3638 ac_compiler_gnu=no
3639fi
3640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641ac_cv_c_compiler_gnu=$ac_compiler_gnu
3642
3643fi
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3645$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3646if test $ac_compiler_gnu = yes; then
3647 GCC=yes
3648else
3649 GCC=
3650fi
3651ac_test_CFLAGS=${CFLAGS+set}
3652ac_save_CFLAGS=$CFLAGS
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3654$as_echo_n "checking whether $CC accepts -g... " >&6; }
3655if ${ac_cv_prog_cc_g+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657else
3658 ac_save_c_werror_flag=$ac_c_werror_flag
3659 ac_c_werror_flag=yes
3660 ac_cv_prog_cc_g=no
3661 CFLAGS="-g"
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h. */
3664
3665int
3666main ()
3667{
3668
3669 ;
3670 return 0;
3671}
3672_ACEOF
3673if ac_fn_c_try_compile "$LINENO"; then :
3674 ac_cv_prog_cc_g=yes
3675else
3676 CFLAGS=""
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678/* end confdefs.h. */
3679
3680int
3681main ()
3682{
3683
3684 ;
3685 return 0;
3686}
3687_ACEOF
3688if ac_fn_c_try_compile "$LINENO"; then :
3689
3690else
3691 ac_c_werror_flag=$ac_save_c_werror_flag
3692 CFLAGS="-g"
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694/* end confdefs.h. */
3695
3696int
3697main ()
3698{
3699
3700 ;
3701 return 0;
3702}
3703_ACEOF
3704if ac_fn_c_try_compile "$LINENO"; then :
3705 ac_cv_prog_cc_g=yes
3706fi
3707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708fi
3709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710fi
3711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 ac_c_werror_flag=$ac_save_c_werror_flag
3713fi
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3715$as_echo "$ac_cv_prog_cc_g" >&6; }
3716if test "$ac_test_CFLAGS" = set; then
3717 CFLAGS=$ac_save_CFLAGS
3718elif test $ac_cv_prog_cc_g = yes; then
3719 if test "$GCC" = yes; then
3720 CFLAGS="-g -O2"
3721 else
3722 CFLAGS="-g"
3723 fi
3724else
3725 if test "$GCC" = yes; then
3726 CFLAGS="-O2"
3727 else
3728 CFLAGS=
3729 fi
3730fi
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3732$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3733if ${ac_cv_prog_cc_c89+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735else
3736 ac_cv_prog_cc_c89=no
3737ac_save_CC=$CC
3738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739/* end confdefs.h. */
3740#include <stdarg.h>
3741#include <stdio.h>
3742struct stat;
3743/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3744struct buf { int x; };
3745FILE * (*rcsopen) (struct buf *, struct stat *, int);
3746static char *e (p, i)
3747 char **p;
3748 int i;
3749{
3750 return p[i];
3751}
3752static char *f (char * (*g) (char **, int), char **p, ...)
3753{
3754 char *s;
3755 va_list v;
3756 va_start (v,p);
3757 s = g (p, va_arg (v,int));
3758 va_end (v);
3759 return s;
3760}
3761
3762/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3763 function prototypes and stuff, but not '\xHH' hex character constants.
3764 These don't provoke an error unfortunately, instead are silently treated
3765 as 'x'. The following induces an error, until -std is added to get
3766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3767 array size at least. It's necessary to write '\x00'==0 to get something
3768 that's true only with -std. */
3769int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3770
3771/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3772 inside strings and character constants. */
3773#define FOO(x) 'x'
3774int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3775
3776int test (int i, double x);
3777struct s1 {int (*f) (int a);};
3778struct s2 {int (*f) (double a);};
3779int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3780int argc;
3781char **argv;
3782int
3783main ()
3784{
3785return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3786 ;
3787 return 0;
3788}
3789_ACEOF
3790for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3791 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3792do
3793 CC="$ac_save_CC $ac_arg"
3794 if ac_fn_c_try_compile "$LINENO"; then :
3795 ac_cv_prog_cc_c89=$ac_arg
3796fi
3797rm -f core conftest.err conftest.$ac_objext
3798 test "x$ac_cv_prog_cc_c89" != "xno" && break
3799done
3800rm -f conftest.$ac_ext
3801CC=$ac_save_CC
3802
3803fi
3804# AC_CACHE_VAL
3805case "x$ac_cv_prog_cc_c89" in
3806 x)
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3808$as_echo "none needed" >&6; } ;;
3809 xno)
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3811$as_echo "unsupported" >&6; } ;;
3812 *)
3813 CC="$CC $ac_cv_prog_cc_c89"
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3815$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3816esac
3817if test "x$ac_cv_prog_cc_c89" != xno; then :
3818
3819fi
3820
3821ac_ext=c
3822ac_cpp='$CPP $CPPFLAGS'
3823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826
3827ac_ext=c
3828ac_cpp='$CPP $CPPFLAGS'
3829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3833$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3834if ${am_cv_prog_cc_c_o+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836else
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838/* end confdefs.h. */
3839
3840int
3841main ()
3842{
3843
3844 ;
3845 return 0;
3846}
3847_ACEOF
3848 # Make sure it works both with $CC and with simple cc.
3849 # Following AC_PROG_CC_C_O, we do the test twice because some
3850 # compilers refuse to overwrite an existing .o file with -o,
3851 # though they will create one.
3852 am_cv_prog_cc_c_o=yes
3853 for am_i in 1 2; do
3854 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3855 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } \
3859 && test -f conftest2.$ac_objext; then
3860 : OK
3861 else
3862 am_cv_prog_cc_c_o=no
3863 break
3864 fi
3865 done
3866 rm -f core conftest*
3867 unset am_i
3868fi
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3870$as_echo "$am_cv_prog_cc_c_o" >&6; }
3871if test "$am_cv_prog_cc_c_o" != yes; then
3872 # Losing compiler, so override with the script.
3873 # FIXME: It is wrong to rewrite CC.
3874 # But if we don't then we get into trouble of one sort or another.
3875 # A longer-term fix would be to have automake use am__CC in this case,
3876 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3877 CC="$am_aux_dir/compile $CC"
3878fi
3879ac_ext=c
3880ac_cpp='$CPP $CPPFLAGS'
3881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884
3885
3886
3887ac_ext=c
3888ac_cpp='$CPP $CPPFLAGS'
3889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3893$as_echo_n "checking how to run the C preprocessor... " >&6; }
3894# On Suns, sometimes $CPP names a directory.
3895if test -n "$CPP" && test -d "$CPP"; then
3896 CPP=
3897fi
3898if test -z "$CPP"; then
3899 if ${ac_cv_prog_CPP+:} false; then :
3900 $as_echo_n "(cached) " >&6
3901else
3902 # Double quotes because CPP needs to be expanded
3903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3904 do
3905 ac_preproc_ok=false
3906for ac_c_preproc_warn_flag in '' yes
3907do
3908 # Use a header file that comes with gcc, so configuring glibc
3909 # with a fresh cross-compiler works.
3910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911 # <limits.h> exists even on freestanding compilers.
3912 # On the NeXT, cc -E runs the code through the compiler's parser,
3913 # not just through cpp. "Syntax error" is here to catch this case.
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915/* end confdefs.h. */
3916#ifdef __STDC__
3917# include <limits.h>
3918#else
3919# include <assert.h>
3920#endif
3921 Syntax error
3922_ACEOF
3923if ac_fn_c_try_cpp "$LINENO"; then :
3924
3925else
3926 # Broken: fails on valid input.
3927continue
3928fi
3929rm -f conftest.err conftest.i conftest.$ac_ext
3930
3931 # OK, works on sane cases. Now check whether nonexistent headers
3932 # can be detected and how.
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934/* end confdefs.h. */
3935#include <ac_nonexistent.h>
3936_ACEOF
3937if ac_fn_c_try_cpp "$LINENO"; then :
3938 # Broken: success on invalid input.
3939continue
3940else
3941 # Passes both tests.
3942ac_preproc_ok=:
3943break
3944fi
3945rm -f conftest.err conftest.i conftest.$ac_ext
3946
3947done
3948# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3949rm -f conftest.i conftest.err conftest.$ac_ext
3950if $ac_preproc_ok; then :
3951 break
3952fi
3953
3954 done
3955 ac_cv_prog_CPP=$CPP
3956
3957fi
3958 CPP=$ac_cv_prog_CPP
3959else
3960 ac_cv_prog_CPP=$CPP
3961fi
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3963$as_echo "$CPP" >&6; }
3964ac_preproc_ok=false
3965for ac_c_preproc_warn_flag in '' yes
3966do
3967 # Use a header file that comes with gcc, so configuring glibc
3968 # with a fresh cross-compiler works.
3969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3970 # <limits.h> exists even on freestanding compilers.
3971 # On the NeXT, cc -E runs the code through the compiler's parser,
3972 # not just through cpp. "Syntax error" is here to catch this case.
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974/* end confdefs.h. */
3975#ifdef __STDC__
3976# include <limits.h>
3977#else
3978# include <assert.h>
3979#endif
3980 Syntax error
3981_ACEOF
3982if ac_fn_c_try_cpp "$LINENO"; then :
3983
3984else
3985 # Broken: fails on valid input.
3986continue
3987fi
3988rm -f conftest.err conftest.i conftest.$ac_ext
3989
3990 # OK, works on sane cases. Now check whether nonexistent headers
3991 # can be detected and how.
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993/* end confdefs.h. */
3994#include <ac_nonexistent.h>
3995_ACEOF
3996if ac_fn_c_try_cpp "$LINENO"; then :
3997 # Broken: success on invalid input.
3998continue
3999else
4000 # Passes both tests.
4001ac_preproc_ok=:
4002break
4003fi
4004rm -f conftest.err conftest.i conftest.$ac_ext
4005
4006done
4007# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4008rm -f conftest.i conftest.err conftest.$ac_ext
4009if $ac_preproc_ok; then :
4010
4011else
4012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4015See \`config.log' for more details" "$LINENO" 5; }
4016fi
4017
4018ac_ext=c
4019ac_cpp='$CPP $CPPFLAGS'
4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023
4024
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4026$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4027if ${ac_cv_path_GREP+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029else
4030 if test -z "$GREP"; then
4031 ac_path_GREP_found=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4035do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_prog in grep ggrep; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4041 as_fn_executable_p "$ac_path_GREP" || continue
4042# Check for GNU ac_path_GREP and select it if it is found.
4043 # Check for GNU $ac_path_GREP
4044case `"$ac_path_GREP" --version 2>&1` in
4045*GNU*)
4046 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4047*)
4048 ac_count=0
4049 $as_echo_n 0123456789 >"conftest.in"
4050 while :
4051 do
4052 cat "conftest.in" "conftest.in" >"conftest.tmp"
4053 mv "conftest.tmp" "conftest.in"
4054 cp "conftest.in" "conftest.nl"
4055 $as_echo 'GREP' >> "conftest.nl"
4056 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058 as_fn_arith $ac_count + 1 && ac_count=$as_val
4059 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4060 # Best one so far, save it but keep looking for a better one
4061 ac_cv_path_GREP="$ac_path_GREP"
4062 ac_path_GREP_max=$ac_count
4063 fi
4064 # 10*(2^10) chars as input seems more than enough
4065 test $ac_count -gt 10 && break
4066 done
4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068esac
4069
4070 $ac_path_GREP_found && break 3
4071 done
4072 done
4073 done
4074IFS=$as_save_IFS
4075 if test -z "$ac_cv_path_GREP"; then
4076 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4077 fi
4078else
4079 ac_cv_path_GREP=$GREP
4080fi
4081
4082fi
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4084$as_echo "$ac_cv_path_GREP" >&6; }
4085 GREP="$ac_cv_path_GREP"
4086
4087
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4089$as_echo_n "checking for egrep... " >&6; }
4090if ${ac_cv_path_EGREP+:} false; then :
4091 $as_echo_n "(cached) " >&6
4092else
4093 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4094 then ac_cv_path_EGREP="$GREP -E"
4095 else
4096 if test -z "$EGREP"; then
4097 ac_path_EGREP_found=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4101do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_prog in egrep; do
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4107 as_fn_executable_p "$ac_path_EGREP" || continue
4108# Check for GNU ac_path_EGREP and select it if it is found.
4109 # Check for GNU $ac_path_EGREP
4110case `"$ac_path_EGREP" --version 2>&1` in
4111*GNU*)
4112 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4113*)
4114 ac_count=0
4115 $as_echo_n 0123456789 >"conftest.in"
4116 while :
4117 do
4118 cat "conftest.in" "conftest.in" >"conftest.tmp"
4119 mv "conftest.tmp" "conftest.in"
4120 cp "conftest.in" "conftest.nl"
4121 $as_echo 'EGREP' >> "conftest.nl"
4122 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124 as_fn_arith $ac_count + 1 && ac_count=$as_val
4125 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4126 # Best one so far, save it but keep looking for a better one
4127 ac_cv_path_EGREP="$ac_path_EGREP"
4128 ac_path_EGREP_max=$ac_count
4129 fi
4130 # 10*(2^10) chars as input seems more than enough
4131 test $ac_count -gt 10 && break
4132 done
4133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134esac
4135
4136 $ac_path_EGREP_found && break 3
4137 done
4138 done
4139 done
4140IFS=$as_save_IFS
4141 if test -z "$ac_cv_path_EGREP"; then
4142 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4143 fi
4144else
4145 ac_cv_path_EGREP=$EGREP
4146fi
4147
4148 fi
4149fi
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4151$as_echo "$ac_cv_path_EGREP" >&6; }
4152 EGREP="$ac_cv_path_EGREP"
4153
4154
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4156$as_echo_n "checking for ANSI C header files... " >&6; }
4157if ${ac_cv_header_stdc+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159else
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161/* end confdefs.h. */
4162#include <stdlib.h>
4163#include <stdarg.h>
4164#include <string.h>
4165#include <float.h>
4166
4167int
4168main ()
4169{
4170
4171 ;
4172 return 0;
4173}
4174_ACEOF
4175if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_cv_header_stdc=yes
4177else
4178 ac_cv_header_stdc=no
4179fi
4180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181
4182if test $ac_cv_header_stdc = yes; then
4183 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185/* end confdefs.h. */
4186#include <string.h>
4187
4188_ACEOF
4189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190 $EGREP "memchr" >/dev/null 2>&1; then :
4191
4192else
4193 ac_cv_header_stdc=no
4194fi
4195rm -f conftest*
4196
4197fi
4198
4199if test $ac_cv_header_stdc = yes; then
4200 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202/* end confdefs.h. */
4203#include <stdlib.h>
4204
4205_ACEOF
4206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4207 $EGREP "free" >/dev/null 2>&1; then :
4208
4209else
4210 ac_cv_header_stdc=no
4211fi
4212rm -f conftest*
4213
4214fi
4215
4216if test $ac_cv_header_stdc = yes; then
4217 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4218 if test "$cross_compiling" = yes; then :
4219 :
4220else
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222/* end confdefs.h. */
4223#include <ctype.h>
4224#include <stdlib.h>
4225#if ((' ' & 0x0FF) == 0x020)
4226# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4227# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4228#else
4229# define ISLOWER(c) \
4230 (('a' <= (c) && (c) <= 'i') \
4231 || ('j' <= (c) && (c) <= 'r') \
4232 || ('s' <= (c) && (c) <= 'z'))
4233# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4234#endif
4235
4236#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4237int
4238main ()
4239{
4240 int i;
4241 for (i = 0; i < 256; i++)
4242 if (XOR (islower (i), ISLOWER (i))
4243 || toupper (i) != TOUPPER (i))
4244 return 2;
4245 return 0;
4246}
4247_ACEOF
4248if ac_fn_c_try_run "$LINENO"; then :
4249
4250else
4251 ac_cv_header_stdc=no
4252fi
4253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4254 conftest.$ac_objext conftest.beam conftest.$ac_ext
4255fi
4256
4257fi
4258fi
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4260$as_echo "$ac_cv_header_stdc" >&6; }
4261if test $ac_cv_header_stdc = yes; then
4262
4263$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4264
4265fi
4266
4267# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4268for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4269 inttypes.h stdint.h unistd.h
4270do :
4271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4272ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4273"
4274if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4275 cat >>confdefs.h <<_ACEOF
4276#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4277_ACEOF
4278
4279fi
4280
4281done
4282
4283
4284
4285 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4286if test "x$ac_cv_header_minix_config_h" = xyes; then :
4287 MINIX=yes
4288else
4289 MINIX=
4290fi
4291
4292
4293 if test "$MINIX" = yes; then
4294
4295$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4296
4297
4298$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4299
4300
4301$as_echo "#define _MINIX 1" >>confdefs.h
4302
4303 fi
4304
4305
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4307$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4308if ${ac_cv_safe_to_define___extensions__+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310else
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312/* end confdefs.h. */
4313
4314# define __EXTENSIONS__ 1
4315 $ac_includes_default
4316int
4317main ()
4318{
4319
4320 ;
4321 return 0;
4322}
4323_ACEOF
4324if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_safe_to_define___extensions__=yes
4326else
4327 ac_cv_safe_to_define___extensions__=no
4328fi
4329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330fi
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4332$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4333 test $ac_cv_safe_to_define___extensions__ = yes &&
4334 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4335
4336 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4337
4338 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4339
4340 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4341
4342 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4343
4344
4345
4346am__api_version='1.15'
4347
4348# Find a good install program. We prefer a C program (faster),
4349# so one script is as good as another. But avoid the broken or
4350# incompatible versions:
4351# SysV /etc/install, /usr/sbin/install
4352# SunOS /usr/etc/install
4353# IRIX /sbin/install
4354# AIX /bin/install
4355# AmigaOS /C/install, which installs bootblocks on floppy discs
4356# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4357# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4358# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4359# OS/2's system install, which has a completely different semantic
4360# ./install, which can be erroneously created by make from ./install.sh.
4361# Reject install programs that cannot install multiple files.
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4363$as_echo_n "checking for a BSD-compatible install... " >&6; }
4364if test -z "$INSTALL"; then
4365if ${ac_cv_path_install+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
4370do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 # Account for people who put trailing slashes in PATH elements.
4374case $as_dir/ in #((
4375 ./ | .// | /[cC]/* | \
4376 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4377 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4378 /usr/ucb/* ) ;;
4379 *)
4380 # OSF1 and SCO ODT 3.0 have their own names for install.
4381 # Don't use installbsd from OSF since it installs stuff as root
4382 # by default.
4383 for ac_prog in ginstall scoinst install; do
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4386 if test $ac_prog = install &&
4387 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4388 # AIX install. It has an incompatible calling convention.
4389 :
4390 elif test $ac_prog = install &&
4391 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4392 # program-specific install script used by HP pwplus--don't use.
4393 :
4394 else
4395 rm -rf conftest.one conftest.two conftest.dir
4396 echo one > conftest.one
4397 echo two > conftest.two
4398 mkdir conftest.dir
4399 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4400 test -s conftest.one && test -s conftest.two &&
4401 test -s conftest.dir/conftest.one &&
4402 test -s conftest.dir/conftest.two
4403 then
4404 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4405 break 3
4406 fi
4407 fi
4408 fi
4409 done
4410 done
4411 ;;
4412esac
4413
4414 done
4415IFS=$as_save_IFS
4416
4417rm -rf conftest.one conftest.two conftest.dir
4418
4419fi
4420 if test "${ac_cv_path_install+set}" = set; then
4421 INSTALL=$ac_cv_path_install
4422 else
4423 # As a last resort, use the slow shell script. Don't cache a
4424 # value for INSTALL within a source directory, because that will
4425 # break other packages using the cache if that directory is
4426 # removed, or if the value is a relative name.
4427 INSTALL=$ac_install_sh
4428 fi
4429fi
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4431$as_echo "$INSTALL" >&6; }
4432
4433# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4434# It thinks the first close brace ends the variable substitution.
4435test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4436
4437test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4438
4439test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4440
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4442$as_echo_n "checking whether build environment is sane... " >&6; }
4443# Reject unsafe characters in $srcdir or the absolute working directory
4444# name. Accept space and tab only in the latter.
4445am_lf='
4446'
4447case `pwd` in
4448 *[\\\"\#\$\&\'\`$am_lf]*)
4449 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4450esac
4451case $srcdir in
4452 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4453 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4454esac
4455
4456# Do 'set' in a subshell so we don't clobber the current shell's
4457# arguments. Must try -L first in case configure is actually a
4458# symlink; some systems play weird games with the mod time of symlinks
4459# (eg FreeBSD returns the mod time of the symlink's containing
4460# directory).
4461if (
4462 am_has_slept=no
4463 for am_try in 1 2; do
4464 echo "timestamp, slept: $am_has_slept" > conftest.file
4465 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4466 if test "$*" = "X"; then
4467 # -L didn't work.
4468 set X `ls -t "$srcdir/configure" conftest.file`
4469 fi
4470 if test "$*" != "X $srcdir/configure conftest.file" \
4471 && test "$*" != "X conftest.file $srcdir/configure"; then
4472
4473 # If neither matched, then we have a broken ls. This can happen
4474 # if, for instance, CONFIG_SHELL is bash and it inherits a
4475 # broken ls alias from the environment. This has actually
4476 # happened. Such a system could not be considered "sane".
4477 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4478 alias in your environment" "$LINENO" 5
4479 fi
4480 if test "$2" = conftest.file || test $am_try -eq 2; then
4481 break
4482 fi
4483 # Just in case.
4484 sleep 1
4485 am_has_slept=yes
4486 done
4487 test "$2" = conftest.file
4488 )
4489then
4490 # Ok.
4491 :
4492else
4493 as_fn_error $? "newly created file is older than distributed files!
4494Check your system clock" "$LINENO" 5
4495fi
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497$as_echo "yes" >&6; }
4498# If we didn't sleep, we still need to ensure time stamps of config.status and
4499# generated files are strictly newer.
4500am_sleep_pid=
4501if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4502 ( sleep 1 ) &
4503 am_sleep_pid=$!
4504fi
4505
4506rm -f conftest.file
4507
4508test "$program_prefix" != NONE &&
4509 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4510# Use a double $ so make ignores it.
4511test "$program_suffix" != NONE &&
4512 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4513# Double any \ or $.
4514# By default was `s,x,x', remove it if useless.
4515ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4516program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4517
4518if test x"${MISSING+set}" != xset; then
4519 case $am_aux_dir in
4520 *\ * | *\ *)
4521 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4522 *)
4523 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4524 esac
4525fi
4526# Use eval to expand $SHELL
4527if eval "$MISSING --is-lightweight"; then
4528 am_missing_run="$MISSING "
4529else
4530 am_missing_run=
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4532$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4533fi
4534
4535if test x"${install_sh+set}" != xset; then
4536 case $am_aux_dir in
4537 *\ * | *\ *)
4538 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4539 *)
4540 install_sh="\${SHELL} $am_aux_dir/install-sh"
4541 esac
4542fi
4543
4544# Installed binaries are usually stripped using 'strip' when the user
4545# run "make install-strip". However 'strip' might not be the right
4546# tool to use in cross-compilation environments, therefore Automake
4547# will honor the 'STRIP' environment variable to overrule this program.
4548if test "$cross_compiling" != no; then
4549 if test -n "$ac_tool_prefix"; then
4550 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4551set dummy ${ac_tool_prefix}strip; ac_word=$2
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553$as_echo_n "checking for $ac_word... " >&6; }
4554if ${ac_cv_prog_STRIP+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556else
4557 if test -n "$STRIP"; then
4558 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4570 fi
4571done
4572 done
4573IFS=$as_save_IFS
4574
4575fi
4576fi
4577STRIP=$ac_cv_prog_STRIP
4578if test -n "$STRIP"; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4580$as_echo "$STRIP" >&6; }
4581else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583$as_echo "no" >&6; }
4584fi
4585
4586
4587fi
4588if test -z "$ac_cv_prog_STRIP"; then
4589 ac_ct_STRIP=$STRIP
4590 # Extract the first word of "strip", so it can be a program name with args.
4591set dummy strip; ac_word=$2
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593$as_echo_n "checking for $ac_word... " >&6; }
4594if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596else
4597 if test -n "$ac_ct_STRIP"; then
4598 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_ac_ct_STRIP="strip"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611done
4612 done
4613IFS=$as_save_IFS
4614
4615fi
4616fi
4617ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4618if test -n "$ac_ct_STRIP"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4620$as_echo "$ac_ct_STRIP" >&6; }
4621else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623$as_echo "no" >&6; }
4624fi
4625
4626 if test "x$ac_ct_STRIP" = x; then
4627 STRIP=":"
4628 else
4629 case $cross_compiling:$ac_tool_warned in
4630yes:)
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4633ac_tool_warned=yes ;;
4634esac
4635 STRIP=$ac_ct_STRIP
4636 fi
4637else
4638 STRIP="$ac_cv_prog_STRIP"
4639fi
4640
4641fi
4642INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4643
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4645$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4646if test -z "$MKDIR_P"; then
4647 if ${ac_cv_path_mkdir+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_prog in mkdir gmkdir; do
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4658 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4659 'mkdir (GNU coreutils) '* | \
4660 'mkdir (coreutils) '* | \
4661 'mkdir (fileutils) '4.1*)
4662 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4663 break 3;;
4664 esac
4665 done
4666 done
4667 done
4668IFS=$as_save_IFS
4669
4670fi
4671
4672 test -d ./--version && rmdir ./--version
4673 if test "${ac_cv_path_mkdir+set}" = set; then
4674 MKDIR_P="$ac_cv_path_mkdir -p"
4675 else
4676 # As a last resort, use the slow shell script. Don't cache a
4677 # value for MKDIR_P within a source directory, because that will
4678 # break other packages using the cache if that directory is
4679 # removed, or if the value is a relative name.
4680 MKDIR_P="$ac_install_sh -d"
4681 fi
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4684$as_echo "$MKDIR_P" >&6; }
4685
4686for ac_prog in gawk mawk nawk awk
4687do
4688 # Extract the first word of "$ac_prog", so it can be a program name with args.
4689set dummy $ac_prog; ac_word=$2
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691$as_echo_n "checking for $ac_word... " >&6; }
4692if ${ac_cv_prog_AWK+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694else
4695 if test -n "$AWK"; then
4696 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705 ac_cv_prog_AWK="$ac_prog"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710 done
4711IFS=$as_save_IFS
4712
4713fi
4714fi
4715AWK=$ac_cv_prog_AWK
4716if test -n "$AWK"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4718$as_echo "$AWK" >&6; }
4719else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721$as_echo "no" >&6; }
4722fi
4723
4724
4725 test -n "$AWK" && break
4726done
4727
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4729$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4730set x ${MAKE-make}
4731ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4732if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734else
4735 cat >conftest.make <<\_ACEOF
4736SHELL = /bin/sh
4737all:
4738 @echo '@@@%%%=$(MAKE)=@@@%%%'
4739_ACEOF
4740# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4741case `${MAKE-make} -f conftest.make 2>/dev/null` in
4742 *@@@%%%=?*=@@@%%%*)
4743 eval ac_cv_prog_make_${ac_make}_set=yes;;
4744 *)
4745 eval ac_cv_prog_make_${ac_make}_set=no;;
4746esac
4747rm -f conftest.make
4748fi
4749if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4751$as_echo "yes" >&6; }
4752 SET_MAKE=
4753else
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755$as_echo "no" >&6; }
4756 SET_MAKE="MAKE=${MAKE-make}"
4757fi
4758
4759rm -rf .tst 2>/dev/null
4760mkdir .tst 2>/dev/null
4761if test -d .tst; then
4762 am__leading_dot=.
4763else
4764 am__leading_dot=_
4765fi
4766rmdir .tst 2>/dev/null
4767
4768DEPDIR="${am__leading_dot}deps"
4769
4770ac_config_commands="$ac_config_commands depfiles"
4771
4772
4773am_make=${MAKE-make}
4774cat > confinc << 'END'
4775am__doit:
4776 @echo this is the am__doit target
4777.PHONY: am__doit
4778END
4779# If we don't find an include directive, just comment out the code.
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4781$as_echo_n "checking for style of include used by $am_make... " >&6; }
4782am__include="#"
4783am__quote=
4784_am_result=none
4785# First try GNU make style include.
4786echo "include confinc" > confmf
4787# Ignore all kinds of additional output from 'make'.
4788case `$am_make -s -f confmf 2> /dev/null` in #(
4789*the\ am__doit\ target*)
4790 am__include=include
4791 am__quote=
4792 _am_result=GNU
4793 ;;
4794esac
4795# Now try BSD make style include.
4796if test "$am__include" = "#"; then
4797 echo '.include "confinc"' > confmf
4798 case `$am_make -s -f confmf 2> /dev/null` in #(
4799 *the\ am__doit\ target*)
4800 am__include=.include
4801 am__quote="\""
4802 _am_result=BSD
4803 ;;
4804 esac
4805fi
4806
4807
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4809$as_echo "$_am_result" >&6; }
4810rm -f confinc confmf
4811
4812# Check whether --enable-dependency-tracking was given.
4813if test "${enable_dependency_tracking+set}" = set; then :
4814 enableval=$enable_dependency_tracking;
4815fi
4816
4817if test "x$enable_dependency_tracking" != xno; then
4818 am_depcomp="$ac_aux_dir/depcomp"
4819 AMDEPBACKSLASH='\'
4820 am__nodep='_no'
4821fi
4822 if test "x$enable_dependency_tracking" != xno; then
4823 AMDEP_TRUE=
4824 AMDEP_FALSE='#'
4825else
4826 AMDEP_TRUE='#'
4827 AMDEP_FALSE=
4828fi
4829
4830
4831# Check whether --enable-silent-rules was given.
4832if test "${enable_silent_rules+set}" = set; then :
4833 enableval=$enable_silent_rules;
4834fi
4835
4836case $enable_silent_rules in # (((
4837 yes) AM_DEFAULT_VERBOSITY=0;;
4838 no) AM_DEFAULT_VERBOSITY=1;;
4839 *) AM_DEFAULT_VERBOSITY=1;;
4840esac
4841am_make=${MAKE-make}
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4843$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4844if ${am_cv_make_support_nested_variables+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846else
4847 if $as_echo 'TRUE=$(BAR$(V))
4848BAR0=false
4849BAR1=true
4850V=1
4851am__doit:
4852 @$(TRUE)
4853.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4854 am_cv_make_support_nested_variables=yes
4855else
4856 am_cv_make_support_nested_variables=no
4857fi
4858fi
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4860$as_echo "$am_cv_make_support_nested_variables" >&6; }
4861if test $am_cv_make_support_nested_variables = yes; then
4862 AM_V='$(V)'
4863 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4864else
4865 AM_V=$AM_DEFAULT_VERBOSITY
4866 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4867fi
4868AM_BACKSLASH='\'
4869
4870if test "`cd $srcdir && pwd`" != "`pwd`"; then
4871 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4872 # is not polluted with repeated "-I."
4873 am__isrc=' -I$(srcdir)'
4874 # test to see if srcdir already configured
4875 if test -f $srcdir/config.status; then
4876 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4877 fi
4878fi
4879
4880# test whether we have cygpath
4881if test -z "$CYGPATH_W"; then
4882 if (cygpath --version) >/dev/null 2>/dev/null; then
4883 CYGPATH_W='cygpath -w'
4884 else
4885 CYGPATH_W=echo
4886 fi
4887fi
4888
4889
4890# Define the identity of the package.
4891 PACKAGE='dpkg'
4892 VERSION='1.18.25'
4893
4894
4895cat >>confdefs.h <<_ACEOF
4896#define PACKAGE "$PACKAGE"
4897_ACEOF
4898
4899
4900cat >>confdefs.h <<_ACEOF
4901#define VERSION "$VERSION"
4902_ACEOF
4903
4904# Some tools Automake needs.
4905
4906ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4907
4908
4909AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4910
4911
4912AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4913
4914
4915AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4916
4917
4918MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4919
4920# For better backward compatibility. To be removed once Automake 1.9.x
4921# dies out for good. For more background, see:
4922# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4923# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4924mkdir_p='$(MKDIR_P)'
4925
4926# We need awk for the "check" target (and possibly the TAP driver). The
4927# system "awk" is bad on some platforms.
4928# Always define AMTAR for backward compatibility. Yes, it's still used
4929# in the wild :-( We should find a proper way to deprecate it ...
4930AMTAR='$${TAR-tar}'
4931
4932
4933# We'll loop over all known methods to create a tar archive until one works.
4934_am_tools='gnutar pax cpio none'
4935
4936am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4937
4938
4939
4940
4941
4942depcc="$CC" am_compiler_list=
4943
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4945$as_echo_n "checking dependency style of $depcc... " >&6; }
4946if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948else
4949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4950 # We make a subdir and do the tests there. Otherwise we can end up
4951 # making bogus files that we don't know about and never remove. For
4952 # instance it was reported that on HP-UX the gcc test will end up
4953 # making a dummy file named 'D' -- because '-MD' means "put the output
4954 # in D".
4955 rm -rf conftest.dir
4956 mkdir conftest.dir
4957 # Copy depcomp to subdir because otherwise we won't find it if we're
4958 # using a relative directory.
4959 cp "$am_depcomp" conftest.dir
4960 cd conftest.dir
4961 # We will build objects and dependencies in a subdirectory because
4962 # it helps to detect inapplicable dependency modes. For instance
4963 # both Tru64's cc and ICC support -MD to output dependencies as a
4964 # side effect of compilation, but ICC will put the dependencies in
4965 # the current directory while Tru64 will put them in the object
4966 # directory.
4967 mkdir sub
4968
4969 am_cv_CC_dependencies_compiler_type=none
4970 if test "$am_compiler_list" = ""; then
4971 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4972 fi
4973 am__universal=false
4974 case " $depcc " in #(
4975 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4976 esac
4977
4978 for depmode in $am_compiler_list; do
4979 # Setup a source with many dependencies, because some compilers
4980 # like to wrap large dependency lists on column 80 (with \), and
4981 # we should not choose a depcomp mode which is confused by this.
4982 #
4983 # We need to recreate these files for each test, as the compiler may
4984 # overwrite some of them when testing with obscure command lines.
4985 # This happens at least with the AIX C compiler.
4986 : > sub/conftest.c
4987 for i in 1 2 3 4 5 6; do
4988 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4989 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4990 # Solaris 10 /bin/sh.
4991 echo '/* dummy */' > sub/conftst$i.h
4992 done
4993 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4994
4995 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4996 # mode. It turns out that the SunPro C++ compiler does not properly
4997 # handle '-M -o', and we need to detect this. Also, some Intel
4998 # versions had trouble with output in subdirs.
4999 am__obj=sub/conftest.${OBJEXT-o}
5000 am__minus_obj="-o $am__obj"
5001 case $depmode in
5002 gcc)
5003 # This depmode causes a compiler race in universal mode.
5004 test "$am__universal" = false || continue
5005 ;;
5006 nosideeffect)
5007 # After this tag, mechanisms are not by side-effect, so they'll
5008 # only be used when explicitly requested.
5009 if test "x$enable_dependency_tracking" = xyes; then
5010 continue
5011 else
5012 break
5013 fi
5014 ;;
5015 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5016 # This compiler won't grok '-c -o', but also, the minuso test has
5017 # not run yet. These depmodes are late enough in the game, and
5018 # so weak that their functioning should not be impacted.
5019 am__obj=conftest.${OBJEXT-o}
5020 am__minus_obj=
5021 ;;
5022 none) break ;;
5023 esac
5024 if depmode=$depmode \
5025 source=sub/conftest.c object=$am__obj \
5026 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5027 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5028 >/dev/null 2>conftest.err &&
5029 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5030 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5031 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5032 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5033 # icc doesn't choke on unknown options, it will just issue warnings
5034 # or remarks (even with -Werror). So we grep stderr for any message
5035 # that says an option was ignored or not supported.
5036 # When given -MP, icc 7.0 and 7.1 complain thusly:
5037 # icc: Command line warning: ignoring option '-M'; no argument required
5038 # The diagnosis changed in icc 8.0:
5039 # icc: Command line remark: option '-MP' not supported
5040 if (grep 'ignoring option' conftest.err ||
5041 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5042 am_cv_CC_dependencies_compiler_type=$depmode
5043 break
5044 fi
5045 fi
5046 done
5047
5048 cd ..
5049 rm -rf conftest.dir
5050else
5051 am_cv_CC_dependencies_compiler_type=none
5052fi
5053
5054fi
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5056$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5057CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5058
5059 if
5060 test "x$enable_dependency_tracking" != xno \
5061 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5062 am__fastdepCC_TRUE=
5063 am__fastdepCC_FALSE='#'
5064else
5065 am__fastdepCC_TRUE='#'
5066 am__fastdepCC_FALSE=
5067fi
5068
5069
5070
5071# POSIX will say in a future version that running "rm -f" with no argument
5072# is OK; and we want to be able to make that assumption in our Makefile
5073# recipes. So use an aggressive probe to check that the usage we want is
5074# actually supported "in the wild" to an acceptable degree.
5075# See automake bug#10828.
5076# To make any issue more visible, cause the running configure to be aborted
5077# by default if the 'rm' program in use doesn't match our expectations; the
5078# user can still override this though.
5079if rm -f && rm -fr && rm -rf; then : OK; else
5080 cat >&2 <<'END'
5081Oops!
5082
5083Your 'rm' program seems unable to run without file operands specified
5084on the command line, even when the '-f' option is present. This is contrary
5085to the behaviour of most rm programs out there, and not conforming with
5086the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5087
5088Please tell bug-automake@gnu.org about your system, including the value
5089of your $PATH and any error possibly output before this message. This
5090can help us improve future automake versions.
5091
5092END
5093 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5094 echo 'Configuration will proceed anyway, since you have set the' >&2
5095 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5096 echo >&2
5097 else
5098 cat >&2 <<'END'
5099Aborting the configuration process, to ensure you take notice of the issue.
5100
5101You can download and install GNU coreutils to get an 'rm' implementation
5102that behaves properly: <http://www.gnu.org/software/coreutils/>.
5103
5104If you want to complete the configuration process using your problematic
5105'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5106to "yes", and re-run configure.
5107
5108END
5109 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5110 fi
5111fi
5112
5113# Check whether --enable-silent-rules was given.
5114if test "${enable_silent_rules+set}" = set; then :
5115 enableval=$enable_silent_rules;
5116fi
5117
5118case $enable_silent_rules in # (((
5119 yes) AM_DEFAULT_VERBOSITY=0;;
5120 no) AM_DEFAULT_VERBOSITY=1;;
5121 *) AM_DEFAULT_VERBOSITY=0;;
5122esac
5123am_make=${MAKE-make}
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5125$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5126if ${am_cv_make_support_nested_variables+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128else
5129 if $as_echo 'TRUE=$(BAR$(V))
5130BAR0=false
5131BAR1=true
5132V=1
5133am__doit:
5134 @$(TRUE)
5135.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5136 am_cv_make_support_nested_variables=yes
5137else
5138 am_cv_make_support_nested_variables=no
5139fi
5140fi
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5142$as_echo "$am_cv_make_support_nested_variables" >&6; }
5143if test $am_cv_make_support_nested_variables = yes; then
5144 AM_V='$(V)'
5145 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5146else
5147 AM_V=$AM_DEFAULT_VERBOSITY
5148 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5149fi
5150AM_BACKSLASH='\'
5151
5152
5153# Do not unconditionally use the following macro, as Debian jessie does not
5154# have a recent enough gettext.
5155
5156# We cannot remove the following macro due to backwards compatibility reasons.
5157# In the future when the gettext version is bumped, we have to set the above
5158# macro unconditionally to the minimal version, and set the below to 0.19.6,
5159# the first version introducing the AM_GNU_GETTEXT_REQUIRE_VERSION macro.
5160
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5162$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5163if ${ac_cv_path_SED+:} false; then :
5164 $as_echo_n "(cached) " >&6
5165else
5166 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5167 for ac_i in 1 2 3 4 5 6 7; do
5168 ac_script="$ac_script$as_nl$ac_script"
5169 done
5170 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5171 { ac_script=; unset ac_script;}
5172 if test -z "$SED"; then
5173 ac_path_SED_found=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176for as_dir in $PATH
5177do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_prog in sed gsed; do
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5183 as_fn_executable_p "$ac_path_SED" || continue
5184# Check for GNU ac_path_SED and select it if it is found.
5185 # Check for GNU $ac_path_SED
5186case `"$ac_path_SED" --version 2>&1` in
5187*GNU*)
5188 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5189*)
5190 ac_count=0
5191 $as_echo_n 0123456789 >"conftest.in"
5192 while :
5193 do
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 $as_echo '' >> "conftest.nl"
5198 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200 as_fn_arith $ac_count + 1 && ac_count=$as_val
5201 if test $ac_count -gt ${ac_path_SED_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_SED="$ac_path_SED"
5204 ac_path_SED_max=$ac_count
5205 fi
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5208 done
5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210esac
5211
5212 $ac_path_SED_found && break 3
5213 done
5214 done
5215 done
5216IFS=$as_save_IFS
5217 if test -z "$ac_cv_path_SED"; then
5218 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5219 fi
5220else
5221 ac_cv_path_SED=$SED
5222fi
5223
5224fi
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5226$as_echo "$ac_cv_path_SED" >&6; }
5227 SED="$ac_cv_path_SED"
5228 rm -f conftest.sed
5229
5230
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5232$as_echo_n "checking whether NLS is requested... " >&6; }
5233 # Check whether --enable-nls was given.
5234if test "${enable_nls+set}" = set; then :
5235 enableval=$enable_nls; USE_NLS=$enableval
5236else
5237 USE_NLS=yes
5238fi
5239
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5241$as_echo "$USE_NLS" >&6; }
5242
5243
5244
5245
5246 GETTEXT_MACRO_VERSION=0.19
5247
5248
5249
5250
5251# Prepare PATH_SEPARATOR.
5252# The user is always right.
5253if test "${PATH_SEPARATOR+set}" != set; then
5254 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5255 # contains only /bin. Note that ksh looks also at the FPATH variable,
5256 # so we have to set that as well for the test.
5257 PATH_SEPARATOR=:
5258 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5259 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5260 || PATH_SEPARATOR=';'
5261 }
5262fi
5263
5264# Find out how to test for executable files. Don't use a zero-byte file,
5265# as systems may use methods other than mode bits to determine executability.
5266cat >conf$$.file <<_ASEOF
5267#! /bin/sh
5268exit 0
5269_ASEOF
5270chmod +x conf$$.file
5271if test -x conf$$.file >/dev/null 2>&1; then
5272 ac_executable_p="test -x"
5273else
5274 ac_executable_p="test -f"
5275fi
5276rm -f conf$$.file
5277
5278# Extract the first word of "msgfmt", so it can be a program name with args.
5279set dummy msgfmt; ac_word=$2
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281$as_echo_n "checking for $ac_word... " >&6; }
5282if ${ac_cv_path_MSGFMT+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284else
5285 case "$MSGFMT" in
5286 [\\/]* | ?:[\\/]*)
5287 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5288 ;;
5289 *)
5290 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5291 for ac_dir in $PATH; do
5292 IFS="$ac_save_IFS"
5293 test -z "$ac_dir" && ac_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5296 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5297 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5298 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5299 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5300 break 2
5301 fi
5302 fi
5303 done
5304 done
5305 IFS="$ac_save_IFS"
5306 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5307 ;;
5308esac
5309fi
5310MSGFMT="$ac_cv_path_MSGFMT"
5311if test "$MSGFMT" != ":"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5313$as_echo "$MSGFMT" >&6; }
5314else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316$as_echo "no" >&6; }
5317fi
5318
5319 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5320set dummy gmsgfmt; ac_word=$2
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322$as_echo_n "checking for $ac_word... " >&6; }
5323if ${ac_cv_path_GMSGFMT+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325else
5326 case $GMSGFMT in
5327 [\\/]* | ?:[\\/]*)
5328 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5329 ;;
5330 *)
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332for as_dir in $PATH
5333do
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5341 fi
5342done
5343 done
5344IFS=$as_save_IFS
5345
5346 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5347 ;;
5348esac
5349fi
5350GMSGFMT=$ac_cv_path_GMSGFMT
5351if test -n "$GMSGFMT"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5353$as_echo "$GMSGFMT" >&6; }
5354else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356$as_echo "no" >&6; }
5357fi
5358
5359
5360
5361 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5362 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5363 *) MSGFMT_015=$MSGFMT ;;
5364 esac
5365
5366 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5367 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5368 *) GMSGFMT_015=$GMSGFMT ;;
5369 esac
5370
5371
5372
5373# Prepare PATH_SEPARATOR.
5374# The user is always right.
5375if test "${PATH_SEPARATOR+set}" != set; then
5376 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5377 # contains only /bin. Note that ksh looks also at the FPATH variable,
5378 # so we have to set that as well for the test.
5379 PATH_SEPARATOR=:
5380 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5381 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5382 || PATH_SEPARATOR=';'
5383 }
5384fi
5385
5386# Find out how to test for executable files. Don't use a zero-byte file,
5387# as systems may use methods other than mode bits to determine executability.
5388cat >conf$$.file <<_ASEOF
5389#! /bin/sh
5390exit 0
5391_ASEOF
5392chmod +x conf$$.file
5393if test -x conf$$.file >/dev/null 2>&1; then
5394 ac_executable_p="test -x"
5395else
5396 ac_executable_p="test -f"
5397fi
5398rm -f conf$$.file
5399
5400# Extract the first word of "xgettext", so it can be a program name with args.
5401set dummy xgettext; ac_word=$2
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403$as_echo_n "checking for $ac_word... " >&6; }
5404if ${ac_cv_path_XGETTEXT+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406else
5407 case "$XGETTEXT" in
5408 [\\/]* | ?:[\\/]*)
5409 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5410 ;;
5411 *)
5412 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5413 for ac_dir in $PATH; do
5414 IFS="$ac_save_IFS"
5415 test -z "$ac_dir" && ac_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5418 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5419 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5420 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5421 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5422 break 2
5423 fi
5424 fi
5425 done
5426 done
5427 IFS="$ac_save_IFS"
5428 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5429 ;;
5430esac
5431fi
5432XGETTEXT="$ac_cv_path_XGETTEXT"
5433if test "$XGETTEXT" != ":"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5435$as_echo "$XGETTEXT" >&6; }
5436else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438$as_echo "no" >&6; }
5439fi
5440
5441 rm -f messages.po
5442
5443 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5444 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5445 *) XGETTEXT_015=$XGETTEXT ;;
5446 esac
5447
5448
5449
5450# Prepare PATH_SEPARATOR.
5451# The user is always right.
5452if test "${PATH_SEPARATOR+set}" != set; then
5453 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5454 # contains only /bin. Note that ksh looks also at the FPATH variable,
5455 # so we have to set that as well for the test.
5456 PATH_SEPARATOR=:
5457 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5458 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5459 || PATH_SEPARATOR=';'
5460 }
5461fi
5462
5463# Find out how to test for executable files. Don't use a zero-byte file,
5464# as systems may use methods other than mode bits to determine executability.
5465cat >conf$$.file <<_ASEOF
5466#! /bin/sh
5467exit 0
5468_ASEOF
5469chmod +x conf$$.file
5470if test -x conf$$.file >/dev/null 2>&1; then
5471 ac_executable_p="test -x"
5472else
5473 ac_executable_p="test -f"
5474fi
5475rm -f conf$$.file
5476
5477# Extract the first word of "msgmerge", so it can be a program name with args.
5478set dummy msgmerge; ac_word=$2
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480$as_echo_n "checking for $ac_word... " >&6; }
5481if ${ac_cv_path_MSGMERGE+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483else
5484 case "$MSGMERGE" in
5485 [\\/]* | ?:[\\/]*)
5486 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5487 ;;
5488 *)
5489 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5490 for ac_dir in $PATH; do
5491 IFS="$ac_save_IFS"
5492 test -z "$ac_dir" && ac_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5495 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5496 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5497 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5498 break 2
5499 fi
5500 fi
5501 done
5502 done
5503 IFS="$ac_save_IFS"
5504 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5505 ;;
5506esac
5507fi
5508MSGMERGE="$ac_cv_path_MSGMERGE"
5509if test "$MSGMERGE" != ":"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5511$as_echo "$MSGMERGE" >&6; }
5512else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514$as_echo "no" >&6; }
5515fi
5516
5517
5518 test -n "$localedir" || localedir='${datadir}/locale'
5519
5520
5521 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5522
5523
5524 ac_config_commands="$ac_config_commands po-directories"
5525
5526
5527
5528 if test "X$prefix" = "XNONE"; then
5529 acl_final_prefix="$ac_default_prefix"
5530 else
5531 acl_final_prefix="$prefix"
5532 fi
5533 if test "X$exec_prefix" = "XNONE"; then
5534 acl_final_exec_prefix='${prefix}'
5535 else
5536 acl_final_exec_prefix="$exec_prefix"
5537 fi
5538 acl_save_prefix="$prefix"
5539 prefix="$acl_final_prefix"
5540 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5541 prefix="$acl_save_prefix"
5542
5543# Make sure we can run config.sub.
5544$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5545 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5546
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5548$as_echo_n "checking build system type... " >&6; }
5549if ${ac_cv_build+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551else
5552 ac_build_alias=$build_alias
5553test "x$ac_build_alias" = x &&
5554 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5555test "x$ac_build_alias" = x &&
5556 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5557ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5558 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5559
5560fi
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5562$as_echo "$ac_cv_build" >&6; }
5563case $ac_cv_build in
5564*-*-*) ;;
5565*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5566esac
5567build=$ac_cv_build
5568ac_save_IFS=$IFS; IFS='-'
5569set x $ac_cv_build
5570shift
5571build_cpu=$1
5572build_vendor=$2
5573shift; shift
5574# Remember, the first character of IFS is used to create $*,
5575# except with old shells:
5576build_os=$*
5577IFS=$ac_save_IFS
5578case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5579
5580
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5582$as_echo_n "checking host system type... " >&6; }
5583if ${ac_cv_host+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585else
5586 if test "x$host_alias" = x; then
5587 ac_cv_host=$ac_cv_build
5588else
5589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5590 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5591fi
5592
5593fi
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5595$as_echo "$ac_cv_host" >&6; }
5596case $ac_cv_host in
5597*-*-*) ;;
5598*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5599esac
5600host=$ac_cv_host
5601ac_save_IFS=$IFS; IFS='-'
5602set x $ac_cv_host
5603shift
5604host_cpu=$1
5605host_vendor=$2
5606shift; shift
5607# Remember, the first character of IFS is used to create $*,
5608# except with old shells:
5609host_os=$*
5610IFS=$ac_save_IFS
5611case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5612
5613
5614
5615
5616# Check whether --with-gnu-ld was given.
5617if test "${with_gnu_ld+set}" = set; then :
5618 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5619else
5620 with_gnu_ld=no
5621fi
5622
5623# Prepare PATH_SEPARATOR.
5624# The user is always right.
5625if test "${PATH_SEPARATOR+set}" != set; then
5626 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5627 # contains only /bin. Note that ksh looks also at the FPATH variable,
5628 # so we have to set that as well for the test.
5629 PATH_SEPARATOR=:
5630 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5631 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5632 || PATH_SEPARATOR=';'
5633 }
5634fi
5635
5636ac_prog=ld
5637if test "$GCC" = yes; then
5638 # Check if gcc -print-prog-name=ld gives a path.
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5640$as_echo_n "checking for ld used by $CC... " >&6; }
5641 case $host in
5642 *-*-mingw*)
5643 # gcc leaves a trailing carriage return which upsets mingw
5644 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5645 *)
5646 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5647 esac
5648 case $ac_prog in
5649 # Accept absolute paths.
5650 [\\/]* | ?:[\\/]*)
5651 re_direlt='/[^/][^/]*/\.\./'
5652 # Canonicalize the pathname of ld
5653 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5654 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5655 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5656 done
5657 test -z "$LD" && LD="$ac_prog"
5658 ;;
5659 "")
5660 # If it fails, then pretend we aren't using GCC.
5661 ac_prog=ld
5662 ;;
5663 *)
5664 # If it is relative, then search for the first ld in PATH.
5665 with_gnu_ld=unknown
5666 ;;
5667 esac
5668elif test "$with_gnu_ld" = yes; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5670$as_echo_n "checking for GNU ld... " >&6; }
5671else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5673$as_echo_n "checking for non-GNU ld... " >&6; }
5674fi
5675if ${acl_cv_path_LD+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677else
5678 if test -z "$LD"; then
5679 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5680 for ac_dir in $PATH; do
5681 IFS="$acl_save_ifs"
5682 test -z "$ac_dir" && ac_dir=.
5683 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5684 acl_cv_path_LD="$ac_dir/$ac_prog"
5685 # Check to see if the program is GNU ld. I'd rather use --version,
5686 # but apparently some variants of GNU ld only accept -v.
5687 # Break only if it was the GNU/non-GNU ld that we prefer.
5688 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5689 *GNU* | *'with BFD'*)
5690 test "$with_gnu_ld" != no && break
5691 ;;
5692 *)
5693 test "$with_gnu_ld" != yes && break
5694 ;;
5695 esac
5696 fi
5697 done
5698 IFS="$acl_save_ifs"
5699else
5700 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5701fi
5702fi
5703
5704LD="$acl_cv_path_LD"
5705if test -n "$LD"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5707$as_echo "$LD" >&6; }
5708else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710$as_echo "no" >&6; }
5711fi
5712test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5714$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5715if ${acl_cv_prog_gnu_ld+:} false; then :
5716 $as_echo_n "(cached) " >&6
5717else
5718 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5719case `$LD -v 2>&1 </dev/null` in
5720*GNU* | *'with BFD'*)
5721 acl_cv_prog_gnu_ld=yes
5722 ;;
5723*)
5724 acl_cv_prog_gnu_ld=no
5725 ;;
5726esac
5727fi
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5729$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5730with_gnu_ld=$acl_cv_prog_gnu_ld
5731
5732
5733
5734
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5736$as_echo_n "checking for shared library run path origin... " >&6; }
5737if ${acl_cv_rpath+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739else
5740
5741 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5742 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5743 . ./conftest.sh
5744 rm -f ./conftest.sh
5745 acl_cv_rpath=done
5746
5747fi
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5749$as_echo "$acl_cv_rpath" >&6; }
5750 wl="$acl_cv_wl"
5751 acl_libext="$acl_cv_libext"
5752 acl_shlibext="$acl_cv_shlibext"
5753 acl_libname_spec="$acl_cv_libname_spec"
5754 acl_library_names_spec="$acl_cv_library_names_spec"
5755 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5756 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5757 acl_hardcode_direct="$acl_cv_hardcode_direct"
5758 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5759 # Check whether --enable-rpath was given.
5760if test "${enable_rpath+set}" = set; then :
5761 enableval=$enable_rpath; :
5762else
5763 enable_rpath=yes
5764fi
5765
5766
5767
5768
5769 acl_libdirstem=lib
5770 acl_libdirstem2=
5771 case "$host_os" in
5772 solaris*)
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5774$as_echo_n "checking for 64-bit host... " >&6; }
5775if ${gl_cv_solaris_64bit+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777else
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779/* end confdefs.h. */
5780
5781#ifdef _LP64
5782sixtyfour bits
5783#endif
5784
5785_ACEOF
5786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5787 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5788 gl_cv_solaris_64bit=yes
5789else
5790 gl_cv_solaris_64bit=no
5791fi
5792rm -f conftest*
5793
5794
5795fi
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5797$as_echo "$gl_cv_solaris_64bit" >&6; }
5798 if test $gl_cv_solaris_64bit = yes; then
5799 acl_libdirstem=lib/64
5800 case "$host_cpu" in
5801 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5802 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5803 esac
5804 fi
5805 ;;
5806 *)
5807 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5808 if test -n "$searchpath"; then
5809 acl_save_IFS="${IFS= }"; IFS=":"
5810 for searchdir in $searchpath; do
5811 if test -d "$searchdir"; then
5812 case "$searchdir" in
5813 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5814 */../ | */.. )
5815 # Better ignore directories of this form. They are misleading.
5816 ;;
5817 *) searchdir=`cd "$searchdir" && pwd`
5818 case "$searchdir" in
5819 */lib64 ) acl_libdirstem=lib64 ;;
5820 esac ;;
5821 esac
5822 fi
5823 done
5824 IFS="$acl_save_IFS"
5825 fi
5826 ;;
5827 esac
5828 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841 use_additional=yes
5842
5843 acl_save_prefix="$prefix"
5844 prefix="$acl_final_prefix"
5845 acl_save_exec_prefix="$exec_prefix"
5846 exec_prefix="$acl_final_exec_prefix"
5847
5848 eval additional_includedir=\"$includedir\"
5849 eval additional_libdir=\"$libdir\"
5850
5851 exec_prefix="$acl_save_exec_prefix"
5852 prefix="$acl_save_prefix"
5853
5854
5855# Check whether --with-libiconv-prefix was given.
5856if test "${with_libiconv_prefix+set}" = set; then :
5857 withval=$with_libiconv_prefix;
5858 if test "X$withval" = "Xno"; then
5859 use_additional=no
5860 else
5861 if test "X$withval" = "X"; then
5862
5863 acl_save_prefix="$prefix"
5864 prefix="$acl_final_prefix"
5865 acl_save_exec_prefix="$exec_prefix"
5866 exec_prefix="$acl_final_exec_prefix"
5867
5868 eval additional_includedir=\"$includedir\"
5869 eval additional_libdir=\"$libdir\"
5870
5871 exec_prefix="$acl_save_exec_prefix"
5872 prefix="$acl_save_prefix"
5873
5874 else
5875 additional_includedir="$withval/include"
5876 additional_libdir="$withval/$acl_libdirstem"
5877 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5878 && ! test -d "$withval/$acl_libdirstem"; then
5879 additional_libdir="$withval/$acl_libdirstem2"
5880 fi
5881 fi
5882 fi
5883
5884fi
5885
5886 LIBICONV=
5887 LTLIBICONV=
5888 INCICONV=
5889 LIBICONV_PREFIX=
5890 HAVE_LIBICONV=
5891 rpathdirs=
5892 ltrpathdirs=
5893 names_already_handled=
5894 names_next_round='iconv '
5895 while test -n "$names_next_round"; do
5896 names_this_round="$names_next_round"
5897 names_next_round=
5898 for name in $names_this_round; do
5899 already_handled=
5900 for n in $names_already_handled; do
5901 if test "$n" = "$name"; then
5902 already_handled=yes
5903 break
5904 fi
5905 done
5906 if test -z "$already_handled"; then
5907 names_already_handled="$names_already_handled $name"
5908 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5909 eval value=\"\$HAVE_LIB$uppername\"
5910 if test -n "$value"; then
5911 if test "$value" = yes; then
5912 eval value=\"\$LIB$uppername\"
5913 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5914 eval value=\"\$LTLIB$uppername\"
5915 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5916 else
5917 :
5918 fi
5919 else
5920 found_dir=
5921 found_la=
5922 found_so=
5923 found_a=
5924 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5925 if test -n "$acl_shlibext"; then
5926 shrext=".$acl_shlibext" # typically: shrext=.so
5927 else
5928 shrext=
5929 fi
5930 if test $use_additional = yes; then
5931 dir="$additional_libdir"
5932 if test -n "$acl_shlibext"; then
5933 if test -f "$dir/$libname$shrext"; then
5934 found_dir="$dir"
5935 found_so="$dir/$libname$shrext"
5936 else
5937 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5938 ver=`(cd "$dir" && \
5939 for f in "$libname$shrext".*; do echo "$f"; done \
5940 | sed -e "s,^$libname$shrext\\\\.,," \
5941 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5942 | sed 1q ) 2>/dev/null`
5943 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5944 found_dir="$dir"
5945 found_so="$dir/$libname$shrext.$ver"
5946 fi
5947 else
5948 eval library_names=\"$acl_library_names_spec\"
5949 for f in $library_names; do
5950 if test -f "$dir/$f"; then
5951 found_dir="$dir"
5952 found_so="$dir/$f"
5953 break
5954 fi
5955 done
5956 fi
5957 fi
5958 fi
5959 if test "X$found_dir" = "X"; then
5960 if test -f "$dir/$libname.$acl_libext"; then
5961 found_dir="$dir"
5962 found_a="$dir/$libname.$acl_libext"
5963 fi
5964 fi
5965 if test "X$found_dir" != "X"; then
5966 if test -f "$dir/$libname.la"; then
5967 found_la="$dir/$libname.la"
5968 fi
5969 fi
5970 fi
5971 if test "X$found_dir" = "X"; then
5972 for x in $LDFLAGS $LTLIBICONV; do
5973
5974 acl_save_prefix="$prefix"
5975 prefix="$acl_final_prefix"
5976 acl_save_exec_prefix="$exec_prefix"
5977 exec_prefix="$acl_final_exec_prefix"
5978 eval x=\"$x\"
5979 exec_prefix="$acl_save_exec_prefix"
5980 prefix="$acl_save_prefix"
5981
5982 case "$x" in
5983 -L*)
5984 dir=`echo "X$x" | sed -e 's/^X-L//'`
5985 if test -n "$acl_shlibext"; then
5986 if test -f "$dir/$libname$shrext"; then
5987 found_dir="$dir"
5988 found_so="$dir/$libname$shrext"
5989 else
5990 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5991 ver=`(cd "$dir" && \
5992 for f in "$libname$shrext".*; do echo "$f"; done \
5993 | sed -e "s,^$libname$shrext\\\\.,," \
5994 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5995 | sed 1q ) 2>/dev/null`
5996 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5997 found_dir="$dir"
5998 found_so="$dir/$libname$shrext.$ver"
5999 fi
6000 else
6001 eval library_names=\"$acl_library_names_spec\"
6002 for f in $library_names; do
6003 if test -f "$dir/$f"; then
6004 found_dir="$dir"
6005 found_so="$dir/$f"
6006 break
6007 fi
6008 done
6009 fi
6010 fi
6011 fi
6012 if test "X$found_dir" = "X"; then
6013 if test -f "$dir/$libname.$acl_libext"; then
6014 found_dir="$dir"
6015 found_a="$dir/$libname.$acl_libext"
6016 fi
6017 fi
6018 if test "X$found_dir" != "X"; then
6019 if test -f "$dir/$libname.la"; then
6020 found_la="$dir/$libname.la"
6021 fi
6022 fi
6023 ;;
6024 esac
6025 if test "X$found_dir" != "X"; then
6026 break
6027 fi
6028 done
6029 fi
6030 if test "X$found_dir" != "X"; then
6031 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6032 if test "X$found_so" != "X"; then
6033 if test "$enable_rpath" = no \
6034 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6035 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6036 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6037 else
6038 haveit=
6039 for x in $ltrpathdirs; do
6040 if test "X$x" = "X$found_dir"; then
6041 haveit=yes
6042 break
6043 fi
6044 done
6045 if test -z "$haveit"; then
6046 ltrpathdirs="$ltrpathdirs $found_dir"
6047 fi
6048 if test "$acl_hardcode_direct" = yes; then
6049 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6050 else
6051 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6052 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6053 haveit=
6054 for x in $rpathdirs; do
6055 if test "X$x" = "X$found_dir"; then
6056 haveit=yes
6057 break
6058 fi
6059 done
6060 if test -z "$haveit"; then
6061 rpathdirs="$rpathdirs $found_dir"
6062 fi
6063 else
6064 haveit=
6065 for x in $LDFLAGS $LIBICONV; do
6066
6067 acl_save_prefix="$prefix"
6068 prefix="$acl_final_prefix"
6069 acl_save_exec_prefix="$exec_prefix"
6070 exec_prefix="$acl_final_exec_prefix"
6071 eval x=\"$x\"
6072 exec_prefix="$acl_save_exec_prefix"
6073 prefix="$acl_save_prefix"
6074
6075 if test "X$x" = "X-L$found_dir"; then
6076 haveit=yes
6077 break
6078 fi
6079 done
6080 if test -z "$haveit"; then
6081 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6082 fi
6083 if test "$acl_hardcode_minus_L" != no; then
6084 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6085 else
6086 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6087 fi
6088 fi
6089 fi
6090 fi
6091 else
6092 if test "X$found_a" != "X"; then
6093 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6094 else
6095 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6096 fi
6097 fi
6098 additional_includedir=
6099 case "$found_dir" in
6100 */$acl_libdirstem | */$acl_libdirstem/)
6101 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6102 if test "$name" = 'iconv'; then
6103 LIBICONV_PREFIX="$basedir"
6104 fi
6105 additional_includedir="$basedir/include"
6106 ;;
6107 */$acl_libdirstem2 | */$acl_libdirstem2/)
6108 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6109 if test "$name" = 'iconv'; then
6110 LIBICONV_PREFIX="$basedir"
6111 fi
6112 additional_includedir="$basedir/include"
6113 ;;
6114 esac
6115 if test "X$additional_includedir" != "X"; then
6116 if test "X$additional_includedir" != "X/usr/include"; then
6117 haveit=
6118 if test "X$additional_includedir" = "X/usr/local/include"; then
6119 if test -n "$GCC"; then
6120 case $host_os in
6121 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6122 esac
6123 fi
6124 fi
6125 if test -z "$haveit"; then
6126 for x in $CPPFLAGS $INCICONV; do
6127
6128 acl_save_prefix="$prefix"
6129 prefix="$acl_final_prefix"
6130 acl_save_exec_prefix="$exec_prefix"
6131 exec_prefix="$acl_final_exec_prefix"
6132 eval x=\"$x\"
6133 exec_prefix="$acl_save_exec_prefix"
6134 prefix="$acl_save_prefix"
6135
6136 if test "X$x" = "X-I$additional_includedir"; then
6137 haveit=yes
6138 break
6139 fi
6140 done
6141 if test -z "$haveit"; then
6142 if test -d "$additional_includedir"; then
6143 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6144 fi
6145 fi
6146 fi
6147 fi
6148 fi
6149 if test -n "$found_la"; then
6150 save_libdir="$libdir"
6151 case "$found_la" in
6152 */* | *\\*) . "$found_la" ;;
6153 *) . "./$found_la" ;;
6154 esac
6155 libdir="$save_libdir"
6156 for dep in $dependency_libs; do
6157 case "$dep" in
6158 -L*)
6159 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6160 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6161 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6162 haveit=
6163 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6164 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6165 if test -n "$GCC"; then
6166 case $host_os in
6167 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6168 esac
6169 fi
6170 fi
6171 if test -z "$haveit"; then
6172 haveit=
6173 for x in $LDFLAGS $LIBICONV; do
6174
6175 acl_save_prefix="$prefix"
6176 prefix="$acl_final_prefix"
6177 acl_save_exec_prefix="$exec_prefix"
6178 exec_prefix="$acl_final_exec_prefix"
6179 eval x=\"$x\"
6180 exec_prefix="$acl_save_exec_prefix"
6181 prefix="$acl_save_prefix"
6182
6183 if test "X$x" = "X-L$additional_libdir"; then
6184 haveit=yes
6185 break
6186 fi
6187 done
6188 if test -z "$haveit"; then
6189 if test -d "$additional_libdir"; then
6190 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6191 fi
6192 fi
6193 haveit=
6194 for x in $LDFLAGS $LTLIBICONV; do
6195
6196 acl_save_prefix="$prefix"
6197 prefix="$acl_final_prefix"
6198 acl_save_exec_prefix="$exec_prefix"
6199 exec_prefix="$acl_final_exec_prefix"
6200 eval x=\"$x\"
6201 exec_prefix="$acl_save_exec_prefix"
6202 prefix="$acl_save_prefix"
6203
6204 if test "X$x" = "X-L$additional_libdir"; then
6205 haveit=yes
6206 break
6207 fi
6208 done
6209 if test -z "$haveit"; then
6210 if test -d "$additional_libdir"; then
6211 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6212 fi
6213 fi
6214 fi
6215 fi
6216 ;;
6217 -R*)
6218 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6219 if test "$enable_rpath" != no; then
6220 haveit=
6221 for x in $rpathdirs; do
6222 if test "X$x" = "X$dir"; then
6223 haveit=yes
6224 break
6225 fi
6226 done
6227 if test -z "$haveit"; then
6228 rpathdirs="$rpathdirs $dir"
6229 fi
6230 haveit=
6231 for x in $ltrpathdirs; do
6232 if test "X$x" = "X$dir"; then
6233 haveit=yes
6234 break
6235 fi
6236 done
6237 if test -z "$haveit"; then
6238 ltrpathdirs="$ltrpathdirs $dir"
6239 fi
6240 fi
6241 ;;
6242 -l*)
6243 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6244 ;;
6245 *.la)
6246 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6247 ;;
6248 *)
6249 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6250 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6251 ;;
6252 esac
6253 done
6254 fi
6255 else
6256 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6257 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6258 fi
6259 fi
6260 fi
6261 done
6262 done
6263 if test "X$rpathdirs" != "X"; then
6264 if test -n "$acl_hardcode_libdir_separator"; then
6265 alldirs=
6266 for found_dir in $rpathdirs; do
6267 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6268 done
6269 acl_save_libdir="$libdir"
6270 libdir="$alldirs"
6271 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6272 libdir="$acl_save_libdir"
6273 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6274 else
6275 for found_dir in $rpathdirs; do
6276 acl_save_libdir="$libdir"
6277 libdir="$found_dir"
6278 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6279 libdir="$acl_save_libdir"
6280 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6281 done
6282 fi
6283 fi
6284 if test "X$ltrpathdirs" != "X"; then
6285 for found_dir in $ltrpathdirs; do
6286 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6287 done
6288 fi
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6321$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6322if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6323 $as_echo_n "(cached) " >&6
6324else
6325 gt_save_LIBS="$LIBS"
6326 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h. */
6329#include <CoreFoundation/CFPreferences.h>
6330int
6331main ()
6332{
6333CFPreferencesCopyAppValue(NULL, NULL)
6334 ;
6335 return 0;
6336}
6337_ACEOF
6338if ac_fn_c_try_link "$LINENO"; then :
6339 gt_cv_func_CFPreferencesCopyAppValue=yes
6340else
6341 gt_cv_func_CFPreferencesCopyAppValue=no
6342fi
6343rm -f core conftest.err conftest.$ac_objext \
6344 conftest$ac_exeext conftest.$ac_ext
6345 LIBS="$gt_save_LIBS"
6346fi
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6348$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6349 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6350
6351$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6352
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6355$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6356if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358else
6359 gt_save_LIBS="$LIBS"
6360 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362/* end confdefs.h. */
6363#include <CoreFoundation/CFLocale.h>
6364int
6365main ()
6366{
6367CFLocaleCopyCurrent();
6368 ;
6369 return 0;
6370}
6371_ACEOF
6372if ac_fn_c_try_link "$LINENO"; then :
6373 gt_cv_func_CFLocaleCopyCurrent=yes
6374else
6375 gt_cv_func_CFLocaleCopyCurrent=no
6376fi
6377rm -f core conftest.err conftest.$ac_objext \
6378 conftest$ac_exeext conftest.$ac_ext
6379 LIBS="$gt_save_LIBS"
6380fi
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6382$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6383 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6384
6385$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6386
6387 fi
6388 INTL_MACOSX_LIBS=
6389 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6390 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6391 fi
6392
6393
6394
6395
6396
6397
6398 LIBINTL=
6399 LTLIBINTL=
6400 POSUB=
6401
6402 case " $gt_needs " in
6403 *" need-formatstring-macros "*) gt_api_version=3 ;;
6404 *" need-ngettext "*) gt_api_version=2 ;;
6405 *) gt_api_version=1 ;;
6406 esac
6407 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6408 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6409
6410 if test "$USE_NLS" = "yes"; then
6411 gt_use_preinstalled_gnugettext=no
6412
6413
6414 if test $gt_api_version -ge 3; then
6415 gt_revision_test_code='
6416#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6417#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6418#endif
6419typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6420'
6421 else
6422 gt_revision_test_code=
6423 fi
6424 if test $gt_api_version -ge 2; then
6425 gt_expression_test_code=' + * ngettext ("", "", 0)'
6426 else
6427 gt_expression_test_code=
6428 fi
6429
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6431$as_echo_n "checking for GNU gettext in libc... " >&6; }
6432if eval \${$gt_func_gnugettext_libc+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434else
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436/* end confdefs.h. */
6437
6438#include <libintl.h>
6439#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6440extern int _nl_msg_cat_cntr;
6441extern int *_nl_domain_bindings;
6442#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
6443#else
6444#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6445#endif
6446$gt_revision_test_code
6447
6448int
6449main ()
6450{
6451
6452bindtextdomain ("", "");
6453return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
6454
6455 ;
6456 return 0;
6457}
6458_ACEOF
6459if ac_fn_c_try_link "$LINENO"; then :
6460 eval "$gt_func_gnugettext_libc=yes"
6461else
6462 eval "$gt_func_gnugettext_libc=no"
6463fi
6464rm -f core conftest.err conftest.$ac_objext \
6465 conftest$ac_exeext conftest.$ac_ext
6466fi
6467eval ac_res=\$$gt_func_gnugettext_libc
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6469$as_echo "$ac_res" >&6; }
6470
6471 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6472
6473
6474
6475
6476
6477 am_save_CPPFLAGS="$CPPFLAGS"
6478
6479 for element in $INCICONV; do
6480 haveit=
6481 for x in $CPPFLAGS; do
6482
6483 acl_save_prefix="$prefix"
6484 prefix="$acl_final_prefix"
6485 acl_save_exec_prefix="$exec_prefix"
6486 exec_prefix="$acl_final_exec_prefix"
6487 eval x=\"$x\"
6488 exec_prefix="$acl_save_exec_prefix"
6489 prefix="$acl_save_prefix"
6490
6491 if test "X$x" = "X$element"; then
6492 haveit=yes
6493 break
6494 fi
6495 done
6496 if test -z "$haveit"; then
6497 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6498 fi
6499 done
6500
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6503$as_echo_n "checking for iconv... " >&6; }
6504if ${am_cv_func_iconv+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506else
6507
6508 am_cv_func_iconv="no, consider installing GNU libiconv"
6509 am_cv_lib_iconv=no
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511/* end confdefs.h. */
6512
6513#include <stdlib.h>
6514#include <iconv.h>
6515
6516int
6517main ()
6518{
6519iconv_t cd = iconv_open("","");
6520 iconv(cd,NULL,NULL,NULL,NULL);
6521 iconv_close(cd);
6522 ;
6523 return 0;
6524}
6525_ACEOF
6526if ac_fn_c_try_link "$LINENO"; then :
6527 am_cv_func_iconv=yes
6528fi
6529rm -f core conftest.err conftest.$ac_objext \
6530 conftest$ac_exeext conftest.$ac_ext
6531 if test "$am_cv_func_iconv" != yes; then
6532 am_save_LIBS="$LIBS"
6533 LIBS="$LIBS $LIBICONV"
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h. */
6536
6537#include <stdlib.h>
6538#include <iconv.h>
6539
6540int
6541main ()
6542{
6543iconv_t cd = iconv_open("","");
6544 iconv(cd,NULL,NULL,NULL,NULL);
6545 iconv_close(cd);
6546 ;
6547 return 0;
6548}
6549_ACEOF
6550if ac_fn_c_try_link "$LINENO"; then :
6551 am_cv_lib_iconv=yes
6552 am_cv_func_iconv=yes
6553fi
6554rm -f core conftest.err conftest.$ac_objext \
6555 conftest$ac_exeext conftest.$ac_ext
6556 LIBS="$am_save_LIBS"
6557 fi
6558
6559fi
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6561$as_echo "$am_cv_func_iconv" >&6; }
6562 if test "$am_cv_func_iconv" = yes; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6564$as_echo_n "checking for working iconv... " >&6; }
6565if ${am_cv_func_iconv_works+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567else
6568
6569 am_save_LIBS="$LIBS"
6570 if test $am_cv_lib_iconv = yes; then
6571 LIBS="$LIBS $LIBICONV"
6572 fi
6573 am_cv_func_iconv_works=no
6574 for ac_iconv_const in '' 'const'; do
6575 if test "$cross_compiling" = yes; then :
6576 case "$host_os" in
6577 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6578 *) am_cv_func_iconv_works="guessing yes" ;;
6579 esac
6580else
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582/* end confdefs.h. */
6583
6584#include <iconv.h>
6585#include <string.h>
6586
6587#ifndef ICONV_CONST
6588# define ICONV_CONST $ac_iconv_const
6589#endif
6590
6591int
6592main ()
6593{
6594int result = 0;
6595 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6596 returns. */
6597 {
6598 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6599 if (cd_utf8_to_88591 != (iconv_t)(-1))
6600 {
6601 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
6602 char buf[10];
6603 ICONV_CONST char *inptr = input;
6604 size_t inbytesleft = strlen (input);
6605 char *outptr = buf;
6606 size_t outbytesleft = sizeof (buf);
6607 size_t res = iconv (cd_utf8_to_88591,
6608 &inptr, &inbytesleft,
6609 &outptr, &outbytesleft);
6610 if (res == 0)
6611 result |= 1;
6612 iconv_close (cd_utf8_to_88591);
6613 }
6614 }
6615 /* Test against Solaris 10 bug: Failures are not distinguishable from
6616 successful returns. */
6617 {
6618 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6619 if (cd_ascii_to_88591 != (iconv_t)(-1))
6620 {
6621 static ICONV_CONST char input[] = "\263";
6622 char buf[10];
6623 ICONV_CONST char *inptr = input;
6624 size_t inbytesleft = strlen (input);
6625 char *outptr = buf;
6626 size_t outbytesleft = sizeof (buf);
6627 size_t res = iconv (cd_ascii_to_88591,
6628 &inptr, &inbytesleft,
6629 &outptr, &outbytesleft);
6630 if (res == 0)
6631 result |= 2;
6632 iconv_close (cd_ascii_to_88591);
6633 }
6634 }
6635 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
6636 {
6637 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6638 if (cd_88591_to_utf8 != (iconv_t)(-1))
6639 {
6640 static ICONV_CONST char input[] = "\304";
6641 static char buf[2] = { (char)0xDE, (char)0xAD };
6642 ICONV_CONST char *inptr = input;
6643 size_t inbytesleft = 1;
6644 char *outptr = buf;
6645 size_t outbytesleft = 1;
6646 size_t res = iconv (cd_88591_to_utf8,
6647 &inptr, &inbytesleft,
6648 &outptr, &outbytesleft);
6649 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6650 result |= 4;
6651 iconv_close (cd_88591_to_utf8);
6652 }
6653 }
6654#if 0 /* This bug could be worked around by the caller. */
6655 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6656 {
6657 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6658 if (cd_88591_to_utf8 != (iconv_t)(-1))
6659 {
6660 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6661 char buf[50];
6662 ICONV_CONST char *inptr = input;
6663 size_t inbytesleft = strlen (input);
6664 char *outptr = buf;
6665 size_t outbytesleft = sizeof (buf);
6666 size_t res = iconv (cd_88591_to_utf8,
6667 &inptr, &inbytesleft,
6668 &outptr, &outbytesleft);
6669 if ((int)res > 0)
6670 result |= 8;
6671 iconv_close (cd_88591_to_utf8);
6672 }
6673 }
6674#endif
6675 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6676 provided. */
6677 if (/* Try standardized names. */
6678 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6679 /* Try IRIX, OSF/1 names. */
6680 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6681 /* Try AIX names. */
6682 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6683 /* Try HP-UX names. */
6684 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6685 result |= 16;
6686 return result;
6687
6688 ;
6689 return 0;
6690}
6691_ACEOF
6692if ac_fn_c_try_run "$LINENO"; then :
6693 am_cv_func_iconv_works=yes
6694fi
6695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6696 conftest.$ac_objext conftest.beam conftest.$ac_ext
6697fi
6698
6699 test "$am_cv_func_iconv_works" = no || break
6700 done
6701 LIBS="$am_save_LIBS"
6702
6703fi
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6705$as_echo "$am_cv_func_iconv_works" >&6; }
6706 case "$am_cv_func_iconv_works" in
6707 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6708 *) am_func_iconv=yes ;;
6709 esac
6710 else
6711 am_func_iconv=no am_cv_lib_iconv=no
6712 fi
6713 if test "$am_func_iconv" = yes; then
6714
6715$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6716
6717 fi
6718 if test "$am_cv_lib_iconv" = yes; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6720$as_echo_n "checking how to link with libiconv... " >&6; }
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6722$as_echo "$LIBICONV" >&6; }
6723 else
6724 CPPFLAGS="$am_save_CPPFLAGS"
6725 LIBICONV=
6726 LTLIBICONV=
6727 fi
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739 use_additional=yes
6740
6741 acl_save_prefix="$prefix"
6742 prefix="$acl_final_prefix"
6743 acl_save_exec_prefix="$exec_prefix"
6744 exec_prefix="$acl_final_exec_prefix"
6745
6746 eval additional_includedir=\"$includedir\"
6747 eval additional_libdir=\"$libdir\"
6748
6749 exec_prefix="$acl_save_exec_prefix"
6750 prefix="$acl_save_prefix"
6751
6752
6753# Check whether --with-libintl-prefix was given.
6754if test "${with_libintl_prefix+set}" = set; then :
6755 withval=$with_libintl_prefix;
6756 if test "X$withval" = "Xno"; then
6757 use_additional=no
6758 else
6759 if test "X$withval" = "X"; then
6760
6761 acl_save_prefix="$prefix"
6762 prefix="$acl_final_prefix"
6763 acl_save_exec_prefix="$exec_prefix"
6764 exec_prefix="$acl_final_exec_prefix"
6765
6766 eval additional_includedir=\"$includedir\"
6767 eval additional_libdir=\"$libdir\"
6768
6769 exec_prefix="$acl_save_exec_prefix"
6770 prefix="$acl_save_prefix"
6771
6772 else
6773 additional_includedir="$withval/include"
6774 additional_libdir="$withval/$acl_libdirstem"
6775 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6776 && ! test -d "$withval/$acl_libdirstem"; then
6777 additional_libdir="$withval/$acl_libdirstem2"
6778 fi
6779 fi
6780 fi
6781
6782fi
6783
6784 LIBINTL=
6785 LTLIBINTL=
6786 INCINTL=
6787 LIBINTL_PREFIX=
6788 HAVE_LIBINTL=
6789 rpathdirs=
6790 ltrpathdirs=
6791 names_already_handled=
6792 names_next_round='intl '
6793 while test -n "$names_next_round"; do
6794 names_this_round="$names_next_round"
6795 names_next_round=
6796 for name in $names_this_round; do
6797 already_handled=
6798 for n in $names_already_handled; do
6799 if test "$n" = "$name"; then
6800 already_handled=yes
6801 break
6802 fi
6803 done
6804 if test -z "$already_handled"; then
6805 names_already_handled="$names_already_handled $name"
6806 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6807 eval value=\"\$HAVE_LIB$uppername\"
6808 if test -n "$value"; then
6809 if test "$value" = yes; then
6810 eval value=\"\$LIB$uppername\"
6811 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6812 eval value=\"\$LTLIB$uppername\"
6813 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6814 else
6815 :
6816 fi
6817 else
6818 found_dir=
6819 found_la=
6820 found_so=
6821 found_a=
6822 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6823 if test -n "$acl_shlibext"; then
6824 shrext=".$acl_shlibext" # typically: shrext=.so
6825 else
6826 shrext=
6827 fi
6828 if test $use_additional = yes; then
6829 dir="$additional_libdir"
6830 if test -n "$acl_shlibext"; then
6831 if test -f "$dir/$libname$shrext"; then
6832 found_dir="$dir"
6833 found_so="$dir/$libname$shrext"
6834 else
6835 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6836 ver=`(cd "$dir" && \
6837 for f in "$libname$shrext".*; do echo "$f"; done \
6838 | sed -e "s,^$libname$shrext\\\\.,," \
6839 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6840 | sed 1q ) 2>/dev/null`
6841 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6842 found_dir="$dir"
6843 found_so="$dir/$libname$shrext.$ver"
6844 fi
6845 else
6846 eval library_names=\"$acl_library_names_spec\"
6847 for f in $library_names; do
6848 if test -f "$dir/$f"; then
6849 found_dir="$dir"
6850 found_so="$dir/$f"
6851 break
6852 fi
6853 done
6854 fi
6855 fi
6856 fi
6857 if test "X$found_dir" = "X"; then
6858 if test -f "$dir/$libname.$acl_libext"; then
6859 found_dir="$dir"
6860 found_a="$dir/$libname.$acl_libext"
6861 fi
6862 fi
6863 if test "X$found_dir" != "X"; then
6864 if test -f "$dir/$libname.la"; then
6865 found_la="$dir/$libname.la"
6866 fi
6867 fi
6868 fi
6869 if test "X$found_dir" = "X"; then
6870 for x in $LDFLAGS $LTLIBINTL; do
6871
6872 acl_save_prefix="$prefix"
6873 prefix="$acl_final_prefix"
6874 acl_save_exec_prefix="$exec_prefix"
6875 exec_prefix="$acl_final_exec_prefix"
6876 eval x=\"$x\"
6877 exec_prefix="$acl_save_exec_prefix"
6878 prefix="$acl_save_prefix"
6879
6880 case "$x" in
6881 -L*)
6882 dir=`echo "X$x" | sed -e 's/^X-L//'`
6883 if test -n "$acl_shlibext"; then
6884 if test -f "$dir/$libname$shrext"; then
6885 found_dir="$dir"
6886 found_so="$dir/$libname$shrext"
6887 else
6888 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6889 ver=`(cd "$dir" && \
6890 for f in "$libname$shrext".*; do echo "$f"; done \
6891 | sed -e "s,^$libname$shrext\\\\.,," \
6892 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6893 | sed 1q ) 2>/dev/null`
6894 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6895 found_dir="$dir"
6896 found_so="$dir/$libname$shrext.$ver"
6897 fi
6898 else
6899 eval library_names=\"$acl_library_names_spec\"
6900 for f in $library_names; do
6901 if test -f "$dir/$f"; then
6902 found_dir="$dir"
6903 found_so="$dir/$f"
6904 break
6905 fi
6906 done
6907 fi
6908 fi
6909 fi
6910 if test "X$found_dir" = "X"; then
6911 if test -f "$dir/$libname.$acl_libext"; then
6912 found_dir="$dir"
6913 found_a="$dir/$libname.$acl_libext"
6914 fi
6915 fi
6916 if test "X$found_dir" != "X"; then
6917 if test -f "$dir/$libname.la"; then
6918 found_la="$dir/$libname.la"
6919 fi
6920 fi
6921 ;;
6922 esac
6923 if test "X$found_dir" != "X"; then
6924 break
6925 fi
6926 done
6927 fi
6928 if test "X$found_dir" != "X"; then
6929 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6930 if test "X$found_so" != "X"; then
6931 if test "$enable_rpath" = no \
6932 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6933 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6934 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6935 else
6936 haveit=
6937 for x in $ltrpathdirs; do
6938 if test "X$x" = "X$found_dir"; then
6939 haveit=yes
6940 break
6941 fi
6942 done
6943 if test -z "$haveit"; then
6944 ltrpathdirs="$ltrpathdirs $found_dir"
6945 fi
6946 if test "$acl_hardcode_direct" = yes; then
6947 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6948 else
6949 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6950 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6951 haveit=
6952 for x in $rpathdirs; do
6953 if test "X$x" = "X$found_dir"; then
6954 haveit=yes
6955 break
6956 fi
6957 done
6958 if test -z "$haveit"; then
6959 rpathdirs="$rpathdirs $found_dir"
6960 fi
6961 else
6962 haveit=
6963 for x in $LDFLAGS $LIBINTL; do
6964
6965 acl_save_prefix="$prefix"
6966 prefix="$acl_final_prefix"
6967 acl_save_exec_prefix="$exec_prefix"
6968 exec_prefix="$acl_final_exec_prefix"
6969 eval x=\"$x\"
6970 exec_prefix="$acl_save_exec_prefix"
6971 prefix="$acl_save_prefix"
6972
6973 if test "X$x" = "X-L$found_dir"; then
6974 haveit=yes
6975 break
6976 fi
6977 done
6978 if test -z "$haveit"; then
6979 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6980 fi
6981 if test "$acl_hardcode_minus_L" != no; then
6982 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6983 else
6984 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6985 fi
6986 fi
6987 fi
6988 fi
6989 else
6990 if test "X$found_a" != "X"; then
6991 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6992 else
6993 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6994 fi
6995 fi
6996 additional_includedir=
6997 case "$found_dir" in
6998 */$acl_libdirstem | */$acl_libdirstem/)
6999 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7000 if test "$name" = 'intl'; then
7001 LIBINTL_PREFIX="$basedir"
7002 fi
7003 additional_includedir="$basedir/include"
7004 ;;
7005 */$acl_libdirstem2 | */$acl_libdirstem2/)
7006 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7007 if test "$name" = 'intl'; then
7008 LIBINTL_PREFIX="$basedir"
7009 fi
7010 additional_includedir="$basedir/include"
7011 ;;
7012 esac
7013 if test "X$additional_includedir" != "X"; then
7014 if test "X$additional_includedir" != "X/usr/include"; then
7015 haveit=
7016 if test "X$additional_includedir" = "X/usr/local/include"; then
7017 if test -n "$GCC"; then
7018 case $host_os in
7019 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7020 esac
7021 fi
7022 fi
7023 if test -z "$haveit"; then
7024 for x in $CPPFLAGS $INCINTL; do
7025
7026 acl_save_prefix="$prefix"
7027 prefix="$acl_final_prefix"
7028 acl_save_exec_prefix="$exec_prefix"
7029 exec_prefix="$acl_final_exec_prefix"
7030 eval x=\"$x\"
7031 exec_prefix="$acl_save_exec_prefix"
7032 prefix="$acl_save_prefix"
7033
7034 if test "X$x" = "X-I$additional_includedir"; then
7035 haveit=yes
7036 break
7037 fi
7038 done
7039 if test -z "$haveit"; then
7040 if test -d "$additional_includedir"; then
7041 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7042 fi
7043 fi
7044 fi
7045 fi
7046 fi
7047 if test -n "$found_la"; then
7048 save_libdir="$libdir"
7049 case "$found_la" in
7050 */* | *\\*) . "$found_la" ;;
7051 *) . "./$found_la" ;;
7052 esac
7053 libdir="$save_libdir"
7054 for dep in $dependency_libs; do
7055 case "$dep" in
7056 -L*)
7057 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7058 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7059 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7060 haveit=
7061 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7062 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7063 if test -n "$GCC"; then
7064 case $host_os in
7065 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7066 esac
7067 fi
7068 fi
7069 if test -z "$haveit"; then
7070 haveit=
7071 for x in $LDFLAGS $LIBINTL; do
7072
7073 acl_save_prefix="$prefix"
7074 prefix="$acl_final_prefix"
7075 acl_save_exec_prefix="$exec_prefix"
7076 exec_prefix="$acl_final_exec_prefix"
7077 eval x=\"$x\"
7078 exec_prefix="$acl_save_exec_prefix"
7079 prefix="$acl_save_prefix"
7080
7081 if test "X$x" = "X-L$additional_libdir"; then
7082 haveit=yes
7083 break
7084 fi
7085 done
7086 if test -z "$haveit"; then
7087 if test -d "$additional_libdir"; then
7088 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7089 fi
7090 fi
7091 haveit=
7092 for x in $LDFLAGS $LTLIBINTL; do
7093
7094 acl_save_prefix="$prefix"
7095 prefix="$acl_final_prefix"
7096 acl_save_exec_prefix="$exec_prefix"
7097 exec_prefix="$acl_final_exec_prefix"
7098 eval x=\"$x\"
7099 exec_prefix="$acl_save_exec_prefix"
7100 prefix="$acl_save_prefix"
7101
7102 if test "X$x" = "X-L$additional_libdir"; then
7103 haveit=yes
7104 break
7105 fi
7106 done
7107 if test -z "$haveit"; then
7108 if test -d "$additional_libdir"; then
7109 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7110 fi
7111 fi
7112 fi
7113 fi
7114 ;;
7115 -R*)
7116 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7117 if test "$enable_rpath" != no; then
7118 haveit=
7119 for x in $rpathdirs; do
7120 if test "X$x" = "X$dir"; then
7121 haveit=yes
7122 break
7123 fi
7124 done
7125 if test -z "$haveit"; then
7126 rpathdirs="$rpathdirs $dir"
7127 fi
7128 haveit=
7129 for x in $ltrpathdirs; do
7130 if test "X$x" = "X$dir"; then
7131 haveit=yes
7132 break
7133 fi
7134 done
7135 if test -z "$haveit"; then
7136 ltrpathdirs="$ltrpathdirs $dir"
7137 fi
7138 fi
7139 ;;
7140 -l*)
7141 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7142 ;;
7143 *.la)
7144 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7145 ;;
7146 *)
7147 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7148 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7149 ;;
7150 esac
7151 done
7152 fi
7153 else
7154 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7155 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7156 fi
7157 fi
7158 fi
7159 done
7160 done
7161 if test "X$rpathdirs" != "X"; then
7162 if test -n "$acl_hardcode_libdir_separator"; then
7163 alldirs=
7164 for found_dir in $rpathdirs; do
7165 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7166 done
7167 acl_save_libdir="$libdir"
7168 libdir="$alldirs"
7169 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7170 libdir="$acl_save_libdir"
7171 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7172 else
7173 for found_dir in $rpathdirs; do
7174 acl_save_libdir="$libdir"
7175 libdir="$found_dir"
7176 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7177 libdir="$acl_save_libdir"
7178 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7179 done
7180 fi
7181 fi
7182 if test "X$ltrpathdirs" != "X"; then
7183 for found_dir in $ltrpathdirs; do
7184 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7185 done
7186 fi
7187
7188
7189
7190
7191
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7194$as_echo_n "checking for GNU gettext in libintl... " >&6; }
7195if eval \${$gt_func_gnugettext_libintl+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197else
7198 gt_save_CPPFLAGS="$CPPFLAGS"
7199 CPPFLAGS="$CPPFLAGS $INCINTL"
7200 gt_save_LIBS="$LIBS"
7201 LIBS="$LIBS $LIBINTL"
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h. */
7204
7205#include <libintl.h>
7206#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7207extern int _nl_msg_cat_cntr;
7208extern
7209#ifdef __cplusplus
7210"C"
7211#endif
7212const char *_nl_expand_alias (const char *);
7213#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
7214#else
7215#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7216#endif
7217$gt_revision_test_code
7218
7219int
7220main ()
7221{
7222
7223bindtextdomain ("", "");
7224return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7225
7226 ;
7227 return 0;
7228}
7229_ACEOF
7230if ac_fn_c_try_link "$LINENO"; then :
7231 eval "$gt_func_gnugettext_libintl=yes"
7232else
7233 eval "$gt_func_gnugettext_libintl=no"
7234fi
7235rm -f core conftest.err conftest.$ac_objext \
7236 conftest$ac_exeext conftest.$ac_ext
7237 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7238 LIBS="$LIBS $LIBICONV"
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240/* end confdefs.h. */
7241
7242#include <libintl.h>
7243#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7244extern int _nl_msg_cat_cntr;
7245extern
7246#ifdef __cplusplus
7247"C"
7248#endif
7249const char *_nl_expand_alias (const char *);
7250#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
7251#else
7252#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7253#endif
7254$gt_revision_test_code
7255
7256int
7257main ()
7258{
7259
7260bindtextdomain ("", "");
7261return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7262
7263 ;
7264 return 0;
7265}
7266_ACEOF
7267if ac_fn_c_try_link "$LINENO"; then :
7268 LIBINTL="$LIBINTL $LIBICONV"
7269 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7270 eval "$gt_func_gnugettext_libintl=yes"
7271
7272fi
7273rm -f core conftest.err conftest.$ac_objext \
7274 conftest$ac_exeext conftest.$ac_ext
7275 fi
7276 CPPFLAGS="$gt_save_CPPFLAGS"
7277 LIBS="$gt_save_LIBS"
7278fi
7279eval ac_res=\$$gt_func_gnugettext_libintl
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7281$as_echo "$ac_res" >&6; }
7282 fi
7283
7284 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7285 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7286 && test "$PACKAGE" != gettext-runtime \
7287 && test "$PACKAGE" != gettext-tools; }; then
7288 gt_use_preinstalled_gnugettext=yes
7289 else
7290 LIBINTL=
7291 LTLIBINTL=
7292 INCINTL=
7293 fi
7294
7295
7296
7297 if test -n "$INTL_MACOSX_LIBS"; then
7298 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7299 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7300 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7301 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7302 fi
7303 fi
7304
7305 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7306 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7307
7308$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7309
7310 else
7311 USE_NLS=no
7312 fi
7313 fi
7314
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7316$as_echo_n "checking whether to use NLS... " >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7318$as_echo "$USE_NLS" >&6; }
7319 if test "$USE_NLS" = "yes"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7321$as_echo_n "checking where the gettext function comes from... " >&6; }
7322 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7323 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7324 gt_source="external libintl"
7325 else
7326 gt_source="libc"
7327 fi
7328 else
7329 gt_source="included intl directory"
7330 fi
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7332$as_echo "$gt_source" >&6; }
7333 fi
7334
7335 if test "$USE_NLS" = "yes"; then
7336
7337 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7338 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7340$as_echo_n "checking how to link with libintl... " >&6; }
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7342$as_echo "$LIBINTL" >&6; }
7343
7344 for element in $INCINTL; do
7345 haveit=
7346 for x in $CPPFLAGS; do
7347
7348 acl_save_prefix="$prefix"
7349 prefix="$acl_final_prefix"
7350 acl_save_exec_prefix="$exec_prefix"
7351 exec_prefix="$acl_final_exec_prefix"
7352 eval x=\"$x\"
7353 exec_prefix="$acl_save_exec_prefix"
7354 prefix="$acl_save_prefix"
7355
7356 if test "X$x" = "X$element"; then
7357 haveit=yes
7358 break
7359 fi
7360 done
7361 if test -z "$haveit"; then
7362 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7363 fi
7364 done
7365
7366 fi
7367
7368
7369$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7370
7371
7372$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7373
7374 fi
7375
7376 POSUB=po
7377 fi
7378
7379
7380
7381 INTLLIBS="$LIBINTL"
7382
7383
7384
7385
7386
7387
7388
7389 if test ! -f $srcdir/.dist-version && test "$GMSGFMT" = ":" && test "$USE_NLS" = "yes"; then :
7390
7391 as_fn_error $? "not building from distributed tarball, gettext required when NLS support enabled" "$LINENO" 5
7392
7393fi
7394
7395
7396# Shared libraries are disabled on purpose, currently there is no ABI stability
7397# guarantee, and it will be broken at will. The infrastructure is in place just
7398# to be able to test that its future activation will work.
7399if test -n "$ac_tool_prefix"; then
7400 for ac_prog in ar lib "link -lib"
7401 do
7402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7403set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405$as_echo_n "checking for $ac_word... " >&6; }
7406if ${ac_cv_prog_AR+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408else
7409 if test -n "$AR"; then
7410 ac_cv_prog_AR="$AR" # Let the user override the test.
7411else
7412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413for as_dir in $PATH
7414do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7422 fi
7423done
7424 done
7425IFS=$as_save_IFS
7426
7427fi
7428fi
7429AR=$ac_cv_prog_AR
7430if test -n "$AR"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7432$as_echo "$AR" >&6; }
7433else
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435$as_echo "no" >&6; }
7436fi
7437
7438
7439 test -n "$AR" && break
7440 done
7441fi
7442if test -z "$AR"; then
7443 ac_ct_AR=$AR
7444 for ac_prog in ar lib "link -lib"
7445do
7446 # Extract the first word of "$ac_prog", so it can be a program name with args.
7447set dummy $ac_prog; ac_word=$2
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449$as_echo_n "checking for $ac_word... " >&6; }
7450if ${ac_cv_prog_ac_ct_AR+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452else
7453 if test -n "$ac_ct_AR"; then
7454 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7455else
7456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457for as_dir in $PATH
7458do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_ac_ct_AR="$ac_prog"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467done
7468 done
7469IFS=$as_save_IFS
7470
7471fi
7472fi
7473ac_ct_AR=$ac_cv_prog_ac_ct_AR
7474if test -n "$ac_ct_AR"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7476$as_echo "$ac_ct_AR" >&6; }
7477else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479$as_echo "no" >&6; }
7480fi
7481
7482
7483 test -n "$ac_ct_AR" && break
7484done
7485
7486 if test "x$ac_ct_AR" = x; then
7487 AR="false"
7488 else
7489 case $cross_compiling:$ac_tool_warned in
7490yes:)
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7493ac_tool_warned=yes ;;
7494esac
7495 AR=$ac_ct_AR
7496 fi
7497fi
7498
7499: ${AR=ar}
7500
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7502$as_echo_n "checking the archiver ($AR) interface... " >&6; }
7503if ${am_cv_ar_interface+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505else
7506 ac_ext=c
7507ac_cpp='$CPP $CPPFLAGS'
7508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511
7512 am_cv_ar_interface=ar
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514/* end confdefs.h. */
7515int some_variable = 0;
7516_ACEOF
7517if ac_fn_c_try_compile "$LINENO"; then :
7518 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7520 (eval $am_ar_try) 2>&5
7521 ac_status=$?
7522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7523 test $ac_status = 0; }
7524 if test "$ac_status" -eq 0; then
7525 am_cv_ar_interface=ar
7526 else
7527 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7529 (eval $am_ar_try) 2>&5
7530 ac_status=$?
7531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7532 test $ac_status = 0; }
7533 if test "$ac_status" -eq 0; then
7534 am_cv_ar_interface=lib
7535 else
7536 am_cv_ar_interface=unknown
7537 fi
7538 fi
7539 rm -f conftest.lib libconftest.a
7540
7541fi
7542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 ac_ext=c
7544ac_cpp='$CPP $CPPFLAGS'
7545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7547ac_compiler_gnu=$ac_cv_c_compiler_gnu
7548
7549fi
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7551$as_echo "$am_cv_ar_interface" >&6; }
7552
7553case $am_cv_ar_interface in
7554ar)
7555 ;;
7556lib)
7557 # Microsoft lib, so override with the ar-lib wrapper script.
7558 # FIXME: It is wrong to rewrite AR.
7559 # But if we don't then we get into trouble of one sort or another.
7560 # A longer-term fix would be to have automake use am__AR in this case,
7561 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7562 # similar.
7563 AR="$am_aux_dir/ar-lib $AR"
7564 ;;
7565unknown)
7566 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7567 ;;
7568esac
7569
7570case `pwd` in
7571 *\ * | *\ *)
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7573$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7574esac
7575
7576
7577
7578macro_version='2.4.6'
7579macro_revision='2.4.6'
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593ltmain=$ac_aux_dir/ltmain.sh
7594
7595# Backslashify metacharacters that are still active within
7596# double-quoted strings.
7597sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7598
7599# Same as above, but do not quote variable references.
7600double_quote_subst='s/\(["`\\]\)/\\\1/g'
7601
7602# Sed substitution to delay expansion of an escaped shell variable in a
7603# double_quote_subst'ed string.
7604delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7605
7606# Sed substitution to delay expansion of an escaped single quote.
7607delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7608
7609# Sed substitution to avoid accidental globbing in evaled expressions
7610no_glob_subst='s/\*/\\\*/g'
7611
7612ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7613ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7614ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7615
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7617$as_echo_n "checking how to print strings... " >&6; }
7618# Test print first, because it will be a builtin if present.
7619if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7620 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7621 ECHO='print -r --'
7622elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7623 ECHO='printf %s\n'
7624else
7625 # Use this function as a fallback that always works.
7626 func_fallback_echo ()
7627 {
7628 eval 'cat <<_LTECHO_EOF
7629$1
7630_LTECHO_EOF'
7631 }
7632 ECHO='func_fallback_echo'
7633fi
7634
7635# func_echo_all arg...
7636# Invoke $ECHO with all args, space-separated.
7637func_echo_all ()
7638{
7639 $ECHO ""
7640}
7641
7642case $ECHO in
7643 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7644$as_echo "printf" >&6; } ;;
7645 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7646$as_echo "print -r" >&6; } ;;
7647 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7648$as_echo "cat" >&6; } ;;
7649esac
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7665$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7666if ${ac_cv_path_SED+:} false; then :
7667 $as_echo_n "(cached) " >&6
7668else
7669 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7670 for ac_i in 1 2 3 4 5 6 7; do
7671 ac_script="$ac_script$as_nl$ac_script"
7672 done
7673 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7674 { ac_script=; unset ac_script;}
7675 if test -z "$SED"; then
7676 ac_path_SED_found=false
7677 # Loop through the user's path and test for each of PROGNAME-LIST
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
7683 for ac_prog in sed gsed; do
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7686 as_fn_executable_p "$ac_path_SED" || continue
7687# Check for GNU ac_path_SED and select it if it is found.
7688 # Check for GNU $ac_path_SED
7689case `"$ac_path_SED" --version 2>&1` in
7690*GNU*)
7691 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7692*)
7693 ac_count=0
7694 $as_echo_n 0123456789 >"conftest.in"
7695 while :
7696 do
7697 cat "conftest.in" "conftest.in" >"conftest.tmp"
7698 mv "conftest.tmp" "conftest.in"
7699 cp "conftest.in" "conftest.nl"
7700 $as_echo '' >> "conftest.nl"
7701 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7703 as_fn_arith $ac_count + 1 && ac_count=$as_val
7704 if test $ac_count -gt ${ac_path_SED_max-0}; then
7705 # Best one so far, save it but keep looking for a better one
7706 ac_cv_path_SED="$ac_path_SED"
7707 ac_path_SED_max=$ac_count
7708 fi
7709 # 10*(2^10) chars as input seems more than enough
7710 test $ac_count -gt 10 && break
7711 done
7712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7713esac
7714
7715 $ac_path_SED_found && break 3
7716 done
7717 done
7718 done
7719IFS=$as_save_IFS
7720 if test -z "$ac_cv_path_SED"; then
7721 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7722 fi
7723else
7724 ac_cv_path_SED=$SED
7725fi
7726
7727fi
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7729$as_echo "$ac_cv_path_SED" >&6; }
7730 SED="$ac_cv_path_SED"
7731 rm -f conftest.sed
7732
7733test -z "$SED" && SED=sed
7734Xsed="$SED -e 1s/^X//"
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7747$as_echo_n "checking for fgrep... " >&6; }
7748if ${ac_cv_path_FGREP+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750else
7751 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7752 then ac_cv_path_FGREP="$GREP -F"
7753 else
7754 if test -z "$FGREP"; then
7755 ac_path_FGREP_found=false
7756 # Loop through the user's path and test for each of PROGNAME-LIST
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7759do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
7762 for ac_prog in fgrep; do
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7765 as_fn_executable_p "$ac_path_FGREP" || continue
7766# Check for GNU ac_path_FGREP and select it if it is found.
7767 # Check for GNU $ac_path_FGREP
7768case `"$ac_path_FGREP" --version 2>&1` in
7769*GNU*)
7770 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7771*)
7772 ac_count=0
7773 $as_echo_n 0123456789 >"conftest.in"
7774 while :
7775 do
7776 cat "conftest.in" "conftest.in" >"conftest.tmp"
7777 mv "conftest.tmp" "conftest.in"
7778 cp "conftest.in" "conftest.nl"
7779 $as_echo 'FGREP' >> "conftest.nl"
7780 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7782 as_fn_arith $ac_count + 1 && ac_count=$as_val
7783 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7784 # Best one so far, save it but keep looking for a better one
7785 ac_cv_path_FGREP="$ac_path_FGREP"
7786 ac_path_FGREP_max=$ac_count
7787 fi
7788 # 10*(2^10) chars as input seems more than enough
7789 test $ac_count -gt 10 && break
7790 done
7791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7792esac
7793
7794 $ac_path_FGREP_found && break 3
7795 done
7796 done
7797 done
7798IFS=$as_save_IFS
7799 if test -z "$ac_cv_path_FGREP"; then
7800 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7801 fi
7802else
7803 ac_cv_path_FGREP=$FGREP
7804fi
7805
7806 fi
7807fi
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7809$as_echo "$ac_cv_path_FGREP" >&6; }
7810 FGREP="$ac_cv_path_FGREP"
7811
7812
7813test -z "$GREP" && GREP=grep
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833# Check whether --with-gnu-ld was given.
7834if test "${with_gnu_ld+set}" = set; then :
7835 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7836else
7837 with_gnu_ld=no
7838fi
7839
7840ac_prog=ld
7841if test yes = "$GCC"; then
7842 # Check if gcc -print-prog-name=ld gives a path.
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7844$as_echo_n "checking for ld used by $CC... " >&6; }
7845 case $host in
7846 *-*-mingw*)
7847 # gcc leaves a trailing carriage return, which upsets mingw
7848 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7849 *)
7850 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7851 esac
7852 case $ac_prog in
7853 # Accept absolute paths.
7854 [\\/]* | ?:[\\/]*)
7855 re_direlt='/[^/][^/]*/\.\./'
7856 # Canonicalize the pathname of ld
7857 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7858 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7859 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7860 done
7861 test -z "$LD" && LD=$ac_prog
7862 ;;
7863 "")
7864 # If it fails, then pretend we aren't using GCC.
7865 ac_prog=ld
7866 ;;
7867 *)
7868 # If it is relative, then search for the first ld in PATH.
7869 with_gnu_ld=unknown
7870 ;;
7871 esac
7872elif test yes = "$with_gnu_ld"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7874$as_echo_n "checking for GNU ld... " >&6; }
7875else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7877$as_echo_n "checking for non-GNU ld... " >&6; }
7878fi
7879if ${lt_cv_path_LD+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881else
7882 if test -z "$LD"; then
7883 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7884 for ac_dir in $PATH; do
7885 IFS=$lt_save_ifs
7886 test -z "$ac_dir" && ac_dir=.
7887 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7888 lt_cv_path_LD=$ac_dir/$ac_prog
7889 # Check to see if the program is GNU ld. I'd rather use --version,
7890 # but apparently some variants of GNU ld only accept -v.
7891 # Break only if it was the GNU/non-GNU ld that we prefer.
7892 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7893 *GNU* | *'with BFD'*)
7894 test no != "$with_gnu_ld" && break
7895 ;;
7896 *)
7897 test yes != "$with_gnu_ld" && break
7898 ;;
7899 esac
7900 fi
7901 done
7902 IFS=$lt_save_ifs
7903else
7904 lt_cv_path_LD=$LD # Let the user override the test with a path.
7905fi
7906fi
7907
7908LD=$lt_cv_path_LD
7909if test -n "$LD"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7911$as_echo "$LD" >&6; }
7912else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914$as_echo "no" >&6; }
7915fi
7916test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7918$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7919if ${lt_cv_prog_gnu_ld+:} false; then :
7920 $as_echo_n "(cached) " >&6
7921else
7922 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7923case `$LD -v 2>&1 </dev/null` in
7924*GNU* | *'with BFD'*)
7925 lt_cv_prog_gnu_ld=yes
7926 ;;
7927*)
7928 lt_cv_prog_gnu_ld=no
7929 ;;
7930esac
7931fi
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7933$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7934with_gnu_ld=$lt_cv_prog_gnu_ld
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7945$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7946if ${lt_cv_path_NM+:} false; then :
7947 $as_echo_n "(cached) " >&6
7948else
7949 if test -n "$NM"; then
7950 # Let the user override the test.
7951 lt_cv_path_NM=$NM
7952else
7953 lt_nm_to_check=${ac_tool_prefix}nm
7954 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7955 lt_nm_to_check="$lt_nm_to_check nm"
7956 fi
7957 for lt_tmp_nm in $lt_nm_to_check; do
7958 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7959 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7960 IFS=$lt_save_ifs
7961 test -z "$ac_dir" && ac_dir=.
7962 tmp_nm=$ac_dir/$lt_tmp_nm
7963 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7964 # Check to see if the nm accepts a BSD-compat flag.
7965 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7966 # nm: unknown option "B" ignored
7967 # Tru64's nm complains that /dev/null is an invalid object file
7968 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7969 case $build_os in
7970 mingw*) lt_bad_file=conftest.nm/nofile ;;
7971 *) lt_bad_file=/dev/null ;;
7972 esac
7973 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7974 *$lt_bad_file* | *'Invalid file or object type'*)
7975 lt_cv_path_NM="$tmp_nm -B"
7976 break 2
7977 ;;
7978 *)
7979 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7980 */dev/null*)
7981 lt_cv_path_NM="$tmp_nm -p"
7982 break 2
7983 ;;
7984 *)
7985 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7986 continue # so that we can try to find one that supports BSD flags
7987 ;;
7988 esac
7989 ;;
7990 esac
7991 fi
7992 done
7993 IFS=$lt_save_ifs
7994 done
7995 : ${lt_cv_path_NM=no}
7996fi
7997fi
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7999$as_echo "$lt_cv_path_NM" >&6; }
8000if test no != "$lt_cv_path_NM"; then
8001 NM=$lt_cv_path_NM
8002else
8003 # Didn't find any BSD compatible name lister, look for dumpbin.
8004 if test -n "$DUMPBIN"; then :
8005 # Let the user override the test.
8006 else
8007 if test -n "$ac_tool_prefix"; then
8008 for ac_prog in dumpbin "link -dump"
8009 do
8010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8011set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013$as_echo_n "checking for $ac_word... " >&6; }
8014if ${ac_cv_prog_DUMPBIN+:} false; then :
8015 $as_echo_n "(cached) " >&6
8016else
8017 if test -n "$DUMPBIN"; then
8018 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8019else
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031done
8032 done
8033IFS=$as_save_IFS
8034
8035fi
8036fi
8037DUMPBIN=$ac_cv_prog_DUMPBIN
8038if test -n "$DUMPBIN"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8040$as_echo "$DUMPBIN" >&6; }
8041else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043$as_echo "no" >&6; }
8044fi
8045
8046
8047 test -n "$DUMPBIN" && break
8048 done
8049fi
8050if test -z "$DUMPBIN"; then
8051 ac_ct_DUMPBIN=$DUMPBIN
8052 for ac_prog in dumpbin "link -dump"
8053do
8054 # Extract the first word of "$ac_prog", so it can be a program name with args.
8055set dummy $ac_prog; ac_word=$2
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057$as_echo_n "checking for $ac_word... " >&6; }
8058if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060else
8061 if test -n "$ac_ct_DUMPBIN"; then
8062 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8063else
8064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8074 fi
8075done
8076 done
8077IFS=$as_save_IFS
8078
8079fi
8080fi
8081ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8082if test -n "$ac_ct_DUMPBIN"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8084$as_echo "$ac_ct_DUMPBIN" >&6; }
8085else
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087$as_echo "no" >&6; }
8088fi
8089
8090
8091 test -n "$ac_ct_DUMPBIN" && break
8092done
8093
8094 if test "x$ac_ct_DUMPBIN" = x; then
8095 DUMPBIN=":"
8096 else
8097 case $cross_compiling:$ac_tool_warned in
8098yes:)
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8101ac_tool_warned=yes ;;
8102esac
8103 DUMPBIN=$ac_ct_DUMPBIN
8104 fi
8105fi
8106
8107 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8108 *COFF*)
8109 DUMPBIN="$DUMPBIN -symbols -headers"
8110 ;;
8111 *)
8112 DUMPBIN=:
8113 ;;
8114 esac
8115 fi
8116
8117 if test : != "$DUMPBIN"; then
8118 NM=$DUMPBIN
8119 fi
8120fi
8121test -z "$NM" && NM=nm
8122
8123
8124
8125
8126
8127
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8129$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8130if ${lt_cv_nm_interface+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132else
8133 lt_cv_nm_interface="BSD nm"
8134 echo "int some_variable = 0;" > conftest.$ac_ext
8135 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8136 (eval "$ac_compile" 2>conftest.err)
8137 cat conftest.err >&5
8138 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8139 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8140 cat conftest.err >&5
8141 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8142 cat conftest.out >&5
8143 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8144 lt_cv_nm_interface="MS dumpbin"
8145 fi
8146 rm -f conftest*
8147fi
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8149$as_echo "$lt_cv_nm_interface" >&6; }
8150
8151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8152$as_echo_n "checking whether ln -s works... " >&6; }
8153LN_S=$as_ln_s
8154if test "$LN_S" = "ln -s"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8156$as_echo "yes" >&6; }
8157else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8159$as_echo "no, using $LN_S" >&6; }
8160fi
8161
8162# find the maximum length of command line arguments
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8164$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8165if ${lt_cv_sys_max_cmd_len+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167else
8168 i=0
8169 teststring=ABCD
8170
8171 case $build_os in
8172 msdosdjgpp*)
8173 # On DJGPP, this test can blow up pretty badly due to problems in libc
8174 # (any single argument exceeding 2000 bytes causes a buffer overrun
8175 # during glob expansion). Even if it were fixed, the result of this
8176 # check would be larger than it should be.
8177 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8178 ;;
8179
8180 gnu*)
8181 # Under GNU Hurd, this test is not required because there is
8182 # no limit to the length of command line arguments.
8183 # Libtool will interpret -1 as no limit whatsoever
8184 lt_cv_sys_max_cmd_len=-1;
8185 ;;
8186
8187 cygwin* | mingw* | cegcc*)
8188 # On Win9x/ME, this test blows up -- it succeeds, but takes
8189 # about 5 minutes as the teststring grows exponentially.
8190 # Worse, since 9x/ME are not pre-emptively multitasking,
8191 # you end up with a "frozen" computer, even though with patience
8192 # the test eventually succeeds (with a max line length of 256k).
8193 # Instead, let's just punt: use the minimum linelength reported by
8194 # all of the supported platforms: 8192 (on NT/2K/XP).
8195 lt_cv_sys_max_cmd_len=8192;
8196 ;;
8197
8198 mint*)
8199 # On MiNT this can take a long time and run out of memory.
8200 lt_cv_sys_max_cmd_len=8192;
8201 ;;
8202
8203 amigaos*)
8204 # On AmigaOS with pdksh, this test takes hours, literally.
8205 # So we just punt and use a minimum line length of 8192.
8206 lt_cv_sys_max_cmd_len=8192;
8207 ;;
8208
8209 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8210 # This has been around since 386BSD, at least. Likely further.
8211 if test -x /sbin/sysctl; then
8212 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8213 elif test -x /usr/sbin/sysctl; then
8214 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8215 else
8216 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8217 fi
8218 # And add a safety zone
8219 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8221 ;;
8222
8223 interix*)
8224 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8225 lt_cv_sys_max_cmd_len=196608
8226 ;;
8227
8228 os2*)
8229 # The test takes a long time on OS/2.
8230 lt_cv_sys_max_cmd_len=8192
8231 ;;
8232
8233 osf*)
8234 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8235 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8236 # nice to cause kernel panics so lets avoid the loop below.
8237 # First set a reasonable default.
8238 lt_cv_sys_max_cmd_len=16384
8239 #
8240 if test -x /sbin/sysconfig; then
8241 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8242 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8243 esac
8244 fi
8245 ;;
8246 sco3.2v5*)
8247 lt_cv_sys_max_cmd_len=102400
8248 ;;
8249 sysv5* | sco5v6* | sysv4.2uw2*)
8250 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8251 if test -n "$kargmax"; then
8252 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8253 else
8254 lt_cv_sys_max_cmd_len=32768
8255 fi
8256 ;;
8257 *)
8258 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8259 if test -n "$lt_cv_sys_max_cmd_len" && \
8260 test undefined != "$lt_cv_sys_max_cmd_len"; then
8261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8263 else
8264 # Make teststring a little bigger before we do anything with it.
8265 # a 1K string should be a reasonable start.
8266 for i in 1 2 3 4 5 6 7 8; do
8267 teststring=$teststring$teststring
8268 done
8269 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8270 # If test is not a shell built-in, we'll probably end up computing a
8271 # maximum length that is only half of the actual maximum length, but
8272 # we can't tell.
8273 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8274 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8275 test 17 != "$i" # 1/2 MB should be enough
8276 do
8277 i=`expr $i + 1`
8278 teststring=$teststring$teststring
8279 done
8280 # Only check the string length outside the loop.
8281 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8282 teststring=
8283 # Add a significant safety factor because C++ compilers can tack on
8284 # massive amounts of additional arguments before passing them to the
8285 # linker. It appears as though 1/2 is a usable value.
8286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8287 fi
8288 ;;
8289 esac
8290
8291fi
8292
8293if test -n "$lt_cv_sys_max_cmd_len"; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8295$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8296else
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8298$as_echo "none" >&6; }
8299fi
8300max_cmd_len=$lt_cv_sys_max_cmd_len
8301
8302
8303
8304
8305
8306
8307: ${CP="cp -f"}
8308: ${MV="mv -f"}
8309: ${RM="rm -f"}
8310
8311if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8312 lt_unset=unset
8313else
8314 lt_unset=false
8315fi
8316
8317
8318
8319
8320
8321# test EBCDIC or ASCII
8322case `echo X|tr X '\101'` in
8323 A) # ASCII based system
8324 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8325 lt_SP2NL='tr \040 \012'
8326 lt_NL2SP='tr \015\012 \040\040'
8327 ;;
8328 *) # EBCDIC based system
8329 lt_SP2NL='tr \100 \n'
8330 lt_NL2SP='tr \r\n \100\100'
8331 ;;
8332esac
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8343$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8344if ${lt_cv_to_host_file_cmd+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346else
8347 case $host in
8348 *-*-mingw* )
8349 case $build in
8350 *-*-mingw* ) # actually msys
8351 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8352 ;;
8353 *-*-cygwin* )
8354 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8355 ;;
8356 * ) # otherwise, assume *nix
8357 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8358 ;;
8359 esac
8360 ;;
8361 *-*-cygwin* )
8362 case $build in
8363 *-*-mingw* ) # actually msys
8364 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8365 ;;
8366 *-*-cygwin* )
8367 lt_cv_to_host_file_cmd=func_convert_file_noop
8368 ;;
8369 * ) # otherwise, assume *nix
8370 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8371 ;;
8372 esac
8373 ;;
8374 * ) # unhandled hosts (and "normal" native builds)
8375 lt_cv_to_host_file_cmd=func_convert_file_noop
8376 ;;
8377esac
8378
8379fi
8380
8381to_host_file_cmd=$lt_cv_to_host_file_cmd
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8383$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8384
8385
8386
8387
8388
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8390$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8391if ${lt_cv_to_tool_file_cmd+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393else
8394 #assume ordinary cross tools, or native build.
8395lt_cv_to_tool_file_cmd=func_convert_file_noop
8396case $host in
8397 *-*-mingw* )
8398 case $build in
8399 *-*-mingw* ) # actually msys
8400 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8401 ;;
8402 esac
8403 ;;
8404esac
8405
8406fi
8407
8408to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8410$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8411
8412
8413
8414
8415
8416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8417$as_echo_n "checking for $LD option to reload object files... " >&6; }
8418if ${lt_cv_ld_reload_flag+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420else
8421 lt_cv_ld_reload_flag='-r'
8422fi
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8424$as_echo "$lt_cv_ld_reload_flag" >&6; }
8425reload_flag=$lt_cv_ld_reload_flag
8426case $reload_flag in
8427"" | " "*) ;;
8428*) reload_flag=" $reload_flag" ;;
8429esac
8430reload_cmds='$LD$reload_flag -o $output$reload_objs'
8431case $host_os in
8432 cygwin* | mingw* | pw32* | cegcc*)
8433 if test yes != "$GCC"; then
8434 reload_cmds=false
8435 fi
8436 ;;
8437 darwin*)
8438 if test yes = "$GCC"; then
8439 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8440 else
8441 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8442 fi
8443 ;;
8444esac
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454if test -n "$ac_tool_prefix"; then
8455 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8456set dummy ${ac_tool_prefix}objdump; ac_word=$2
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458$as_echo_n "checking for $ac_word... " >&6; }
8459if ${ac_cv_prog_OBJDUMP+:} false; then :
8460 $as_echo_n "(cached) " >&6
8461else
8462 if test -n "$OBJDUMP"; then
8463 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8464else
8465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466for as_dir in $PATH
8467do
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
8470 for ac_exec_ext in '' $ac_executable_extensions; do
8471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8472 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 break 2
8475 fi
8476done
8477 done
8478IFS=$as_save_IFS
8479
8480fi
8481fi
8482OBJDUMP=$ac_cv_prog_OBJDUMP
8483if test -n "$OBJDUMP"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8485$as_echo "$OBJDUMP" >&6; }
8486else
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
8489fi
8490
8491
8492fi
8493if test -z "$ac_cv_prog_OBJDUMP"; then
8494 ac_ct_OBJDUMP=$OBJDUMP
8495 # Extract the first word of "objdump", so it can be a program name with args.
8496set dummy objdump; ac_word=$2
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498$as_echo_n "checking for $ac_word... " >&6; }
8499if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8500 $as_echo_n "(cached) " >&6
8501else
8502 if test -n "$ac_ct_OBJDUMP"; then
8503 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8504else
8505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506for as_dir in $PATH
8507do
8508 IFS=$as_save_IFS
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8512 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 break 2
8515 fi
8516done
8517 done
8518IFS=$as_save_IFS
8519
8520fi
8521fi
8522ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8523if test -n "$ac_ct_OBJDUMP"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8525$as_echo "$ac_ct_OBJDUMP" >&6; }
8526else
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528$as_echo "no" >&6; }
8529fi
8530
8531 if test "x$ac_ct_OBJDUMP" = x; then
8532 OBJDUMP="false"
8533 else
8534 case $cross_compiling:$ac_tool_warned in
8535yes:)
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8538ac_tool_warned=yes ;;
8539esac
8540 OBJDUMP=$ac_ct_OBJDUMP
8541 fi
8542else
8543 OBJDUMP="$ac_cv_prog_OBJDUMP"
8544fi
8545
8546test -z "$OBJDUMP" && OBJDUMP=objdump
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8557$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8558if ${lt_cv_deplibs_check_method+:} false; then :
8559 $as_echo_n "(cached) " >&6
8560else
8561 lt_cv_file_magic_cmd='$MAGIC_CMD'
8562lt_cv_file_magic_test_file=
8563lt_cv_deplibs_check_method='unknown'
8564# Need to set the preceding variable on all platforms that support
8565# interlibrary dependencies.
8566# 'none' -- dependencies not supported.
8567# 'unknown' -- same as none, but documents that we really don't know.
8568# 'pass_all' -- all dependencies passed with no checks.
8569# 'test_compile' -- check by making test program.
8570# 'file_magic [[regex]]' -- check by looking for files in library path
8571# that responds to the $file_magic_cmd with a given extended regex.
8572# If you have 'file' or equivalent on your system and you're not sure
8573# whether 'pass_all' will *always* work, you probably want this one.
8574
8575case $host_os in
8576aix[4-9]*)
8577 lt_cv_deplibs_check_method=pass_all
8578 ;;
8579
8580beos*)
8581 lt_cv_deplibs_check_method=pass_all
8582 ;;
8583
8584bsdi[45]*)
8585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8586 lt_cv_file_magic_cmd='/usr/bin/file -L'
8587 lt_cv_file_magic_test_file=/shlib/libc.so
8588 ;;
8589
8590cygwin*)
8591 # func_win32_libid is a shell function defined in ltmain.sh
8592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8593 lt_cv_file_magic_cmd='func_win32_libid'
8594 ;;
8595
8596mingw* | pw32*)
8597 # Base MSYS/MinGW do not provide the 'file' command needed by
8598 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8599 # unless we find 'file', for example because we are cross-compiling.
8600 if ( file / ) >/dev/null 2>&1; then
8601 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8602 lt_cv_file_magic_cmd='func_win32_libid'
8603 else
8604 # Keep this pattern in sync with the one in func_win32_libid.
8605 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8606 lt_cv_file_magic_cmd='$OBJDUMP -f'
8607 fi
8608 ;;
8609
8610cegcc*)
8611 # use the weaker test based on 'objdump'. See mingw*.
8612 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8613 lt_cv_file_magic_cmd='$OBJDUMP -f'
8614 ;;
8615
8616darwin* | rhapsody*)
8617 lt_cv_deplibs_check_method=pass_all
8618 ;;
8619
8620freebsd* | dragonfly*)
8621 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8622 case $host_cpu in
8623 i*86 )
8624 # Not sure whether the presence of OpenBSD here was a mistake.
8625 # Let's accept both of them until this is cleared up.
8626 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8627 lt_cv_file_magic_cmd=/usr/bin/file
8628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8629 ;;
8630 esac
8631 else
8632 lt_cv_deplibs_check_method=pass_all
8633 fi
8634 ;;
8635
8636haiku*)
8637 lt_cv_deplibs_check_method=pass_all
8638 ;;
8639
8640hpux10.20* | hpux11*)
8641 lt_cv_file_magic_cmd=/usr/bin/file
8642 case $host_cpu in
8643 ia64*)
8644 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8645 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8646 ;;
8647 hppa*64*)
8648 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]'
8649 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8650 ;;
8651 *)
8652 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8653 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8654 ;;
8655 esac
8656 ;;
8657
8658interix[3-9]*)
8659 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8661 ;;
8662
8663irix5* | irix6* | nonstopux*)
8664 case $LD in
8665 *-32|*"-32 ") libmagic=32-bit;;
8666 *-n32|*"-n32 ") libmagic=N32;;
8667 *-64|*"-64 ") libmagic=64-bit;;
8668 *) libmagic=never-match;;
8669 esac
8670 lt_cv_deplibs_check_method=pass_all
8671 ;;
8672
8673# This must be glibc/ELF.
8674linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8675 lt_cv_deplibs_check_method=pass_all
8676 ;;
8677
8678netbsd* | netbsdelf*-gnu)
8679 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8681 else
8682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8683 fi
8684 ;;
8685
8686newos6*)
8687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8688 lt_cv_file_magic_cmd=/usr/bin/file
8689 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8690 ;;
8691
8692*nto* | *qnx*)
8693 lt_cv_deplibs_check_method=pass_all
8694 ;;
8695
8696openbsd* | bitrig*)
8697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8699 else
8700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8701 fi
8702 ;;
8703
8704osf3* | osf4* | osf5*)
8705 lt_cv_deplibs_check_method=pass_all
8706 ;;
8707
8708rdos*)
8709 lt_cv_deplibs_check_method=pass_all
8710 ;;
8711
8712solaris*)
8713 lt_cv_deplibs_check_method=pass_all
8714 ;;
8715
8716sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8717 lt_cv_deplibs_check_method=pass_all
8718 ;;
8719
8720sysv4 | sysv4.3*)
8721 case $host_vendor in
8722 motorola)
8723 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]'
8724 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8725 ;;
8726 ncr)
8727 lt_cv_deplibs_check_method=pass_all
8728 ;;
8729 sequent)
8730 lt_cv_file_magic_cmd='/bin/file'
8731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8732 ;;
8733 sni)
8734 lt_cv_file_magic_cmd='/bin/file'
8735 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8736 lt_cv_file_magic_test_file=/lib/libc.so
8737 ;;
8738 siemens)
8739 lt_cv_deplibs_check_method=pass_all
8740 ;;
8741 pc)
8742 lt_cv_deplibs_check_method=pass_all
8743 ;;
8744 esac
8745 ;;
8746
8747tpf*)
8748 lt_cv_deplibs_check_method=pass_all
8749 ;;
8750os2*)
8751 lt_cv_deplibs_check_method=pass_all
8752 ;;
8753esac
8754
8755fi
8756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8757$as_echo "$lt_cv_deplibs_check_method" >&6; }
8758
8759file_magic_glob=
8760want_nocaseglob=no
8761if test "$build" = "$host"; then
8762 case $host_os in
8763 mingw* | pw32*)
8764 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8765 want_nocaseglob=yes
8766 else
8767 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8768 fi
8769 ;;
8770 esac
8771fi
8772
8773file_magic_cmd=$lt_cv_file_magic_cmd
8774deplibs_check_method=$lt_cv_deplibs_check_method
8775test -z "$deplibs_check_method" && deplibs_check_method=unknown
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798if test -n "$ac_tool_prefix"; then
8799 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8800set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8802$as_echo_n "checking for $ac_word... " >&6; }
8803if ${ac_cv_prog_DLLTOOL+:} false; then :
8804 $as_echo_n "(cached) " >&6
8805else
8806 if test -n "$DLLTOOL"; then
8807 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8808else
8809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810for as_dir in $PATH
8811do
8812 IFS=$as_save_IFS
8813 test -z "$as_dir" && as_dir=.
8814 for ac_exec_ext in '' $ac_executable_extensions; do
8815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8816 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 break 2
8819 fi
8820done
8821 done
8822IFS=$as_save_IFS
8823
8824fi
8825fi
8826DLLTOOL=$ac_cv_prog_DLLTOOL
8827if test -n "$DLLTOOL"; then
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8829$as_echo "$DLLTOOL" >&6; }
8830else
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832$as_echo "no" >&6; }
8833fi
8834
8835
8836fi
8837if test -z "$ac_cv_prog_DLLTOOL"; then
8838 ac_ct_DLLTOOL=$DLLTOOL
8839 # Extract the first word of "dlltool", so it can be a program name with args.
8840set dummy dlltool; ac_word=$2
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8842$as_echo_n "checking for $ac_word... " >&6; }
8843if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845else
8846 if test -n "$ac_ct_DLLTOOL"; then
8847 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8848else
8849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850for as_dir in $PATH
8851do
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8858 break 2
8859 fi
8860done
8861 done
8862IFS=$as_save_IFS
8863
8864fi
8865fi
8866ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8867if test -n "$ac_ct_DLLTOOL"; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8869$as_echo "$ac_ct_DLLTOOL" >&6; }
8870else
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872$as_echo "no" >&6; }
8873fi
8874
8875 if test "x$ac_ct_DLLTOOL" = x; then
8876 DLLTOOL="false"
8877 else
8878 case $cross_compiling:$ac_tool_warned in
8879yes:)
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8882ac_tool_warned=yes ;;
8883esac
8884 DLLTOOL=$ac_ct_DLLTOOL
8885 fi
8886else
8887 DLLTOOL="$ac_cv_prog_DLLTOOL"
8888fi
8889
8890test -z "$DLLTOOL" && DLLTOOL=dlltool
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8902$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8903if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905else
8906 lt_cv_sharedlib_from_linklib_cmd='unknown'
8907
8908case $host_os in
8909cygwin* | mingw* | pw32* | cegcc*)
8910 # two different shell functions defined in ltmain.sh;
8911 # decide which one to use based on capabilities of $DLLTOOL
8912 case `$DLLTOOL --help 2>&1` in
8913 *--identify-strict*)
8914 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8915 ;;
8916 *)
8917 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8918 ;;
8919 esac
8920 ;;
8921*)
8922 # fallback: assume linklib IS sharedlib
8923 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8924 ;;
8925esac
8926
8927fi
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8929$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8930sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8931test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8932
8933
8934
8935
8936
8937
8938
8939if test -n "$ac_tool_prefix"; then
8940 for ac_prog in ar
8941 do
8942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8943set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8945$as_echo_n "checking for $ac_word... " >&6; }
8946if ${ac_cv_prog_AR+:} false; then :
8947 $as_echo_n "(cached) " >&6
8948else
8949 if test -n "$AR"; then
8950 ac_cv_prog_AR="$AR" # Let the user override the test.
8951else
8952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953for as_dir in $PATH
8954do
8955 IFS=$as_save_IFS
8956 test -z "$as_dir" && as_dir=.
8957 for ac_exec_ext in '' $ac_executable_extensions; do
8958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8959 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8961 break 2
8962 fi
8963done
8964 done
8965IFS=$as_save_IFS
8966
8967fi
8968fi
8969AR=$ac_cv_prog_AR
8970if test -n "$AR"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8972$as_echo "$AR" >&6; }
8973else
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975$as_echo "no" >&6; }
8976fi
8977
8978
8979 test -n "$AR" && break
8980 done
8981fi
8982if test -z "$AR"; then
8983 ac_ct_AR=$AR
8984 for ac_prog in ar
8985do
8986 # Extract the first word of "$ac_prog", so it can be a program name with args.
8987set dummy $ac_prog; ac_word=$2
8988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989$as_echo_n "checking for $ac_word... " >&6; }
8990if ${ac_cv_prog_ac_ct_AR+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992else
8993 if test -n "$ac_ct_AR"; then
8994 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8995else
8996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997for as_dir in $PATH
8998do
8999 IFS=$as_save_IFS
9000 test -z "$as_dir" && as_dir=.
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9003 ac_cv_prog_ac_ct_AR="$ac_prog"
9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005 break 2
9006 fi
9007done
9008 done
9009IFS=$as_save_IFS
9010
9011fi
9012fi
9013ac_ct_AR=$ac_cv_prog_ac_ct_AR
9014if test -n "$ac_ct_AR"; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9016$as_echo "$ac_ct_AR" >&6; }
9017else
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019$as_echo "no" >&6; }
9020fi
9021
9022
9023 test -n "$ac_ct_AR" && break
9024done
9025
9026 if test "x$ac_ct_AR" = x; then
9027 AR="false"
9028 else
9029 case $cross_compiling:$ac_tool_warned in
9030yes:)
9031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9033ac_tool_warned=yes ;;
9034esac
9035 AR=$ac_ct_AR
9036 fi
9037fi
9038
9039: ${AR=ar}
9040: ${AR_FLAGS=cru}
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9053$as_echo_n "checking for archiver @FILE support... " >&6; }
9054if ${lt_cv_ar_at_file+:} false; then :
9055 $as_echo_n "(cached) " >&6
9056else
9057 lt_cv_ar_at_file=no
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059/* end confdefs.h. */
9060
9061int
9062main ()
9063{
9064
9065 ;
9066 return 0;
9067}
9068_ACEOF
9069if ac_fn_c_try_compile "$LINENO"; then :
9070 echo conftest.$ac_objext > conftest.lst
9071 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9073 (eval $lt_ar_try) 2>&5
9074 ac_status=$?
9075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9076 test $ac_status = 0; }
9077 if test 0 -eq "$ac_status"; then
9078 # Ensure the archiver fails upon bogus file names.
9079 rm -f conftest.$ac_objext libconftest.a
9080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9081 (eval $lt_ar_try) 2>&5
9082 ac_status=$?
9083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9084 test $ac_status = 0; }
9085 if test 0 -ne "$ac_status"; then
9086 lt_cv_ar_at_file=@
9087 fi
9088 fi
9089 rm -f conftest.* libconftest.a
9090
9091fi
9092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093
9094fi
9095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9096$as_echo "$lt_cv_ar_at_file" >&6; }
9097
9098if test no = "$lt_cv_ar_at_file"; then
9099 archiver_list_spec=
9100else
9101 archiver_list_spec=$lt_cv_ar_at_file
9102fi
9103
9104
9105
9106
9107
9108
9109
9110if test -n "$ac_tool_prefix"; then
9111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9112set dummy ${ac_tool_prefix}strip; ac_word=$2
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114$as_echo_n "checking for $ac_word... " >&6; }
9115if ${ac_cv_prog_STRIP+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117else
9118 if test -n "$STRIP"; then
9119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9120else
9121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122for as_dir in $PATH
9123do
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9128 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9131 fi
9132done
9133 done
9134IFS=$as_save_IFS
9135
9136fi
9137fi
9138STRIP=$ac_cv_prog_STRIP
9139if test -n "$STRIP"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9141$as_echo "$STRIP" >&6; }
9142else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144$as_echo "no" >&6; }
9145fi
9146
9147
9148fi
9149if test -z "$ac_cv_prog_STRIP"; then
9150 ac_ct_STRIP=$STRIP
9151 # Extract the first word of "strip", so it can be a program name with args.
9152set dummy strip; ac_word=$2
9153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9154$as_echo_n "checking for $ac_word... " >&6; }
9155if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9156 $as_echo_n "(cached) " >&6
9157else
9158 if test -n "$ac_ct_STRIP"; then
9159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9160else
9161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162for as_dir in $PATH
9163do
9164 IFS=$as_save_IFS
9165 test -z "$as_dir" && as_dir=.
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9168 ac_cv_prog_ac_ct_STRIP="strip"
9169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9170 break 2
9171 fi
9172done
9173 done
9174IFS=$as_save_IFS
9175
9176fi
9177fi
9178ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9179if test -n "$ac_ct_STRIP"; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9181$as_echo "$ac_ct_STRIP" >&6; }
9182else
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184$as_echo "no" >&6; }
9185fi
9186
9187 if test "x$ac_ct_STRIP" = x; then
9188 STRIP=":"
9189 else
9190 case $cross_compiling:$ac_tool_warned in
9191yes:)
9192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9194ac_tool_warned=yes ;;
9195esac
9196 STRIP=$ac_ct_STRIP
9197 fi
9198else
9199 STRIP="$ac_cv_prog_STRIP"
9200fi
9201
9202test -z "$STRIP" && STRIP=:
9203
9204
9205
9206
9207
9208
9209if test -n "$ac_tool_prefix"; then
9210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9211set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213$as_echo_n "checking for $ac_word... " >&6; }
9214if ${ac_cv_prog_RANLIB+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216else
9217 if test -n "$RANLIB"; then
9218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9219else
9220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221for as_dir in $PATH
9222do
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9230 fi
9231done
9232 done
9233IFS=$as_save_IFS
9234
9235fi
9236fi
9237RANLIB=$ac_cv_prog_RANLIB
9238if test -n "$RANLIB"; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9240$as_echo "$RANLIB" >&6; }
9241else
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243$as_echo "no" >&6; }
9244fi
9245
9246
9247fi
9248if test -z "$ac_cv_prog_RANLIB"; then
9249 ac_ct_RANLIB=$RANLIB
9250 # Extract the first word of "ranlib", so it can be a program name with args.
9251set dummy ranlib; ac_word=$2
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9253$as_echo_n "checking for $ac_word... " >&6; }
9254if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9255 $as_echo_n "(cached) " >&6
9256else
9257 if test -n "$ac_ct_RANLIB"; then
9258 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9259else
9260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261for as_dir in $PATH
9262do
9263 IFS=$as_save_IFS
9264 test -z "$as_dir" && as_dir=.
9265 for ac_exec_ext in '' $ac_executable_extensions; do
9266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9267 ac_cv_prog_ac_ct_RANLIB="ranlib"
9268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9269 break 2
9270 fi
9271done
9272 done
9273IFS=$as_save_IFS
9274
9275fi
9276fi
9277ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9278if test -n "$ac_ct_RANLIB"; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9280$as_echo "$ac_ct_RANLIB" >&6; }
9281else
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283$as_echo "no" >&6; }
9284fi
9285
9286 if test "x$ac_ct_RANLIB" = x; then
9287 RANLIB=":"
9288 else
9289 case $cross_compiling:$ac_tool_warned in
9290yes:)
9291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9293ac_tool_warned=yes ;;
9294esac
9295 RANLIB=$ac_ct_RANLIB
9296 fi
9297else
9298 RANLIB="$ac_cv_prog_RANLIB"
9299fi
9300
9301test -z "$RANLIB" && RANLIB=:
9302
9303
9304
9305
9306
9307
9308# Determine commands to create old-style static archives.
9309old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9310old_postinstall_cmds='chmod 644 $oldlib'
9311old_postuninstall_cmds=
9312
9313if test -n "$RANLIB"; then
9314 case $host_os in
9315 bitrig* | openbsd*)
9316 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9317 ;;
9318 *)
9319 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9320 ;;
9321 esac
9322 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9323fi
9324
9325case $host_os in
9326 darwin*)
9327 lock_old_archive_extraction=yes ;;
9328 *)
9329 lock_old_archive_extraction=no ;;
9330esac
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370# If no C compiler was specified, use CC.
9371LTCC=${LTCC-"$CC"}
9372
9373# If no C compiler flags were specified, use CFLAGS.
9374LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9375
9376# Allow CC to be a program name with arguments.
9377compiler=$CC
9378
9379
9380# Check for command to grab the raw symbol name followed by C symbol from nm.
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9382$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9383if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9384 $as_echo_n "(cached) " >&6
9385else
9386
9387# These are sane defaults that work on at least a few old systems.
9388# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9389
9390# Character class describing NM global symbol codes.
9391symcode='[BCDEGRST]'
9392
9393# Regexp to match symbols that can be accessed directly from C.
9394sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9395
9396# Define system-specific variables.
9397case $host_os in
9398aix*)
9399 symcode='[BCDT]'
9400 ;;
9401cygwin* | mingw* | pw32* | cegcc*)
9402 symcode='[ABCDGISTW]'
9403 ;;
9404hpux*)
9405 if test ia64 = "$host_cpu"; then
9406 symcode='[ABCDEGRST]'
9407 fi
9408 ;;
9409irix* | nonstopux*)
9410 symcode='[BCDEGRST]'
9411 ;;
9412osf*)
9413 symcode='[BCDEGQRST]'
9414 ;;
9415solaris*)
9416 symcode='[BDRT]'
9417 ;;
9418sco3.2v5*)
9419 symcode='[DT]'
9420 ;;
9421sysv4.2uw2*)
9422 symcode='[DT]'
9423 ;;
9424sysv5* | sco5v6* | unixware* | OpenUNIX*)
9425 symcode='[ABDT]'
9426 ;;
9427sysv4)
9428 symcode='[DFNSTU]'
9429 ;;
9430esac
9431
9432# If we're using GNU nm, then use its standard symbol codes.
9433case `$NM -V 2>&1` in
9434*GNU* | *'with BFD'*)
9435 symcode='[ABCDGIRSTW]' ;;
9436esac
9437
9438if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9439 # Gets list of data symbols to import.
9440 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9441 # Adjust the below global symbol transforms to fixup imported variables.
9442 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9443 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9444 lt_c_name_lib_hook="\
9445 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9446 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9447else
9448 # Disable hooks by default.
9449 lt_cv_sys_global_symbol_to_import=
9450 lt_cdecl_hook=
9451 lt_c_name_hook=
9452 lt_c_name_lib_hook=
9453fi
9454
9455# Transform an extracted symbol line into a proper C declaration.
9456# Some systems (esp. on ia64) link data and code symbols differently,
9457# so use this general approach.
9458lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9459$lt_cdecl_hook\
9460" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9461" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9462
9463# Transform an extracted symbol line into symbol name and symbol address
9464lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9465$lt_c_name_hook\
9466" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9467" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9468
9469# Transform an extracted symbol line into symbol name with lib prefix and
9470# symbol address.
9471lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9472$lt_c_name_lib_hook\
9473" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9474" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9475" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9476
9477# Handle CRLF in mingw tool chain
9478opt_cr=
9479case $build_os in
9480mingw*)
9481 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9482 ;;
9483esac
9484
9485# Try without a prefix underscore, then with it.
9486for ac_symprfx in "" "_"; do
9487
9488 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9489 symxfrm="\\1 $ac_symprfx\\2 \\2"
9490
9491 # Write the raw and C identifiers.
9492 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9493 # Fake it for dumpbin and say T for any non-static function,
9494 # D for any global variable and I for any imported variable.
9495 # Also find C++ and __fastcall symbols from MSVC++,
9496 # which start with @ or ?.
9497 lt_cv_sys_global_symbol_pipe="$AWK '"\
9498" {last_section=section; section=\$ 3};"\
9499" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9500" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9501" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9502" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9503" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9504" \$ 0!~/External *\|/{next};"\
9505" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9506" {if(hide[section]) next};"\
9507" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9508" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9509" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9510" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9511" ' prfx=^$ac_symprfx"
9512 else
9513 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9514 fi
9515 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9516
9517 # Check to see that the pipe works correctly.
9518 pipe_works=no
9519
9520 rm -f conftest*
9521 cat > conftest.$ac_ext <<_LT_EOF
9522#ifdef __cplusplus
9523extern "C" {
9524#endif
9525char nm_test_var;
9526void nm_test_func(void);
9527void nm_test_func(void){}
9528#ifdef __cplusplus
9529}
9530#endif
9531int main(){nm_test_var='a';nm_test_func();return(0);}
9532_LT_EOF
9533
9534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9535 (eval $ac_compile) 2>&5
9536 ac_status=$?
9537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9538 test $ac_status = 0; }; then
9539 # Now try to grab the symbols.
9540 nlist=conftest.nm
9541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9542 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9543 ac_status=$?
9544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9545 test $ac_status = 0; } && test -s "$nlist"; then
9546 # Try sorting and uniquifying the output.
9547 if sort "$nlist" | uniq > "$nlist"T; then
9548 mv -f "$nlist"T "$nlist"
9549 else
9550 rm -f "$nlist"T
9551 fi
9552
9553 # Make sure that we snagged all the symbols we need.
9554 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9555 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9556 cat <<_LT_EOF > conftest.$ac_ext
9557/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9558#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9559/* DATA imports from DLLs on WIN32 can't be const, because runtime
9560 relocations are performed -- see ld's documentation on pseudo-relocs. */
9561# define LT_DLSYM_CONST
9562#elif defined __osf__
9563/* This system does not cope well with relocations in const data. */
9564# define LT_DLSYM_CONST
9565#else
9566# define LT_DLSYM_CONST const
9567#endif
9568
9569#ifdef __cplusplus
9570extern "C" {
9571#endif
9572
9573_LT_EOF
9574 # Now generate the symbol file.
9575 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9576
9577 cat <<_LT_EOF >> conftest.$ac_ext
9578
9579/* The mapping between symbol names and symbols. */
9580LT_DLSYM_CONST struct {
9581 const char *name;
9582 void *address;
9583}
9584lt__PROGRAM__LTX_preloaded_symbols[] =
9585{
9586 { "@PROGRAM@", (void *) 0 },
9587_LT_EOF
9588 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9589 cat <<\_LT_EOF >> conftest.$ac_ext
9590 {0, (void *) 0}
9591};
9592
9593/* This works around a problem in FreeBSD linker */
9594#ifdef FREEBSD_WORKAROUND
9595static const void *lt_preloaded_setup() {
9596 return lt__PROGRAM__LTX_preloaded_symbols;
9597}
9598#endif
9599
9600#ifdef __cplusplus
9601}
9602#endif
9603_LT_EOF
9604 # Now try linking the two files.
9605 mv conftest.$ac_objext conftstm.$ac_objext
9606 lt_globsym_save_LIBS=$LIBS
9607 lt_globsym_save_CFLAGS=$CFLAGS
9608 LIBS=conftstm.$ac_objext
9609 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9611 (eval $ac_link) 2>&5
9612 ac_status=$?
9613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9614 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9615 pipe_works=yes
9616 fi
9617 LIBS=$lt_globsym_save_LIBS
9618 CFLAGS=$lt_globsym_save_CFLAGS
9619 else
9620 echo "cannot find nm_test_func in $nlist" >&5
9621 fi
9622 else
9623 echo "cannot find nm_test_var in $nlist" >&5
9624 fi
9625 else
9626 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9627 fi
9628 else
9629 echo "$progname: failed program was:" >&5
9630 cat conftest.$ac_ext >&5
9631 fi
9632 rm -rf conftest* conftst*
9633
9634 # Do not use the global_symbol_pipe unless it works.
9635 if test yes = "$pipe_works"; then
9636 break
9637 else
9638 lt_cv_sys_global_symbol_pipe=
9639 fi
9640done
9641
9642fi
9643
9644if test -z "$lt_cv_sys_global_symbol_pipe"; then
9645 lt_cv_sys_global_symbol_to_cdecl=
9646fi
9647if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9649$as_echo "failed" >&6; }
9650else
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9652$as_echo "ok" >&6; }
9653fi
9654
9655# Response file support.
9656if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9657 nm_file_list_spec='@'
9658elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9659 nm_file_list_spec='@'
9660fi
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9699$as_echo_n "checking for sysroot... " >&6; }
9700
9701# Check whether --with-sysroot was given.
9702if test "${with_sysroot+set}" = set; then :
9703 withval=$with_sysroot;
9704else
9705 with_sysroot=no
9706fi
9707
9708
9709lt_sysroot=
9710case $with_sysroot in #(
9711 yes)
9712 if test yes = "$GCC"; then
9713 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9714 fi
9715 ;; #(
9716 /*)
9717 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9718 ;; #(
9719 no|'')
9720 ;; #(
9721 *)
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9723$as_echo "$with_sysroot" >&6; }
9724 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9725 ;;
9726esac
9727
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9729$as_echo "${lt_sysroot:-no}" >&6; }
9730
9731
9732
9733
9734
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9736$as_echo_n "checking for a working dd... " >&6; }
9737if ${ac_cv_path_lt_DD+:} false; then :
9738 $as_echo_n "(cached) " >&6
9739else
9740 printf 0123456789abcdef0123456789abcdef >conftest.i
9741cat conftest.i conftest.i >conftest2.i
9742: ${lt_DD:=$DD}
9743if test -z "$lt_DD"; then
9744 ac_path_lt_DD_found=false
9745 # Loop through the user's path and test for each of PROGNAME-LIST
9746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747for as_dir in $PATH
9748do
9749 IFS=$as_save_IFS
9750 test -z "$as_dir" && as_dir=.
9751 for ac_prog in dd; do
9752 for ac_exec_ext in '' $ac_executable_extensions; do
9753 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9754 as_fn_executable_p "$ac_path_lt_DD" || continue
9755if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9756 cmp -s conftest.i conftest.out \
9757 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9758fi
9759 $ac_path_lt_DD_found && break 3
9760 done
9761 done
9762 done
9763IFS=$as_save_IFS
9764 if test -z "$ac_cv_path_lt_DD"; then
9765 :
9766 fi
9767else
9768 ac_cv_path_lt_DD=$lt_DD
9769fi
9770
9771rm -f conftest.i conftest2.i conftest.out
9772fi
9773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9774$as_echo "$ac_cv_path_lt_DD" >&6; }
9775
9776
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9778$as_echo_n "checking how to truncate binary pipes... " >&6; }
9779if ${lt_cv_truncate_bin+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781else
9782 printf 0123456789abcdef0123456789abcdef >conftest.i
9783cat conftest.i conftest.i >conftest2.i
9784lt_cv_truncate_bin=
9785if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9786 cmp -s conftest.i conftest.out \
9787 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9788fi
9789rm -f conftest.i conftest2.i conftest.out
9790test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9791fi
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9793$as_echo "$lt_cv_truncate_bin" >&6; }
9794
9795
9796
9797
9798
9799
9800
9801# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9802func_cc_basename ()
9803{
9804 for cc_temp in $*""; do
9805 case $cc_temp in
9806 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9807 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9808 \-*) ;;
9809 *) break;;
9810 esac
9811 done
9812 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9813}
9814
9815# Check whether --enable-libtool-lock was given.
9816if test "${enable_libtool_lock+set}" = set; then :
9817 enableval=$enable_libtool_lock;
9818fi
9819
9820test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9821
9822# Some flags need to be propagated to the compiler or linker for good
9823# libtool support.
9824case $host in
9825ia64-*-hpux*)
9826 # Find out what ABI is being produced by ac_compile, and set mode
9827 # options accordingly.
9828 echo 'int i;' > conftest.$ac_ext
9829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9830 (eval $ac_compile) 2>&5
9831 ac_status=$?
9832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9833 test $ac_status = 0; }; then
9834 case `/usr/bin/file conftest.$ac_objext` in
9835 *ELF-32*)
9836 HPUX_IA64_MODE=32
9837 ;;
9838 *ELF-64*)
9839 HPUX_IA64_MODE=64
9840 ;;
9841 esac
9842 fi
9843 rm -rf conftest*
9844 ;;
9845*-*-irix6*)
9846 # Find out what ABI is being produced by ac_compile, and set linker
9847 # options accordingly.
9848 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9850 (eval $ac_compile) 2>&5
9851 ac_status=$?
9852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9853 test $ac_status = 0; }; then
9854 if test yes = "$lt_cv_prog_gnu_ld"; then
9855 case `/usr/bin/file conftest.$ac_objext` in
9856 *32-bit*)
9857 LD="${LD-ld} -melf32bsmip"
9858 ;;
9859 *N32*)
9860 LD="${LD-ld} -melf32bmipn32"
9861 ;;
9862 *64-bit*)
9863 LD="${LD-ld} -melf64bmip"
9864 ;;
9865 esac
9866 else
9867 case `/usr/bin/file conftest.$ac_objext` in
9868 *32-bit*)
9869 LD="${LD-ld} -32"
9870 ;;
9871 *N32*)
9872 LD="${LD-ld} -n32"
9873 ;;
9874 *64-bit*)
9875 LD="${LD-ld} -64"
9876 ;;
9877 esac
9878 fi
9879 fi
9880 rm -rf conftest*
9881 ;;
9882
9883mips64*-*linux*)
9884 # Find out what ABI is being produced by ac_compile, and set linker
9885 # options accordingly.
9886 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9888 (eval $ac_compile) 2>&5
9889 ac_status=$?
9890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9891 test $ac_status = 0; }; then
9892 emul=elf
9893 case `/usr/bin/file conftest.$ac_objext` in
9894 *32-bit*)
9895 emul="${emul}32"
9896 ;;
9897 *64-bit*)
9898 emul="${emul}64"
9899 ;;
9900 esac
9901 case `/usr/bin/file conftest.$ac_objext` in
9902 *MSB*)
9903 emul="${emul}btsmip"
9904 ;;
9905 *LSB*)
9906 emul="${emul}ltsmip"
9907 ;;
9908 esac
9909 case `/usr/bin/file conftest.$ac_objext` in
9910 *N32*)
9911 emul="${emul}n32"
9912 ;;
9913 esac
9914 LD="${LD-ld} -m $emul"
9915 fi
9916 rm -rf conftest*
9917 ;;
9918
9919x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9920s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9921 # Find out what ABI is being produced by ac_compile, and set linker
9922 # options accordingly. Note that the listed cases only cover the
9923 # situations where additional linker options are needed (such as when
9924 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9925 # vice versa); the common cases where no linker options are needed do
9926 # not appear in the list.
9927 echo 'int i;' > conftest.$ac_ext
9928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9929 (eval $ac_compile) 2>&5
9930 ac_status=$?
9931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9932 test $ac_status = 0; }; then
9933 case `/usr/bin/file conftest.o` in
9934 *32-bit*)
9935 case $host in
9936 x86_64-*kfreebsd*-gnu)
9937 LD="${LD-ld} -m elf_i386_fbsd"
9938 ;;
9939 x86_64-*linux*)
9940 case `/usr/bin/file conftest.o` in
9941 *x86-64*)
9942 LD="${LD-ld} -m elf32_x86_64"
9943 ;;
9944 *)
9945 LD="${LD-ld} -m elf_i386"
9946 ;;
9947 esac
9948 ;;
9949 powerpc64le-*linux*)
9950 LD="${LD-ld} -m elf32lppclinux"
9951 ;;
9952 powerpc64-*linux*)
9953 LD="${LD-ld} -m elf32ppclinux"
9954 ;;
9955 s390x-*linux*)
9956 LD="${LD-ld} -m elf_s390"
9957 ;;
9958 sparc64-*linux*)
9959 LD="${LD-ld} -m elf32_sparc"
9960 ;;
9961 esac
9962 ;;
9963 *64-bit*)
9964 case $host in
9965 x86_64-*kfreebsd*-gnu)
9966 LD="${LD-ld} -m elf_x86_64_fbsd"
9967 ;;
9968 x86_64-*linux*)
9969 LD="${LD-ld} -m elf_x86_64"
9970 ;;
9971 powerpcle-*linux*)
9972 LD="${LD-ld} -m elf64lppc"
9973 ;;
9974 powerpc-*linux*)
9975 LD="${LD-ld} -m elf64ppc"
9976 ;;
9977 s390*-*linux*|s390*-*tpf*)
9978 LD="${LD-ld} -m elf64_s390"
9979 ;;
9980 sparc*-*linux*)
9981 LD="${LD-ld} -m elf64_sparc"
9982 ;;
9983 esac
9984 ;;
9985 esac
9986 fi
9987 rm -rf conftest*
9988 ;;
9989
9990*-*-sco3.2v5*)
9991 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9992 SAVE_CFLAGS=$CFLAGS
9993 CFLAGS="$CFLAGS -belf"
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9995$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9996if ${lt_cv_cc_needs_belf+:} false; then :
9997 $as_echo_n "(cached) " >&6
9998else
9999 ac_ext=c
10000ac_cpp='$CPP $CPPFLAGS'
10001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10003ac_compiler_gnu=$ac_cv_c_compiler_gnu
10004
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006/* end confdefs.h. */
10007
10008int
10009main ()
10010{
10011
10012 ;
10013 return 0;
10014}
10015_ACEOF
10016if ac_fn_c_try_link "$LINENO"; then :
10017 lt_cv_cc_needs_belf=yes
10018else
10019 lt_cv_cc_needs_belf=no
10020fi
10021rm -f core conftest.err conftest.$ac_objext \
10022 conftest$ac_exeext conftest.$ac_ext
10023 ac_ext=c
10024ac_cpp='$CPP $CPPFLAGS'
10025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10027ac_compiler_gnu=$ac_cv_c_compiler_gnu
10028
10029fi
10030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10031$as_echo "$lt_cv_cc_needs_belf" >&6; }
10032 if test yes != "$lt_cv_cc_needs_belf"; then
10033 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10034 CFLAGS=$SAVE_CFLAGS
10035 fi
10036 ;;
10037*-*solaris*)
10038 # Find out what ABI is being produced by ac_compile, and set linker
10039 # options accordingly.
10040 echo 'int i;' > conftest.$ac_ext
10041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10042 (eval $ac_compile) 2>&5
10043 ac_status=$?
10044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10045 test $ac_status = 0; }; then
10046 case `/usr/bin/file conftest.o` in
10047 *64-bit*)
10048 case $lt_cv_prog_gnu_ld in
10049 yes*)
10050 case $host in
10051 i?86-*-solaris*|x86_64-*-solaris*)
10052 LD="${LD-ld} -m elf_x86_64"
10053 ;;
10054 sparc*-*-solaris*)
10055 LD="${LD-ld} -m elf64_sparc"
10056 ;;
10057 esac
10058 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10059 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10060 LD=${LD-ld}_sol2
10061 fi
10062 ;;
10063 *)
10064 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10065 LD="${LD-ld} -64"
10066 fi
10067 ;;
10068 esac
10069 ;;
10070 esac
10071 fi
10072 rm -rf conftest*
10073 ;;
10074esac
10075
10076need_locks=$enable_libtool_lock
10077
10078if test -n "$ac_tool_prefix"; then
10079 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10080set dummy ${ac_tool_prefix}mt; ac_word=$2
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082$as_echo_n "checking for $ac_word... " >&6; }
10083if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10084 $as_echo_n "(cached) " >&6
10085else
10086 if test -n "$MANIFEST_TOOL"; then
10087 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10088else
10089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090for as_dir in $PATH
10091do
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098 break 2
10099 fi
10100done
10101 done
10102IFS=$as_save_IFS
10103
10104fi
10105fi
10106MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10107if test -n "$MANIFEST_TOOL"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10109$as_echo "$MANIFEST_TOOL" >&6; }
10110else
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112$as_echo "no" >&6; }
10113fi
10114
10115
10116fi
10117if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10118 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10119 # Extract the first word of "mt", so it can be a program name with args.
10120set dummy mt; ac_word=$2
10121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122$as_echo_n "checking for $ac_word... " >&6; }
10123if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125else
10126 if test -n "$ac_ct_MANIFEST_TOOL"; then
10127 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10128else
10129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130for as_dir in $PATH
10131do
10132 IFS=$as_save_IFS
10133 test -z "$as_dir" && as_dir=.
10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10136 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138 break 2
10139 fi
10140done
10141 done
10142IFS=$as_save_IFS
10143
10144fi
10145fi
10146ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10147if test -n "$ac_ct_MANIFEST_TOOL"; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10149$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10150else
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152$as_echo "no" >&6; }
10153fi
10154
10155 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10156 MANIFEST_TOOL=":"
10157 else
10158 case $cross_compiling:$ac_tool_warned in
10159yes:)
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10162ac_tool_warned=yes ;;
10163esac
10164 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10165 fi
10166else
10167 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10168fi
10169
10170test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10172$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10173if ${lt_cv_path_mainfest_tool+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175else
10176 lt_cv_path_mainfest_tool=no
10177 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10178 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10179 cat conftest.err >&5
10180 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10181 lt_cv_path_mainfest_tool=yes
10182 fi
10183 rm -f conftest*
10184fi
10185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10186$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10187if test yes != "$lt_cv_path_mainfest_tool"; then
10188 MANIFEST_TOOL=:
10189fi
10190
10191
10192
10193
10194
10195
10196 case $host_os in
10197 rhapsody* | darwin*)
10198 if test -n "$ac_tool_prefix"; then
10199 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10200set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10202$as_echo_n "checking for $ac_word... " >&6; }
10203if ${ac_cv_prog_DSYMUTIL+:} false; then :
10204 $as_echo_n "(cached) " >&6
10205else
10206 if test -n "$DSYMUTIL"; then
10207 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10208else
10209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10210for as_dir in $PATH
10211do
10212 IFS=$as_save_IFS
10213 test -z "$as_dir" && as_dir=.
10214 for ac_exec_ext in '' $ac_executable_extensions; do
10215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10216 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10218 break 2
10219 fi
10220done
10221 done
10222IFS=$as_save_IFS
10223
10224fi
10225fi
10226DSYMUTIL=$ac_cv_prog_DSYMUTIL
10227if test -n "$DSYMUTIL"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10229$as_echo "$DSYMUTIL" >&6; }
10230else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232$as_echo "no" >&6; }
10233fi
10234
10235
10236fi
10237if test -z "$ac_cv_prog_DSYMUTIL"; then
10238 ac_ct_DSYMUTIL=$DSYMUTIL
10239 # Extract the first word of "dsymutil", so it can be a program name with args.
10240set dummy dsymutil; ac_word=$2
10241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242$as_echo_n "checking for $ac_word... " >&6; }
10243if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10244 $as_echo_n "(cached) " >&6
10245else
10246 if test -n "$ac_ct_DSYMUTIL"; then
10247 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10248else
10249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10250for as_dir in $PATH
10251do
10252 IFS=$as_save_IFS
10253 test -z "$as_dir" && as_dir=.
10254 for ac_exec_ext in '' $ac_executable_extensions; do
10255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10256 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10258 break 2
10259 fi
10260done
10261 done
10262IFS=$as_save_IFS
10263
10264fi
10265fi
10266ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10267if test -n "$ac_ct_DSYMUTIL"; then
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10269$as_echo "$ac_ct_DSYMUTIL" >&6; }
10270else
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10272$as_echo "no" >&6; }
10273fi
10274
10275 if test "x$ac_ct_DSYMUTIL" = x; then
10276 DSYMUTIL=":"
10277 else
10278 case $cross_compiling:$ac_tool_warned in
10279yes:)
10280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10282ac_tool_warned=yes ;;
10283esac
10284 DSYMUTIL=$ac_ct_DSYMUTIL
10285 fi
10286else
10287 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10288fi
10289
10290 if test -n "$ac_tool_prefix"; then
10291 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10292set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294$as_echo_n "checking for $ac_word... " >&6; }
10295if ${ac_cv_prog_NMEDIT+:} false; then :
10296 $as_echo_n "(cached) " >&6
10297else
10298 if test -n "$NMEDIT"; then
10299 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10300else
10301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302for as_dir in $PATH
10303do
10304 IFS=$as_save_IFS
10305 test -z "$as_dir" && as_dir=.
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10308 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10310 break 2
10311 fi
10312done
10313 done
10314IFS=$as_save_IFS
10315
10316fi
10317fi
10318NMEDIT=$ac_cv_prog_NMEDIT
10319if test -n "$NMEDIT"; then
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10321$as_echo "$NMEDIT" >&6; }
10322else
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324$as_echo "no" >&6; }
10325fi
10326
10327
10328fi
10329if test -z "$ac_cv_prog_NMEDIT"; then
10330 ac_ct_NMEDIT=$NMEDIT
10331 # Extract the first word of "nmedit", so it can be a program name with args.
10332set dummy nmedit; ac_word=$2
10333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334$as_echo_n "checking for $ac_word... " >&6; }
10335if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10336 $as_echo_n "(cached) " >&6
10337else
10338 if test -n "$ac_ct_NMEDIT"; then
10339 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10340else
10341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342for as_dir in $PATH
10343do
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10348 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 break 2
10351 fi
10352done
10353 done
10354IFS=$as_save_IFS
10355
10356fi
10357fi
10358ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10359if test -n "$ac_ct_NMEDIT"; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10361$as_echo "$ac_ct_NMEDIT" >&6; }
10362else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364$as_echo "no" >&6; }
10365fi
10366
10367 if test "x$ac_ct_NMEDIT" = x; then
10368 NMEDIT=":"
10369 else
10370 case $cross_compiling:$ac_tool_warned in
10371yes:)
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10374ac_tool_warned=yes ;;
10375esac
10376 NMEDIT=$ac_ct_NMEDIT
10377 fi
10378else
10379 NMEDIT="$ac_cv_prog_NMEDIT"
10380fi
10381
10382 if test -n "$ac_tool_prefix"; then
10383 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10384set dummy ${ac_tool_prefix}lipo; ac_word=$2
10385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10386$as_echo_n "checking for $ac_word... " >&6; }
10387if ${ac_cv_prog_LIPO+:} false; then :
10388 $as_echo_n "(cached) " >&6
10389else
10390 if test -n "$LIPO"; then
10391 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10392else
10393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394for as_dir in $PATH
10395do
10396 IFS=$as_save_IFS
10397 test -z "$as_dir" && as_dir=.
10398 for ac_exec_ext in '' $ac_executable_extensions; do
10399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10400 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10402 break 2
10403 fi
10404done
10405 done
10406IFS=$as_save_IFS
10407
10408fi
10409fi
10410LIPO=$ac_cv_prog_LIPO
10411if test -n "$LIPO"; then
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10413$as_echo "$LIPO" >&6; }
10414else
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10416$as_echo "no" >&6; }
10417fi
10418
10419
10420fi
10421if test -z "$ac_cv_prog_LIPO"; then
10422 ac_ct_LIPO=$LIPO
10423 # Extract the first word of "lipo", so it can be a program name with args.
10424set dummy lipo; ac_word=$2
10425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10426$as_echo_n "checking for $ac_word... " >&6; }
10427if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10428 $as_echo_n "(cached) " >&6
10429else
10430 if test -n "$ac_ct_LIPO"; then
10431 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10432else
10433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434for as_dir in $PATH
10435do
10436 IFS=$as_save_IFS
10437 test -z "$as_dir" && as_dir=.
10438 for ac_exec_ext in '' $ac_executable_extensions; do
10439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10440 ac_cv_prog_ac_ct_LIPO="lipo"
10441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10442 break 2
10443 fi
10444done
10445 done
10446IFS=$as_save_IFS
10447
10448fi
10449fi
10450ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10451if test -n "$ac_ct_LIPO"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10453$as_echo "$ac_ct_LIPO" >&6; }
10454else
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456$as_echo "no" >&6; }
10457fi
10458
10459 if test "x$ac_ct_LIPO" = x; then
10460 LIPO=":"
10461 else
10462 case $cross_compiling:$ac_tool_warned in
10463yes:)
10464{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10466ac_tool_warned=yes ;;
10467esac
10468 LIPO=$ac_ct_LIPO
10469 fi
10470else
10471 LIPO="$ac_cv_prog_LIPO"
10472fi
10473
10474 if test -n "$ac_tool_prefix"; then
10475 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10476set dummy ${ac_tool_prefix}otool; ac_word=$2
10477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10478$as_echo_n "checking for $ac_word... " >&6; }
10479if ${ac_cv_prog_OTOOL+:} false; then :
10480 $as_echo_n "(cached) " >&6
10481else
10482 if test -n "$OTOOL"; then
10483 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10484else
10485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486for as_dir in $PATH
10487do
10488 IFS=$as_save_IFS
10489 test -z "$as_dir" && as_dir=.
10490 for ac_exec_ext in '' $ac_executable_extensions; do
10491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10492 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10494 break 2
10495 fi
10496done
10497 done
10498IFS=$as_save_IFS
10499
10500fi
10501fi
10502OTOOL=$ac_cv_prog_OTOOL
10503if test -n "$OTOOL"; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10505$as_echo "$OTOOL" >&6; }
10506else
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10508$as_echo "no" >&6; }
10509fi
10510
10511
10512fi
10513if test -z "$ac_cv_prog_OTOOL"; then
10514 ac_ct_OTOOL=$OTOOL
10515 # Extract the first word of "otool", so it can be a program name with args.
10516set dummy otool; ac_word=$2
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10518$as_echo_n "checking for $ac_word... " >&6; }
10519if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521else
10522 if test -n "$ac_ct_OTOOL"; then
10523 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10524else
10525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526for as_dir in $PATH
10527do
10528 IFS=$as_save_IFS
10529 test -z "$as_dir" && as_dir=.
10530 for ac_exec_ext in '' $ac_executable_extensions; do
10531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10532 ac_cv_prog_ac_ct_OTOOL="otool"
10533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10534 break 2
10535 fi
10536done
10537 done
10538IFS=$as_save_IFS
10539
10540fi
10541fi
10542ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10543if test -n "$ac_ct_OTOOL"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10545$as_echo "$ac_ct_OTOOL" >&6; }
10546else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548$as_echo "no" >&6; }
10549fi
10550
10551 if test "x$ac_ct_OTOOL" = x; then
10552 OTOOL=":"
10553 else
10554 case $cross_compiling:$ac_tool_warned in
10555yes:)
10556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10558ac_tool_warned=yes ;;
10559esac
10560 OTOOL=$ac_ct_OTOOL
10561 fi
10562else
10563 OTOOL="$ac_cv_prog_OTOOL"
10564fi
10565
10566 if test -n "$ac_tool_prefix"; then
10567 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10568set dummy ${ac_tool_prefix}otool64; ac_word=$2
10569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10570$as_echo_n "checking for $ac_word... " >&6; }
10571if ${ac_cv_prog_OTOOL64+:} false; then :
10572 $as_echo_n "(cached) " >&6
10573else
10574 if test -n "$OTOOL64"; then
10575 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10576else
10577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578for as_dir in $PATH
10579do
10580 IFS=$as_save_IFS
10581 test -z "$as_dir" && as_dir=.
10582 for ac_exec_ext in '' $ac_executable_extensions; do
10583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10584 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 break 2
10587 fi
10588done
10589 done
10590IFS=$as_save_IFS
10591
10592fi
10593fi
10594OTOOL64=$ac_cv_prog_OTOOL64
10595if test -n "$OTOOL64"; then
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10597$as_echo "$OTOOL64" >&6; }
10598else
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600$as_echo "no" >&6; }
10601fi
10602
10603
10604fi
10605if test -z "$ac_cv_prog_OTOOL64"; then
10606 ac_ct_OTOOL64=$OTOOL64
10607 # Extract the first word of "otool64", so it can be a program name with args.
10608set dummy otool64; ac_word=$2
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10610$as_echo_n "checking for $ac_word... " >&6; }
10611if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10612 $as_echo_n "(cached) " >&6
10613else
10614 if test -n "$ac_ct_OTOOL64"; then
10615 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10616else
10617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618for as_dir in $PATH
10619do
10620 IFS=$as_save_IFS
10621 test -z "$as_dir" && as_dir=.
10622 for ac_exec_ext in '' $ac_executable_extensions; do
10623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10624 ac_cv_prog_ac_ct_OTOOL64="otool64"
10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 break 2
10627 fi
10628done
10629 done
10630IFS=$as_save_IFS
10631
10632fi
10633fi
10634ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10635if test -n "$ac_ct_OTOOL64"; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10637$as_echo "$ac_ct_OTOOL64" >&6; }
10638else
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640$as_echo "no" >&6; }
10641fi
10642
10643 if test "x$ac_ct_OTOOL64" = x; then
10644 OTOOL64=":"
10645 else
10646 case $cross_compiling:$ac_tool_warned in
10647yes:)
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10650ac_tool_warned=yes ;;
10651esac
10652 OTOOL64=$ac_ct_OTOOL64
10653 fi
10654else
10655 OTOOL64="$ac_cv_prog_OTOOL64"
10656fi
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10685$as_echo_n "checking for -single_module linker flag... " >&6; }
10686if ${lt_cv_apple_cc_single_mod+:} false; then :
10687 $as_echo_n "(cached) " >&6
10688else
10689 lt_cv_apple_cc_single_mod=no
10690 if test -z "$LT_MULTI_MODULE"; then
10691 # By default we will add the -single_module flag. You can override
10692 # by either setting the environment variable LT_MULTI_MODULE
10693 # non-empty at configure time, or by adding -multi_module to the
10694 # link flags.
10695 rm -rf libconftest.dylib*
10696 echo "int foo(void){return 1;}" > conftest.c
10697 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10698-dynamiclib -Wl,-single_module conftest.c" >&5
10699 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10700 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10701 _lt_result=$?
10702 # If there is a non-empty error log, and "single_module"
10703 # appears in it, assume the flag caused a linker warning
10704 if test -s conftest.err && $GREP single_module conftest.err; then
10705 cat conftest.err >&5
10706 # Otherwise, if the output was created with a 0 exit code from
10707 # the compiler, it worked.
10708 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10709 lt_cv_apple_cc_single_mod=yes
10710 else
10711 cat conftest.err >&5
10712 fi
10713 rm -rf libconftest.dylib*
10714 rm -f conftest.*
10715 fi
10716fi
10717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10718$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10719
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10721$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10722if ${lt_cv_ld_exported_symbols_list+:} false; then :
10723 $as_echo_n "(cached) " >&6
10724else
10725 lt_cv_ld_exported_symbols_list=no
10726 save_LDFLAGS=$LDFLAGS
10727 echo "_main" > conftest.sym
10728 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730/* end confdefs.h. */
10731
10732int
10733main ()
10734{
10735
10736 ;
10737 return 0;
10738}
10739_ACEOF
10740if ac_fn_c_try_link "$LINENO"; then :
10741 lt_cv_ld_exported_symbols_list=yes
10742else
10743 lt_cv_ld_exported_symbols_list=no
10744fi
10745rm -f core conftest.err conftest.$ac_objext \
10746 conftest$ac_exeext conftest.$ac_ext
10747 LDFLAGS=$save_LDFLAGS
10748
10749fi
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10751$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10752
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10754$as_echo_n "checking for -force_load linker flag... " >&6; }
10755if ${lt_cv_ld_force_load+:} false; then :
10756 $as_echo_n "(cached) " >&6
10757else
10758 lt_cv_ld_force_load=no
10759 cat > conftest.c << _LT_EOF
10760int forced_loaded() { return 2;}
10761_LT_EOF
10762 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10763 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10764 echo "$AR cru libconftest.a conftest.o" >&5
10765 $AR cru libconftest.a conftest.o 2>&5
10766 echo "$RANLIB libconftest.a" >&5
10767 $RANLIB libconftest.a 2>&5
10768 cat > conftest.c << _LT_EOF
10769int main() { return 0;}
10770_LT_EOF
10771 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10772 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10773 _lt_result=$?
10774 if test -s conftest.err && $GREP force_load conftest.err; then
10775 cat conftest.err >&5
10776 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10777 lt_cv_ld_force_load=yes
10778 else
10779 cat conftest.err >&5
10780 fi
10781 rm -f conftest.err libconftest.a conftest conftest.c
10782 rm -rf conftest.dSYM
10783
10784fi
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10786$as_echo "$lt_cv_ld_force_load" >&6; }
10787 case $host_os in
10788 rhapsody* | darwin1.[012])
10789 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10790 darwin1.*)
10791 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10792 darwin*) # darwin 5.x on
10793 # if running on 10.5 or later, the deployment target defaults
10794 # to the OS version, if on x86, and 10.4, the deployment
10795 # target defaults to 10.4. Don't you love it?
10796 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10797 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10798 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10799 10.[012][,.]*)
10800 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10801 10.*)
10802 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10803 esac
10804 ;;
10805 esac
10806 if test yes = "$lt_cv_apple_cc_single_mod"; then
10807 _lt_dar_single_mod='$single_module'
10808 fi
10809 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10810 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10811 else
10812 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10813 fi
10814 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10815 _lt_dsymutil='~$DSYMUTIL $lib || :'
10816 else
10817 _lt_dsymutil=
10818 fi
10819 ;;
10820 esac
10821
10822# func_munge_path_list VARIABLE PATH
10823# -----------------------------------
10824# VARIABLE is name of variable containing _space_ separated list of
10825# directories to be munged by the contents of PATH, which is string
10826# having a format:
10827# "DIR[:DIR]:"
10828# string "DIR[ DIR]" will be prepended to VARIABLE
10829# ":DIR[:DIR]"
10830# string "DIR[ DIR]" will be appended to VARIABLE
10831# "DIRP[:DIRP]::[DIRA:]DIRA"
10832# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10833# "DIRA[ DIRA]" will be appended to VARIABLE
10834# "DIR[:DIR]"
10835# VARIABLE will be replaced by "DIR[ DIR]"
10836func_munge_path_list ()
10837{
10838 case x$2 in
10839 x)
10840 ;;
10841 *:)
10842 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10843 ;;
10844 x:*)
10845 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10846 ;;
10847 *::*)
10848 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10849 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10850 ;;
10851 *)
10852 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10853 ;;
10854 esac
10855}
10856
10857for ac_header in dlfcn.h
10858do :
10859 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10860"
10861if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10862 cat >>confdefs.h <<_ACEOF
10863#define HAVE_DLFCN_H 1
10864_ACEOF
10865
10866fi
10867
10868done
10869
10870
10871
10872
10873
10874# Set options
10875# Check whether --enable-shared was given.
10876if test "${enable_shared+set}" = set; then :
10877 enableval=$enable_shared; p=${PACKAGE-default}
10878 case $enableval in
10879 yes) enable_shared=yes ;;
10880 no) enable_shared=no ;;
10881 *)
10882 enable_shared=no
10883 # Look at the argument we got. We use all the common list separators.
10884 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10885 for pkg in $enableval; do
10886 IFS=$lt_save_ifs
10887 if test "X$pkg" = "X$p"; then
10888 enable_shared=yes
10889 fi
10890 done
10891 IFS=$lt_save_ifs
10892 ;;
10893 esac
10894else
10895 enable_shared=no
10896fi
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907 enable_dlopen=no
10908
10909
10910 enable_win32_dll=no
10911
10912
10913
10914 # Check whether --enable-static was given.
10915if test "${enable_static+set}" = set; then :
10916 enableval=$enable_static; p=${PACKAGE-default}
10917 case $enableval in
10918 yes) enable_static=yes ;;
10919 no) enable_static=no ;;
10920 *)
10921 enable_static=no
10922 # Look at the argument we got. We use all the common list separators.
10923 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10924 for pkg in $enableval; do
10925 IFS=$lt_save_ifs
10926 if test "X$pkg" = "X$p"; then
10927 enable_static=yes
10928 fi
10929 done
10930 IFS=$lt_save_ifs
10931 ;;
10932 esac
10933else
10934 enable_static=yes
10935fi
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946# Check whether --with-pic was given.
10947if test "${with_pic+set}" = set; then :
10948 withval=$with_pic; lt_p=${PACKAGE-default}
10949 case $withval in
10950 yes|no) pic_mode=$withval ;;
10951 *)
10952 pic_mode=default
10953 # Look at the argument we got. We use all the common list separators.
10954 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10955 for lt_pkg in $withval; do
10956 IFS=$lt_save_ifs
10957 if test "X$lt_pkg" = "X$lt_p"; then
10958 pic_mode=yes
10959 fi
10960 done
10961 IFS=$lt_save_ifs
10962 ;;
10963 esac
10964else
10965 pic_mode=default
10966fi
10967
10968
10969
10970
10971
10972
10973
10974
10975 # Check whether --enable-fast-install was given.
10976if test "${enable_fast_install+set}" = set; then :
10977 enableval=$enable_fast_install; p=${PACKAGE-default}
10978 case $enableval in
10979 yes) enable_fast_install=yes ;;
10980 no) enable_fast_install=no ;;
10981 *)
10982 enable_fast_install=no
10983 # Look at the argument we got. We use all the common list separators.
10984 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10985 for pkg in $enableval; do
10986 IFS=$lt_save_ifs
10987 if test "X$pkg" = "X$p"; then
10988 enable_fast_install=yes
10989 fi
10990 done
10991 IFS=$lt_save_ifs
10992 ;;
10993 esac
10994else
10995 enable_fast_install=yes
10996fi
10997
10998
10999
11000
11001
11002
11003
11004
11005 shared_archive_member_spec=
11006case $host,$enable_shared in
11007power*-*-aix[5-9]*,yes)
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11009$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11010
11011# Check whether --with-aix-soname was given.
11012if test "${with_aix_soname+set}" = set; then :
11013 withval=$with_aix_soname; case $withval in
11014 aix|svr4|both)
11015 ;;
11016 *)
11017 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11018 ;;
11019 esac
11020 lt_cv_with_aix_soname=$with_aix_soname
11021else
11022 if ${lt_cv_with_aix_soname+:} false; then :
11023 $as_echo_n "(cached) " >&6
11024else
11025 lt_cv_with_aix_soname=aix
11026fi
11027
11028 with_aix_soname=$lt_cv_with_aix_soname
11029fi
11030
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11032$as_echo "$with_aix_soname" >&6; }
11033 if test aix != "$with_aix_soname"; then
11034 # For the AIX way of multilib, we name the shared archive member
11035 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11036 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11037 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11038 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11039 if test 64 = "${OBJECT_MODE-32}"; then
11040 shared_archive_member_spec=shr_64
11041 else
11042 shared_archive_member_spec=shr
11043 fi
11044 fi
11045 ;;
11046*)
11047 with_aix_soname=aix
11048 ;;
11049esac
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060# This can be used to rebuild libtool when needed
11061LIBTOOL_DEPS=$ltmain
11062
11063# Always use our own libtool.
11064LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095test -z "$LN_S" && LN_S="ln -s"
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110if test -n "${ZSH_VERSION+set}"; then
11111 setopt NO_GLOB_SUBST
11112fi
11113
11114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11115$as_echo_n "checking for objdir... " >&6; }
11116if ${lt_cv_objdir+:} false; then :
11117 $as_echo_n "(cached) " >&6
11118else
11119 rm -f .libs 2>/dev/null
11120mkdir .libs 2>/dev/null
11121if test -d .libs; then
11122 lt_cv_objdir=.libs
11123else
11124 # MS-DOS does not allow filenames that begin with a dot.
11125 lt_cv_objdir=_libs
11126fi
11127rmdir .libs 2>/dev/null
11128fi
11129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11130$as_echo "$lt_cv_objdir" >&6; }
11131objdir=$lt_cv_objdir
11132
11133
11134
11135
11136
11137cat >>confdefs.h <<_ACEOF
11138#define LT_OBJDIR "$lt_cv_objdir/"
11139_ACEOF
11140
11141
11142
11143
11144case $host_os in
11145aix3*)
11146 # AIX sometimes has problems with the GCC collect2 program. For some
11147 # reason, if we set the COLLECT_NAMES environment variable, the problems
11148 # vanish in a puff of smoke.
11149 if test set != "${COLLECT_NAMES+set}"; then
11150 COLLECT_NAMES=
11151 export COLLECT_NAMES
11152 fi
11153 ;;
11154esac
11155
11156# Global variables:
11157ofile=libtool
11158can_build_shared=yes
11159
11160# All known linkers require a '.a' archive for static linking (except MSVC,
11161# which needs '.lib').
11162libext=a
11163
11164with_gnu_ld=$lt_cv_prog_gnu_ld
11165
11166old_CC=$CC
11167old_CFLAGS=$CFLAGS
11168
11169# Set sane defaults for various variables
11170test -z "$CC" && CC=cc
11171test -z "$LTCC" && LTCC=$CC
11172test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11173test -z "$LD" && LD=ld
11174test -z "$ac_objext" && ac_objext=o
11175
11176func_cc_basename $compiler
11177cc_basename=$func_cc_basename_result
11178
11179
11180# Only perform the check for file, if the check method requires it
11181test -z "$MAGIC_CMD" && MAGIC_CMD=file
11182case $deplibs_check_method in
11183file_magic*)
11184 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11186$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11187if ${lt_cv_path_MAGIC_CMD+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189else
11190 case $MAGIC_CMD in
11191[\\/*] | ?:[\\/]*)
11192 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11193 ;;
11194*)
11195 lt_save_MAGIC_CMD=$MAGIC_CMD
11196 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11198 for ac_dir in $ac_dummy; do
11199 IFS=$lt_save_ifs
11200 test -z "$ac_dir" && ac_dir=.
11201 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11202 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11203 if test -n "$file_magic_test_file"; then
11204 case $deplibs_check_method in
11205 "file_magic "*)
11206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11207 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11209 $EGREP "$file_magic_regex" > /dev/null; then
11210 :
11211 else
11212 cat <<_LT_EOF 1>&2
11213
11214*** Warning: the command libtool uses to detect shared libraries,
11215*** $file_magic_cmd, produces output that libtool cannot recognize.
11216*** The result is that libtool may fail to recognize shared libraries
11217*** as such. This will affect the creation of libtool libraries that
11218*** depend on shared libraries, but programs linked with such libtool
11219*** libraries will work regardless of this problem. Nevertheless, you
11220*** may want to report the problem to your system manager and/or to
11221*** bug-libtool@gnu.org
11222
11223_LT_EOF
11224 fi ;;
11225 esac
11226 fi
11227 break
11228 fi
11229 done
11230 IFS=$lt_save_ifs
11231 MAGIC_CMD=$lt_save_MAGIC_CMD
11232 ;;
11233esac
11234fi
11235
11236MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11237if test -n "$MAGIC_CMD"; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11239$as_echo "$MAGIC_CMD" >&6; }
11240else
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242$as_echo "no" >&6; }
11243fi
11244
11245
11246
11247
11248
11249if test -z "$lt_cv_path_MAGIC_CMD"; then
11250 if test -n "$ac_tool_prefix"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11252$as_echo_n "checking for file... " >&6; }
11253if ${lt_cv_path_MAGIC_CMD+:} false; then :
11254 $as_echo_n "(cached) " >&6
11255else
11256 case $MAGIC_CMD in
11257[\\/*] | ?:[\\/]*)
11258 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11259 ;;
11260*)
11261 lt_save_MAGIC_CMD=$MAGIC_CMD
11262 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11263 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11264 for ac_dir in $ac_dummy; do
11265 IFS=$lt_save_ifs
11266 test -z "$ac_dir" && ac_dir=.
11267 if test -f "$ac_dir/file"; then
11268 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11269 if test -n "$file_magic_test_file"; then
11270 case $deplibs_check_method in
11271 "file_magic "*)
11272 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11273 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11274 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11275 $EGREP "$file_magic_regex" > /dev/null; then
11276 :
11277 else
11278 cat <<_LT_EOF 1>&2
11279
11280*** Warning: the command libtool uses to detect shared libraries,
11281*** $file_magic_cmd, produces output that libtool cannot recognize.
11282*** The result is that libtool may fail to recognize shared libraries
11283*** as such. This will affect the creation of libtool libraries that
11284*** depend on shared libraries, but programs linked with such libtool
11285*** libraries will work regardless of this problem. Nevertheless, you
11286*** may want to report the problem to your system manager and/or to
11287*** bug-libtool@gnu.org
11288
11289_LT_EOF
11290 fi ;;
11291 esac
11292 fi
11293 break
11294 fi
11295 done
11296 IFS=$lt_save_ifs
11297 MAGIC_CMD=$lt_save_MAGIC_CMD
11298 ;;
11299esac
11300fi
11301
11302MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11303if test -n "$MAGIC_CMD"; then
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11305$as_echo "$MAGIC_CMD" >&6; }
11306else
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11308$as_echo "no" >&6; }
11309fi
11310
11311
11312 else
11313 MAGIC_CMD=:
11314 fi
11315fi
11316
11317 fi
11318 ;;
11319esac
11320
11321# Use C for the default configuration in the libtool script
11322
11323lt_save_CC=$CC
11324ac_ext=c
11325ac_cpp='$CPP $CPPFLAGS'
11326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11328ac_compiler_gnu=$ac_cv_c_compiler_gnu
11329
11330
11331# Source file extension for C test sources.
11332ac_ext=c
11333
11334# Object file extension for compiled C test sources.
11335objext=o
11336objext=$objext
11337
11338# Code to be used in simple compile tests
11339lt_simple_compile_test_code="int some_variable = 0;"
11340
11341# Code to be used in simple link tests
11342lt_simple_link_test_code='int main(){return(0);}'
11343
11344
11345
11346
11347
11348
11349
11350# If no C compiler was specified, use CC.
11351LTCC=${LTCC-"$CC"}
11352
11353# If no C compiler flags were specified, use CFLAGS.
11354LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11355
11356# Allow CC to be a program name with arguments.
11357compiler=$CC
11358
11359# Save the default compiler, since it gets overwritten when the other
11360# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11361compiler_DEFAULT=$CC
11362
11363# save warnings/boilerplate of simple test code
11364ac_outfile=conftest.$ac_objext
11365echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11366eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11367_lt_compiler_boilerplate=`cat conftest.err`
11368$RM conftest*
11369
11370ac_outfile=conftest.$ac_objext
11371echo "$lt_simple_link_test_code" >conftest.$ac_ext
11372eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11373_lt_linker_boilerplate=`cat conftest.err`
11374$RM -r conftest*
11375
11376
11377## CAVEAT EMPTOR:
11378## There is no encapsulation within the following macros, do not change
11379## the running order or otherwise move them around unless you know exactly
11380## what you are doing...
11381if test -n "$compiler"; then
11382
11383lt_prog_compiler_no_builtin_flag=
11384
11385if test yes = "$GCC"; then
11386 case $cc_basename in
11387 nvcc*)
11388 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11389 *)
11390 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11391 esac
11392
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11394$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11395if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11396 $as_echo_n "(cached) " >&6
11397else
11398 lt_cv_prog_compiler_rtti_exceptions=no
11399 ac_outfile=conftest.$ac_objext
11400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11401 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11402 # Insert the option either (1) after the last *FLAGS variable, or
11403 # (2) before a word containing "conftest.", or (3) at the end.
11404 # Note that $ac_compile itself does not contain backslashes and begins
11405 # with a dollar sign (not a hyphen), so the echo should work correctly.
11406 # The option is referenced via a variable to avoid confusing sed.
11407 lt_compile=`echo "$ac_compile" | $SED \
11408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11410 -e 's:$: $lt_compiler_flag:'`
11411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11412 (eval "$lt_compile" 2>conftest.err)
11413 ac_status=$?
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 if (exit $ac_status) && test -s "$ac_outfile"; then
11417 # The compiler can only warn and ignore the option if not recognized
11418 # So say no if there are warnings other than the usual output.
11419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11422 lt_cv_prog_compiler_rtti_exceptions=yes
11423 fi
11424 fi
11425 $RM conftest*
11426
11427fi
11428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11429$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11430
11431if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11432 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11433else
11434 :
11435fi
11436
11437fi
11438
11439
11440
11441
11442
11443
11444 lt_prog_compiler_wl=
11445lt_prog_compiler_pic=
11446lt_prog_compiler_static=
11447
11448
11449 if test yes = "$GCC"; then
11450 lt_prog_compiler_wl='-Wl,'
11451 lt_prog_compiler_static='-static'
11452
11453 case $host_os in
11454 aix*)
11455 # All AIX code is PIC.
11456 if test ia64 = "$host_cpu"; then
11457 # AIX 5 now supports IA64 processor
11458 lt_prog_compiler_static='-Bstatic'
11459 fi
11460 lt_prog_compiler_pic='-fPIC'
11461 ;;
11462
11463 amigaos*)
11464 case $host_cpu in
11465 powerpc)
11466 # see comment about AmigaOS4 .so support
11467 lt_prog_compiler_pic='-fPIC'
11468 ;;
11469 m68k)
11470 # FIXME: we need at least 68020 code to build shared libraries, but
11471 # adding the '-m68020' flag to GCC prevents building anything better,
11472 # like '-m68040'.
11473 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11474 ;;
11475 esac
11476 ;;
11477
11478 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11479 # PIC is the default for these OSes.
11480 ;;
11481
11482 mingw* | cygwin* | pw32* | os2* | cegcc*)
11483 # This hack is so that the source file can tell whether it is being
11484 # built for inclusion in a dll (and should export symbols for example).
11485 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11486 # (--disable-auto-import) libraries
11487 lt_prog_compiler_pic='-DDLL_EXPORT'
11488 case $host_os in
11489 os2*)
11490 lt_prog_compiler_static='$wl-static'
11491 ;;
11492 esac
11493 ;;
11494
11495 darwin* | rhapsody*)
11496 # PIC is the default on this platform
11497 # Common symbols not allowed in MH_DYLIB files
11498 lt_prog_compiler_pic='-fno-common'
11499 ;;
11500
11501 haiku*)
11502 # PIC is the default for Haiku.
11503 # The "-static" flag exists, but is broken.
11504 lt_prog_compiler_static=
11505 ;;
11506
11507 hpux*)
11508 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11509 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11510 # sets the default TLS model and affects inlining.
11511 case $host_cpu in
11512 hppa*64*)
11513 # +Z the default
11514 ;;
11515 *)
11516 lt_prog_compiler_pic='-fPIC'
11517 ;;
11518 esac
11519 ;;
11520
11521 interix[3-9]*)
11522 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11523 # Instead, we relocate shared libraries at runtime.
11524 ;;
11525
11526 msdosdjgpp*)
11527 # Just because we use GCC doesn't mean we suddenly get shared libraries
11528 # on systems that don't support them.
11529 lt_prog_compiler_can_build_shared=no
11530 enable_shared=no
11531 ;;
11532
11533 *nto* | *qnx*)
11534 # QNX uses GNU C++, but need to define -shared option too, otherwise
11535 # it will coredump.
11536 lt_prog_compiler_pic='-fPIC -shared'
11537 ;;
11538
11539 sysv4*MP*)
11540 if test -d /usr/nec; then
11541 lt_prog_compiler_pic=-Kconform_pic
11542 fi
11543 ;;
11544
11545 *)
11546 lt_prog_compiler_pic='-fPIC'
11547 ;;
11548 esac
11549
11550 case $cc_basename in
11551 nvcc*) # Cuda Compiler Driver 2.2
11552 lt_prog_compiler_wl='-Xlinker '
11553 if test -n "$lt_prog_compiler_pic"; then
11554 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11555 fi
11556 ;;
11557 esac
11558 else
11559 # PORTME Check for flag to pass linker flags through the system compiler.
11560 case $host_os in
11561 aix*)
11562 lt_prog_compiler_wl='-Wl,'
11563 if test ia64 = "$host_cpu"; then
11564 # AIX 5 now supports IA64 processor
11565 lt_prog_compiler_static='-Bstatic'
11566 else
11567 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11568 fi
11569 ;;
11570
11571 darwin* | rhapsody*)
11572 # PIC is the default on this platform
11573 # Common symbols not allowed in MH_DYLIB files
11574 lt_prog_compiler_pic='-fno-common'
11575 case $cc_basename in
11576 nagfor*)
11577 # NAG Fortran compiler
11578 lt_prog_compiler_wl='-Wl,-Wl,,'
11579 lt_prog_compiler_pic='-PIC'
11580 lt_prog_compiler_static='-Bstatic'
11581 ;;
11582 esac
11583 ;;
11584
11585 mingw* | cygwin* | pw32* | os2* | cegcc*)
11586 # This hack is so that the source file can tell whether it is being
11587 # built for inclusion in a dll (and should export symbols for example).
11588 lt_prog_compiler_pic='-DDLL_EXPORT'
11589 case $host_os in
11590 os2*)
11591 lt_prog_compiler_static='$wl-static'
11592 ;;
11593 esac
11594 ;;
11595
11596 hpux9* | hpux10* | hpux11*)
11597 lt_prog_compiler_wl='-Wl,'
11598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11599 # not for PA HP-UX.
11600 case $host_cpu in
11601 hppa*64*|ia64*)
11602 # +Z the default
11603 ;;
11604 *)
11605 lt_prog_compiler_pic='+Z'
11606 ;;
11607 esac
11608 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11609 lt_prog_compiler_static='$wl-a ${wl}archive'
11610 ;;
11611
11612 irix5* | irix6* | nonstopux*)
11613 lt_prog_compiler_wl='-Wl,'
11614 # PIC (with -KPIC) is the default.
11615 lt_prog_compiler_static='-non_shared'
11616 ;;
11617
11618 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11619 case $cc_basename in
11620 # old Intel for x86_64, which still supported -KPIC.
11621 ecc*)
11622 lt_prog_compiler_wl='-Wl,'
11623 lt_prog_compiler_pic='-KPIC'
11624 lt_prog_compiler_static='-static'
11625 ;;
11626 # icc used to be incompatible with GCC.
11627 # ICC 10 doesn't accept -KPIC any more.
11628 icc* | ifort*)
11629 lt_prog_compiler_wl='-Wl,'
11630 lt_prog_compiler_pic='-fPIC'
11631 lt_prog_compiler_static='-static'
11632 ;;
11633 # Lahey Fortran 8.1.
11634 lf95*)
11635 lt_prog_compiler_wl='-Wl,'
11636 lt_prog_compiler_pic='--shared'
11637 lt_prog_compiler_static='--static'
11638 ;;
11639 nagfor*)
11640 # NAG Fortran compiler
11641 lt_prog_compiler_wl='-Wl,-Wl,,'
11642 lt_prog_compiler_pic='-PIC'
11643 lt_prog_compiler_static='-Bstatic'
11644 ;;
11645 tcc*)
11646 # Fabrice Bellard et al's Tiny C Compiler
11647 lt_prog_compiler_wl='-Wl,'
11648 lt_prog_compiler_pic='-fPIC'
11649 lt_prog_compiler_static='-static'
11650 ;;
11651 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11652 # Portland Group compilers (*not* the Pentium gcc compiler,
11653 # which looks to be a dead project)
11654 lt_prog_compiler_wl='-Wl,'
11655 lt_prog_compiler_pic='-fpic'
11656 lt_prog_compiler_static='-Bstatic'
11657 ;;
11658 ccc*)
11659 lt_prog_compiler_wl='-Wl,'
11660 # All Alpha code is PIC.
11661 lt_prog_compiler_static='-non_shared'
11662 ;;
11663 xl* | bgxl* | bgf* | mpixl*)
11664 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11665 lt_prog_compiler_wl='-Wl,'
11666 lt_prog_compiler_pic='-qpic'
11667 lt_prog_compiler_static='-qstaticlink'
11668 ;;
11669 *)
11670 case `$CC -V 2>&1 | sed 5q` in
11671 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11672 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11673 lt_prog_compiler_pic='-KPIC'
11674 lt_prog_compiler_static='-Bstatic'
11675 lt_prog_compiler_wl=''
11676 ;;
11677 *Sun\ F* | *Sun*Fortran*)
11678 lt_prog_compiler_pic='-KPIC'
11679 lt_prog_compiler_static='-Bstatic'
11680 lt_prog_compiler_wl='-Qoption ld '
11681 ;;
11682 *Sun\ C*)
11683 # Sun C 5.9
11684 lt_prog_compiler_pic='-KPIC'
11685 lt_prog_compiler_static='-Bstatic'
11686 lt_prog_compiler_wl='-Wl,'
11687 ;;
11688 *Intel*\ [CF]*Compiler*)
11689 lt_prog_compiler_wl='-Wl,'
11690 lt_prog_compiler_pic='-fPIC'
11691 lt_prog_compiler_static='-static'
11692 ;;
11693 *Portland\ Group*)
11694 lt_prog_compiler_wl='-Wl,'
11695 lt_prog_compiler_pic='-fpic'
11696 lt_prog_compiler_static='-Bstatic'
11697 ;;
11698 esac
11699 ;;
11700 esac
11701 ;;
11702
11703 newsos6)
11704 lt_prog_compiler_pic='-KPIC'
11705 lt_prog_compiler_static='-Bstatic'
11706 ;;
11707
11708 *nto* | *qnx*)
11709 # QNX uses GNU C++, but need to define -shared option too, otherwise
11710 # it will coredump.
11711 lt_prog_compiler_pic='-fPIC -shared'
11712 ;;
11713
11714 osf3* | osf4* | osf5*)
11715 lt_prog_compiler_wl='-Wl,'
11716 # All OSF/1 code is PIC.
11717 lt_prog_compiler_static='-non_shared'
11718 ;;
11719
11720 rdos*)
11721 lt_prog_compiler_static='-non_shared'
11722 ;;
11723
11724 solaris*)
11725 lt_prog_compiler_pic='-KPIC'
11726 lt_prog_compiler_static='-Bstatic'
11727 case $cc_basename in
11728 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11729 lt_prog_compiler_wl='-Qoption ld ';;
11730 *)
11731 lt_prog_compiler_wl='-Wl,';;
11732 esac
11733 ;;
11734
11735 sunos4*)
11736 lt_prog_compiler_wl='-Qoption ld '
11737 lt_prog_compiler_pic='-PIC'
11738 lt_prog_compiler_static='-Bstatic'
11739 ;;
11740
11741 sysv4 | sysv4.2uw2* | sysv4.3*)
11742 lt_prog_compiler_wl='-Wl,'
11743 lt_prog_compiler_pic='-KPIC'
11744 lt_prog_compiler_static='-Bstatic'
11745 ;;
11746
11747 sysv4*MP*)
11748 if test -d /usr/nec; then
11749 lt_prog_compiler_pic='-Kconform_pic'
11750 lt_prog_compiler_static='-Bstatic'
11751 fi
11752 ;;
11753
11754 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11755 lt_prog_compiler_wl='-Wl,'
11756 lt_prog_compiler_pic='-KPIC'
11757 lt_prog_compiler_static='-Bstatic'
11758 ;;
11759
11760 unicos*)
11761 lt_prog_compiler_wl='-Wl,'
11762 lt_prog_compiler_can_build_shared=no
11763 ;;
11764
11765 uts4*)
11766 lt_prog_compiler_pic='-pic'
11767 lt_prog_compiler_static='-Bstatic'
11768 ;;
11769
11770 *)
11771 lt_prog_compiler_can_build_shared=no
11772 ;;
11773 esac
11774 fi
11775
11776case $host_os in
11777 # For platforms that do not support PIC, -DPIC is meaningless:
11778 *djgpp*)
11779 lt_prog_compiler_pic=
11780 ;;
11781 *)
11782 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11783 ;;
11784esac
11785
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11787$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11788if ${lt_cv_prog_compiler_pic+:} false; then :
11789 $as_echo_n "(cached) " >&6
11790else
11791 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11792fi
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11794$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11795lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11796
11797#
11798# Check to make sure the PIC flag actually works.
11799#
11800if test -n "$lt_prog_compiler_pic"; then
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11802$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11803if ${lt_cv_prog_compiler_pic_works+:} false; then :
11804 $as_echo_n "(cached) " >&6
11805else
11806 lt_cv_prog_compiler_pic_works=no
11807 ac_outfile=conftest.$ac_objext
11808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11809 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11810 # Insert the option either (1) after the last *FLAGS variable, or
11811 # (2) before a word containing "conftest.", or (3) at the end.
11812 # Note that $ac_compile itself does not contain backslashes and begins
11813 # with a dollar sign (not a hyphen), so the echo should work correctly.
11814 # The option is referenced via a variable to avoid confusing sed.
11815 lt_compile=`echo "$ac_compile" | $SED \
11816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11818 -e 's:$: $lt_compiler_flag:'`
11819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11820 (eval "$lt_compile" 2>conftest.err)
11821 ac_status=$?
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 if (exit $ac_status) && test -s "$ac_outfile"; then
11825 # The compiler can only warn and ignore the option if not recognized
11826 # So say no if there are warnings other than the usual output.
11827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11830 lt_cv_prog_compiler_pic_works=yes
11831 fi
11832 fi
11833 $RM conftest*
11834
11835fi
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11837$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11838
11839if test yes = "$lt_cv_prog_compiler_pic_works"; then
11840 case $lt_prog_compiler_pic in
11841 "" | " "*) ;;
11842 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11843 esac
11844else
11845 lt_prog_compiler_pic=
11846 lt_prog_compiler_can_build_shared=no
11847fi
11848
11849fi
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861#
11862# Check to make sure the static flag actually works.
11863#
11864wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11866$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11867if ${lt_cv_prog_compiler_static_works+:} false; then :
11868 $as_echo_n "(cached) " >&6
11869else
11870 lt_cv_prog_compiler_static_works=no
11871 save_LDFLAGS=$LDFLAGS
11872 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11873 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11874 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11875 # The linker can only warn and ignore the option if not recognized
11876 # So say no if there are warnings
11877 if test -s conftest.err; then
11878 # Append any errors to the config.log.
11879 cat conftest.err 1>&5
11880 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11882 if diff conftest.exp conftest.er2 >/dev/null; then
11883 lt_cv_prog_compiler_static_works=yes
11884 fi
11885 else
11886 lt_cv_prog_compiler_static_works=yes
11887 fi
11888 fi
11889 $RM -r conftest*
11890 LDFLAGS=$save_LDFLAGS
11891
11892fi
11893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11894$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11895
11896if test yes = "$lt_cv_prog_compiler_static_works"; then
11897 :
11898else
11899 lt_prog_compiler_static=
11900fi
11901
11902
11903
11904
11905
11906
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11909$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11910if ${lt_cv_prog_compiler_c_o+:} false; then :
11911 $as_echo_n "(cached) " >&6
11912else
11913 lt_cv_prog_compiler_c_o=no
11914 $RM -r conftest 2>/dev/null
11915 mkdir conftest
11916 cd conftest
11917 mkdir out
11918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11919
11920 lt_compiler_flag="-o out/conftest2.$ac_objext"
11921 # Insert the option either (1) after the last *FLAGS variable, or
11922 # (2) before a word containing "conftest.", or (3) at the end.
11923 # Note that $ac_compile itself does not contain backslashes and begins
11924 # with a dollar sign (not a hyphen), so the echo should work correctly.
11925 lt_compile=`echo "$ac_compile" | $SED \
11926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11928 -e 's:$: $lt_compiler_flag:'`
11929 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11930 (eval "$lt_compile" 2>out/conftest.err)
11931 ac_status=$?
11932 cat out/conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11935 then
11936 # The compiler can only warn and ignore the option if not recognized
11937 # So say no if there are warnings
11938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11939 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11940 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11941 lt_cv_prog_compiler_c_o=yes
11942 fi
11943 fi
11944 chmod u+w . 2>&5
11945 $RM conftest*
11946 # SGI C++ compiler will create directory out/ii_files/ for
11947 # template instantiation
11948 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11949 $RM out/* && rmdir out
11950 cd ..
11951 $RM -r conftest
11952 $RM conftest*
11953
11954fi
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11956$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11957
11958
11959
11960
11961
11962
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11964$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11965if ${lt_cv_prog_compiler_c_o+:} false; then :
11966 $as_echo_n "(cached) " >&6
11967else
11968 lt_cv_prog_compiler_c_o=no
11969 $RM -r conftest 2>/dev/null
11970 mkdir conftest
11971 cd conftest
11972 mkdir out
11973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11974
11975 lt_compiler_flag="-o out/conftest2.$ac_objext"
11976 # Insert the option either (1) after the last *FLAGS variable, or
11977 # (2) before a word containing "conftest.", or (3) at the end.
11978 # Note that $ac_compile itself does not contain backslashes and begins
11979 # with a dollar sign (not a hyphen), so the echo should work correctly.
11980 lt_compile=`echo "$ac_compile" | $SED \
11981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11983 -e 's:$: $lt_compiler_flag:'`
11984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11985 (eval "$lt_compile" 2>out/conftest.err)
11986 ac_status=$?
11987 cat out/conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11990 then
11991 # The compiler can only warn and ignore the option if not recognized
11992 # So say no if there are warnings
11993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11996 lt_cv_prog_compiler_c_o=yes
11997 fi
11998 fi
11999 chmod u+w . 2>&5
12000 $RM conftest*
12001 # SGI C++ compiler will create directory out/ii_files/ for
12002 # template instantiation
12003 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12004 $RM out/* && rmdir out
12005 cd ..
12006 $RM -r conftest
12007 $RM conftest*
12008
12009fi
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12011$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12012
12013
12014
12015
12016hard_links=nottested
12017if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12018 # do not overwrite the value of need_locks provided by the user
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12020$as_echo_n "checking if we can lock with hard links... " >&6; }
12021 hard_links=yes
12022 $RM conftest*
12023 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12024 touch conftest.a
12025 ln conftest.a conftest.b 2>&5 || hard_links=no
12026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12028$as_echo "$hard_links" >&6; }
12029 if test no = "$hard_links"; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12031$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12032 need_locks=warn
12033 fi
12034else
12035 need_locks=no
12036fi
12037
12038
12039
12040
12041
12042
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12044$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12045
12046 runpath_var=
12047 allow_undefined_flag=
12048 always_export_symbols=no
12049 archive_cmds=
12050 archive_expsym_cmds=
12051 compiler_needs_object=no
12052 enable_shared_with_static_runtimes=no
12053 export_dynamic_flag_spec=
12054 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12055 hardcode_automatic=no
12056 hardcode_direct=no
12057 hardcode_direct_absolute=no
12058 hardcode_libdir_flag_spec=
12059 hardcode_libdir_separator=
12060 hardcode_minus_L=no
12061 hardcode_shlibpath_var=unsupported
12062 inherit_rpath=no
12063 link_all_deplibs=unknown
12064 module_cmds=
12065 module_expsym_cmds=
12066 old_archive_from_new_cmds=
12067 old_archive_from_expsyms_cmds=
12068 thread_safe_flag_spec=
12069 whole_archive_flag_spec=
12070 # include_expsyms should be a list of space-separated symbols to be *always*
12071 # included in the symbol list
12072 include_expsyms=
12073 # exclude_expsyms can be an extended regexp of symbols to exclude
12074 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12075 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12076 # as well as any symbol that contains 'd'.
12077 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12078 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12079 # platforms (ab)use it in PIC code, but their linkers get confused if
12080 # the symbol is explicitly referenced. Since portable code cannot
12081 # rely on this symbol name, it's probably fine to never include it in
12082 # preloaded symbol tables.
12083 # Exclude shared library initialization/finalization symbols.
12084 extract_expsyms_cmds=
12085
12086 case $host_os in
12087 cygwin* | mingw* | pw32* | cegcc*)
12088 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12089 # When not using gcc, we currently assume that we are using
12090 # Microsoft Visual C++.
12091 if test yes != "$GCC"; then
12092 with_gnu_ld=no
12093 fi
12094 ;;
12095 interix*)
12096 # we just hope/assume this is gcc and not c89 (= MSVC++)
12097 with_gnu_ld=yes
12098 ;;
12099 openbsd* | bitrig*)
12100 with_gnu_ld=no
12101 ;;
12102 linux* | k*bsd*-gnu | gnu*)
12103 link_all_deplibs=no
12104 ;;
12105 esac
12106
12107 ld_shlibs=yes
12108
12109 # On some targets, GNU ld is compatible enough with the native linker
12110 # that we're better off using the native interface for both.
12111 lt_use_gnu_ld_interface=no
12112 if test yes = "$with_gnu_ld"; then
12113 case $host_os in
12114 aix*)
12115 # The AIX port of GNU ld has always aspired to compatibility
12116 # with the native linker. However, as the warning in the GNU ld
12117 # block says, versions before 2.19.5* couldn't really create working
12118 # shared libraries, regardless of the interface used.
12119 case `$LD -v 2>&1` in
12120 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12121 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12122 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12123 *)
12124 lt_use_gnu_ld_interface=yes
12125 ;;
12126 esac
12127 ;;
12128 *)
12129 lt_use_gnu_ld_interface=yes
12130 ;;
12131 esac
12132 fi
12133
12134 if test yes = "$lt_use_gnu_ld_interface"; then
12135 # If archive_cmds runs LD, not CC, wlarc should be empty
12136 wlarc='$wl'
12137
12138 # Set some defaults for GNU ld with shared library support. These
12139 # are reset later if shared libraries are not supported. Putting them
12140 # here allows them to be overridden if necessary.
12141 runpath_var=LD_RUN_PATH
12142 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12143 export_dynamic_flag_spec='$wl--export-dynamic'
12144 # ancient GNU ld didn't support --whole-archive et. al.
12145 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12146 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12147 else
12148 whole_archive_flag_spec=
12149 fi
12150 supports_anon_versioning=no
12151 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12152 *GNU\ gold*) supports_anon_versioning=yes ;;
12153 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12154 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12155 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12156 *\ 2.11.*) ;; # other 2.11 versions
12157 *) supports_anon_versioning=yes ;;
12158 esac
12159
12160 # See if GNU ld supports shared libraries.
12161 case $host_os in
12162 aix[3-9]*)
12163 # On AIX/PPC, the GNU linker is very broken
12164 if test ia64 != "$host_cpu"; then
12165 ld_shlibs=no
12166 cat <<_LT_EOF 1>&2
12167
12168*** Warning: the GNU linker, at least up to release 2.19, is reported
12169*** to be unable to reliably create shared libraries on AIX.
12170*** Therefore, libtool is disabling shared libraries support. If you
12171*** really care for shared libraries, you may want to install binutils
12172*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12173*** You will then need to restart the configuration process.
12174
12175_LT_EOF
12176 fi
12177 ;;
12178
12179 amigaos*)
12180 case $host_cpu in
12181 powerpc)
12182 # see comment about AmigaOS4 .so support
12183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12184 archive_expsym_cmds=''
12185 ;;
12186 m68k)
12187 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)'
12188 hardcode_libdir_flag_spec='-L$libdir'
12189 hardcode_minus_L=yes
12190 ;;
12191 esac
12192 ;;
12193
12194 beos*)
12195 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12196 allow_undefined_flag=unsupported
12197 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12198 # support --undefined. This deserves some investigation. FIXME
12199 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12200 else
12201 ld_shlibs=no
12202 fi
12203 ;;
12204
12205 cygwin* | mingw* | pw32* | cegcc*)
12206 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12207 # as there is no search path for DLLs.
12208 hardcode_libdir_flag_spec='-L$libdir'
12209 export_dynamic_flag_spec='$wl--export-all-symbols'
12210 allow_undefined_flag=unsupported
12211 always_export_symbols=no
12212 enable_shared_with_static_runtimes=yes
12213 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'
12214 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12215
12216 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12218 # If the export-symbols file already is a .def file, use it as
12219 # is; otherwise, prepend EXPORTS...
12220 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12221 cp $export_symbols $output_objdir/$soname.def;
12222 else
12223 echo EXPORTS > $output_objdir/$soname.def;
12224 cat $export_symbols >> $output_objdir/$soname.def;
12225 fi~
12226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12227 else
12228 ld_shlibs=no
12229 fi
12230 ;;
12231
12232 haiku*)
12233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12234 link_all_deplibs=yes
12235 ;;
12236
12237 os2*)
12238 hardcode_libdir_flag_spec='-L$libdir'
12239 hardcode_minus_L=yes
12240 allow_undefined_flag=unsupported
12241 shrext_cmds=.dll
12242 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12243 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12244 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12245 $ECHO EXPORTS >> $output_objdir/$libname.def~
12246 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12247 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12248 emximp -o $lib $output_objdir/$libname.def'
12249 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12250 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12251 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12252 $ECHO EXPORTS >> $output_objdir/$libname.def~
12253 prefix_cmds="$SED"~
12254 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12255 prefix_cmds="$prefix_cmds -e 1d";
12256 fi~
12257 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12258 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12259 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12260 emximp -o $lib $output_objdir/$libname.def'
12261 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12262 enable_shared_with_static_runtimes=yes
12263 ;;
12264
12265 interix[3-9]*)
12266 hardcode_direct=no
12267 hardcode_shlibpath_var=no
12268 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12269 export_dynamic_flag_spec='$wl-E'
12270 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12271 # Instead, shared libraries are loaded at an image base (0x10000000 by
12272 # default) and relocated if they conflict, which is a slow very memory
12273 # consuming and fragmenting process. To avoid this, we pick a random,
12274 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12275 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12276 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12277 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'
12278 ;;
12279
12280 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12281 tmp_diet=no
12282 if test linux-dietlibc = "$host_os"; then
12283 case $cc_basename in
12284 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12285 esac
12286 fi
12287 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12288 && test no = "$tmp_diet"
12289 then
12290 tmp_addflag=' $pic_flag'
12291 tmp_sharedflag='-shared'
12292 case $cc_basename,$host_cpu in
12293 pgcc*) # Portland Group C compiler
12294 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'
12295 tmp_addflag=' $pic_flag'
12296 ;;
12297 pgf77* | pgf90* | pgf95* | pgfortran*)
12298 # Portland Group f77 and f90 compilers
12299 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'
12300 tmp_addflag=' $pic_flag -Mnomain' ;;
12301 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12302 tmp_addflag=' -i_dynamic' ;;
12303 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12304 tmp_addflag=' -i_dynamic -nofor_main' ;;
12305 ifc* | ifort*) # Intel Fortran compiler
12306 tmp_addflag=' -nofor_main' ;;
12307 lf95*) # Lahey Fortran 8.1
12308 whole_archive_flag_spec=
12309 tmp_sharedflag='--shared' ;;
12310 nagfor*) # NAGFOR 5.3
12311 tmp_sharedflag='-Wl,-shared' ;;
12312 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12313 tmp_sharedflag='-qmkshrobj'
12314 tmp_addflag= ;;
12315 nvcc*) # Cuda Compiler Driver 2.2
12316 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'
12317 compiler_needs_object=yes
12318 ;;
12319 esac
12320 case `$CC -V 2>&1 | sed 5q` in
12321 *Sun\ C*) # Sun C 5.9
12322 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'
12323 compiler_needs_object=yes
12324 tmp_sharedflag='-G' ;;
12325 *Sun\ F*) # Sun Fortran 8.3
12326 tmp_sharedflag='-G' ;;
12327 esac
12328 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12329
12330 if test yes = "$supports_anon_versioning"; then
12331 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12333 echo "local: *; };" >> $output_objdir/$libname.ver~
12334 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12335 fi
12336
12337 case $cc_basename in
12338 tcc*)
12339 export_dynamic_flag_spec='-rdynamic'
12340 ;;
12341 xlf* | bgf* | bgxlf* | mpixlf*)
12342 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12343 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12344 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12345 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12346 if test yes = "$supports_anon_versioning"; then
12347 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12349 echo "local: *; };" >> $output_objdir/$libname.ver~
12350 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12351 fi
12352 ;;
12353 esac
12354 else
12355 ld_shlibs=no
12356 fi
12357 ;;
12358
12359 netbsd* | netbsdelf*-gnu)
12360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12361 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12362 wlarc=
12363 else
12364 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12365 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12366 fi
12367 ;;
12368
12369 solaris*)
12370 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12371 ld_shlibs=no
12372 cat <<_LT_EOF 1>&2
12373
12374*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12375*** create shared libraries on Solaris systems. Therefore, libtool
12376*** is disabling shared libraries support. We urge you to upgrade GNU
12377*** binutils to release 2.9.1 or newer. Another option is to modify
12378*** your PATH or compiler configuration so that the native linker is
12379*** used, and then restart.
12380
12381_LT_EOF
12382 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12383 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12384 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12385 else
12386 ld_shlibs=no
12387 fi
12388 ;;
12389
12390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12391 case `$LD -v 2>&1` in
12392 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12393 ld_shlibs=no
12394 cat <<_LT_EOF 1>&2
12395
12396*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12397*** reliably create shared libraries on SCO systems. Therefore, libtool
12398*** is disabling shared libraries support. We urge you to upgrade GNU
12399*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12400*** your PATH or compiler configuration so that the native linker is
12401*** used, and then restart.
12402
12403_LT_EOF
12404 ;;
12405 *)
12406 # For security reasons, it is highly recommended that you always
12407 # use absolute paths for naming shared libraries, and exclude the
12408 # DT_RUNPATH tag from executables and libraries. But doing so
12409 # requires that you compile everything twice, which is a pain.
12410 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12411 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12414 else
12415 ld_shlibs=no
12416 fi
12417 ;;
12418 esac
12419 ;;
12420
12421 sunos4*)
12422 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12423 wlarc=
12424 hardcode_direct=yes
12425 hardcode_shlibpath_var=no
12426 ;;
12427
12428 *)
12429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12430 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12431 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12432 else
12433 ld_shlibs=no
12434 fi
12435 ;;
12436 esac
12437
12438 if test no = "$ld_shlibs"; then
12439 runpath_var=
12440 hardcode_libdir_flag_spec=
12441 export_dynamic_flag_spec=
12442 whole_archive_flag_spec=
12443 fi
12444 else
12445 # PORTME fill in a description of your system's linker (not GNU ld)
12446 case $host_os in
12447 aix3*)
12448 allow_undefined_flag=unsupported
12449 always_export_symbols=yes
12450 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'
12451 # Note: this linker hardcodes the directories in LIBPATH if there
12452 # are no directories specified by -L.
12453 hardcode_minus_L=yes
12454 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12455 # Neither direct hardcoding nor static linking is supported with a
12456 # broken collect2.
12457 hardcode_direct=unsupported
12458 fi
12459 ;;
12460
12461 aix[4-9]*)
12462 if test ia64 = "$host_cpu"; then
12463 # On IA64, the linker does run time linking by default, so we don't
12464 # have to do anything special.
12465 aix_use_runtimelinking=no
12466 exp_sym_flag='-Bexport'
12467 no_entry_flag=
12468 else
12469 # If we're using GNU nm, then we don't want the "-C" option.
12470 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12471 # Without the "-l" option, or with the "-B" option, AIX nm treats
12472 # weak defined symbols like other global defined symbols, whereas
12473 # GNU nm marks them as "W".
12474 # While the 'weak' keyword is ignored in the Export File, we need
12475 # it in the Import File for the 'aix-soname' feature, so we have
12476 # to replace the "-B" option with "-P" for AIX nm.
12477 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12478 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'
12479 else
12480 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'
12481 fi
12482 aix_use_runtimelinking=no
12483
12484 # Test if we are trying to use run time linking or normal
12485 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12486 # have runtime linking enabled, and use it for executables.
12487 # For shared libraries, we enable/disable runtime linking
12488 # depending on the kind of the shared library created -
12489 # when "with_aix_soname,aix_use_runtimelinking" is:
12490 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12491 # "aix,yes" lib.so shared, rtl:yes, for executables
12492 # lib.a static archive
12493 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12494 # lib.a(lib.so.V) shared, rtl:no, for executables
12495 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12496 # lib.a(lib.so.V) shared, rtl:no
12497 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12498 # lib.a static archive
12499 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12500 for ld_flag in $LDFLAGS; do
12501 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12502 aix_use_runtimelinking=yes
12503 break
12504 fi
12505 done
12506 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12507 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12508 # so we don't have lib.a shared libs to link our executables.
12509 # We have to force runtime linking in this case.
12510 aix_use_runtimelinking=yes
12511 LDFLAGS="$LDFLAGS -Wl,-brtl"
12512 fi
12513 ;;
12514 esac
12515
12516 exp_sym_flag='-bexport'
12517 no_entry_flag='-bnoentry'
12518 fi
12519
12520 # When large executables or shared objects are built, AIX ld can
12521 # have problems creating the table of contents. If linking a library
12522 # or program results in "error TOC overflow" add -mminimal-toc to
12523 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12524 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12525
12526 archive_cmds=''
12527 hardcode_direct=yes
12528 hardcode_direct_absolute=yes
12529 hardcode_libdir_separator=':'
12530 link_all_deplibs=yes
12531 file_list_spec='$wl-f,'
12532 case $with_aix_soname,$aix_use_runtimelinking in
12533 aix,*) ;; # traditional, no import file
12534 svr4,* | *,yes) # use import file
12535 # The Import File defines what to hardcode.
12536 hardcode_direct=no
12537 hardcode_direct_absolute=no
12538 ;;
12539 esac
12540
12541 if test yes = "$GCC"; then
12542 case $host_os in aix4.[012]|aix4.[012].*)
12543 # We only want to do this on AIX 4.2 and lower, the check
12544 # below for broken collect2 doesn't work under 4.3+
12545 collect2name=`$CC -print-prog-name=collect2`
12546 if test -f "$collect2name" &&
12547 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12548 then
12549 # We have reworked collect2
12550 :
12551 else
12552 # We have old collect2
12553 hardcode_direct=unsupported
12554 # It fails to find uninstalled libraries when the uninstalled
12555 # path is not listed in the libpath. Setting hardcode_minus_L
12556 # to unsupported forces relinking
12557 hardcode_minus_L=yes
12558 hardcode_libdir_flag_spec='-L$libdir'
12559 hardcode_libdir_separator=
12560 fi
12561 ;;
12562 esac
12563 shared_flag='-shared'
12564 if test yes = "$aix_use_runtimelinking"; then
12565 shared_flag="$shared_flag "'$wl-G'
12566 fi
12567 # Need to ensure runtime linking is disabled for the traditional
12568 # shared library, or the linker may eventually find shared libraries
12569 # /with/ Import File - we do not want to mix them.
12570 shared_flag_aix='-shared'
12571 shared_flag_svr4='-shared $wl-G'
12572 else
12573 # not using gcc
12574 if test ia64 = "$host_cpu"; then
12575 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12576 # chokes on -Wl,-G. The following line is correct:
12577 shared_flag='-G'
12578 else
12579 if test yes = "$aix_use_runtimelinking"; then
12580 shared_flag='$wl-G'
12581 else
12582 shared_flag='$wl-bM:SRE'
12583 fi
12584 shared_flag_aix='$wl-bM:SRE'
12585 shared_flag_svr4='$wl-G'
12586 fi
12587 fi
12588
12589 export_dynamic_flag_spec='$wl-bexpall'
12590 # It seems that -bexpall does not export symbols beginning with
12591 # underscore (_), so it is better to generate a list of symbols to export.
12592 always_export_symbols=yes
12593 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12594 # Warning - without using the other runtime loading flags (-brtl),
12595 # -berok will link without error, but may produce a broken library.
12596 allow_undefined_flag='-berok'
12597 # Determine the default libpath from the value encoded in an
12598 # empty executable.
12599 if test set = "${lt_cv_aix_libpath+set}"; then
12600 aix_libpath=$lt_cv_aix_libpath
12601else
12602 if ${lt_cv_aix_libpath_+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604else
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606/* end confdefs.h. */
12607
12608int
12609main ()
12610{
12611
12612 ;
12613 return 0;
12614}
12615_ACEOF
12616if ac_fn_c_try_link "$LINENO"; then :
12617
12618 lt_aix_libpath_sed='
12619 /Import File Strings/,/^$/ {
12620 /^0/ {
12621 s/^0 *\([^ ]*\) *$/\1/
12622 p
12623 }
12624 }'
12625 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12626 # Check for a 64-bit object if we didn't find anything.
12627 if test -z "$lt_cv_aix_libpath_"; then
12628 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629 fi
12630fi
12631rm -f core conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633 if test -z "$lt_cv_aix_libpath_"; then
12634 lt_cv_aix_libpath_=/usr/lib:/lib
12635 fi
12636
12637fi
12638
12639 aix_libpath=$lt_cv_aix_libpath_
12640fi
12641
12642 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12643 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
12644 else
12645 if test ia64 = "$host_cpu"; then
12646 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12647 allow_undefined_flag="-z nodefs"
12648 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"
12649 else
12650 # Determine the default libpath from the value encoded in an
12651 # empty executable.
12652 if test set = "${lt_cv_aix_libpath+set}"; then
12653 aix_libpath=$lt_cv_aix_libpath
12654else
12655 if ${lt_cv_aix_libpath_+:} false; then :
12656 $as_echo_n "(cached) " >&6
12657else
12658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659/* end confdefs.h. */
12660
12661int
12662main ()
12663{
12664
12665 ;
12666 return 0;
12667}
12668_ACEOF
12669if ac_fn_c_try_link "$LINENO"; then :
12670
12671 lt_aix_libpath_sed='
12672 /Import File Strings/,/^$/ {
12673 /^0/ {
12674 s/^0 *\([^ ]*\) *$/\1/
12675 p
12676 }
12677 }'
12678 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12679 # Check for a 64-bit object if we didn't find anything.
12680 if test -z "$lt_cv_aix_libpath_"; then
12681 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12682 fi
12683fi
12684rm -f core conftest.err conftest.$ac_objext \
12685 conftest$ac_exeext conftest.$ac_ext
12686 if test -z "$lt_cv_aix_libpath_"; then
12687 lt_cv_aix_libpath_=/usr/lib:/lib
12688 fi
12689
12690fi
12691
12692 aix_libpath=$lt_cv_aix_libpath_
12693fi
12694
12695 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12696 # Warning - without using the other run time loading flags,
12697 # -berok will link without error, but may produce a broken library.
12698 no_undefined_flag=' $wl-bernotok'
12699 allow_undefined_flag=' $wl-berok'
12700 if test yes = "$with_gnu_ld"; then
12701 # We only use this code for GNU lds that support --whole-archive.
12702 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12703 else
12704 # Exported symbols can be pulled into shared objects from archives
12705 whole_archive_flag_spec='$convenience'
12706 fi
12707 archive_cmds_need_lc=yes
12708 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12709 # -brtl affects multiple linker settings, -berok does not and is overridden later
12710 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12711 if test svr4 != "$with_aix_soname"; then
12712 # This is similar to how AIX traditionally builds its shared libraries.
12713 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'
12714 fi
12715 if test aix != "$with_aix_soname"; then
12716 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'
12717 else
12718 # used by -dlpreopen to get the symbols
12719 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12720 fi
12721 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12722 fi
12723 fi
12724 ;;
12725
12726 amigaos*)
12727 case $host_cpu in
12728 powerpc)
12729 # see comment about AmigaOS4 .so support
12730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12731 archive_expsym_cmds=''
12732 ;;
12733 m68k)
12734 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)'
12735 hardcode_libdir_flag_spec='-L$libdir'
12736 hardcode_minus_L=yes
12737 ;;
12738 esac
12739 ;;
12740
12741 bsdi[45]*)
12742 export_dynamic_flag_spec=-rdynamic
12743 ;;
12744
12745 cygwin* | mingw* | pw32* | cegcc*)
12746 # When not using gcc, we currently assume that we are using
12747 # Microsoft Visual C++.
12748 # hardcode_libdir_flag_spec is actually meaningless, as there is
12749 # no search path for DLLs.
12750 case $cc_basename in
12751 cl*)
12752 # Native MSVC
12753 hardcode_libdir_flag_spec=' '
12754 allow_undefined_flag=unsupported
12755 always_export_symbols=yes
12756 file_list_spec='@'
12757 # Tell ltmain to make .lib files, not .a files.
12758 libext=lib
12759 # Tell ltmain to make .dll files, not .so files.
12760 shrext_cmds=.dll
12761 # FIXME: Setting linknames here is a bad hack.
12762 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12763 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12764 cp "$export_symbols" "$output_objdir/$soname.def";
12765 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12766 else
12767 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12768 fi~
12769 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12770 linknames='
12771 # The linker will not automatically build a static lib if we build a DLL.
12772 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12773 enable_shared_with_static_runtimes=yes
12774 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12775 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12776 # Don't use ranlib
12777 old_postinstall_cmds='chmod 644 $oldlib'
12778 postlink_cmds='lt_outputfile="@OUTPUT@"~
12779 lt_tool_outputfile="@TOOL_OUTPUT@"~
12780 case $lt_outputfile in
12781 *.exe|*.EXE) ;;
12782 *)
12783 lt_outputfile=$lt_outputfile.exe
12784 lt_tool_outputfile=$lt_tool_outputfile.exe
12785 ;;
12786 esac~
12787 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12788 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12789 $RM "$lt_outputfile.manifest";
12790 fi'
12791 ;;
12792 *)
12793 # Assume MSVC wrapper
12794 hardcode_libdir_flag_spec=' '
12795 allow_undefined_flag=unsupported
12796 # Tell ltmain to make .lib files, not .a files.
12797 libext=lib
12798 # Tell ltmain to make .dll files, not .so files.
12799 shrext_cmds=.dll
12800 # FIXME: Setting linknames here is a bad hack.
12801 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12802 # The linker will automatically build a .lib file if we build a DLL.
12803 old_archive_from_new_cmds='true'
12804 # FIXME: Should let the user specify the lib program.
12805 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12806 enable_shared_with_static_runtimes=yes
12807 ;;
12808 esac
12809 ;;
12810
12811 darwin* | rhapsody*)
12812
12813
12814 archive_cmds_need_lc=no
12815 hardcode_direct=no
12816 hardcode_automatic=yes
12817 hardcode_shlibpath_var=unsupported
12818 if test yes = "$lt_cv_ld_force_load"; then
12819 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\"`'
12820
12821 else
12822 whole_archive_flag_spec=''
12823 fi
12824 link_all_deplibs=yes
12825 allow_undefined_flag=$_lt_dar_allow_undefined
12826 case $cc_basename in
12827 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12828 *) _lt_dar_can_shared=$GCC ;;
12829 esac
12830 if test yes = "$_lt_dar_can_shared"; then
12831 output_verbose_link_cmd=func_echo_all
12832 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12833 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12834 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"
12835 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"
12836
12837 else
12838 ld_shlibs=no
12839 fi
12840
12841 ;;
12842
12843 dgux*)
12844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12845 hardcode_libdir_flag_spec='-L$libdir'
12846 hardcode_shlibpath_var=no
12847 ;;
12848
12849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12850 # support. Future versions do this automatically, but an explicit c++rt0.o
12851 # does not break anything, and helps significantly (at the cost of a little
12852 # extra space).
12853 freebsd2.2*)
12854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12855 hardcode_libdir_flag_spec='-R$libdir'
12856 hardcode_direct=yes
12857 hardcode_shlibpath_var=no
12858 ;;
12859
12860 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12861 freebsd2.*)
12862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12863 hardcode_direct=yes
12864 hardcode_minus_L=yes
12865 hardcode_shlibpath_var=no
12866 ;;
12867
12868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12869 freebsd* | dragonfly*)
12870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12871 hardcode_libdir_flag_spec='-R$libdir'
12872 hardcode_direct=yes
12873 hardcode_shlibpath_var=no
12874 ;;
12875
12876 hpux9*)
12877 if test yes = "$GCC"; then
12878 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'
12879 else
12880 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'
12881 fi
12882 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12883 hardcode_libdir_separator=:
12884 hardcode_direct=yes
12885
12886 # hardcode_minus_L: Not really in the search PATH,
12887 # but as the default location of the library.
12888 hardcode_minus_L=yes
12889 export_dynamic_flag_spec='$wl-E'
12890 ;;
12891
12892 hpux10*)
12893 if test yes,no = "$GCC,$with_gnu_ld"; then
12894 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12895 else
12896 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12897 fi
12898 if test no = "$with_gnu_ld"; then
12899 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12900 hardcode_libdir_separator=:
12901 hardcode_direct=yes
12902 hardcode_direct_absolute=yes
12903 export_dynamic_flag_spec='$wl-E'
12904 # hardcode_minus_L: Not really in the search PATH,
12905 # but as the default location of the library.
12906 hardcode_minus_L=yes
12907 fi
12908 ;;
12909
12910 hpux11*)
12911 if test yes,no = "$GCC,$with_gnu_ld"; then
12912 case $host_cpu in
12913 hppa*64*)
12914 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12915 ;;
12916 ia64*)
12917 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12918 ;;
12919 *)
12920 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12921 ;;
12922 esac
12923 else
12924 case $host_cpu in
12925 hppa*64*)
12926 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12927 ;;
12928 ia64*)
12929 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12930 ;;
12931 *)
12932
12933 # Older versions of the 11.00 compiler do not understand -b yet
12934 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12936$as_echo_n "checking if $CC understands -b... " >&6; }
12937if ${lt_cv_prog_compiler__b+:} false; then :
12938 $as_echo_n "(cached) " >&6
12939else
12940 lt_cv_prog_compiler__b=no
12941 save_LDFLAGS=$LDFLAGS
12942 LDFLAGS="$LDFLAGS -b"
12943 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12945 # The linker can only warn and ignore the option if not recognized
12946 # So say no if there are warnings
12947 if test -s conftest.err; then
12948 # Append any errors to the config.log.
12949 cat conftest.err 1>&5
12950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12952 if diff conftest.exp conftest.er2 >/dev/null; then
12953 lt_cv_prog_compiler__b=yes
12954 fi
12955 else
12956 lt_cv_prog_compiler__b=yes
12957 fi
12958 fi
12959 $RM -r conftest*
12960 LDFLAGS=$save_LDFLAGS
12961
12962fi
12963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12964$as_echo "$lt_cv_prog_compiler__b" >&6; }
12965
12966if test yes = "$lt_cv_prog_compiler__b"; then
12967 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12968else
12969 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12970fi
12971
12972 ;;
12973 esac
12974 fi
12975 if test no = "$with_gnu_ld"; then
12976 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12977 hardcode_libdir_separator=:
12978
12979 case $host_cpu in
12980 hppa*64*|ia64*)
12981 hardcode_direct=no
12982 hardcode_shlibpath_var=no
12983 ;;
12984 *)
12985 hardcode_direct=yes
12986 hardcode_direct_absolute=yes
12987 export_dynamic_flag_spec='$wl-E'
12988
12989 # hardcode_minus_L: Not really in the search PATH,
12990 # but as the default location of the library.
12991 hardcode_minus_L=yes
12992 ;;
12993 esac
12994 fi
12995 ;;
12996
12997 irix5* | irix6* | nonstopux*)
12998 if test yes = "$GCC"; then
12999 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'
13000 # Try to use the -exported_symbol ld option, if it does not
13001 # work, assume that -exports_file does not work either and
13002 # implicitly export all symbols.
13003 # This should be the same for all languages, so no per-tag cache variable.
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13005$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13006if ${lt_cv_irix_exported_symbol+:} false; then :
13007 $as_echo_n "(cached) " >&6
13008else
13009 save_LDFLAGS=$LDFLAGS
13010 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012/* end confdefs.h. */
13013int foo (void) { return 0; }
13014_ACEOF
13015if ac_fn_c_try_link "$LINENO"; then :
13016 lt_cv_irix_exported_symbol=yes
13017else
13018 lt_cv_irix_exported_symbol=no
13019fi
13020rm -f core conftest.err conftest.$ac_objext \
13021 conftest$ac_exeext conftest.$ac_ext
13022 LDFLAGS=$save_LDFLAGS
13023fi
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13025$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13026 if test yes = "$lt_cv_irix_exported_symbol"; then
13027 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'
13028 fi
13029 link_all_deplibs=no
13030 else
13031 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'
13032 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'
13033 fi
13034 archive_cmds_need_lc='no'
13035 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13036 hardcode_libdir_separator=:
13037 inherit_rpath=yes
13038 link_all_deplibs=yes
13039 ;;
13040
13041 linux*)
13042 case $cc_basename in
13043 tcc*)
13044 # Fabrice Bellard et al's Tiny C Compiler
13045 ld_shlibs=yes
13046 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13047 ;;
13048 esac
13049 ;;
13050
13051 netbsd* | netbsdelf*-gnu)
13052 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13054 else
13055 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13056 fi
13057 hardcode_libdir_flag_spec='-R$libdir'
13058 hardcode_direct=yes
13059 hardcode_shlibpath_var=no
13060 ;;
13061
13062 newsos6)
13063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13064 hardcode_direct=yes
13065 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13066 hardcode_libdir_separator=:
13067 hardcode_shlibpath_var=no
13068 ;;
13069
13070 *nto* | *qnx*)
13071 ;;
13072
13073 openbsd* | bitrig*)
13074 if test -f /usr/libexec/ld.so; then
13075 hardcode_direct=yes
13076 hardcode_shlibpath_var=no
13077 hardcode_direct_absolute=yes
13078 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13079 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13080 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13081 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13082 export_dynamic_flag_spec='$wl-E'
13083 else
13084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13085 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13086 fi
13087 else
13088 ld_shlibs=no
13089 fi
13090 ;;
13091
13092 os2*)
13093 hardcode_libdir_flag_spec='-L$libdir'
13094 hardcode_minus_L=yes
13095 allow_undefined_flag=unsupported
13096 shrext_cmds=.dll
13097 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13098 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13099 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13100 $ECHO EXPORTS >> $output_objdir/$libname.def~
13101 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13102 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13103 emximp -o $lib $output_objdir/$libname.def'
13104 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13105 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13106 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13107 $ECHO EXPORTS >> $output_objdir/$libname.def~
13108 prefix_cmds="$SED"~
13109 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13110 prefix_cmds="$prefix_cmds -e 1d";
13111 fi~
13112 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13113 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13114 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13115 emximp -o $lib $output_objdir/$libname.def'
13116 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13117 enable_shared_with_static_runtimes=yes
13118 ;;
13119
13120 osf3*)
13121 if test yes = "$GCC"; then
13122 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13123 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'
13124 else
13125 allow_undefined_flag=' -expect_unresolved \*'
13126 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'
13127 fi
13128 archive_cmds_need_lc='no'
13129 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13130 hardcode_libdir_separator=:
13131 ;;
13132
13133 osf4* | osf5*) # as osf3* with the addition of -msym flag
13134 if test yes = "$GCC"; then
13135 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13136 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'
13137 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13138 else
13139 allow_undefined_flag=' -expect_unresolved \*'
13140 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'
13141 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~
13142 $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'
13143
13144 # Both c and cxx compiler support -rpath directly
13145 hardcode_libdir_flag_spec='-rpath $libdir'
13146 fi
13147 archive_cmds_need_lc='no'
13148 hardcode_libdir_separator=:
13149 ;;
13150
13151 solaris*)
13152 no_undefined_flag=' -z defs'
13153 if test yes = "$GCC"; then
13154 wlarc='$wl'
13155 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13156 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13157 $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'
13158 else
13159 case `$CC -V 2>&1` in
13160 *"Compilers 5.0"*)
13161 wlarc=''
13162 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13163 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13164 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13165 ;;
13166 *)
13167 wlarc='$wl'
13168 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13170 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13171 ;;
13172 esac
13173 fi
13174 hardcode_libdir_flag_spec='-R$libdir'
13175 hardcode_shlibpath_var=no
13176 case $host_os in
13177 solaris2.[0-5] | solaris2.[0-5].*) ;;
13178 *)
13179 # The compiler driver will combine and reorder linker options,
13180 # but understands '-z linker_flag'. GCC discards it without '$wl',
13181 # but is careful enough not to reorder.
13182 # Supported since Solaris 2.6 (maybe 2.5.1?)
13183 if test yes = "$GCC"; then
13184 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13185 else
13186 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13187 fi
13188 ;;
13189 esac
13190 link_all_deplibs=yes
13191 ;;
13192
13193 sunos4*)
13194 if test sequent = "$host_vendor"; then
13195 # Use $CC to link under sequent, because it throws in some extra .o
13196 # files that make .init and .fini sections work.
13197 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13198 else
13199 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13200 fi
13201 hardcode_libdir_flag_spec='-L$libdir'
13202 hardcode_direct=yes
13203 hardcode_minus_L=yes
13204 hardcode_shlibpath_var=no
13205 ;;
13206
13207 sysv4)
13208 case $host_vendor in
13209 sni)
13210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13211 hardcode_direct=yes # is this really true???
13212 ;;
13213 siemens)
13214 ## LD is ld it makes a PLAMLIB
13215 ## CC just makes a GrossModule.
13216 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13217 reload_cmds='$CC -r -o $output$reload_objs'
13218 hardcode_direct=no
13219 ;;
13220 motorola)
13221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13222 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13223 ;;
13224 esac
13225 runpath_var='LD_RUN_PATH'
13226 hardcode_shlibpath_var=no
13227 ;;
13228
13229 sysv4.3*)
13230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13231 hardcode_shlibpath_var=no
13232 export_dynamic_flag_spec='-Bexport'
13233 ;;
13234
13235 sysv4*MP*)
13236 if test -d /usr/nec; then
13237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13238 hardcode_shlibpath_var=no
13239 runpath_var=LD_RUN_PATH
13240 hardcode_runpath_var=yes
13241 ld_shlibs=yes
13242 fi
13243 ;;
13244
13245 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13246 no_undefined_flag='$wl-z,text'
13247 archive_cmds_need_lc=no
13248 hardcode_shlibpath_var=no
13249 runpath_var='LD_RUN_PATH'
13250
13251 if test yes = "$GCC"; then
13252 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13253 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13254 else
13255 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13256 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13257 fi
13258 ;;
13259
13260 sysv5* | sco3.2v5* | sco5v6*)
13261 # Note: We CANNOT use -z defs as we might desire, because we do not
13262 # link with -lc, and that would cause any symbols used from libc to
13263 # always be unresolved, which means just about no library would
13264 # ever link correctly. If we're not using GNU ld we use -z text
13265 # though, which does catch some bad symbols but isn't as heavy-handed
13266 # as -z defs.
13267 no_undefined_flag='$wl-z,text'
13268 allow_undefined_flag='$wl-z,nodefs'
13269 archive_cmds_need_lc=no
13270 hardcode_shlibpath_var=no
13271 hardcode_libdir_flag_spec='$wl-R,$libdir'
13272 hardcode_libdir_separator=':'
13273 link_all_deplibs=yes
13274 export_dynamic_flag_spec='$wl-Bexport'
13275 runpath_var='LD_RUN_PATH'
13276
13277 if test yes = "$GCC"; then
13278 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13279 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13280 else
13281 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13282 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13283 fi
13284 ;;
13285
13286 uts4*)
13287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13288 hardcode_libdir_flag_spec='-L$libdir'
13289 hardcode_shlibpath_var=no
13290 ;;
13291
13292 *)
13293 ld_shlibs=no
13294 ;;
13295 esac
13296
13297 if test sni = "$host_vendor"; then
13298 case $host in
13299 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13300 export_dynamic_flag_spec='$wl-Blargedynsym'
13301 ;;
13302 esac
13303 fi
13304 fi
13305
13306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13307$as_echo "$ld_shlibs" >&6; }
13308test no = "$ld_shlibs" && can_build_shared=no
13309
13310with_gnu_ld=$with_gnu_ld
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326#
13327# Do we need to explicitly link libc?
13328#
13329case "x$archive_cmds_need_lc" in
13330x|xyes)
13331 # Assume -lc should be added
13332 archive_cmds_need_lc=yes
13333
13334 if test yes,yes = "$GCC,$enable_shared"; then
13335 case $archive_cmds in
13336 *'~'*)
13337 # FIXME: we may have to deal with multi-command sequences.
13338 ;;
13339 '$CC '*)
13340 # Test whether the compiler implicitly links with -lc since on some
13341 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13342 # to ld, don't add -lc before -lgcc.
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13344$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13345if ${lt_cv_archive_cmds_need_lc+:} false; then :
13346 $as_echo_n "(cached) " >&6
13347else
13348 $RM conftest*
13349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13350
13351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13352 (eval $ac_compile) 2>&5
13353 ac_status=$?
13354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13355 test $ac_status = 0; } 2>conftest.err; then
13356 soname=conftest
13357 lib=conftest
13358 libobjs=conftest.$ac_objext
13359 deplibs=
13360 wl=$lt_prog_compiler_wl
13361 pic_flag=$lt_prog_compiler_pic
13362 compiler_flags=-v
13363 linker_flags=-v
13364 verstring=
13365 output_objdir=.
13366 libname=conftest
13367 lt_save_allow_undefined_flag=$allow_undefined_flag
13368 allow_undefined_flag=
13369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13370 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13371 ac_status=$?
13372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13373 test $ac_status = 0; }
13374 then
13375 lt_cv_archive_cmds_need_lc=no
13376 else
13377 lt_cv_archive_cmds_need_lc=yes
13378 fi
13379 allow_undefined_flag=$lt_save_allow_undefined_flag
13380 else
13381 cat conftest.err 1>&5
13382 fi
13383 $RM conftest*
13384
13385fi
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13387$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13388 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13389 ;;
13390 esac
13391 fi
13392 ;;
13393esac
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13547$as_echo_n "checking dynamic linker characteristics... " >&6; }
13548
13549if test yes = "$GCC"; then
13550 case $host_os in
13551 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13552 *) lt_awk_arg='/^libraries:/' ;;
13553 esac
13554 case $host_os in
13555 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13556 *) lt_sed_strip_eq='s|=/|/|g' ;;
13557 esac
13558 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13559 case $lt_search_path_spec in
13560 *\;*)
13561 # if the path contains ";" then we assume it to be the separator
13562 # otherwise default to the standard path separator (i.e. ":") - it is
13563 # assumed that no part of a normal pathname contains ";" but that should
13564 # okay in the real world where ";" in dirpaths is itself problematic.
13565 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13566 ;;
13567 *)
13568 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13569 ;;
13570 esac
13571 # Ok, now we have the path, separated by spaces, we can step through it
13572 # and add multilib dir if necessary...
13573 lt_tmp_lt_search_path_spec=
13574 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13575 # ...but if some path component already ends with the multilib dir we assume
13576 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13577 case "$lt_multi_os_dir; $lt_search_path_spec " in
13578 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13579 lt_multi_os_dir=
13580 ;;
13581 esac
13582 for lt_sys_path in $lt_search_path_spec; do
13583 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13584 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13585 elif test -n "$lt_multi_os_dir"; then
13586 test -d "$lt_sys_path" && \
13587 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13588 fi
13589 done
13590 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13591BEGIN {RS = " "; FS = "/|\n";} {
13592 lt_foo = "";
13593 lt_count = 0;
13594 for (lt_i = NF; lt_i > 0; lt_i--) {
13595 if ($lt_i != "" && $lt_i != ".") {
13596 if ($lt_i == "..") {
13597 lt_count++;
13598 } else {
13599 if (lt_count == 0) {
13600 lt_foo = "/" $lt_i lt_foo;
13601 } else {
13602 lt_count--;
13603 }
13604 }
13605 }
13606 }
13607 if (lt_foo != "") { lt_freq[lt_foo]++; }
13608 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13609}'`
13610 # AWK program above erroneously prepends '/' to C:/dos/paths
13611 # for these hosts.
13612 case $host_os in
13613 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13614 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13615 esac
13616 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13617else
13618 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13619fi
13620library_names_spec=
13621libname_spec='lib$name'
13622soname_spec=
13623shrext_cmds=.so
13624postinstall_cmds=
13625postuninstall_cmds=
13626finish_cmds=
13627finish_eval=
13628shlibpath_var=
13629shlibpath_overrides_runpath=unknown
13630version_type=none
13631dynamic_linker="$host_os ld.so"
13632sys_lib_dlsearch_path_spec="/lib /usr/lib"
13633need_lib_prefix=unknown
13634hardcode_into_libs=no
13635
13636# when you set need_version to no, make sure it does not cause -set_version
13637# flags to be left without arguments
13638need_version=unknown
13639
13640
13641
13642case $host_os in
13643aix3*)
13644 version_type=linux # correct to gnu/linux during the next big refactor
13645 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13646 shlibpath_var=LIBPATH
13647
13648 # AIX 3 has no versioning support, so we append a major version to the name.
13649 soname_spec='$libname$release$shared_ext$major'
13650 ;;
13651
13652aix[4-9]*)
13653 version_type=linux # correct to gnu/linux during the next big refactor
13654 need_lib_prefix=no
13655 need_version=no
13656 hardcode_into_libs=yes
13657 if test ia64 = "$host_cpu"; then
13658 # AIX 5 supports IA64
13659 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13660 shlibpath_var=LD_LIBRARY_PATH
13661 else
13662 # With GCC up to 2.95.x, collect2 would create an import file
13663 # for dependence libraries. The import file would start with
13664 # the line '#! .'. This would cause the generated library to
13665 # depend on '.', always an invalid library. This was fixed in
13666 # development snapshots of GCC prior to 3.0.
13667 case $host_os in
13668 aix4 | aix4.[01] | aix4.[01].*)
13669 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13670 echo ' yes '
13671 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13672 :
13673 else
13674 can_build_shared=no
13675 fi
13676 ;;
13677 esac
13678 # Using Import Files as archive members, it is possible to support
13679 # filename-based versioning of shared library archives on AIX. While
13680 # this would work for both with and without runtime linking, it will
13681 # prevent static linking of such archives. So we do filename-based
13682 # shared library versioning with .so extension only, which is used
13683 # when both runtime linking and shared linking is enabled.
13684 # Unfortunately, runtime linking may impact performance, so we do
13685 # not want this to be the default eventually. Also, we use the
13686 # versioned .so libs for executables only if there is the -brtl
13687 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13688 # To allow for filename-based versioning support, we need to create
13689 # libNAME.so.V as an archive file, containing:
13690 # *) an Import File, referring to the versioned filename of the
13691 # archive as well as the shared archive member, telling the
13692 # bitwidth (32 or 64) of that shared object, and providing the
13693 # list of exported symbols of that shared object, eventually
13694 # decorated with the 'weak' keyword
13695 # *) the shared object with the F_LOADONLY flag set, to really avoid
13696 # it being seen by the linker.
13697 # At run time we better use the real file rather than another symlink,
13698 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13699
13700 case $with_aix_soname,$aix_use_runtimelinking in
13701 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13702 # soname into executable. Probably we can add versioning support to
13703 # collect2, so additional links can be useful in future.
13704 aix,yes) # traditional libtool
13705 dynamic_linker='AIX unversionable lib.so'
13706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13707 # instead of lib<name>.a to let people know that these are not
13708 # typical AIX shared libraries.
13709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13710 ;;
13711 aix,no) # traditional AIX only
13712 dynamic_linker='AIX lib.a(lib.so.V)'
13713 # We preserve .a as extension for shared libraries through AIX4.2
13714 # and later when we are not doing run time linking.
13715 library_names_spec='$libname$release.a $libname.a'
13716 soname_spec='$libname$release$shared_ext$major'
13717 ;;
13718 svr4,*) # full svr4 only
13719 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13720 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13721 # We do not specify a path in Import Files, so LIBPATH fires.
13722 shlibpath_overrides_runpath=yes
13723 ;;
13724 *,yes) # both, prefer svr4
13725 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13726 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13727 # unpreferred sharedlib libNAME.a needs extra handling
13728 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"'
13729 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"'
13730 # We do not specify a path in Import Files, so LIBPATH fires.
13731 shlibpath_overrides_runpath=yes
13732 ;;
13733 *,no) # both, prefer aix
13734 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13735 library_names_spec='$libname$release.a $libname.a'
13736 soname_spec='$libname$release$shared_ext$major'
13737 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13738 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)'
13739 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"'
13740 ;;
13741 esac
13742 shlibpath_var=LIBPATH
13743 fi
13744 ;;
13745
13746amigaos*)
13747 case $host_cpu in
13748 powerpc)
13749 # Since July 2007 AmigaOS4 officially supports .so libraries.
13750 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13752 ;;
13753 m68k)
13754 library_names_spec='$libname.ixlibrary $libname.a'
13755 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13756 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'
13757 ;;
13758 esac
13759 ;;
13760
13761beos*)
13762 library_names_spec='$libname$shared_ext'
13763 dynamic_linker="$host_os ld.so"
13764 shlibpath_var=LIBRARY_PATH
13765 ;;
13766
13767bsdi[45]*)
13768 version_type=linux # correct to gnu/linux during the next big refactor
13769 need_version=no
13770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13771 soname_spec='$libname$release$shared_ext$major'
13772 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13773 shlibpath_var=LD_LIBRARY_PATH
13774 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13775 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13776 # the default ld.so.conf also contains /usr/contrib/lib and
13777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13778 # libtool to hard-code these into programs
13779 ;;
13780
13781cygwin* | mingw* | pw32* | cegcc*)
13782 version_type=windows
13783 shrext_cmds=.dll
13784 need_version=no
13785 need_lib_prefix=no
13786
13787 case $GCC,$cc_basename in
13788 yes,*)
13789 # gcc
13790 library_names_spec='$libname.dll.a'
13791 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13792 postinstall_cmds='base_file=`basename \$file`~
13793 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13794 dldir=$destdir/`dirname \$dlpath`~
13795 test -d \$dldir || mkdir -p \$dldir~
13796 $install_prog $dir/$dlname \$dldir/$dlname~
13797 chmod a+x \$dldir/$dlname~
13798 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13799 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13800 fi'
13801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13802 dlpath=$dir/\$dldll~
13803 $RM \$dlpath'
13804 shlibpath_overrides_runpath=yes
13805
13806 case $host_os in
13807 cygwin*)
13808 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13809 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13810
13811 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13812 ;;
13813 mingw* | cegcc*)
13814 # MinGW DLLs use traditional 'lib' prefix
13815 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13816 ;;
13817 pw32*)
13818 # pw32 DLLs use 'pw' prefix rather than 'lib'
13819 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13820 ;;
13821 esac
13822 dynamic_linker='Win32 ld.exe'
13823 ;;
13824
13825 *,cl*)
13826 # Native MSVC
13827 libname_spec='$name'
13828 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13829 library_names_spec='$libname.dll.lib'
13830
13831 case $build_os in
13832 mingw*)
13833 sys_lib_search_path_spec=
13834 lt_save_ifs=$IFS
13835 IFS=';'
13836 for lt_path in $LIB
13837 do
13838 IFS=$lt_save_ifs
13839 # Let DOS variable expansion print the short 8.3 style file name.
13840 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13841 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13842 done
13843 IFS=$lt_save_ifs
13844 # Convert to MSYS style.
13845 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13846 ;;
13847 cygwin*)
13848 # Convert to unix form, then to dos form, then back to unix form
13849 # but this time dos style (no spaces!) so that the unix form looks
13850 # like /cygdrive/c/PROGRA~1:/cygdr...
13851 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13852 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13853 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13854 ;;
13855 *)
13856 sys_lib_search_path_spec=$LIB
13857 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13858 # It is most probably a Windows format PATH.
13859 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13860 else
13861 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13862 fi
13863 # FIXME: find the short name or the path components, as spaces are
13864 # common. (e.g. "Program Files" -> "PROGRA~1")
13865 ;;
13866 esac
13867
13868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13869 postinstall_cmds='base_file=`basename \$file`~
13870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13871 dldir=$destdir/`dirname \$dlpath`~
13872 test -d \$dldir || mkdir -p \$dldir~
13873 $install_prog $dir/$dlname \$dldir/$dlname'
13874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13875 dlpath=$dir/\$dldll~
13876 $RM \$dlpath'
13877 shlibpath_overrides_runpath=yes
13878 dynamic_linker='Win32 link.exe'
13879 ;;
13880
13881 *)
13882 # Assume MSVC wrapper
13883 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13884 dynamic_linker='Win32 ld.exe'
13885 ;;
13886 esac
13887 # FIXME: first we should search . and the directory the executable is in
13888 shlibpath_var=PATH
13889 ;;
13890
13891darwin* | rhapsody*)
13892 dynamic_linker="$host_os dyld"
13893 version_type=darwin
13894 need_lib_prefix=no
13895 need_version=no
13896 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13897 soname_spec='$libname$release$major$shared_ext'
13898 shlibpath_overrides_runpath=yes
13899 shlibpath_var=DYLD_LIBRARY_PATH
13900 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13901
13902 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13903 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13904 ;;
13905
13906dgux*)
13907 version_type=linux # correct to gnu/linux during the next big refactor
13908 need_lib_prefix=no
13909 need_version=no
13910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13911 soname_spec='$libname$release$shared_ext$major'
13912 shlibpath_var=LD_LIBRARY_PATH
13913 ;;
13914
13915freebsd* | dragonfly*)
13916 # DragonFly does not have aout. When/if they implement a new
13917 # versioning mechanism, adjust this.
13918 if test -x /usr/bin/objformat; then
13919 objformat=`/usr/bin/objformat`
13920 else
13921 case $host_os in
13922 freebsd[23].*) objformat=aout ;;
13923 *) objformat=elf ;;
13924 esac
13925 fi
13926 version_type=freebsd-$objformat
13927 case $version_type in
13928 freebsd-elf*)
13929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13930 soname_spec='$libname$release$shared_ext$major'
13931 need_version=no
13932 need_lib_prefix=no
13933 ;;
13934 freebsd-*)
13935 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13936 need_version=yes
13937 ;;
13938 esac
13939 shlibpath_var=LD_LIBRARY_PATH
13940 case $host_os in
13941 freebsd2.*)
13942 shlibpath_overrides_runpath=yes
13943 ;;
13944 freebsd3.[01]* | freebsdelf3.[01]*)
13945 shlibpath_overrides_runpath=yes
13946 hardcode_into_libs=yes
13947 ;;
13948 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13949 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13950 shlibpath_overrides_runpath=no
13951 hardcode_into_libs=yes
13952 ;;
13953 *) # from 4.6 on, and DragonFly
13954 shlibpath_overrides_runpath=yes
13955 hardcode_into_libs=yes
13956 ;;
13957 esac
13958 ;;
13959
13960haiku*)
13961 version_type=linux # correct to gnu/linux during the next big refactor
13962 need_lib_prefix=no
13963 need_version=no
13964 dynamic_linker="$host_os runtime_loader"
13965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13966 soname_spec='$libname$release$shared_ext$major'
13967 shlibpath_var=LIBRARY_PATH
13968 shlibpath_overrides_runpath=no
13969 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13970 hardcode_into_libs=yes
13971 ;;
13972
13973hpux9* | hpux10* | hpux11*)
13974 # Give a soname corresponding to the major version so that dld.sl refuses to
13975 # link against other versions.
13976 version_type=sunos
13977 need_lib_prefix=no
13978 need_version=no
13979 case $host_cpu in
13980 ia64*)
13981 shrext_cmds='.so'
13982 hardcode_into_libs=yes
13983 dynamic_linker="$host_os dld.so"
13984 shlibpath_var=LD_LIBRARY_PATH
13985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13987 soname_spec='$libname$release$shared_ext$major'
13988 if test 32 = "$HPUX_IA64_MODE"; then
13989 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13990 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13991 else
13992 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13993 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13994 fi
13995 ;;
13996 hppa*64*)
13997 shrext_cmds='.sl'
13998 hardcode_into_libs=yes
13999 dynamic_linker="$host_os dld.sl"
14000 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14003 soname_spec='$libname$release$shared_ext$major'
14004 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14006 ;;
14007 *)
14008 shrext_cmds='.sl'
14009 dynamic_linker="$host_os dld.sl"
14010 shlibpath_var=SHLIB_PATH
14011 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14013 soname_spec='$libname$release$shared_ext$major'
14014 ;;
14015 esac
14016 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14017 postinstall_cmds='chmod 555 $lib'
14018 # or fails outright, so override atomically:
14019 install_override_mode=555
14020 ;;
14021
14022interix[3-9]*)
14023 version_type=linux # correct to gnu/linux during the next big refactor
14024 need_lib_prefix=no
14025 need_version=no
14026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14027 soname_spec='$libname$release$shared_ext$major'
14028 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14029 shlibpath_var=LD_LIBRARY_PATH
14030 shlibpath_overrides_runpath=no
14031 hardcode_into_libs=yes
14032 ;;
14033
14034irix5* | irix6* | nonstopux*)
14035 case $host_os in
14036 nonstopux*) version_type=nonstopux ;;
14037 *)
14038 if test yes = "$lt_cv_prog_gnu_ld"; then
14039 version_type=linux # correct to gnu/linux during the next big refactor
14040 else
14041 version_type=irix
14042 fi ;;
14043 esac
14044 need_lib_prefix=no
14045 need_version=no
14046 soname_spec='$libname$release$shared_ext$major'
14047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14048 case $host_os in
14049 irix5* | nonstopux*)
14050 libsuff= shlibsuff=
14051 ;;
14052 *)
14053 case $LD in # libtool.m4 will add one of these switches to LD
14054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14055 libsuff= shlibsuff= libmagic=32-bit;;
14056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14057 libsuff=32 shlibsuff=N32 libmagic=N32;;
14058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14060 *) libsuff= shlibsuff= libmagic=never-match;;
14061 esac
14062 ;;
14063 esac
14064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14065 shlibpath_overrides_runpath=no
14066 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14067 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14068 hardcode_into_libs=yes
14069 ;;
14070
14071# No shared lib support for Linux oldld, aout, or coff.
14072linux*oldld* | linux*aout* | linux*coff*)
14073 dynamic_linker=no
14074 ;;
14075
14076linux*android*)
14077 version_type=none # Android doesn't support versioned libraries.
14078 need_lib_prefix=no
14079 need_version=no
14080 library_names_spec='$libname$release$shared_ext'
14081 soname_spec='$libname$release$shared_ext'
14082 finish_cmds=
14083 shlibpath_var=LD_LIBRARY_PATH
14084 shlibpath_overrides_runpath=yes
14085
14086 # This implies no fast_install, which is unacceptable.
14087 # Some rework will be needed to allow for fast_install
14088 # before this can be enabled.
14089 hardcode_into_libs=yes
14090
14091 dynamic_linker='Android linker'
14092 # Don't embed -rpath directories since the linker doesn't support them.
14093 hardcode_libdir_flag_spec='-L$libdir'
14094 ;;
14095
14096# This must be glibc/ELF.
14097linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14098 version_type=linux # correct to gnu/linux during the next big refactor
14099 need_lib_prefix=no
14100 need_version=no
14101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14102 soname_spec='$libname$release$shared_ext$major'
14103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14104 shlibpath_var=LD_LIBRARY_PATH
14105 shlibpath_overrides_runpath=no
14106
14107 # Some binutils ld are patched to set DT_RUNPATH
14108 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14109 $as_echo_n "(cached) " >&6
14110else
14111 lt_cv_shlibpath_overrides_runpath=no
14112 save_LDFLAGS=$LDFLAGS
14113 save_libdir=$libdir
14114 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14115 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117/* end confdefs.h. */
14118
14119int
14120main ()
14121{
14122
14123 ;
14124 return 0;
14125}
14126_ACEOF
14127if ac_fn_c_try_link "$LINENO"; then :
14128 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14129 lt_cv_shlibpath_overrides_runpath=yes
14130fi
14131fi
14132rm -f core conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
14134 LDFLAGS=$save_LDFLAGS
14135 libdir=$save_libdir
14136
14137fi
14138
14139 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14140
14141 # This implies no fast_install, which is unacceptable.
14142 # Some rework will be needed to allow for fast_install
14143 # before this can be enabled.
14144 hardcode_into_libs=yes
14145
14146 # Ideally, we could use ldconfig to report *all* directores which are
14147 # searched for libraries, however this is still not possible. Aside from not
14148 # being certain /sbin/ldconfig is available, command
14149 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14150 # even though it is searched at run-time. Try to do the best guess by
14151 # appending ld.so.conf contents (and includes) to the search path.
14152 if test -f /etc/ld.so.conf; then
14153 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' ' '`
14154 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14155 fi
14156
14157 # We used to test for /lib/ld.so.1 and disable shared libraries on
14158 # powerpc, because MkLinux only supported shared libraries with the
14159 # GNU dynamic linker. Since this was broken with cross compilers,
14160 # most powerpc-linux boxes support dynamic linking these days and
14161 # people can always --disable-shared, the test was removed, and we
14162 # assume the GNU/Linux dynamic linker is in use.
14163 dynamic_linker='GNU/Linux ld.so'
14164 ;;
14165
14166netbsdelf*-gnu)
14167 version_type=linux
14168 need_lib_prefix=no
14169 need_version=no
14170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14171 soname_spec='${libname}${release}${shared_ext}$major'
14172 shlibpath_var=LD_LIBRARY_PATH
14173 shlibpath_overrides_runpath=no
14174 hardcode_into_libs=yes
14175 dynamic_linker='NetBSD ld.elf_so'
14176 ;;
14177
14178netbsd*)
14179 version_type=sunos
14180 need_lib_prefix=no
14181 need_version=no
14182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14183 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14185 dynamic_linker='NetBSD (a.out) ld.so'
14186 else
14187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14188 soname_spec='$libname$release$shared_ext$major'
14189 dynamic_linker='NetBSD ld.elf_so'
14190 fi
14191 shlibpath_var=LD_LIBRARY_PATH
14192 shlibpath_overrides_runpath=yes
14193 hardcode_into_libs=yes
14194 ;;
14195
14196newsos6)
14197 version_type=linux # correct to gnu/linux during the next big refactor
14198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14199 shlibpath_var=LD_LIBRARY_PATH
14200 shlibpath_overrides_runpath=yes
14201 ;;
14202
14203*nto* | *qnx*)
14204 version_type=qnx
14205 need_lib_prefix=no
14206 need_version=no
14207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14208 soname_spec='$libname$release$shared_ext$major'
14209 shlibpath_var=LD_LIBRARY_PATH
14210 shlibpath_overrides_runpath=no
14211 hardcode_into_libs=yes
14212 dynamic_linker='ldqnx.so'
14213 ;;
14214
14215openbsd* | bitrig*)
14216 version_type=sunos
14217 sys_lib_dlsearch_path_spec=/usr/lib
14218 need_lib_prefix=no
14219 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14220 need_version=no
14221 else
14222 need_version=yes
14223 fi
14224 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14226 shlibpath_var=LD_LIBRARY_PATH
14227 shlibpath_overrides_runpath=yes
14228 ;;
14229
14230os2*)
14231 libname_spec='$name'
14232 version_type=windows
14233 shrext_cmds=.dll
14234 need_version=no
14235 need_lib_prefix=no
14236 # OS/2 can only load a DLL with a base name of 8 characters or less.
14237 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14238 v=$($ECHO $release$versuffix | tr -d .-);
14239 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14240 $ECHO $n$v`$shared_ext'
14241 library_names_spec='${libname}_dll.$libext'
14242 dynamic_linker='OS/2 ld.exe'
14243 shlibpath_var=BEGINLIBPATH
14244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14245 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14246 postinstall_cmds='base_file=`basename \$file`~
14247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14248 dldir=$destdir/`dirname \$dlpath`~
14249 test -d \$dldir || mkdir -p \$dldir~
14250 $install_prog $dir/$dlname \$dldir/$dlname~
14251 chmod a+x \$dldir/$dlname~
14252 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14253 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14254 fi'
14255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14256 dlpath=$dir/\$dldll~
14257 $RM \$dlpath'
14258 ;;
14259
14260osf3* | osf4* | osf5*)
14261 version_type=osf
14262 need_lib_prefix=no
14263 need_version=no
14264 soname_spec='$libname$release$shared_ext$major'
14265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14266 shlibpath_var=LD_LIBRARY_PATH
14267 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14269 ;;
14270
14271rdos*)
14272 dynamic_linker=no
14273 ;;
14274
14275solaris*)
14276 version_type=linux # correct to gnu/linux during the next big refactor
14277 need_lib_prefix=no
14278 need_version=no
14279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14280 soname_spec='$libname$release$shared_ext$major'
14281 shlibpath_var=LD_LIBRARY_PATH
14282 shlibpath_overrides_runpath=yes
14283 hardcode_into_libs=yes
14284 # ldd complains unless libraries are executable
14285 postinstall_cmds='chmod +x $lib'
14286 ;;
14287
14288sunos4*)
14289 version_type=sunos
14290 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14291 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14292 shlibpath_var=LD_LIBRARY_PATH
14293 shlibpath_overrides_runpath=yes
14294 if test yes = "$with_gnu_ld"; then
14295 need_lib_prefix=no
14296 fi
14297 need_version=yes
14298 ;;
14299
14300sysv4 | sysv4.3*)
14301 version_type=linux # correct to gnu/linux during the next big refactor
14302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14303 soname_spec='$libname$release$shared_ext$major'
14304 shlibpath_var=LD_LIBRARY_PATH
14305 case $host_vendor in
14306 sni)
14307 shlibpath_overrides_runpath=no
14308 need_lib_prefix=no
14309 runpath_var=LD_RUN_PATH
14310 ;;
14311 siemens)
14312 need_lib_prefix=no
14313 ;;
14314 motorola)
14315 need_lib_prefix=no
14316 need_version=no
14317 shlibpath_overrides_runpath=no
14318 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14319 ;;
14320 esac
14321 ;;
14322
14323sysv4*MP*)
14324 if test -d /usr/nec; then
14325 version_type=linux # correct to gnu/linux during the next big refactor
14326 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14327 soname_spec='$libname$shared_ext.$major'
14328 shlibpath_var=LD_LIBRARY_PATH
14329 fi
14330 ;;
14331
14332sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14333 version_type=sco
14334 need_lib_prefix=no
14335 need_version=no
14336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14337 soname_spec='$libname$release$shared_ext$major'
14338 shlibpath_var=LD_LIBRARY_PATH
14339 shlibpath_overrides_runpath=yes
14340 hardcode_into_libs=yes
14341 if test yes = "$with_gnu_ld"; then
14342 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14343 else
14344 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14345 case $host_os in
14346 sco3.2v5*)
14347 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14348 ;;
14349 esac
14350 fi
14351 sys_lib_dlsearch_path_spec='/usr/lib'
14352 ;;
14353
14354tpf*)
14355 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14356 version_type=linux # correct to gnu/linux during the next big refactor
14357 need_lib_prefix=no
14358 need_version=no
14359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14360 shlibpath_var=LD_LIBRARY_PATH
14361 shlibpath_overrides_runpath=no
14362 hardcode_into_libs=yes
14363 ;;
14364
14365uts4*)
14366 version_type=linux # correct to gnu/linux during the next big refactor
14367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14368 soname_spec='$libname$release$shared_ext$major'
14369 shlibpath_var=LD_LIBRARY_PATH
14370 ;;
14371
14372*)
14373 dynamic_linker=no
14374 ;;
14375esac
14376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14377$as_echo "$dynamic_linker" >&6; }
14378test no = "$dynamic_linker" && can_build_shared=no
14379
14380variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14381if test yes = "$GCC"; then
14382 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14383fi
14384
14385if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14386 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14387fi
14388
14389if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14390 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14391fi
14392
14393# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14394configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14395
14396# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14397func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14398
14399# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14400configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14499$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14500hardcode_action=
14501if test -n "$hardcode_libdir_flag_spec" ||
14502 test -n "$runpath_var" ||
14503 test yes = "$hardcode_automatic"; then
14504
14505 # We can hardcode non-existent directories.
14506 if test no != "$hardcode_direct" &&
14507 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14508 # have to relink, otherwise we might link with an installed library
14509 # when we should be linking with a yet-to-be-installed one
14510 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14511 test no != "$hardcode_minus_L"; then
14512 # Linking always hardcodes the temporary library directory.
14513 hardcode_action=relink
14514 else
14515 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14516 hardcode_action=immediate
14517 fi
14518else
14519 # We cannot hardcode anything, or else we can only hardcode existing
14520 # directories.
14521 hardcode_action=unsupported
14522fi
14523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14524$as_echo "$hardcode_action" >&6; }
14525
14526if test relink = "$hardcode_action" ||
14527 test yes = "$inherit_rpath"; then
14528 # Fast installation is not supported
14529 enable_fast_install=no
14530elif test yes = "$shlibpath_overrides_runpath" ||
14531 test no = "$enable_shared"; then
14532 # Fast installation is not necessary
14533 enable_fast_install=needless
14534fi
14535
14536
14537
14538
14539
14540
14541 if test yes != "$enable_dlopen"; then
14542 enable_dlopen=unknown
14543 enable_dlopen_self=unknown
14544 enable_dlopen_self_static=unknown
14545else
14546 lt_cv_dlopen=no
14547 lt_cv_dlopen_libs=
14548
14549 case $host_os in
14550 beos*)
14551 lt_cv_dlopen=load_add_on
14552 lt_cv_dlopen_libs=
14553 lt_cv_dlopen_self=yes
14554 ;;
14555
14556 mingw* | pw32* | cegcc*)
14557 lt_cv_dlopen=LoadLibrary
14558 lt_cv_dlopen_libs=
14559 ;;
14560
14561 cygwin*)
14562 lt_cv_dlopen=dlopen
14563 lt_cv_dlopen_libs=
14564 ;;
14565
14566 darwin*)
14567 # if libdl is installed we need to link against it
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14569$as_echo_n "checking for dlopen in -ldl... " >&6; }
14570if ${ac_cv_lib_dl_dlopen+:} false; then :
14571 $as_echo_n "(cached) " >&6
14572else
14573 ac_check_lib_save_LIBS=$LIBS
14574LIBS="-ldl $LIBS"
14575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576/* end confdefs.h. */
14577
14578/* Override any GCC internal prototype to avoid an error.
14579 Use char because int might match the return type of a GCC
14580 builtin and then its argument prototype would still apply. */
14581#ifdef __cplusplus
14582extern "C"
14583#endif
14584char dlopen ();
14585int
14586main ()
14587{
14588return dlopen ();
14589 ;
14590 return 0;
14591}
14592_ACEOF
14593if ac_fn_c_try_link "$LINENO"; then :
14594 ac_cv_lib_dl_dlopen=yes
14595else
14596 ac_cv_lib_dl_dlopen=no
14597fi
14598rm -f core conftest.err conftest.$ac_objext \
14599 conftest$ac_exeext conftest.$ac_ext
14600LIBS=$ac_check_lib_save_LIBS
14601fi
14602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14603$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14604if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14605 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14606else
14607
14608 lt_cv_dlopen=dyld
14609 lt_cv_dlopen_libs=
14610 lt_cv_dlopen_self=yes
14611
14612fi
14613
14614 ;;
14615
14616 tpf*)
14617 # Don't try to run any link tests for TPF. We know it's impossible
14618 # because TPF is a cross-compiler, and we know how we open DSOs.
14619 lt_cv_dlopen=dlopen
14620 lt_cv_dlopen_libs=
14621 lt_cv_dlopen_self=no
14622 ;;
14623
14624 *)
14625 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14626if test "x$ac_cv_func_shl_load" = xyes; then :
14627 lt_cv_dlopen=shl_load
14628else
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14630$as_echo_n "checking for shl_load in -ldld... " >&6; }
14631if ${ac_cv_lib_dld_shl_load+:} false; then :
14632 $as_echo_n "(cached) " >&6
14633else
14634 ac_check_lib_save_LIBS=$LIBS
14635LIBS="-ldld $LIBS"
14636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637/* end confdefs.h. */
14638
14639/* Override any GCC internal prototype to avoid an error.
14640 Use char because int might match the return type of a GCC
14641 builtin and then its argument prototype would still apply. */
14642#ifdef __cplusplus
14643extern "C"
14644#endif
14645char shl_load ();
14646int
14647main ()
14648{
14649return shl_load ();
14650 ;
14651 return 0;
14652}
14653_ACEOF
14654if ac_fn_c_try_link "$LINENO"; then :
14655 ac_cv_lib_dld_shl_load=yes
14656else
14657 ac_cv_lib_dld_shl_load=no
14658fi
14659rm -f core conftest.err conftest.$ac_objext \
14660 conftest$ac_exeext conftest.$ac_ext
14661LIBS=$ac_check_lib_save_LIBS
14662fi
14663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14664$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14665if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14666 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14667else
14668 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14669if test "x$ac_cv_func_dlopen" = xyes; then :
14670 lt_cv_dlopen=dlopen
14671else
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14673$as_echo_n "checking for dlopen in -ldl... " >&6; }
14674if ${ac_cv_lib_dl_dlopen+:} false; then :
14675 $as_echo_n "(cached) " >&6
14676else
14677 ac_check_lib_save_LIBS=$LIBS
14678LIBS="-ldl $LIBS"
14679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680/* end confdefs.h. */
14681
14682/* Override any GCC internal prototype to avoid an error.
14683 Use char because int might match the return type of a GCC
14684 builtin and then its argument prototype would still apply. */
14685#ifdef __cplusplus
14686extern "C"
14687#endif
14688char dlopen ();
14689int
14690main ()
14691{
14692return dlopen ();
14693 ;
14694 return 0;
14695}
14696_ACEOF
14697if ac_fn_c_try_link "$LINENO"; then :
14698 ac_cv_lib_dl_dlopen=yes
14699else
14700 ac_cv_lib_dl_dlopen=no
14701fi
14702rm -f core conftest.err conftest.$ac_objext \
14703 conftest$ac_exeext conftest.$ac_ext
14704LIBS=$ac_check_lib_save_LIBS
14705fi
14706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14707$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14708if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14709 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14710else
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14712$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14713if ${ac_cv_lib_svld_dlopen+:} false; then :
14714 $as_echo_n "(cached) " >&6
14715else
14716 ac_check_lib_save_LIBS=$LIBS
14717LIBS="-lsvld $LIBS"
14718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719/* end confdefs.h. */
14720
14721/* Override any GCC internal prototype to avoid an error.
14722 Use char because int might match the return type of a GCC
14723 builtin and then its argument prototype would still apply. */
14724#ifdef __cplusplus
14725extern "C"
14726#endif
14727char dlopen ();
14728int
14729main ()
14730{
14731return dlopen ();
14732 ;
14733 return 0;
14734}
14735_ACEOF
14736if ac_fn_c_try_link "$LINENO"; then :
14737 ac_cv_lib_svld_dlopen=yes
14738else
14739 ac_cv_lib_svld_dlopen=no
14740fi
14741rm -f core conftest.err conftest.$ac_objext \
14742 conftest$ac_exeext conftest.$ac_ext
14743LIBS=$ac_check_lib_save_LIBS
14744fi
14745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14746$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14747if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14748 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14749else
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14751$as_echo_n "checking for dld_link in -ldld... " >&6; }
14752if ${ac_cv_lib_dld_dld_link+:} false; then :
14753 $as_echo_n "(cached) " >&6
14754else
14755 ac_check_lib_save_LIBS=$LIBS
14756LIBS="-ldld $LIBS"
14757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758/* end confdefs.h. */
14759
14760/* Override any GCC internal prototype to avoid an error.
14761 Use char because int might match the return type of a GCC
14762 builtin and then its argument prototype would still apply. */
14763#ifdef __cplusplus
14764extern "C"
14765#endif
14766char dld_link ();
14767int
14768main ()
14769{
14770return dld_link ();
14771 ;
14772 return 0;
14773}
14774_ACEOF
14775if ac_fn_c_try_link "$LINENO"; then :
14776 ac_cv_lib_dld_dld_link=yes
14777else
14778 ac_cv_lib_dld_dld_link=no
14779fi
14780rm -f core conftest.err conftest.$ac_objext \
14781 conftest$ac_exeext conftest.$ac_ext
14782LIBS=$ac_check_lib_save_LIBS
14783fi
14784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14785$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14786if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14787 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14788fi
14789
14790
14791fi
14792
14793
14794fi
14795
14796
14797fi
14798
14799
14800fi
14801
14802
14803fi
14804
14805 ;;
14806 esac
14807
14808 if test no = "$lt_cv_dlopen"; then
14809 enable_dlopen=no
14810 else
14811 enable_dlopen=yes
14812 fi
14813
14814 case $lt_cv_dlopen in
14815 dlopen)
14816 save_CPPFLAGS=$CPPFLAGS
14817 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14818
14819 save_LDFLAGS=$LDFLAGS
14820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14821
14822 save_LIBS=$LIBS
14823 LIBS="$lt_cv_dlopen_libs $LIBS"
14824
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14826$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14827if ${lt_cv_dlopen_self+:} false; then :
14828 $as_echo_n "(cached) " >&6
14829else
14830 if test yes = "$cross_compiling"; then :
14831 lt_cv_dlopen_self=cross
14832else
14833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14834 lt_status=$lt_dlunknown
14835 cat > conftest.$ac_ext <<_LT_EOF
14836#line $LINENO "configure"
14837#include "confdefs.h"
14838
14839#if HAVE_DLFCN_H
14840#include <dlfcn.h>
14841#endif
14842
14843#include <stdio.h>
14844
14845#ifdef RTLD_GLOBAL
14846# define LT_DLGLOBAL RTLD_GLOBAL
14847#else
14848# ifdef DL_GLOBAL
14849# define LT_DLGLOBAL DL_GLOBAL
14850# else
14851# define LT_DLGLOBAL 0
14852# endif
14853#endif
14854
14855/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14856 find out it does not work in some platform. */
14857#ifndef LT_DLLAZY_OR_NOW
14858# ifdef RTLD_LAZY
14859# define LT_DLLAZY_OR_NOW RTLD_LAZY
14860# else
14861# ifdef DL_LAZY
14862# define LT_DLLAZY_OR_NOW DL_LAZY
14863# else
14864# ifdef RTLD_NOW
14865# define LT_DLLAZY_OR_NOW RTLD_NOW
14866# else
14867# ifdef DL_NOW
14868# define LT_DLLAZY_OR_NOW DL_NOW
14869# else
14870# define LT_DLLAZY_OR_NOW 0
14871# endif
14872# endif
14873# endif
14874# endif
14875#endif
14876
14877/* When -fvisibility=hidden is used, assume the code has been annotated
14878 correspondingly for the symbols needed. */
14879#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14880int fnord () __attribute__((visibility("default")));
14881#endif
14882
14883int fnord () { return 42; }
14884int main ()
14885{
14886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14887 int status = $lt_dlunknown;
14888
14889 if (self)
14890 {
14891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14892 else
14893 {
14894 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14895 else puts (dlerror ());
14896 }
14897 /* dlclose (self); */
14898 }
14899 else
14900 puts (dlerror ());
14901
14902 return status;
14903}
14904_LT_EOF
14905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14906 (eval $ac_link) 2>&5
14907 ac_status=$?
14908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14909 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14910 (./conftest; exit; ) >&5 2>/dev/null
14911 lt_status=$?
14912 case x$lt_status in
14913 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14914 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14915 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14916 esac
14917 else :
14918 # compilation failed
14919 lt_cv_dlopen_self=no
14920 fi
14921fi
14922rm -fr conftest*
14923
14924
14925fi
14926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14927$as_echo "$lt_cv_dlopen_self" >&6; }
14928
14929 if test yes = "$lt_cv_dlopen_self"; then
14930 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14932$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14933if ${lt_cv_dlopen_self_static+:} false; then :
14934 $as_echo_n "(cached) " >&6
14935else
14936 if test yes = "$cross_compiling"; then :
14937 lt_cv_dlopen_self_static=cross
14938else
14939 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14940 lt_status=$lt_dlunknown
14941 cat > conftest.$ac_ext <<_LT_EOF
14942#line $LINENO "configure"
14943#include "confdefs.h"
14944
14945#if HAVE_DLFCN_H
14946#include <dlfcn.h>
14947#endif
14948
14949#include <stdio.h>
14950
14951#ifdef RTLD_GLOBAL
14952# define LT_DLGLOBAL RTLD_GLOBAL
14953#else
14954# ifdef DL_GLOBAL
14955# define LT_DLGLOBAL DL_GLOBAL
14956# else
14957# define LT_DLGLOBAL 0
14958# endif
14959#endif
14960
14961/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14962 find out it does not work in some platform. */
14963#ifndef LT_DLLAZY_OR_NOW
14964# ifdef RTLD_LAZY
14965# define LT_DLLAZY_OR_NOW RTLD_LAZY
14966# else
14967# ifdef DL_LAZY
14968# define LT_DLLAZY_OR_NOW DL_LAZY
14969# else
14970# ifdef RTLD_NOW
14971# define LT_DLLAZY_OR_NOW RTLD_NOW
14972# else
14973# ifdef DL_NOW
14974# define LT_DLLAZY_OR_NOW DL_NOW
14975# else
14976# define LT_DLLAZY_OR_NOW 0
14977# endif
14978# endif
14979# endif
14980# endif
14981#endif
14982
14983/* When -fvisibility=hidden is used, assume the code has been annotated
14984 correspondingly for the symbols needed. */
14985#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14986int fnord () __attribute__((visibility("default")));
14987#endif
14988
14989int fnord () { return 42; }
14990int main ()
14991{
14992 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14993 int status = $lt_dlunknown;
14994
14995 if (self)
14996 {
14997 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14998 else
14999 {
15000 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15001 else puts (dlerror ());
15002 }
15003 /* dlclose (self); */
15004 }
15005 else
15006 puts (dlerror ());
15007
15008 return status;
15009}
15010_LT_EOF
15011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15012 (eval $ac_link) 2>&5
15013 ac_status=$?
15014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15015 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15016 (./conftest; exit; ) >&5 2>/dev/null
15017 lt_status=$?
15018 case x$lt_status in
15019 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15020 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15021 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15022 esac
15023 else :
15024 # compilation failed
15025 lt_cv_dlopen_self_static=no
15026 fi
15027fi
15028rm -fr conftest*
15029
15030
15031fi
15032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15033$as_echo "$lt_cv_dlopen_self_static" >&6; }
15034 fi
15035
15036 CPPFLAGS=$save_CPPFLAGS
15037 LDFLAGS=$save_LDFLAGS
15038 LIBS=$save_LIBS
15039 ;;
15040 esac
15041
15042 case $lt_cv_dlopen_self in
15043 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15044 *) enable_dlopen_self=unknown ;;
15045 esac
15046
15047 case $lt_cv_dlopen_self_static in
15048 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15049 *) enable_dlopen_self_static=unknown ;;
15050 esac
15051fi
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069striplib=
15070old_striplib=
15071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15072$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15073if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15074 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15075 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15077$as_echo "yes" >&6; }
15078else
15079# FIXME - insert some real tests, host_os isn't really good enough
15080 case $host_os in
15081 darwin*)
15082 if test -n "$STRIP"; then
15083 striplib="$STRIP -x"
15084 old_striplib="$STRIP -S"
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15086$as_echo "yes" >&6; }
15087 else
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15089$as_echo "no" >&6; }
15090 fi
15091 ;;
15092 *)
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15094$as_echo "no" >&6; }
15095 ;;
15096 esac
15097fi
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110 # Report what library types will actually be built
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15112$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15114$as_echo "$can_build_shared" >&6; }
15115
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15117$as_echo_n "checking whether to build shared libraries... " >&6; }
15118 test no = "$can_build_shared" && enable_shared=no
15119
15120 # On AIX, shared libraries and static libraries use the same namespace, and
15121 # are all built from PIC.
15122 case $host_os in
15123 aix3*)
15124 test yes = "$enable_shared" && enable_static=no
15125 if test -n "$RANLIB"; then
15126 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15127 postinstall_cmds='$RANLIB $lib'
15128 fi
15129 ;;
15130
15131 aix[4-9]*)
15132 if test ia64 != "$host_cpu"; then
15133 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15134 yes,aix,yes) ;; # shared object as lib.so file only
15135 yes,svr4,*) ;; # shared object as lib.so archive member only
15136 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15137 esac
15138 fi
15139 ;;
15140 esac
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15142$as_echo "$enable_shared" >&6; }
15143
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15145$as_echo_n "checking whether to build static libraries... " >&6; }
15146 # Make sure either enable_shared or enable_static is yes.
15147 test yes = "$enable_shared" || enable_static=yes
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15149$as_echo "$enable_static" >&6; }
15150
15151
15152
15153
15154fi
15155ac_ext=c
15156ac_cpp='$CPP $CPPFLAGS'
15157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15159ac_compiler_gnu=$ac_cv_c_compiler_gnu
15160
15161CC=$lt_save_CC
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177 ac_config_commands="$ac_config_commands libtool"
15178
15179
15180
15181
15182# Only expand once:
15183
15184
15185
15186
15187 if test "$enable_shared" = "yes" && test -z "$DPKG_DEVEL_MODE"; then :
15188
15189 as_fn_error $? "building libdpkg as a shared library is not supported" "$LINENO" 5
15190
15191fi
15192 if test "$enable_shared" = "yes"; then
15193 BUILD_SHARED_TRUE=
15194 BUILD_SHARED_FALSE='#'
15195else
15196 BUILD_SHARED_TRUE='#'
15197 BUILD_SHARED_FALSE=
15198fi
15199
15200
15201
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --as-needed linker flag" >&5
15203$as_echo_n "checking for --as-needed linker flag... " >&6; }
15204if ${dpkg_cv_linker_as_needed+:} false; then :
15205 $as_echo_n "(cached) " >&6
15206else
15207
15208 save_LDFLAGS=$LDFLAGS
15209 LDFLAGS="$LDFLAGS -Wl,--as-needed"
15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211/* end confdefs.h. */
15212
15213
15214int
15215main ()
15216{
15217
15218 ;
15219 return 0;
15220}
15221
15222_ACEOF
15223if ac_fn_c_try_link "$LINENO"; then :
15224
15225 dpkg_cv_linker_as_needed=yes
15226
15227else
15228
15229 dpkg_cv_linker_as_needed=no
15230
15231fi
15232rm -f core conftest.err conftest.$ac_objext \
15233 conftest$ac_exeext conftest.$ac_ext
15234 LDFLAGS="$save_LDFLAGS"
15235
15236fi
15237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_linker_as_needed" >&5
15238$as_echo "$dpkg_cv_linker_as_needed" >&6; }
15239 if test "x$dpkg_cv_linker_as_needed" = "xyes"; then
15240 HAVE_LINKER_AS_NEEDED_TRUE=
15241 HAVE_LINKER_AS_NEEDED_FALSE='#'
15242else
15243 HAVE_LINKER_AS_NEEDED_TRUE='#'
15244 HAVE_LINKER_AS_NEEDED_FALSE=
15245fi
15246
15247
15248
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --version-script linker flag" >&5
15250$as_echo_n "checking for --version-script linker flag... " >&6; }
15251if ${dpkg_cv_version_script+:} false; then :
15252 $as_echo_n "(cached) " >&6
15253else
15254
15255 echo "{ global: symbol; local: *; };" >conftest.map
15256 save_LDFLAGS=$LDFLAGS
15257 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259/* end confdefs.h. */
15260
15261
15262int
15263main ()
15264{
15265
15266 ;
15267 return 0;
15268}
15269
15270_ACEOF
15271if ac_fn_c_try_link "$LINENO"; then :
15272
15273 dpkg_cv_version_script=yes
15274
15275else
15276
15277 dpkg_cv_version_script=no
15278
15279fi
15280rm -f core conftest.err conftest.$ac_objext \
15281 conftest$ac_exeext conftest.$ac_ext
15282 LDFLAGS="$save_LDFLAGS"
15283 rm -f conftest.map
15284
15285fi
15286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_version_script" >&5
15287$as_echo "$dpkg_cv_version_script" >&6; }
15288 if test "x$dpkg_cv_version_script" = "xyes"; then
15289 HAVE_LINKER_VERSION_SCRIPT_TRUE=
15290 HAVE_LINKER_VERSION_SCRIPT_FALSE='#'
15291else
15292 HAVE_LINKER_VERSION_SCRIPT_TRUE='#'
15293 HAVE_LINKER_VERSION_SCRIPT_FALSE=
15294fi
15295
15296
15297
15298# Allow compilation without optional programs
15299
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build dselect" >&5
15301$as_echo_n "checking whether to build dselect... " >&6; }
15302 # Check whether --enable-dselect was given.
15303if test "${enable_dselect+set}" = set; then :
15304 enableval=$enable_dselect; build_dselect=$enable_dselect
15305else
15306 build_dselect=yes
15307fi
15308
15309 if test "x$build_dselect" = "xyes"; then
15310 BUILD_DSELECT_TRUE=
15311 BUILD_DSELECT_FALSE='#'
15312else
15313 BUILD_DSELECT_TRUE='#'
15314 BUILD_DSELECT_FALSE=
15315fi
15316
15317 if test "x$build_dselect" = "xyes"; then :
15318
15319
15320$as_echo "#define BUILD_DSELECT 1" >>confdefs.h
15321
15322
15323else
15324
15325 $as_echo "#define BUILD_DSELECT 0" >>confdefs.h
15326
15327
15328fi
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_dselect" >&5
15330$as_echo "$build_dselect" >&6; }
15331
15332
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build start-stop-daemon" >&5
15334$as_echo_n "checking whether to build start-stop-daemon... " >&6; }
15335 # Check whether --enable-start-stop-daemon was given.
15336if test "${enable_start_stop_daemon+set}" = set; then :
15337 enableval=$enable_start_stop_daemon; build_start_stop_daemon=$enable_start_stop_daemon
15338else
15339 build_start_stop_daemon=yes
15340fi
15341
15342 if test "x$build_start_stop_daemon" = "xyes"; then
15343 BUILD_START_STOP_DAEMON_TRUE=
15344 BUILD_START_STOP_DAEMON_FALSE='#'
15345else
15346 BUILD_START_STOP_DAEMON_TRUE='#'
15347 BUILD_START_STOP_DAEMON_FALSE=
15348fi
15349
15350 if test "x$build_start_stop_daemon" = "xyes"; then :
15351
15352
15353$as_echo "#define BUILD_START_STOP_DAEMON 1" >>confdefs.h
15354
15355
15356else
15357
15358 $as_echo "#define BUILD_START_STOP_DAEMON 0" >>confdefs.h
15359
15360
15361fi
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_start_stop_daemon" >&5
15363$as_echo "$build_start_stop_daemon" >&6; }
15364
15365
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build update-alternatives" >&5
15367$as_echo_n "checking whether to build update-alternatives... " >&6; }
15368 # Check whether --enable-update-alternatives was given.
15369if test "${enable_update_alternatives+set}" = set; then :
15370 enableval=$enable_update_alternatives; build_update_alternatives=$enable_update_alternatives
15371else
15372 build_update_alternatives=yes
15373fi
15374
15375 if test "x$build_update_alternatives" = "xyes"; then
15376 BUILD_UPDATE_ALTERNATIVES_TRUE=
15377 BUILD_UPDATE_ALTERNATIVES_FALSE='#'
15378else
15379 BUILD_UPDATE_ALTERNATIVES_TRUE='#'
15380 BUILD_UPDATE_ALTERNATIVES_FALSE=
15381fi
15382
15383 if test "x$build_update_alternatives" = "xyes"; then :
15384
15385
15386$as_echo "#define BUILD_UPDATE_ALTERNATIVES 1" >>confdefs.h
15387
15388
15389else
15390
15391 $as_echo "#define BUILD_UPDATE_ALTERNATIVES 0" >>confdefs.h
15392
15393
15394fi
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_update_alternatives" >&5
15396$as_echo "$build_update_alternatives" >&6; }
15397
15398
15399
15400
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.14.2" >&5
15402$as_echo_n "checking for perl >= 5.14.2... " >&6; }
15403if ${ac_cv_path_PERL+:} false; then :
15404 $as_echo_n "(cached) " >&6
15405else
15406
15407 if test -z "$PERL"; then
15408 ac_path_PERL_found=false
15409 # Loop through the user's path and test for each of PROGNAME-LIST
15410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15411for as_dir in $PATH
15412do
15413 IFS=$as_save_IFS
15414 test -z "$as_dir" && as_dir=.
15415 for ac_prog in perl; do
15416 for ac_exec_ext in '' $ac_executable_extensions; do
15417 ac_path_PERL="$as_dir/$ac_prog$ac_exec_ext"
15418 as_fn_executable_p "$ac_path_PERL" || continue
15419
15420 perlcheck=$(test -x $ac_path_PERL && \
15421 $ac_path_PERL -MConfig -Mversion -e \
15422 'my $r = qv("v$Config{version}") >= qv("5.14.2");
15423 print "yes" if $r')
15424 if test "x$perlcheck" = "xyes"; then :
15425
15426 ac_cv_path_PERL=$ac_path_PERL ac_path_PERL_found=:
15427
15428fi
15429
15430 $ac_path_PERL_found && break 3
15431 done
15432 done
15433 done
15434IFS=$as_save_IFS
15435 if test -z "$ac_cv_path_PERL"; then
15436
15437 as_fn_error $? "cannot find perl >= 5.14.2" "$LINENO" 5
15438
15439 fi
15440else
15441 ac_cv_path_PERL=$PERL
15442fi
15443
15444
15445fi
15446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
15447$as_echo "$ac_cv_path_PERL" >&6; }
15448 PERL=$ac_cv_path_PERL
15449
15450 # Let the user override the variable.
15451 if test -z "$PERL_LIBDIR"; then :
15452
15453 PERL_LIBDIR=$($PERL -MConfig -e \
15454 'my $r = $Config{vendorlibexp};
15455 $r =~ s/$Config{vendorprefixexp}/\$(prefix)/;
15456 print $r')
15457
15458fi
15459
15460
15461
15462 TIMESTAMP=$(PERL=$PERL $srcdir/run-script scripts/dpkg-parsechangelog.pl -l$srcdir/debian/changelog -STimestamp)
15463 PACKAGE_RELEASE_DATE=$($PERL -MPOSIX -e "print POSIX::strftime('%Y-%m-%d', gmtime('$TIMESTAMP'));")
15464
15465
15466
15467 # Check whether --enable-devel-docs was given.
15468if test "${enable_devel_docs+set}" = set; then :
15469 enableval=$enable_devel_docs; build_devel_docs=$enable_devel_docs
15470else
15471 build_devel_docs=yes
15472
15473fi
15474
15475 if test "x$build_devel_docs" = "xyes"; then :
15476
15477 BUILD_DEVEL_DOCS=YES
15478
15479
15480else
15481
15482 BUILD_DEVEL_DOCS=NO
15483
15484
15485fi
15486
15487
15488# Allow alternate directories
15489
15490 devlibdir="${libdir}"
15491
15492# Check whether --with-devlibdir was given.
15493if test "${with_devlibdir+set}" = set; then :
15494 withval=$with_devlibdir;
15495 case $with_devlibdir in #(
15496 "") :
15497 as_fn_error $? "invalid devlibdir specified" "$LINENO" 5 ;; #(
15498 *) :
15499 devlibdir="$with_devlibdir" ;;
15500esac
15501
15502fi
15503
15504
15505
15506
15507 pkgconfdir="${sysconfdir}/${PACKAGE_NAME}"
15508
15509# Check whether --with-pkgconfdir was given.
15510if test "${with_pkgconfdir+set}" = set; then :
15511 withval=$with_pkgconfdir;
15512 case $with_pkgconfdir in #(
15513 "") :
15514 as_fn_error $? "invalid pkgconfdir specified" "$LINENO" 5 ;; #(
15515 *) :
15516 pkgconfdir="$with_pkgconfdir" ;;
15517esac
15518
15519fi
15520
15521
15522
15523
15524 admindir="${localstatedir}/lib/${PACKAGE_NAME}"
15525
15526# Check whether --with-admindir was given.
15527if test "${with_admindir+set}" = set; then :
15528 withval=$with_admindir;
15529 case $with_admindir in #(
15530 "") :
15531 as_fn_error $? "invalid admindir specified" "$LINENO" 5 ;; #(
15532 *) :
15533 admindir="$with_admindir" ;;
15534esac
15535
15536fi
15537
15538
15539
15540
15541 logdir="${localstatedir}/log"
15542
15543# Check whether --with-logdir was given.
15544if test "${with_logdir+set}" = set; then :
15545 withval=$with_logdir;
15546 case $with_logdir in #(
15547 "") :
15548 as_fn_error $? "invalid logdir specified" "$LINENO" 5 ;; #(
15549 *) :
15550 logdir="$with_logdir" ;;
15551esac
15552
15553fi
15554
15555
15556
15557
15558# Set default dpkg-deb values
15559
15560
15561# Check whether --with-dpkg-deb-compressor was given.
15562if test "${with_dpkg_deb_compressor+set}" = set; then :
15563 withval=$with_dpkg_deb_compressor; with_dpkg_deb_compressor=$withval
15564else
15565 with_dpkg_deb_compressor=xz
15566fi
15567
15568 case $with_dpkg_deb_compressor in #(
15569 gzip|xz) :
15570 : ;; #(
15571 *) :
15572 as_fn_error $? "unsupported default compressor $with_dpkg_deb_compressor" "$LINENO" 5 ;;
15573esac
15574
15575cat >>confdefs.h <<_ACEOF
15576#define DPKG_DEB_DEFAULT_COMPRESSOR COMPRESSOR_TYPE_`$as_echo "${with_dpkg_deb_compressor}" | $as_tr_cpp`
15577_ACEOF
15578
15579
15580
15581
15582 for ac_prog in gnutar gtar tar
15583do
15584 # Extract the first word of "$ac_prog", so it can be a program name with args.
15585set dummy $ac_prog; ac_word=$2
15586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15587$as_echo_n "checking for $ac_word... " >&6; }
15588if ${ac_cv_prog_TAR+:} false; then :
15589 $as_echo_n "(cached) " >&6
15590else
15591 if test -n "$TAR"; then
15592 ac_cv_prog_TAR="$TAR" # Let the user override the test.
15593else
15594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15595for as_dir in $PATH
15596do
15597 IFS=$as_save_IFS
15598 test -z "$as_dir" && as_dir=.
15599 for ac_exec_ext in '' $ac_executable_extensions; do
15600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15601 ac_cv_prog_TAR="$ac_prog"
15602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15603 break 2
15604 fi
15605done
15606 done
15607IFS=$as_save_IFS
15608
15609fi
15610fi
15611TAR=$ac_cv_prog_TAR
15612if test -n "$TAR"; then
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
15614$as_echo "$TAR" >&6; }
15615else
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15617$as_echo "no" >&6; }
15618fi
15619
15620
15621 test -n "$TAR" && break
15622done
15623test -n "$TAR" || TAR="tar"
15624
15625 if ! $TAR --version 2>/dev/null | grep -q '^tar (GNU tar)'; then :
15626
15627 as_fn_error $? "cannot find a GNU tar program" "$LINENO" 5
15628
15629fi
15630
15631cat >>confdefs.h <<_ACEOF
15632#define TAR "$TAR"
15633_ACEOF
15634
15635
15636
15637# Checks for programs.
15638ac_ext=c
15639ac_cpp='$CPP $CPPFLAGS'
15640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15642ac_compiler_gnu=$ac_cv_c_compiler_gnu
15643if test -n "$ac_tool_prefix"; then
15644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15645set dummy ${ac_tool_prefix}gcc; ac_word=$2
15646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15647$as_echo_n "checking for $ac_word... " >&6; }
15648if ${ac_cv_prog_CC+:} false; then :
15649 $as_echo_n "(cached) " >&6
15650else
15651 if test -n "$CC"; then
15652 ac_cv_prog_CC="$CC" # Let the user override the test.
15653else
15654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15655for as_dir in $PATH
15656do
15657 IFS=$as_save_IFS
15658 test -z "$as_dir" && as_dir=.
15659 for ac_exec_ext in '' $ac_executable_extensions; do
15660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
15662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15663 break 2
15664 fi
15665done
15666 done
15667IFS=$as_save_IFS
15668
15669fi
15670fi
15671CC=$ac_cv_prog_CC
15672if test -n "$CC"; then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15674$as_echo "$CC" >&6; }
15675else
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15677$as_echo "no" >&6; }
15678fi
15679
15680
15681fi
15682if test -z "$ac_cv_prog_CC"; then
15683 ac_ct_CC=$CC
15684 # Extract the first word of "gcc", so it can be a program name with args.
15685set dummy gcc; ac_word=$2
15686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15687$as_echo_n "checking for $ac_word... " >&6; }
15688if ${ac_cv_prog_ac_ct_CC+:} false; then :
15689 $as_echo_n "(cached) " >&6
15690else
15691 if test -n "$ac_ct_CC"; then
15692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15693else
15694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15695for as_dir in $PATH
15696do
15697 IFS=$as_save_IFS
15698 test -z "$as_dir" && as_dir=.
15699 for ac_exec_ext in '' $ac_executable_extensions; do
15700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15701 ac_cv_prog_ac_ct_CC="gcc"
15702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15703 break 2
15704 fi
15705done
15706 done
15707IFS=$as_save_IFS
15708
15709fi
15710fi
15711ac_ct_CC=$ac_cv_prog_ac_ct_CC
15712if test -n "$ac_ct_CC"; then
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15714$as_echo "$ac_ct_CC" >&6; }
15715else
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717$as_echo "no" >&6; }
15718fi
15719
15720 if test "x$ac_ct_CC" = x; then
15721 CC=""
15722 else
15723 case $cross_compiling:$ac_tool_warned in
15724yes:)
15725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15727ac_tool_warned=yes ;;
15728esac
15729 CC=$ac_ct_CC
15730 fi
15731else
15732 CC="$ac_cv_prog_CC"
15733fi
15734
15735if test -z "$CC"; then
15736 if test -n "$ac_tool_prefix"; then
15737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15738set dummy ${ac_tool_prefix}cc; ac_word=$2
15739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15740$as_echo_n "checking for $ac_word... " >&6; }
15741if ${ac_cv_prog_CC+:} false; then :
15742 $as_echo_n "(cached) " >&6
15743else
15744 if test -n "$CC"; then
15745 ac_cv_prog_CC="$CC" # Let the user override the test.
15746else
15747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15748for as_dir in $PATH
15749do
15750 IFS=$as_save_IFS
15751 test -z "$as_dir" && as_dir=.
15752 for ac_exec_ext in '' $ac_executable_extensions; do
15753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15754 ac_cv_prog_CC="${ac_tool_prefix}cc"
15755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15756 break 2
15757 fi
15758done
15759 done
15760IFS=$as_save_IFS
15761
15762fi
15763fi
15764CC=$ac_cv_prog_CC
15765if test -n "$CC"; then
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15767$as_echo "$CC" >&6; }
15768else
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15770$as_echo "no" >&6; }
15771fi
15772
15773
15774 fi
15775fi
15776if test -z "$CC"; then
15777 # Extract the first word of "cc", so it can be a program name with args.
15778set dummy cc; ac_word=$2
15779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15780$as_echo_n "checking for $ac_word... " >&6; }
15781if ${ac_cv_prog_CC+:} false; then :
15782 $as_echo_n "(cached) " >&6
15783else
15784 if test -n "$CC"; then
15785 ac_cv_prog_CC="$CC" # Let the user override the test.
15786else
15787 ac_prog_rejected=no
15788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15789for as_dir in $PATH
15790do
15791 IFS=$as_save_IFS
15792 test -z "$as_dir" && as_dir=.
15793 for ac_exec_ext in '' $ac_executable_extensions; do
15794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15796 ac_prog_rejected=yes
15797 continue
15798 fi
15799 ac_cv_prog_CC="cc"
15800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15801 break 2
15802 fi
15803done
15804 done
15805IFS=$as_save_IFS
15806
15807if test $ac_prog_rejected = yes; then
15808 # We found a bogon in the path, so make sure we never use it.
15809 set dummy $ac_cv_prog_CC
15810 shift
15811 if test $# != 0; then
15812 # We chose a different compiler from the bogus one.
15813 # However, it has the same basename, so the bogon will be chosen
15814 # first if we set CC to just the basename; use the full file name.
15815 shift
15816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15817 fi
15818fi
15819fi
15820fi
15821CC=$ac_cv_prog_CC
15822if test -n "$CC"; then
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15824$as_echo "$CC" >&6; }
15825else
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15827$as_echo "no" >&6; }
15828fi
15829
15830
15831fi
15832if test -z "$CC"; then
15833 if test -n "$ac_tool_prefix"; then
15834 for ac_prog in cl.exe
15835 do
15836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15839$as_echo_n "checking for $ac_word... " >&6; }
15840if ${ac_cv_prog_CC+:} false; then :
15841 $as_echo_n "(cached) " >&6
15842else
15843 if test -n "$CC"; then
15844 ac_cv_prog_CC="$CC" # Let the user override the test.
15845else
15846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15847for as_dir in $PATH
15848do
15849 IFS=$as_save_IFS
15850 test -z "$as_dir" && as_dir=.
15851 for ac_exec_ext in '' $ac_executable_extensions; do
15852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15855 break 2
15856 fi
15857done
15858 done
15859IFS=$as_save_IFS
15860
15861fi
15862fi
15863CC=$ac_cv_prog_CC
15864if test -n "$CC"; then
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15866$as_echo "$CC" >&6; }
15867else
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15869$as_echo "no" >&6; }
15870fi
15871
15872
15873 test -n "$CC" && break
15874 done
15875fi
15876if test -z "$CC"; then
15877 ac_ct_CC=$CC
15878 for ac_prog in cl.exe
15879do
15880 # Extract the first word of "$ac_prog", so it can be a program name with args.
15881set dummy $ac_prog; ac_word=$2
15882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15883$as_echo_n "checking for $ac_word... " >&6; }
15884if ${ac_cv_prog_ac_ct_CC+:} false; then :
15885 $as_echo_n "(cached) " >&6
15886else
15887 if test -n "$ac_ct_CC"; then
15888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15889else
15890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15891for as_dir in $PATH
15892do
15893 IFS=$as_save_IFS
15894 test -z "$as_dir" && as_dir=.
15895 for ac_exec_ext in '' $ac_executable_extensions; do
15896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15897 ac_cv_prog_ac_ct_CC="$ac_prog"
15898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15899 break 2
15900 fi
15901done
15902 done
15903IFS=$as_save_IFS
15904
15905fi
15906fi
15907ac_ct_CC=$ac_cv_prog_ac_ct_CC
15908if test -n "$ac_ct_CC"; then
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15910$as_echo "$ac_ct_CC" >&6; }
15911else
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15913$as_echo "no" >&6; }
15914fi
15915
15916
15917 test -n "$ac_ct_CC" && break
15918done
15919
15920 if test "x$ac_ct_CC" = x; then
15921 CC=""
15922 else
15923 case $cross_compiling:$ac_tool_warned in
15924yes:)
15925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15927ac_tool_warned=yes ;;
15928esac
15929 CC=$ac_ct_CC
15930 fi
15931fi
15932
15933fi
15934
15935
15936test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15938as_fn_error $? "no acceptable C compiler found in \$PATH
15939See \`config.log' for more details" "$LINENO" 5; }
15940
15941# Provide some information about the compiler.
15942$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
15943set X $ac_compile
15944ac_compiler=$2
15945for ac_option in --version -v -V -qversion; do
15946 { { ac_try="$ac_compiler $ac_option >&5"
15947case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15950esac
15951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15952$as_echo "$ac_try_echo"; } >&5
15953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15954 ac_status=$?
15955 if test -s conftest.err; then
15956 sed '10a\
15957... rest of stderr output deleted ...
15958 10q' conftest.err >conftest.er1
15959 cat conftest.er1 >&5
15960 fi
15961 rm -f conftest.er1 conftest.err
15962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15963 test $ac_status = 0; }
15964done
15965
15966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
15967$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
15968if ${ac_cv_c_compiler_gnu+:} false; then :
15969 $as_echo_n "(cached) " >&6
15970else
15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972/* end confdefs.h. */
15973
15974int
15975main ()
15976{
15977#ifndef __GNUC__
15978 choke me
15979#endif
15980
15981 ;
15982 return 0;
15983}
15984_ACEOF
15985if ac_fn_c_try_compile "$LINENO"; then :
15986 ac_compiler_gnu=yes
15987else
15988 ac_compiler_gnu=no
15989fi
15990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991ac_cv_c_compiler_gnu=$ac_compiler_gnu
15992
15993fi
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
15995$as_echo "$ac_cv_c_compiler_gnu" >&6; }
15996if test $ac_compiler_gnu = yes; then
15997 GCC=yes
15998else
15999 GCC=
16000fi
16001ac_test_CFLAGS=${CFLAGS+set}
16002ac_save_CFLAGS=$CFLAGS
16003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16004$as_echo_n "checking whether $CC accepts -g... " >&6; }
16005if ${ac_cv_prog_cc_g+:} false; then :
16006 $as_echo_n "(cached) " >&6
16007else
16008 ac_save_c_werror_flag=$ac_c_werror_flag
16009 ac_c_werror_flag=yes
16010 ac_cv_prog_cc_g=no
16011 CFLAGS="-g"
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013/* end confdefs.h. */
16014
16015int
16016main ()
16017{
16018
16019 ;
16020 return 0;
16021}
16022_ACEOF
16023if ac_fn_c_try_compile "$LINENO"; then :
16024 ac_cv_prog_cc_g=yes
16025else
16026 CFLAGS=""
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028/* end confdefs.h. */
16029
16030int
16031main ()
16032{
16033
16034 ;
16035 return 0;
16036}
16037_ACEOF
16038if ac_fn_c_try_compile "$LINENO"; then :
16039
16040else
16041 ac_c_werror_flag=$ac_save_c_werror_flag
16042 CFLAGS="-g"
16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044/* end confdefs.h. */
16045
16046int
16047main ()
16048{
16049
16050 ;
16051 return 0;
16052}
16053_ACEOF
16054if ac_fn_c_try_compile "$LINENO"; then :
16055 ac_cv_prog_cc_g=yes
16056fi
16057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058fi
16059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060fi
16061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062 ac_c_werror_flag=$ac_save_c_werror_flag
16063fi
16064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16065$as_echo "$ac_cv_prog_cc_g" >&6; }
16066if test "$ac_test_CFLAGS" = set; then
16067 CFLAGS=$ac_save_CFLAGS
16068elif test $ac_cv_prog_cc_g = yes; then
16069 if test "$GCC" = yes; then
16070 CFLAGS="-g -O2"
16071 else
16072 CFLAGS="-g"
16073 fi
16074else
16075 if test "$GCC" = yes; then
16076 CFLAGS="-O2"
16077 else
16078 CFLAGS=
16079 fi
16080fi
16081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16082$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16083if ${ac_cv_prog_cc_c89+:} false; then :
16084 $as_echo_n "(cached) " >&6
16085else
16086 ac_cv_prog_cc_c89=no
16087ac_save_CC=$CC
16088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089/* end confdefs.h. */
16090#include <stdarg.h>
16091#include <stdio.h>
16092struct stat;
16093/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16094struct buf { int x; };
16095FILE * (*rcsopen) (struct buf *, struct stat *, int);
16096static char *e (p, i)
16097 char **p;
16098 int i;
16099{
16100 return p[i];
16101}
16102static char *f (char * (*g) (char **, int), char **p, ...)
16103{
16104 char *s;
16105 va_list v;
16106 va_start (v,p);
16107 s = g (p, va_arg (v,int));
16108 va_end (v);
16109 return s;
16110}
16111
16112/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16113 function prototypes and stuff, but not '\xHH' hex character constants.
16114 These don't provoke an error unfortunately, instead are silently treated
16115 as 'x'. The following induces an error, until -std is added to get
16116 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16117 array size at least. It's necessary to write '\x00'==0 to get something
16118 that's true only with -std. */
16119int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16120
16121/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16122 inside strings and character constants. */
16123#define FOO(x) 'x'
16124int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16125
16126int test (int i, double x);
16127struct s1 {int (*f) (int a);};
16128struct s2 {int (*f) (double a);};
16129int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16130int argc;
16131char **argv;
16132int
16133main ()
16134{
16135return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16136 ;
16137 return 0;
16138}
16139_ACEOF
16140for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16141 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16142do
16143 CC="$ac_save_CC $ac_arg"
16144 if ac_fn_c_try_compile "$LINENO"; then :
16145 ac_cv_prog_cc_c89=$ac_arg
16146fi
16147rm -f core conftest.err conftest.$ac_objext
16148 test "x$ac_cv_prog_cc_c89" != "xno" && break
16149done
16150rm -f conftest.$ac_ext
16151CC=$ac_save_CC
16152
16153fi
16154# AC_CACHE_VAL
16155case "x$ac_cv_prog_cc_c89" in
16156 x)
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16158$as_echo "none needed" >&6; } ;;
16159 xno)
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16161$as_echo "unsupported" >&6; } ;;
16162 *)
16163 CC="$CC $ac_cv_prog_cc_c89"
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16165$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16166esac
16167if test "x$ac_cv_prog_cc_c89" != xno; then :
16168
16169fi
16170
16171ac_ext=c
16172ac_cpp='$CPP $CPPFLAGS'
16173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16175ac_compiler_gnu=$ac_cv_c_compiler_gnu
16176
16177ac_ext=c
16178ac_cpp='$CPP $CPPFLAGS'
16179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16181ac_compiler_gnu=$ac_cv_c_compiler_gnu
16182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
16183$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
16184if ${am_cv_prog_cc_c_o+:} false; then :
16185 $as_echo_n "(cached) " >&6
16186else
16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188/* end confdefs.h. */
16189
16190int
16191main ()
16192{
16193
16194 ;
16195 return 0;
16196}
16197_ACEOF
16198 # Make sure it works both with $CC and with simple cc.
16199 # Following AC_PROG_CC_C_O, we do the test twice because some
16200 # compilers refuse to overwrite an existing .o file with -o,
16201 # though they will create one.
16202 am_cv_prog_cc_c_o=yes
16203 for am_i in 1 2; do
16204 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
16205 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } \
16209 && test -f conftest2.$ac_objext; then
16210 : OK
16211 else
16212 am_cv_prog_cc_c_o=no
16213 break
16214 fi
16215 done
16216 rm -f core conftest*
16217 unset am_i
16218fi
16219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
16220$as_echo "$am_cv_prog_cc_c_o" >&6; }
16221if test "$am_cv_prog_cc_c_o" != yes; then
16222 # Losing compiler, so override with the script.
16223 # FIXME: It is wrong to rewrite CC.
16224 # But if we don't then we get into trouble of one sort or another.
16225 # A longer-term fix would be to have automake use am__CC in this case,
16226 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16227 CC="$am_aux_dir/compile $CC"
16228fi
16229ac_ext=c
16230ac_cpp='$CPP $CPPFLAGS'
16231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16233ac_compiler_gnu=$ac_cv_c_compiler_gnu
16234
16235
16236
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports C99 features" >&5
16238$as_echo_n "checking whether $CC supports C99 features... " >&6; }
16239if ${dpkg_cv_c99+:} false; then :
16240 $as_echo_n "(cached) " >&6
16241else
16242
16243
16244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245/* end confdefs.h. */
16246
16247
16248#include <inttypes.h>
16249#include <stdbool.h>
16250#include <stdio.h>
16251
16252/* Variadic macro arguments. */
16253#define variadic_macro(foo, ...) printf(foo, __VA_ARGS__)
16254
16255int
16256main ()
16257{
16258
16259 int rc;
16260
16261 /* Designated initializers. */
16262 struct { int a, b; } foo = { .a = 1, .b = 2 };
16263
16264 /* Compound literals. */
16265 struct point { int x, y; } p = (struct point){ .x = 0, .y = 1 };
16266 p = (struct point){ .x = 2, .y = 4 };
16267
16268 /* Trailing comma in enum. */
16269 enum { FIRST, SECOND, } quux;
16270
16271 /* Boolean type. */
16272 bool bar = false;
16273
16274 /* Specific size type. */
16275 uint32_t baz = 0;
16276 size_t size = SIZE_MAX;
16277 intmax_t imax = INTMAX_MAX;
16278
16279 /* Format modifiers. */
16280 rc = printf("%jd", imax);
16281 if (rc == 3)
16282 return 1;
16283 rc = printf("%zu", size);
16284 if (rc == 3)
16285 return 1;
16286
16287 /* Magic __func__ variable. */
16288 printf("%s", __func__);
16289
16290 ;
16291 return 0;
16292}
16293
16294_ACEOF
16295if ac_fn_c_try_compile "$LINENO"; then :
16296 dpkg_cv_c99=yes
16297else
16298 dpkg_cv_c99=no
16299fi
16300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301
16302fi
16303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_c99" >&5
16304$as_echo "$dpkg_cv_c99" >&6; }
16305 if test "x$dpkg_cv_c99" != "xyes"; then :
16306
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept C99 features" >&5
16308$as_echo_n "checking for $CC option to accept C99 features... " >&6; }
16309if ${dpkg_cv_c99_arg+:} false; then :
16310 $as_echo_n "(cached) " >&6
16311else
16312
16313 dpkg_cv_c99_arg=none
16314 dpkg_save_CC="$CC"
16315 for arg in "-std=gnu99" "-std=c99" "-c99" "-AC99" "-xc99=all" \
16316 "-qlanglvl=extc99"; do
16317 CC="$dpkg_save_CC $arg"
16318
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320/* end confdefs.h. */
16321
16322
16323#include <inttypes.h>
16324#include <stdbool.h>
16325#include <stdio.h>
16326
16327/* Variadic macro arguments. */
16328#define variadic_macro(foo, ...) printf(foo, __VA_ARGS__)
16329
16330int
16331main ()
16332{
16333
16334 int rc;
16335
16336 /* Designated initializers. */
16337 struct { int a, b; } foo = { .a = 1, .b = 2 };
16338
16339 /* Compound literals. */
16340 struct point { int x, y; } p = (struct point){ .x = 0, .y = 1 };
16341 p = (struct point){ .x = 2, .y = 4 };
16342
16343 /* Trailing comma in enum. */
16344 enum { FIRST, SECOND, } quux;
16345
16346 /* Boolean type. */
16347 bool bar = false;
16348
16349 /* Specific size type. */
16350 uint32_t baz = 0;
16351 size_t size = SIZE_MAX;
16352 intmax_t imax = INTMAX_MAX;
16353
16354 /* Format modifiers. */
16355 rc = printf("%jd", imax);
16356 if (rc == 3)
16357 return 1;
16358 rc = printf("%zu", size);
16359 if (rc == 3)
16360 return 1;
16361
16362 /* Magic __func__ variable. */
16363 printf("%s", __func__);
16364
16365 ;
16366 return 0;
16367}
16368
16369_ACEOF
16370if ac_fn_c_try_compile "$LINENO"; then :
16371 dpkg_arg_worked=yes
16372else
16373 dpkg_arg_worked=no
16374fi
16375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16376 CC="$dpkg_save_CC"
16377
16378 if test "x$dpkg_arg_worked" = "xyes"; then :
16379
16380 dpkg_cv_c99_arg="$arg"
16381 break
16382
16383fi
16384 done
16385
16386fi
16387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_c99_arg" >&5
16388$as_echo "$dpkg_cv_c99_arg" >&6; }
16389 if test "x$dpkg_cv_c99_arg" != "xnone"; then :
16390
16391 CC="$CC $dpkg_cv_c99_arg"
16392 dpkg_cv_c99=1
16393
16394fi
16395
16396fi
16397 if test "x$dpkg_cv_c99" = "xyes"; then :
16398
16399
16400$as_echo "#define HAVE_C99 1" >>confdefs.h
16401
16402
16403else
16404
16405 as_fn_error $? "unsupported required C99 extensions" "$LINENO" 5
16406
16407fi
16408
16409ac_ext=cpp
16410ac_cpp='$CXXCPP $CPPFLAGS'
16411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16414if test -z "$CXX"; then
16415 if test -n "$CCC"; then
16416 CXX=$CCC
16417 else
16418 if test -n "$ac_tool_prefix"; then
16419 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16420 do
16421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16422set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16424$as_echo_n "checking for $ac_word... " >&6; }
16425if ${ac_cv_prog_CXX+:} false; then :
16426 $as_echo_n "(cached) " >&6
16427else
16428 if test -n "$CXX"; then
16429 ac_cv_prog_CXX="$CXX" # Let the user override the test.
16430else
16431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16432for as_dir in $PATH
16433do
16434 IFS=$as_save_IFS
16435 test -z "$as_dir" && as_dir=.
16436 for ac_exec_ext in '' $ac_executable_extensions; do
16437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16438 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16440 break 2
16441 fi
16442done
16443 done
16444IFS=$as_save_IFS
16445
16446fi
16447fi
16448CXX=$ac_cv_prog_CXX
16449if test -n "$CXX"; then
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
16451$as_echo "$CXX" >&6; }
16452else
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16454$as_echo "no" >&6; }
16455fi
16456
16457
16458 test -n "$CXX" && break
16459 done
16460fi
16461if test -z "$CXX"; then
16462 ac_ct_CXX=$CXX
16463 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16464do
16465 # Extract the first word of "$ac_prog", so it can be a program name with args.
16466set dummy $ac_prog; ac_word=$2
16467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16468$as_echo_n "checking for $ac_word... " >&6; }
16469if ${ac_cv_prog_ac_ct_CXX+:} false; then :
16470 $as_echo_n "(cached) " >&6
16471else
16472 if test -n "$ac_ct_CXX"; then
16473 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16474else
16475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16476for as_dir in $PATH
16477do
16478 IFS=$as_save_IFS
16479 test -z "$as_dir" && as_dir=.
16480 for ac_exec_ext in '' $ac_executable_extensions; do
16481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16482 ac_cv_prog_ac_ct_CXX="$ac_prog"
16483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16484 break 2
16485 fi
16486done
16487 done
16488IFS=$as_save_IFS
16489
16490fi
16491fi
16492ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16493if test -n "$ac_ct_CXX"; then
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
16495$as_echo "$ac_ct_CXX" >&6; }
16496else
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16498$as_echo "no" >&6; }
16499fi
16500
16501
16502 test -n "$ac_ct_CXX" && break
16503done
16504
16505 if test "x$ac_ct_CXX" = x; then
16506 CXX="g++"
16507 else
16508 case $cross_compiling:$ac_tool_warned in
16509yes:)
16510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16512ac_tool_warned=yes ;;
16513esac
16514 CXX=$ac_ct_CXX
16515 fi
16516fi
16517
16518 fi
16519fi
16520# Provide some information about the compiler.
16521$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
16522set X $ac_compile
16523ac_compiler=$2
16524for ac_option in --version -v -V -qversion; do
16525 { { ac_try="$ac_compiler $ac_option >&5"
16526case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16529esac
16530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16531$as_echo "$ac_try_echo"; } >&5
16532 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16533 ac_status=$?
16534 if test -s conftest.err; then
16535 sed '10a\
16536... rest of stderr output deleted ...
16537 10q' conftest.err >conftest.er1
16538 cat conftest.er1 >&5
16539 fi
16540 rm -f conftest.er1 conftest.err
16541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16542 test $ac_status = 0; }
16543done
16544
16545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
16546$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
16547if ${ac_cv_cxx_compiler_gnu+:} false; then :
16548 $as_echo_n "(cached) " >&6
16549else
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551/* end confdefs.h. */
16552
16553int
16554main ()
16555{
16556#ifndef __GNUC__
16557 choke me
16558#endif
16559
16560 ;
16561 return 0;
16562}
16563_ACEOF
16564if ac_fn_cxx_try_compile "$LINENO"; then :
16565 ac_compiler_gnu=yes
16566else
16567 ac_compiler_gnu=no
16568fi
16569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16570ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16571
16572fi
16573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
16574$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
16575if test $ac_compiler_gnu = yes; then
16576 GXX=yes
16577else
16578 GXX=
16579fi
16580ac_test_CXXFLAGS=${CXXFLAGS+set}
16581ac_save_CXXFLAGS=$CXXFLAGS
16582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
16583$as_echo_n "checking whether $CXX accepts -g... " >&6; }
16584if ${ac_cv_prog_cxx_g+:} false; then :
16585 $as_echo_n "(cached) " >&6
16586else
16587 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16588 ac_cxx_werror_flag=yes
16589 ac_cv_prog_cxx_g=no
16590 CXXFLAGS="-g"
16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592/* end confdefs.h. */
16593
16594int
16595main ()
16596{
16597
16598 ;
16599 return 0;
16600}
16601_ACEOF
16602if ac_fn_cxx_try_compile "$LINENO"; then :
16603 ac_cv_prog_cxx_g=yes
16604else
16605 CXXFLAGS=""
16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607/* end confdefs.h. */
16608
16609int
16610main ()
16611{
16612
16613 ;
16614 return 0;
16615}
16616_ACEOF
16617if ac_fn_cxx_try_compile "$LINENO"; then :
16618
16619else
16620 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16621 CXXFLAGS="-g"
16622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623/* end confdefs.h. */
16624
16625int
16626main ()
16627{
16628
16629 ;
16630 return 0;
16631}
16632_ACEOF
16633if ac_fn_cxx_try_compile "$LINENO"; then :
16634 ac_cv_prog_cxx_g=yes
16635fi
16636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16637fi
16638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639fi
16640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16641 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16642fi
16643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
16644$as_echo "$ac_cv_prog_cxx_g" >&6; }
16645if test "$ac_test_CXXFLAGS" = set; then
16646 CXXFLAGS=$ac_save_CXXFLAGS
16647elif test $ac_cv_prog_cxx_g = yes; then
16648 if test "$GXX" = yes; then
16649 CXXFLAGS="-g -O2"
16650 else
16651 CXXFLAGS="-g"
16652 fi
16653else
16654 if test "$GXX" = yes; then
16655 CXXFLAGS="-O2"
16656 else
16657 CXXFLAGS=
16658 fi
16659fi
16660ac_ext=c
16661ac_cpp='$CPP $CPPFLAGS'
16662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16664ac_compiler_gnu=$ac_cv_c_compiler_gnu
16665
16666depcc="$CXX" am_compiler_list=
16667
16668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16669$as_echo_n "checking dependency style of $depcc... " >&6; }
16670if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
16671 $as_echo_n "(cached) " >&6
16672else
16673 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16674 # We make a subdir and do the tests there. Otherwise we can end up
16675 # making bogus files that we don't know about and never remove. For
16676 # instance it was reported that on HP-UX the gcc test will end up
16677 # making a dummy file named 'D' -- because '-MD' means "put the output
16678 # in D".
16679 rm -rf conftest.dir
16680 mkdir conftest.dir
16681 # Copy depcomp to subdir because otherwise we won't find it if we're
16682 # using a relative directory.
16683 cp "$am_depcomp" conftest.dir
16684 cd conftest.dir
16685 # We will build objects and dependencies in a subdirectory because
16686 # it helps to detect inapplicable dependency modes. For instance
16687 # both Tru64's cc and ICC support -MD to output dependencies as a
16688 # side effect of compilation, but ICC will put the dependencies in
16689 # the current directory while Tru64 will put them in the object
16690 # directory.
16691 mkdir sub
16692
16693 am_cv_CXX_dependencies_compiler_type=none
16694 if test "$am_compiler_list" = ""; then
16695 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16696 fi
16697 am__universal=false
16698 case " $depcc " in #(
16699 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16700 esac
16701
16702 for depmode in $am_compiler_list; do
16703 # Setup a source with many dependencies, because some compilers
16704 # like to wrap large dependency lists on column 80 (with \), and
16705 # we should not choose a depcomp mode which is confused by this.
16706 #
16707 # We need to recreate these files for each test, as the compiler may
16708 # overwrite some of them when testing with obscure command lines.
16709 # This happens at least with the AIX C compiler.
16710 : > sub/conftest.c
16711 for i in 1 2 3 4 5 6; do
16712 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16713 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16714 # Solaris 10 /bin/sh.
16715 echo '/* dummy */' > sub/conftst$i.h
16716 done
16717 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16718
16719 # We check with '-c' and '-o' for the sake of the "dashmstdout"
16720 # mode. It turns out that the SunPro C++ compiler does not properly
16721 # handle '-M -o', and we need to detect this. Also, some Intel
16722 # versions had trouble with output in subdirs.
16723 am__obj=sub/conftest.${OBJEXT-o}
16724 am__minus_obj="-o $am__obj"
16725 case $depmode in
16726 gcc)
16727 # This depmode causes a compiler race in universal mode.
16728 test "$am__universal" = false || continue
16729 ;;
16730 nosideeffect)
16731 # After this tag, mechanisms are not by side-effect, so they'll
16732 # only be used when explicitly requested.
16733 if test "x$enable_dependency_tracking" = xyes; then
16734 continue
16735 else
16736 break
16737 fi
16738 ;;
16739 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16740 # This compiler won't grok '-c -o', but also, the minuso test has
16741 # not run yet. These depmodes are late enough in the game, and
16742 # so weak that their functioning should not be impacted.
16743 am__obj=conftest.${OBJEXT-o}
16744 am__minus_obj=
16745 ;;
16746 none) break ;;
16747 esac
16748 if depmode=$depmode \
16749 source=sub/conftest.c object=$am__obj \
16750 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16751 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16752 >/dev/null 2>conftest.err &&
16753 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16754 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16755 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16756 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16757 # icc doesn't choke on unknown options, it will just issue warnings
16758 # or remarks (even with -Werror). So we grep stderr for any message
16759 # that says an option was ignored or not supported.
16760 # When given -MP, icc 7.0 and 7.1 complain thusly:
16761 # icc: Command line warning: ignoring option '-M'; no argument required
16762 # The diagnosis changed in icc 8.0:
16763 # icc: Command line remark: option '-MP' not supported
16764 if (grep 'ignoring option' conftest.err ||
16765 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16766 am_cv_CXX_dependencies_compiler_type=$depmode
16767 break
16768 fi
16769 fi
16770 done
16771
16772 cd ..
16773 rm -rf conftest.dir
16774else
16775 am_cv_CXX_dependencies_compiler_type=none
16776fi
16777
16778fi
16779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
16780$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
16781CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16782
16783 if
16784 test "x$enable_dependency_tracking" != xno \
16785 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16786 am__fastdepCXX_TRUE=
16787 am__fastdepCXX_FALSE='#'
16788else
16789 am__fastdepCXX_TRUE='#'
16790 am__fastdepCXX_FALSE=
16791fi
16792
16793
16794
16795
16796func_stripname_cnf ()
16797{
16798 case $2 in
16799 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
16800 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
16801 esac
16802} # func_stripname_cnf
16803
16804 if test -n "$CXX" && ( test no != "$CXX" &&
16805 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16806 (test g++ != "$CXX"))); then
16807 ac_ext=cpp
16808ac_cpp='$CXXCPP $CPPFLAGS'
16809ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16810ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16811ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16813$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16814if test -z "$CXXCPP"; then
16815 if ${ac_cv_prog_CXXCPP+:} false; then :
16816 $as_echo_n "(cached) " >&6
16817else
16818 # Double quotes because CXXCPP needs to be expanded
16819 for CXXCPP in "$CXX -E" "/lib/cpp"
16820 do
16821 ac_preproc_ok=false
16822for ac_cxx_preproc_warn_flag in '' yes
16823do
16824 # Use a header file that comes with gcc, so configuring glibc
16825 # with a fresh cross-compiler works.
16826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16827 # <limits.h> exists even on freestanding compilers.
16828 # On the NeXT, cc -E runs the code through the compiler's parser,
16829 # not just through cpp. "Syntax error" is here to catch this case.
16830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16831/* end confdefs.h. */
16832#ifdef __STDC__
16833# include <limits.h>
16834#else
16835# include <assert.h>
16836#endif
16837 Syntax error
16838_ACEOF
16839if ac_fn_cxx_try_cpp "$LINENO"; then :
16840
16841else
16842 # Broken: fails on valid input.
16843continue
16844fi
16845rm -f conftest.err conftest.i conftest.$ac_ext
16846
16847 # OK, works on sane cases. Now check whether nonexistent headers
16848 # can be detected and how.
16849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850/* end confdefs.h. */
16851#include <ac_nonexistent.h>
16852_ACEOF
16853if ac_fn_cxx_try_cpp "$LINENO"; then :
16854 # Broken: success on invalid input.
16855continue
16856else
16857 # Passes both tests.
16858ac_preproc_ok=:
16859break
16860fi
16861rm -f conftest.err conftest.i conftest.$ac_ext
16862
16863done
16864# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16865rm -f conftest.i conftest.err conftest.$ac_ext
16866if $ac_preproc_ok; then :
16867 break
16868fi
16869
16870 done
16871 ac_cv_prog_CXXCPP=$CXXCPP
16872
16873fi
16874 CXXCPP=$ac_cv_prog_CXXCPP
16875else
16876 ac_cv_prog_CXXCPP=$CXXCPP
16877fi
16878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16879$as_echo "$CXXCPP" >&6; }
16880ac_preproc_ok=false
16881for ac_cxx_preproc_warn_flag in '' yes
16882do
16883 # Use a header file that comes with gcc, so configuring glibc
16884 # with a fresh cross-compiler works.
16885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16886 # <limits.h> exists even on freestanding compilers.
16887 # On the NeXT, cc -E runs the code through the compiler's parser,
16888 # not just through cpp. "Syntax error" is here to catch this case.
16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890/* end confdefs.h. */
16891#ifdef __STDC__
16892# include <limits.h>
16893#else
16894# include <assert.h>
16895#endif
16896 Syntax error
16897_ACEOF
16898if ac_fn_cxx_try_cpp "$LINENO"; then :
16899
16900else
16901 # Broken: fails on valid input.
16902continue
16903fi
16904rm -f conftest.err conftest.i conftest.$ac_ext
16905
16906 # OK, works on sane cases. Now check whether nonexistent headers
16907 # can be detected and how.
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909/* end confdefs.h. */
16910#include <ac_nonexistent.h>
16911_ACEOF
16912if ac_fn_cxx_try_cpp "$LINENO"; then :
16913 # Broken: success on invalid input.
16914continue
16915else
16916 # Passes both tests.
16917ac_preproc_ok=:
16918break
16919fi
16920rm -f conftest.err conftest.i conftest.$ac_ext
16921
16922done
16923# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16924rm -f conftest.i conftest.err conftest.$ac_ext
16925if $ac_preproc_ok; then :
16926
16927else
16928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16930as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16931See \`config.log' for more details" "$LINENO" 5; }
16932fi
16933
16934ac_ext=c
16935ac_cpp='$CPP $CPPFLAGS'
16936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16938ac_compiler_gnu=$ac_cv_c_compiler_gnu
16939
16940else
16941 _lt_caught_CXX_error=yes
16942fi
16943
16944ac_ext=cpp
16945ac_cpp='$CXXCPP $CPPFLAGS'
16946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16949
16950archive_cmds_need_lc_CXX=no
16951allow_undefined_flag_CXX=
16952always_export_symbols_CXX=no
16953archive_expsym_cmds_CXX=
16954compiler_needs_object_CXX=no
16955export_dynamic_flag_spec_CXX=
16956hardcode_direct_CXX=no
16957hardcode_direct_absolute_CXX=no
16958hardcode_libdir_flag_spec_CXX=
16959hardcode_libdir_separator_CXX=
16960hardcode_minus_L_CXX=no
16961hardcode_shlibpath_var_CXX=unsupported
16962hardcode_automatic_CXX=no
16963inherit_rpath_CXX=no
16964module_cmds_CXX=
16965module_expsym_cmds_CXX=
16966link_all_deplibs_CXX=unknown
16967old_archive_cmds_CXX=$old_archive_cmds
16968reload_flag_CXX=$reload_flag
16969reload_cmds_CXX=$reload_cmds
16970no_undefined_flag_CXX=
16971whole_archive_flag_spec_CXX=
16972enable_shared_with_static_runtimes_CXX=no
16973
16974# Source file extension for C++ test sources.
16975ac_ext=cpp
16976
16977# Object file extension for compiled C++ test sources.
16978objext=o
16979objext_CXX=$objext
16980
16981# No sense in running all these tests if we already determined that
16982# the CXX compiler isn't working. Some variables (like enable_shared)
16983# are currently assumed to apply to all compilers on this platform,
16984# and will be corrupted by setting them based on a non-working compiler.
16985if test yes != "$_lt_caught_CXX_error"; then
16986 # Code to be used in simple compile tests
16987 lt_simple_compile_test_code="int some_variable = 0;"
16988
16989 # Code to be used in simple link tests
16990 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16991
16992 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16993
16994
16995
16996
16997
16998
16999# If no C compiler was specified, use CC.
17000LTCC=${LTCC-"$CC"}
17001
17002# If no C compiler flags were specified, use CFLAGS.
17003LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17004
17005# Allow CC to be a program name with arguments.
17006compiler=$CC
17007
17008
17009 # save warnings/boilerplate of simple test code
17010 ac_outfile=conftest.$ac_objext
17011echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17012eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17013_lt_compiler_boilerplate=`cat conftest.err`
17014$RM conftest*
17015
17016 ac_outfile=conftest.$ac_objext
17017echo "$lt_simple_link_test_code" >conftest.$ac_ext
17018eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17019_lt_linker_boilerplate=`cat conftest.err`
17020$RM -r conftest*
17021
17022
17023 # Allow CC to be a program name with arguments.
17024 lt_save_CC=$CC
17025 lt_save_CFLAGS=$CFLAGS
17026 lt_save_LD=$LD
17027 lt_save_GCC=$GCC
17028 GCC=$GXX
17029 lt_save_with_gnu_ld=$with_gnu_ld
17030 lt_save_path_LD=$lt_cv_path_LD
17031 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17032 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17033 else
17034 $as_unset lt_cv_prog_gnu_ld
17035 fi
17036 if test -n "${lt_cv_path_LDCXX+set}"; then
17037 lt_cv_path_LD=$lt_cv_path_LDCXX
17038 else
17039 $as_unset lt_cv_path_LD
17040 fi
17041 test -z "${LDCXX+set}" || LD=$LDCXX
17042 CC=${CXX-"c++"}
17043 CFLAGS=$CXXFLAGS
17044 compiler=$CC
17045 compiler_CXX=$CC
17046 func_cc_basename $compiler
17047cc_basename=$func_cc_basename_result
17048
17049
17050 if test -n "$compiler"; then
17051 # We don't want -fno-exception when compiling C++ code, so set the
17052 # no_builtin_flag separately
17053 if test yes = "$GXX"; then
17054 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17055 else
17056 lt_prog_compiler_no_builtin_flag_CXX=
17057 fi
17058
17059 if test yes = "$GXX"; then
17060 # Set up default GNU C++ configuration
17061
17062
17063
17064# Check whether --with-gnu-ld was given.
17065if test "${with_gnu_ld+set}" = set; then :
17066 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
17067else
17068 with_gnu_ld=no
17069fi
17070
17071ac_prog=ld
17072if test yes = "$GCC"; then
17073 # Check if gcc -print-prog-name=ld gives a path.
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17075$as_echo_n "checking for ld used by $CC... " >&6; }
17076 case $host in
17077 *-*-mingw*)
17078 # gcc leaves a trailing carriage return, which upsets mingw
17079 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17080 *)
17081 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17082 esac
17083 case $ac_prog in
17084 # Accept absolute paths.
17085 [\\/]* | ?:[\\/]*)
17086 re_direlt='/[^/][^/]*/\.\./'
17087 # Canonicalize the pathname of ld
17088 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17089 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17090 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17091 done
17092 test -z "$LD" && LD=$ac_prog
17093 ;;
17094 "")
17095 # If it fails, then pretend we aren't using GCC.
17096 ac_prog=ld
17097 ;;
17098 *)
17099 # If it is relative, then search for the first ld in PATH.
17100 with_gnu_ld=unknown
17101 ;;
17102 esac
17103elif test yes = "$with_gnu_ld"; then
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17105$as_echo_n "checking for GNU ld... " >&6; }
17106else
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17108$as_echo_n "checking for non-GNU ld... " >&6; }
17109fi
17110if ${lt_cv_path_LD+:} false; then :
17111 $as_echo_n "(cached) " >&6
17112else
17113 if test -z "$LD"; then
17114 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17115 for ac_dir in $PATH; do
17116 IFS=$lt_save_ifs
17117 test -z "$ac_dir" && ac_dir=.
17118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17119 lt_cv_path_LD=$ac_dir/$ac_prog
17120 # Check to see if the program is GNU ld. I'd rather use --version,
17121 # but apparently some variants of GNU ld only accept -v.
17122 # Break only if it was the GNU/non-GNU ld that we prefer.
17123 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17124 *GNU* | *'with BFD'*)
17125 test no != "$with_gnu_ld" && break
17126 ;;
17127 *)
17128 test yes != "$with_gnu_ld" && break
17129 ;;
17130 esac
17131 fi
17132 done
17133 IFS=$lt_save_ifs
17134else
17135 lt_cv_path_LD=$LD # Let the user override the test with a path.
17136fi
17137fi
17138
17139LD=$lt_cv_path_LD
17140if test -n "$LD"; then
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17142$as_echo "$LD" >&6; }
17143else
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17145$as_echo "no" >&6; }
17146fi
17147test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17149$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17150if ${lt_cv_prog_gnu_ld+:} false; then :
17151 $as_echo_n "(cached) " >&6
17152else
17153 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17154case `$LD -v 2>&1 </dev/null` in
17155*GNU* | *'with BFD'*)
17156 lt_cv_prog_gnu_ld=yes
17157 ;;
17158*)
17159 lt_cv_prog_gnu_ld=no
17160 ;;
17161esac
17162fi
17163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17164$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17165with_gnu_ld=$lt_cv_prog_gnu_ld
17166
17167
17168
17169
17170
17171
17172
17173 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17174 # archiving commands below assume that GNU ld is being used.
17175 if test yes = "$with_gnu_ld"; then
17176 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17177 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17178
17179 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17180 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17181
17182 # If archive_cmds runs LD, not CC, wlarc should be empty
17183 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17184 # investigate it a little bit more. (MM)
17185 wlarc='$wl'
17186
17187 # ancient GNU ld didn't support --whole-archive et. al.
17188 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17189 $GREP 'no-whole-archive' > /dev/null; then
17190 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17191 else
17192 whole_archive_flag_spec_CXX=
17193 fi
17194 else
17195 with_gnu_ld=no
17196 wlarc=
17197
17198 # A generic and very simple default shared library creation
17199 # command for GNU C++ for the case where it uses the native
17200 # linker, instead of GNU ld. If possible, this setting should
17201 # overridden to take advantage of the native linker features on
17202 # the platform it is being used on.
17203 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17204 fi
17205
17206 # Commands to make compiler produce verbose output that lists
17207 # what "hidden" libraries, object files and flags are used when
17208 # linking a shared library.
17209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17210
17211 else
17212 GXX=no
17213 with_gnu_ld=no
17214 wlarc=
17215 fi
17216
17217 # PORTME: fill in a description of your system's C++ link characteristics
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17219$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17220 ld_shlibs_CXX=yes
17221 case $host_os in
17222 aix3*)
17223 # FIXME: insert proper C++ library support
17224 ld_shlibs_CXX=no
17225 ;;
17226 aix[4-9]*)
17227 if test ia64 = "$host_cpu"; then
17228 # On IA64, the linker does run time linking by default, so we don't
17229 # have to do anything special.
17230 aix_use_runtimelinking=no
17231 exp_sym_flag='-Bexport'
17232 no_entry_flag=
17233 else
17234 aix_use_runtimelinking=no
17235
17236 # Test if we are trying to use run time linking or normal
17237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17238 # have runtime linking enabled, and use it for executables.
17239 # For shared libraries, we enable/disable runtime linking
17240 # depending on the kind of the shared library created -
17241 # when "with_aix_soname,aix_use_runtimelinking" is:
17242 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
17243 # "aix,yes" lib.so shared, rtl:yes, for executables
17244 # lib.a static archive
17245 # "both,no" lib.so.V(shr.o) shared, rtl:yes
17246 # lib.a(lib.so.V) shared, rtl:no, for executables
17247 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17248 # lib.a(lib.so.V) shared, rtl:no
17249 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
17250 # lib.a static archive
17251 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17252 for ld_flag in $LDFLAGS; do
17253 case $ld_flag in
17254 *-brtl*)
17255 aix_use_runtimelinking=yes
17256 break
17257 ;;
17258 esac
17259 done
17260 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17261 # With aix-soname=svr4, we create the lib.so.V shared archives only,
17262 # so we don't have lib.a shared libs to link our executables.
17263 # We have to force runtime linking in this case.
17264 aix_use_runtimelinking=yes
17265 LDFLAGS="$LDFLAGS -Wl,-brtl"
17266 fi
17267 ;;
17268 esac
17269
17270 exp_sym_flag='-bexport'
17271 no_entry_flag='-bnoentry'
17272 fi
17273
17274 # When large executables or shared objects are built, AIX ld can
17275 # have problems creating the table of contents. If linking a library
17276 # or program results in "error TOC overflow" add -mminimal-toc to
17277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17279
17280 archive_cmds_CXX=''
17281 hardcode_direct_CXX=yes
17282 hardcode_direct_absolute_CXX=yes
17283 hardcode_libdir_separator_CXX=':'
17284 link_all_deplibs_CXX=yes
17285 file_list_spec_CXX='$wl-f,'
17286 case $with_aix_soname,$aix_use_runtimelinking in
17287 aix,*) ;; # no import file
17288 svr4,* | *,yes) # use import file
17289 # The Import File defines what to hardcode.
17290 hardcode_direct_CXX=no
17291 hardcode_direct_absolute_CXX=no
17292 ;;
17293 esac
17294
17295 if test yes = "$GXX"; then
17296 case $host_os in aix4.[012]|aix4.[012].*)
17297 # We only want to do this on AIX 4.2 and lower, the check
17298 # below for broken collect2 doesn't work under 4.3+
17299 collect2name=`$CC -print-prog-name=collect2`
17300 if test -f "$collect2name" &&
17301 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17302 then
17303 # We have reworked collect2
17304 :
17305 else
17306 # We have old collect2
17307 hardcode_direct_CXX=unsupported
17308 # It fails to find uninstalled libraries when the uninstalled
17309 # path is not listed in the libpath. Setting hardcode_minus_L
17310 # to unsupported forces relinking
17311 hardcode_minus_L_CXX=yes
17312 hardcode_libdir_flag_spec_CXX='-L$libdir'
17313 hardcode_libdir_separator_CXX=
17314 fi
17315 esac
17316 shared_flag='-shared'
17317 if test yes = "$aix_use_runtimelinking"; then
17318 shared_flag=$shared_flag' $wl-G'
17319 fi
17320 # Need to ensure runtime linking is disabled for the traditional
17321 # shared library, or the linker may eventually find shared libraries
17322 # /with/ Import File - we do not want to mix them.
17323 shared_flag_aix='-shared'
17324 shared_flag_svr4='-shared $wl-G'
17325 else
17326 # not using gcc
17327 if test ia64 = "$host_cpu"; then
17328 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17329 # chokes on -Wl,-G. The following line is correct:
17330 shared_flag='-G'
17331 else
17332 if test yes = "$aix_use_runtimelinking"; then
17333 shared_flag='$wl-G'
17334 else
17335 shared_flag='$wl-bM:SRE'
17336 fi
17337 shared_flag_aix='$wl-bM:SRE'
17338 shared_flag_svr4='$wl-G'
17339 fi
17340 fi
17341
17342 export_dynamic_flag_spec_CXX='$wl-bexpall'
17343 # It seems that -bexpall does not export symbols beginning with
17344 # underscore (_), so it is better to generate a list of symbols to
17345 # export.
17346 always_export_symbols_CXX=yes
17347 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17348 # Warning - without using the other runtime loading flags (-brtl),
17349 # -berok will link without error, but may produce a broken library.
17350 # The "-G" linker flag allows undefined symbols.
17351 no_undefined_flag_CXX='-bernotok'
17352 # Determine the default libpath from the value encoded in an empty
17353 # executable.
17354 if test set = "${lt_cv_aix_libpath+set}"; then
17355 aix_libpath=$lt_cv_aix_libpath
17356else
17357 if ${lt_cv_aix_libpath__CXX+:} false; then :
17358 $as_echo_n "(cached) " >&6
17359else
17360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361/* end confdefs.h. */
17362
17363int
17364main ()
17365{
17366
17367 ;
17368 return 0;
17369}
17370_ACEOF
17371if ac_fn_cxx_try_link "$LINENO"; then :
17372
17373 lt_aix_libpath_sed='
17374 /Import File Strings/,/^$/ {
17375 /^0/ {
17376 s/^0 *\([^ ]*\) *$/\1/
17377 p
17378 }
17379 }'
17380 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17381 # Check for a 64-bit object if we didn't find anything.
17382 if test -z "$lt_cv_aix_libpath__CXX"; then
17383 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17384 fi
17385fi
17386rm -f core conftest.err conftest.$ac_objext \
17387 conftest$ac_exeext conftest.$ac_ext
17388 if test -z "$lt_cv_aix_libpath__CXX"; then
17389 lt_cv_aix_libpath__CXX=/usr/lib:/lib
17390 fi
17391
17392fi
17393
17394 aix_libpath=$lt_cv_aix_libpath__CXX
17395fi
17396
17397 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17398
17399 archive_expsym_cmds_CXX='$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
17400 else
17401 if test ia64 = "$host_cpu"; then
17402 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
17403 allow_undefined_flag_CXX="-z nodefs"
17404 archive_expsym_cmds_CXX="\$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"
17405 else
17406 # Determine the default libpath from the value encoded in an
17407 # empty executable.
17408 if test set = "${lt_cv_aix_libpath+set}"; then
17409 aix_libpath=$lt_cv_aix_libpath
17410else
17411 if ${lt_cv_aix_libpath__CXX+:} false; then :
17412 $as_echo_n "(cached) " >&6
17413else
17414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415/* end confdefs.h. */
17416
17417int
17418main ()
17419{
17420
17421 ;
17422 return 0;
17423}
17424_ACEOF
17425if ac_fn_cxx_try_link "$LINENO"; then :
17426
17427 lt_aix_libpath_sed='
17428 /Import File Strings/,/^$/ {
17429 /^0/ {
17430 s/^0 *\([^ ]*\) *$/\1/
17431 p
17432 }
17433 }'
17434 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17435 # Check for a 64-bit object if we didn't find anything.
17436 if test -z "$lt_cv_aix_libpath__CXX"; then
17437 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17438 fi
17439fi
17440rm -f core conftest.err conftest.$ac_objext \
17441 conftest$ac_exeext conftest.$ac_ext
17442 if test -z "$lt_cv_aix_libpath__CXX"; then
17443 lt_cv_aix_libpath__CXX=/usr/lib:/lib
17444 fi
17445
17446fi
17447
17448 aix_libpath=$lt_cv_aix_libpath__CXX
17449fi
17450
17451 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17452 # Warning - without using the other run time loading flags,
17453 # -berok will link without error, but may produce a broken library.
17454 no_undefined_flag_CXX=' $wl-bernotok'
17455 allow_undefined_flag_CXX=' $wl-berok'
17456 if test yes = "$with_gnu_ld"; then
17457 # We only use this code for GNU lds that support --whole-archive.
17458 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17459 else
17460 # Exported symbols can be pulled into shared objects from archives
17461 whole_archive_flag_spec_CXX='$convenience'
17462 fi
17463 archive_cmds_need_lc_CXX=yes
17464 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17465 # -brtl affects multiple linker settings, -berok does not and is overridden later
17466 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17467 if test svr4 != "$with_aix_soname"; then
17468 # This is similar to how AIX traditionally builds its shared
17469 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
17470 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
17471 fi
17472 if test aix != "$with_aix_soname"; then
17473 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
17474 else
17475 # used by -dlpreopen to get the symbols
17476 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
17477 fi
17478 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
17479 fi
17480 fi
17481 ;;
17482
17483 beos*)
17484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17485 allow_undefined_flag_CXX=unsupported
17486 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17487 # support --undefined. This deserves some investigation. FIXME
17488 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17489 else
17490 ld_shlibs_CXX=no
17491 fi
17492 ;;
17493
17494 chorus*)
17495 case $cc_basename in
17496 *)
17497 # FIXME: insert proper C++ library support
17498 ld_shlibs_CXX=no
17499 ;;
17500 esac
17501 ;;
17502
17503 cygwin* | mingw* | pw32* | cegcc*)
17504 case $GXX,$cc_basename in
17505 ,cl* | no,cl*)
17506 # Native MSVC
17507 # hardcode_libdir_flag_spec is actually meaningless, as there is
17508 # no search path for DLLs.
17509 hardcode_libdir_flag_spec_CXX=' '
17510 allow_undefined_flag_CXX=unsupported
17511 always_export_symbols_CXX=yes
17512 file_list_spec_CXX='@'
17513 # Tell ltmain to make .lib files, not .a files.
17514 libext=lib
17515 # Tell ltmain to make .dll files, not .so files.
17516 shrext_cmds=.dll
17517 # FIXME: Setting linknames here is a bad hack.
17518 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17519 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17520 cp "$export_symbols" "$output_objdir/$soname.def";
17521 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17522 else
17523 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17524 fi~
17525 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17526 linknames='
17527 # The linker will not automatically build a static lib if we build a DLL.
17528 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17529 enable_shared_with_static_runtimes_CXX=yes
17530 # Don't use ranlib
17531 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17532 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17533 lt_tool_outputfile="@TOOL_OUTPUT@"~
17534 case $lt_outputfile in
17535 *.exe|*.EXE) ;;
17536 *)
17537 lt_outputfile=$lt_outputfile.exe
17538 lt_tool_outputfile=$lt_tool_outputfile.exe
17539 ;;
17540 esac~
17541 func_to_tool_file "$lt_outputfile"~
17542 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17543 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17544 $RM "$lt_outputfile.manifest";
17545 fi'
17546 ;;
17547 *)
17548 # g++
17549 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17550 # as there is no search path for DLLs.
17551 hardcode_libdir_flag_spec_CXX='-L$libdir'
17552 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
17553 allow_undefined_flag_CXX=unsupported
17554 always_export_symbols_CXX=no
17555 enable_shared_with_static_runtimes_CXX=yes
17556
17557 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17558 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17559 # If the export-symbols file already is a .def file, use it as
17560 # is; otherwise, prepend EXPORTS...
17561 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17562 cp $export_symbols $output_objdir/$soname.def;
17563 else
17564 echo EXPORTS > $output_objdir/$soname.def;
17565 cat $export_symbols >> $output_objdir/$soname.def;
17566 fi~
17567 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17568 else
17569 ld_shlibs_CXX=no
17570 fi
17571 ;;
17572 esac
17573 ;;
17574 darwin* | rhapsody*)
17575
17576
17577 archive_cmds_need_lc_CXX=no
17578 hardcode_direct_CXX=no
17579 hardcode_automatic_CXX=yes
17580 hardcode_shlibpath_var_CXX=unsupported
17581 if test yes = "$lt_cv_ld_force_load"; then
17582 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17583
17584 else
17585 whole_archive_flag_spec_CXX=''
17586 fi
17587 link_all_deplibs_CXX=yes
17588 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
17589 case $cc_basename in
17590 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17591 *) _lt_dar_can_shared=$GCC ;;
17592 esac
17593 if test yes = "$_lt_dar_can_shared"; then
17594 output_verbose_link_cmd=func_echo_all
17595 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17596 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17597 archive_expsym_cmds_CXX="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"
17598 module_expsym_cmds_CXX="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"
17599 if test yes != "$lt_cv_apple_cc_single_mod"; then
17600 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
17601 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
17602 fi
17603
17604 else
17605 ld_shlibs_CXX=no
17606 fi
17607
17608 ;;
17609
17610 os2*)
17611 hardcode_libdir_flag_spec_CXX='-L$libdir'
17612 hardcode_minus_L_CXX=yes
17613 allow_undefined_flag_CXX=unsupported
17614 shrext_cmds=.dll
17615 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17616 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17617 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17618 $ECHO EXPORTS >> $output_objdir/$libname.def~
17619 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17620 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17621 emximp -o $lib $output_objdir/$libname.def'
17622 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17623 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17624 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17625 $ECHO EXPORTS >> $output_objdir/$libname.def~
17626 prefix_cmds="$SED"~
17627 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17628 prefix_cmds="$prefix_cmds -e 1d";
17629 fi~
17630 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17631 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17632 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17633 emximp -o $lib $output_objdir/$libname.def'
17634 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17635 enable_shared_with_static_runtimes_CXX=yes
17636 ;;
17637
17638 dgux*)
17639 case $cc_basename in
17640 ec++*)
17641 # FIXME: insert proper C++ library support
17642 ld_shlibs_CXX=no
17643 ;;
17644 ghcx*)
17645 # Green Hills C++ Compiler
17646 # FIXME: insert proper C++ library support
17647 ld_shlibs_CXX=no
17648 ;;
17649 *)
17650 # FIXME: insert proper C++ library support
17651 ld_shlibs_CXX=no
17652 ;;
17653 esac
17654 ;;
17655
17656 freebsd2.*)
17657 # C++ shared libraries reported to be fairly broken before
17658 # switch to ELF
17659 ld_shlibs_CXX=no
17660 ;;
17661
17662 freebsd-elf*)
17663 archive_cmds_need_lc_CXX=no
17664 ;;
17665
17666 freebsd* | dragonfly*)
17667 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17668 # conventions
17669 ld_shlibs_CXX=yes
17670 ;;
17671
17672 haiku*)
17673 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17674 link_all_deplibs_CXX=yes
17675 ;;
17676
17677 hpux9*)
17678 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17679 hardcode_libdir_separator_CXX=:
17680 export_dynamic_flag_spec_CXX='$wl-E'
17681 hardcode_direct_CXX=yes
17682 hardcode_minus_L_CXX=yes # Not in the search PATH,
17683 # but as the default
17684 # location of the library.
17685
17686 case $cc_basename in
17687 CC*)
17688 # FIXME: insert proper C++ library support
17689 ld_shlibs_CXX=no
17690 ;;
17691 aCC*)
17692 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17693 # Commands to make compiler produce verbose output that lists
17694 # what "hidden" libraries, object files and flags are used when
17695 # linking a shared library.
17696 #
17697 # There doesn't appear to be a way to prevent this compiler from
17698 # explicitly linking system object files so we need to strip them
17699 # from the output so that they don't get included in the library
17700 # dependencies.
17701 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17702 ;;
17703 *)
17704 if test yes = "$GXX"; then
17705 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17706 else
17707 # FIXME: insert proper C++ library support
17708 ld_shlibs_CXX=no
17709 fi
17710 ;;
17711 esac
17712 ;;
17713
17714 hpux10*|hpux11*)
17715 if test no = "$with_gnu_ld"; then
17716 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17717 hardcode_libdir_separator_CXX=:
17718
17719 case $host_cpu in
17720 hppa*64*|ia64*)
17721 ;;
17722 *)
17723 export_dynamic_flag_spec_CXX='$wl-E'
17724 ;;
17725 esac
17726 fi
17727 case $host_cpu in
17728 hppa*64*|ia64*)
17729 hardcode_direct_CXX=no
17730 hardcode_shlibpath_var_CXX=no
17731 ;;
17732 *)
17733 hardcode_direct_CXX=yes
17734 hardcode_direct_absolute_CXX=yes
17735 hardcode_minus_L_CXX=yes # Not in the search PATH,
17736 # but as the default
17737 # location of the library.
17738 ;;
17739 esac
17740
17741 case $cc_basename in
17742 CC*)
17743 # FIXME: insert proper C++ library support
17744 ld_shlibs_CXX=no
17745 ;;
17746 aCC*)
17747 case $host_cpu in
17748 hppa*64*)
17749 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17750 ;;
17751 ia64*)
17752 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17753 ;;
17754 *)
17755 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17756 ;;
17757 esac
17758 # Commands to make compiler produce verbose output that lists
17759 # what "hidden" libraries, object files and flags are used when
17760 # linking a shared library.
17761 #
17762 # There doesn't appear to be a way to prevent this compiler from
17763 # explicitly linking system object files so we need to strip them
17764 # from the output so that they don't get included in the library
17765 # dependencies.
17766 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17767 ;;
17768 *)
17769 if test yes = "$GXX"; then
17770 if test no = "$with_gnu_ld"; then
17771 case $host_cpu in
17772 hppa*64*)
17773 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17774 ;;
17775 ia64*)
17776 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17777 ;;
17778 *)
17779 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17780 ;;
17781 esac
17782 fi
17783 else
17784 # FIXME: insert proper C++ library support
17785 ld_shlibs_CXX=no
17786 fi
17787 ;;
17788 esac
17789 ;;
17790
17791 interix[3-9]*)
17792 hardcode_direct_CXX=no
17793 hardcode_shlibpath_var_CXX=no
17794 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17795 export_dynamic_flag_spec_CXX='$wl-E'
17796 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17797 # Instead, shared libraries are loaded at an image base (0x10000000 by
17798 # default) and relocated if they conflict, which is a slow very memory
17799 # consuming and fragmenting process. To avoid this, we pick a random,
17800 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17801 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17802 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17803 archive_expsym_cmds_CXX='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'
17804 ;;
17805 irix5* | irix6*)
17806 case $cc_basename in
17807 CC*)
17808 # SGI C++
17809 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17810
17811 # Archives containing C++ object files must be created using
17812 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17813 # necessary to make sure instantiated templates are included
17814 # in the archive.
17815 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17816 ;;
17817 *)
17818 if test yes = "$GXX"; then
17819 if test no = "$with_gnu_ld"; then
17820 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
17821 else
17822 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
17823 fi
17824 fi
17825 link_all_deplibs_CXX=yes
17826 ;;
17827 esac
17828 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17829 hardcode_libdir_separator_CXX=:
17830 inherit_rpath_CXX=yes
17831 ;;
17832
17833 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17834 case $cc_basename in
17835 KCC*)
17836 # Kuck and Associates, Inc. (KAI) C++ Compiler
17837
17838 # KCC will only create a shared library if the output file
17839 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17840 # to its proper name (with version) after linking.
17841 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17842 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
17843 # Commands to make compiler produce verbose output that lists
17844 # what "hidden" libraries, object files and flags are used when
17845 # linking a shared library.
17846 #
17847 # There doesn't appear to be a way to prevent this compiler from
17848 # explicitly linking system object files so we need to strip them
17849 # from the output so that they don't get included in the library
17850 # dependencies.
17851 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17852
17853 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17854 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17855
17856 # Archives containing C++ object files must be created using
17857 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17858 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17859 ;;
17860 icpc* | ecpc* )
17861 # Intel C++
17862 with_gnu_ld=yes
17863 # version 8.0 and above of icpc choke on multiply defined symbols
17864 # if we add $predep_objects and $postdep_objects, however 7.1 and
17865 # earlier do not add the objects themselves.
17866 case `$CC -V 2>&1` in
17867 *"Version 7."*)
17868 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17869 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17870 ;;
17871 *) # Version 8.0 or newer
17872 tmp_idyn=
17873 case $host_cpu in
17874 ia64*) tmp_idyn=' -i_dynamic';;
17875 esac
17876 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17877 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17878 ;;
17879 esac
17880 archive_cmds_need_lc_CXX=no
17881 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17882 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17883 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17884 ;;
17885 pgCC* | pgcpp*)
17886 # Portland Group C++ compiler
17887 case `$CC -V` in
17888 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17889 prelink_cmds_CXX='tpldir=Template.dir~
17890 rm -rf $tpldir~
17891 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17892 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17893 old_archive_cmds_CXX='tpldir=Template.dir~
17894 rm -rf $tpldir~
17895 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17896 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17897 $RANLIB $oldlib'
17898 archive_cmds_CXX='tpldir=Template.dir~
17899 rm -rf $tpldir~
17900 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17901 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17902 archive_expsym_cmds_CXX='tpldir=Template.dir~
17903 rm -rf $tpldir~
17904 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17905 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17906 ;;
17907 *) # Version 6 and above use weak symbols
17908 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17909 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17910 ;;
17911 esac
17912
17913 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17914 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17915 whole_archive_flag_spec_CXX='$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'
17916 ;;
17917 cxx*)
17918 # Compaq C++
17919 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17920 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
17921
17922 runpath_var=LD_RUN_PATH
17923 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17924 hardcode_libdir_separator_CXX=:
17925
17926 # Commands to make compiler produce verbose output that lists
17927 # what "hidden" libraries, object files and flags are used when
17928 # linking a shared library.
17929 #
17930 # There doesn't appear to be a way to prevent this compiler from
17931 # explicitly linking system object files so we need to strip them
17932 # from the output so that they don't get included in the library
17933 # dependencies.
17934 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
17935 ;;
17936 xl* | mpixl* | bgxl*)
17937 # IBM XL 8.0 on PPC, with GNU ld
17938 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17939 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17940 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17941 if test yes = "$supports_anon_versioning"; then
17942 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17944 echo "local: *; };" >> $output_objdir/$libname.ver~
17945 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17946 fi
17947 ;;
17948 *)
17949 case `$CC -V 2>&1 | sed 5q` in
17950 *Sun\ C*)
17951 # Sun C++ 5.9
17952 no_undefined_flag_CXX=' -zdefs'
17953 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17954 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
17955 hardcode_libdir_flag_spec_CXX='-R$libdir'
17956 whole_archive_flag_spec_CXX='$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'
17957 compiler_needs_object_CXX=yes
17958
17959 # Not sure whether something based on
17960 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17961 # would be better.
17962 output_verbose_link_cmd='func_echo_all'
17963
17964 # Archives containing C++ object files must be created using
17965 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17966 # necessary to make sure instantiated templates are included
17967 # in the archive.
17968 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17969 ;;
17970 esac
17971 ;;
17972 esac
17973 ;;
17974
17975 lynxos*)
17976 # FIXME: insert proper C++ library support
17977 ld_shlibs_CXX=no
17978 ;;
17979
17980 m88k*)
17981 # FIXME: insert proper C++ library support
17982 ld_shlibs_CXX=no
17983 ;;
17984
17985 mvs*)
17986 case $cc_basename in
17987 cxx*)
17988 # FIXME: insert proper C++ library support
17989 ld_shlibs_CXX=no
17990 ;;
17991 *)
17992 # FIXME: insert proper C++ library support
17993 ld_shlibs_CXX=no
17994 ;;
17995 esac
17996 ;;
17997
17998 netbsd*)
17999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18000 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18001 wlarc=
18002 hardcode_libdir_flag_spec_CXX='-R$libdir'
18003 hardcode_direct_CXX=yes
18004 hardcode_shlibpath_var_CXX=no
18005 fi
18006 # Workaround some broken pre-1.5 toolchains
18007 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18008 ;;
18009
18010 *nto* | *qnx*)
18011 ld_shlibs_CXX=yes
18012 ;;
18013
18014 openbsd* | bitrig*)
18015 if test -f /usr/libexec/ld.so; then
18016 hardcode_direct_CXX=yes
18017 hardcode_shlibpath_var_CXX=no
18018 hardcode_direct_absolute_CXX=yes
18019 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18020 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18021 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
18022 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
18023 export_dynamic_flag_spec_CXX='$wl-E'
18024 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18025 fi
18026 output_verbose_link_cmd=func_echo_all
18027 else
18028 ld_shlibs_CXX=no
18029 fi
18030 ;;
18031
18032 osf3* | osf4* | osf5*)
18033 case $cc_basename in
18034 KCC*)
18035 # Kuck and Associates, Inc. (KAI) C++ Compiler
18036
18037 # KCC will only create a shared library if the output file
18038 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18039 # to its proper name (with version) after linking.
18040 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18041
18042 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18043 hardcode_libdir_separator_CXX=:
18044
18045 # Archives containing C++ object files must be created using
18046 # the KAI C++ compiler.
18047 case $host in
18048 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18049 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18050 esac
18051 ;;
18052 RCC*)
18053 # Rational C++ 2.4.1
18054 # FIXME: insert proper C++ library support
18055 ld_shlibs_CXX=no
18056 ;;
18057 cxx*)
18058 case $host in
18059 osf3*)
18060 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18061 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
18062 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18063 ;;
18064 *)
18065 allow_undefined_flag_CXX=' -expect_unresolved \*'
18066 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
18067 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18068 echo "-hidden">> $lib.exp~
18069 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
18070 $RM $lib.exp'
18071 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18072 ;;
18073 esac
18074
18075 hardcode_libdir_separator_CXX=:
18076
18077 # Commands to make compiler produce verbose output that lists
18078 # what "hidden" libraries, object files and flags are used when
18079 # linking a shared library.
18080 #
18081 # There doesn't appear to be a way to prevent this compiler from
18082 # explicitly linking system object files so we need to strip them
18083 # from the output so that they don't get included in the library
18084 # dependencies.
18085 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18086 ;;
18087 *)
18088 if test yes,no = "$GXX,$with_gnu_ld"; then
18089 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18090 case $host in
18091 osf3*)
18092 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
18093 ;;
18094 *)
18095 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
18096 ;;
18097 esac
18098
18099 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18100 hardcode_libdir_separator_CXX=:
18101
18102 # Commands to make compiler produce verbose output that lists
18103 # what "hidden" libraries, object files and flags are used when
18104 # linking a shared library.
18105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18106
18107 else
18108 # FIXME: insert proper C++ library support
18109 ld_shlibs_CXX=no
18110 fi
18111 ;;
18112 esac
18113 ;;
18114
18115 psos*)
18116 # FIXME: insert proper C++ library support
18117 ld_shlibs_CXX=no
18118 ;;
18119
18120 sunos4*)
18121 case $cc_basename in
18122 CC*)
18123 # Sun C++ 4.x
18124 # FIXME: insert proper C++ library support
18125 ld_shlibs_CXX=no
18126 ;;
18127 lcc*)
18128 # Lucid
18129 # FIXME: insert proper C++ library support
18130 ld_shlibs_CXX=no
18131 ;;
18132 *)
18133 # FIXME: insert proper C++ library support
18134 ld_shlibs_CXX=no
18135 ;;
18136 esac
18137 ;;
18138
18139 solaris*)
18140 case $cc_basename in
18141 CC* | sunCC*)
18142 # Sun C++ 4.2, 5.x and Centerline C++
18143 archive_cmds_need_lc_CXX=yes
18144 no_undefined_flag_CXX=' -zdefs'
18145 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18146 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18147 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18148
18149 hardcode_libdir_flag_spec_CXX='-R$libdir'
18150 hardcode_shlibpath_var_CXX=no
18151 case $host_os in
18152 solaris2.[0-5] | solaris2.[0-5].*) ;;
18153 *)
18154 # The compiler driver will combine and reorder linker options,
18155 # but understands '-z linker_flag'.
18156 # Supported since Solaris 2.6 (maybe 2.5.1?)
18157 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18158 ;;
18159 esac
18160 link_all_deplibs_CXX=yes
18161
18162 output_verbose_link_cmd='func_echo_all'
18163
18164 # Archives containing C++ object files must be created using
18165 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18166 # necessary to make sure instantiated templates are included
18167 # in the archive.
18168 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18169 ;;
18170 gcx*)
18171 # Green Hills C++ Compiler
18172 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18173
18174 # The C++ compiler must be used to create the archive.
18175 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18176 ;;
18177 *)
18178 # GNU C++ compiler with Solaris linker
18179 if test yes,no = "$GXX,$with_gnu_ld"; then
18180 no_undefined_flag_CXX=' $wl-z ${wl}defs'
18181 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18182 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18183 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18184 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18185
18186 # Commands to make compiler produce verbose output that lists
18187 # what "hidden" libraries, object files and flags are used when
18188 # linking a shared library.
18189 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18190 else
18191 # g++ 2.7 appears to require '-G' NOT '-shared' on this
18192 # platform.
18193 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18194 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18195 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18196
18197 # Commands to make compiler produce verbose output that lists
18198 # what "hidden" libraries, object files and flags are used when
18199 # linking a shared library.
18200 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18201 fi
18202
18203 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
18204 case $host_os in
18205 solaris2.[0-5] | solaris2.[0-5].*) ;;
18206 *)
18207 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18208 ;;
18209 esac
18210 fi
18211 ;;
18212 esac
18213 ;;
18214
18215 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18216 no_undefined_flag_CXX='$wl-z,text'
18217 archive_cmds_need_lc_CXX=no
18218 hardcode_shlibpath_var_CXX=no
18219 runpath_var='LD_RUN_PATH'
18220
18221 case $cc_basename in
18222 CC*)
18223 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18224 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18225 ;;
18226 *)
18227 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18228 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18229 ;;
18230 esac
18231 ;;
18232
18233 sysv5* | sco3.2v5* | sco5v6*)
18234 # Note: We CANNOT use -z defs as we might desire, because we do not
18235 # link with -lc, and that would cause any symbols used from libc to
18236 # always be unresolved, which means just about no library would
18237 # ever link correctly. If we're not using GNU ld we use -z text
18238 # though, which does catch some bad symbols but isn't as heavy-handed
18239 # as -z defs.
18240 no_undefined_flag_CXX='$wl-z,text'
18241 allow_undefined_flag_CXX='$wl-z,nodefs'
18242 archive_cmds_need_lc_CXX=no
18243 hardcode_shlibpath_var_CXX=no
18244 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
18245 hardcode_libdir_separator_CXX=':'
18246 link_all_deplibs_CXX=yes
18247 export_dynamic_flag_spec_CXX='$wl-Bexport'
18248 runpath_var='LD_RUN_PATH'
18249
18250 case $cc_basename in
18251 CC*)
18252 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18253 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18254 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18255 '"$old_archive_cmds_CXX"
18256 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18257 '"$reload_cmds_CXX"
18258 ;;
18259 *)
18260 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18261 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18262 ;;
18263 esac
18264 ;;
18265
18266 tandem*)
18267 case $cc_basename in
18268 NCC*)
18269 # NonStop-UX NCC 3.20
18270 # FIXME: insert proper C++ library support
18271 ld_shlibs_CXX=no
18272 ;;
18273 *)
18274 # FIXME: insert proper C++ library support
18275 ld_shlibs_CXX=no
18276 ;;
18277 esac
18278 ;;
18279
18280 vxworks*)
18281 # FIXME: insert proper C++ library support
18282 ld_shlibs_CXX=no
18283 ;;
18284
18285 *)
18286 # FIXME: insert proper C++ library support
18287 ld_shlibs_CXX=no
18288 ;;
18289 esac
18290
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18292$as_echo "$ld_shlibs_CXX" >&6; }
18293 test no = "$ld_shlibs_CXX" && can_build_shared=no
18294
18295 GCC_CXX=$GXX
18296 LD_CXX=$LD
18297
18298 ## CAVEAT EMPTOR:
18299 ## There is no encapsulation within the following macros, do not change
18300 ## the running order or otherwise move them around unless you know exactly
18301 ## what you are doing...
18302 # Dependencies to place before and after the object being linked:
18303predep_objects_CXX=
18304postdep_objects_CXX=
18305predeps_CXX=
18306postdeps_CXX=
18307compiler_lib_search_path_CXX=
18308
18309cat > conftest.$ac_ext <<_LT_EOF
18310class Foo
18311{
18312public:
18313 Foo (void) { a = 0; }
18314private:
18315 int a;
18316};
18317_LT_EOF
18318
18319
18320_lt_libdeps_save_CFLAGS=$CFLAGS
18321case "$CC $CFLAGS " in #(
18322*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18323*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18324*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
18325esac
18326
18327if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18328 (eval $ac_compile) 2>&5
18329 ac_status=$?
18330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18331 test $ac_status = 0; }; then
18332 # Parse the compiler output and extract the necessary
18333 # objects, libraries and library flags.
18334
18335 # Sentinel used to keep track of whether or not we are before
18336 # the conftest object file.
18337 pre_test_object_deps_done=no
18338
18339 for p in `eval "$output_verbose_link_cmd"`; do
18340 case $prev$p in
18341
18342 -L* | -R* | -l*)
18343 # Some compilers place space between "-{L,R}" and the path.
18344 # Remove the space.
18345 if test x-L = "$p" ||
18346 test x-R = "$p"; then
18347 prev=$p
18348 continue
18349 fi
18350
18351 # Expand the sysroot to ease extracting the directories later.
18352 if test -z "$prev"; then
18353 case $p in
18354 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18355 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18356 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18357 esac
18358 fi
18359 case $p in
18360 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18361 esac
18362 if test no = "$pre_test_object_deps_done"; then
18363 case $prev in
18364 -L | -R)
18365 # Internal compiler library paths should come after those
18366 # provided the user. The postdeps already come after the
18367 # user supplied libs so there is no need to process them.
18368 if test -z "$compiler_lib_search_path_CXX"; then
18369 compiler_lib_search_path_CXX=$prev$p
18370 else
18371 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
18372 fi
18373 ;;
18374 # The "-l" case would never come before the object being
18375 # linked, so don't bother handling this case.
18376 esac
18377 else
18378 if test -z "$postdeps_CXX"; then
18379 postdeps_CXX=$prev$p
18380 else
18381 postdeps_CXX="${postdeps_CXX} $prev$p"
18382 fi
18383 fi
18384 prev=
18385 ;;
18386
18387 *.lto.$objext) ;; # Ignore GCC LTO objects
18388 *.$objext)
18389 # This assumes that the test object file only shows up
18390 # once in the compiler output.
18391 if test "$p" = "conftest.$objext"; then
18392 pre_test_object_deps_done=yes
18393 continue
18394 fi
18395
18396 if test no = "$pre_test_object_deps_done"; then
18397 if test -z "$predep_objects_CXX"; then
18398 predep_objects_CXX=$p
18399 else
18400 predep_objects_CXX="$predep_objects_CXX $p"
18401 fi
18402 else
18403 if test -z "$postdep_objects_CXX"; then
18404 postdep_objects_CXX=$p
18405 else
18406 postdep_objects_CXX="$postdep_objects_CXX $p"
18407 fi
18408 fi
18409 ;;
18410
18411 *) ;; # Ignore the rest.
18412
18413 esac
18414 done
18415
18416 # Clean up.
18417 rm -f a.out a.exe
18418else
18419 echo "libtool.m4: error: problem compiling CXX test program"
18420fi
18421
18422$RM -f confest.$objext
18423CFLAGS=$_lt_libdeps_save_CFLAGS
18424
18425# PORTME: override above test on systems where it is broken
18426case $host_os in
18427interix[3-9]*)
18428 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18429 # hack all around it, let's just trust "g++" to DTRT.
18430 predep_objects_CXX=
18431 postdep_objects_CXX=
18432 postdeps_CXX=
18433 ;;
18434esac
18435
18436
18437case " $postdeps_CXX " in
18438*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18439esac
18440 compiler_lib_search_dirs_CXX=
18441if test -n "${compiler_lib_search_path_CXX}"; then
18442 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
18443fi
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475 lt_prog_compiler_wl_CXX=
18476lt_prog_compiler_pic_CXX=
18477lt_prog_compiler_static_CXX=
18478
18479
18480 # C++ specific cases for pic, static, wl, etc.
18481 if test yes = "$GXX"; then
18482 lt_prog_compiler_wl_CXX='-Wl,'
18483 lt_prog_compiler_static_CXX='-static'
18484
18485 case $host_os in
18486 aix*)
18487 # All AIX code is PIC.
18488 if test ia64 = "$host_cpu"; then
18489 # AIX 5 now supports IA64 processor
18490 lt_prog_compiler_static_CXX='-Bstatic'
18491 fi
18492 lt_prog_compiler_pic_CXX='-fPIC'
18493 ;;
18494
18495 amigaos*)
18496 case $host_cpu in
18497 powerpc)
18498 # see comment about AmigaOS4 .so support
18499 lt_prog_compiler_pic_CXX='-fPIC'
18500 ;;
18501 m68k)
18502 # FIXME: we need at least 68020 code to build shared libraries, but
18503 # adding the '-m68020' flag to GCC prevents building anything better,
18504 # like '-m68040'.
18505 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18506 ;;
18507 esac
18508 ;;
18509
18510 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18511 # PIC is the default for these OSes.
18512 ;;
18513 mingw* | cygwin* | os2* | pw32* | cegcc*)
18514 # This hack is so that the source file can tell whether it is being
18515 # built for inclusion in a dll (and should export symbols for example).
18516 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18517 # (--disable-auto-import) libraries
18518 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18519 case $host_os in
18520 os2*)
18521 lt_prog_compiler_static_CXX='$wl-static'
18522 ;;
18523 esac
18524 ;;
18525 darwin* | rhapsody*)
18526 # PIC is the default on this platform
18527 # Common symbols not allowed in MH_DYLIB files
18528 lt_prog_compiler_pic_CXX='-fno-common'
18529 ;;
18530 *djgpp*)
18531 # DJGPP does not support shared libraries at all
18532 lt_prog_compiler_pic_CXX=
18533 ;;
18534 haiku*)
18535 # PIC is the default for Haiku.
18536 # The "-static" flag exists, but is broken.
18537 lt_prog_compiler_static_CXX=
18538 ;;
18539 interix[3-9]*)
18540 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18541 # Instead, we relocate shared libraries at runtime.
18542 ;;
18543 sysv4*MP*)
18544 if test -d /usr/nec; then
18545 lt_prog_compiler_pic_CXX=-Kconform_pic
18546 fi
18547 ;;
18548 hpux*)
18549 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18550 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18551 # sets the default TLS model and affects inlining.
18552 case $host_cpu in
18553 hppa*64*)
18554 ;;
18555 *)
18556 lt_prog_compiler_pic_CXX='-fPIC'
18557 ;;
18558 esac
18559 ;;
18560 *qnx* | *nto*)
18561 # QNX uses GNU C++, but need to define -shared option too, otherwise
18562 # it will coredump.
18563 lt_prog_compiler_pic_CXX='-fPIC -shared'
18564 ;;
18565 *)
18566 lt_prog_compiler_pic_CXX='-fPIC'
18567 ;;
18568 esac
18569 else
18570 case $host_os in
18571 aix[4-9]*)
18572 # All AIX code is PIC.
18573 if test ia64 = "$host_cpu"; then
18574 # AIX 5 now supports IA64 processor
18575 lt_prog_compiler_static_CXX='-Bstatic'
18576 else
18577 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18578 fi
18579 ;;
18580 chorus*)
18581 case $cc_basename in
18582 cxch68*)
18583 # Green Hills C++ Compiler
18584 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
18585 ;;
18586 esac
18587 ;;
18588 mingw* | cygwin* | os2* | pw32* | cegcc*)
18589 # This hack is so that the source file can tell whether it is being
18590 # built for inclusion in a dll (and should export symbols for example).
18591 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18592 ;;
18593 dgux*)
18594 case $cc_basename in
18595 ec++*)
18596 lt_prog_compiler_pic_CXX='-KPIC'
18597 ;;
18598 ghcx*)
18599 # Green Hills C++ Compiler
18600 lt_prog_compiler_pic_CXX='-pic'
18601 ;;
18602 *)
18603 ;;
18604 esac
18605 ;;
18606 freebsd* | dragonfly*)
18607 # FreeBSD uses GNU C++
18608 ;;
18609 hpux9* | hpux10* | hpux11*)
18610 case $cc_basename in
18611 CC*)
18612 lt_prog_compiler_wl_CXX='-Wl,'
18613 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18614 if test ia64 != "$host_cpu"; then
18615 lt_prog_compiler_pic_CXX='+Z'
18616 fi
18617 ;;
18618 aCC*)
18619 lt_prog_compiler_wl_CXX='-Wl,'
18620 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18621 case $host_cpu in
18622 hppa*64*|ia64*)
18623 # +Z the default
18624 ;;
18625 *)
18626 lt_prog_compiler_pic_CXX='+Z'
18627 ;;
18628 esac
18629 ;;
18630 *)
18631 ;;
18632 esac
18633 ;;
18634 interix*)
18635 # This is c89, which is MS Visual C++ (no shared libs)
18636 # Anyone wants to do a port?
18637 ;;
18638 irix5* | irix6* | nonstopux*)
18639 case $cc_basename in
18640 CC*)
18641 lt_prog_compiler_wl_CXX='-Wl,'
18642 lt_prog_compiler_static_CXX='-non_shared'
18643 # CC pic flag -KPIC is the default.
18644 ;;
18645 *)
18646 ;;
18647 esac
18648 ;;
18649 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18650 case $cc_basename in
18651 KCC*)
18652 # KAI C++ Compiler
18653 lt_prog_compiler_wl_CXX='--backend -Wl,'
18654 lt_prog_compiler_pic_CXX='-fPIC'
18655 ;;
18656 ecpc* )
18657 # old Intel C++ for x86_64, which still supported -KPIC.
18658 lt_prog_compiler_wl_CXX='-Wl,'
18659 lt_prog_compiler_pic_CXX='-KPIC'
18660 lt_prog_compiler_static_CXX='-static'
18661 ;;
18662 icpc* )
18663 # Intel C++, used to be incompatible with GCC.
18664 # ICC 10 doesn't accept -KPIC any more.
18665 lt_prog_compiler_wl_CXX='-Wl,'
18666 lt_prog_compiler_pic_CXX='-fPIC'
18667 lt_prog_compiler_static_CXX='-static'
18668 ;;
18669 pgCC* | pgcpp*)
18670 # Portland Group C++ compiler
18671 lt_prog_compiler_wl_CXX='-Wl,'
18672 lt_prog_compiler_pic_CXX='-fpic'
18673 lt_prog_compiler_static_CXX='-Bstatic'
18674 ;;
18675 cxx*)
18676 # Compaq C++
18677 # Make sure the PIC flag is empty. It appears that all Alpha
18678 # Linux and Compaq Tru64 Unix objects are PIC.
18679 lt_prog_compiler_pic_CXX=
18680 lt_prog_compiler_static_CXX='-non_shared'
18681 ;;
18682 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18683 # IBM XL 8.0, 9.0 on PPC and BlueGene
18684 lt_prog_compiler_wl_CXX='-Wl,'
18685 lt_prog_compiler_pic_CXX='-qpic'
18686 lt_prog_compiler_static_CXX='-qstaticlink'
18687 ;;
18688 *)
18689 case `$CC -V 2>&1 | sed 5q` in
18690 *Sun\ C*)
18691 # Sun C++ 5.9
18692 lt_prog_compiler_pic_CXX='-KPIC'
18693 lt_prog_compiler_static_CXX='-Bstatic'
18694 lt_prog_compiler_wl_CXX='-Qoption ld '
18695 ;;
18696 esac
18697 ;;
18698 esac
18699 ;;
18700 lynxos*)
18701 ;;
18702 m88k*)
18703 ;;
18704 mvs*)
18705 case $cc_basename in
18706 cxx*)
18707 lt_prog_compiler_pic_CXX='-W c,exportall'
18708 ;;
18709 *)
18710 ;;
18711 esac
18712 ;;
18713 netbsd* | netbsdelf*-gnu)
18714 ;;
18715 *qnx* | *nto*)
18716 # QNX uses GNU C++, but need to define -shared option too, otherwise
18717 # it will coredump.
18718 lt_prog_compiler_pic_CXX='-fPIC -shared'
18719 ;;
18720 osf3* | osf4* | osf5*)
18721 case $cc_basename in
18722 KCC*)
18723 lt_prog_compiler_wl_CXX='--backend -Wl,'
18724 ;;
18725 RCC*)
18726 # Rational C++ 2.4.1
18727 lt_prog_compiler_pic_CXX='-pic'
18728 ;;
18729 cxx*)
18730 # Digital/Compaq C++
18731 lt_prog_compiler_wl_CXX='-Wl,'
18732 # Make sure the PIC flag is empty. It appears that all Alpha
18733 # Linux and Compaq Tru64 Unix objects are PIC.
18734 lt_prog_compiler_pic_CXX=
18735 lt_prog_compiler_static_CXX='-non_shared'
18736 ;;
18737 *)
18738 ;;
18739 esac
18740 ;;
18741 psos*)
18742 ;;
18743 solaris*)
18744 case $cc_basename in
18745 CC* | sunCC*)
18746 # Sun C++ 4.2, 5.x and Centerline C++
18747 lt_prog_compiler_pic_CXX='-KPIC'
18748 lt_prog_compiler_static_CXX='-Bstatic'
18749 lt_prog_compiler_wl_CXX='-Qoption ld '
18750 ;;
18751 gcx*)
18752 # Green Hills C++ Compiler
18753 lt_prog_compiler_pic_CXX='-PIC'
18754 ;;
18755 *)
18756 ;;
18757 esac
18758 ;;
18759 sunos4*)
18760 case $cc_basename in
18761 CC*)
18762 # Sun C++ 4.x
18763 lt_prog_compiler_pic_CXX='-pic'
18764 lt_prog_compiler_static_CXX='-Bstatic'
18765 ;;
18766 lcc*)
18767 # Lucid
18768 lt_prog_compiler_pic_CXX='-pic'
18769 ;;
18770 *)
18771 ;;
18772 esac
18773 ;;
18774 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18775 case $cc_basename in
18776 CC*)
18777 lt_prog_compiler_wl_CXX='-Wl,'
18778 lt_prog_compiler_pic_CXX='-KPIC'
18779 lt_prog_compiler_static_CXX='-Bstatic'
18780 ;;
18781 esac
18782 ;;
18783 tandem*)
18784 case $cc_basename in
18785 NCC*)
18786 # NonStop-UX NCC 3.20
18787 lt_prog_compiler_pic_CXX='-KPIC'
18788 ;;
18789 *)
18790 ;;
18791 esac
18792 ;;
18793 vxworks*)
18794 ;;
18795 *)
18796 lt_prog_compiler_can_build_shared_CXX=no
18797 ;;
18798 esac
18799 fi
18800
18801case $host_os in
18802 # For platforms that do not support PIC, -DPIC is meaningless:
18803 *djgpp*)
18804 lt_prog_compiler_pic_CXX=
18805 ;;
18806 *)
18807 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18808 ;;
18809esac
18810
18811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18812$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18813if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18814 $as_echo_n "(cached) " >&6
18815else
18816 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18817fi
18818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18819$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18820lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18821
18822#
18823# Check to make sure the PIC flag actually works.
18824#
18825if test -n "$lt_prog_compiler_pic_CXX"; then
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18827$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18828if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18829 $as_echo_n "(cached) " >&6
18830else
18831 lt_cv_prog_compiler_pic_works_CXX=no
18832 ac_outfile=conftest.$ac_objext
18833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18834 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
18835 # Insert the option either (1) after the last *FLAGS variable, or
18836 # (2) before a word containing "conftest.", or (3) at the end.
18837 # Note that $ac_compile itself does not contain backslashes and begins
18838 # with a dollar sign (not a hyphen), so the echo should work correctly.
18839 # The option is referenced via a variable to avoid confusing sed.
18840 lt_compile=`echo "$ac_compile" | $SED \
18841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18843 -e 's:$: $lt_compiler_flag:'`
18844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18845 (eval "$lt_compile" 2>conftest.err)
18846 ac_status=$?
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 if (exit $ac_status) && test -s "$ac_outfile"; then
18850 # The compiler can only warn and ignore the option if not recognized
18851 # So say no if there are warnings other than the usual output.
18852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18855 lt_cv_prog_compiler_pic_works_CXX=yes
18856 fi
18857 fi
18858 $RM conftest*
18859
18860fi
18861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18862$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18863
18864if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18865 case $lt_prog_compiler_pic_CXX in
18866 "" | " "*) ;;
18867 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18868 esac
18869else
18870 lt_prog_compiler_pic_CXX=
18871 lt_prog_compiler_can_build_shared_CXX=no
18872fi
18873
18874fi
18875
18876
18877
18878
18879
18880#
18881# Check to make sure the static flag actually works.
18882#
18883wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18885$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18886if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18887 $as_echo_n "(cached) " >&6
18888else
18889 lt_cv_prog_compiler_static_works_CXX=no
18890 save_LDFLAGS=$LDFLAGS
18891 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18892 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18894 # The linker can only warn and ignore the option if not recognized
18895 # So say no if there are warnings
18896 if test -s conftest.err; then
18897 # Append any errors to the config.log.
18898 cat conftest.err 1>&5
18899 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18901 if diff conftest.exp conftest.er2 >/dev/null; then
18902 lt_cv_prog_compiler_static_works_CXX=yes
18903 fi
18904 else
18905 lt_cv_prog_compiler_static_works_CXX=yes
18906 fi
18907 fi
18908 $RM -r conftest*
18909 LDFLAGS=$save_LDFLAGS
18910
18911fi
18912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18913$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18914
18915if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18916 :
18917else
18918 lt_prog_compiler_static_CXX=
18919fi
18920
18921
18922
18923
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18925$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18926if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18927 $as_echo_n "(cached) " >&6
18928else
18929 lt_cv_prog_compiler_c_o_CXX=no
18930 $RM -r conftest 2>/dev/null
18931 mkdir conftest
18932 cd conftest
18933 mkdir out
18934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18935
18936 lt_compiler_flag="-o out/conftest2.$ac_objext"
18937 # Insert the option either (1) after the last *FLAGS variable, or
18938 # (2) before a word containing "conftest.", or (3) at the end.
18939 # Note that $ac_compile itself does not contain backslashes and begins
18940 # with a dollar sign (not a hyphen), so the echo should work correctly.
18941 lt_compile=`echo "$ac_compile" | $SED \
18942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18944 -e 's:$: $lt_compiler_flag:'`
18945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18946 (eval "$lt_compile" 2>out/conftest.err)
18947 ac_status=$?
18948 cat out/conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18951 then
18952 # The compiler can only warn and ignore the option if not recognized
18953 # So say no if there are warnings
18954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18957 lt_cv_prog_compiler_c_o_CXX=yes
18958 fi
18959 fi
18960 chmod u+w . 2>&5
18961 $RM conftest*
18962 # SGI C++ compiler will create directory out/ii_files/ for
18963 # template instantiation
18964 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18965 $RM out/* && rmdir out
18966 cd ..
18967 $RM -r conftest
18968 $RM conftest*
18969
18970fi
18971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18972$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18973
18974
18975
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18977$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18978if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18979 $as_echo_n "(cached) " >&6
18980else
18981 lt_cv_prog_compiler_c_o_CXX=no
18982 $RM -r conftest 2>/dev/null
18983 mkdir conftest
18984 cd conftest
18985 mkdir out
18986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18987
18988 lt_compiler_flag="-o out/conftest2.$ac_objext"
18989 # Insert the option either (1) after the last *FLAGS variable, or
18990 # (2) before a word containing "conftest.", or (3) at the end.
18991 # Note that $ac_compile itself does not contain backslashes and begins
18992 # with a dollar sign (not a hyphen), so the echo should work correctly.
18993 lt_compile=`echo "$ac_compile" | $SED \
18994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18996 -e 's:$: $lt_compiler_flag:'`
18997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18998 (eval "$lt_compile" 2>out/conftest.err)
18999 ac_status=$?
19000 cat out/conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19003 then
19004 # The compiler can only warn and ignore the option if not recognized
19005 # So say no if there are warnings
19006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19009 lt_cv_prog_compiler_c_o_CXX=yes
19010 fi
19011 fi
19012 chmod u+w . 2>&5
19013 $RM conftest*
19014 # SGI C++ compiler will create directory out/ii_files/ for
19015 # template instantiation
19016 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19017 $RM out/* && rmdir out
19018 cd ..
19019 $RM -r conftest
19020 $RM conftest*
19021
19022fi
19023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19024$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19025
19026
19027
19028
19029hard_links=nottested
19030if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
19031 # do not overwrite the value of need_locks provided by the user
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19033$as_echo_n "checking if we can lock with hard links... " >&6; }
19034 hard_links=yes
19035 $RM conftest*
19036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19037 touch conftest.a
19038 ln conftest.a conftest.b 2>&5 || hard_links=no
19039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19041$as_echo "$hard_links" >&6; }
19042 if test no = "$hard_links"; then
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19044$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19045 need_locks=warn
19046 fi
19047else
19048 need_locks=no
19049fi
19050
19051
19052
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19054$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19055
19056 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19057 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19058 case $host_os in
19059 aix[4-9]*)
19060 # If we're using GNU nm, then we don't want the "-C" option.
19061 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
19062 # Without the "-l" option, or with the "-B" option, AIX nm treats
19063 # weak defined symbols like other global defined symbols, whereas
19064 # GNU nm marks them as "W".
19065 # While the 'weak' keyword is ignored in the Export File, we need
19066 # it in the Import File for the 'aix-soname' feature, so we have
19067 # to replace the "-B" option with "-P" for AIX nm.
19068 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19069 export_symbols_cmds_CXX='$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'
19070 else
19071 export_symbols_cmds_CXX='`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'
19072 fi
19073 ;;
19074 pw32*)
19075 export_symbols_cmds_CXX=$ltdll_cmds
19076 ;;
19077 cygwin* | mingw* | cegcc*)
19078 case $cc_basename in
19079 cl*)
19080 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19081 ;;
19082 *)
19083 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
19084 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19085 ;;
19086 esac
19087 ;;
19088 linux* | k*bsd*-gnu | gnu*)
19089 link_all_deplibs_CXX=no
19090 ;;
19091 *)
19092 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19093 ;;
19094 esac
19095
19096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19097$as_echo "$ld_shlibs_CXX" >&6; }
19098test no = "$ld_shlibs_CXX" && can_build_shared=no
19099
19100with_gnu_ld_CXX=$with_gnu_ld
19101
19102
19103
19104
19105
19106
19107#
19108# Do we need to explicitly link libc?
19109#
19110case "x$archive_cmds_need_lc_CXX" in
19111x|xyes)
19112 # Assume -lc should be added
19113 archive_cmds_need_lc_CXX=yes
19114
19115 if test yes,yes = "$GCC,$enable_shared"; then
19116 case $archive_cmds_CXX in
19117 *'~'*)
19118 # FIXME: we may have to deal with multi-command sequences.
19119 ;;
19120 '$CC '*)
19121 # Test whether the compiler implicitly links with -lc since on some
19122 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19123 # to ld, don't add -lc before -lgcc.
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19125$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19126if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
19127 $as_echo_n "(cached) " >&6
19128else
19129 $RM conftest*
19130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19131
19132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19133 (eval $ac_compile) 2>&5
19134 ac_status=$?
19135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19136 test $ac_status = 0; } 2>conftest.err; then
19137 soname=conftest
19138 lib=conftest
19139 libobjs=conftest.$ac_objext
19140 deplibs=
19141 wl=$lt_prog_compiler_wl_CXX
19142 pic_flag=$lt_prog_compiler_pic_CXX
19143 compiler_flags=-v
19144 linker_flags=-v
19145 verstring=
19146 output_objdir=.
19147 libname=conftest
19148 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19149 allow_undefined_flag_CXX=
19150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19151 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19152 ac_status=$?
19153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19154 test $ac_status = 0; }
19155 then
19156 lt_cv_archive_cmds_need_lc_CXX=no
19157 else
19158 lt_cv_archive_cmds_need_lc_CXX=yes
19159 fi
19160 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19161 else
19162 cat conftest.err 1>&5
19163 fi
19164 $RM conftest*
19165
19166fi
19167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19168$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19169 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19170 ;;
19171 esac
19172 fi
19173 ;;
19174esac
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19238$as_echo_n "checking dynamic linker characteristics... " >&6; }
19239
19240library_names_spec=
19241libname_spec='lib$name'
19242soname_spec=
19243shrext_cmds=.so
19244postinstall_cmds=
19245postuninstall_cmds=
19246finish_cmds=
19247finish_eval=
19248shlibpath_var=
19249shlibpath_overrides_runpath=unknown
19250version_type=none
19251dynamic_linker="$host_os ld.so"
19252sys_lib_dlsearch_path_spec="/lib /usr/lib"
19253need_lib_prefix=unknown
19254hardcode_into_libs=no
19255
19256# when you set need_version to no, make sure it does not cause -set_version
19257# flags to be left without arguments
19258need_version=unknown
19259
19260
19261
19262case $host_os in
19263aix3*)
19264 version_type=linux # correct to gnu/linux during the next big refactor
19265 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19266 shlibpath_var=LIBPATH
19267
19268 # AIX 3 has no versioning support, so we append a major version to the name.
19269 soname_spec='$libname$release$shared_ext$major'
19270 ;;
19271
19272aix[4-9]*)
19273 version_type=linux # correct to gnu/linux during the next big refactor
19274 need_lib_prefix=no
19275 need_version=no
19276 hardcode_into_libs=yes
19277 if test ia64 = "$host_cpu"; then
19278 # AIX 5 supports IA64
19279 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19280 shlibpath_var=LD_LIBRARY_PATH
19281 else
19282 # With GCC up to 2.95.x, collect2 would create an import file
19283 # for dependence libraries. The import file would start with
19284 # the line '#! .'. This would cause the generated library to
19285 # depend on '.', always an invalid library. This was fixed in
19286 # development snapshots of GCC prior to 3.0.
19287 case $host_os in
19288 aix4 | aix4.[01] | aix4.[01].*)
19289 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19290 echo ' yes '
19291 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19292 :
19293 else
19294 can_build_shared=no
19295 fi
19296 ;;
19297 esac
19298 # Using Import Files as archive members, it is possible to support
19299 # filename-based versioning of shared library archives on AIX. While
19300 # this would work for both with and without runtime linking, it will
19301 # prevent static linking of such archives. So we do filename-based
19302 # shared library versioning with .so extension only, which is used
19303 # when both runtime linking and shared linking is enabled.
19304 # Unfortunately, runtime linking may impact performance, so we do
19305 # not want this to be the default eventually. Also, we use the
19306 # versioned .so libs for executables only if there is the -brtl
19307 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
19308 # To allow for filename-based versioning support, we need to create
19309 # libNAME.so.V as an archive file, containing:
19310 # *) an Import File, referring to the versioned filename of the
19311 # archive as well as the shared archive member, telling the
19312 # bitwidth (32 or 64) of that shared object, and providing the
19313 # list of exported symbols of that shared object, eventually
19314 # decorated with the 'weak' keyword
19315 # *) the shared object with the F_LOADONLY flag set, to really avoid
19316 # it being seen by the linker.
19317 # At run time we better use the real file rather than another symlink,
19318 # but for link time we create the symlink libNAME.so -> libNAME.so.V
19319
19320 case $with_aix_soname,$aix_use_runtimelinking in
19321 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19322 # soname into executable. Probably we can add versioning support to
19323 # collect2, so additional links can be useful in future.
19324 aix,yes) # traditional libtool
19325 dynamic_linker='AIX unversionable lib.so'
19326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19327 # instead of lib<name>.a to let people know that these are not
19328 # typical AIX shared libraries.
19329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19330 ;;
19331 aix,no) # traditional AIX only
19332 dynamic_linker='AIX lib.a(lib.so.V)'
19333 # We preserve .a as extension for shared libraries through AIX4.2
19334 # and later when we are not doing run time linking.
19335 library_names_spec='$libname$release.a $libname.a'
19336 soname_spec='$libname$release$shared_ext$major'
19337 ;;
19338 svr4,*) # full svr4 only
19339 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19340 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19341 # We do not specify a path in Import Files, so LIBPATH fires.
19342 shlibpath_overrides_runpath=yes
19343 ;;
19344 *,yes) # both, prefer svr4
19345 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19346 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19347 # unpreferred sharedlib libNAME.a needs extra handling
19348 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"'
19349 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"'
19350 # We do not specify a path in Import Files, so LIBPATH fires.
19351 shlibpath_overrides_runpath=yes
19352 ;;
19353 *,no) # both, prefer aix
19354 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19355 library_names_spec='$libname$release.a $libname.a'
19356 soname_spec='$libname$release$shared_ext$major'
19357 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19358 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)'
19359 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"'
19360 ;;
19361 esac
19362 shlibpath_var=LIBPATH
19363 fi
19364 ;;
19365
19366amigaos*)
19367 case $host_cpu in
19368 powerpc)
19369 # Since July 2007 AmigaOS4 officially supports .so libraries.
19370 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19372 ;;
19373 m68k)
19374 library_names_spec='$libname.ixlibrary $libname.a'
19375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19376 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'
19377 ;;
19378 esac
19379 ;;
19380
19381beos*)
19382 library_names_spec='$libname$shared_ext'
19383 dynamic_linker="$host_os ld.so"
19384 shlibpath_var=LIBRARY_PATH
19385 ;;
19386
19387bsdi[45]*)
19388 version_type=linux # correct to gnu/linux during the next big refactor
19389 need_version=no
19390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19391 soname_spec='$libname$release$shared_ext$major'
19392 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19393 shlibpath_var=LD_LIBRARY_PATH
19394 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19395 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19396 # the default ld.so.conf also contains /usr/contrib/lib and
19397 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19398 # libtool to hard-code these into programs
19399 ;;
19400
19401cygwin* | mingw* | pw32* | cegcc*)
19402 version_type=windows
19403 shrext_cmds=.dll
19404 need_version=no
19405 need_lib_prefix=no
19406
19407 case $GCC,$cc_basename in
19408 yes,*)
19409 # gcc
19410 library_names_spec='$libname.dll.a'
19411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19412 postinstall_cmds='base_file=`basename \$file`~
19413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19414 dldir=$destdir/`dirname \$dlpath`~
19415 test -d \$dldir || mkdir -p \$dldir~
19416 $install_prog $dir/$dlname \$dldir/$dlname~
19417 chmod a+x \$dldir/$dlname~
19418 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19419 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19420 fi'
19421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19422 dlpath=$dir/\$dldll~
19423 $RM \$dlpath'
19424 shlibpath_overrides_runpath=yes
19425
19426 case $host_os in
19427 cygwin*)
19428 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19429 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19430
19431 ;;
19432 mingw* | cegcc*)
19433 # MinGW DLLs use traditional 'lib' prefix
19434 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19435 ;;
19436 pw32*)
19437 # pw32 DLLs use 'pw' prefix rather than 'lib'
19438 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19439 ;;
19440 esac
19441 dynamic_linker='Win32 ld.exe'
19442 ;;
19443
19444 *,cl*)
19445 # Native MSVC
19446 libname_spec='$name'
19447 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19448 library_names_spec='$libname.dll.lib'
19449
19450 case $build_os in
19451 mingw*)
19452 sys_lib_search_path_spec=
19453 lt_save_ifs=$IFS
19454 IFS=';'
19455 for lt_path in $LIB
19456 do
19457 IFS=$lt_save_ifs
19458 # Let DOS variable expansion print the short 8.3 style file name.
19459 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19460 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19461 done
19462 IFS=$lt_save_ifs
19463 # Convert to MSYS style.
19464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19465 ;;
19466 cygwin*)
19467 # Convert to unix form, then to dos form, then back to unix form
19468 # but this time dos style (no spaces!) so that the unix form looks
19469 # like /cygdrive/c/PROGRA~1:/cygdr...
19470 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19471 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19472 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19473 ;;
19474 *)
19475 sys_lib_search_path_spec=$LIB
19476 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19477 # It is most probably a Windows format PATH.
19478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19479 else
19480 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19481 fi
19482 # FIXME: find the short name or the path components, as spaces are
19483 # common. (e.g. "Program Files" -> "PROGRA~1")
19484 ;;
19485 esac
19486
19487 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19488 postinstall_cmds='base_file=`basename \$file`~
19489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19490 dldir=$destdir/`dirname \$dlpath`~
19491 test -d \$dldir || mkdir -p \$dldir~
19492 $install_prog $dir/$dlname \$dldir/$dlname'
19493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19494 dlpath=$dir/\$dldll~
19495 $RM \$dlpath'
19496 shlibpath_overrides_runpath=yes
19497 dynamic_linker='Win32 link.exe'
19498 ;;
19499
19500 *)
19501 # Assume MSVC wrapper
19502 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19503 dynamic_linker='Win32 ld.exe'
19504 ;;
19505 esac
19506 # FIXME: first we should search . and the directory the executable is in
19507 shlibpath_var=PATH
19508 ;;
19509
19510darwin* | rhapsody*)
19511 dynamic_linker="$host_os dyld"
19512 version_type=darwin
19513 need_lib_prefix=no
19514 need_version=no
19515 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19516 soname_spec='$libname$release$major$shared_ext'
19517 shlibpath_overrides_runpath=yes
19518 shlibpath_var=DYLD_LIBRARY_PATH
19519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19520
19521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19522 ;;
19523
19524dgux*)
19525 version_type=linux # correct to gnu/linux during the next big refactor
19526 need_lib_prefix=no
19527 need_version=no
19528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19529 soname_spec='$libname$release$shared_ext$major'
19530 shlibpath_var=LD_LIBRARY_PATH
19531 ;;
19532
19533freebsd* | dragonfly*)
19534 # DragonFly does not have aout. When/if they implement a new
19535 # versioning mechanism, adjust this.
19536 if test -x /usr/bin/objformat; then
19537 objformat=`/usr/bin/objformat`
19538 else
19539 case $host_os in
19540 freebsd[23].*) objformat=aout ;;
19541 *) objformat=elf ;;
19542 esac
19543 fi
19544 version_type=freebsd-$objformat
19545 case $version_type in
19546 freebsd-elf*)
19547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19548 soname_spec='$libname$release$shared_ext$major'
19549 need_version=no
19550 need_lib_prefix=no
19551 ;;
19552 freebsd-*)
19553 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19554 need_version=yes
19555 ;;
19556 esac
19557 shlibpath_var=LD_LIBRARY_PATH
19558 case $host_os in
19559 freebsd2.*)
19560 shlibpath_overrides_runpath=yes
19561 ;;
19562 freebsd3.[01]* | freebsdelf3.[01]*)
19563 shlibpath_overrides_runpath=yes
19564 hardcode_into_libs=yes
19565 ;;
19566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19568 shlibpath_overrides_runpath=no
19569 hardcode_into_libs=yes
19570 ;;
19571 *) # from 4.6 on, and DragonFly
19572 shlibpath_overrides_runpath=yes
19573 hardcode_into_libs=yes
19574 ;;
19575 esac
19576 ;;
19577
19578haiku*)
19579 version_type=linux # correct to gnu/linux during the next big refactor
19580 need_lib_prefix=no
19581 need_version=no
19582 dynamic_linker="$host_os runtime_loader"
19583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19584 soname_spec='$libname$release$shared_ext$major'
19585 shlibpath_var=LIBRARY_PATH
19586 shlibpath_overrides_runpath=no
19587 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19588 hardcode_into_libs=yes
19589 ;;
19590
19591hpux9* | hpux10* | hpux11*)
19592 # Give a soname corresponding to the major version so that dld.sl refuses to
19593 # link against other versions.
19594 version_type=sunos
19595 need_lib_prefix=no
19596 need_version=no
19597 case $host_cpu in
19598 ia64*)
19599 shrext_cmds='.so'
19600 hardcode_into_libs=yes
19601 dynamic_linker="$host_os dld.so"
19602 shlibpath_var=LD_LIBRARY_PATH
19603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19605 soname_spec='$libname$release$shared_ext$major'
19606 if test 32 = "$HPUX_IA64_MODE"; then
19607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19608 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19609 else
19610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19611 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19612 fi
19613 ;;
19614 hppa*64*)
19615 shrext_cmds='.sl'
19616 hardcode_into_libs=yes
19617 dynamic_linker="$host_os dld.sl"
19618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19621 soname_spec='$libname$release$shared_ext$major'
19622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19624 ;;
19625 *)
19626 shrext_cmds='.sl'
19627 dynamic_linker="$host_os dld.sl"
19628 shlibpath_var=SHLIB_PATH
19629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19631 soname_spec='$libname$release$shared_ext$major'
19632 ;;
19633 esac
19634 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19635 postinstall_cmds='chmod 555 $lib'
19636 # or fails outright, so override atomically:
19637 install_override_mode=555
19638 ;;
19639
19640interix[3-9]*)
19641 version_type=linux # correct to gnu/linux during the next big refactor
19642 need_lib_prefix=no
19643 need_version=no
19644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19645 soname_spec='$libname$release$shared_ext$major'
19646 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19647 shlibpath_var=LD_LIBRARY_PATH
19648 shlibpath_overrides_runpath=no
19649 hardcode_into_libs=yes
19650 ;;
19651
19652irix5* | irix6* | nonstopux*)
19653 case $host_os in
19654 nonstopux*) version_type=nonstopux ;;
19655 *)
19656 if test yes = "$lt_cv_prog_gnu_ld"; then
19657 version_type=linux # correct to gnu/linux during the next big refactor
19658 else
19659 version_type=irix
19660 fi ;;
19661 esac
19662 need_lib_prefix=no
19663 need_version=no
19664 soname_spec='$libname$release$shared_ext$major'
19665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19666 case $host_os in
19667 irix5* | nonstopux*)
19668 libsuff= shlibsuff=
19669 ;;
19670 *)
19671 case $LD in # libtool.m4 will add one of these switches to LD
19672 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19673 libsuff= shlibsuff= libmagic=32-bit;;
19674 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19675 libsuff=32 shlibsuff=N32 libmagic=N32;;
19676 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19677 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19678 *) libsuff= shlibsuff= libmagic=never-match;;
19679 esac
19680 ;;
19681 esac
19682 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19683 shlibpath_overrides_runpath=no
19684 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19685 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19686 hardcode_into_libs=yes
19687 ;;
19688
19689# No shared lib support for Linux oldld, aout, or coff.
19690linux*oldld* | linux*aout* | linux*coff*)
19691 dynamic_linker=no
19692 ;;
19693
19694linux*android*)
19695 version_type=none # Android doesn't support versioned libraries.
19696 need_lib_prefix=no
19697 need_version=no
19698 library_names_spec='$libname$release$shared_ext'
19699 soname_spec='$libname$release$shared_ext'
19700 finish_cmds=
19701 shlibpath_var=LD_LIBRARY_PATH
19702 shlibpath_overrides_runpath=yes
19703
19704 # This implies no fast_install, which is unacceptable.
19705 # Some rework will be needed to allow for fast_install
19706 # before this can be enabled.
19707 hardcode_into_libs=yes
19708
19709 dynamic_linker='Android linker'
19710 # Don't embed -rpath directories since the linker doesn't support them.
19711 hardcode_libdir_flag_spec_CXX='-L$libdir'
19712 ;;
19713
19714# This must be glibc/ELF.
19715linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19716 version_type=linux # correct to gnu/linux during the next big refactor
19717 need_lib_prefix=no
19718 need_version=no
19719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19720 soname_spec='$libname$release$shared_ext$major'
19721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19722 shlibpath_var=LD_LIBRARY_PATH
19723 shlibpath_overrides_runpath=no
19724
19725 # Some binutils ld are patched to set DT_RUNPATH
19726 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19727 $as_echo_n "(cached) " >&6
19728else
19729 lt_cv_shlibpath_overrides_runpath=no
19730 save_LDFLAGS=$LDFLAGS
19731 save_libdir=$libdir
19732 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19733 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19735/* end confdefs.h. */
19736
19737int
19738main ()
19739{
19740
19741 ;
19742 return 0;
19743}
19744_ACEOF
19745if ac_fn_cxx_try_link "$LINENO"; then :
19746 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19747 lt_cv_shlibpath_overrides_runpath=yes
19748fi
19749fi
19750rm -f core conftest.err conftest.$ac_objext \
19751 conftest$ac_exeext conftest.$ac_ext
19752 LDFLAGS=$save_LDFLAGS
19753 libdir=$save_libdir
19754
19755fi
19756
19757 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19758
19759 # This implies no fast_install, which is unacceptable.
19760 # Some rework will be needed to allow for fast_install
19761 # before this can be enabled.
19762 hardcode_into_libs=yes
19763
19764 # Ideally, we could use ldconfig to report *all* directores which are
19765 # searched for libraries, however this is still not possible. Aside from not
19766 # being certain /sbin/ldconfig is available, command
19767 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19768 # even though it is searched at run-time. Try to do the best guess by
19769 # appending ld.so.conf contents (and includes) to the search path.
19770 if test -f /etc/ld.so.conf; then
19771 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' ' '`
19772 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19773 fi
19774
19775 # We used to test for /lib/ld.so.1 and disable shared libraries on
19776 # powerpc, because MkLinux only supported shared libraries with the
19777 # GNU dynamic linker. Since this was broken with cross compilers,
19778 # most powerpc-linux boxes support dynamic linking these days and
19779 # people can always --disable-shared, the test was removed, and we
19780 # assume the GNU/Linux dynamic linker is in use.
19781 dynamic_linker='GNU/Linux ld.so'
19782 ;;
19783
19784netbsdelf*-gnu)
19785 version_type=linux
19786 need_lib_prefix=no
19787 need_version=no
19788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19789 soname_spec='${libname}${release}${shared_ext}$major'
19790 shlibpath_var=LD_LIBRARY_PATH
19791 shlibpath_overrides_runpath=no
19792 hardcode_into_libs=yes
19793 dynamic_linker='NetBSD ld.elf_so'
19794 ;;
19795
19796netbsd*)
19797 version_type=sunos
19798 need_lib_prefix=no
19799 need_version=no
19800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19801 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19803 dynamic_linker='NetBSD (a.out) ld.so'
19804 else
19805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19806 soname_spec='$libname$release$shared_ext$major'
19807 dynamic_linker='NetBSD ld.elf_so'
19808 fi
19809 shlibpath_var=LD_LIBRARY_PATH
19810 shlibpath_overrides_runpath=yes
19811 hardcode_into_libs=yes
19812 ;;
19813
19814newsos6)
19815 version_type=linux # correct to gnu/linux during the next big refactor
19816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19817 shlibpath_var=LD_LIBRARY_PATH
19818 shlibpath_overrides_runpath=yes
19819 ;;
19820
19821*nto* | *qnx*)
19822 version_type=qnx
19823 need_lib_prefix=no
19824 need_version=no
19825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19826 soname_spec='$libname$release$shared_ext$major'
19827 shlibpath_var=LD_LIBRARY_PATH
19828 shlibpath_overrides_runpath=no
19829 hardcode_into_libs=yes
19830 dynamic_linker='ldqnx.so'
19831 ;;
19832
19833openbsd* | bitrig*)
19834 version_type=sunos
19835 sys_lib_dlsearch_path_spec=/usr/lib
19836 need_lib_prefix=no
19837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19838 need_version=no
19839 else
19840 need_version=yes
19841 fi
19842 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19844 shlibpath_var=LD_LIBRARY_PATH
19845 shlibpath_overrides_runpath=yes
19846 ;;
19847
19848os2*)
19849 libname_spec='$name'
19850 version_type=windows
19851 shrext_cmds=.dll
19852 need_version=no
19853 need_lib_prefix=no
19854 # OS/2 can only load a DLL with a base name of 8 characters or less.
19855 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19856 v=$($ECHO $release$versuffix | tr -d .-);
19857 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19858 $ECHO $n$v`$shared_ext'
19859 library_names_spec='${libname}_dll.$libext'
19860 dynamic_linker='OS/2 ld.exe'
19861 shlibpath_var=BEGINLIBPATH
19862 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19864 postinstall_cmds='base_file=`basename \$file`~
19865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19866 dldir=$destdir/`dirname \$dlpath`~
19867 test -d \$dldir || mkdir -p \$dldir~
19868 $install_prog $dir/$dlname \$dldir/$dlname~
19869 chmod a+x \$dldir/$dlname~
19870 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19871 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19872 fi'
19873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19874 dlpath=$dir/\$dldll~
19875 $RM \$dlpath'
19876 ;;
19877
19878osf3* | osf4* | osf5*)
19879 version_type=osf
19880 need_lib_prefix=no
19881 need_version=no
19882 soname_spec='$libname$release$shared_ext$major'
19883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19884 shlibpath_var=LD_LIBRARY_PATH
19885 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19887 ;;
19888
19889rdos*)
19890 dynamic_linker=no
19891 ;;
19892
19893solaris*)
19894 version_type=linux # correct to gnu/linux during the next big refactor
19895 need_lib_prefix=no
19896 need_version=no
19897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19898 soname_spec='$libname$release$shared_ext$major'
19899 shlibpath_var=LD_LIBRARY_PATH
19900 shlibpath_overrides_runpath=yes
19901 hardcode_into_libs=yes
19902 # ldd complains unless libraries are executable
19903 postinstall_cmds='chmod +x $lib'
19904 ;;
19905
19906sunos4*)
19907 version_type=sunos
19908 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19909 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19910 shlibpath_var=LD_LIBRARY_PATH
19911 shlibpath_overrides_runpath=yes
19912 if test yes = "$with_gnu_ld"; then
19913 need_lib_prefix=no
19914 fi
19915 need_version=yes
19916 ;;
19917
19918sysv4 | sysv4.3*)
19919 version_type=linux # correct to gnu/linux during the next big refactor
19920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19921 soname_spec='$libname$release$shared_ext$major'
19922 shlibpath_var=LD_LIBRARY_PATH
19923 case $host_vendor in
19924 sni)
19925 shlibpath_overrides_runpath=no
19926 need_lib_prefix=no
19927 runpath_var=LD_RUN_PATH
19928 ;;
19929 siemens)
19930 need_lib_prefix=no
19931 ;;
19932 motorola)
19933 need_lib_prefix=no
19934 need_version=no
19935 shlibpath_overrides_runpath=no
19936 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19937 ;;
19938 esac
19939 ;;
19940
19941sysv4*MP*)
19942 if test -d /usr/nec; then
19943 version_type=linux # correct to gnu/linux during the next big refactor
19944 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19945 soname_spec='$libname$shared_ext.$major'
19946 shlibpath_var=LD_LIBRARY_PATH
19947 fi
19948 ;;
19949
19950sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19951 version_type=sco
19952 need_lib_prefix=no
19953 need_version=no
19954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19955 soname_spec='$libname$release$shared_ext$major'
19956 shlibpath_var=LD_LIBRARY_PATH
19957 shlibpath_overrides_runpath=yes
19958 hardcode_into_libs=yes
19959 if test yes = "$with_gnu_ld"; then
19960 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19961 else
19962 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19963 case $host_os in
19964 sco3.2v5*)
19965 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19966 ;;
19967 esac
19968 fi
19969 sys_lib_dlsearch_path_spec='/usr/lib'
19970 ;;
19971
19972tpf*)
19973 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19974 version_type=linux # correct to gnu/linux during the next big refactor
19975 need_lib_prefix=no
19976 need_version=no
19977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19978 shlibpath_var=LD_LIBRARY_PATH
19979 shlibpath_overrides_runpath=no
19980 hardcode_into_libs=yes
19981 ;;
19982
19983uts4*)
19984 version_type=linux # correct to gnu/linux during the next big refactor
19985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19986 soname_spec='$libname$release$shared_ext$major'
19987 shlibpath_var=LD_LIBRARY_PATH
19988 ;;
19989
19990*)
19991 dynamic_linker=no
19992 ;;
19993esac
19994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19995$as_echo "$dynamic_linker" >&6; }
19996test no = "$dynamic_linker" && can_build_shared=no
19997
19998variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19999if test yes = "$GCC"; then
20000 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20001fi
20002
20003if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20004 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20005fi
20006
20007if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20008 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20009fi
20010
20011# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20012configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20013
20014# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20015func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20016
20017# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20018configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20060$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20061hardcode_action_CXX=
20062if test -n "$hardcode_libdir_flag_spec_CXX" ||
20063 test -n "$runpath_var_CXX" ||
20064 test yes = "$hardcode_automatic_CXX"; then
20065
20066 # We can hardcode non-existent directories.
20067 if test no != "$hardcode_direct_CXX" &&
20068 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20069 # have to relink, otherwise we might link with an installed library
20070 # when we should be linking with a yet-to-be-installed one
20071 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
20072 test no != "$hardcode_minus_L_CXX"; then
20073 # Linking always hardcodes the temporary library directory.
20074 hardcode_action_CXX=relink
20075 else
20076 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20077 hardcode_action_CXX=immediate
20078 fi
20079else
20080 # We cannot hardcode anything, or else we can only hardcode existing
20081 # directories.
20082 hardcode_action_CXX=unsupported
20083fi
20084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20085$as_echo "$hardcode_action_CXX" >&6; }
20086
20087if test relink = "$hardcode_action_CXX" ||
20088 test yes = "$inherit_rpath_CXX"; then
20089 # Fast installation is not supported
20090 enable_fast_install=no
20091elif test yes = "$shlibpath_overrides_runpath" ||
20092 test no = "$enable_shared"; then
20093 # Fast installation is not necessary
20094 enable_fast_install=needless
20095fi
20096
20097
20098
20099
20100
20101
20102
20103 fi # test -n "$compiler"
20104
20105 CC=$lt_save_CC
20106 CFLAGS=$lt_save_CFLAGS
20107 LDCXX=$LD
20108 LD=$lt_save_LD
20109 GCC=$lt_save_GCC
20110 with_gnu_ld=$lt_save_with_gnu_ld
20111 lt_cv_path_LDCXX=$lt_cv_path_LD
20112 lt_cv_path_LD=$lt_save_path_LD
20113 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20114 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20115fi # test yes != "$_lt_caught_CXX_error"
20116
20117ac_ext=c
20118ac_cpp='$CPP $CPPFLAGS'
20119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20121ac_compiler_gnu=$ac_cv_c_compiler_gnu
20122
20123
20124
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11" >&5
20126$as_echo_n "checking whether $CXX supports C++11... " >&6; }
20127if ${dpkg_cv_cxx11+:} false; then :
20128 $as_echo_n "(cached) " >&6
20129else
20130
20131
20132 ac_ext=cpp
20133ac_cpp='$CXXCPP $CPPFLAGS'
20134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20137
20138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20139/* end confdefs.h. */
20140
20141
20142
20143int
20144main ()
20145{
20146
20147 // Null pointer keyword.
20148 void *ptr = nullptr;
20149
20150 ;
20151 return 0;
20152}
20153
20154_ACEOF
20155if ac_fn_cxx_try_compile "$LINENO"; then :
20156 dpkg_cv_cxx11=yes
20157else
20158 dpkg_cv_cxx11=no
20159fi
20160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20161 ac_ext=c
20162ac_cpp='$CPP $CPPFLAGS'
20163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20165ac_compiler_gnu=$ac_cv_c_compiler_gnu
20166
20167
20168fi
20169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxx11" >&5
20170$as_echo "$dpkg_cv_cxx11" >&6; }
20171 if test "x$dpkg_cv_cxx11" != "xyes"; then :
20172
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to accept C++11" >&5
20174$as_echo_n "checking for $CXX option to accept C++11... " >&6; }
20175if ${dpkg_cv_cxx11_arg+:} false; then :
20176 $as_echo_n "(cached) " >&6
20177else
20178
20179 dpkg_cv_cxx11_arg=none
20180 dpkg_save_CXX="$CXX"
20181 for arg in "-std=gnu++11" "-std=c++11"; do
20182 CXX="$dpkg_save_CXX $arg"
20183
20184 ac_ext=cpp
20185ac_cpp='$CXXCPP $CPPFLAGS'
20186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20189
20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191/* end confdefs.h. */
20192
20193
20194
20195int
20196main ()
20197{
20198
20199 // Null pointer keyword.
20200 void *ptr = nullptr;
20201
20202 ;
20203 return 0;
20204}
20205
20206_ACEOF
20207if ac_fn_cxx_try_compile "$LINENO"; then :
20208 dpkg_arg_worked=yes
20209else
20210 dpkg_arg_worked=no
20211fi
20212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20213 ac_ext=c
20214ac_cpp='$CPP $CPPFLAGS'
20215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20217ac_compiler_gnu=$ac_cv_c_compiler_gnu
20218
20219 CXX="$dpkg_save_CXX"
20220
20221 if test "x$dpkg_arg_worked" = "xyes"; then :
20222
20223 dpkg_cv_cxx11_arg="$arg"; break
20224
20225fi
20226 done
20227
20228fi
20229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxx11_arg" >&5
20230$as_echo "$dpkg_cv_cxx11_arg" >&6; }
20231 if test "x$dpkg_cv_cxx11_arg" != "xnone"; then :
20232
20233 CXX="$CXX $dpkg_cv_cxx11_arg"
20234 dpkg_cv_cxx11=yes
20235
20236fi
20237
20238fi
20239 if test "x$dpkg_cv_cxx11" = "xyes"; then :
20240
20241
20242$as_echo "#define HAVE_CXX11 1" >>confdefs.h
20243
20244
20245fi
20246
20247
20248 for ac_prog in gpatch patch
20249do
20250 # Extract the first word of "$ac_prog", so it can be a program name with args.
20251set dummy $ac_prog; ac_word=$2
20252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20253$as_echo_n "checking for $ac_word... " >&6; }
20254if ${ac_cv_prog_PATCH+:} false; then :
20255 $as_echo_n "(cached) " >&6
20256else
20257 if test -n "$PATCH"; then
20258 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
20259else
20260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20261for as_dir in $PATH
20262do
20263 IFS=$as_save_IFS
20264 test -z "$as_dir" && as_dir=.
20265 for ac_exec_ext in '' $ac_executable_extensions; do
20266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20267 ac_cv_prog_PATCH="$ac_prog"
20268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20269 break 2
20270 fi
20271done
20272 done
20273IFS=$as_save_IFS
20274
20275fi
20276fi
20277PATCH=$ac_cv_prog_PATCH
20278if test -n "$PATCH"; then
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
20280$as_echo "$PATCH" >&6; }
20281else
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20283$as_echo "no" >&6; }
20284fi
20285
20286
20287 test -n "$PATCH" && break
20288done
20289test -n "$PATCH" || PATCH="patch"
20290
20291 if ! $PATCH --version 2>/dev/null | grep -q '^GNU patch'; then :
20292
20293 as_fn_error $? "cannot find a GNU patch program" "$LINENO" 5
20294
20295fi
20296
20297cat >>confdefs.h <<_ACEOF
20298#define PATCH "$PATCH"
20299_ACEOF
20300
20301
20302for ac_prog in doxygen
20303do
20304 # Extract the first word of "$ac_prog", so it can be a program name with args.
20305set dummy $ac_prog; ac_word=$2
20306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20307$as_echo_n "checking for $ac_word... " >&6; }
20308if ${ac_cv_prog_DOXYGEN+:} false; then :
20309 $as_echo_n "(cached) " >&6
20310else
20311 if test -n "$DOXYGEN"; then
20312 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
20313else
20314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20315for as_dir in $PATH
20316do
20317 IFS=$as_save_IFS
20318 test -z "$as_dir" && as_dir=.
20319 for ac_exec_ext in '' $ac_executable_extensions; do
20320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20321 ac_cv_prog_DOXYGEN="$ac_prog"
20322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20323 break 2
20324 fi
20325done
20326 done
20327IFS=$as_save_IFS
20328
20329fi
20330fi
20331DOXYGEN=$ac_cv_prog_DOXYGEN
20332if test -n "$DOXYGEN"; then
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
20334$as_echo "$DOXYGEN" >&6; }
20335else
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20337$as_echo "no" >&6; }
20338fi
20339
20340
20341 test -n "$DOXYGEN" && break
20342done
20343
20344# Extract the first word of "dot", so it can be a program name with args.
20345set dummy dot; ac_word=$2
20346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20347$as_echo_n "checking for $ac_word... " >&6; }
20348if ${ac_cv_prog_HAVE_DOT+:} false; then :
20349 $as_echo_n "(cached) " >&6
20350else
20351 if test -n "$HAVE_DOT"; then
20352 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
20353else
20354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20355for as_dir in $PATH
20356do
20357 IFS=$as_save_IFS
20358 test -z "$as_dir" && as_dir=.
20359 for ac_exec_ext in '' $ac_executable_extensions; do
20360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20361 ac_cv_prog_HAVE_DOT="YES"
20362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20363 break 2
20364 fi
20365done
20366 done
20367IFS=$as_save_IFS
20368
20369 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
20370fi
20371fi
20372HAVE_DOT=$ac_cv_prog_HAVE_DOT
20373if test -n "$HAVE_DOT"; then
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
20375$as_echo "$HAVE_DOT" >&6; }
20376else
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20378$as_echo "no" >&6; }
20379fi
20380
20381
20382
20383
20384 for ac_prog in po4a
20385do
20386 # Extract the first word of "$ac_prog", so it can be a program name with args.
20387set dummy $ac_prog; ac_word=$2
20388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20389$as_echo_n "checking for $ac_word... " >&6; }
20390if ${ac_cv_prog_PO4A+:} false; then :
20391 $as_echo_n "(cached) " >&6
20392else
20393 if test -n "$PO4A"; then
20394 ac_cv_prog_PO4A="$PO4A" # Let the user override the test.
20395else
20396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20397for as_dir in $PATH
20398do
20399 IFS=$as_save_IFS
20400 test -z "$as_dir" && as_dir=.
20401 for ac_exec_ext in '' $ac_executable_extensions; do
20402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20403 ac_cv_prog_PO4A="$ac_prog"
20404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20405 break 2
20406 fi
20407done
20408 done
20409IFS=$as_save_IFS
20410
20411fi
20412fi
20413PO4A=$ac_cv_prog_PO4A
20414if test -n "$PO4A"; then
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PO4A" >&5
20416$as_echo "$PO4A" >&6; }
20417else
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20419$as_echo "no" >&6; }
20420fi
20421
20422
20423 test -n "$PO4A" && break
20424done
20425
20426 if test "$USE_NLS" = "yes" && test -n "$PO4A"; then :
20427
20428 USE_PO4A=yes
20429
20430else
20431
20432 USE_PO4A=no
20433
20434fi
20435
20436
20437
20438
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.14.2" >&5
20440$as_echo_n "checking for perl >= 5.14.2... " >&6; }
20441if ${ac_cv_path_PERL+:} false; then :
20442 $as_echo_n "(cached) " >&6
20443else
20444
20445 if test -z "$PERL"; then
20446 ac_path_PERL_found=false
20447 # Loop through the user's path and test for each of PROGNAME-LIST
20448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20449for as_dir in $PATH
20450do
20451 IFS=$as_save_IFS
20452 test -z "$as_dir" && as_dir=.
20453 for ac_prog in perl; do
20454 for ac_exec_ext in '' $ac_executable_extensions; do
20455 ac_path_PERL="$as_dir/$ac_prog$ac_exec_ext"
20456 as_fn_executable_p "$ac_path_PERL" || continue
20457
20458 perlcheck=$(test -x $ac_path_PERL && \
20459 $ac_path_PERL -MConfig -Mversion -e \
20460 'my $r = qv("v$Config{version}") >= qv("5.14.2");
20461 print "yes" if $r')
20462 if test "x$perlcheck" = "xyes"; then :
20463
20464 ac_cv_path_PERL=$ac_path_PERL ac_path_PERL_found=:
20465
20466fi
20467
20468 $ac_path_PERL_found && break 3
20469 done
20470 done
20471 done
20472IFS=$as_save_IFS
20473 if test -z "$ac_cv_path_PERL"; then
20474
20475 as_fn_error $? "cannot find perl >= 5.14.2" "$LINENO" 5
20476
20477 fi
20478else
20479 ac_cv_path_PERL=$PERL
20480fi
20481
20482
20483fi
20484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
20485$as_echo "$ac_cv_path_PERL" >&6; }
20486 PERL=$ac_cv_path_PERL
20487
20488 # Let the user override the variable.
20489 if test -z "$PERL_LIBDIR"; then :
20490
20491 PERL_LIBDIR=$($PERL -MConfig -e \
20492 'my $r = $Config{vendorlibexp};
20493 $r =~ s/$Config{vendorprefixexp}/\$(prefix)/;
20494 print $r')
20495
20496fi
20497
20498
20499 for ac_prog in pod2man
20500do
20501 # Extract the first word of "$ac_prog", so it can be a program name with args.
20502set dummy $ac_prog; ac_word=$2
20503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20504$as_echo_n "checking for $ac_word... " >&6; }
20505if ${ac_cv_prog_POD2MAN+:} false; then :
20506 $as_echo_n "(cached) " >&6
20507else
20508 if test -n "$POD2MAN"; then
20509 ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test.
20510else
20511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20512for as_dir in $PATH
20513do
20514 IFS=$as_save_IFS
20515 test -z "$as_dir" && as_dir=.
20516 for ac_exec_ext in '' $ac_executable_extensions; do
20517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20518 ac_cv_prog_POD2MAN="$ac_prog"
20519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20520 break 2
20521 fi
20522done
20523 done
20524IFS=$as_save_IFS
20525
20526fi
20527fi
20528POD2MAN=$ac_cv_prog_POD2MAN
20529if test -n "$POD2MAN"; then
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
20531$as_echo "$POD2MAN" >&6; }
20532else
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20534$as_echo "no" >&6; }
20535fi
20536
20537
20538 test -n "$POD2MAN" && break
20539done
20540
20541 if test "x$POD2MAN" != "x"; then
20542 BUILD_POD_DOC_TRUE=
20543 BUILD_POD_DOC_FALSE='#'
20544else
20545 BUILD_POD_DOC_TRUE='#'
20546 BUILD_POD_DOC_FALSE=
20547fi
20548
20549
20550
20551 # Check whether --enable-coverage was given.
20552if test "${enable_coverage+set}" = set; then :
20553 enableval=$enable_coverage;
20554else
20555 enable_coverage=no
20556fi
20557
20558 if test x$enable_coverage = xyes; then
20559 COVERAGE_ENABLED_TRUE=
20560 COVERAGE_ENABLED_FALSE='#'
20561else
20562 COVERAGE_ENABLED_TRUE='#'
20563 COVERAGE_ENABLED_FALSE=
20564fi
20565
20566
20567 if test "x$enable_coverage" = "xyes"; then :
20568
20569 if test "x$GCC" = "xno"; then :
20570
20571 as_fn_error $? "not compiling with gcc, which is required for C coverage support" "$LINENO" 5
20572
20573fi
20574
20575 for ac_prog in gcov
20576do
20577 # Extract the first word of "$ac_prog", so it can be a program name with args.
20578set dummy $ac_prog; ac_word=$2
20579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20580$as_echo_n "checking for $ac_word... " >&6; }
20581if ${ac_cv_prog_GCOV+:} false; then :
20582 $as_echo_n "(cached) " >&6
20583else
20584 if test -n "$GCOV"; then
20585 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
20586else
20587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20588for as_dir in $PATH
20589do
20590 IFS=$as_save_IFS
20591 test -z "$as_dir" && as_dir=.
20592 for ac_exec_ext in '' $ac_executable_extensions; do
20593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20594 ac_cv_prog_GCOV="$ac_prog"
20595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20596 break 2
20597 fi
20598done
20599 done
20600IFS=$as_save_IFS
20601
20602fi
20603fi
20604GCOV=$ac_cv_prog_GCOV
20605if test -n "$GCOV"; then
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
20607$as_echo "$GCOV" >&6; }
20608else
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20610$as_echo "no" >&6; }
20611fi
20612
20613
20614 test -n "$GCOV" && break
20615done
20616
20617 if test -z "$GCOV"; then :
20618
20619 as_fn_error $? "missing gcov, which is required for C coverage support" "$LINENO" 5
20620
20621fi
20622
20623 for ac_prog in lcov
20624do
20625 # Extract the first word of "$ac_prog", so it can be a program name with args.
20626set dummy $ac_prog; ac_word=$2
20627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20628$as_echo_n "checking for $ac_word... " >&6; }
20629if ${ac_cv_prog_LCOV+:} false; then :
20630 $as_echo_n "(cached) " >&6
20631else
20632 if test -n "$LCOV"; then
20633 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
20634else
20635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20636for as_dir in $PATH
20637do
20638 IFS=$as_save_IFS
20639 test -z "$as_dir" && as_dir=.
20640 for ac_exec_ext in '' $ac_executable_extensions; do
20641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20642 ac_cv_prog_LCOV="$ac_prog"
20643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20644 break 2
20645 fi
20646done
20647 done
20648IFS=$as_save_IFS
20649
20650fi
20651fi
20652LCOV=$ac_cv_prog_LCOV
20653if test -n "$LCOV"; then
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
20655$as_echo "$LCOV" >&6; }
20656else
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20658$as_echo "no" >&6; }
20659fi
20660
20661
20662 test -n "$LCOV" && break
20663done
20664
20665 if test -z "$LCOV"; then :
20666
20667 as_fn_error $? "missing lcov, which is required for C coverage support" "$LINENO" 5
20668
20669fi
20670
20671 for ac_prog in genhtml
20672do
20673 # Extract the first word of "$ac_prog", so it can be a program name with args.
20674set dummy $ac_prog; ac_word=$2
20675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20676$as_echo_n "checking for $ac_word... " >&6; }
20677if ${ac_cv_prog_LCOV_GENHTML+:} false; then :
20678 $as_echo_n "(cached) " >&6
20679else
20680 if test -n "$LCOV_GENHTML"; then
20681 ac_cv_prog_LCOV_GENHTML="$LCOV_GENHTML" # Let the user override the test.
20682else
20683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20684for as_dir in $PATH
20685do
20686 IFS=$as_save_IFS
20687 test -z "$as_dir" && as_dir=.
20688 for ac_exec_ext in '' $ac_executable_extensions; do
20689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20690 ac_cv_prog_LCOV_GENHTML="$ac_prog"
20691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20692 break 2
20693 fi
20694done
20695 done
20696IFS=$as_save_IFS
20697
20698fi
20699fi
20700LCOV_GENHTML=$ac_cv_prog_LCOV_GENHTML
20701if test -n "$LCOV_GENHTML"; then
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV_GENHTML" >&5
20703$as_echo "$LCOV_GENHTML" >&6; }
20704else
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20706$as_echo "no" >&6; }
20707fi
20708
20709
20710 test -n "$LCOV_GENHTML" && break
20711done
20712
20713 if test -z "$LCOV_GENHTML"; then :
20714
20715 as_fn_error $? "missing genhtml, which is required for C coverage support" "$LINENO" 5
20716
20717fi
20718
20719 CFLAGS="$CFLAGS --coverage"
20720 LDFLAGS="$LDFLAGS --coverage"
20721
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Devel::Cover perl module" >&5
20723$as_echo_n "checking for Devel::Cover perl module... " >&6; }
20724 if $($PERL -e "require Devel::Cover;" 2>/dev/null); then :
20725
20726 PERL_COVERAGE="-MDevel::Cover"
20727
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
20729$as_echo "ok" >&6; }
20730
20731else
20732
20733 as_fn_error $? "Devel::Cover perl module is required for coverage support" "$LINENO" 5
20734
20735fi
20736 for ac_prog in cover
20737do
20738 # Extract the first word of "$ac_prog", so it can be a program name with args.
20739set dummy $ac_prog; ac_word=$2
20740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20741$as_echo_n "checking for $ac_word... " >&6; }
20742if ${ac_cv_prog_PERL_COVER+:} false; then :
20743 $as_echo_n "(cached) " >&6
20744else
20745 if test -n "$PERL_COVER"; then
20746 ac_cv_prog_PERL_COVER="$PERL_COVER" # Let the user override the test.
20747else
20748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20749for as_dir in $PATH
20750do
20751 IFS=$as_save_IFS
20752 test -z "$as_dir" && as_dir=.
20753 for ac_exec_ext in '' $ac_executable_extensions; do
20754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20755 ac_cv_prog_PERL_COVER="$ac_prog"
20756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20757 break 2
20758 fi
20759done
20760 done
20761IFS=$as_save_IFS
20762
20763fi
20764fi
20765PERL_COVER=$ac_cv_prog_PERL_COVER
20766if test -n "$PERL_COVER"; then
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_COVER" >&5
20768$as_echo "$PERL_COVER" >&6; }
20769else
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20771$as_echo "no" >&6; }
20772fi
20773
20774
20775 test -n "$PERL_COVER" && break
20776done
20777
20778 if test -z "$PERL_COVER"; then :
20779
20780 as_fn_error $? "missing cover, which is required for perl coverage support" "$LINENO" 5
20781
20782fi
20783
20784fi
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage" >&5
20786$as_echo_n "checking whether to build with code coverage... " >&6; }
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_coverage" >&5
20788$as_echo "$enable_coverage" >&6; }
20789
20790
20791# Checks for operating system services and capabilities.
20792# Check whether --enable-largefile was given.
20793if test "${enable_largefile+set}" = set; then :
20794 enableval=$enable_largefile;
20795fi
20796
20797if test "$enable_largefile" != no; then
20798
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
20800$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
20801if ${ac_cv_sys_largefile_CC+:} false; then :
20802 $as_echo_n "(cached) " >&6
20803else
20804 ac_cv_sys_largefile_CC=no
20805 if test "$GCC" != yes; then
20806 ac_save_CC=$CC
20807 while :; do
20808 # IRIX 6.2 and later do not support large files by default,
20809 # so use the C compiler's -n32 option if that helps.
20810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20811/* end confdefs.h. */
20812#include <sys/types.h>
20813 /* Check that off_t can represent 2**63 - 1 correctly.
20814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20815 since some C++ compilers masquerading as C compilers
20816 incorrectly reject 9223372036854775807. */
20817#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20819 && LARGE_OFF_T % 2147483647 == 1)
20820 ? 1 : -1];
20821int
20822main ()
20823{
20824
20825 ;
20826 return 0;
20827}
20828_ACEOF
20829 if ac_fn_c_try_compile "$LINENO"; then :
20830 break
20831fi
20832rm -f core conftest.err conftest.$ac_objext
20833 CC="$CC -n32"
20834 if ac_fn_c_try_compile "$LINENO"; then :
20835 ac_cv_sys_largefile_CC=' -n32'; break
20836fi
20837rm -f core conftest.err conftest.$ac_objext
20838 break
20839 done
20840 CC=$ac_save_CC
20841 rm -f conftest.$ac_ext
20842 fi
20843fi
20844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
20845$as_echo "$ac_cv_sys_largefile_CC" >&6; }
20846 if test "$ac_cv_sys_largefile_CC" != no; then
20847 CC=$CC$ac_cv_sys_largefile_CC
20848 fi
20849
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20851$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
20852if ${ac_cv_sys_file_offset_bits+:} false; then :
20853 $as_echo_n "(cached) " >&6
20854else
20855 while :; do
20856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20857/* end confdefs.h. */
20858#include <sys/types.h>
20859 /* Check that off_t can represent 2**63 - 1 correctly.
20860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20861 since some C++ compilers masquerading as C compilers
20862 incorrectly reject 9223372036854775807. */
20863#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20865 && LARGE_OFF_T % 2147483647 == 1)
20866 ? 1 : -1];
20867int
20868main ()
20869{
20870
20871 ;
20872 return 0;
20873}
20874_ACEOF
20875if ac_fn_c_try_compile "$LINENO"; then :
20876 ac_cv_sys_file_offset_bits=no; break
20877fi
20878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880/* end confdefs.h. */
20881#define _FILE_OFFSET_BITS 64
20882#include <sys/types.h>
20883 /* Check that off_t can represent 2**63 - 1 correctly.
20884 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20885 since some C++ compilers masquerading as C compilers
20886 incorrectly reject 9223372036854775807. */
20887#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20888 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20889 && LARGE_OFF_T % 2147483647 == 1)
20890 ? 1 : -1];
20891int
20892main ()
20893{
20894
20895 ;
20896 return 0;
20897}
20898_ACEOF
20899if ac_fn_c_try_compile "$LINENO"; then :
20900 ac_cv_sys_file_offset_bits=64; break
20901fi
20902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20903 ac_cv_sys_file_offset_bits=unknown
20904 break
20905done
20906fi
20907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
20908$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
20909case $ac_cv_sys_file_offset_bits in #(
20910 no | unknown) ;;
20911 *)
20912cat >>confdefs.h <<_ACEOF
20913#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20914_ACEOF
20915;;
20916esac
20917rm -rf conftest*
20918 if test $ac_cv_sys_file_offset_bits = unknown; then
20919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
20920$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
20921if ${ac_cv_sys_large_files+:} false; then :
20922 $as_echo_n "(cached) " >&6
20923else
20924 while :; do
20925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20926/* end confdefs.h. */
20927#include <sys/types.h>
20928 /* Check that off_t can represent 2**63 - 1 correctly.
20929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20930 since some C++ compilers masquerading as C compilers
20931 incorrectly reject 9223372036854775807. */
20932#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20934 && LARGE_OFF_T % 2147483647 == 1)
20935 ? 1 : -1];
20936int
20937main ()
20938{
20939
20940 ;
20941 return 0;
20942}
20943_ACEOF
20944if ac_fn_c_try_compile "$LINENO"; then :
20945 ac_cv_sys_large_files=no; break
20946fi
20947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20949/* end confdefs.h. */
20950#define _LARGE_FILES 1
20951#include <sys/types.h>
20952 /* Check that off_t can represent 2**63 - 1 correctly.
20953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20954 since some C++ compilers masquerading as C compilers
20955 incorrectly reject 9223372036854775807. */
20956#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20958 && LARGE_OFF_T % 2147483647 == 1)
20959 ? 1 : -1];
20960int
20961main ()
20962{
20963
20964 ;
20965 return 0;
20966}
20967_ACEOF
20968if ac_fn_c_try_compile "$LINENO"; then :
20969 ac_cv_sys_large_files=1; break
20970fi
20971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20972 ac_cv_sys_large_files=unknown
20973 break
20974done
20975fi
20976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
20977$as_echo "$ac_cv_sys_large_files" >&6; }
20978case $ac_cv_sys_large_files in #(
20979 no | unknown) ;;
20980 *)
20981cat >>confdefs.h <<_ACEOF
20982#define _LARGE_FILES $ac_cv_sys_large_files
20983_ACEOF
20984;;
20985esac
20986rm -rf conftest*
20987 fi
20988
20989
20990fi
20991
20992
20993# Checks for libraries.
20994
20995
20996
20997# Check whether --with-libmd was given.
20998if test "${with_libmd+set}" = set; then :
20999 withval=$with_libmd;
21000else
21001 with_libmd=check
21002fi
21003
21004 have_libmd="no"
21005 if test "x$with_libmd" != "xno"; then :
21006
21007 for ac_header in md5.h
21008do :
21009 ac_fn_c_check_header_mongrel "$LINENO" "md5.h" "ac_cv_header_md5_h" "$ac_includes_default"
21010if test "x$ac_cv_header_md5_h" = xyes; then :
21011 cat >>confdefs.h <<_ACEOF
21012#define HAVE_MD5_H 1
21013_ACEOF
21014
21015 dpkg_save_libmd_LIBS=$LIBS
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
21017$as_echo_n "checking for library containing MD5Init... " >&6; }
21018if ${ac_cv_search_MD5Init+:} false; then :
21019 $as_echo_n "(cached) " >&6
21020else
21021 ac_func_search_save_LIBS=$LIBS
21022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21023/* end confdefs.h. */
21024
21025/* Override any GCC internal prototype to avoid an error.
21026 Use char because int might match the return type of a GCC
21027 builtin and then its argument prototype would still apply. */
21028#ifdef __cplusplus
21029extern "C"
21030#endif
21031char MD5Init ();
21032int
21033main ()
21034{
21035return MD5Init ();
21036 ;
21037 return 0;
21038}
21039_ACEOF
21040for ac_lib in '' md; do
21041 if test -z "$ac_lib"; then
21042 ac_res="none required"
21043 else
21044 ac_res=-l$ac_lib
21045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21046 fi
21047 if ac_fn_c_try_link "$LINENO"; then :
21048 ac_cv_search_MD5Init=$ac_res
21049fi
21050rm -f core conftest.err conftest.$ac_objext \
21051 conftest$ac_exeext
21052 if ${ac_cv_search_MD5Init+:} false; then :
21053 break
21054fi
21055done
21056if ${ac_cv_search_MD5Init+:} false; then :
21057
21058else
21059 ac_cv_search_MD5Init=no
21060fi
21061rm conftest.$ac_ext
21062LIBS=$ac_func_search_save_LIBS
21063fi
21064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
21065$as_echo "$ac_cv_search_MD5Init" >&6; }
21066ac_res=$ac_cv_search_MD5Init
21067if test "$ac_res" != no; then :
21068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21069 have_libmd="yes"
21070fi
21071
21072 LIBS=$dpkg_save_libmd_LIBS
21073 if test "x$ac_cv_search_MD5Init" = "xnone required"; then :
21074
21075 have_libmd="builtin"
21076
21077elif test "x$ac_cv_search_MD5Init" != "xno"; then :
21078
21079 have_libmd="yes"
21080 MD_LIBS="$ac_cv_search_MD5Init"
21081
21082fi
21083
21084fi
21085
21086done
21087
21088 if test "x$with_libmd" = "xyes" && test "x$have_libmd" = "xno"; then :
21089
21090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21092as_fn_error $? "md5 digest functions not found
21093See \`config.log' for more details" "$LINENO" 5; }
21094
21095fi
21096
21097fi
21098 if test "x$have_libmd" != "xno"; then
21099 HAVE_LIBMD_MD5_TRUE=
21100 HAVE_LIBMD_MD5_FALSE='#'
21101else
21102 HAVE_LIBMD_MD5_TRUE='#'
21103 HAVE_LIBMD_MD5_FALSE=
21104fi
21105
21106
21107
21108
21109
21110
21111# Check whether --with-libz was given.
21112if test "${with_libz+set}" = set; then :
21113 withval=$with_libz;
21114else
21115 with_libz=check
21116fi
21117
21118 have_libz="no"
21119 if test "x$with_libz" != "xno"; then :
21120
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
21122$as_echo_n "checking for gzdopen in -lz... " >&6; }
21123if ${ac_cv_lib_z_gzdopen+:} false; then :
21124 $as_echo_n "(cached) " >&6
21125else
21126 ac_check_lib_save_LIBS=$LIBS
21127LIBS="-lz $LIBS"
21128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21129/* end confdefs.h. */
21130
21131/* Override any GCC internal prototype to avoid an error.
21132 Use char because int might match the return type of a GCC
21133 builtin and then its argument prototype would still apply. */
21134#ifdef __cplusplus
21135extern "C"
21136#endif
21137char gzdopen ();
21138int
21139main ()
21140{
21141return gzdopen ();
21142 ;
21143 return 0;
21144}
21145_ACEOF
21146if ac_fn_c_try_link "$LINENO"; then :
21147 ac_cv_lib_z_gzdopen=yes
21148else
21149 ac_cv_lib_z_gzdopen=no
21150fi
21151rm -f core conftest.err conftest.$ac_objext \
21152 conftest$ac_exeext conftest.$ac_ext
21153LIBS=$ac_check_lib_save_LIBS
21154fi
21155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
21156$as_echo "$ac_cv_lib_z_gzdopen" >&6; }
21157if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
21158
21159 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21160if test "x$ac_cv_header_zlib_h" = xyes; then :
21161
21162 have_libz="yes"
21163
21164fi
21165
21166
21167
21168fi
21169
21170
21171 if test "x$with_libz" != "xno"; then :
21172
21173 if test "x$have_libz" = "xyes"; then :
21174
21175
21176$as_echo "#define WITH_LIBZ 1" >>confdefs.h
21177
21178 if test "x$with_libz" = "xstatic"; then :
21179
21180 dpkg_z_libs="-Wl,-Bstatic -lz -Wl,-Bdynamic"
21181
21182else
21183
21184 dpkg_z_libs="-lz"
21185
21186fi
21187 Z_LIBS="${Z_LIBS:+$Z_LIBS }$dpkg_z_libs"
21188
21189else
21190
21191 if test "x$with_libz" != "xcheck"; then :
21192
21193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21195as_fn_error $? "libz library or header not found
21196See \`config.log' for more details" "$LINENO" 5; }
21197
21198fi
21199
21200fi
21201
21202fi
21203
21204fi
21205
21206
21207
21208
21209
21210
21211# Check whether --with-libbz2 was given.
21212if test "${with_libbz2+set}" = set; then :
21213 withval=$with_libbz2;
21214else
21215 with_libbz2=check
21216fi
21217
21218 have_libbz2="no"
21219 if test "x$with_libbz2" != "xno"; then :
21220
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzdopen in -lbz2" >&5
21222$as_echo_n "checking for BZ2_bzdopen in -lbz2... " >&6; }
21223if ${ac_cv_lib_bz2_BZ2_bzdopen+:} false; then :
21224 $as_echo_n "(cached) " >&6
21225else
21226 ac_check_lib_save_LIBS=$LIBS
21227LIBS="-lbz2 $LIBS"
21228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21229/* end confdefs.h. */
21230
21231/* Override any GCC internal prototype to avoid an error.
21232 Use char because int might match the return type of a GCC
21233 builtin and then its argument prototype would still apply. */
21234#ifdef __cplusplus
21235extern "C"
21236#endif
21237char BZ2_bzdopen ();
21238int
21239main ()
21240{
21241return BZ2_bzdopen ();
21242 ;
21243 return 0;
21244}
21245_ACEOF
21246if ac_fn_c_try_link "$LINENO"; then :
21247 ac_cv_lib_bz2_BZ2_bzdopen=yes
21248else
21249 ac_cv_lib_bz2_BZ2_bzdopen=no
21250fi
21251rm -f core conftest.err conftest.$ac_objext \
21252 conftest$ac_exeext conftest.$ac_ext
21253LIBS=$ac_check_lib_save_LIBS
21254fi
21255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzdopen" >&5
21256$as_echo "$ac_cv_lib_bz2_BZ2_bzdopen" >&6; }
21257if test "x$ac_cv_lib_bz2_BZ2_bzdopen" = xyes; then :
21258
21259 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
21260if test "x$ac_cv_header_bzlib_h" = xyes; then :
21261
21262 have_libbz2="yes"
21263
21264fi
21265
21266
21267
21268fi
21269
21270
21271 if test "x$with_libbz2" != "xno"; then :
21272
21273 if test "x$have_libbz2" = "xyes"; then :
21274
21275
21276$as_echo "#define WITH_LIBBZ2 1" >>confdefs.h
21277
21278 if test "x$with_libbz2" = "xstatic"; then :
21279
21280 dpkg_bz2_libs="-Wl,-Bstatic -lbz2 -Wl,-Bdynamic"
21281
21282else
21283
21284 dpkg_bz2_libs="-lbz2"
21285
21286fi
21287 BZ2_LIBS="${BZ2_LIBS:+$BZ2_LIBS }$dpkg_bz2_libs"
21288
21289else
21290
21291 if test "x$with_libbz2" != "xcheck"; then :
21292
21293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21295as_fn_error $? "libbz2 library or header not found
21296See \`config.log' for more details" "$LINENO" 5; }
21297
21298fi
21299
21300fi
21301
21302fi
21303
21304fi
21305
21306
21307
21308
21309
21310
21311# Check whether --with-liblzma was given.
21312if test "${with_liblzma+set}" = set; then :
21313 withval=$with_liblzma;
21314else
21315 with_liblzma=check
21316fi
21317
21318 have_liblzma="no"
21319 if test "x$with_liblzma" != "xno"; then :
21320
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_alone_decoder in -llzma" >&5
21322$as_echo_n "checking for lzma_alone_decoder in -llzma... " >&6; }
21323if ${ac_cv_lib_lzma_lzma_alone_decoder+:} false; then :
21324 $as_echo_n "(cached) " >&6
21325else
21326 ac_check_lib_save_LIBS=$LIBS
21327LIBS="-llzma $LIBS"
21328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21329/* end confdefs.h. */
21330
21331/* Override any GCC internal prototype to avoid an error.
21332 Use char because int might match the return type of a GCC
21333 builtin and then its argument prototype would still apply. */
21334#ifdef __cplusplus
21335extern "C"
21336#endif
21337char lzma_alone_decoder ();
21338int
21339main ()
21340{
21341return lzma_alone_decoder ();
21342 ;
21343 return 0;
21344}
21345_ACEOF
21346if ac_fn_c_try_link "$LINENO"; then :
21347 ac_cv_lib_lzma_lzma_alone_decoder=yes
21348else
21349 ac_cv_lib_lzma_lzma_alone_decoder=no
21350fi
21351rm -f core conftest.err conftest.$ac_objext \
21352 conftest$ac_exeext conftest.$ac_ext
21353LIBS=$ac_check_lib_save_LIBS
21354fi
21355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_alone_decoder" >&5
21356$as_echo "$ac_cv_lib_lzma_lzma_alone_decoder" >&6; }
21357if test "x$ac_cv_lib_lzma_lzma_alone_decoder" = xyes; then :
21358
21359 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
21360if test "x$ac_cv_header_lzma_h" = xyes; then :
21361
21362 have_liblzma="yes"
21363
21364fi
21365
21366
21367
21368fi
21369
21370
21371 if test "x$with_liblzma" != "xno"; then :
21372
21373 if test "x$have_liblzma" = "xyes"; then :
21374
21375
21376$as_echo "#define WITH_LIBLZMA 1" >>confdefs.h
21377
21378 if test "x$with_liblzma" = "xstatic"; then :
21379
21380 dpkg_lzma_libs="-Wl,-Bstatic -llzma -Wl,-Bdynamic"
21381
21382else
21383
21384 dpkg_lzma_libs="-llzma"
21385
21386fi
21387 LZMA_LIBS="${LZMA_LIBS:+$LZMA_LIBS }$dpkg_lzma_libs"
21388
21389else
21390
21391 if test "x$with_liblzma" != "xcheck"; then :
21392
21393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21395as_fn_error $? "liblzma library or header not found
21396See \`config.log' for more details" "$LINENO" 5; }
21397
21398fi
21399
21400fi
21401
21402fi
21403
21404fi
21405
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_encoder_mt in -llzma" >&5
21407$as_echo_n "checking for lzma_stream_encoder_mt in -llzma... " >&6; }
21408if ${ac_cv_lib_lzma_lzma_stream_encoder_mt+:} false; then :
21409 $as_echo_n "(cached) " >&6
21410else
21411 ac_check_lib_save_LIBS=$LIBS
21412LIBS="-llzma $LIBS"
21413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21414/* end confdefs.h. */
21415
21416/* Override any GCC internal prototype to avoid an error.
21417 Use char because int might match the return type of a GCC
21418 builtin and then its argument prototype would still apply. */
21419#ifdef __cplusplus
21420extern "C"
21421#endif
21422char lzma_stream_encoder_mt ();
21423int
21424main ()
21425{
21426return lzma_stream_encoder_mt ();
21427 ;
21428 return 0;
21429}
21430_ACEOF
21431if ac_fn_c_try_link "$LINENO"; then :
21432 ac_cv_lib_lzma_lzma_stream_encoder_mt=yes
21433else
21434 ac_cv_lib_lzma_lzma_stream_encoder_mt=no
21435fi
21436rm -f core conftest.err conftest.$ac_objext \
21437 conftest$ac_exeext conftest.$ac_ext
21438LIBS=$ac_check_lib_save_LIBS
21439fi
21440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_encoder_mt" >&5
21441$as_echo "$ac_cv_lib_lzma_lzma_stream_encoder_mt" >&6; }
21442if test "x$ac_cv_lib_lzma_lzma_stream_encoder_mt" = xyes; then :
21443
21444
21445$as_echo "#define HAVE_LZMA_MT 1" >>confdefs.h
21446
21447
21448fi
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21459 if test -n "$ac_tool_prefix"; then
21460 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21461set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21463$as_echo_n "checking for $ac_word... " >&6; }
21464if ${ac_cv_path_PKG_CONFIG+:} false; then :
21465 $as_echo_n "(cached) " >&6
21466else
21467 case $PKG_CONFIG in
21468 [\\/]* | ?:[\\/]*)
21469 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21470 ;;
21471 *)
21472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21473for as_dir in $PATH
21474do
21475 IFS=$as_save_IFS
21476 test -z "$as_dir" && as_dir=.
21477 for ac_exec_ext in '' $ac_executable_extensions; do
21478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21479 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21481 break 2
21482 fi
21483done
21484 done
21485IFS=$as_save_IFS
21486
21487 ;;
21488esac
21489fi
21490PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21491if test -n "$PKG_CONFIG"; then
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21493$as_echo "$PKG_CONFIG" >&6; }
21494else
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21496$as_echo "no" >&6; }
21497fi
21498
21499
21500fi
21501if test -z "$ac_cv_path_PKG_CONFIG"; then
21502 ac_pt_PKG_CONFIG=$PKG_CONFIG
21503 # Extract the first word of "pkg-config", so it can be a program name with args.
21504set dummy pkg-config; ac_word=$2
21505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21506$as_echo_n "checking for $ac_word... " >&6; }
21507if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
21508 $as_echo_n "(cached) " >&6
21509else
21510 case $ac_pt_PKG_CONFIG in
21511 [\\/]* | ?:[\\/]*)
21512 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21513 ;;
21514 *)
21515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21516for as_dir in $PATH
21517do
21518 IFS=$as_save_IFS
21519 test -z "$as_dir" && as_dir=.
21520 for ac_exec_ext in '' $ac_executable_extensions; do
21521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21522 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21524 break 2
21525 fi
21526done
21527 done
21528IFS=$as_save_IFS
21529
21530 ;;
21531esac
21532fi
21533ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21534if test -n "$ac_pt_PKG_CONFIG"; then
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21536$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21537else
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21539$as_echo "no" >&6; }
21540fi
21541
21542 if test "x$ac_pt_PKG_CONFIG" = x; then
21543 PKG_CONFIG=""
21544 else
21545 case $cross_compiling:$ac_tool_warned in
21546yes:)
21547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21549ac_tool_warned=yes ;;
21550esac
21551 PKG_CONFIG=$ac_pt_PKG_CONFIG
21552 fi
21553else
21554 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21555fi
21556
21557fi
21558if test -n "$PKG_CONFIG"; then
21559 _pkg_min_version=0.9.0
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21561$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21562 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21564$as_echo "yes" >&6; }
21565 else
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21567$as_echo "no" >&6; }
21568 PKG_CONFIG=""
21569 fi
21570fi
21571
21572
21573
21574
21575# Check whether --with-libselinux was given.
21576if test "${with_libselinux+set}" = set; then :
21577 withval=$with_libselinux;
21578else
21579 with_libselinux=check
21580fi
21581
21582 SELINUX_MIN_VERSION=2.0.99
21583 have_libselinux="no"
21584 if test "x$with_libselinux" != "xno"; then :
21585
21586
21587pkg_failed=no
21588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5
21589$as_echo_n "checking for SELINUX... " >&6; }
21590
21591if test -n "$SELINUX_CFLAGS"; then
21592 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
21593 elif test -n "$PKG_CONFIG"; then
21594 if test -n "$PKG_CONFIG" && \
21595 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux >= \$SELINUX_MIN_VERSION\""; } >&5
21596 ($PKG_CONFIG --exists --print-errors "libselinux >= $SELINUX_MIN_VERSION") 2>&5
21597 ac_status=$?
21598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21599 test $ac_status = 0; }; then
21600 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "libselinux >= $SELINUX_MIN_VERSION" 2>/dev/null`
21601 test "x$?" != "x0" && pkg_failed=yes
21602else
21603 pkg_failed=yes
21604fi
21605 else
21606 pkg_failed=untried
21607fi
21608if test -n "$SELINUX_LIBS"; then
21609 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
21610 elif test -n "$PKG_CONFIG"; then
21611 if test -n "$PKG_CONFIG" && \
21612 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux >= \$SELINUX_MIN_VERSION\""; } >&5
21613 ($PKG_CONFIG --exists --print-errors "libselinux >= $SELINUX_MIN_VERSION") 2>&5
21614 ac_status=$?
21615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21616 test $ac_status = 0; }; then
21617 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "libselinux >= $SELINUX_MIN_VERSION" 2>/dev/null`
21618 test "x$?" != "x0" && pkg_failed=yes
21619else
21620 pkg_failed=yes
21621fi
21622 else
21623 pkg_failed=untried
21624fi
21625
21626
21627
21628if test $pkg_failed = yes; then
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21630$as_echo "no" >&6; }
21631
21632if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21633 _pkg_short_errors_supported=yes
21634else
21635 _pkg_short_errors_supported=no
21636fi
21637 if test $_pkg_short_errors_supported = yes; then
21638 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux >= $SELINUX_MIN_VERSION" 2>&1`
21639 else
21640 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux >= $SELINUX_MIN_VERSION" 2>&1`
21641 fi
21642 # Put the nasty error message in config.log where it belongs
21643 echo "$SELINUX_PKG_ERRORS" >&5
21644
21645
21646 if test "x$with_libselinux" != "xcheck"; then :
21647
21648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21650as_fn_error $? "libselinux at least $SELINUX_MIN_VERSION not found
21651See \`config.log' for more details" "$LINENO" 5; }
21652
21653fi
21654
21655elif test $pkg_failed = untried; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21657$as_echo "no" >&6; }
21658
21659 if test "x$with_libselinux" != "xcheck"; then :
21660
21661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21663as_fn_error $? "libselinux at least $SELINUX_MIN_VERSION not found
21664See \`config.log' for more details" "$LINENO" 5; }
21665
21666fi
21667
21668else
21669 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
21670 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21672$as_echo "yes" >&6; }
21673
21674 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
21675if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
21676
21677
21678$as_echo "#define WITH_LIBSELINUX 1" >>confdefs.h
21679
21680 have_libselinux="yes"
21681
21682else
21683
21684 if test "x$with_libselinux" != "xcheck"; then :
21685
21686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21688as_fn_error $? "libselinux header not found
21689See \`config.log' for more details" "$LINENO" 5; }
21690
21691fi
21692
21693fi
21694
21695
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexecfilecon in -lselinux" >&5
21697$as_echo_n "checking for setexecfilecon in -lselinux... " >&6; }
21698if ${ac_cv_lib_selinux_setexecfilecon+:} false; then :
21699 $as_echo_n "(cached) " >&6
21700else
21701 ac_check_lib_save_LIBS=$LIBS
21702LIBS="-lselinux $LIBS"
21703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21704/* end confdefs.h. */
21705
21706/* Override any GCC internal prototype to avoid an error.
21707 Use char because int might match the return type of a GCC
21708 builtin and then its argument prototype would still apply. */
21709#ifdef __cplusplus
21710extern "C"
21711#endif
21712char setexecfilecon ();
21713int
21714main ()
21715{
21716return setexecfilecon ();
21717 ;
21718 return 0;
21719}
21720_ACEOF
21721if ac_fn_c_try_link "$LINENO"; then :
21722 ac_cv_lib_selinux_setexecfilecon=yes
21723else
21724 ac_cv_lib_selinux_setexecfilecon=no
21725fi
21726rm -f core conftest.err conftest.$ac_objext \
21727 conftest$ac_exeext conftest.$ac_ext
21728LIBS=$ac_check_lib_save_LIBS
21729fi
21730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexecfilecon" >&5
21731$as_echo "$ac_cv_lib_selinux_setexecfilecon" >&6; }
21732if test "x$ac_cv_lib_selinux_setexecfilecon" = xyes; then :
21733
21734
21735$as_echo "#define HAVE_SETEXECFILECON 1" >>confdefs.h
21736
21737
21738fi
21739
21740
21741fi
21742
21743fi
21744 if test "x$have_libselinux" = "xyes"; then
21745 WITH_LIBSELINUX_TRUE=
21746 WITH_LIBSELINUX_FALSE='#'
21747else
21748 WITH_LIBSELINUX_TRUE='#'
21749 WITH_LIBSELINUX_FALSE=
21750fi
21751
21752 if test "x$ac_cv_lib_selinux_setexecfilecon" = "xyes"; then
21753 HAVE_SETEXECFILECON_TRUE=
21754 HAVE_SETEXECFILECON_FALSE='#'
21755else
21756 HAVE_SETEXECFILECON_TRUE='#'
21757 HAVE_SETEXECFILECON_FALSE=
21758fi
21759
21760
21761
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Unicode is requested" >&5
21763$as_echo_n "checking whether Unicode is requested... " >&6; }
21764 # Check whether --enable-unicode was given.
21765if test "${enable_unicode+set}" = set; then :
21766 enableval=$enable_unicode; USE_UNICODE=$enableval
21767else
21768 USE_UNICODE=yes
21769fi
21770
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_UNICODE" >&5
21772$as_echo "$USE_UNICODE" >&6; }
21773
21774
21775if test "x$build_dselect" = "xyes"; then :
21776
21777
21778
21779 for ac_header in ncurses/ncurses.h ncurses.h curses.h ncurses/term.h term.h
21780do :
21781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21782ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21783if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21784 cat >>confdefs.h <<_ACEOF
21785#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21786_ACEOF
21787 have_curses_header=yes
21788fi
21789
21790done
21791
21792 if test "x$USE_UNICODE" = "xyes"; then :
21793
21794 for ac_header in ncursesw/ncurses.h ncursesw/term.h
21795do :
21796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21797ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21798if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21799 cat >>confdefs.h <<_ACEOF
21800#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21801_ACEOF
21802 have_curses_header=yes
21803fi
21804
21805done
21806
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
21808$as_echo_n "checking for initscr in -lncursesw... " >&6; }
21809if ${ac_cv_lib_ncursesw_initscr+:} false; then :
21810 $as_echo_n "(cached) " >&6
21811else
21812 ac_check_lib_save_LIBS=$LIBS
21813LIBS="-lncursesw $LIBS"
21814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21815/* end confdefs.h. */
21816
21817/* Override any GCC internal prototype to avoid an error.
21818 Use char because int might match the return type of a GCC
21819 builtin and then its argument prototype would still apply. */
21820#ifdef __cplusplus
21821extern "C"
21822#endif
21823char initscr ();
21824int
21825main ()
21826{
21827return initscr ();
21828 ;
21829 return 0;
21830}
21831_ACEOF
21832if ac_fn_c_try_link "$LINENO"; then :
21833 ac_cv_lib_ncursesw_initscr=yes
21834else
21835 ac_cv_lib_ncursesw_initscr=no
21836fi
21837rm -f core conftest.err conftest.$ac_objext \
21838 conftest$ac_exeext conftest.$ac_ext
21839LIBS=$ac_check_lib_save_LIBS
21840fi
21841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
21842$as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
21843if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
21844
21845 CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncursesw"
21846
21847else
21848
21849
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
21851$as_echo_n "checking for initscr in -lncurses... " >&6; }
21852if ${ac_cv_lib_ncurses_initscr+:} false; then :
21853 $as_echo_n "(cached) " >&6
21854else
21855 ac_check_lib_save_LIBS=$LIBS
21856LIBS="-lncurses $LIBS"
21857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21858/* end confdefs.h. */
21859
21860/* Override any GCC internal prototype to avoid an error.
21861 Use char because int might match the return type of a GCC
21862 builtin and then its argument prototype would still apply. */
21863#ifdef __cplusplus
21864extern "C"
21865#endif
21866char initscr ();
21867int
21868main ()
21869{
21870return initscr ();
21871 ;
21872 return 0;
21873}
21874_ACEOF
21875if ac_fn_c_try_link "$LINENO"; then :
21876 ac_cv_lib_ncurses_initscr=yes
21877else
21878 ac_cv_lib_ncurses_initscr=no
21879fi
21880rm -f core conftest.err conftest.$ac_objext \
21881 conftest$ac_exeext conftest.$ac_ext
21882LIBS=$ac_check_lib_save_LIBS
21883fi
21884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
21885$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
21886if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
21887
21888 CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncurses"
21889
21890else
21891
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
21893$as_echo_n "checking for initscr in -lcurses... " >&6; }
21894if ${ac_cv_lib_curses_initscr+:} false; then :
21895 $as_echo_n "(cached) " >&6
21896else
21897 ac_check_lib_save_LIBS=$LIBS
21898LIBS="-lcurses $LIBS"
21899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21900/* end confdefs.h. */
21901
21902/* Override any GCC internal prototype to avoid an error.
21903 Use char because int might match the return type of a GCC
21904 builtin and then its argument prototype would still apply. */
21905#ifdef __cplusplus
21906extern "C"
21907#endif
21908char initscr ();
21909int
21910main ()
21911{
21912return initscr ();
21913 ;
21914 return 0;
21915}
21916_ACEOF
21917if ac_fn_c_try_link "$LINENO"; then :
21918 ac_cv_lib_curses_initscr=yes
21919else
21920 ac_cv_lib_curses_initscr=no
21921fi
21922rm -f core conftest.err conftest.$ac_objext \
21923 conftest$ac_exeext conftest.$ac_ext
21924LIBS=$ac_check_lib_save_LIBS
21925fi
21926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
21927$as_echo "$ac_cv_lib_curses_initscr" >&6; }
21928if test "x$ac_cv_lib_curses_initscr" = xyes; then :
21929
21930 CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lcurses"
21931
21932else
21933
21934 as_fn_error $? "no curses library found" "$LINENO" 5
21935
21936fi
21937
21938
21939fi
21940
21941
21942
21943fi
21944
21945
21946else
21947
21948
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
21950$as_echo_n "checking for initscr in -lncurses... " >&6; }
21951if ${ac_cv_lib_ncurses_initscr+:} false; then :
21952 $as_echo_n "(cached) " >&6
21953else
21954 ac_check_lib_save_LIBS=$LIBS
21955LIBS="-lncurses $LIBS"
21956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21957/* end confdefs.h. */
21958
21959/* Override any GCC internal prototype to avoid an error.
21960 Use char because int might match the return type of a GCC
21961 builtin and then its argument prototype would still apply. */
21962#ifdef __cplusplus
21963extern "C"
21964#endif
21965char initscr ();
21966int
21967main ()
21968{
21969return initscr ();
21970 ;
21971 return 0;
21972}
21973_ACEOF
21974if ac_fn_c_try_link "$LINENO"; then :
21975 ac_cv_lib_ncurses_initscr=yes
21976else
21977 ac_cv_lib_ncurses_initscr=no
21978fi
21979rm -f core conftest.err conftest.$ac_objext \
21980 conftest$ac_exeext conftest.$ac_ext
21981LIBS=$ac_check_lib_save_LIBS
21982fi
21983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
21984$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
21985if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
21986
21987 CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncurses"
21988
21989else
21990
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
21992$as_echo_n "checking for initscr in -lcurses... " >&6; }
21993if ${ac_cv_lib_curses_initscr+:} false; then :
21994 $as_echo_n "(cached) " >&6
21995else
21996 ac_check_lib_save_LIBS=$LIBS
21997LIBS="-lcurses $LIBS"
21998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21999/* end confdefs.h. */
22000
22001/* Override any GCC internal prototype to avoid an error.
22002 Use char because int might match the return type of a GCC
22003 builtin and then its argument prototype would still apply. */
22004#ifdef __cplusplus
22005extern "C"
22006#endif
22007char initscr ();
22008int
22009main ()
22010{
22011return initscr ();
22012 ;
22013 return 0;
22014}
22015_ACEOF
22016if ac_fn_c_try_link "$LINENO"; then :
22017 ac_cv_lib_curses_initscr=yes
22018else
22019 ac_cv_lib_curses_initscr=no
22020fi
22021rm -f core conftest.err conftest.$ac_objext \
22022 conftest$ac_exeext conftest.$ac_ext
22023LIBS=$ac_check_lib_save_LIBS
22024fi
22025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
22026$as_echo "$ac_cv_lib_curses_initscr" >&6; }
22027if test "x$ac_cv_lib_curses_initscr" = xyes; then :
22028
22029 CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lcurses"
22030
22031else
22032
22033 as_fn_error $? "no curses library found" "$LINENO" 5
22034
22035fi
22036
22037
22038fi
22039
22040
22041
22042fi
22043 if test "x$have_curses_header" != "xyes"; then :
22044
22045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22047as_fn_error $? "curses header not found
22048See \`config.log' for more details" "$LINENO" 5; }
22049
22050fi
22051 have_libcurses=yes
22052
22053
22054fi
22055if test "x$build_start_stop_daemon" = "xyes"; then :
22056
22057
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proc_stat_list_create in -lps" >&5
22059$as_echo_n "checking for proc_stat_list_create in -lps... " >&6; }
22060if ${ac_cv_lib_ps_proc_stat_list_create+:} false; then :
22061 $as_echo_n "(cached) " >&6
22062else
22063 ac_check_lib_save_LIBS=$LIBS
22064LIBS="-lps $LIBS"
22065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22066/* end confdefs.h. */
22067
22068/* Override any GCC internal prototype to avoid an error.
22069 Use char because int might match the return type of a GCC
22070 builtin and then its argument prototype would still apply. */
22071#ifdef __cplusplus
22072extern "C"
22073#endif
22074char proc_stat_list_create ();
22075int
22076main ()
22077{
22078return proc_stat_list_create ();
22079 ;
22080 return 0;
22081}
22082_ACEOF
22083if ac_fn_c_try_link "$LINENO"; then :
22084 ac_cv_lib_ps_proc_stat_list_create=yes
22085else
22086 ac_cv_lib_ps_proc_stat_list_create=no
22087fi
22088rm -f core conftest.err conftest.$ac_objext \
22089 conftest$ac_exeext conftest.$ac_ext
22090LIBS=$ac_check_lib_save_LIBS
22091fi
22092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ps_proc_stat_list_create" >&5
22093$as_echo "$ac_cv_lib_ps_proc_stat_list_create" >&6; }
22094if test "x$ac_cv_lib_ps_proc_stat_list_create" = xyes; then :
22095
22096 PS_LIBS="-lps"
22097 have_libps=yes
22098
22099fi
22100
22101
22102
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_openfiles in -lkvm" >&5
22104$as_echo_n "checking for kvm_openfiles in -lkvm... " >&6; }
22105if ${ac_cv_lib_kvm_kvm_openfiles+:} false; then :
22106 $as_echo_n "(cached) " >&6
22107else
22108 ac_check_lib_save_LIBS=$LIBS
22109LIBS="-lkvm $LIBS"
22110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111/* end confdefs.h. */
22112
22113/* Override any GCC internal prototype to avoid an error.
22114 Use char because int might match the return type of a GCC
22115 builtin and then its argument prototype would still apply. */
22116#ifdef __cplusplus
22117extern "C"
22118#endif
22119char kvm_openfiles ();
22120int
22121main ()
22122{
22123return kvm_openfiles ();
22124 ;
22125 return 0;
22126}
22127_ACEOF
22128if ac_fn_c_try_link "$LINENO"; then :
22129 ac_cv_lib_kvm_kvm_openfiles=yes
22130else
22131 ac_cv_lib_kvm_kvm_openfiles=no
22132fi
22133rm -f core conftest.err conftest.$ac_objext \
22134 conftest$ac_exeext conftest.$ac_ext
22135LIBS=$ac_check_lib_save_LIBS
22136fi
22137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_openfiles" >&5
22138$as_echo "$ac_cv_lib_kvm_kvm_openfiles" >&6; }
22139if test "x$ac_cv_lib_kvm_kvm_openfiles" = xyes; then :
22140
22141 KVM_LIBS="-lkvm"
22142 have_libkvm=yes
22143
22144fi
22145
22146
22147
22148fi
22149
22150# Checks for header files.
22151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22152$as_echo_n "checking for ANSI C header files... " >&6; }
22153if ${ac_cv_header_stdc+:} false; then :
22154 $as_echo_n "(cached) " >&6
22155else
22156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22157/* end confdefs.h. */
22158#include <stdlib.h>
22159#include <stdarg.h>
22160#include <string.h>
22161#include <float.h>
22162
22163int
22164main ()
22165{
22166
22167 ;
22168 return 0;
22169}
22170_ACEOF
22171if ac_fn_c_try_compile "$LINENO"; then :
22172 ac_cv_header_stdc=yes
22173else
22174 ac_cv_header_stdc=no
22175fi
22176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22177
22178if test $ac_cv_header_stdc = yes; then
22179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22181/* end confdefs.h. */
22182#include <string.h>
22183
22184_ACEOF
22185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22186 $EGREP "memchr" >/dev/null 2>&1; then :
22187
22188else
22189 ac_cv_header_stdc=no
22190fi
22191rm -f conftest*
22192
22193fi
22194
22195if test $ac_cv_header_stdc = yes; then
22196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22198/* end confdefs.h. */
22199#include <stdlib.h>
22200
22201_ACEOF
22202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22203 $EGREP "free" >/dev/null 2>&1; then :
22204
22205else
22206 ac_cv_header_stdc=no
22207fi
22208rm -f conftest*
22209
22210fi
22211
22212if test $ac_cv_header_stdc = yes; then
22213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22214 if test "$cross_compiling" = yes; then :
22215 :
22216else
22217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22218/* end confdefs.h. */
22219#include <ctype.h>
22220#include <stdlib.h>
22221#if ((' ' & 0x0FF) == 0x020)
22222# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22223# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22224#else
22225# define ISLOWER(c) \
22226 (('a' <= (c) && (c) <= 'i') \
22227 || ('j' <= (c) && (c) <= 'r') \
22228 || ('s' <= (c) && (c) <= 'z'))
22229# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22230#endif
22231
22232#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22233int
22234main ()
22235{
22236 int i;
22237 for (i = 0; i < 256; i++)
22238 if (XOR (islower (i), ISLOWER (i))
22239 || toupper (i) != TOUPPER (i))
22240 return 2;
22241 return 0;
22242}
22243_ACEOF
22244if ac_fn_c_try_run "$LINENO"; then :
22245
22246else
22247 ac_cv_header_stdc=no
22248fi
22249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22250 conftest.$ac_objext conftest.beam conftest.$ac_ext
22251fi
22252
22253fi
22254fi
22255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22256$as_echo "$ac_cv_header_stdc" >&6; }
22257if test $ac_cv_header_stdc = yes; then
22258
22259$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22260
22261fi
22262
22263for ac_header in \
22264 stddef.h \
22265 error.h \
22266 err.h \
22267 locale.h \
22268 libintl.h \
22269 kvm.h \
22270 sys/sysmacros.h \
22271 sys/param.h \
22272 sys/sysctl.h \
22273 sys/syscall.h \
22274 sys/user.h \
22275 sys/procfs.h \
22276 sys/pstat.h \
22277 linux/fiemap.h \
22278
22279do :
22280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22281ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22282if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22283 cat >>confdefs.h <<_ACEOF
22284#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22285_ACEOF
22286
22287fi
22288
22289done
22290
22291for ac_header in sys/proc.h
22292do :
22293 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
22294#ifdef HAVE_SYS_PARAM_H
22295#include <sys/param.h>
22296#endif
22297
22298"
22299if test "x$ac_cv_header_sys_proc_h" = xyes; then :
22300 cat >>confdefs.h <<_ACEOF
22301#define HAVE_SYS_PROC_H 1
22302_ACEOF
22303
22304fi
22305
22306done
22307
22308
22309
22310if test "x$build_dselect" = "xyes"; then :
22311
22312 ac_ext=cpp
22313ac_cpp='$CXXCPP $CPPFLAGS'
22314ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22315ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22316ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22317
22318 for ac_header in cxxabi.h
22319do :
22320 ac_fn_cxx_check_header_mongrel "$LINENO" "cxxabi.h" "ac_cv_header_cxxabi_h" "$ac_includes_default"
22321if test "x$ac_cv_header_cxxabi_h" = xyes; then :
22322 cat >>confdefs.h <<_ACEOF
22323#define HAVE_CXXABI_H 1
22324_ACEOF
22325
22326fi
22327
22328done
22329
22330 ac_ext=c
22331ac_cpp='$CPP $CPPFLAGS'
22332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22334ac_compiler_gnu=$ac_cv_c_compiler_gnu
22335
22336
22337fi
22338
22339# Checks for typedefs, structures, and compiler characteristics.
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22341$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22342if ${ac_cv_c_bigendian+:} false; then :
22343 $as_echo_n "(cached) " >&6
22344else
22345 ac_cv_c_bigendian=unknown
22346 # See if we're dealing with a universal compiler.
22347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22348/* end confdefs.h. */
22349#ifndef __APPLE_CC__
22350 not a universal capable compiler
22351 #endif
22352 typedef int dummy;
22353
22354_ACEOF
22355if ac_fn_c_try_compile "$LINENO"; then :
22356
22357 # Check for potential -arch flags. It is not universal unless
22358 # there are at least two -arch flags with different values.
22359 ac_arch=
22360 ac_prev=
22361 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22362 if test -n "$ac_prev"; then
22363 case $ac_word in
22364 i?86 | x86_64 | ppc | ppc64)
22365 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22366 ac_arch=$ac_word
22367 else
22368 ac_cv_c_bigendian=universal
22369 break
22370 fi
22371 ;;
22372 esac
22373 ac_prev=
22374 elif test "x$ac_word" = "x-arch"; then
22375 ac_prev=arch
22376 fi
22377 done
22378fi
22379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22380 if test $ac_cv_c_bigendian = unknown; then
22381 # See if sys/param.h defines the BYTE_ORDER macro.
22382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22383/* end confdefs.h. */
22384#include <sys/types.h>
22385 #include <sys/param.h>
22386
22387int
22388main ()
22389{
22390#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22391 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22392 && LITTLE_ENDIAN)
22393 bogus endian macros
22394 #endif
22395
22396 ;
22397 return 0;
22398}
22399_ACEOF
22400if ac_fn_c_try_compile "$LINENO"; then :
22401 # It does; now see whether it defined to BIG_ENDIAN or not.
22402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22403/* end confdefs.h. */
22404#include <sys/types.h>
22405 #include <sys/param.h>
22406
22407int
22408main ()
22409{
22410#if BYTE_ORDER != BIG_ENDIAN
22411 not big endian
22412 #endif
22413
22414 ;
22415 return 0;
22416}
22417_ACEOF
22418if ac_fn_c_try_compile "$LINENO"; then :
22419 ac_cv_c_bigendian=yes
22420else
22421 ac_cv_c_bigendian=no
22422fi
22423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22424fi
22425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22426 fi
22427 if test $ac_cv_c_bigendian = unknown; then
22428 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22430/* end confdefs.h. */
22431#include <limits.h>
22432
22433int
22434main ()
22435{
22436#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22437 bogus endian macros
22438 #endif
22439
22440 ;
22441 return 0;
22442}
22443_ACEOF
22444if ac_fn_c_try_compile "$LINENO"; then :
22445 # It does; now see whether it defined to _BIG_ENDIAN or not.
22446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22447/* end confdefs.h. */
22448#include <limits.h>
22449
22450int
22451main ()
22452{
22453#ifndef _BIG_ENDIAN
22454 not big endian
22455 #endif
22456
22457 ;
22458 return 0;
22459}
22460_ACEOF
22461if ac_fn_c_try_compile "$LINENO"; then :
22462 ac_cv_c_bigendian=yes
22463else
22464 ac_cv_c_bigendian=no
22465fi
22466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22467fi
22468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22469 fi
22470 if test $ac_cv_c_bigendian = unknown; then
22471 # Compile a test program.
22472 if test "$cross_compiling" = yes; then :
22473 # Try to guess by grepping values from an object file.
22474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22475/* end confdefs.h. */
22476short int ascii_mm[] =
22477 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22478 short int ascii_ii[] =
22479 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22480 int use_ascii (int i) {
22481 return ascii_mm[i] + ascii_ii[i];
22482 }
22483 short int ebcdic_ii[] =
22484 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22485 short int ebcdic_mm[] =
22486 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22487 int use_ebcdic (int i) {
22488 return ebcdic_mm[i] + ebcdic_ii[i];
22489 }
22490 extern int foo;
22491
22492int
22493main ()
22494{
22495return use_ascii (foo) == use_ebcdic (foo);
22496 ;
22497 return 0;
22498}
22499_ACEOF
22500if ac_fn_c_try_compile "$LINENO"; then :
22501 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22502 ac_cv_c_bigendian=yes
22503 fi
22504 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22505 if test "$ac_cv_c_bigendian" = unknown; then
22506 ac_cv_c_bigendian=no
22507 else
22508 # finding both strings is unlikely to happen, but who knows?
22509 ac_cv_c_bigendian=unknown
22510 fi
22511 fi
22512fi
22513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514else
22515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22516/* end confdefs.h. */
22517$ac_includes_default
22518int
22519main ()
22520{
22521
22522 /* Are we little or big endian? From Harbison&Steele. */
22523 union
22524 {
22525 long int l;
22526 char c[sizeof (long int)];
22527 } u;
22528 u.l = 1;
22529 return u.c[sizeof (long int) - 1] == 1;
22530
22531 ;
22532 return 0;
22533}
22534_ACEOF
22535if ac_fn_c_try_run "$LINENO"; then :
22536 ac_cv_c_bigendian=no
22537else
22538 ac_cv_c_bigendian=yes
22539fi
22540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22541 conftest.$ac_objext conftest.beam conftest.$ac_ext
22542fi
22543
22544 fi
22545fi
22546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22547$as_echo "$ac_cv_c_bigendian" >&6; }
22548 case $ac_cv_c_bigendian in #(
22549 yes)
22550 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22551;; #(
22552 no)
22553 ;; #(
22554 universal)
22555
22556$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22557
22558 ;; #(
22559 *)
22560 as_fn_error $? "unknown endianness
22561 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22562 esac
22563
22564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22565$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22566if ${ac_cv_c_const+:} false; then :
22567 $as_echo_n "(cached) " >&6
22568else
22569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22570/* end confdefs.h. */
22571
22572int
22573main ()
22574{
22575
22576#ifndef __cplusplus
22577 /* Ultrix mips cc rejects this sort of thing. */
22578 typedef int charset[2];
22579 const charset cs = { 0, 0 };
22580 /* SunOS 4.1.1 cc rejects this. */
22581 char const *const *pcpcc;
22582 char **ppc;
22583 /* NEC SVR4.0.2 mips cc rejects this. */
22584 struct point {int x, y;};
22585 static struct point const zero = {0,0};
22586 /* AIX XL C 1.02.0.0 rejects this.
22587 It does not let you subtract one const X* pointer from another in
22588 an arm of an if-expression whose if-part is not a constant
22589 expression */
22590 const char *g = "string";
22591 pcpcc = &g + (g ? g-g : 0);
22592 /* HPUX 7.0 cc rejects these. */
22593 ++pcpcc;
22594 ppc = (char**) pcpcc;
22595 pcpcc = (char const *const *) ppc;
22596 { /* SCO 3.2v4 cc rejects this sort of thing. */
22597 char tx;
22598 char *t = &tx;
22599 char const *s = 0 ? (char *) 0 : (char const *) 0;
22600
22601 *t++ = 0;
22602 if (s) return 0;
22603 }
22604 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22605 int x[] = {25, 17};
22606 const int *foo = &x[0];
22607 ++foo;
22608 }
22609 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22610 typedef const int *iptr;
22611 iptr p = 0;
22612 ++p;
22613 }
22614 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22615 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22616 struct s { int j; const int *ap[3]; } bx;
22617 struct s *b = &bx; b->j = 5;
22618 }
22619 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22620 const int foo = 10;
22621 if (!foo) return 0;
22622 }
22623 return !cs[0] && !zero.x;
22624#endif
22625
22626 ;
22627 return 0;
22628}
22629_ACEOF
22630if ac_fn_c_try_compile "$LINENO"; then :
22631 ac_cv_c_const=yes
22632else
22633 ac_cv_c_const=no
22634fi
22635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636fi
22637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22638$as_echo "$ac_cv_c_const" >&6; }
22639if test $ac_cv_c_const = no; then
22640
22641$as_echo "#define const /**/" >>confdefs.h
22642
22643fi
22644
22645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22646$as_echo_n "checking for inline... " >&6; }
22647if ${ac_cv_c_inline+:} false; then :
22648 $as_echo_n "(cached) " >&6
22649else
22650 ac_cv_c_inline=no
22651for ac_kw in inline __inline__ __inline; do
22652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22653/* end confdefs.h. */
22654#ifndef __cplusplus
22655typedef int foo_t;
22656static $ac_kw foo_t static_foo () {return 0; }
22657$ac_kw foo_t foo () {return 0; }
22658#endif
22659
22660_ACEOF
22661if ac_fn_c_try_compile "$LINENO"; then :
22662 ac_cv_c_inline=$ac_kw
22663fi
22664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22665 test "$ac_cv_c_inline" != no && break
22666done
22667
22668fi
22669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22670$as_echo "$ac_cv_c_inline" >&6; }
22671
22672case $ac_cv_c_inline in
22673 inline | yes) ;;
22674 *)
22675 case $ac_cv_c_inline in
22676 no) ac_val=;;
22677 *) ac_val=$ac_cv_c_inline;;
22678 esac
22679 cat >>confdefs.h <<_ACEOF
22680#ifndef __cplusplus
22681#define inline $ac_val
22682#endif
22683_ACEOF
22684 ;;
22685esac
22686
22687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22688$as_echo_n "checking for working volatile... " >&6; }
22689if ${ac_cv_c_volatile+:} false; then :
22690 $as_echo_n "(cached) " >&6
22691else
22692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22693/* end confdefs.h. */
22694
22695int
22696main ()
22697{
22698
22699volatile int x;
22700int * volatile y = (int *) 0;
22701return !x && !y;
22702 ;
22703 return 0;
22704}
22705_ACEOF
22706if ac_fn_c_try_compile "$LINENO"; then :
22707 ac_cv_c_volatile=yes
22708else
22709 ac_cv_c_volatile=no
22710fi
22711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22712fi
22713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22714$as_echo "$ac_cv_c_volatile" >&6; }
22715if test $ac_cv_c_volatile = no; then
22716
22717$as_echo "#define volatile /**/" >>confdefs.h
22718
22719fi
22720
22721ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22722if test "x$ac_cv_type_mode_t" = xyes; then :
22723
22724else
22725
22726cat >>confdefs.h <<_ACEOF
22727#define mode_t int
22728_ACEOF
22729
22730fi
22731
22732ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22733if test "x$ac_cv_type_pid_t" = xyes; then :
22734
22735else
22736
22737cat >>confdefs.h <<_ACEOF
22738#define pid_t int
22739_ACEOF
22740
22741fi
22742
22743ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22744if test "x$ac_cv_type_size_t" = xyes; then :
22745
22746else
22747
22748cat >>confdefs.h <<_ACEOF
22749#define size_t unsigned int
22750_ACEOF
22751
22752fi
22753
22754
22755
22756 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
22757if test "x$ac_cv_type_u_int8_t" = xyes; then :
22758
22759else
22760
22761
22762cat >>confdefs.h <<_ACEOF
22763#define u_int8_t uint8_t
22764_ACEOF
22765
22766
22767fi
22768
22769
22770
22771 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
22772if test "x$ac_cv_type_u_int16_t" = xyes; then :
22773
22774else
22775
22776
22777cat >>confdefs.h <<_ACEOF
22778#define u_int16_t uint16_t
22779_ACEOF
22780
22781
22782fi
22783
22784
22785
22786 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
22787if test "x$ac_cv_type_u_int32_t" = xyes; then :
22788
22789else
22790
22791
22792cat >>confdefs.h <<_ACEOF
22793#define u_int32_t uint32_t
22794_ACEOF
22795
22796
22797fi
22798
22799
22800
22801 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
22802if test "x$ac_cv_type_u_int64_t" = xyes; then :
22803
22804else
22805
22806
22807cat >>confdefs.h <<_ACEOF
22808#define u_int64_t uint64_t
22809_ACEOF
22810
22811
22812fi
22813
22814
22815
22816
22817 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22818if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
22819
22820else
22821
22822
22823cat >>confdefs.h <<_ACEOF
22824#define ptrdiff_t int
22825_ACEOF
22826
22827
22828fi
22829
22830
22831# The cast to long int works around a bug in the HP C Compiler
22832# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22833# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22834# This bug is HP SR number 8606223364.
22835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
22836$as_echo_n "checking size of unsigned int... " >&6; }
22837if ${ac_cv_sizeof_unsigned_int+:} false; then :
22838 $as_echo_n "(cached) " >&6
22839else
22840 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
22841
22842else
22843 if test "$ac_cv_type_unsigned_int" = yes; then
22844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22846as_fn_error 77 "cannot compute sizeof (unsigned int)
22847See \`config.log' for more details" "$LINENO" 5; }
22848 else
22849 ac_cv_sizeof_unsigned_int=0
22850 fi
22851fi
22852
22853fi
22854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
22855$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
22856
22857
22858
22859cat >>confdefs.h <<_ACEOF
22860#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22861_ACEOF
22862
22863
22864# The cast to long int works around a bug in the HP C Compiler
22865# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22866# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22867# This bug is HP SR number 8606223364.
22868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
22869$as_echo_n "checking size of unsigned long... " >&6; }
22870if ${ac_cv_sizeof_unsigned_long+:} false; then :
22871 $as_echo_n "(cached) " >&6
22872else
22873 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
22874
22875else
22876 if test "$ac_cv_type_unsigned_long" = yes; then
22877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22879as_fn_error 77 "cannot compute sizeof (unsigned long)
22880See \`config.log' for more details" "$LINENO" 5; }
22881 else
22882 ac_cv_sizeof_unsigned_long=0
22883 fi
22884fi
22885
22886fi
22887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
22888$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22889
22890
22891
22892cat >>confdefs.h <<_ACEOF
22893#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22894_ACEOF
22895
22896
22897
22898 for ac_header in unistd.h
22899do :
22900 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22901if test "x$ac_cv_header_unistd_h" = xyes; then :
22902 cat >>confdefs.h <<_ACEOF
22903#define HAVE_UNISTD_H 1
22904_ACEOF
22905
22906fi
22907
22908done
22909
22910 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
22911#include <signal.h>
22912/* NetBSD declares sys_siglist in unistd.h. */
22913#if HAVE_UNISTD_H
22914# include <unistd.h>
22915#endif
22916
22917"
22918if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
22919 ac_have_decl=1
22920else
22921 ac_have_decl=0
22922fi
22923
22924cat >>confdefs.h <<_ACEOF
22925#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
22926_ACEOF
22927
22928
22929
22930 ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "
22931#include <errno.h>
22932/* glibc declares sys_errlist in stdio.h. */
22933#include <stdio.h>
22934
22935"
22936if test "x$ac_cv_have_decl_sys_errlist" = xyes; then :
22937 ac_have_decl=1
22938else
22939 ac_have_decl=0
22940fi
22941
22942cat >>confdefs.h <<_ACEOF
22943#define HAVE_DECL_SYS_ERRLIST $ac_have_decl
22944_ACEOF
22945ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "
22946#include <errno.h>
22947/* glibc declares sys_errlist in stdio.h. */
22948#include <stdio.h>
22949
22950"
22951if test "x$ac_cv_have_decl_sys_nerr" = xyes; then :
22952 ac_have_decl=1
22953else
22954 ac_have_decl=0
22955fi
22956
22957cat >>confdefs.h <<_ACEOF
22958#define HAVE_DECL_SYS_NERR $ac_have_decl
22959_ACEOF
22960
22961 if test "x$ac_cv_have_decl_sys_errlist" = "xyes" && \
22962 test "x$ac_cv_have_decl_sys_nerr" = "xyes"; then
22963 HAVE_SYS_ERRLIST_TRUE=
22964 HAVE_SYS_ERRLIST_FALSE='#'
22965else
22966 HAVE_SYS_ERRLIST_TRUE='#'
22967 HAVE_SYS_ERRLIST_FALSE=
22968fi
22969
22970
22971
22972# Checks for library functions.
22973
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22975$as_echo_n "checking for va_copy... " >&6; }
22976if ${dpkg_cv_va_copy+:} false; then :
22977 $as_echo_n "(cached) " >&6
22978else
22979
22980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22981/* end confdefs.h. */
22982
22983
22984#include <stdarg.h>
22985
22986int
22987main ()
22988{
22989
22990va_list v1, v2;
22991va_copy(v1, v2);
22992
22993 ;
22994 return 0;
22995}
22996
22997_ACEOF
22998if ac_fn_c_try_compile "$LINENO"; then :
22999
23000 dpkg_cv_va_copy=yes
23001
23002else
23003
23004 dpkg_cv_va_copy=no
23005
23006fi
23007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23008
23009fi
23010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_va_copy" >&5
23011$as_echo "$dpkg_cv_va_copy" >&6; }
23012 if test "x$dpkg_cv_va_copy" = "xyes"; then :
23013
23014
23015$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
23016
23017
23018fi
23019
23020
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 snprintf functions" >&5
23022$as_echo_n "checking for C99 snprintf functions... " >&6; }
23023if ${dpkg_cv_c99_snprintf+:} false; then :
23024 $as_echo_n "(cached) " >&6
23025else
23026
23027 if test "$cross_compiling" = yes; then :
23028
23029 dpkg_cv_c99_snprintf=maybe
23030
23031else
23032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23033/* end confdefs.h. */
23034
23035
23036#include <stdarg.h>
23037#include <stdio.h>
23038#include <string.h>
23039int test_vsnprintf(const char *fmt, ...)
23040{
23041 int n;
23042 va_list args;
23043
23044 va_start(args, fmt);
23045 n = vsnprintf(NULL, 0, fmt, args);
23046 va_end(args);
23047
23048 return n;
23049}
23050int main()
23051{
23052 int n;
23053
23054 n = snprintf(NULL, 0, "format %s %d", "string", 10);
23055 if (n != strlen("format string 10"))
23056 return 1;
23057
23058 n = test_vsnprintf("format %s %d", "string", 10);
23059 if (n != strlen("format string 10"))
23060 return 1;
23061
23062 return 0;
23063}
23064
23065
23066_ACEOF
23067if ac_fn_c_try_run "$LINENO"; then :
23068
23069 dpkg_cv_c99_snprintf=yes
23070
23071else
23072
23073 dpkg_cv_c99_snprintf=no
23074
23075fi
23076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23077 conftest.$ac_objext conftest.beam conftest.$ac_ext
23078fi
23079
23080
23081 if test "x$dpkg_cv_c99_snprintf" = "xmaybe"; then :
23082
23083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23084/* end confdefs.h. */
23085
23086
23087#define _GNU_SOURCE 1
23088#include <unistd.h>
23089#if !defined(_XOPEN_VERSION) || _XOPEN_VERSION < 600
23090#error "snprintf() has conflicting semantics with C99 on SUSv2 and earlier"
23091#endif
23092
23093
23094_ACEOF
23095if ac_fn_c_try_compile "$LINENO"; then :
23096
23097 dpkg_cv_c99_snprintf=yes
23098
23099else
23100
23101 dpkg_cv_c99_snprintf=no
23102
23103fi
23104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105
23106fi
23107
23108fi
23109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_c99_snprintf" >&5
23110$as_echo "$dpkg_cv_c99_snprintf" >&6; }
23111 if test "x$dpkg_cv_c99_snprintf" = "xyes"; then :
23112
23113
23114$as_echo "#define HAVE_C99_SNPRINTF 1" >>confdefs.h
23115
23116
23117fi
23118 if test "x$dpkg_cv_c99_snprintf" = "xyes"; then
23119 HAVE_C99_SNPRINTF_TRUE=
23120 HAVE_C99_SNPRINTF_FALSE='#'
23121else
23122 HAVE_C99_SNPRINTF_TRUE='#'
23123 HAVE_C99_SNPRINTF_FALSE=
23124fi
23125
23126
23127
23128 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "#include <stddef.h>
23129"
23130if test "x$ac_cv_have_decl_offsetof" = xyes; then :
23131
23132
23133$as_echo "#define HAVE_OFFSETOF 1" >>confdefs.h
23134
23135
23136fi
23137
23138
23139
23140 ac_fn_c_check_decl "$LINENO" "makedev" "ac_cv_have_decl_makedev" "#include <sys/types.h>
23141"
23142if test "x$ac_cv_have_decl_makedev" = xyes; then :
23143
23144
23145$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
23146
23147
23148fi
23149
23150
23151
23152 ac_fn_c_check_decl "$LINENO" "WCOREDUMP" "ac_cv_have_decl_WCOREDUMP" "#include <sys/wait.h>
23153"
23154if test "x$ac_cv_have_decl_WCOREDUMP" = xyes; then :
23155
23156
23157$as_echo "#define HAVE_WCOREDUMP 1" >>confdefs.h
23158
23159
23160fi
23161
23162
23163
23164 ac_fn_c_check_decl "$LINENO" "TIOCNOTTY" "ac_cv_have_decl_TIOCNOTTY" "#include <sys/ioctl.h>
23165"
23166if test "x$ac_cv_have_decl_TIOCNOTTY" = xyes; then :
23167
23168
23169$as_echo "#define HAVE_TIOCNOTTY 1" >>confdefs.h
23170
23171
23172fi
23173
23174
23175
23176 ac_fn_c_check_decl "$LINENO" "O_NOFOLLOW" "ac_cv_have_decl_O_NOFOLLOW" "#include <fcntl.h>
23177"
23178if test "x$ac_cv_have_decl_O_NOFOLLOW" = xyes; then :
23179
23180
23181$as_echo "#define HAVE_O_NOFOLLOW 1" >>confdefs.h
23182
23183
23184fi
23185
23186
23187
23188 ac_fn_c_check_decl "$LINENO" "F_ALLOCSP64" "ac_cv_have_decl_F_ALLOCSP64" "#include <fcntl.h>
23189"
23190if test "x$ac_cv_have_decl_F_ALLOCSP64" = xyes; then :
23191
23192
23193$as_echo "#define HAVE_F_ALLOCSP64 1" >>confdefs.h
23194
23195
23196fi
23197
23198
23199
23200 ac_fn_c_check_decl "$LINENO" "F_PREALLOCATE" "ac_cv_have_decl_F_PREALLOCATE" "#include <fcntl.h>
23201"
23202if test "x$ac_cv_have_decl_F_PREALLOCATE" = xyes; then :
23203
23204
23205$as_echo "#define HAVE_F_PREALLOCATE 1" >>confdefs.h
23206
23207
23208fi
23209
23210
23211
23212 ac_fn_c_check_decl "$LINENO" "P_tmpdir" "ac_cv_have_decl_P_tmpdir" "#include <stdio.h>
23213"
23214if test "x$ac_cv_have_decl_P_tmpdir" = xyes; then :
23215
23216
23217$as_echo "#define HAVE_P_TMPDIR 1" >>confdefs.h
23218
23219
23220fi
23221
23222
23223
23224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_short_name" >&5
23225$as_echo_n "checking for program_invocation_short_name... " >&6; }
23226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23227/* end confdefs.h. */
23228
23229 #include <errno.h>
23230int
23231main ()
23232{
23233const char *p = program_invocation_short_name;
23234 ;
23235 return 0;
23236}
23237
23238_ACEOF
23239if ac_fn_c_try_link "$LINENO"; then :
23240
23241
23242$as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
23243
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23245$as_echo "yes" >&6; }
23246
23247else
23248
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23250$as_echo "no" >&6; }
23251
23252fi
23253rm -f core conftest.err conftest.$ac_objext \
23254 conftest$ac_exeext conftest.$ac_ext
23255
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
23257$as_echo_n "checking for __progname... " >&6; }
23258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23259/* end confdefs.h. */
23260
23261 extern char *__progname;
23262int
23263main ()
23264{
23265printf("%s", __progname);
23266 ;
23267 return 0;
23268}
23269
23270_ACEOF
23271if ac_fn_c_try_link "$LINENO"; then :
23272
23273
23274$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
23275
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23277$as_echo "yes" >&6; }
23278
23279else
23280
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23282$as_echo "no" >&6; }
23283
23284fi
23285rm -f core conftest.err conftest.$ac_objext \
23286 conftest$ac_exeext conftest.$ac_ext
23287
23288
23289 for ac_func in \
23290 getopt \
23291 getopt_long \
23292 obstack_free \
23293 strnlen \
23294 strndup \
23295 strerror \
23296 strsignal \
23297 asprintf \
23298 scandir \
23299 alphasort \
23300 unsetenv \
23301
23302do :
23303 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23304ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23305if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23306 cat >>confdefs.h <<_ACEOF
23307#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23308_ACEOF
23309
23310fi
23311done
23312
23313
23314 if test "x$ac_cv_func_getopt" = "xyes"; then
23315 HAVE_GETOPT_TRUE=
23316 HAVE_GETOPT_FALSE='#'
23317else
23318 HAVE_GETOPT_TRUE='#'
23319 HAVE_GETOPT_FALSE=
23320fi
23321
23322
23323 if test "x$ac_cv_func_getopt_long" = "xyes"; then
23324 HAVE_GETOPT_LONG_TRUE=
23325 HAVE_GETOPT_LONG_FALSE='#'
23326else
23327 HAVE_GETOPT_LONG_TRUE='#'
23328 HAVE_GETOPT_LONG_FALSE=
23329fi
23330
23331
23332 if test "x$ac_cv_func_obstack_free" = "xyes"; then
23333 HAVE_OBSTACK_FREE_TRUE=
23334 HAVE_OBSTACK_FREE_FALSE='#'
23335else
23336 HAVE_OBSTACK_FREE_TRUE='#'
23337 HAVE_OBSTACK_FREE_FALSE=
23338fi
23339
23340
23341 if test "x$ac_cv_func_strnlen" = "xyes"; then
23342 HAVE_STRNLEN_TRUE=
23343 HAVE_STRNLEN_FALSE='#'
23344else
23345 HAVE_STRNLEN_TRUE='#'
23346 HAVE_STRNLEN_FALSE=
23347fi
23348
23349
23350 if test "x$ac_cv_func_strndup" = "xyes"; then
23351 HAVE_STRNDUP_TRUE=
23352 HAVE_STRNDUP_FALSE='#'
23353else
23354 HAVE_STRNDUP_TRUE='#'
23355 HAVE_STRNDUP_FALSE=
23356fi
23357
23358
23359 if test "x$ac_cv_func_strerror" = "xyes"; then
23360 HAVE_STRERROR_TRUE=
23361 HAVE_STRERROR_FALSE='#'
23362else
23363 HAVE_STRERROR_TRUE='#'
23364 HAVE_STRERROR_FALSE=
23365fi
23366
23367
23368 if test "x$ac_cv_func_strsignal" = "xyes"; then
23369 HAVE_STRSIGNAL_TRUE=
23370 HAVE_STRSIGNAL_FALSE='#'
23371else
23372 HAVE_STRSIGNAL_TRUE='#'
23373 HAVE_STRSIGNAL_FALSE=
23374fi
23375
23376
23377 if test "x$ac_cv_func_asprintf" = "xyes"; then
23378 HAVE_ASPRINTF_TRUE=
23379 HAVE_ASPRINTF_FALSE='#'
23380else
23381 HAVE_ASPRINTF_TRUE='#'
23382 HAVE_ASPRINTF_FALSE=
23383fi
23384
23385
23386 if test "x$ac_cv_func_scandir" = "xyes"; then
23387 HAVE_SCANDIR_TRUE=
23388 HAVE_SCANDIR_FALSE='#'
23389else
23390 HAVE_SCANDIR_TRUE='#'
23391 HAVE_SCANDIR_FALSE=
23392fi
23393
23394
23395 if test "x$ac_cv_func_alphasort" = "xyes"; then
23396 HAVE_ALPHASORT_TRUE=
23397 HAVE_ALPHASORT_FALSE='#'
23398else
23399 HAVE_ALPHASORT_TRUE='#'
23400 HAVE_ALPHASORT_FALSE=
23401fi
23402
23403
23404 if test "x$ac_cv_func_unsetenv" = "xyes"; then
23405 HAVE_UNSETENV_TRUE=
23406 HAVE_UNSETENV_FALSE='#'
23407else
23408 HAVE_UNSETENV_TRUE='#'
23409 HAVE_UNSETENV_FALSE=
23410fi
23411
23412
23413
23414for ac_func in memcpy lchown
23415do :
23416 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23417ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23418if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23419 cat >>confdefs.h <<_ACEOF
23420#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23421_ACEOF
23422
23423else
23424 as_fn_error $? "missing required function" "$LINENO" 5
23425fi
23426done
23427
23428for ac_func in \
23429 strtoimax \
23430 isascii \
23431 setsid \
23432 getdtablesize \
23433 getprogname \
23434 getexecname \
23435 lutimes \
23436 fallocate \
23437 posix_fallocate \
23438 posix_fadvise \
23439
23440do :
23441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23442ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23443if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23444 cat >>confdefs.h <<_ACEOF
23445#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23446_ACEOF
23447
23448fi
23449done
23450
23451
23452if test "x$build_dselect" = "xyes"; then :
23453
23454 ac_ext=cpp
23455ac_cpp='$CXXCPP $CPPFLAGS'
23456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23459
23460 for ac_func in __cxa_pure_virtual
23461do :
23462 ac_fn_cxx_check_func "$LINENO" "__cxa_pure_virtual" "ac_cv_func___cxa_pure_virtual"
23463if test "x$ac_cv_func___cxa_pure_virtual" = xyes; then :
23464 cat >>confdefs.h <<_ACEOF
23465#define HAVE___CXA_PURE_VIRTUAL 1
23466_ACEOF
23467
23468fi
23469done
23470
23471 ac_ext=c
23472ac_cpp='$CPP $CPPFLAGS'
23473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23475ac_compiler_gnu=$ac_cv_c_compiler_gnu
23476
23477
23478fi
23479
23480
23481 # Check whether --enable-mmap was given.
23482if test "${enable_mmap+set}" = set; then :
23483 enableval=$enable_mmap;
23484else
23485 enable_mmap=no
23486fi
23487
23488
23489 if test "x$enable_mmap" = "xyes"; then :
23490
23491 for ac_func in mmap
23492do :
23493 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
23494if test "x$ac_cv_func_mmap" = xyes; then :
23495 cat >>confdefs.h <<_ACEOF
23496#define HAVE_MMAP 1
23497_ACEOF
23498
23499fi
23500done
23501
23502
23503$as_echo "#define USE_MMAP 1" >>confdefs.h
23504
23505
23506fi
23507
23508
23509 # Check whether --enable-disk-preallocate was given.
23510if test "${enable_disk_preallocate+set}" = set; then :
23511 enableval=$enable_disk_preallocate;
23512else
23513 enable_disk_preallocate=no
23514fi
23515
23516
23517 if test "x$enable_disk_preallocate" = "xyes"; then :
23518
23519
23520$as_echo "#define USE_DISK_PREALLOCATE 1" >>confdefs.h
23521
23522
23523fi
23524
23525
23526# Checks for the build machinery.
23527
23528$as_echo "#define LIBDPKG_VOLATILE_API 1" >>confdefs.h
23529
23530
23531 # Check whether --enable-compiler-warnings was given.
23532if test "${enable_compiler_warnings+set}" = set; then :
23533 enableval=$enable_compiler_warnings;
23534else
23535 enable_compiler_warnings=yes
23536fi
23537
23538
23539 if test "x$enable_compiler_warnings" = "xyes"; then :
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wall" >&5
23553$as_echo_n "checking whether $CC accepts -Wall... " >&6; }
23554if ${dpkg_cv_cflags__Wall+:} false; then :
23555 $as_echo_n "(cached) " >&6
23556else
23557
23558 dpkg_save_CFLAGS=$CFLAGS
23559 CFLAGS="-Werror -Wall"
23560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23561/* end confdefs.h. */
23562
23563
23564
23565_ACEOF
23566if ac_fn_c_try_compile "$LINENO"; then :
23567
23568 dpkg_cv_cflags__Wall=yes
23569
23570else
23571
23572 dpkg_cv_cflags__Wall=no
23573
23574fi
23575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23576 CFLAGS=$dpkg_save_CFLAGS
23577
23578fi
23579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wall" >&5
23580$as_echo "$dpkg_cv_cflags__Wall" >&6; }
23581 if test "x$dpkg_cv_cflags__Wall" = xyes; then :
23582
23583 as_fn_append COMPILER_CFLAGS " -Wall"
23584
23585fi
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wextra" >&5
23599$as_echo_n "checking whether $CC accepts -Wextra... " >&6; }
23600if ${dpkg_cv_cflags__Wextra+:} false; then :
23601 $as_echo_n "(cached) " >&6
23602else
23603
23604 dpkg_save_CFLAGS=$CFLAGS
23605 CFLAGS="-Werror -Wextra"
23606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23607/* end confdefs.h. */
23608
23609
23610
23611_ACEOF
23612if ac_fn_c_try_compile "$LINENO"; then :
23613
23614 dpkg_cv_cflags__Wextra=yes
23615
23616else
23617
23618 dpkg_cv_cflags__Wextra=no
23619
23620fi
23621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23622 CFLAGS=$dpkg_save_CFLAGS
23623
23624fi
23625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wextra" >&5
23626$as_echo "$dpkg_cv_cflags__Wextra" >&6; }
23627 if test "x$dpkg_cv_cflags__Wextra" = xyes; then :
23628
23629 as_fn_append COMPILER_CFLAGS " -Wextra"
23630
23631fi
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wno-unused-parameter" >&5
23645$as_echo_n "checking whether $CC accepts -Wno-unused-parameter... " >&6; }
23646if ${dpkg_cv_cflags__Wno_unused_parameter+:} false; then :
23647 $as_echo_n "(cached) " >&6
23648else
23649
23650 dpkg_save_CFLAGS=$CFLAGS
23651 CFLAGS="-Werror -Wunused-parameter"
23652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23653/* end confdefs.h. */
23654
23655
23656
23657_ACEOF
23658if ac_fn_c_try_compile "$LINENO"; then :
23659
23660 dpkg_cv_cflags__Wno_unused_parameter=yes
23661
23662else
23663
23664 dpkg_cv_cflags__Wno_unused_parameter=no
23665
23666fi
23667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23668 CFLAGS=$dpkg_save_CFLAGS
23669
23670fi
23671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wno_unused_parameter" >&5
23672$as_echo "$dpkg_cv_cflags__Wno_unused_parameter" >&6; }
23673 if test "x$dpkg_cv_cflags__Wno_unused_parameter" = xyes; then :
23674
23675 as_fn_append COMPILER_CFLAGS " -Wno-unused-parameter"
23676
23677fi
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wno-missing-field-initializers" >&5
23691$as_echo_n "checking whether $CC accepts -Wno-missing-field-initializers... " >&6; }
23692if ${dpkg_cv_cflags__Wno_missing_field_initializers+:} false; then :
23693 $as_echo_n "(cached) " >&6
23694else
23695
23696 dpkg_save_CFLAGS=$CFLAGS
23697 CFLAGS="-Werror -Wmissing-field-initializers"
23698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23699/* end confdefs.h. */
23700
23701
23702
23703_ACEOF
23704if ac_fn_c_try_compile "$LINENO"; then :
23705
23706 dpkg_cv_cflags__Wno_missing_field_initializers=yes
23707
23708else
23709
23710 dpkg_cv_cflags__Wno_missing_field_initializers=no
23711
23712fi
23713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23714 CFLAGS=$dpkg_save_CFLAGS
23715
23716fi
23717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wno_missing_field_initializers" >&5
23718$as_echo "$dpkg_cv_cflags__Wno_missing_field_initializers" >&6; }
23719 if test "x$dpkg_cv_cflags__Wno_missing_field_initializers" = xyes; then :
23720
23721 as_fn_append COMPILER_CFLAGS " -Wno-missing-field-initializers"
23722
23723fi
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wno-tautological-constant-out-of-range-compare" >&5
23737$as_echo_n "checking whether $CC accepts -Wno-tautological-constant-out-of-range-compare... " >&6; }
23738if ${dpkg_cv_cflags__Wno_tautological_constant_out_of_range_compare+:} false; then :
23739 $as_echo_n "(cached) " >&6
23740else
23741
23742 dpkg_save_CFLAGS=$CFLAGS
23743 CFLAGS="-Werror -Wtautological-constant-out-of-range-compare"
23744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23745/* end confdefs.h. */
23746
23747
23748
23749_ACEOF
23750if ac_fn_c_try_compile "$LINENO"; then :
23751
23752 dpkg_cv_cflags__Wno_tautological_constant_out_of_range_compare=yes
23753
23754else
23755
23756 dpkg_cv_cflags__Wno_tautological_constant_out_of_range_compare=no
23757
23758fi
23759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23760 CFLAGS=$dpkg_save_CFLAGS
23761
23762fi
23763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wno_tautological_constant_out_of_range_compare" >&5
23764$as_echo "$dpkg_cv_cflags__Wno_tautological_constant_out_of_range_compare" >&6; }
23765 if test "x$dpkg_cv_cflags__Wno_tautological_constant_out_of_range_compare" = xyes; then :
23766
23767 as_fn_append COMPILER_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
23768
23769fi
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wmissing-declarations" >&5
23783$as_echo_n "checking whether $CC accepts -Wmissing-declarations... " >&6; }
23784if ${dpkg_cv_cflags__Wmissing_declarations+:} false; then :
23785 $as_echo_n "(cached) " >&6
23786else
23787
23788 dpkg_save_CFLAGS=$CFLAGS
23789 CFLAGS="-Werror -Wmissing-declarations"
23790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23791/* end confdefs.h. */
23792
23793
23794
23795_ACEOF
23796if ac_fn_c_try_compile "$LINENO"; then :
23797
23798 dpkg_cv_cflags__Wmissing_declarations=yes
23799
23800else
23801
23802 dpkg_cv_cflags__Wmissing_declarations=no
23803
23804fi
23805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23806 CFLAGS=$dpkg_save_CFLAGS
23807
23808fi
23809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wmissing_declarations" >&5
23810$as_echo "$dpkg_cv_cflags__Wmissing_declarations" >&6; }
23811 if test "x$dpkg_cv_cflags__Wmissing_declarations" = xyes; then :
23812
23813 as_fn_append COMPILER_CFLAGS " -Wmissing-declarations"
23814
23815fi
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wmissing-format-attribute" >&5
23829$as_echo_n "checking whether $CC accepts -Wmissing-format-attribute... " >&6; }
23830if ${dpkg_cv_cflags__Wmissing_format_attribute+:} false; then :
23831 $as_echo_n "(cached) " >&6
23832else
23833
23834 dpkg_save_CFLAGS=$CFLAGS
23835 CFLAGS="-Werror -Wmissing-format-attribute"
23836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23837/* end confdefs.h. */
23838
23839
23840
23841_ACEOF
23842if ac_fn_c_try_compile "$LINENO"; then :
23843
23844 dpkg_cv_cflags__Wmissing_format_attribute=yes
23845
23846else
23847
23848 dpkg_cv_cflags__Wmissing_format_attribute=no
23849
23850fi
23851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23852 CFLAGS=$dpkg_save_CFLAGS
23853
23854fi
23855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wmissing_format_attribute" >&5
23856$as_echo "$dpkg_cv_cflags__Wmissing_format_attribute" >&6; }
23857 if test "x$dpkg_cv_cflags__Wmissing_format_attribute" = xyes; then :
23858
23859 as_fn_append COMPILER_CFLAGS " -Wmissing-format-attribute"
23860
23861fi
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wformat -Wformat-security" >&5
23875$as_echo_n "checking whether $CC accepts -Wformat -Wformat-security... " >&6; }
23876if ${dpkg_cv_cflags__Wformat__Wformat_security+:} false; then :
23877 $as_echo_n "(cached) " >&6
23878else
23879
23880 dpkg_save_CFLAGS=$CFLAGS
23881 CFLAGS="-Werror -Wformat -Wformat-security"
23882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23883/* end confdefs.h. */
23884
23885
23886
23887_ACEOF
23888if ac_fn_c_try_compile "$LINENO"; then :
23889
23890 dpkg_cv_cflags__Wformat__Wformat_security=yes
23891
23892else
23893
23894 dpkg_cv_cflags__Wformat__Wformat_security=no
23895
23896fi
23897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23898 CFLAGS=$dpkg_save_CFLAGS
23899
23900fi
23901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wformat__Wformat_security" >&5
23902$as_echo "$dpkg_cv_cflags__Wformat__Wformat_security" >&6; }
23903 if test "x$dpkg_cv_cflags__Wformat__Wformat_security" = xyes; then :
23904
23905 as_fn_append COMPILER_CFLAGS " -Wformat -Wformat-security"
23906
23907fi
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wsizeof-array-argument" >&5
23921$as_echo_n "checking whether $CC accepts -Wsizeof-array-argument... " >&6; }
23922if ${dpkg_cv_cflags__Wsizeof_array_argument+:} false; then :
23923 $as_echo_n "(cached) " >&6
23924else
23925
23926 dpkg_save_CFLAGS=$CFLAGS
23927 CFLAGS="-Werror -Wsizeof-array-argument"
23928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23929/* end confdefs.h. */
23930
23931
23932
23933_ACEOF
23934if ac_fn_c_try_compile "$LINENO"; then :
23935
23936 dpkg_cv_cflags__Wsizeof_array_argument=yes
23937
23938else
23939
23940 dpkg_cv_cflags__Wsizeof_array_argument=no
23941
23942fi
23943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23944 CFLAGS=$dpkg_save_CFLAGS
23945
23946fi
23947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wsizeof_array_argument" >&5
23948$as_echo "$dpkg_cv_cflags__Wsizeof_array_argument" >&6; }
23949 if test "x$dpkg_cv_cflags__Wsizeof_array_argument" = xyes; then :
23950
23951 as_fn_append COMPILER_CFLAGS " -Wsizeof-array-argument"
23952
23953fi
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wpointer-arith" >&5
23967$as_echo_n "checking whether $CC accepts -Wpointer-arith... " >&6; }
23968if ${dpkg_cv_cflags__Wpointer_arith+:} false; then :
23969 $as_echo_n "(cached) " >&6
23970else
23971
23972 dpkg_save_CFLAGS=$CFLAGS
23973 CFLAGS="-Werror -Wpointer-arith"
23974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23975/* end confdefs.h. */
23976
23977
23978
23979_ACEOF
23980if ac_fn_c_try_compile "$LINENO"; then :
23981
23982 dpkg_cv_cflags__Wpointer_arith=yes
23983
23984else
23985
23986 dpkg_cv_cflags__Wpointer_arith=no
23987
23988fi
23989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23990 CFLAGS=$dpkg_save_CFLAGS
23991
23992fi
23993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wpointer_arith" >&5
23994$as_echo "$dpkg_cv_cflags__Wpointer_arith" >&6; }
23995 if test "x$dpkg_cv_cflags__Wpointer_arith" = xyes; then :
23996
23997 as_fn_append COMPILER_CFLAGS " -Wpointer-arith"
23998
23999fi
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wlogical-op" >&5
24013$as_echo_n "checking whether $CC accepts -Wlogical-op... " >&6; }
24014if ${dpkg_cv_cflags__Wlogical_op+:} false; then :
24015 $as_echo_n "(cached) " >&6
24016else
24017
24018 dpkg_save_CFLAGS=$CFLAGS
24019 CFLAGS="-Werror -Wlogical-op"
24020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24021/* end confdefs.h. */
24022
24023
24024
24025_ACEOF
24026if ac_fn_c_try_compile "$LINENO"; then :
24027
24028 dpkg_cv_cflags__Wlogical_op=yes
24029
24030else
24031
24032 dpkg_cv_cflags__Wlogical_op=no
24033
24034fi
24035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036 CFLAGS=$dpkg_save_CFLAGS
24037
24038fi
24039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wlogical_op" >&5
24040$as_echo "$dpkg_cv_cflags__Wlogical_op" >&6; }
24041 if test "x$dpkg_cv_cflags__Wlogical_op" = xyes; then :
24042
24043 as_fn_append COMPILER_CFLAGS " -Wlogical-op"
24044
24045fi
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wlogical-not-parentheses" >&5
24059$as_echo_n "checking whether $CC accepts -Wlogical-not-parentheses... " >&6; }
24060if ${dpkg_cv_cflags__Wlogical_not_parentheses+:} false; then :
24061 $as_echo_n "(cached) " >&6
24062else
24063
24064 dpkg_save_CFLAGS=$CFLAGS
24065 CFLAGS="-Werror -Wlogical-not-parentheses"
24066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24067/* end confdefs.h. */
24068
24069
24070
24071_ACEOF
24072if ac_fn_c_try_compile "$LINENO"; then :
24073
24074 dpkg_cv_cflags__Wlogical_not_parentheses=yes
24075
24076else
24077
24078 dpkg_cv_cflags__Wlogical_not_parentheses=no
24079
24080fi
24081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24082 CFLAGS=$dpkg_save_CFLAGS
24083
24084fi
24085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wlogical_not_parentheses" >&5
24086$as_echo "$dpkg_cv_cflags__Wlogical_not_parentheses" >&6; }
24087 if test "x$dpkg_cv_cflags__Wlogical_not_parentheses" = xyes; then :
24088
24089 as_fn_append COMPILER_CFLAGS " -Wlogical-not-parentheses"
24090
24091fi
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wswitch-bool" >&5
24105$as_echo_n "checking whether $CC accepts -Wswitch-bool... " >&6; }
24106if ${dpkg_cv_cflags__Wswitch_bool+:} false; then :
24107 $as_echo_n "(cached) " >&6
24108else
24109
24110 dpkg_save_CFLAGS=$CFLAGS
24111 CFLAGS="-Werror -Wswitch-bool"
24112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24113/* end confdefs.h. */
24114
24115
24116
24117_ACEOF
24118if ac_fn_c_try_compile "$LINENO"; then :
24119
24120 dpkg_cv_cflags__Wswitch_bool=yes
24121
24122else
24123
24124 dpkg_cv_cflags__Wswitch_bool=no
24125
24126fi
24127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24128 CFLAGS=$dpkg_save_CFLAGS
24129
24130fi
24131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wswitch_bool" >&5
24132$as_echo "$dpkg_cv_cflags__Wswitch_bool" >&6; }
24133 if test "x$dpkg_cv_cflags__Wswitch_bool" = xyes; then :
24134
24135 as_fn_append COMPILER_CFLAGS " -Wswitch-bool"
24136
24137fi
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wvla" >&5
24151$as_echo_n "checking whether $CC accepts -Wvla... " >&6; }
24152if ${dpkg_cv_cflags__Wvla+:} false; then :
24153 $as_echo_n "(cached) " >&6
24154else
24155
24156 dpkg_save_CFLAGS=$CFLAGS
24157 CFLAGS="-Werror -Wvla"
24158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24159/* end confdefs.h. */
24160
24161
24162
24163_ACEOF
24164if ac_fn_c_try_compile "$LINENO"; then :
24165
24166 dpkg_cv_cflags__Wvla=yes
24167
24168else
24169
24170 dpkg_cv_cflags__Wvla=no
24171
24172fi
24173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24174 CFLAGS=$dpkg_save_CFLAGS
24175
24176fi
24177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wvla" >&5
24178$as_echo "$dpkg_cv_cflags__Wvla" >&6; }
24179 if test "x$dpkg_cv_cflags__Wvla" = xyes; then :
24180
24181 as_fn_append COMPILER_CFLAGS " -Wvla"
24182
24183fi
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Winit-self" >&5
24197$as_echo_n "checking whether $CC accepts -Winit-self... " >&6; }
24198if ${dpkg_cv_cflags__Winit_self+:} false; then :
24199 $as_echo_n "(cached) " >&6
24200else
24201
24202 dpkg_save_CFLAGS=$CFLAGS
24203 CFLAGS="-Werror -Winit-self"
24204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24205/* end confdefs.h. */
24206
24207
24208
24209_ACEOF
24210if ac_fn_c_try_compile "$LINENO"; then :
24211
24212 dpkg_cv_cflags__Winit_self=yes
24213
24214else
24215
24216 dpkg_cv_cflags__Winit_self=no
24217
24218fi
24219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24220 CFLAGS=$dpkg_save_CFLAGS
24221
24222fi
24223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Winit_self" >&5
24224$as_echo "$dpkg_cv_cflags__Winit_self" >&6; }
24225 if test "x$dpkg_cv_cflags__Winit_self" = xyes; then :
24226
24227 as_fn_append COMPILER_CFLAGS " -Winit-self"
24228
24229fi
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wwrite-strings" >&5
24243$as_echo_n "checking whether $CC accepts -Wwrite-strings... " >&6; }
24244if ${dpkg_cv_cflags__Wwrite_strings+:} false; then :
24245 $as_echo_n "(cached) " >&6
24246else
24247
24248 dpkg_save_CFLAGS=$CFLAGS
24249 CFLAGS="-Werror -Wwrite-strings"
24250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24251/* end confdefs.h. */
24252
24253
24254
24255_ACEOF
24256if ac_fn_c_try_compile "$LINENO"; then :
24257
24258 dpkg_cv_cflags__Wwrite_strings=yes
24259
24260else
24261
24262 dpkg_cv_cflags__Wwrite_strings=no
24263
24264fi
24265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24266 CFLAGS=$dpkg_save_CFLAGS
24267
24268fi
24269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wwrite_strings" >&5
24270$as_echo "$dpkg_cv_cflags__Wwrite_strings" >&6; }
24271 if test "x$dpkg_cv_cflags__Wwrite_strings" = xyes; then :
24272
24273 as_fn_append COMPILER_CFLAGS " -Wwrite-strings"
24274
24275fi
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wcast-align" >&5
24289$as_echo_n "checking whether $CC accepts -Wcast-align... " >&6; }
24290if ${dpkg_cv_cflags__Wcast_align+:} false; then :
24291 $as_echo_n "(cached) " >&6
24292else
24293
24294 dpkg_save_CFLAGS=$CFLAGS
24295 CFLAGS="-Werror -Wcast-align"
24296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24297/* end confdefs.h. */
24298
24299
24300
24301_ACEOF
24302if ac_fn_c_try_compile "$LINENO"; then :
24303
24304 dpkg_cv_cflags__Wcast_align=yes
24305
24306else
24307
24308 dpkg_cv_cflags__Wcast_align=no
24309
24310fi
24311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24312 CFLAGS=$dpkg_save_CFLAGS
24313
24314fi
24315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wcast_align" >&5
24316$as_echo "$dpkg_cv_cflags__Wcast_align" >&6; }
24317 if test "x$dpkg_cv_cflags__Wcast_align" = xyes; then :
24318
24319 as_fn_append COMPILER_CFLAGS " -Wcast-align"
24320
24321fi
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wshadow" >&5
24335$as_echo_n "checking whether $CC accepts -Wshadow... " >&6; }
24336if ${dpkg_cv_cflags__Wshadow+:} false; then :
24337 $as_echo_n "(cached) " >&6
24338else
24339
24340 dpkg_save_CFLAGS=$CFLAGS
24341 CFLAGS="-Werror -Wshadow"
24342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24343/* end confdefs.h. */
24344
24345
24346
24347_ACEOF
24348if ac_fn_c_try_compile "$LINENO"; then :
24349
24350 dpkg_cv_cflags__Wshadow=yes
24351
24352else
24353
24354 dpkg_cv_cflags__Wshadow=no
24355
24356fi
24357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24358 CFLAGS=$dpkg_save_CFLAGS
24359
24360fi
24361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wshadow" >&5
24362$as_echo "$dpkg_cv_cflags__Wshadow" >&6; }
24363 if test "x$dpkg_cv_cflags__Wshadow" = xyes; then :
24364
24365 as_fn_append COMPILER_CFLAGS " -Wshadow"
24366
24367fi
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wduplicated-cond" >&5
24381$as_echo_n "checking whether $CC accepts -Wduplicated-cond... " >&6; }
24382if ${dpkg_cv_cflags__Wduplicated_cond+:} false; then :
24383 $as_echo_n "(cached) " >&6
24384else
24385
24386 dpkg_save_CFLAGS=$CFLAGS
24387 CFLAGS="-Werror -Wduplicated-cond"
24388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24389/* end confdefs.h. */
24390
24391
24392
24393_ACEOF
24394if ac_fn_c_try_compile "$LINENO"; then :
24395
24396 dpkg_cv_cflags__Wduplicated_cond=yes
24397
24398else
24399
24400 dpkg_cv_cflags__Wduplicated_cond=no
24401
24402fi
24403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24404 CFLAGS=$dpkg_save_CFLAGS
24405
24406fi
24407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wduplicated_cond" >&5
24408$as_echo "$dpkg_cv_cflags__Wduplicated_cond" >&6; }
24409 if test "x$dpkg_cv_cflags__Wduplicated_cond" = xyes; then :
24410
24411 as_fn_append COMPILER_CFLAGS " -Wduplicated-cond"
24412
24413fi
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wnull-dereference" >&5
24427$as_echo_n "checking whether $CC accepts -Wnull-dereference... " >&6; }
24428if ${dpkg_cv_cflags__Wnull_dereference+:} false; then :
24429 $as_echo_n "(cached) " >&6
24430else
24431
24432 dpkg_save_CFLAGS=$CFLAGS
24433 CFLAGS="-Werror -Wnull-dereference"
24434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24435/* end confdefs.h. */
24436
24437
24438
24439_ACEOF
24440if ac_fn_c_try_compile "$LINENO"; then :
24441
24442 dpkg_cv_cflags__Wnull_dereference=yes
24443
24444else
24445
24446 dpkg_cv_cflags__Wnull_dereference=no
24447
24448fi
24449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24450 CFLAGS=$dpkg_save_CFLAGS
24451
24452fi
24453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wnull_dereference" >&5
24454$as_echo "$dpkg_cv_cflags__Wnull_dereference" >&6; }
24455 if test "x$dpkg_cv_cflags__Wnull_dereference" = xyes; then :
24456
24457 as_fn_append COMPILER_CFLAGS " -Wnull-dereference"
24458
24459fi
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wdeclaration-after-statement" >&5
24475$as_echo_n "checking whether $CC accepts -Wdeclaration-after-statement... " >&6; }
24476if ${dpkg_cv_cflags__Wdeclaration_after_statement+:} false; then :
24477 $as_echo_n "(cached) " >&6
24478else
24479
24480 dpkg_save_CFLAGS=$CFLAGS
24481 CFLAGS="-Werror -Wdeclaration-after-statement"
24482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24483/* end confdefs.h. */
24484
24485
24486
24487_ACEOF
24488if ac_fn_c_try_compile "$LINENO"; then :
24489
24490 dpkg_cv_cflags__Wdeclaration_after_statement=yes
24491
24492else
24493
24494 dpkg_cv_cflags__Wdeclaration_after_statement=no
24495
24496fi
24497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24498 CFLAGS=$dpkg_save_CFLAGS
24499
24500fi
24501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wdeclaration_after_statement" >&5
24502$as_echo "$dpkg_cv_cflags__Wdeclaration_after_statement" >&6; }
24503 if test "x$dpkg_cv_cflags__Wdeclaration_after_statement" = xyes; then :
24504
24505 as_fn_append COMPILER_CFLAGS " -Wdeclaration-after-statement"
24506
24507fi
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wnested-externs" >&5
24521$as_echo_n "checking whether $CC accepts -Wnested-externs... " >&6; }
24522if ${dpkg_cv_cflags__Wnested_externs+:} false; then :
24523 $as_echo_n "(cached) " >&6
24524else
24525
24526 dpkg_save_CFLAGS=$CFLAGS
24527 CFLAGS="-Werror -Wnested-externs"
24528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24529/* end confdefs.h. */
24530
24531
24532
24533_ACEOF
24534if ac_fn_c_try_compile "$LINENO"; then :
24535
24536 dpkg_cv_cflags__Wnested_externs=yes
24537
24538else
24539
24540 dpkg_cv_cflags__Wnested_externs=no
24541
24542fi
24543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24544 CFLAGS=$dpkg_save_CFLAGS
24545
24546fi
24547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wnested_externs" >&5
24548$as_echo "$dpkg_cv_cflags__Wnested_externs" >&6; }
24549 if test "x$dpkg_cv_cflags__Wnested_externs" = xyes; then :
24550
24551 as_fn_append COMPILER_CFLAGS " -Wnested-externs"
24552
24553fi
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wbad-function-cast" >&5
24567$as_echo_n "checking whether $CC accepts -Wbad-function-cast... " >&6; }
24568if ${dpkg_cv_cflags__Wbad_function_cast+:} false; then :
24569 $as_echo_n "(cached) " >&6
24570else
24571
24572 dpkg_save_CFLAGS=$CFLAGS
24573 CFLAGS="-Werror -Wbad-function-cast"
24574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24575/* end confdefs.h. */
24576
24577
24578
24579_ACEOF
24580if ac_fn_c_try_compile "$LINENO"; then :
24581
24582 dpkg_cv_cflags__Wbad_function_cast=yes
24583
24584else
24585
24586 dpkg_cv_cflags__Wbad_function_cast=no
24587
24588fi
24589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24590 CFLAGS=$dpkg_save_CFLAGS
24591
24592fi
24593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wbad_function_cast" >&5
24594$as_echo "$dpkg_cv_cflags__Wbad_function_cast" >&6; }
24595 if test "x$dpkg_cv_cflags__Wbad_function_cast" = xyes; then :
24596
24597 as_fn_append COMPILER_CFLAGS " -Wbad-function-cast"
24598
24599fi
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wstrict-prototypes" >&5
24613$as_echo_n "checking whether $CC accepts -Wstrict-prototypes... " >&6; }
24614if ${dpkg_cv_cflags__Wstrict_prototypes+:} false; then :
24615 $as_echo_n "(cached) " >&6
24616else
24617
24618 dpkg_save_CFLAGS=$CFLAGS
24619 CFLAGS="-Werror -Wstrict-prototypes"
24620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24621/* end confdefs.h. */
24622
24623
24624
24625_ACEOF
24626if ac_fn_c_try_compile "$LINENO"; then :
24627
24628 dpkg_cv_cflags__Wstrict_prototypes=yes
24629
24630else
24631
24632 dpkg_cv_cflags__Wstrict_prototypes=no
24633
24634fi
24635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24636 CFLAGS=$dpkg_save_CFLAGS
24637
24638fi
24639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wstrict_prototypes" >&5
24640$as_echo "$dpkg_cv_cflags__Wstrict_prototypes" >&6; }
24641 if test "x$dpkg_cv_cflags__Wstrict_prototypes" = xyes; then :
24642
24643 as_fn_append COMPILER_CFLAGS " -Wstrict-prototypes"
24644
24645fi
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wmissing-prototypes" >&5
24659$as_echo_n "checking whether $CC accepts -Wmissing-prototypes... " >&6; }
24660if ${dpkg_cv_cflags__Wmissing_prototypes+:} false; then :
24661 $as_echo_n "(cached) " >&6
24662else
24663
24664 dpkg_save_CFLAGS=$CFLAGS
24665 CFLAGS="-Werror -Wmissing-prototypes"
24666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24667/* end confdefs.h. */
24668
24669
24670
24671_ACEOF
24672if ac_fn_c_try_compile "$LINENO"; then :
24673
24674 dpkg_cv_cflags__Wmissing_prototypes=yes
24675
24676else
24677
24678 dpkg_cv_cflags__Wmissing_prototypes=no
24679
24680fi
24681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24682 CFLAGS=$dpkg_save_CFLAGS
24683
24684fi
24685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wmissing_prototypes" >&5
24686$as_echo "$dpkg_cv_cflags__Wmissing_prototypes" >&6; }
24687 if test "x$dpkg_cv_cflags__Wmissing_prototypes" = xyes; then :
24688
24689 as_fn_append COMPILER_CFLAGS " -Wmissing-prototypes"
24690
24691fi
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wold-style-definition" >&5
24705$as_echo_n "checking whether $CC accepts -Wold-style-definition... " >&6; }
24706if ${dpkg_cv_cflags__Wold_style_definition+:} false; then :
24707 $as_echo_n "(cached) " >&6
24708else
24709
24710 dpkg_save_CFLAGS=$CFLAGS
24711 CFLAGS="-Werror -Wold-style-definition"
24712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24713/* end confdefs.h. */
24714
24715
24716
24717_ACEOF
24718if ac_fn_c_try_compile "$LINENO"; then :
24719
24720 dpkg_cv_cflags__Wold_style_definition=yes
24721
24722else
24723
24724 dpkg_cv_cflags__Wold_style_definition=no
24725
24726fi
24727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24728 CFLAGS=$dpkg_save_CFLAGS
24729
24730fi
24731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wold_style_definition" >&5
24732$as_echo "$dpkg_cv_cflags__Wold_style_definition" >&6; }
24733 if test "x$dpkg_cv_cflags__Wold_style_definition" = xyes; then :
24734
24735 as_fn_append COMPILER_CFLAGS " -Wold-style-definition"
24736
24737fi
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wc99-c11-compat" >&5
24751$as_echo_n "checking whether $CC accepts -Wc99-c11-compat... " >&6; }
24752if ${dpkg_cv_cflags__Wc99_c11_compat+:} false; then :
24753 $as_echo_n "(cached) " >&6
24754else
24755
24756 dpkg_save_CFLAGS=$CFLAGS
24757 CFLAGS="-Werror -Wc99-c11-compat"
24758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24759/* end confdefs.h. */
24760
24761
24762
24763_ACEOF
24764if ac_fn_c_try_compile "$LINENO"; then :
24765
24766 dpkg_cv_cflags__Wc99_c11_compat=yes
24767
24768else
24769
24770 dpkg_cv_cflags__Wc99_c11_compat=no
24771
24772fi
24773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24774 CFLAGS=$dpkg_save_CFLAGS
24775
24776fi
24777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wc99_c11_compat" >&5
24778$as_echo "$dpkg_cv_cflags__Wc99_c11_compat" >&6; }
24779 if test "x$dpkg_cv_cflags__Wc99_c11_compat" = xyes; then :
24780
24781 as_fn_append COMPILER_CFLAGS " -Wc99-c11-compat"
24782
24783fi
24784
24785
24786
24787
24788 ac_ext=cpp
24789ac_cpp='$CXXCPP $CPPFLAGS'
24790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wall" >&5
24806$as_echo_n "checking whether $CXX accepts -Wall... " >&6; }
24807if ${dpkg_cv_cxxflags__Wall+:} false; then :
24808 $as_echo_n "(cached) " >&6
24809else
24810
24811 dpkg_save_CXXFLAGS=$CXXFLAGS
24812 CXXFLAGS="-Werror -Wall"
24813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24814/* end confdefs.h. */
24815
24816
24817
24818_ACEOF
24819if ac_fn_cxx_try_compile "$LINENO"; then :
24820
24821 dpkg_cv_cxxflags__Wall=yes
24822
24823else
24824
24825 dpkg_cv_cxxflags__Wall=no
24826
24827fi
24828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24829 CXXFLAGS=$dpkg_save_CXXFLAGS
24830
24831fi
24832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wall" >&5
24833$as_echo "$dpkg_cv_cxxflags__Wall" >&6; }
24834 if test "x$dpkg_cv_cxxflags__Wall" = xyes; then :
24835
24836 as_fn_append COMPILER_CXXFLAGS " -Wall"
24837
24838fi
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wextra" >&5
24852$as_echo_n "checking whether $CXX accepts -Wextra... " >&6; }
24853if ${dpkg_cv_cxxflags__Wextra+:} false; then :
24854 $as_echo_n "(cached) " >&6
24855else
24856
24857 dpkg_save_CXXFLAGS=$CXXFLAGS
24858 CXXFLAGS="-Werror -Wextra"
24859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24860/* end confdefs.h. */
24861
24862
24863
24864_ACEOF
24865if ac_fn_cxx_try_compile "$LINENO"; then :
24866
24867 dpkg_cv_cxxflags__Wextra=yes
24868
24869else
24870
24871 dpkg_cv_cxxflags__Wextra=no
24872
24873fi
24874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24875 CXXFLAGS=$dpkg_save_CXXFLAGS
24876
24877fi
24878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wextra" >&5
24879$as_echo "$dpkg_cv_cxxflags__Wextra" >&6; }
24880 if test "x$dpkg_cv_cxxflags__Wextra" = xyes; then :
24881
24882 as_fn_append COMPILER_CXXFLAGS " -Wextra"
24883
24884fi
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wno-unused-parameter" >&5
24898$as_echo_n "checking whether $CXX accepts -Wno-unused-parameter... " >&6; }
24899if ${dpkg_cv_cxxflags__Wno_unused_parameter+:} false; then :
24900 $as_echo_n "(cached) " >&6
24901else
24902
24903 dpkg_save_CXXFLAGS=$CXXFLAGS
24904 CXXFLAGS="-Werror -Wunused-parameter"
24905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24906/* end confdefs.h. */
24907
24908
24909
24910_ACEOF
24911if ac_fn_cxx_try_compile "$LINENO"; then :
24912
24913 dpkg_cv_cxxflags__Wno_unused_parameter=yes
24914
24915else
24916
24917 dpkg_cv_cxxflags__Wno_unused_parameter=no
24918
24919fi
24920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24921 CXXFLAGS=$dpkg_save_CXXFLAGS
24922
24923fi
24924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wno_unused_parameter" >&5
24925$as_echo "$dpkg_cv_cxxflags__Wno_unused_parameter" >&6; }
24926 if test "x$dpkg_cv_cxxflags__Wno_unused_parameter" = xyes; then :
24927
24928 as_fn_append COMPILER_CXXFLAGS " -Wno-unused-parameter"
24929
24930fi
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wno-missing-field-initializers" >&5
24944$as_echo_n "checking whether $CXX accepts -Wno-missing-field-initializers... " >&6; }
24945if ${dpkg_cv_cxxflags__Wno_missing_field_initializers+:} false; then :
24946 $as_echo_n "(cached) " >&6
24947else
24948
24949 dpkg_save_CXXFLAGS=$CXXFLAGS
24950 CXXFLAGS="-Werror -Wmissing-field-initializers"
24951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24952/* end confdefs.h. */
24953
24954
24955
24956_ACEOF
24957if ac_fn_cxx_try_compile "$LINENO"; then :
24958
24959 dpkg_cv_cxxflags__Wno_missing_field_initializers=yes
24960
24961else
24962
24963 dpkg_cv_cxxflags__Wno_missing_field_initializers=no
24964
24965fi
24966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24967 CXXFLAGS=$dpkg_save_CXXFLAGS
24968
24969fi
24970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wno_missing_field_initializers" >&5
24971$as_echo "$dpkg_cv_cxxflags__Wno_missing_field_initializers" >&6; }
24972 if test "x$dpkg_cv_cxxflags__Wno_missing_field_initializers" = xyes; then :
24973
24974 as_fn_append COMPILER_CXXFLAGS " -Wno-missing-field-initializers"
24975
24976fi
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wno-tautological-constant-out-of-range-compare" >&5
24990$as_echo_n "checking whether $CXX accepts -Wno-tautological-constant-out-of-range-compare... " >&6; }
24991if ${dpkg_cv_cxxflags__Wno_tautological_constant_out_of_range_compare+:} false; then :
24992 $as_echo_n "(cached) " >&6
24993else
24994
24995 dpkg_save_CXXFLAGS=$CXXFLAGS
24996 CXXFLAGS="-Werror -Wtautological-constant-out-of-range-compare"
24997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24998/* end confdefs.h. */
24999
25000
25001
25002_ACEOF
25003if ac_fn_cxx_try_compile "$LINENO"; then :
25004
25005 dpkg_cv_cxxflags__Wno_tautological_constant_out_of_range_compare=yes
25006
25007else
25008
25009 dpkg_cv_cxxflags__Wno_tautological_constant_out_of_range_compare=no
25010
25011fi
25012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25013 CXXFLAGS=$dpkg_save_CXXFLAGS
25014
25015fi
25016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wno_tautological_constant_out_of_range_compare" >&5
25017$as_echo "$dpkg_cv_cxxflags__Wno_tautological_constant_out_of_range_compare" >&6; }
25018 if test "x$dpkg_cv_cxxflags__Wno_tautological_constant_out_of_range_compare" = xyes; then :
25019
25020 as_fn_append COMPILER_CXXFLAGS " -Wno-tautological-constant-out-of-range-compare"
25021
25022fi
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wmissing-declarations" >&5
25036$as_echo_n "checking whether $CXX accepts -Wmissing-declarations... " >&6; }
25037if ${dpkg_cv_cxxflags__Wmissing_declarations+:} false; then :
25038 $as_echo_n "(cached) " >&6
25039else
25040
25041 dpkg_save_CXXFLAGS=$CXXFLAGS
25042 CXXFLAGS="-Werror -Wmissing-declarations"
25043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25044/* end confdefs.h. */
25045
25046
25047
25048_ACEOF
25049if ac_fn_cxx_try_compile "$LINENO"; then :
25050
25051 dpkg_cv_cxxflags__Wmissing_declarations=yes
25052
25053else
25054
25055 dpkg_cv_cxxflags__Wmissing_declarations=no
25056
25057fi
25058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25059 CXXFLAGS=$dpkg_save_CXXFLAGS
25060
25061fi
25062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wmissing_declarations" >&5
25063$as_echo "$dpkg_cv_cxxflags__Wmissing_declarations" >&6; }
25064 if test "x$dpkg_cv_cxxflags__Wmissing_declarations" = xyes; then :
25065
25066 as_fn_append COMPILER_CXXFLAGS " -Wmissing-declarations"
25067
25068fi
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wmissing-format-attribute" >&5
25082$as_echo_n "checking whether $CXX accepts -Wmissing-format-attribute... " >&6; }
25083if ${dpkg_cv_cxxflags__Wmissing_format_attribute+:} false; then :
25084 $as_echo_n "(cached) " >&6
25085else
25086
25087 dpkg_save_CXXFLAGS=$CXXFLAGS
25088 CXXFLAGS="-Werror -Wmissing-format-attribute"
25089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25090/* end confdefs.h. */
25091
25092
25093
25094_ACEOF
25095if ac_fn_cxx_try_compile "$LINENO"; then :
25096
25097 dpkg_cv_cxxflags__Wmissing_format_attribute=yes
25098
25099else
25100
25101 dpkg_cv_cxxflags__Wmissing_format_attribute=no
25102
25103fi
25104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25105 CXXFLAGS=$dpkg_save_CXXFLAGS
25106
25107fi
25108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wmissing_format_attribute" >&5
25109$as_echo "$dpkg_cv_cxxflags__Wmissing_format_attribute" >&6; }
25110 if test "x$dpkg_cv_cxxflags__Wmissing_format_attribute" = xyes; then :
25111
25112 as_fn_append COMPILER_CXXFLAGS " -Wmissing-format-attribute"
25113
25114fi
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wformat -Wformat-security" >&5
25128$as_echo_n "checking whether $CXX accepts -Wformat -Wformat-security... " >&6; }
25129if ${dpkg_cv_cxxflags__Wformat__Wformat_security+:} false; then :
25130 $as_echo_n "(cached) " >&6
25131else
25132
25133 dpkg_save_CXXFLAGS=$CXXFLAGS
25134 CXXFLAGS="-Werror -Wformat -Wformat-security"
25135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25136/* end confdefs.h. */
25137
25138
25139
25140_ACEOF
25141if ac_fn_cxx_try_compile "$LINENO"; then :
25142
25143 dpkg_cv_cxxflags__Wformat__Wformat_security=yes
25144
25145else
25146
25147 dpkg_cv_cxxflags__Wformat__Wformat_security=no
25148
25149fi
25150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25151 CXXFLAGS=$dpkg_save_CXXFLAGS
25152
25153fi
25154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wformat__Wformat_security" >&5
25155$as_echo "$dpkg_cv_cxxflags__Wformat__Wformat_security" >&6; }
25156 if test "x$dpkg_cv_cxxflags__Wformat__Wformat_security" = xyes; then :
25157
25158 as_fn_append COMPILER_CXXFLAGS " -Wformat -Wformat-security"
25159
25160fi
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wsizeof-array-argument" >&5
25174$as_echo_n "checking whether $CXX accepts -Wsizeof-array-argument... " >&6; }
25175if ${dpkg_cv_cxxflags__Wsizeof_array_argument+:} false; then :
25176 $as_echo_n "(cached) " >&6
25177else
25178
25179 dpkg_save_CXXFLAGS=$CXXFLAGS
25180 CXXFLAGS="-Werror -Wsizeof-array-argument"
25181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25182/* end confdefs.h. */
25183
25184
25185
25186_ACEOF
25187if ac_fn_cxx_try_compile "$LINENO"; then :
25188
25189 dpkg_cv_cxxflags__Wsizeof_array_argument=yes
25190
25191else
25192
25193 dpkg_cv_cxxflags__Wsizeof_array_argument=no
25194
25195fi
25196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25197 CXXFLAGS=$dpkg_save_CXXFLAGS
25198
25199fi
25200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wsizeof_array_argument" >&5
25201$as_echo "$dpkg_cv_cxxflags__Wsizeof_array_argument" >&6; }
25202 if test "x$dpkg_cv_cxxflags__Wsizeof_array_argument" = xyes; then :
25203
25204 as_fn_append COMPILER_CXXFLAGS " -Wsizeof-array-argument"
25205
25206fi
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wpointer-arith" >&5
25220$as_echo_n "checking whether $CXX accepts -Wpointer-arith... " >&6; }
25221if ${dpkg_cv_cxxflags__Wpointer_arith+:} false; then :
25222 $as_echo_n "(cached) " >&6
25223else
25224
25225 dpkg_save_CXXFLAGS=$CXXFLAGS
25226 CXXFLAGS="-Werror -Wpointer-arith"
25227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25228/* end confdefs.h. */
25229
25230
25231
25232_ACEOF
25233if ac_fn_cxx_try_compile "$LINENO"; then :
25234
25235 dpkg_cv_cxxflags__Wpointer_arith=yes
25236
25237else
25238
25239 dpkg_cv_cxxflags__Wpointer_arith=no
25240
25241fi
25242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25243 CXXFLAGS=$dpkg_save_CXXFLAGS
25244
25245fi
25246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wpointer_arith" >&5
25247$as_echo "$dpkg_cv_cxxflags__Wpointer_arith" >&6; }
25248 if test "x$dpkg_cv_cxxflags__Wpointer_arith" = xyes; then :
25249
25250 as_fn_append COMPILER_CXXFLAGS " -Wpointer-arith"
25251
25252fi
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wlogical-op" >&5
25266$as_echo_n "checking whether $CXX accepts -Wlogical-op... " >&6; }
25267if ${dpkg_cv_cxxflags__Wlogical_op+:} false; then :
25268 $as_echo_n "(cached) " >&6
25269else
25270
25271 dpkg_save_CXXFLAGS=$CXXFLAGS
25272 CXXFLAGS="-Werror -Wlogical-op"
25273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25274/* end confdefs.h. */
25275
25276
25277
25278_ACEOF
25279if ac_fn_cxx_try_compile "$LINENO"; then :
25280
25281 dpkg_cv_cxxflags__Wlogical_op=yes
25282
25283else
25284
25285 dpkg_cv_cxxflags__Wlogical_op=no
25286
25287fi
25288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25289 CXXFLAGS=$dpkg_save_CXXFLAGS
25290
25291fi
25292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wlogical_op" >&5
25293$as_echo "$dpkg_cv_cxxflags__Wlogical_op" >&6; }
25294 if test "x$dpkg_cv_cxxflags__Wlogical_op" = xyes; then :
25295
25296 as_fn_append COMPILER_CXXFLAGS " -Wlogical-op"
25297
25298fi
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wlogical-not-parentheses" >&5
25312$as_echo_n "checking whether $CXX accepts -Wlogical-not-parentheses... " >&6; }
25313if ${dpkg_cv_cxxflags__Wlogical_not_parentheses+:} false; then :
25314 $as_echo_n "(cached) " >&6
25315else
25316
25317 dpkg_save_CXXFLAGS=$CXXFLAGS
25318 CXXFLAGS="-Werror -Wlogical-not-parentheses"
25319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25320/* end confdefs.h. */
25321
25322
25323
25324_ACEOF
25325if ac_fn_cxx_try_compile "$LINENO"; then :
25326
25327 dpkg_cv_cxxflags__Wlogical_not_parentheses=yes
25328
25329else
25330
25331 dpkg_cv_cxxflags__Wlogical_not_parentheses=no
25332
25333fi
25334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25335 CXXFLAGS=$dpkg_save_CXXFLAGS
25336
25337fi
25338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wlogical_not_parentheses" >&5
25339$as_echo "$dpkg_cv_cxxflags__Wlogical_not_parentheses" >&6; }
25340 if test "x$dpkg_cv_cxxflags__Wlogical_not_parentheses" = xyes; then :
25341
25342 as_fn_append COMPILER_CXXFLAGS " -Wlogical-not-parentheses"
25343
25344fi
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wswitch-bool" >&5
25358$as_echo_n "checking whether $CXX accepts -Wswitch-bool... " >&6; }
25359if ${dpkg_cv_cxxflags__Wswitch_bool+:} false; then :
25360 $as_echo_n "(cached) " >&6
25361else
25362
25363 dpkg_save_CXXFLAGS=$CXXFLAGS
25364 CXXFLAGS="-Werror -Wswitch-bool"
25365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25366/* end confdefs.h. */
25367
25368
25369
25370_ACEOF
25371if ac_fn_cxx_try_compile "$LINENO"; then :
25372
25373 dpkg_cv_cxxflags__Wswitch_bool=yes
25374
25375else
25376
25377 dpkg_cv_cxxflags__Wswitch_bool=no
25378
25379fi
25380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25381 CXXFLAGS=$dpkg_save_CXXFLAGS
25382
25383fi
25384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wswitch_bool" >&5
25385$as_echo "$dpkg_cv_cxxflags__Wswitch_bool" >&6; }
25386 if test "x$dpkg_cv_cxxflags__Wswitch_bool" = xyes; then :
25387
25388 as_fn_append COMPILER_CXXFLAGS " -Wswitch-bool"
25389
25390fi
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wvla" >&5
25404$as_echo_n "checking whether $CXX accepts -Wvla... " >&6; }
25405if ${dpkg_cv_cxxflags__Wvla+:} false; then :
25406 $as_echo_n "(cached) " >&6
25407else
25408
25409 dpkg_save_CXXFLAGS=$CXXFLAGS
25410 CXXFLAGS="-Werror -Wvla"
25411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25412/* end confdefs.h. */
25413
25414
25415
25416_ACEOF
25417if ac_fn_cxx_try_compile "$LINENO"; then :
25418
25419 dpkg_cv_cxxflags__Wvla=yes
25420
25421else
25422
25423 dpkg_cv_cxxflags__Wvla=no
25424
25425fi
25426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25427 CXXFLAGS=$dpkg_save_CXXFLAGS
25428
25429fi
25430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wvla" >&5
25431$as_echo "$dpkg_cv_cxxflags__Wvla" >&6; }
25432 if test "x$dpkg_cv_cxxflags__Wvla" = xyes; then :
25433
25434 as_fn_append COMPILER_CXXFLAGS " -Wvla"
25435
25436fi
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Winit-self" >&5
25450$as_echo_n "checking whether $CXX accepts -Winit-self... " >&6; }
25451if ${dpkg_cv_cxxflags__Winit_self+:} false; then :
25452 $as_echo_n "(cached) " >&6
25453else
25454
25455 dpkg_save_CXXFLAGS=$CXXFLAGS
25456 CXXFLAGS="-Werror -Winit-self"
25457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25458/* end confdefs.h. */
25459
25460
25461
25462_ACEOF
25463if ac_fn_cxx_try_compile "$LINENO"; then :
25464
25465 dpkg_cv_cxxflags__Winit_self=yes
25466
25467else
25468
25469 dpkg_cv_cxxflags__Winit_self=no
25470
25471fi
25472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25473 CXXFLAGS=$dpkg_save_CXXFLAGS
25474
25475fi
25476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Winit_self" >&5
25477$as_echo "$dpkg_cv_cxxflags__Winit_self" >&6; }
25478 if test "x$dpkg_cv_cxxflags__Winit_self" = xyes; then :
25479
25480 as_fn_append COMPILER_CXXFLAGS " -Winit-self"
25481
25482fi
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wwrite-strings" >&5
25496$as_echo_n "checking whether $CXX accepts -Wwrite-strings... " >&6; }
25497if ${dpkg_cv_cxxflags__Wwrite_strings+:} false; then :
25498 $as_echo_n "(cached) " >&6
25499else
25500
25501 dpkg_save_CXXFLAGS=$CXXFLAGS
25502 CXXFLAGS="-Werror -Wwrite-strings"
25503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25504/* end confdefs.h. */
25505
25506
25507
25508_ACEOF
25509if ac_fn_cxx_try_compile "$LINENO"; then :
25510
25511 dpkg_cv_cxxflags__Wwrite_strings=yes
25512
25513else
25514
25515 dpkg_cv_cxxflags__Wwrite_strings=no
25516
25517fi
25518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25519 CXXFLAGS=$dpkg_save_CXXFLAGS
25520
25521fi
25522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wwrite_strings" >&5
25523$as_echo "$dpkg_cv_cxxflags__Wwrite_strings" >&6; }
25524 if test "x$dpkg_cv_cxxflags__Wwrite_strings" = xyes; then :
25525
25526 as_fn_append COMPILER_CXXFLAGS " -Wwrite-strings"
25527
25528fi
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wcast-align" >&5
25542$as_echo_n "checking whether $CXX accepts -Wcast-align... " >&6; }
25543if ${dpkg_cv_cxxflags__Wcast_align+:} false; then :
25544 $as_echo_n "(cached) " >&6
25545else
25546
25547 dpkg_save_CXXFLAGS=$CXXFLAGS
25548 CXXFLAGS="-Werror -Wcast-align"
25549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25550/* end confdefs.h. */
25551
25552
25553
25554_ACEOF
25555if ac_fn_cxx_try_compile "$LINENO"; then :
25556
25557 dpkg_cv_cxxflags__Wcast_align=yes
25558
25559else
25560
25561 dpkg_cv_cxxflags__Wcast_align=no
25562
25563fi
25564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25565 CXXFLAGS=$dpkg_save_CXXFLAGS
25566
25567fi
25568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wcast_align" >&5
25569$as_echo "$dpkg_cv_cxxflags__Wcast_align" >&6; }
25570 if test "x$dpkg_cv_cxxflags__Wcast_align" = xyes; then :
25571
25572 as_fn_append COMPILER_CXXFLAGS " -Wcast-align"
25573
25574fi
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wshadow" >&5
25588$as_echo_n "checking whether $CXX accepts -Wshadow... " >&6; }
25589if ${dpkg_cv_cxxflags__Wshadow+:} false; then :
25590 $as_echo_n "(cached) " >&6
25591else
25592
25593 dpkg_save_CXXFLAGS=$CXXFLAGS
25594 CXXFLAGS="-Werror -Wshadow"
25595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25596/* end confdefs.h. */
25597
25598
25599
25600_ACEOF
25601if ac_fn_cxx_try_compile "$LINENO"; then :
25602
25603 dpkg_cv_cxxflags__Wshadow=yes
25604
25605else
25606
25607 dpkg_cv_cxxflags__Wshadow=no
25608
25609fi
25610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25611 CXXFLAGS=$dpkg_save_CXXFLAGS
25612
25613fi
25614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wshadow" >&5
25615$as_echo "$dpkg_cv_cxxflags__Wshadow" >&6; }
25616 if test "x$dpkg_cv_cxxflags__Wshadow" = xyes; then :
25617
25618 as_fn_append COMPILER_CXXFLAGS " -Wshadow"
25619
25620fi
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wduplicated-cond" >&5
25634$as_echo_n "checking whether $CXX accepts -Wduplicated-cond... " >&6; }
25635if ${dpkg_cv_cxxflags__Wduplicated_cond+:} false; then :
25636 $as_echo_n "(cached) " >&6
25637else
25638
25639 dpkg_save_CXXFLAGS=$CXXFLAGS
25640 CXXFLAGS="-Werror -Wduplicated-cond"
25641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25642/* end confdefs.h. */
25643
25644
25645
25646_ACEOF
25647if ac_fn_cxx_try_compile "$LINENO"; then :
25648
25649 dpkg_cv_cxxflags__Wduplicated_cond=yes
25650
25651else
25652
25653 dpkg_cv_cxxflags__Wduplicated_cond=no
25654
25655fi
25656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25657 CXXFLAGS=$dpkg_save_CXXFLAGS
25658
25659fi
25660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wduplicated_cond" >&5
25661$as_echo "$dpkg_cv_cxxflags__Wduplicated_cond" >&6; }
25662 if test "x$dpkg_cv_cxxflags__Wduplicated_cond" = xyes; then :
25663
25664 as_fn_append COMPILER_CXXFLAGS " -Wduplicated-cond"
25665
25666fi
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676
25677
25678
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wnull-dereference" >&5
25680$as_echo_n "checking whether $CXX accepts -Wnull-dereference... " >&6; }
25681if ${dpkg_cv_cxxflags__Wnull_dereference+:} false; then :
25682 $as_echo_n "(cached) " >&6
25683else
25684
25685 dpkg_save_CXXFLAGS=$CXXFLAGS
25686 CXXFLAGS="-Werror -Wnull-dereference"
25687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25688/* end confdefs.h. */
25689
25690
25691
25692_ACEOF
25693if ac_fn_cxx_try_compile "$LINENO"; then :
25694
25695 dpkg_cv_cxxflags__Wnull_dereference=yes
25696
25697else
25698
25699 dpkg_cv_cxxflags__Wnull_dereference=no
25700
25701fi
25702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25703 CXXFLAGS=$dpkg_save_CXXFLAGS
25704
25705fi
25706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wnull_dereference" >&5
25707$as_echo "$dpkg_cv_cxxflags__Wnull_dereference" >&6; }
25708 if test "x$dpkg_cv_cxxflags__Wnull_dereference" = xyes; then :
25709
25710 as_fn_append COMPILER_CXXFLAGS " -Wnull-dereference"
25711
25712fi
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723
25724
25725
25726
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wc++11-compat" >&5
25728$as_echo_n "checking whether $CXX accepts -Wc++11-compat... " >&6; }
25729if ${dpkg_cv_cxxflags__Wcpp11_compat+:} false; then :
25730 $as_echo_n "(cached) " >&6
25731else
25732
25733 dpkg_save_CXXFLAGS=$CXXFLAGS
25734 CXXFLAGS="-Werror -Wc++11-compat"
25735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25736/* end confdefs.h. */
25737
25738
25739
25740_ACEOF
25741if ac_fn_cxx_try_compile "$LINENO"; then :
25742
25743 dpkg_cv_cxxflags__Wcpp11_compat=yes
25744
25745else
25746
25747 dpkg_cv_cxxflags__Wcpp11_compat=no
25748
25749fi
25750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25751 CXXFLAGS=$dpkg_save_CXXFLAGS
25752
25753fi
25754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wcpp11_compat" >&5
25755$as_echo "$dpkg_cv_cxxflags__Wcpp11_compat" >&6; }
25756 if test "x$dpkg_cv_cxxflags__Wcpp11_compat" = xyes; then :
25757
25758 as_fn_append COMPILER_CXXFLAGS " -Wc++11-compat"
25759
25760fi
25761
25762
25763 if test "x$dpkg_cv_cxx11" = "xyes"; then :
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wzero-as-null-pointer-constant" >&5
25776$as_echo_n "checking whether $CXX accepts -Wzero-as-null-pointer-constant... " >&6; }
25777if ${dpkg_cv_cxxflags__Wzero_as_null_pointer_constant+:} false; then :
25778 $as_echo_n "(cached) " >&6
25779else
25780
25781 dpkg_save_CXXFLAGS=$CXXFLAGS
25782 CXXFLAGS="-Werror -Wzero-as-null-pointer-constant"
25783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25784/* end confdefs.h. */
25785
25786
25787
25788_ACEOF
25789if ac_fn_cxx_try_compile "$LINENO"; then :
25790
25791 dpkg_cv_cxxflags__Wzero_as_null_pointer_constant=yes
25792
25793else
25794
25795 dpkg_cv_cxxflags__Wzero_as_null_pointer_constant=no
25796
25797fi
25798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25799 CXXFLAGS=$dpkg_save_CXXFLAGS
25800
25801fi
25802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wzero_as_null_pointer_constant" >&5
25803$as_echo "$dpkg_cv_cxxflags__Wzero_as_null_pointer_constant" >&6; }
25804 if test "x$dpkg_cv_cxxflags__Wzero_as_null_pointer_constant" = xyes; then :
25805
25806 as_fn_append COMPILER_CXXFLAGS " -Wzero-as-null-pointer-constant"
25807
25808fi
25809
25810
25811
25812fi
25813
25814
25815 ac_ext=c
25816ac_cpp='$CPP $CPPFLAGS'
25817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25819ac_compiler_gnu=$ac_cv_c_compiler_gnu
25820
25821
25822 CFLAGS="$COMPILER_CFLAGS $CFLAGS"
25823 CXXFLAGS="$COMPILER_CXXFLAGS $CXXFLAGS"
25824
25825fi
25826
25827
25828 # Check whether --enable-compiler-optimizations was given.
25829if test "${enable_compiler_optimizations+set}" = set; then :
25830 enableval=$enable_compiler_optimizations;
25831else
25832 enable_compiler_optimizations=yes
25833fi
25834
25835
25836 if test "x$enable_compiler_optimizations" = "xno"; then :
25837
25838 CFLAGS=$(echo "$CFLAGS" | sed -e "s/ -O[1-9]*\b/ -O0/g")
25839
25840fi
25841
25842
25843 # Check whether --enable-linker-optimizations was given.
25844if test "${enable_linker_optimizations+set}" = set; then :
25845 enableval=$enable_linker_optimizations;
25846else
25847 enable_linker_optimizations=yes
25848fi
25849
25850
25851 if test "x$enable_linker_optimizations" = "xno"; then :
25852
25853 LDFLAGS=$(echo "$LDFLAGS" | sed -e "s/ -Wl,-O[0-9]*\b//g")
25854
25855else
25856
25857 save_LDFLAGS=$LDFLAGS
25858 LDFLAGS="$LDFLAGS -Wl,-O1"
25859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25860/* end confdefs.h. */
25861
25862
25863int
25864main ()
25865{
25866
25867 ;
25868 return 0;
25869}
25870
25871_ACEOF
25872if ac_fn_c_try_link "$LINENO"; then :
25873
25874else
25875
25876 LDFLAGS="$save_LDFLAGS"
25877
25878fi
25879rm -f core conftest.err conftest.$ac_objext \
25880 conftest$ac_exeext conftest.$ac_ext
25881
25882fi
25883
25884
25885
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dpkg cpu type" >&5
25887$as_echo_n "checking dpkg cpu type... " >&6; }
25888
25889 cpu_type=$(PERL=$PERL $srcdir/run-script scripts/dpkg-architecture.pl -t$host -qDEB_HOST_ARCH_CPU 2>/dev/null)
25890
25891 if test "x$cpu_type" = "x"; then :
25892
25893 cpu_type=$host_cpu
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpu_type" >&5
25895$as_echo "$cpu_type" >&6; }
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $host_cpu not found in cputable" >&5
25897$as_echo "$as_me: WARNING: $host_cpu not found in cputable" >&2;}
25898
25899else
25900
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpu_type" >&5
25902$as_echo "$cpu_type" >&6; }
25903
25904fi
25905
25906cat >>confdefs.h <<_ACEOF
25907#define ARCHITECTURE_CPU "${cpu_type}"
25908_ACEOF
25909
25910
25911
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dpkg operating system type" >&5
25913$as_echo_n "checking dpkg operating system type... " >&6; }
25914
25915 os_type=$(PERL=$PERL $srcdir/run-script scripts/dpkg-architecture.pl -t$host -qDEB_HOST_ARCH_OS 2>/dev/null)
25916
25917 if test "x$os_type" = "x"; then :
25918
25919 os_type=$host_os
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_type" >&5
25921$as_echo "$os_type" >&6; }
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $host_os not found in ostable" >&5
25923$as_echo "$as_me: WARNING: $host_os not found in ostable" >&2;}
25924
25925else
25926
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_type" >&5
25928$as_echo "$os_type" >&6; }
25929
25930fi
25931
25932cat >>confdefs.h <<_ACEOF
25933#define ARCHITECTURE_OS "${os_type}"
25934_ACEOF
25935
25936
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dpkg architecture name" >&5
25938$as_echo_n "checking dpkg architecture name... " >&6; }
25939
25940 dpkg_arch=$(PERL=$PERL $srcdir/run-script scripts/dpkg-architecture.pl -t$host -qDEB_HOST_ARCH 2>/dev/null)
25941
25942 if test "x$dpkg_arch" = "x"; then :
25943
25944 as_fn_error $? "cannot determine host dpkg architecture" "$LINENO" 5
25945
25946else
25947
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_arch" >&5
25949$as_echo "$dpkg_arch" >&6; }
25950
25951fi
25952
25953cat >>confdefs.h <<_ACEOF
25954#define ARCHITECTURE "${dpkg_arch}"
25955_ACEOF
25956
25957
25958
25959$as_echo "#define PACKAGE_RELEASE PACKAGE_VERSION \" (\" ARCHITECTURE \")\"" >>confdefs.h
25960
25961
25962ac_config_commands="$ac_config_commands t-func/atconfig"
25963
25964
25965AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
25966
25967
25968ac_config_files="$ac_config_files Makefile t-func/Makefile t-func/atlocal dpkg-deb/Makefile dpkg-split/Makefile dselect/Makefile dselect/methods/Makefile dselect/po/Makefile.in lib/Makefile lib/compat/Makefile lib/dpkg/Makefile lib/dpkg/libdpkg.pc lib/dpkg/t/Makefile doc/Doxyfile man/Makefile po/Makefile.in scripts/Makefile scripts/mk/Makefile scripts/po/Makefile.in src/Makefile utils/Makefile"
25969
25970ac_config_headers="$ac_config_headers config.h"
25971
25972cat >confcache <<\_ACEOF
25973# This file is a shell script that caches the results of configure
25974# tests run on this system so they can be shared between configure
25975# scripts and configure runs, see configure's option --config-cache.
25976# It is not useful on other systems. If it contains results you don't
25977# want to keep, you may remove or edit it.
25978#
25979# config.status only pays attention to the cache file if you give it
25980# the --recheck option to rerun configure.
25981#
25982# `ac_cv_env_foo' variables (set or unset) will be overridden when
25983# loading this file, other *unset* `ac_cv_foo' will be assigned the
25984# following values.
25985
25986_ACEOF
25987
25988# The following way of writing the cache mishandles newlines in values,
25989# but we know of no workaround that is simple, portable, and efficient.
25990# So, we kill variables containing newlines.
25991# Ultrix sh set writes to stderr and can't be redirected directly,
25992# and sets the high bit in the cache file unless we assign to the vars.
25993(
25994 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25995 eval ac_val=\$$ac_var
25996 case $ac_val in #(
25997 *${as_nl}*)
25998 case $ac_var in #(
25999 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26000$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26001 esac
26002 case $ac_var in #(
26003 _ | IFS | as_nl) ;; #(
26004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26005 *) { eval $ac_var=; unset $ac_var;} ;;
26006 esac ;;
26007 esac
26008 done
26009
26010 (set) 2>&1 |
26011 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26012 *${as_nl}ac_space=\ *)
26013 # `set' does not quote correctly, so add quotes: double-quote
26014 # substitution turns \\\\ into \\, and sed turns \\ into \.
26015 sed -n \
26016 "s/'/'\\\\''/g;
26017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26018 ;; #(
26019 *)
26020 # `set' quotes correctly as required by POSIX, so do not add quotes.
26021 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26022 ;;
26023 esac |
26024 sort
26025) |
26026 sed '
26027 /^ac_cv_env_/b end
26028 t clear
26029 :clear
26030 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26031 t end
26032 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26033 :end' >>confcache
26034if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26035 if test -w "$cache_file"; then
26036 if test "x$cache_file" != "x/dev/null"; then
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26038$as_echo "$as_me: updating cache $cache_file" >&6;}
26039 if test ! -f "$cache_file" || test -h "$cache_file"; then
26040 cat confcache >"$cache_file"
26041 else
26042 case $cache_file in #(
26043 */* | ?:*)
26044 mv -f confcache "$cache_file"$$ &&
26045 mv -f "$cache_file"$$ "$cache_file" ;; #(
26046 *)
26047 mv -f confcache "$cache_file" ;;
26048 esac
26049 fi
26050 fi
26051 else
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26053$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26054 fi
26055fi
26056rm -f confcache
26057
26058test "x$prefix" = xNONE && prefix=$ac_default_prefix
26059# Let make expand exec_prefix.
26060test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26061
26062DEFS=-DHAVE_CONFIG_H
26063
26064ac_libobjs=
26065ac_ltlibobjs=
26066U=
26067for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26068 # 1. Remove the extension, and $U if already installed.
26069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26070 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26072 # will be set to the directory where LIBOBJS objects are built.
26073 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26074 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26075done
26076LIBOBJS=$ac_libobjs
26077
26078LTLIBOBJS=$ac_ltlibobjs
26079
26080
26081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26082$as_echo_n "checking that generated files are newer than configure... " >&6; }
26083 if test -n "$am_sleep_pid"; then
26084 # Hide warnings about reused PIDs.
26085 wait $am_sleep_pid 2>/dev/null
26086 fi
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26088$as_echo "done" >&6; }
26089if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26090 as_fn_error $? "conditional \"AMDEP\" was never defined.
26091Usually this means the macro was only invoked conditionally." "$LINENO" 5
26092fi
26093if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26094 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26095Usually this means the macro was only invoked conditionally." "$LINENO" 5
26096fi
26097 if test -n "$EXEEXT"; then
26098 am__EXEEXT_TRUE=
26099 am__EXEEXT_FALSE='#'
26100else
26101 am__EXEEXT_TRUE='#'
26102 am__EXEEXT_FALSE=
26103fi
26104
26105if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
26106 as_fn_error $? "conditional \"BUILD_SHARED\" was never defined.
26107Usually this means the macro was only invoked conditionally." "$LINENO" 5
26108fi
26109if test -z "${HAVE_LINKER_AS_NEEDED_TRUE}" && test -z "${HAVE_LINKER_AS_NEEDED_FALSE}"; then
26110 as_fn_error $? "conditional \"HAVE_LINKER_AS_NEEDED\" was never defined.
26111Usually this means the macro was only invoked conditionally." "$LINENO" 5
26112fi
26113if test -z "${HAVE_LINKER_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LINKER_VERSION_SCRIPT_FALSE}"; then
26114 as_fn_error $? "conditional \"HAVE_LINKER_VERSION_SCRIPT\" was never defined.
26115Usually this means the macro was only invoked conditionally." "$LINENO" 5
26116fi
26117if test -z "${BUILD_DSELECT_TRUE}" && test -z "${BUILD_DSELECT_FALSE}"; then
26118 as_fn_error $? "conditional \"BUILD_DSELECT\" was never defined.
26119Usually this means the macro was only invoked conditionally." "$LINENO" 5
26120fi
26121if test -z "${BUILD_START_STOP_DAEMON_TRUE}" && test -z "${BUILD_START_STOP_DAEMON_FALSE}"; then
26122 as_fn_error $? "conditional \"BUILD_START_STOP_DAEMON\" was never defined.
26123Usually this means the macro was only invoked conditionally." "$LINENO" 5
26124fi
26125if test -z "${BUILD_UPDATE_ALTERNATIVES_TRUE}" && test -z "${BUILD_UPDATE_ALTERNATIVES_FALSE}"; then
26126 as_fn_error $? "conditional \"BUILD_UPDATE_ALTERNATIVES\" was never defined.
26127Usually this means the macro was only invoked conditionally." "$LINENO" 5
26128fi
26129if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26130 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26131Usually this means the macro was only invoked conditionally." "$LINENO" 5
26132fi
26133if test -z "${BUILD_POD_DOC_TRUE}" && test -z "${BUILD_POD_DOC_FALSE}"; then
26134 as_fn_error $? "conditional \"BUILD_POD_DOC\" was never defined.
26135Usually this means the macro was only invoked conditionally." "$LINENO" 5
26136fi
26137if test -z "${COVERAGE_ENABLED_TRUE}" && test -z "${COVERAGE_ENABLED_FALSE}"; then
26138 as_fn_error $? "conditional \"COVERAGE_ENABLED\" was never defined.
26139Usually this means the macro was only invoked conditionally." "$LINENO" 5
26140fi
26141if test -z "${HAVE_LIBMD_MD5_TRUE}" && test -z "${HAVE_LIBMD_MD5_FALSE}"; then
26142 as_fn_error $? "conditional \"HAVE_LIBMD_MD5\" was never defined.
26143Usually this means the macro was only invoked conditionally." "$LINENO" 5
26144fi
26145if test -z "${WITH_LIBSELINUX_TRUE}" && test -z "${WITH_LIBSELINUX_FALSE}"; then
26146 as_fn_error $? "conditional \"WITH_LIBSELINUX\" was never defined.
26147Usually this means the macro was only invoked conditionally." "$LINENO" 5
26148fi
26149if test -z "${HAVE_SETEXECFILECON_TRUE}" && test -z "${HAVE_SETEXECFILECON_FALSE}"; then
26150 as_fn_error $? "conditional \"HAVE_SETEXECFILECON\" was never defined.
26151Usually this means the macro was only invoked conditionally." "$LINENO" 5
26152fi
26153
26154if test -z "${HAVE_SYS_ERRLIST_TRUE}" && test -z "${HAVE_SYS_ERRLIST_FALSE}"; then
26155 as_fn_error $? "conditional \"HAVE_SYS_ERRLIST\" was never defined.
26156Usually this means the macro was only invoked conditionally." "$LINENO" 5
26157fi
26158if test -z "${HAVE_C99_SNPRINTF_TRUE}" && test -z "${HAVE_C99_SNPRINTF_FALSE}"; then
26159 as_fn_error $? "conditional \"HAVE_C99_SNPRINTF\" was never defined.
26160Usually this means the macro was only invoked conditionally." "$LINENO" 5
26161fi
26162if test -z "${HAVE_GETOPT_TRUE}" && test -z "${HAVE_GETOPT_FALSE}"; then
26163 as_fn_error $? "conditional \"HAVE_GETOPT\" was never defined.
26164Usually this means the macro was only invoked conditionally." "$LINENO" 5
26165fi
26166if test -z "${HAVE_GETOPT_LONG_TRUE}" && test -z "${HAVE_GETOPT_LONG_FALSE}"; then
26167 as_fn_error $? "conditional \"HAVE_GETOPT_LONG\" was never defined.
26168Usually this means the macro was only invoked conditionally." "$LINENO" 5
26169fi
26170if test -z "${HAVE_OBSTACK_FREE_TRUE}" && test -z "${HAVE_OBSTACK_FREE_FALSE}"; then
26171 as_fn_error $? "conditional \"HAVE_OBSTACK_FREE\" was never defined.
26172Usually this means the macro was only invoked conditionally." "$LINENO" 5
26173fi
26174if test -z "${HAVE_STRNLEN_TRUE}" && test -z "${HAVE_STRNLEN_FALSE}"; then
26175 as_fn_error $? "conditional \"HAVE_STRNLEN\" was never defined.
26176Usually this means the macro was only invoked conditionally." "$LINENO" 5
26177fi
26178if test -z "${HAVE_STRNDUP_TRUE}" && test -z "${HAVE_STRNDUP_FALSE}"; then
26179 as_fn_error $? "conditional \"HAVE_STRNDUP\" was never defined.
26180Usually this means the macro was only invoked conditionally." "$LINENO" 5
26181fi
26182if test -z "${HAVE_STRERROR_TRUE}" && test -z "${HAVE_STRERROR_FALSE}"; then
26183 as_fn_error $? "conditional \"HAVE_STRERROR\" was never defined.
26184Usually this means the macro was only invoked conditionally." "$LINENO" 5
26185fi
26186if test -z "${HAVE_STRSIGNAL_TRUE}" && test -z "${HAVE_STRSIGNAL_FALSE}"; then
26187 as_fn_error $? "conditional \"HAVE_STRSIGNAL\" was never defined.
26188Usually this means the macro was only invoked conditionally." "$LINENO" 5
26189fi
26190if test -z "${HAVE_ASPRINTF_TRUE}" && test -z "${HAVE_ASPRINTF_FALSE}"; then
26191 as_fn_error $? "conditional \"HAVE_ASPRINTF\" was never defined.
26192Usually this means the macro was only invoked conditionally." "$LINENO" 5
26193fi
26194if test -z "${HAVE_SCANDIR_TRUE}" && test -z "${HAVE_SCANDIR_FALSE}"; then
26195 as_fn_error $? "conditional \"HAVE_SCANDIR\" was never defined.
26196Usually this means the macro was only invoked conditionally." "$LINENO" 5
26197fi
26198if test -z "${HAVE_ALPHASORT_TRUE}" && test -z "${HAVE_ALPHASORT_FALSE}"; then
26199 as_fn_error $? "conditional \"HAVE_ALPHASORT\" was never defined.
26200Usually this means the macro was only invoked conditionally." "$LINENO" 5
26201fi
26202if test -z "${HAVE_UNSETENV_TRUE}" && test -z "${HAVE_UNSETENV_FALSE}"; then
26203 as_fn_error $? "conditional \"HAVE_UNSETENV\" was never defined.
26204Usually this means the macro was only invoked conditionally." "$LINENO" 5
26205fi
26206
26207: "${CONFIG_STATUS=./config.status}"
26208ac_write_fail=0
26209ac_clean_files_save=$ac_clean_files
26210ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26211{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26212$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26213as_write_fail=0
26214cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26215#! $SHELL
26216# Generated by $as_me.
26217# Run this file to recreate the current configuration.
26218# Compiler output produced by configure, useful for debugging
26219# configure, is in config.log if it exists.
26220
26221debug=false
26222ac_cs_recheck=false
26223ac_cs_silent=false
26224
26225SHELL=\${CONFIG_SHELL-$SHELL}
26226export SHELL
26227_ASEOF
26228cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26229## -------------------- ##
26230## M4sh Initialization. ##
26231## -------------------- ##
26232
26233# Be more Bourne compatible
26234DUALCASE=1; export DUALCASE # for MKS sh
26235if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26236 emulate sh
26237 NULLCMD=:
26238 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26239 # is contrary to our usage. Disable this feature.
26240 alias -g '${1+"$@"}'='"$@"'
26241 setopt NO_GLOB_SUBST
26242else
26243 case `(set -o) 2>/dev/null` in #(
26244 *posix*) :
26245 set -o posix ;; #(
26246 *) :
26247 ;;
26248esac
26249fi
26250
26251
26252as_nl='
26253'
26254export as_nl
26255# Printing a long string crashes Solaris 7 /usr/bin/printf.
26256as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26257as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26258as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26259# Prefer a ksh shell builtin over an external printf program on Solaris,
26260# but without wasting forks for bash or zsh.
26261if test -z "$BASH_VERSION$ZSH_VERSION" \
26262 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26263 as_echo='print -r --'
26264 as_echo_n='print -rn --'
26265elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26266 as_echo='printf %s\n'
26267 as_echo_n='printf %s'
26268else
26269 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26270 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26271 as_echo_n='/usr/ucb/echo -n'
26272 else
26273 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26274 as_echo_n_body='eval
26275 arg=$1;
26276 case $arg in #(
26277 *"$as_nl"*)
26278 expr "X$arg" : "X\\(.*\\)$as_nl";
26279 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26280 esac;
26281 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26282 '
26283 export as_echo_n_body
26284 as_echo_n='sh -c $as_echo_n_body as_echo'
26285 fi
26286 export as_echo_body
26287 as_echo='sh -c $as_echo_body as_echo'
26288fi
26289
26290# The user is always right.
26291if test "${PATH_SEPARATOR+set}" != set; then
26292 PATH_SEPARATOR=:
26293 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26294 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26295 PATH_SEPARATOR=';'
26296 }
26297fi
26298
26299
26300# IFS
26301# We need space, tab and new line, in precisely that order. Quoting is
26302# there to prevent editors from complaining about space-tab.
26303# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26304# splitting by setting IFS to empty value.)
26305IFS=" "" $as_nl"
26306
26307# Find who we are. Look in the path if we contain no directory separator.
26308as_myself=
26309case $0 in #((
26310 *[\\/]* ) as_myself=$0 ;;
26311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26312for as_dir in $PATH
26313do
26314 IFS=$as_save_IFS
26315 test -z "$as_dir" && as_dir=.
26316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26317 done
26318IFS=$as_save_IFS
26319
26320 ;;
26321esac
26322# We did not find ourselves, most probably we were run as `sh COMMAND'
26323# in which case we are not to be found in the path.
26324if test "x$as_myself" = x; then
26325 as_myself=$0
26326fi
26327if test ! -f "$as_myself"; then
26328 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26329 exit 1
26330fi
26331
26332# Unset variables that we do not need and which cause bugs (e.g. in
26333# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26334# suppresses any "Segmentation fault" message there. '((' could
26335# trigger a bug in pdksh 5.2.14.
26336for as_var in BASH_ENV ENV MAIL MAILPATH
26337do eval test x\${$as_var+set} = xset \
26338 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26339done
26340PS1='$ '
26341PS2='> '
26342PS4='+ '
26343
26344# NLS nuisances.
26345LC_ALL=C
26346export LC_ALL
26347LANGUAGE=C
26348export LANGUAGE
26349
26350# CDPATH.
26351(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26352
26353
26354# as_fn_error STATUS ERROR [LINENO LOG_FD]
26355# ----------------------------------------
26356# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26357# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26358# script with STATUS, using 1 if that was 0.
26359as_fn_error ()
26360{
26361 as_status=$1; test $as_status -eq 0 && as_status=1
26362 if test "$4"; then
26363 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26364 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26365 fi
26366 $as_echo "$as_me: error: $2" >&2
26367 as_fn_exit $as_status
26368} # as_fn_error
26369
26370
26371# as_fn_set_status STATUS
26372# -----------------------
26373# Set $? to STATUS, without forking.
26374as_fn_set_status ()
26375{
26376 return $1
26377} # as_fn_set_status
26378
26379# as_fn_exit STATUS
26380# -----------------
26381# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26382as_fn_exit ()
26383{
26384 set +e
26385 as_fn_set_status $1
26386 exit $1
26387} # as_fn_exit
26388
26389# as_fn_unset VAR
26390# ---------------
26391# Portably unset VAR.
26392as_fn_unset ()
26393{
26394 { eval $1=; unset $1;}
26395}
26396as_unset=as_fn_unset
26397# as_fn_append VAR VALUE
26398# ----------------------
26399# Append the text in VALUE to the end of the definition contained in VAR. Take
26400# advantage of any shell optimizations that allow amortized linear growth over
26401# repeated appends, instead of the typical quadratic growth present in naive
26402# implementations.
26403if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26404 eval 'as_fn_append ()
26405 {
26406 eval $1+=\$2
26407 }'
26408else
26409 as_fn_append ()
26410 {
26411 eval $1=\$$1\$2
26412 }
26413fi # as_fn_append
26414
26415# as_fn_arith ARG...
26416# ------------------
26417# Perform arithmetic evaluation on the ARGs, and store the result in the
26418# global $as_val. Take advantage of shells that can avoid forks. The arguments
26419# must be portable across $(()) and expr.
26420if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26421 eval 'as_fn_arith ()
26422 {
26423 as_val=$(( $* ))
26424 }'
26425else
26426 as_fn_arith ()
26427 {
26428 as_val=`expr "$@" || test $? -eq 1`
26429 }
26430fi # as_fn_arith
26431
26432
26433if expr a : '\(a\)' >/dev/null 2>&1 &&
26434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26435 as_expr=expr
26436else
26437 as_expr=false
26438fi
26439
26440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26441 as_basename=basename
26442else
26443 as_basename=false
26444fi
26445
26446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26447 as_dirname=dirname
26448else
26449 as_dirname=false
26450fi
26451
26452as_me=`$as_basename -- "$0" ||
26453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26454 X"$0" : 'X\(//\)$' \| \
26455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26456$as_echo X/"$0" |
26457 sed '/^.*\/\([^/][^/]*\)\/*$/{
26458 s//\1/
26459 q
26460 }
26461 /^X\/\(\/\/\)$/{
26462 s//\1/
26463 q
26464 }
26465 /^X\/\(\/\).*/{
26466 s//\1/
26467 q
26468 }
26469 s/.*/./; q'`
26470
26471# Avoid depending upon Character Ranges.
26472as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26474as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26475as_cr_digits='0123456789'
26476as_cr_alnum=$as_cr_Letters$as_cr_digits
26477
26478ECHO_C= ECHO_N= ECHO_T=
26479case `echo -n x` in #(((((
26480-n*)
26481 case `echo 'xy\c'` in
26482 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26483 xy) ECHO_C='\c';;
26484 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26485 ECHO_T=' ';;
26486 esac;;
26487*)
26488 ECHO_N='-n';;
26489esac
26490
26491rm -f conf$$ conf$$.exe conf$$.file
26492if test -d conf$$.dir; then
26493 rm -f conf$$.dir/conf$$.file
26494else
26495 rm -f conf$$.dir
26496 mkdir conf$$.dir 2>/dev/null
26497fi
26498if (echo >conf$$.file) 2>/dev/null; then
26499 if ln -s conf$$.file conf$$ 2>/dev/null; then
26500 as_ln_s='ln -s'
26501 # ... but there are two gotchas:
26502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26504 # In both cases, we have to default to `cp -pR'.
26505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26506 as_ln_s='cp -pR'
26507 elif ln conf$$.file conf$$ 2>/dev/null; then
26508 as_ln_s=ln
26509 else
26510 as_ln_s='cp -pR'
26511 fi
26512else
26513 as_ln_s='cp -pR'
26514fi
26515rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26516rmdir conf$$.dir 2>/dev/null
26517
26518
26519# as_fn_mkdir_p
26520# -------------
26521# Create "$as_dir" as a directory, including parents if necessary.
26522as_fn_mkdir_p ()
26523{
26524
26525 case $as_dir in #(
26526 -*) as_dir=./$as_dir;;
26527 esac
26528 test -d "$as_dir" || eval $as_mkdir_p || {
26529 as_dirs=
26530 while :; do
26531 case $as_dir in #(
26532 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26533 *) as_qdir=$as_dir;;
26534 esac
26535 as_dirs="'$as_qdir' $as_dirs"
26536 as_dir=`$as_dirname -- "$as_dir" ||
26537$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26538 X"$as_dir" : 'X\(//\)[^/]' \| \
26539 X"$as_dir" : 'X\(//\)$' \| \
26540 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26541$as_echo X"$as_dir" |
26542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26543 s//\1/
26544 q
26545 }
26546 /^X\(\/\/\)[^/].*/{
26547 s//\1/
26548 q
26549 }
26550 /^X\(\/\/\)$/{
26551 s//\1/
26552 q
26553 }
26554 /^X\(\/\).*/{
26555 s//\1/
26556 q
26557 }
26558 s/.*/./; q'`
26559 test -d "$as_dir" && break
26560 done
26561 test -z "$as_dirs" || eval "mkdir $as_dirs"
26562 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26563
26564
26565} # as_fn_mkdir_p
26566if mkdir -p . 2>/dev/null; then
26567 as_mkdir_p='mkdir -p "$as_dir"'
26568else
26569 test -d ./-p && rmdir ./-p
26570 as_mkdir_p=false
26571fi
26572
26573
26574# as_fn_executable_p FILE
26575# -----------------------
26576# Test if FILE is an executable regular file.
26577as_fn_executable_p ()
26578{
26579 test -f "$1" && test -x "$1"
26580} # as_fn_executable_p
26581as_test_x='test -x'
26582as_executable_p=as_fn_executable_p
26583
26584# Sed expression to map a string onto a valid CPP name.
26585as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26586
26587# Sed expression to map a string onto a valid variable name.
26588as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26589
26590
26591exec 6>&1
26592## ----------------------------------- ##
26593## Main body of $CONFIG_STATUS script. ##
26594## ----------------------------------- ##
26595_ASEOF
26596test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26597
26598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26599# Save the log message, to keep $0 and so on meaningful, and to
26600# report actual input values of CONFIG_FILES etc. instead of their
26601# values after options handling.
26602ac_log="
26603This file was extended by dpkg $as_me 1.18.25, which was
26604generated by GNU Autoconf 2.69. Invocation command line was
26605
26606 CONFIG_FILES = $CONFIG_FILES
26607 CONFIG_HEADERS = $CONFIG_HEADERS
26608 CONFIG_LINKS = $CONFIG_LINKS
26609 CONFIG_COMMANDS = $CONFIG_COMMANDS
26610 $ $0 $@
26611
26612on `(hostname || uname -n) 2>/dev/null | sed 1q`
26613"
26614
26615_ACEOF
26616
26617case $ac_config_files in *"
26618"*) set x $ac_config_files; shift; ac_config_files=$*;;
26619esac
26620
26621case $ac_config_headers in *"
26622"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26623esac
26624
26625
26626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26627# Files that config.status was made for.
26628config_files="$ac_config_files"
26629config_headers="$ac_config_headers"
26630config_commands="$ac_config_commands"
26631
26632_ACEOF
26633
26634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26635ac_cs_usage="\
26636\`$as_me' instantiates files and other configuration actions
26637from templates according to the current configuration. Unless the files
26638and actions are specified as TAGs, all are instantiated by default.
26639
26640Usage: $0 [OPTION]... [TAG]...
26641
26642 -h, --help print this help, then exit
26643 -V, --version print version number and configuration settings, then exit
26644 --config print configuration, then exit
26645 -q, --quiet, --silent
26646 do not print progress messages
26647 -d, --debug don't remove temporary files
26648 --recheck update $as_me by reconfiguring in the same conditions
26649 --file=FILE[:TEMPLATE]
26650 instantiate the configuration file FILE
26651 --header=FILE[:TEMPLATE]
26652 instantiate the configuration header FILE
26653
26654Configuration files:
26655$config_files
26656
26657Configuration headers:
26658$config_headers
26659
26660Configuration commands:
26661$config_commands
26662
26663Report bugs to <debian-dpkg@lists.debian.org>."
26664
26665_ACEOF
26666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26667ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26668ac_cs_version="\\
26669dpkg config.status 1.18.25
26670configured by $0, generated by GNU Autoconf 2.69,
26671 with options \\"\$ac_cs_config\\"
26672
26673Copyright (C) 2012 Free Software Foundation, Inc.
26674This config.status script is free software; the Free Software Foundation
26675gives unlimited permission to copy, distribute and modify it."
26676
26677ac_pwd='$ac_pwd'
26678srcdir='$srcdir'
26679INSTALL='$INSTALL'
26680MKDIR_P='$MKDIR_P'
26681AWK='$AWK'
26682test -n "\$AWK" || AWK=awk
26683_ACEOF
26684
26685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26686# The default lists apply if the user does not specify any file.
26687ac_need_defaults=:
26688while test $# != 0
26689do
26690 case $1 in
26691 --*=?*)
26692 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26693 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26694 ac_shift=:
26695 ;;
26696 --*=)
26697 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26698 ac_optarg=
26699 ac_shift=:
26700 ;;
26701 *)
26702 ac_option=$1
26703 ac_optarg=$2
26704 ac_shift=shift
26705 ;;
26706 esac
26707
26708 case $ac_option in
26709 # Handling of the options.
26710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26711 ac_cs_recheck=: ;;
26712 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26713 $as_echo "$ac_cs_version"; exit ;;
26714 --config | --confi | --conf | --con | --co | --c )
26715 $as_echo "$ac_cs_config"; exit ;;
26716 --debug | --debu | --deb | --de | --d | -d )
26717 debug=: ;;
26718 --file | --fil | --fi | --f )
26719 $ac_shift
26720 case $ac_optarg in
26721 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26722 '') as_fn_error $? "missing file argument" ;;
26723 esac
26724 as_fn_append CONFIG_FILES " '$ac_optarg'"
26725 ac_need_defaults=false;;
26726 --header | --heade | --head | --hea )
26727 $ac_shift
26728 case $ac_optarg in
26729 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26730 esac
26731 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26732 ac_need_defaults=false;;
26733 --he | --h)
26734 # Conflict between --help and --header
26735 as_fn_error $? "ambiguous option: \`$1'
26736Try \`$0 --help' for more information.";;
26737 --help | --hel | -h )
26738 $as_echo "$ac_cs_usage"; exit ;;
26739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26740 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26741 ac_cs_silent=: ;;
26742
26743 # This is an error.
26744 -*) as_fn_error $? "unrecognized option: \`$1'
26745Try \`$0 --help' for more information." ;;
26746
26747 *) as_fn_append ac_config_targets " $1"
26748 ac_need_defaults=false ;;
26749
26750 esac
26751 shift
26752done
26753
26754ac_configure_extra_args=
26755
26756if $ac_cs_silent; then
26757 exec 6>/dev/null
26758 ac_configure_extra_args="$ac_configure_extra_args --silent"
26759fi
26760
26761_ACEOF
26762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26763if \$ac_cs_recheck; then
26764 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26765 shift
26766 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26767 CONFIG_SHELL='$SHELL'
26768 export CONFIG_SHELL
26769 exec "\$@"
26770fi
26771
26772_ACEOF
26773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26774exec 5>>config.log
26775{
26776 echo
26777 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26778## Running $as_me. ##
26779_ASBOX
26780 $as_echo "$ac_log"
26781} >&5
26782
26783_ACEOF
26784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26785#
26786# INIT-COMMANDS
26787#
26788AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26789# Capture the value of obsolete ALL_LINGUAS because we need it to compute
26790 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
26791 # from automake < 1.5.
26792 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
26793 # Capture the value of LINGUAS because we need it to compute CATALOGS.
26794 LINGUAS="${LINGUAS-%UNSET%}"
26795
26796
26797
26798# The HP-UX ksh and POSIX shell print the target directory to stdout
26799# if CDPATH is set.
26800(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26801
26802sed_quote_subst='$sed_quote_subst'
26803double_quote_subst='$double_quote_subst'
26804delay_variable_subst='$delay_variable_subst'
26805macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26806macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26807enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26808enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26809pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26810enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26811shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
26812SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26813ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26814PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26815host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26816host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26817host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26818build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26819build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26820build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26821SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26822Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26823GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26824EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26825FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26826LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26827NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26828LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26829max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26830ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26831exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26832lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26833lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26834lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26835lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26836lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26837reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26838reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26839OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26840deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26841file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26842file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26843want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26844DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26845sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26846AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26847AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26848archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26849STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26850RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26851old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26852old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26853old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26854lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26855CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26856CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26857compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26858GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26859lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26860lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26861lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
26862lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26863lt_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"`'
26864lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
26865nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26866lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26867lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
26868objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26869MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26870lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26871lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26872lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26873lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26874lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26875need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26876MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26877DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26878NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26879LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26880OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26881OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26882libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26883shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26884extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26885archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26886enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26887export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26888whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26889compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26890old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26891old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26892archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26893archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26894module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26895module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26896with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26897allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26898no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26899hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26900hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26901hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26902hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26903hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26904hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26905hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26906inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26907link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26908always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26909export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26910exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26911include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26912prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26913postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26914file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26915variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26916need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26917need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26918version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26919runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26920shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26921shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26922libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26923library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26924soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26925install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26926postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26927postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26928finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26929finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26930hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26931sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26932configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
26933configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
26934hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26935enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26936enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26937enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26938old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26939striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26940compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26941predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26942postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26943predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26944postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26945compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26946LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26947reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26948reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26949old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26950compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26951GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26952lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26953lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26954lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26955lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26956lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26957archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26958enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26959export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26960whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26961compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26962old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26963old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26964archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26965archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26966module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26967module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26968with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26969allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26970no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26971hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26972hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26973hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26974hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26975hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26976hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26977hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26978inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26979link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26980always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26981export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26982exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26983include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26984prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26985postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26986file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26987hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26988compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26989predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26990postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26991predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26992postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26993compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26994
26995LTCC='$LTCC'
26996LTCFLAGS='$LTCFLAGS'
26997compiler='$compiler_DEFAULT'
26998
26999# A function that is used when there is no print builtin or printf.
27000func_fallback_echo ()
27001{
27002 eval 'cat <<_LTECHO_EOF
27003\$1
27004_LTECHO_EOF'
27005}
27006
27007# Quote evaled strings.
27008for var in SHELL \
27009ECHO \
27010PATH_SEPARATOR \
27011SED \
27012GREP \
27013EGREP \
27014FGREP \
27015LD \
27016NM \
27017LN_S \
27018lt_SP2NL \
27019lt_NL2SP \
27020reload_flag \
27021OBJDUMP \
27022deplibs_check_method \
27023file_magic_cmd \
27024file_magic_glob \
27025want_nocaseglob \
27026DLLTOOL \
27027sharedlib_from_linklib_cmd \
27028AR \
27029AR_FLAGS \
27030archiver_list_spec \
27031STRIP \
27032RANLIB \
27033CC \
27034CFLAGS \
27035compiler \
27036lt_cv_sys_global_symbol_pipe \
27037lt_cv_sys_global_symbol_to_cdecl \
27038lt_cv_sys_global_symbol_to_import \
27039lt_cv_sys_global_symbol_to_c_name_address \
27040lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27041lt_cv_nm_interface \
27042nm_file_list_spec \
27043lt_cv_truncate_bin \
27044lt_prog_compiler_no_builtin_flag \
27045lt_prog_compiler_pic \
27046lt_prog_compiler_wl \
27047lt_prog_compiler_static \
27048lt_cv_prog_compiler_c_o \
27049need_locks \
27050MANIFEST_TOOL \
27051DSYMUTIL \
27052NMEDIT \
27053LIPO \
27054OTOOL \
27055OTOOL64 \
27056shrext_cmds \
27057export_dynamic_flag_spec \
27058whole_archive_flag_spec \
27059compiler_needs_object \
27060with_gnu_ld \
27061allow_undefined_flag \
27062no_undefined_flag \
27063hardcode_libdir_flag_spec \
27064hardcode_libdir_separator \
27065exclude_expsyms \
27066include_expsyms \
27067file_list_spec \
27068variables_saved_for_relink \
27069libname_spec \
27070library_names_spec \
27071soname_spec \
27072install_override_mode \
27073finish_eval \
27074old_striplib \
27075striplib \
27076compiler_lib_search_dirs \
27077predep_objects \
27078postdep_objects \
27079predeps \
27080postdeps \
27081compiler_lib_search_path \
27082LD_CXX \
27083reload_flag_CXX \
27084compiler_CXX \
27085lt_prog_compiler_no_builtin_flag_CXX \
27086lt_prog_compiler_pic_CXX \
27087lt_prog_compiler_wl_CXX \
27088lt_prog_compiler_static_CXX \
27089lt_cv_prog_compiler_c_o_CXX \
27090export_dynamic_flag_spec_CXX \
27091whole_archive_flag_spec_CXX \
27092compiler_needs_object_CXX \
27093with_gnu_ld_CXX \
27094allow_undefined_flag_CXX \
27095no_undefined_flag_CXX \
27096hardcode_libdir_flag_spec_CXX \
27097hardcode_libdir_separator_CXX \
27098exclude_expsyms_CXX \
27099include_expsyms_CXX \
27100file_list_spec_CXX \
27101compiler_lib_search_dirs_CXX \
27102predep_objects_CXX \
27103postdep_objects_CXX \
27104predeps_CXX \
27105postdeps_CXX \
27106compiler_lib_search_path_CXX; do
27107 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27108 *[\\\\\\\`\\"\\\$]*)
27109 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27110 ;;
27111 *)
27112 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27113 ;;
27114 esac
27115done
27116
27117# Double-quote double-evaled strings.
27118for var in reload_cmds \
27119old_postinstall_cmds \
27120old_postuninstall_cmds \
27121old_archive_cmds \
27122extract_expsyms_cmds \
27123old_archive_from_new_cmds \
27124old_archive_from_expsyms_cmds \
27125archive_cmds \
27126archive_expsym_cmds \
27127module_cmds \
27128module_expsym_cmds \
27129export_symbols_cmds \
27130prelink_cmds \
27131postlink_cmds \
27132postinstall_cmds \
27133postuninstall_cmds \
27134finish_cmds \
27135sys_lib_search_path_spec \
27136configure_time_dlsearch_path \
27137configure_time_lt_sys_library_path \
27138reload_cmds_CXX \
27139old_archive_cmds_CXX \
27140old_archive_from_new_cmds_CXX \
27141old_archive_from_expsyms_cmds_CXX \
27142archive_cmds_CXX \
27143archive_expsym_cmds_CXX \
27144module_cmds_CXX \
27145module_expsym_cmds_CXX \
27146export_symbols_cmds_CXX \
27147prelink_cmds_CXX \
27148postlink_cmds_CXX; do
27149 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27150 *[\\\\\\\`\\"\\\$]*)
27151 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27152 ;;
27153 *)
27154 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27155 ;;
27156 esac
27157done
27158
27159ac_aux_dir='$ac_aux_dir'
27160
27161# See if we are running on zsh, and set the options that allow our
27162# commands through without removal of \ escapes INIT.
27163if test -n "\${ZSH_VERSION+set}"; then
27164 setopt NO_GLOB_SUBST
27165fi
27166
27167
27168 PACKAGE='$PACKAGE'
27169 VERSION='$VERSION'
27170 RM='$RM'
27171 ofile='$ofile'
27172
27173
27174
27175
27176
27177
27178
27179_ACEOF
27180
27181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27182
27183# Handling of arguments.
27184for ac_config_target in $ac_config_targets
27185do
27186 case $ac_config_target in
27187 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27188 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
27189 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27190 "t-func/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS t-func/atconfig" ;;
27191 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27192 "t-func/Makefile") CONFIG_FILES="$CONFIG_FILES t-func/Makefile" ;;
27193 "t-func/atlocal") CONFIG_FILES="$CONFIG_FILES t-func/atlocal" ;;
27194 "dpkg-deb/Makefile") CONFIG_FILES="$CONFIG_FILES dpkg-deb/Makefile" ;;
27195 "dpkg-split/Makefile") CONFIG_FILES="$CONFIG_FILES dpkg-split/Makefile" ;;
27196 "dselect/Makefile") CONFIG_FILES="$CONFIG_FILES dselect/Makefile" ;;
27197 "dselect/methods/Makefile") CONFIG_FILES="$CONFIG_FILES dselect/methods/Makefile" ;;
27198 "dselect/po/Makefile.in") CONFIG_FILES="$CONFIG_FILES dselect/po/Makefile.in" ;;
27199 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27200 "lib/compat/Makefile") CONFIG_FILES="$CONFIG_FILES lib/compat/Makefile" ;;
27201 "lib/dpkg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dpkg/Makefile" ;;
27202 "lib/dpkg/libdpkg.pc") CONFIG_FILES="$CONFIG_FILES lib/dpkg/libdpkg.pc" ;;
27203 "lib/dpkg/t/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dpkg/t/Makefile" ;;
27204 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27205 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
27206 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27207 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
27208 "scripts/mk/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/mk/Makefile" ;;
27209 "scripts/po/Makefile.in") CONFIG_FILES="$CONFIG_FILES scripts/po/Makefile.in" ;;
27210 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27211 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27212 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27213
27214 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27215 esac
27216done
27217
27218
27219# If the user did not use the arguments to specify the items to instantiate,
27220# then the envvar interface is used. Set only those that are not.
27221# We use the long form for the default assignment because of an extremely
27222# bizarre bug on SunOS 4.1.3.
27223if $ac_need_defaults; then
27224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27225 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27226 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27227fi
27228
27229# Have a temporary directory for convenience. Make it in the build tree
27230# simply because there is no reason against having it here, and in addition,
27231# creating and moving files from /tmp can sometimes cause problems.
27232# Hook for its removal unless debugging.
27233# Note that there is a small window in which the directory will not be cleaned:
27234# after its creation but before its name has been assigned to `$tmp'.
27235$debug ||
27236{
27237 tmp= ac_tmp=
27238 trap 'exit_status=$?
27239 : "${ac_tmp:=$tmp}"
27240 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27241' 0
27242 trap 'as_fn_exit 1' 1 2 13 15
27243}
27244# Create a (secure) tmp directory for tmp files.
27245
27246{
27247 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27248 test -d "$tmp"
27249} ||
27250{
27251 tmp=./conf$$-$RANDOM
27252 (umask 077 && mkdir "$tmp")
27253} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27254ac_tmp=$tmp
27255
27256# Set up the scripts for CONFIG_FILES section.
27257# No need to generate them if there are no CONFIG_FILES.
27258# This happens for instance with `./config.status config.h'.
27259if test -n "$CONFIG_FILES"; then
27260
27261
27262ac_cr=`echo X | tr X '\015'`
27263# On cygwin, bash can eat \r inside `` if the user requested igncr.
27264# But we know of no other shell where ac_cr would be empty at this
27265# point, so we can use a bashism as a fallback.
27266if test "x$ac_cr" = x; then
27267 eval ac_cr=\$\'\\r\'
27268fi
27269ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27270if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27271 ac_cs_awk_cr='\\r'
27272else
27273 ac_cs_awk_cr=$ac_cr
27274fi
27275
27276echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27277_ACEOF
27278
27279
27280{
27281 echo "cat >conf$$subs.awk <<_ACEOF" &&
27282 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27283 echo "_ACEOF"
27284} >conf$$subs.sh ||
27285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27286ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27287ac_delim='%!_!# '
27288for ac_last_try in false false false false false :; do
27289 . ./conf$$subs.sh ||
27290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27291
27292 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27293 if test $ac_delim_n = $ac_delim_num; then
27294 break
27295 elif $ac_last_try; then
27296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27297 else
27298 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27299 fi
27300done
27301rm -f conf$$subs.sh
27302
27303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27304cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27305_ACEOF
27306sed -n '
27307h
27308s/^/S["/; s/!.*/"]=/
27309p
27310g
27311s/^[^!]*!//
27312:repl
27313t repl
27314s/'"$ac_delim"'$//
27315t delim
27316:nl
27317h
27318s/\(.\{148\}\)..*/\1/
27319t more1
27320s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27321p
27322n
27323b repl
27324:more1
27325s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27326p
27327g
27328s/.\{148\}//
27329t nl
27330:delim
27331h
27332s/\(.\{148\}\)..*/\1/
27333t more2
27334s/["\\]/\\&/g; s/^/"/; s/$/"/
27335p
27336b
27337:more2
27338s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27339p
27340g
27341s/.\{148\}//
27342t delim
27343' <conf$$subs.awk | sed '
27344/^[^""]/{
27345 N
27346 s/\n//
27347}
27348' >>$CONFIG_STATUS || ac_write_fail=1
27349rm -f conf$$subs.awk
27350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27351_ACAWK
27352cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27353 for (key in S) S_is_set[key] = 1
27354 FS = "\a"
27355
27356}
27357{
27358 line = $ 0
27359 nfields = split(line, field, "@")
27360 substed = 0
27361 len = length(field[1])
27362 for (i = 2; i < nfields; i++) {
27363 key = field[i]
27364 keylen = length(key)
27365 if (S_is_set[key]) {
27366 value = S[key]
27367 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27368 len += length(value) + length(field[++i])
27369 substed = 1
27370 } else
27371 len += 1 + keylen
27372 }
27373
27374 print line
27375}
27376
27377_ACAWK
27378_ACEOF
27379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27380if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27381 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27382else
27383 cat
27384fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27385 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27386_ACEOF
27387
27388# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27389# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27390# trailing colons and then remove the whole line if VPATH becomes empty
27391# (actually we leave an empty line to preserve line numbers).
27392if test "x$srcdir" = x.; then
27393 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27394h
27395s///
27396s/^/:/
27397s/[ ]*$/:/
27398s/:\$(srcdir):/:/g
27399s/:\${srcdir}:/:/g
27400s/:@srcdir@:/:/g
27401s/^:*//
27402s/:*$//
27403x
27404s/\(=[ ]*\).*/\1/
27405G
27406s/\n//
27407s/^[^=]*=[ ]*$//
27408}'
27409fi
27410
27411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27412fi # test -n "$CONFIG_FILES"
27413
27414# Set up the scripts for CONFIG_HEADERS section.
27415# No need to generate them if there are no CONFIG_HEADERS.
27416# This happens for instance with `./config.status Makefile'.
27417if test -n "$CONFIG_HEADERS"; then
27418cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27419BEGIN {
27420_ACEOF
27421
27422# Transform confdefs.h into an awk script `defines.awk', embedded as
27423# here-document in config.status, that substitutes the proper values into
27424# config.h.in to produce config.h.
27425
27426# Create a delimiter string that does not exist in confdefs.h, to ease
27427# handling of long lines.
27428ac_delim='%!_!# '
27429for ac_last_try in false false :; do
27430 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27431 if test -z "$ac_tt"; then
27432 break
27433 elif $ac_last_try; then
27434 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27435 else
27436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27437 fi
27438done
27439
27440# For the awk script, D is an array of macro values keyed by name,
27441# likewise P contains macro parameters if any. Preserve backslash
27442# newline sequences.
27443
27444ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27445sed -n '
27446s/.\{148\}/&'"$ac_delim"'/g
27447t rset
27448:rset
27449s/^[ ]*#[ ]*define[ ][ ]*/ /
27450t def
27451d
27452:def
27453s/\\$//
27454t bsnl
27455s/["\\]/\\&/g
27456s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27457D["\1"]=" \3"/p
27458s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27459d
27460:bsnl
27461s/["\\]/\\&/g
27462s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27463D["\1"]=" \3\\\\\\n"\\/p
27464t cont
27465s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27466t cont
27467d
27468:cont
27469n
27470s/.\{148\}/&'"$ac_delim"'/g
27471t clear
27472:clear
27473s/\\$//
27474t bsnlc
27475s/["\\]/\\&/g; s/^/"/; s/$/"/p
27476d
27477:bsnlc
27478s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27479b cont
27480' <confdefs.h | sed '
27481s/'"$ac_delim"'/"\\\
27482"/g' >>$CONFIG_STATUS || ac_write_fail=1
27483
27484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27485 for (key in D) D_is_set[key] = 1
27486 FS = "\a"
27487}
27488/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27489 line = \$ 0
27490 split(line, arg, " ")
27491 if (arg[1] == "#") {
27492 defundef = arg[2]
27493 mac1 = arg[3]
27494 } else {
27495 defundef = substr(arg[1], 2)
27496 mac1 = arg[2]
27497 }
27498 split(mac1, mac2, "(") #)
27499 macro = mac2[1]
27500 prefix = substr(line, 1, index(line, defundef) - 1)
27501 if (D_is_set[macro]) {
27502 # Preserve the white space surrounding the "#".
27503 print prefix "define", macro P[macro] D[macro]
27504 next
27505 } else {
27506 # Replace #undef with comments. This is necessary, for example,
27507 # in the case of _POSIX_SOURCE, which is predefined and required
27508 # on some systems where configure will not decide to define it.
27509 if (defundef == "undef") {
27510 print "/*", prefix defundef, macro, "*/"
27511 next
27512 }
27513 }
27514}
27515{ print }
27516_ACAWK
27517_ACEOF
27518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27519 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27520fi # test -n "$CONFIG_HEADERS"
27521
27522
27523eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27524shift
27525for ac_tag
27526do
27527 case $ac_tag in
27528 :[FHLC]) ac_mode=$ac_tag; continue;;
27529 esac
27530 case $ac_mode$ac_tag in
27531 :[FHL]*:*);;
27532 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27533 :[FH]-) ac_tag=-:-;;
27534 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27535 esac
27536 ac_save_IFS=$IFS
27537 IFS=:
27538 set x $ac_tag
27539 IFS=$ac_save_IFS
27540 shift
27541 ac_file=$1
27542 shift
27543
27544 case $ac_mode in
27545 :L) ac_source=$1;;
27546 :[FH])
27547 ac_file_inputs=
27548 for ac_f
27549 do
27550 case $ac_f in
27551 -) ac_f="$ac_tmp/stdin";;
27552 *) # Look for the file first in the build tree, then in the source tree
27553 # (if the path is not absolute). The absolute path cannot be DOS-style,
27554 # because $ac_f cannot contain `:'.
27555 test -f "$ac_f" ||
27556 case $ac_f in
27557 [\\/$]*) false;;
27558 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27559 esac ||
27560 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27561 esac
27562 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27563 as_fn_append ac_file_inputs " '$ac_f'"
27564 done
27565
27566 # Let's still pretend it is `configure' which instantiates (i.e., don't
27567 # use $as_me), people would be surprised to read:
27568 # /* config.h. Generated by config.status. */
27569 configure_input='Generated from '`
27570 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27571 `' by configure.'
27572 if test x"$ac_file" != x-; then
27573 configure_input="$ac_file. $configure_input"
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27575$as_echo "$as_me: creating $ac_file" >&6;}
27576 fi
27577 # Neutralize special characters interpreted by sed in replacement strings.
27578 case $configure_input in #(
27579 *\&* | *\|* | *\\* )
27580 ac_sed_conf_input=`$as_echo "$configure_input" |
27581 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27582 *) ac_sed_conf_input=$configure_input;;
27583 esac
27584
27585 case $ac_tag in
27586 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27588 esac
27589 ;;
27590 esac
27591
27592 ac_dir=`$as_dirname -- "$ac_file" ||
27593$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27594 X"$ac_file" : 'X\(//\)[^/]' \| \
27595 X"$ac_file" : 'X\(//\)$' \| \
27596 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27597$as_echo X"$ac_file" |
27598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27599 s//\1/
27600 q
27601 }
27602 /^X\(\/\/\)[^/].*/{
27603 s//\1/
27604 q
27605 }
27606 /^X\(\/\/\)$/{
27607 s//\1/
27608 q
27609 }
27610 /^X\(\/\).*/{
27611 s//\1/
27612 q
27613 }
27614 s/.*/./; q'`
27615 as_dir="$ac_dir"; as_fn_mkdir_p
27616 ac_builddir=.
27617
27618case "$ac_dir" in
27619.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27620*)
27621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27622 # A ".." for each directory in $ac_dir_suffix.
27623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27624 case $ac_top_builddir_sub in
27625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27627 esac ;;
27628esac
27629ac_abs_top_builddir=$ac_pwd
27630ac_abs_builddir=$ac_pwd$ac_dir_suffix
27631# for backward compatibility:
27632ac_top_builddir=$ac_top_build_prefix
27633
27634case $srcdir in
27635 .) # We are building in place.
27636 ac_srcdir=.
27637 ac_top_srcdir=$ac_top_builddir_sub
27638 ac_abs_top_srcdir=$ac_pwd ;;
27639 [\\/]* | ?:[\\/]* ) # Absolute name.
27640 ac_srcdir=$srcdir$ac_dir_suffix;
27641 ac_top_srcdir=$srcdir
27642 ac_abs_top_srcdir=$srcdir ;;
27643 *) # Relative name.
27644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27645 ac_top_srcdir=$ac_top_build_prefix$srcdir
27646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27647esac
27648ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27649
27650
27651 case $ac_mode in
27652 :F)
27653 #
27654 # CONFIG_FILE
27655 #
27656
27657 case $INSTALL in
27658 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27659 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27660 esac
27661 ac_MKDIR_P=$MKDIR_P
27662 case $MKDIR_P in
27663 [\\/$]* | ?:[\\/]* ) ;;
27664 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27665 esac
27666_ACEOF
27667
27668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27669# If the template does not know about datarootdir, expand it.
27670# FIXME: This hack should be removed a few years after 2.60.
27671ac_datarootdir_hack=; ac_datarootdir_seen=
27672ac_sed_dataroot='
27673/datarootdir/ {
27674 p
27675 q
27676}
27677/@datadir@/p
27678/@docdir@/p
27679/@infodir@/p
27680/@localedir@/p
27681/@mandir@/p'
27682case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27683*datarootdir*) ac_datarootdir_seen=yes;;
27684*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27686$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27687_ACEOF
27688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27689 ac_datarootdir_hack='
27690 s&@datadir@&$datadir&g
27691 s&@docdir@&$docdir&g
27692 s&@infodir@&$infodir&g
27693 s&@localedir@&$localedir&g
27694 s&@mandir@&$mandir&g
27695 s&\\\${datarootdir}&$datarootdir&g' ;;
27696esac
27697_ACEOF
27698
27699# Neutralize VPATH when `$srcdir' = `.'.
27700# Shell code in configure.ac might set extrasub.
27701# FIXME: do we really want to maintain this feature?
27702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27703ac_sed_extra="$ac_vpsub
27704$extrasub
27705_ACEOF
27706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27707:t
27708/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27709s|@configure_input@|$ac_sed_conf_input|;t t
27710s&@top_builddir@&$ac_top_builddir_sub&;t t
27711s&@top_build_prefix@&$ac_top_build_prefix&;t t
27712s&@srcdir@&$ac_srcdir&;t t
27713s&@abs_srcdir@&$ac_abs_srcdir&;t t
27714s&@top_srcdir@&$ac_top_srcdir&;t t
27715s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27716s&@builddir@&$ac_builddir&;t t
27717s&@abs_builddir@&$ac_abs_builddir&;t t
27718s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27719s&@INSTALL@&$ac_INSTALL&;t t
27720s&@MKDIR_P@&$ac_MKDIR_P&;t t
27721$ac_datarootdir_hack
27722"
27723eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27724 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27725
27726test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27727 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27728 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27729 "$ac_tmp/out"`; test -z "$ac_out"; } &&
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27731which seems to be undefined. Please make sure it is defined" >&5
27732$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27733which seems to be undefined. Please make sure it is defined" >&2;}
27734
27735 rm -f "$ac_tmp/stdin"
27736 case $ac_file in
27737 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27738 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27739 esac \
27740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27741 ;;
27742 :H)
27743 #
27744 # CONFIG_HEADER
27745 #
27746 if test x"$ac_file" != x-; then
27747 {
27748 $as_echo "/* $configure_input */" \
27749 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27750 } >"$ac_tmp/config.h" \
27751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27752 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27753 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27754$as_echo "$as_me: $ac_file is unchanged" >&6;}
27755 else
27756 rm -f "$ac_file"
27757 mv "$ac_tmp/config.h" "$ac_file" \
27758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27759 fi
27760 else
27761 $as_echo "/* $configure_input */" \
27762 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27763 || as_fn_error $? "could not create -" "$LINENO" 5
27764 fi
27765# Compute "$ac_file"'s index in $config_headers.
27766_am_arg="$ac_file"
27767_am_stamp_count=1
27768for _am_header in $config_headers :; do
27769 case $_am_header in
27770 $_am_arg | $_am_arg:* )
27771 break ;;
27772 * )
27773 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27774 esac
27775done
27776echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27777$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27778 X"$_am_arg" : 'X\(//\)[^/]' \| \
27779 X"$_am_arg" : 'X\(//\)$' \| \
27780 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27781$as_echo X"$_am_arg" |
27782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27783 s//\1/
27784 q
27785 }
27786 /^X\(\/\/\)[^/].*/{
27787 s//\1/
27788 q
27789 }
27790 /^X\(\/\/\)$/{
27791 s//\1/
27792 q
27793 }
27794 /^X\(\/\).*/{
27795 s//\1/
27796 q
27797 }
27798 s/.*/./; q'`/stamp-h$_am_stamp_count
27799 ;;
27800
27801 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27802$as_echo "$as_me: executing $ac_file commands" >&6;}
27803 ;;
27804 esac
27805
27806
27807 case $ac_file$ac_mode in
27808 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27809 # Older Autoconf quotes --file arguments for eval, but not when files
27810 # are listed without --file. Let's play safe and only enable the eval
27811 # if we detect the quoting.
27812 case $CONFIG_FILES in
27813 *\'*) eval set x "$CONFIG_FILES" ;;
27814 *) set x $CONFIG_FILES ;;
27815 esac
27816 shift
27817 for mf
27818 do
27819 # Strip MF so we end up with the name of the file.
27820 mf=`echo "$mf" | sed -e 's/:.*$//'`
27821 # Check whether this is an Automake generated Makefile or not.
27822 # We used to match only the files named 'Makefile.in', but
27823 # some people rename them; so instead we look at the file content.
27824 # Grep'ing the first line is not enough: some people post-process
27825 # each Makefile.in and add a new line on top of each file to say so.
27826 # Grep'ing the whole file is not good either: AIX grep has a line
27827 # limit of 2048, but all sed's we know have understand at least 4000.
27828 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27829 dirpart=`$as_dirname -- "$mf" ||
27830$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27831 X"$mf" : 'X\(//\)[^/]' \| \
27832 X"$mf" : 'X\(//\)$' \| \
27833 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27834$as_echo X"$mf" |
27835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27836 s//\1/
27837 q
27838 }
27839 /^X\(\/\/\)[^/].*/{
27840 s//\1/
27841 q
27842 }
27843 /^X\(\/\/\)$/{
27844 s//\1/
27845 q
27846 }
27847 /^X\(\/\).*/{
27848 s//\1/
27849 q
27850 }
27851 s/.*/./; q'`
27852 else
27853 continue
27854 fi
27855 # Extract the definition of DEPDIR, am__include, and am__quote
27856 # from the Makefile without running 'make'.
27857 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27858 test -z "$DEPDIR" && continue
27859 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27860 test -z "$am__include" && continue
27861 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27862 # Find all dependency output files, they are included files with
27863 # $(DEPDIR) in their names. We invoke sed twice because it is the
27864 # simplest approach to changing $(DEPDIR) to its actual value in the
27865 # expansion.
27866 for file in `sed -n "
27867 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27868 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
27869 # Make sure the directory exists.
27870 test -f "$dirpart/$file" && continue
27871 fdir=`$as_dirname -- "$file" ||
27872$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27873 X"$file" : 'X\(//\)[^/]' \| \
27874 X"$file" : 'X\(//\)$' \| \
27875 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27876$as_echo X"$file" |
27877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27878 s//\1/
27879 q
27880 }
27881 /^X\(\/\/\)[^/].*/{
27882 s//\1/
27883 q
27884 }
27885 /^X\(\/\/\)$/{
27886 s//\1/
27887 q
27888 }
27889 /^X\(\/\).*/{
27890 s//\1/
27891 q
27892 }
27893 s/.*/./; q'`
27894 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27895 # echo "creating $dirpart/$file"
27896 echo '# dummy' > "$dirpart/$file"
27897 done
27898 done
27899}
27900 ;;
27901 "po-directories":C)
27902 for ac_file in $CONFIG_FILES; do
27903 # Support "outfile[:infile[:infile...]]"
27904 case "$ac_file" in
27905 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
27906 esac
27907 # PO directories have a Makefile.in generated from Makefile.in.in.
27908 case "$ac_file" in */Makefile.in)
27909 # Adjust a relative srcdir.
27910 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
27911 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
27912 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
27913 # In autoconf-2.13 it is called $ac_given_srcdir.
27914 # In autoconf-2.50 it is called $srcdir.
27915 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
27916 case "$ac_given_srcdir" in
27917 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
27918 /*) top_srcdir="$ac_given_srcdir" ;;
27919 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
27920 esac
27921 # Treat a directory as a PO directory if and only if it has a
27922 # POTFILES.in file. This allows packages to have multiple PO
27923 # directories under different names or in different locations.
27924 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
27925 rm -f "$ac_dir/POTFILES"
27926 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
27927 gt_tab=`printf '\t'`
27928 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
27929 POMAKEFILEDEPS="POTFILES.in"
27930 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
27931 # on $ac_dir but don't depend on user-specified configuration
27932 # parameters.
27933 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
27934 # The LINGUAS file contains the set of available languages.
27935 if test -n "$OBSOLETE_ALL_LINGUAS"; then
27936 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
27937 fi
27938 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
27939 # Hide the ALL_LINGUAS assignment from automake < 1.5.
27940 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
27941 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
27942 else
27943 # The set of available languages was given in configure.in.
27944 # Hide the ALL_LINGUAS assignment from automake < 1.5.
27945 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
27946 fi
27947 # Compute POFILES
27948 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
27949 # Compute UPDATEPOFILES
27950 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
27951 # Compute DUMMYPOFILES
27952 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
27953 # Compute GMOFILES
27954 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
27955 case "$ac_given_srcdir" in
27956 .) srcdirpre= ;;
27957 *) srcdirpre='$(srcdir)/' ;;
27958 esac
27959 POFILES=
27960 UPDATEPOFILES=
27961 DUMMYPOFILES=
27962 GMOFILES=
27963 for lang in $ALL_LINGUAS; do
27964 POFILES="$POFILES $srcdirpre$lang.po"
27965 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
27966 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
27967 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
27968 done
27969 # CATALOGS depends on both $ac_dir and the user's LINGUAS
27970 # environment variable.
27971 INST_LINGUAS=
27972 if test -n "$ALL_LINGUAS"; then
27973 for presentlang in $ALL_LINGUAS; do
27974 useit=no
27975 if test "%UNSET%" != "$LINGUAS"; then
27976 desiredlanguages="$LINGUAS"
27977 else
27978 desiredlanguages="$ALL_LINGUAS"
27979 fi
27980 for desiredlang in $desiredlanguages; do
27981 # Use the presentlang catalog if desiredlang is
27982 # a. equal to presentlang, or
27983 # b. a variant of presentlang (because in this case,
27984 # presentlang can be used as a fallback for messages
27985 # which are not translated in the desiredlang catalog).
27986 case "$desiredlang" in
27987 "$presentlang"*) useit=yes;;
27988 esac
27989 done
27990 if test $useit = yes; then
27991 INST_LINGUAS="$INST_LINGUAS $presentlang"
27992 fi
27993 done
27994 fi
27995 CATALOGS=
27996 if test -n "$INST_LINGUAS"; then
27997 for lang in $INST_LINGUAS; do
27998 CATALOGS="$CATALOGS $lang.gmo"
27999 done
28000 fi
28001 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28002 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
28003 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28004 if test -f "$f"; then
28005 case "$f" in
28006 *.orig | *.bak | *~) ;;
28007 *) cat "$f" >> "$ac_dir/Makefile" ;;
28008 esac
28009 fi
28010 done
28011 fi
28012 ;;
28013 esac
28014 done ;;
28015 "libtool":C)
28016
28017 # See if we are running on zsh, and set the options that allow our
28018 # commands through without removal of \ escapes.
28019 if test -n "${ZSH_VERSION+set}"; then
28020 setopt NO_GLOB_SUBST
28021 fi
28022
28023 cfgfile=${ofile}T
28024 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28025 $RM "$cfgfile"
28026
28027 cat <<_LT_EOF >> "$cfgfile"
28028#! $SHELL
28029# Generated automatically by $as_me ($PACKAGE) $VERSION
28030# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28031
28032# Provide generalized library-building support services.
28033# Written by Gordon Matzigkeit, 1996
28034
28035# Copyright (C) 2014 Free Software Foundation, Inc.
28036# This is free software; see the source for copying conditions. There is NO
28037# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28038
28039# GNU Libtool is free software; you can redistribute it and/or modify
28040# it under the terms of the GNU General Public License as published by
28041# the Free Software Foundation; either version 2 of of the License, or
28042# (at your option) any later version.
28043#
28044# As a special exception to the GNU General Public License, if you
28045# distribute this file as part of a program or library that is built
28046# using GNU Libtool, you may include this file under the same
28047# distribution terms that you use for the rest of that program.
28048#
28049# GNU Libtool is distributed in the hope that it will be useful, but
28050# WITHOUT ANY WARRANTY; without even the implied warranty of
28051# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28052# GNU General Public License for more details.
28053#
28054# You should have received a copy of the GNU General Public License
28055# along with this program. If not, see <http://www.gnu.org/licenses/>.
28056
28057
28058# The names of the tagged configurations supported by this script.
28059available_tags='CXX '
28060
28061# Configured defaults for sys_lib_dlsearch_path munging.
28062: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28063
28064# ### BEGIN LIBTOOL CONFIG
28065
28066# Which release of libtool.m4 was used?
28067macro_version=$macro_version
28068macro_revision=$macro_revision
28069
28070# Whether or not to build shared libraries.
28071build_libtool_libs=$enable_shared
28072
28073# Whether or not to build static libraries.
28074build_old_libs=$enable_static
28075
28076# What type of objects to build.
28077pic_mode=$pic_mode
28078
28079# Whether or not to optimize for fast installation.
28080fast_install=$enable_fast_install
28081
28082# Shared archive member basename,for filename based shared library versioning on AIX.
28083shared_archive_member_spec=$shared_archive_member_spec
28084
28085# Shell to use when invoking shell scripts.
28086SHELL=$lt_SHELL
28087
28088# An echo program that protects backslashes.
28089ECHO=$lt_ECHO
28090
28091# The PATH separator for the build system.
28092PATH_SEPARATOR=$lt_PATH_SEPARATOR
28093
28094# The host system.
28095host_alias=$host_alias
28096host=$host
28097host_os=$host_os
28098
28099# The build system.
28100build_alias=$build_alias
28101build=$build
28102build_os=$build_os
28103
28104# A sed program that does not truncate output.
28105SED=$lt_SED
28106
28107# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28108Xsed="\$SED -e 1s/^X//"
28109
28110# A grep program that handles long lines.
28111GREP=$lt_GREP
28112
28113# An ERE matcher.
28114EGREP=$lt_EGREP
28115
28116# A literal string matcher.
28117FGREP=$lt_FGREP
28118
28119# A BSD- or MS-compatible name lister.
28120NM=$lt_NM
28121
28122# Whether we need soft or hard links.
28123LN_S=$lt_LN_S
28124
28125# What is the maximum length of a command?
28126max_cmd_len=$max_cmd_len
28127
28128# Object file suffix (normally "o").
28129objext=$ac_objext
28130
28131# Executable file suffix (normally "").
28132exeext=$exeext
28133
28134# whether the shell understands "unset".
28135lt_unset=$lt_unset
28136
28137# turn spaces into newlines.
28138SP2NL=$lt_lt_SP2NL
28139
28140# turn newlines into spaces.
28141NL2SP=$lt_lt_NL2SP
28142
28143# convert \$build file names to \$host format.
28144to_host_file_cmd=$lt_cv_to_host_file_cmd
28145
28146# convert \$build files to toolchain format.
28147to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28148
28149# An object symbol dumper.
28150OBJDUMP=$lt_OBJDUMP
28151
28152# Method to check whether dependent libraries are shared objects.
28153deplibs_check_method=$lt_deplibs_check_method
28154
28155# Command to use when deplibs_check_method = "file_magic".
28156file_magic_cmd=$lt_file_magic_cmd
28157
28158# How to find potential files when deplibs_check_method = "file_magic".
28159file_magic_glob=$lt_file_magic_glob
28160
28161# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28162want_nocaseglob=$lt_want_nocaseglob
28163
28164# DLL creation program.
28165DLLTOOL=$lt_DLLTOOL
28166
28167# Command to associate shared and link libraries.
28168sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28169
28170# The archiver.
28171AR=$lt_AR
28172
28173# Flags to create an archive.
28174AR_FLAGS=$lt_AR_FLAGS
28175
28176# How to feed a file listing to the archiver.
28177archiver_list_spec=$lt_archiver_list_spec
28178
28179# A symbol stripping program.
28180STRIP=$lt_STRIP
28181
28182# Commands used to install an old-style archive.
28183RANLIB=$lt_RANLIB
28184old_postinstall_cmds=$lt_old_postinstall_cmds
28185old_postuninstall_cmds=$lt_old_postuninstall_cmds
28186
28187# Whether to use a lock for old archive extraction.
28188lock_old_archive_extraction=$lock_old_archive_extraction
28189
28190# A C compiler.
28191LTCC=$lt_CC
28192
28193# LTCC compiler flags.
28194LTCFLAGS=$lt_CFLAGS
28195
28196# Take the output of nm and produce a listing of raw symbols and C names.
28197global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28198
28199# Transform the output of nm in a proper C declaration.
28200global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28201
28202# Transform the output of nm into a list of symbols to manually relocate.
28203global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28204
28205# Transform the output of nm in a C name address pair.
28206global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28207
28208# Transform the output of nm in a C name address pair when lib prefix is needed.
28209global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28210
28211# The name lister interface.
28212nm_interface=$lt_lt_cv_nm_interface
28213
28214# Specify filename containing input files for \$NM.
28215nm_file_list_spec=$lt_nm_file_list_spec
28216
28217# The root where to search for dependent libraries,and where our libraries should be installed.
28218lt_sysroot=$lt_sysroot
28219
28220# Command to truncate a binary pipe.
28221lt_truncate_bin=$lt_lt_cv_truncate_bin
28222
28223# The name of the directory that contains temporary libtool files.
28224objdir=$objdir
28225
28226# Used to examine libraries when file_magic_cmd begins with "file".
28227MAGIC_CMD=$MAGIC_CMD
28228
28229# Must we lock files when doing compilation?
28230need_locks=$lt_need_locks
28231
28232# Manifest tool.
28233MANIFEST_TOOL=$lt_MANIFEST_TOOL
28234
28235# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28236DSYMUTIL=$lt_DSYMUTIL
28237
28238# Tool to change global to local symbols on Mac OS X.
28239NMEDIT=$lt_NMEDIT
28240
28241# Tool to manipulate fat objects and archives on Mac OS X.
28242LIPO=$lt_LIPO
28243
28244# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28245OTOOL=$lt_OTOOL
28246
28247# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28248OTOOL64=$lt_OTOOL64
28249
28250# Old archive suffix (normally "a").
28251libext=$libext
28252
28253# Shared library suffix (normally ".so").
28254shrext_cmds=$lt_shrext_cmds
28255
28256# The commands to extract the exported symbol list from a shared archive.
28257extract_expsyms_cmds=$lt_extract_expsyms_cmds
28258
28259# Variables whose values should be saved in libtool wrapper scripts and
28260# restored at link time.
28261variables_saved_for_relink=$lt_variables_saved_for_relink
28262
28263# Do we need the "lib" prefix for modules?
28264need_lib_prefix=$need_lib_prefix
28265
28266# Do we need a version for libraries?
28267need_version=$need_version
28268
28269# Library versioning type.
28270version_type=$version_type
28271
28272# Shared library runtime path variable.
28273runpath_var=$runpath_var
28274
28275# Shared library path variable.
28276shlibpath_var=$shlibpath_var
28277
28278# Is shlibpath searched before the hard-coded library search path?
28279shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28280
28281# Format of library name prefix.
28282libname_spec=$lt_libname_spec
28283
28284# List of archive names. First name is the real one, the rest are links.
28285# The last name is the one that the linker finds with -lNAME
28286library_names_spec=$lt_library_names_spec
28287
28288# The coded name of the library, if different from the real name.
28289soname_spec=$lt_soname_spec
28290
28291# Permission mode override for installation of shared libraries.
28292install_override_mode=$lt_install_override_mode
28293
28294# Command to use after installation of a shared archive.
28295postinstall_cmds=$lt_postinstall_cmds
28296
28297# Command to use after uninstallation of a shared archive.
28298postuninstall_cmds=$lt_postuninstall_cmds
28299
28300# Commands used to finish a libtool library installation in a directory.
28301finish_cmds=$lt_finish_cmds
28302
28303# As "finish_cmds", except a single script fragment to be evaled but
28304# not shown.
28305finish_eval=$lt_finish_eval
28306
28307# Whether we should hardcode library paths into libraries.
28308hardcode_into_libs=$hardcode_into_libs
28309
28310# Compile-time system search path for libraries.
28311sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28312
28313# Detected run-time system search path for libraries.
28314sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28315
28316# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28317configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28318
28319# Whether dlopen is supported.
28320dlopen_support=$enable_dlopen
28321
28322# Whether dlopen of programs is supported.
28323dlopen_self=$enable_dlopen_self
28324
28325# Whether dlopen of statically linked programs is supported.
28326dlopen_self_static=$enable_dlopen_self_static
28327
28328# Commands to strip libraries.
28329old_striplib=$lt_old_striplib
28330striplib=$lt_striplib
28331
28332
28333# The linker used to build libraries.
28334LD=$lt_LD
28335
28336# How to create reloadable object files.
28337reload_flag=$lt_reload_flag
28338reload_cmds=$lt_reload_cmds
28339
28340# Commands used to build an old-style archive.
28341old_archive_cmds=$lt_old_archive_cmds
28342
28343# A language specific compiler.
28344CC=$lt_compiler
28345
28346# Is the compiler the GNU compiler?
28347with_gcc=$GCC
28348
28349# Compiler flag to turn off builtin functions.
28350no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28351
28352# Additional compiler flags for building library objects.
28353pic_flag=$lt_lt_prog_compiler_pic
28354
28355# How to pass a linker flag through the compiler.
28356wl=$lt_lt_prog_compiler_wl
28357
28358# Compiler flag to prevent dynamic linking.
28359link_static_flag=$lt_lt_prog_compiler_static
28360
28361# Does compiler simultaneously support -c and -o options?
28362compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28363
28364# Whether or not to add -lc for building shared libraries.
28365build_libtool_need_lc=$archive_cmds_need_lc
28366
28367# Whether or not to disallow shared libs when runtime libs are static.
28368allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28369
28370# Compiler flag to allow reflexive dlopens.
28371export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28372
28373# Compiler flag to generate shared objects directly from archives.
28374whole_archive_flag_spec=$lt_whole_archive_flag_spec
28375
28376# Whether the compiler copes with passing no objects directly.
28377compiler_needs_object=$lt_compiler_needs_object
28378
28379# Create an old-style archive from a shared archive.
28380old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28381
28382# Create a temporary old-style archive to link instead of a shared archive.
28383old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28384
28385# Commands used to build a shared archive.
28386archive_cmds=$lt_archive_cmds
28387archive_expsym_cmds=$lt_archive_expsym_cmds
28388
28389# Commands used to build a loadable module if different from building
28390# a shared archive.
28391module_cmds=$lt_module_cmds
28392module_expsym_cmds=$lt_module_expsym_cmds
28393
28394# Whether we are building with GNU ld or not.
28395with_gnu_ld=$lt_with_gnu_ld
28396
28397# Flag that allows shared libraries with undefined symbols to be built.
28398allow_undefined_flag=$lt_allow_undefined_flag
28399
28400# Flag that enforces no undefined symbols.
28401no_undefined_flag=$lt_no_undefined_flag
28402
28403# Flag to hardcode \$libdir into a binary during linking.
28404# This must work even if \$libdir does not exist
28405hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28406
28407# Whether we need a single "-rpath" flag with a separated argument.
28408hardcode_libdir_separator=$lt_hardcode_libdir_separator
28409
28410# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28411# DIR into the resulting binary.
28412hardcode_direct=$hardcode_direct
28413
28414# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28415# DIR into the resulting binary and the resulting library dependency is
28416# "absolute",i.e impossible to change by setting \$shlibpath_var if the
28417# library is relocated.
28418hardcode_direct_absolute=$hardcode_direct_absolute
28419
28420# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28421# into the resulting binary.
28422hardcode_minus_L=$hardcode_minus_L
28423
28424# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28425# into the resulting binary.
28426hardcode_shlibpath_var=$hardcode_shlibpath_var
28427
28428# Set to "yes" if building a shared library automatically hardcodes DIR
28429# into the library and all subsequent libraries and executables linked
28430# against it.
28431hardcode_automatic=$hardcode_automatic
28432
28433# Set to yes if linker adds runtime paths of dependent libraries
28434# to runtime path list.
28435inherit_rpath=$inherit_rpath
28436
28437# Whether libtool must link a program against all its dependency libraries.
28438link_all_deplibs=$link_all_deplibs
28439
28440# Set to "yes" if exported symbols are required.
28441always_export_symbols=$always_export_symbols
28442
28443# The commands to list exported symbols.
28444export_symbols_cmds=$lt_export_symbols_cmds
28445
28446# Symbols that should not be listed in the preloaded symbols.
28447exclude_expsyms=$lt_exclude_expsyms
28448
28449# Symbols that must always be exported.
28450include_expsyms=$lt_include_expsyms
28451
28452# Commands necessary for linking programs (against libraries) with templates.
28453prelink_cmds=$lt_prelink_cmds
28454
28455# Commands necessary for finishing linking programs.
28456postlink_cmds=$lt_postlink_cmds
28457
28458# Specify filename containing input files.
28459file_list_spec=$lt_file_list_spec
28460
28461# How to hardcode a shared library path into an executable.
28462hardcode_action=$hardcode_action
28463
28464# The directories searched by this compiler when creating a shared library.
28465compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28466
28467# Dependencies to place before and after the objects being linked to
28468# create a shared library.
28469predep_objects=$lt_predep_objects
28470postdep_objects=$lt_postdep_objects
28471predeps=$lt_predeps
28472postdeps=$lt_postdeps
28473
28474# The library search path used internally by the compiler when linking
28475# a shared library.
28476compiler_lib_search_path=$lt_compiler_lib_search_path
28477
28478# ### END LIBTOOL CONFIG
28479
28480_LT_EOF
28481
28482 cat <<'_LT_EOF' >> "$cfgfile"
28483
28484# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28485
28486# func_munge_path_list VARIABLE PATH
28487# -----------------------------------
28488# VARIABLE is name of variable containing _space_ separated list of
28489# directories to be munged by the contents of PATH, which is string
28490# having a format:
28491# "DIR[:DIR]:"
28492# string "DIR[ DIR]" will be prepended to VARIABLE
28493# ":DIR[:DIR]"
28494# string "DIR[ DIR]" will be appended to VARIABLE
28495# "DIRP[:DIRP]::[DIRA:]DIRA"
28496# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28497# "DIRA[ DIRA]" will be appended to VARIABLE
28498# "DIR[:DIR]"
28499# VARIABLE will be replaced by "DIR[ DIR]"
28500func_munge_path_list ()
28501{
28502 case x$2 in
28503 x)
28504 ;;
28505 *:)
28506 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28507 ;;
28508 x:*)
28509 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28510 ;;
28511 *::*)
28512 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28513 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28514 ;;
28515 *)
28516 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28517 ;;
28518 esac
28519}
28520
28521
28522# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
28523func_cc_basename ()
28524{
28525 for cc_temp in $*""; do
28526 case $cc_temp in
28527 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28528 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28529 \-*) ;;
28530 *) break;;
28531 esac
28532 done
28533 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28534}
28535
28536
28537# ### END FUNCTIONS SHARED WITH CONFIGURE
28538
28539_LT_EOF
28540
28541 case $host_os in
28542 aix3*)
28543 cat <<\_LT_EOF >> "$cfgfile"
28544# AIX sometimes has problems with the GCC collect2 program. For some
28545# reason, if we set the COLLECT_NAMES environment variable, the problems
28546# vanish in a puff of smoke.
28547if test set != "${COLLECT_NAMES+set}"; then
28548 COLLECT_NAMES=
28549 export COLLECT_NAMES
28550fi
28551_LT_EOF
28552 ;;
28553 esac
28554
28555
28556ltmain=$ac_aux_dir/ltmain.sh
28557
28558
28559 # We use sed instead of cat because bash on DJGPP gets confused if
28560 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28561 # text mode, it properly converts lines to CR/LF. This bash problem
28562 # is reportedly fixed, but why not run on old versions too?
28563 sed '$q' "$ltmain" >> "$cfgfile" \
28564 || (rm -f "$cfgfile"; exit 1)
28565
28566 mv -f "$cfgfile" "$ofile" ||
28567 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28568 chmod +x "$ofile"
28569
28570
28571 cat <<_LT_EOF >> "$ofile"
28572
28573# ### BEGIN LIBTOOL TAG CONFIG: CXX
28574
28575# The linker used to build libraries.
28576LD=$lt_LD_CXX
28577
28578# How to create reloadable object files.
28579reload_flag=$lt_reload_flag_CXX
28580reload_cmds=$lt_reload_cmds_CXX
28581
28582# Commands used to build an old-style archive.
28583old_archive_cmds=$lt_old_archive_cmds_CXX
28584
28585# A language specific compiler.
28586CC=$lt_compiler_CXX
28587
28588# Is the compiler the GNU compiler?
28589with_gcc=$GCC_CXX
28590
28591# Compiler flag to turn off builtin functions.
28592no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28593
28594# Additional compiler flags for building library objects.
28595pic_flag=$lt_lt_prog_compiler_pic_CXX
28596
28597# How to pass a linker flag through the compiler.
28598wl=$lt_lt_prog_compiler_wl_CXX
28599
28600# Compiler flag to prevent dynamic linking.
28601link_static_flag=$lt_lt_prog_compiler_static_CXX
28602
28603# Does compiler simultaneously support -c and -o options?
28604compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28605
28606# Whether or not to add -lc for building shared libraries.
28607build_libtool_need_lc=$archive_cmds_need_lc_CXX
28608
28609# Whether or not to disallow shared libs when runtime libs are static.
28610allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28611
28612# Compiler flag to allow reflexive dlopens.
28613export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28614
28615# Compiler flag to generate shared objects directly from archives.
28616whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28617
28618# Whether the compiler copes with passing no objects directly.
28619compiler_needs_object=$lt_compiler_needs_object_CXX
28620
28621# Create an old-style archive from a shared archive.
28622old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28623
28624# Create a temporary old-style archive to link instead of a shared archive.
28625old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28626
28627# Commands used to build a shared archive.
28628archive_cmds=$lt_archive_cmds_CXX
28629archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28630
28631# Commands used to build a loadable module if different from building
28632# a shared archive.
28633module_cmds=$lt_module_cmds_CXX
28634module_expsym_cmds=$lt_module_expsym_cmds_CXX
28635
28636# Whether we are building with GNU ld or not.
28637with_gnu_ld=$lt_with_gnu_ld_CXX
28638
28639# Flag that allows shared libraries with undefined symbols to be built.
28640allow_undefined_flag=$lt_allow_undefined_flag_CXX
28641
28642# Flag that enforces no undefined symbols.
28643no_undefined_flag=$lt_no_undefined_flag_CXX
28644
28645# Flag to hardcode \$libdir into a binary during linking.
28646# This must work even if \$libdir does not exist
28647hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28648
28649# Whether we need a single "-rpath" flag with a separated argument.
28650hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28651
28652# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28653# DIR into the resulting binary.
28654hardcode_direct=$hardcode_direct_CXX
28655
28656# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28657# DIR into the resulting binary and the resulting library dependency is
28658# "absolute",i.e impossible to change by setting \$shlibpath_var if the
28659# library is relocated.
28660hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28661
28662# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28663# into the resulting binary.
28664hardcode_minus_L=$hardcode_minus_L_CXX
28665
28666# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28667# into the resulting binary.
28668hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28669
28670# Set to "yes" if building a shared library automatically hardcodes DIR
28671# into the library and all subsequent libraries and executables linked
28672# against it.
28673hardcode_automatic=$hardcode_automatic_CXX
28674
28675# Set to yes if linker adds runtime paths of dependent libraries
28676# to runtime path list.
28677inherit_rpath=$inherit_rpath_CXX
28678
28679# Whether libtool must link a program against all its dependency libraries.
28680link_all_deplibs=$link_all_deplibs_CXX
28681
28682# Set to "yes" if exported symbols are required.
28683always_export_symbols=$always_export_symbols_CXX
28684
28685# The commands to list exported symbols.
28686export_symbols_cmds=$lt_export_symbols_cmds_CXX
28687
28688# Symbols that should not be listed in the preloaded symbols.
28689exclude_expsyms=$lt_exclude_expsyms_CXX
28690
28691# Symbols that must always be exported.
28692include_expsyms=$lt_include_expsyms_CXX
28693
28694# Commands necessary for linking programs (against libraries) with templates.
28695prelink_cmds=$lt_prelink_cmds_CXX
28696
28697# Commands necessary for finishing linking programs.
28698postlink_cmds=$lt_postlink_cmds_CXX
28699
28700# Specify filename containing input files.
28701file_list_spec=$lt_file_list_spec_CXX
28702
28703# How to hardcode a shared library path into an executable.
28704hardcode_action=$hardcode_action_CXX
28705
28706# The directories searched by this compiler when creating a shared library.
28707compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28708
28709# Dependencies to place before and after the objects being linked to
28710# create a shared library.
28711predep_objects=$lt_predep_objects_CXX
28712postdep_objects=$lt_postdep_objects_CXX
28713predeps=$lt_predeps_CXX
28714postdeps=$lt_postdeps_CXX
28715
28716# The library search path used internally by the compiler when linking
28717# a shared library.
28718compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28719
28720# ### END LIBTOOL TAG CONFIG: CXX
28721_LT_EOF
28722
28723 ;;
28724 "t-func/atconfig":C) cat >t-func/atconfig <<ATEOF
28725# Configurable variable values for building test suites.
28726# Generated by $0.
28727# Copyright (C) 2012 Free Software Foundation, Inc.
28728
28729# The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
28730at_testdir='t-func'
28731abs_builddir='$ac_abs_builddir'
28732at_srcdir='$ac_srcdir'
28733abs_srcdir='$ac_abs_srcdir'
28734at_top_srcdir='$ac_top_srcdir'
28735abs_top_srcdir='$ac_abs_top_srcdir'
28736at_top_build_prefix='$ac_top_build_prefix'
28737abs_top_builddir='$ac_abs_top_builddir'
28738
28739# Backward compatibility with Autotest <= 2.59b:
28740at_top_builddir=\$at_top_build_prefix
28741
28742AUTOTEST_PATH='t-func'
28743
28744SHELL=\${CONFIG_SHELL-'$SHELL'}
28745ATEOF
28746 ;;
28747
28748 esac
28749done # for ac_tag
28750
28751
28752as_fn_exit 0
28753_ACEOF
28754ac_clean_files=$ac_clean_files_save
28755
28756test $ac_write_fail = 0 ||
28757 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28758
28759
28760# configure is writing to config.log, and then calls config.status.
28761# config.status does its own redirection, appending to config.log.
28762# Unfortunately, on DOS this fails, as config.log is still kept open
28763# by configure, so config.status won't be able to write to it; its
28764# output is simply discarded. So we exec the FD to /dev/null,
28765# effectively closing config.log, so it can be properly (re)opened and
28766# appended to by config.status. When coming back to configure, we
28767# need to make the FD available again.
28768if test "$no_create" != yes; then
28769 ac_cs_success=:
28770 ac_config_status_args=
28771 test "$silent" = yes &&
28772 ac_config_status_args="$ac_config_status_args --quiet"
28773 exec 5>/dev/null
28774 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28775 exec 5>>config.log
28776 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28777 # would make configure fail if this is the last instruction.
28778 $ac_cs_success || as_fn_exit 1
28779fi
28780if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28782$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28783fi
28784
28785
28786# Print the current configuration
28787cat <<CONFIG
28788
28789Configuration:
28790 Features:
28791 native language support . . . : $USE_NLS
28792 unicode support . . . . . . . : $USE_UNICODE
28793 development documentation . . : $build_devel_docs
28794 code coverage . . . . . . . . : $enable_coverage
28795 build shared libraries . . . : $enable_shared
28796 mmap loaders . . . . . . . . : $enable_mmap
28797 disk pre-allocation . . . . . : $enable_disk_preallocate
28798 default dpkg-deb compressor . : $with_dpkg_deb_compressor
28799
28800 Paths:
28801 devlibdir . . . . . . . . . . : $devlibdir
28802 pkgconfdir . . . . . . . . . : $pkgconfdir
28803 admindir . . . . . . . . . . : $admindir
28804 logdir . . . . . . . . . . . : $logdir
28805 perl interpreter . . . . . . : $PERL
28806 perl libdir . . . . . . . . . : $PERL_LIBDIR
28807
28808 Programs:
28809 update-alternatives . . . . . : $build_update_alternatives
28810 start-stop-daemon . . . . . . : $build_start_stop_daemon
28811 dselect . . . . . . . . . . . : $build_dselect
28812
28813 System Libraries:
28814 libps . . . . . . . . . . . . : ${have_libps:-no}
28815 libkvm . . . . . . . . . . . : ${have_libkvm:-no}
28816 libselinux . . . . . . . . . : $have_libselinux
28817 libmd . . . . . . . . . . . . : $have_libmd
28818 libz . . . . . . . . . . . . : $have_libz
28819 liblzma . . . . . . . . . . . : $have_liblzma
28820 libbz2 . . . . . . . . . . . : $have_libbz2
28821 libcurses . . . . . . . . . . : ${have_libcurses:-no}
28822CONFIG