summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSimeon Simeonov2018-02-26 11:23:00 +0100
committerSimeon Simeonov2018-02-26 11:23:00 +0100
commit0b3cbf57875fd692e4ba0b336fefa4bee1ed00dc (patch)
treeaf916a30553c78ce9d4f2d8658656a175c5b6921 /configure
Initial commit for sylpheed 3.7.0
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20355
1 files changed, 20355 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 0000000..6984cce
--- /dev/null
+++ b/configure
@@ -0,0 +1,20355 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="src/main.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636ALLOCA
637OPENSSL_LIBS
638OPENSSL_CFLAGS
639LDAP_LIBS
640GPGME_LIBS
641GPGME_CFLAGS
642GPGME_CONFIG
643themedir
644plugindir
645faqdir
646manualdir
647MKINSTALLDIRS
648POSUB
649POFILES
650PO_IN_DATADIR_FALSE
651PO_IN_DATADIR_TRUE
652INTLLIBS
653INSTOBJEXT
654GMOFILES
655DATADIRNAME
656CATOBJEXT
657CATALOGS
658XGETTEXT
659GMSGFMT
660MSGFMT_OPTS
661MSGFMT
662USE_NLS
663GETTEXT_PACKAGE
664LTLIBICONV
665LIBICONV
666SYLPHEED_LIBS
667GTK_LIBS
668GTK_CFLAGS
669GLIB_COMPILE_RESOURCES
670GLIB_MKENUMS
671GOBJECT_QUERY
672GLIB_GENMARSHAL
673GLIB_LIBS
674GLIB_CFLAGS
675PKG_CONFIG_LIBDIR
676PKG_CONFIG_PATH
677PKG_CONFIG
678NATIVE_WIN32_FALSE
679NATIVE_WIN32_TRUE
680LIBSYLPH_LIBS
681LIBSYLPH_CFLAGS
682WINDRES
683OTOOL64
684OTOOL
685LIPO
686NMEDIT
687DSYMUTIL
688MANIFEST_TOOL
689RANLIB
690ac_ct_AR
691AR
692DLLTOOL
693OBJDUMP
694NM
695ac_ct_DUMPBIN
696DUMPBIN
697LD
698FGREP
699EGREP
700GREP
701SED
702LIBTOOL
703YFLAGS
704YACC
705LEXLIB
706LEX_OUTPUT_ROOT
707LEX
708CPP
709LN_S
710am__fastdepCC_FALSE
711am__fastdepCC_TRUE
712CCDEPMODE
713am__nodep
714AMDEPBACKSLASH
715AMDEP_FALSE
716AMDEP_TRUE
717am__quote
718am__include
719DEPDIR
720OBJEXT
721EXEEXT
722ac_ct_CC
723CPPFLAGS
724LDFLAGS
725CFLAGS
726CC
727MAINT
728MAINTAINER_MODE_FALSE
729MAINTAINER_MODE_TRUE
730LT_AGE
731LT_REVISION
732LT_CURRENT
733LT_RELEASE
734DEVEL_VERSION
735BUILD_REVISION
736EXTRA_VERSION
737MICRO_VERSION
738MINOR_VERSION
739MAJOR_VERSION
740AM_BACKSLASH
741AM_DEFAULT_VERBOSITY
742AM_DEFAULT_V
743AM_V
744am__untar
745am__tar
746AMTAR
747am__leading_dot
748SET_MAKE
749AWK
750mkdir_p
751MKDIR_P
752INSTALL_STRIP_PROGRAM
753STRIP
754install_sh
755MAKEINFO
756AUTOHEADER
757AUTOMAKE
758AUTOCONF
759ACLOCAL
760VERSION
761PACKAGE
762CYGPATH_W
763am__isrc
764INSTALL_DATA
765INSTALL_SCRIPT
766INSTALL_PROGRAM
767target_os
768target_vendor
769target_cpu
770target
771host_os
772host_vendor
773host_cpu
774host
775build_os
776build_vendor
777build_cpu
778build
779target_alias
780host_alias
781build_alias
782LIBS
783ECHO_T
784ECHO_N
785ECHO_C
786DEFS
787mandir
788localedir
789libdir
790psdir
791pdfdir
792dvidir
793htmldir
794infodir
795docdir
796oldincludedir
797includedir
798localstatedir
799sharedstatedir
800sysconfdir
801datadir
802datarootdir
803libexecdir
804sbindir
805bindir
806program_transform_name
807prefix
808exec_prefix
809PACKAGE_URL
810PACKAGE_BUGREPORT
811PACKAGE_STRING
812PACKAGE_VERSION
813PACKAGE_TARNAME
814PACKAGE_NAME
815PATH_SEPARATOR
816SHELL'
817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
820enable_silent_rules
821enable_maintainer_mode
822enable_dependency_tracking
823enable_static
824enable_shared
825with_pic
826enable_fast_install
827with_gnu_ld
828with_sysroot
829enable_libtool_lock
830enable_glibtest
831enable_gtktest
832enable_deprecated
833enable_rpath
834with_libiconv_prefix
835with_localedir
836with_manualdir
837with_faqdir
838with_plugindir
839with_themedir
840enable_gpgme
841with_gpgme_prefix
842enable_jpilot
843enable_ldap
844enable_ssl
845enable_compface
846enable_gtkspell
847enable_oniguruma
848enable_threads
849enable_ipv6
850enable_updatecheck
851enable_updatecheckplugin
852enable_largefile
853'
854 ac_precious_vars='build_alias
855host_alias
856target_alias
857CC
858CFLAGS
859LDFLAGS
860LIBS
861CPPFLAGS
862CPP
863YACC
864YFLAGS
865PKG_CONFIG
866PKG_CONFIG_PATH
867PKG_CONFIG_LIBDIR
868OPENSSL_CFLAGS
869OPENSSL_LIBS'
870
871
872# Initialize some variables set by options.
873ac_init_help=
874ac_init_version=false
875ac_unrecognized_opts=
876ac_unrecognized_sep=
877# The variables have the same names as the options, with
878# dashes changed to underlines.
879cache_file=/dev/null
880exec_prefix=NONE
881no_create=
882no_recursion=
883prefix=NONE
884program_prefix=NONE
885program_suffix=NONE
886program_transform_name=s,x,x,
887silent=
888site=
889srcdir=
890verbose=
891x_includes=NONE
892x_libraries=NONE
893
894# Installation directory options.
895# These are left unexpanded so users can "make install exec_prefix=/foo"
896# and all the variables that are supposed to be based on exec_prefix
897# by default will actually change.
898# Use braces instead of parens because sh, perl, etc. also accept them.
899# (The list follows the same order as the GNU Coding Standards.)
900bindir='${exec_prefix}/bin'
901sbindir='${exec_prefix}/sbin'
902libexecdir='${exec_prefix}/libexec'
903datarootdir='${prefix}/share'
904datadir='${datarootdir}'
905sysconfdir='${prefix}/etc'
906sharedstatedir='${prefix}/com'
907localstatedir='${prefix}/var'
908includedir='${prefix}/include'
909oldincludedir='/usr/include'
910docdir='${datarootdir}/doc/${PACKAGE}'
911infodir='${datarootdir}/info'
912htmldir='${docdir}'
913dvidir='${docdir}'
914pdfdir='${docdir}'
915psdir='${docdir}'
916libdir='${exec_prefix}/lib'
917localedir='${datarootdir}/locale'
918mandir='${datarootdir}/man'
919
920ac_prev=
921ac_dashdash=
922for ac_option
923do
924 # If the previous option needs an argument, assign it.
925 if test -n "$ac_prev"; then
926 eval $ac_prev=\$ac_option
927 ac_prev=
928 continue
929 fi
930
931 case $ac_option in
932 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 *=) ac_optarg= ;;
934 *) ac_optarg=yes ;;
935 esac
936
937 # Accept the important Cygnus configure options, so we can diagnose typos.
938
939 case $ac_dashdash$ac_option in
940 --)
941 ac_dashdash=yes ;;
942
943 -bindir | --bindir | --bindi | --bind | --bin | --bi)
944 ac_prev=bindir ;;
945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946 bindir=$ac_optarg ;;
947
948 -build | --build | --buil | --bui | --bu)
949 ac_prev=build_alias ;;
950 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
951 build_alias=$ac_optarg ;;
952
953 -cache-file | --cache-file | --cache-fil | --cache-fi \
954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955 ac_prev=cache_file ;;
956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
958 cache_file=$ac_optarg ;;
959
960 --config-cache | -C)
961 cache_file=config.cache ;;
962
963 -datadir | --datadir | --datadi | --datad)
964 ac_prev=datadir ;;
965 -datadir=* | --datadir=* | --datadi=* | --datad=*)
966 datadir=$ac_optarg ;;
967
968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969 | --dataroo | --dataro | --datar)
970 ac_prev=datarootdir ;;
971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973 datarootdir=$ac_optarg ;;
974
975 -disable-* | --disable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984"enable_$ac_useropt"
985"*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=no ;;
990
991 -docdir | --docdir | --docdi | --doc | --do)
992 ac_prev=docdir ;;
993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 docdir=$ac_optarg ;;
995
996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997 ac_prev=dvidir ;;
998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 dvidir=$ac_optarg ;;
1000
1001 -enable-* | --enable-*)
1002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 as_fn_error $? "invalid feature name: $ac_useropt"
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1009 *"
1010"enable_$ac_useropt"
1011"*) ;;
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
1014 esac
1015 eval enable_$ac_useropt=\$ac_optarg ;;
1016
1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019 | --exec | --exe | --ex)
1020 ac_prev=exec_prefix ;;
1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023 | --exec=* | --exe=* | --ex=*)
1024 exec_prefix=$ac_optarg ;;
1025
1026 -gas | --gas | --ga | --g)
1027 # Obsolete; use --with-gas.
1028 with_gas=yes ;;
1029
1030 -help | --help | --hel | --he | -h)
1031 ac_init_help=long ;;
1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033 ac_init_help=recursive ;;
1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035 ac_init_help=short ;;
1036
1037 -host | --host | --hos | --ho)
1038 ac_prev=host_alias ;;
1039 -host=* | --host=* | --hos=* | --ho=*)
1040 host_alias=$ac_optarg ;;
1041
1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043 ac_prev=htmldir ;;
1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045 | --ht=*)
1046 htmldir=$ac_optarg ;;
1047
1048 -includedir | --includedir | --includedi | --included | --include \
1049 | --includ | --inclu | --incl | --inc)
1050 ac_prev=includedir ;;
1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052 | --includ=* | --inclu=* | --incl=* | --inc=*)
1053 includedir=$ac_optarg ;;
1054
1055 -infodir | --infodir | --infodi | --infod | --info | --inf)
1056 ac_prev=infodir ;;
1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058 infodir=$ac_optarg ;;
1059
1060 -libdir | --libdir | --libdi | --libd)
1061 ac_prev=libdir ;;
1062 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063 libdir=$ac_optarg ;;
1064
1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066 | --libexe | --libex | --libe)
1067 ac_prev=libexecdir ;;
1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069 | --libexe=* | --libex=* | --libe=*)
1070 libexecdir=$ac_optarg ;;
1071
1072 -localedir | --localedir | --localedi | --localed | --locale)
1073 ac_prev=localedir ;;
1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075 localedir=$ac_optarg ;;
1076
1077 -localstatedir | --localstatedir | --localstatedi | --localstated \
1078 | --localstate | --localstat | --localsta | --localst | --locals)
1079 ac_prev=localstatedir ;;
1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082 localstatedir=$ac_optarg ;;
1083
1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085 ac_prev=mandir ;;
1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087 mandir=$ac_optarg ;;
1088
1089 -nfp | --nfp | --nf)
1090 # Obsolete; use --without-fp.
1091 with_fp=no ;;
1092
1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094 | --no-cr | --no-c | -n)
1095 no_create=yes ;;
1096
1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 no_recursion=yes ;;
1100
1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103 | --oldin | --oldi | --old | --ol | --o)
1104 ac_prev=oldincludedir ;;
1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108 oldincludedir=$ac_optarg ;;
1109
1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111 ac_prev=prefix ;;
1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113 prefix=$ac_optarg ;;
1114
1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116 | --program-pre | --program-pr | --program-p)
1117 ac_prev=program_prefix ;;
1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120 program_prefix=$ac_optarg ;;
1121
1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123 | --program-suf | --program-su | --program-s)
1124 ac_prev=program_suffix ;;
1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127 program_suffix=$ac_optarg ;;
1128
1129 -program-transform-name | --program-transform-name \
1130 | --program-transform-nam | --program-transform-na \
1131 | --program-transform-n | --program-transform- \
1132 | --program-transform | --program-transfor \
1133 | --program-transfo | --program-transf \
1134 | --program-trans | --program-tran \
1135 | --progr-tra | --program-tr | --program-t)
1136 ac_prev=program_transform_name ;;
1137 -program-transform-name=* | --program-transform-name=* \
1138 | --program-transform-nam=* | --program-transform-na=* \
1139 | --program-transform-n=* | --program-transform-=* \
1140 | --program-transform=* | --program-transfor=* \
1141 | --program-transfo=* | --program-transf=* \
1142 | --program-trans=* | --program-tran=* \
1143 | --progr-tra=* | --program-tr=* | --program-t=*)
1144 program_transform_name=$ac_optarg ;;
1145
1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147 ac_prev=pdfdir ;;
1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149 pdfdir=$ac_optarg ;;
1150
1151 -psdir | --psdir | --psdi | --psd | --ps)
1152 ac_prev=psdir ;;
1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 psdir=$ac_optarg ;;
1155
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1158 silent=yes ;;
1159
1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161 ac_prev=sbindir ;;
1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163 | --sbi=* | --sb=*)
1164 sbindir=$ac_optarg ;;
1165
1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168 | --sharedst | --shareds | --shared | --share | --shar \
1169 | --sha | --sh)
1170 ac_prev=sharedstatedir ;;
1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174 | --sha=* | --sh=*)
1175 sharedstatedir=$ac_optarg ;;
1176
1177 -site | --site | --sit)
1178 ac_prev=site ;;
1179 -site=* | --site=* | --sit=*)
1180 site=$ac_optarg ;;
1181
1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183 ac_prev=srcdir ;;
1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185 srcdir=$ac_optarg ;;
1186
1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188 | --syscon | --sysco | --sysc | --sys | --sy)
1189 ac_prev=sysconfdir ;;
1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192 sysconfdir=$ac_optarg ;;
1193
1194 -target | --target | --targe | --targ | --tar | --ta | --t)
1195 ac_prev=target_alias ;;
1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197 target_alias=$ac_optarg ;;
1198
1199 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 verbose=yes ;;
1201
1202 -version | --version | --versio | --versi | --vers | -V)
1203 ac_init_version=: ;;
1204
1205 -with-* | --with-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214"with_$ac_useropt"
1215"*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval with_$ac_useropt=\$ac_optarg ;;
1220
1221 -without-* | --without-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 as_fn_error $? "invalid package name: $ac_useropt"
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1229 *"
1230"with_$ac_useropt"
1231"*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=no ;;
1236
1237 --x)
1238 # Obsolete; use --with-x.
1239 with_x=yes ;;
1240
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1247
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1254
1255 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1256Try \`$0 --help' for more information"
1257 ;;
1258
1259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 case $ac_envvar in #(
1263 '' | [0-9]* | *[!_$as_cr_alnum]* )
1264 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1265 esac
1266 eval $ac_envvar=\$ac_optarg
1267 export $ac_envvar ;;
1268
1269 *)
1270 # FIXME: should be removed in autoconf 3.0.
1271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1275 ;;
1276
1277 esac
1278done
1279
1280if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 as_fn_error $? "missing argument to $ac_option"
1283fi
1284
1285if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1287 no) ;;
1288 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 esac
1291fi
1292
1293# Check all directory arguments for consistency.
1294for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
1298do
1299 eval ac_val=\$$ac_var
1300 # Remove trailing slashes.
1301 case $ac_val in
1302 */ )
1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304 eval $ac_var=\$ac_val;;
1305 esac
1306 # Be sure to have absolute directory names.
1307 case $ac_val in
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310 esac
1311 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1312done
1313
1314# There might be people who depend on the old broken behavior: `$host'
1315# used to hold the argument of --host etc.
1316# FIXME: To remove some day.
1317build=$build_alias
1318host=$host_alias
1319target=$target_alias
1320
1321# FIXME: To remove some day.
1322if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1327 fi
1328fi
1329
1330ac_tool_prefix=
1331test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333test "$silent" = yes && exec 6>/dev/null
1334
1335
1336ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337ac_ls_di=`ls -di .` &&
1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 as_fn_error $? "working directory cannot be determined"
1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 as_fn_error $? "pwd does not report name of working directory"
1342
1343
1344# Find the source files, if location was not specified.
1345if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353$as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)[^/].*/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\).*/{
1367 s//\1/
1368 q
1369 }
1370 s/.*/./; q'`
1371 srcdir=$ac_confdir
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 srcdir=..
1374 fi
1375else
1376 ac_srcdir_defaulted=no
1377fi
1378if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1381fi
1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1385 pwd)`
1386# When building in place, set srcdir=.
1387if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 srcdir=.
1389fi
1390# Remove unnecessary trailing slashes from srcdir.
1391# Double slashes in file names in object file debugging info
1392# mess up M-x gdb in Emacs.
1393case $srcdir in
1394*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395esac
1396for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401done
1402
1403#
1404# Report the --help message.
1405#
1406if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1409 cat <<_ACEOF
1410\`configure' configures this package to adapt to many kinds of systems.
1411
1412Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415VAR=VALUE. See below for descriptions of some of the useful variables.
1416
1417Defaults for the options are specified in brackets.
1418
1419Configuration:
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
1424 -q, --quiet, --silent do not print \`checking ...' messages
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429
1430Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
1432 [$ac_default_prefix]
1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1434 [PREFIX]
1435
1436By default, \`make install' will install all the files in
1437\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439for instance \`--prefix=\$HOME'.
1440
1441For better control, use the options below.
1442
1443Fine tuning of the installation directories:
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1463_ACEOF
1464
1465 cat <<\_ACEOF
1466
1467Program names:
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471
1472System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 --target=TARGET configure for building compilers for TARGET [HOST]
1476_ACEOF
1477fi
1478
1479if test -n "$ac_init_help"; then
1480
1481 cat <<\_ACEOF
1482
1483Optional Features:
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --enable-silent-rules less verbose build output (undo: "make V=1")
1488 --disable-silent-rules verbose build output (undo: "make V=0")
1489 --enable-maintainer-mode
1490 enable make rules and dependencies not useful (and
1491 sometimes confusing) to the casual installer
1492 --enable-dependency-tracking
1493 do not reject slow dependency extractors
1494 --disable-dependency-tracking
1495 speeds up one-time build
1496 --enable-static[=PKGS] build static libraries [default=no]
1497 --enable-shared[=PKGS] build shared libraries [default=yes]
1498 --enable-fast-install[=PKGS]
1499 optimize for fast installation [default=yes]
1500 --disable-libtool-lock avoid locking (might break parallel builds)
1501 --disable-glibtest do not try to compile and run a test GLIB program
1502 --disable-gtktest do not try to compile and run a test GTK+ program
1503 --disable-deprecated Disable deprecated GTK functions.
1504 --disable-rpath do not hardcode runtime library paths
1505 --disable-gpgme Disable GnuPG support using GPGME
1506 --enable-jpilot Enable JPilot support [default=no]
1507 --enable-ldap Enable LDAP support [default=no]
1508 --disable-ssl Disable SSL support using OpenSSL
1509 --disable-compface Do not use compface (X-Face)
1510 --disable-gtkspell Do not use GtkSpell in editor
1511 --enable-oniguruma Use Oniguruma instead of system's regex [default=no]
1512 --disable-threads Disable multithread support
1513 --disable-ipv6 Disable IPv6 support
1514 --disable-updatecheck Disable update check feature
1515 --disable-updatecheckplugin Disable update check plugin feature
1516 --disable-largefile omit support for large files
1517
1518Optional Packages:
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1521 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1522 both]
1523 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1524 --with-sysroot=DIR Search for dependent libraries within DIR
1525 (or the compiler's sysroot if not specified).
1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1527 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1528 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1529 --with-localedir=DIR Locale directory
1530 --with-manualdir=DIR Manual directory
1531 --with-faqdir=DIR FAQ directory
1532 --with-plugindir=DIR Plug-in directory
1533 --with-themedir=DIR Icon theme directory
1534 --with-gpgme-prefix=PFX prefix where GPGME is installed (optional)
1535
1536Some influential environment variables:
1537 CC C compiler command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540 nonstandard directory <lib dir>
1541 LIBS libraries to pass to the linker, e.g. -l<library>
1542 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543 you have headers in a nonstandard directory <include dir>
1544 CPP C preprocessor
1545 YACC The `Yet Another Compiler Compiler' implementation to use.
1546 Defaults to the first program found out of: `bison -y', `byacc',
1547 `yacc'.
1548 YFLAGS The list of arguments that will be passed by default to $YACC.
1549 This script will default YFLAGS to the empty string to avoid a
1550 default value of `-d' given by some make applications.
1551 PKG_CONFIG path to pkg-config utility
1552 PKG_CONFIG_PATH
1553 directories to add to pkg-config's search path
1554 PKG_CONFIG_LIBDIR
1555 path overriding pkg-config's built-in search path
1556 OPENSSL_CFLAGS
1557 C compiler flags for OPENSSL, overriding pkg-config
1558 OPENSSL_LIBS
1559 linker flags for OPENSSL, overriding pkg-config
1560
1561Use these variables to override the choices made by `configure' or to help
1562it to find libraries and programs with nonstandard names/locations.
1563
1564Report bugs to the package provider.
1565_ACEOF
1566ac_status=$?
1567fi
1568
1569if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574 continue
1575 ac_builddir=.
1576
1577case "$ac_dir" in
1578.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579*)
1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586 esac ;;
1587esac
1588ac_abs_top_builddir=$ac_pwd
1589ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590# for backward compatibility:
1591ac_top_builddir=$ac_top_build_prefix
1592
1593case $srcdir in
1594 .) # We are building in place.
1595 ac_srcdir=.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1602 *) # Relative name.
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606esac
1607ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1617 else
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 fi || ac_status=$?
1620 cd "$ac_pwd" || { ac_status=$?; break; }
1621 done
1622fi
1623
1624test -n "$ac_init_help" && exit $ac_status
1625if $ac_init_version; then
1626 cat <<\_ACEOF
1627configure
1628generated by GNU Autoconf 2.69
1629
1630Copyright (C) 2012 Free Software Foundation, Inc.
1631This configure script is free software; the Free Software Foundation
1632gives unlimited permission to copy, distribute and modify it.
1633_ACEOF
1634 exit
1635fi
1636
1637## ------------------------ ##
1638## Autoconf initialization. ##
1639## ------------------------ ##
1640
1641# ac_fn_c_try_compile LINENO
1642# --------------------------
1643# Try to compile conftest.$ac_ext, and return whether this succeeded.
1644ac_fn_c_try_compile ()
1645{
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext
1648 if { { ac_try="$ac_compile"
1649case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654$as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_compile") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1661 fi
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest.$ac_objext; then :
1667 ac_retval=0
1668else
1669 $as_echo "$as_me: failed program was:" >&5
1670sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=1
1673fi
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1676
1677} # ac_fn_c_try_compile
1678
1679# ac_fn_c_try_link LINENO
1680# -----------------------
1681# Try to link conftest.$ac_ext, and return whether this succeeded.
1682ac_fn_c_try_link ()
1683{
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1687case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 test -x conftest$ac_exeext
1707 }; then :
1708 ac_retval=0
1709else
1710 $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=1
1714fi
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723} # ac_fn_c_try_link
1724
1725# ac_fn_c_try_cpp LINENO
1726# ----------------------
1727# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_cpp ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_cpp conftest.$ac_ext"
1732case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } > conftest.i && {
1747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 }; then :
1750 ac_retval=0
1751else
1752 $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756fi
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_cpp
1761
1762# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763# -------------------------------------------------------
1764# Tests whether HEADER exists and can be compiled using the include files in
1765# INCLUDES, setting the cache variable VAR accordingly.
1766ac_fn_c_check_header_compile ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770$as_echo_n "checking for $2... " >&6; }
1771if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h. */
1776$4
1777#include <$2>
1778_ACEOF
1779if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$3=yes"
1781else
1782 eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785fi
1786eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791} # ac_fn_c_check_header_compile
1792
1793# ac_fn_c_try_run LINENO
1794# ----------------------
1795# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1796# that executables *can* be run.
1797ac_fn_c_try_run ()
1798{
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if { { ac_try="$ac_link"
1801case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804esac
1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806$as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_link") 2>&5
1808 ac_status=$?
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1811 { { case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814esac
1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816$as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_try") 2>&5
1818 ac_status=$?
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; }; }; then :
1821 ac_retval=0
1822else
1823 $as_echo "$as_me: program exited with status $ac_status" >&5
1824 $as_echo "$as_me: failed program was:" >&5
1825sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=$ac_status
1828fi
1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1832
1833} # ac_fn_c_try_run
1834
1835# ac_fn_c_check_func LINENO FUNC VAR
1836# ----------------------------------
1837# Tests whether FUNC exists, setting the cache variable VAR accordingly
1838ac_fn_c_check_func ()
1839{
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
1843if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850#define $2 innocuous_$2
1851
1852/* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1856
1857#ifdef __STDC__
1858# include <limits.h>
1859#else
1860# include <assert.h>
1861#endif
1862
1863#undef $2
1864
1865/* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868#ifdef __cplusplus
1869extern "C"
1870#endif
1871char $2 ();
1872/* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875#if defined __stub_$2 || defined __stub___$2
1876choke me
1877#endif
1878
1879int
1880main ()
1881{
1882return $2 ();
1883 ;
1884 return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889else
1890 eval "$3=no"
1891fi
1892rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1894fi
1895eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897$as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900} # ac_fn_c_check_func
1901
1902# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1903# -------------------------------------------------------
1904# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1905# the include files in INCLUDES and setting the cache variable VAR
1906# accordingly.
1907ac_fn_c_check_header_mongrel ()
1908{
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if eval \${$3+:} false; then :
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912$as_echo_n "checking for $2... " >&6; }
1913if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1915fi
1916eval ac_res=\$$3
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918$as_echo "$ac_res" >&6; }
1919else
1920 # Is the header compilable?
1921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1922$as_echo_n "checking $2 usability... " >&6; }
1923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h. */
1925$4
1926#include <$2>
1927_ACEOF
1928if ac_fn_c_try_compile "$LINENO"; then :
1929 ac_header_compiler=yes
1930else
1931 ac_header_compiler=no
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1935$as_echo "$ac_header_compiler" >&6; }
1936
1937# Is the header present?
1938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1939$as_echo_n "checking $2 presence... " >&6; }
1940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h. */
1942#include <$2>
1943_ACEOF
1944if ac_fn_c_try_cpp "$LINENO"; then :
1945 ac_header_preproc=yes
1946else
1947 ac_header_preproc=no
1948fi
1949rm -f conftest.err conftest.i conftest.$ac_ext
1950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1951$as_echo "$ac_header_preproc" >&6; }
1952
1953# So? What about this header?
1954case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1955 yes:no: )
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1957$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960 ;;
1961 no:yes:* )
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1963$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1965$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1967$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1969$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972 ;;
1973esac
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975$as_echo_n "checking for $2... " >&6; }
1976if eval \${$3+:} false; then :
1977 $as_echo_n "(cached) " >&6
1978else
1979 eval "$3=\$ac_header_compiler"
1980fi
1981eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983$as_echo "$ac_res" >&6; }
1984fi
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987} # ac_fn_c_check_header_mongrel
1988
1989# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1990# -------------------------------------------
1991# Tests whether TYPE exists after having included INCLUDES, setting cache
1992# variable VAR accordingly.
1993ac_fn_c_check_type ()
1994{
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997$as_echo_n "checking for $2... " >&6; }
1998if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2000else
2001 eval "$3=no"
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h. */
2004$4
2005int
2006main ()
2007{
2008if (sizeof ($2))
2009 return 0;
2010 ;
2011 return 0;
2012}
2013_ACEOF
2014if ac_fn_c_try_compile "$LINENO"; then :
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017$4
2018int
2019main ()
2020{
2021if (sizeof (($2)))
2022 return 0;
2023 ;
2024 return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028
2029else
2030 eval "$3=yes"
2031fi
2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035fi
2036eval ac_res=\$$3
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038$as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040
2041} # ac_fn_c_check_type
2042
2043# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2044# --------------------------------------------
2045# Tries to find the compile-time value of EXPR in a program that includes
2046# INCLUDES, setting VAR accordingly. Returns whether the value could be
2047# computed
2048ac_fn_c_compute_int ()
2049{
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 if test "$cross_compiling" = yes; then
2052 # Depending upon the size, compute the lo and hi bounds.
2053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054/* end confdefs.h. */
2055$4
2056int
2057main ()
2058{
2059static int test_array [1 - 2 * !(($2) >= 0)];
2060test_array [0] = 0;
2061return test_array [0];
2062
2063 ;
2064 return 0;
2065}
2066_ACEOF
2067if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_lo=0 ac_mid=0
2069 while :; do
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h. */
2072$4
2073int
2074main ()
2075{
2076static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2077test_array [0] = 0;
2078return test_array [0];
2079
2080 ;
2081 return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_compile "$LINENO"; then :
2085 ac_hi=$ac_mid; break
2086else
2087 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2088 if test $ac_lo -le $ac_mid; then
2089 ac_lo= ac_hi=
2090 break
2091 fi
2092 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2093fi
2094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 done
2096else
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h. */
2099$4
2100int
2101main ()
2102{
2103static int test_array [1 - 2 * !(($2) < 0)];
2104test_array [0] = 0;
2105return test_array [0];
2106
2107 ;
2108 return 0;
2109}
2110_ACEOF
2111if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=-1 ac_mid=-1
2113 while :; do
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h. */
2116$4
2117int
2118main ()
2119{
2120static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2121test_array [0] = 0;
2122return test_array [0];
2123
2124 ;
2125 return 0;
2126}
2127_ACEOF
2128if ac_fn_c_try_compile "$LINENO"; then :
2129 ac_lo=$ac_mid; break
2130else
2131 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2132 if test $ac_mid -le $ac_hi; then
2133 ac_lo= ac_hi=
2134 break
2135 fi
2136 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2137fi
2138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 done
2140else
2141 ac_lo= ac_hi=
2142fi
2143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146# Binary search between lo and hi bounds.
2147while test "x$ac_lo" != "x$ac_hi"; do
2148 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150/* end confdefs.h. */
2151$4
2152int
2153main ()
2154{
2155static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2156test_array [0] = 0;
2157return test_array [0];
2158
2159 ;
2160 return 0;
2161}
2162_ACEOF
2163if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_hi=$ac_mid
2165else
2166 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2167fi
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169done
2170case $ac_lo in #((
2171?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2172'') ac_retval=1 ;;
2173esac
2174 else
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176/* end confdefs.h. */
2177$4
2178static long int longval () { return $2; }
2179static unsigned long int ulongval () { return $2; }
2180#include <stdio.h>
2181#include <stdlib.h>
2182int
2183main ()
2184{
2185
2186 FILE *f = fopen ("conftest.val", "w");
2187 if (! f)
2188 return 1;
2189 if (($2) < 0)
2190 {
2191 long int i = longval ();
2192 if (i != ($2))
2193 return 1;
2194 fprintf (f, "%ld", i);
2195 }
2196 else
2197 {
2198 unsigned long int i = ulongval ();
2199 if (i != ($2))
2200 return 1;
2201 fprintf (f, "%lu", i);
2202 }
2203 /* Do not output a trailing newline, as this causes \r\n confusion
2204 on some platforms. */
2205 return ferror (f) || fclose (f) != 0;
2206
2207 ;
2208 return 0;
2209}
2210_ACEOF
2211if ac_fn_c_try_run "$LINENO"; then :
2212 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2213else
2214 ac_retval=1
2215fi
2216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2217 conftest.$ac_objext conftest.beam conftest.$ac_ext
2218rm -f conftest.val
2219
2220 fi
2221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222 as_fn_set_status $ac_retval
2223
2224} # ac_fn_c_compute_int
2225cat >config.log <<_ACEOF
2226This file contains any messages produced by compilers while
2227running configure, to aid debugging if configure makes a mistake.
2228
2229It was created by $as_me, which was
2230generated by GNU Autoconf 2.69. Invocation command line was
2231
2232 $ $0 $@
2233
2234_ACEOF
2235exec 5>>config.log
2236{
2237cat <<_ASUNAME
2238## --------- ##
2239## Platform. ##
2240## --------- ##
2241
2242hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2243uname -m = `(uname -m) 2>/dev/null || echo unknown`
2244uname -r = `(uname -r) 2>/dev/null || echo unknown`
2245uname -s = `(uname -s) 2>/dev/null || echo unknown`
2246uname -v = `(uname -v) 2>/dev/null || echo unknown`
2247
2248/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2249/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2250
2251/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2252/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2253/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2254/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2255/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2256/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2257/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2258
2259_ASUNAME
2260
2261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262for as_dir in $PATH
2263do
2264 IFS=$as_save_IFS
2265 test -z "$as_dir" && as_dir=.
2266 $as_echo "PATH: $as_dir"
2267 done
2268IFS=$as_save_IFS
2269
2270} >&5
2271
2272cat >&5 <<_ACEOF
2273
2274
2275## ----------- ##
2276## Core tests. ##
2277## ----------- ##
2278
2279_ACEOF
2280
2281
2282# Keep a trace of the command line.
2283# Strip out --no-create and --no-recursion so they do not pile up.
2284# Strip out --silent because we don't want to record it for future runs.
2285# Also quote any args containing shell meta-characters.
2286# Make two passes to allow for proper duplicate-argument suppression.
2287ac_configure_args=
2288ac_configure_args0=
2289ac_configure_args1=
2290ac_must_keep_next=false
2291for ac_pass in 1 2
2292do
2293 for ac_arg
2294 do
2295 case $ac_arg in
2296 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2298 | -silent | --silent | --silen | --sile | --sil)
2299 continue ;;
2300 *\'*)
2301 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2302 esac
2303 case $ac_pass in
2304 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2305 2)
2306 as_fn_append ac_configure_args1 " '$ac_arg'"
2307 if test $ac_must_keep_next = true; then
2308 ac_must_keep_next=false # Got value, back to normal.
2309 else
2310 case $ac_arg in
2311 *=* | --config-cache | -C | -disable-* | --disable-* \
2312 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2313 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2314 | -with-* | --with-* | -without-* | --without-* | --x)
2315 case "$ac_configure_args0 " in
2316 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2317 esac
2318 ;;
2319 -* ) ac_must_keep_next=true ;;
2320 esac
2321 fi
2322 as_fn_append ac_configure_args " '$ac_arg'"
2323 ;;
2324 esac
2325 done
2326done
2327{ ac_configure_args0=; unset ac_configure_args0;}
2328{ ac_configure_args1=; unset ac_configure_args1;}
2329
2330# When interrupted or exit'd, cleanup temporary files, and complete
2331# config.log. We remove comments because anyway the quotes in there
2332# would cause problems or look ugly.
2333# WARNING: Use '\'' to represent an apostrophe within the trap.
2334# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2335trap 'exit_status=$?
2336 # Save into config.log some information that might help in debugging.
2337 {
2338 echo
2339
2340 $as_echo "## ---------------- ##
2341## Cache variables. ##
2342## ---------------- ##"
2343 echo
2344 # The following way of writing the cache mishandles newlines in values,
2345(
2346 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2347 eval ac_val=\$$ac_var
2348 case $ac_val in #(
2349 *${as_nl}*)
2350 case $ac_var in #(
2351 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2352$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2353 esac
2354 case $ac_var in #(
2355 _ | IFS | as_nl) ;; #(
2356 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2357 *) { eval $ac_var=; unset $ac_var;} ;;
2358 esac ;;
2359 esac
2360 done
2361 (set) 2>&1 |
2362 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2363 *${as_nl}ac_space=\ *)
2364 sed -n \
2365 "s/'\''/'\''\\\\'\'''\''/g;
2366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2367 ;; #(
2368 *)
2369 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2370 ;;
2371 esac |
2372 sort
2373)
2374 echo
2375
2376 $as_echo "## ----------------- ##
2377## Output variables. ##
2378## ----------------- ##"
2379 echo
2380 for ac_var in $ac_subst_vars
2381 do
2382 eval ac_val=\$$ac_var
2383 case $ac_val in
2384 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2385 esac
2386 $as_echo "$ac_var='\''$ac_val'\''"
2387 done | sort
2388 echo
2389
2390 if test -n "$ac_subst_files"; then
2391 $as_echo "## ------------------- ##
2392## File substitutions. ##
2393## ------------------- ##"
2394 echo
2395 for ac_var in $ac_subst_files
2396 do
2397 eval ac_val=\$$ac_var
2398 case $ac_val in
2399 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400 esac
2401 $as_echo "$ac_var='\''$ac_val'\''"
2402 done | sort
2403 echo
2404 fi
2405
2406 if test -s confdefs.h; then
2407 $as_echo "## ----------- ##
2408## confdefs.h. ##
2409## ----------- ##"
2410 echo
2411 cat confdefs.h
2412 echo
2413 fi
2414 test "$ac_signal" != 0 &&
2415 $as_echo "$as_me: caught signal $ac_signal"
2416 $as_echo "$as_me: exit $exit_status"
2417 } >&5
2418 rm -f core *.core core.conftest.* &&
2419 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2420 exit $exit_status
2421' 0
2422for ac_signal in 1 2 13 15; do
2423 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2424done
2425ac_signal=0
2426
2427# confdefs.h avoids OS command line length limits that DEFS can exceed.
2428rm -f -r conftest* confdefs.h
2429
2430$as_echo "/* confdefs.h */" > confdefs.h
2431
2432# Predefined preprocessor variables.
2433
2434cat >>confdefs.h <<_ACEOF
2435#define PACKAGE_NAME "$PACKAGE_NAME"
2436_ACEOF
2437
2438cat >>confdefs.h <<_ACEOF
2439#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2440_ACEOF
2441
2442cat >>confdefs.h <<_ACEOF
2443#define PACKAGE_VERSION "$PACKAGE_VERSION"
2444_ACEOF
2445
2446cat >>confdefs.h <<_ACEOF
2447#define PACKAGE_STRING "$PACKAGE_STRING"
2448_ACEOF
2449
2450cat >>confdefs.h <<_ACEOF
2451#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2452_ACEOF
2453
2454cat >>confdefs.h <<_ACEOF
2455#define PACKAGE_URL "$PACKAGE_URL"
2456_ACEOF
2457
2458
2459# Let the site file select an alternate cache file if it wants to.
2460# Prefer an explicitly selected file to automatically selected ones.
2461ac_site_file1=NONE
2462ac_site_file2=NONE
2463if test -n "$CONFIG_SITE"; then
2464 # We do not want a PATH search for config.site.
2465 case $CONFIG_SITE in #((
2466 -*) ac_site_file1=./$CONFIG_SITE;;
2467 */*) ac_site_file1=$CONFIG_SITE;;
2468 *) ac_site_file1=./$CONFIG_SITE;;
2469 esac
2470elif test "x$prefix" != xNONE; then
2471 ac_site_file1=$prefix/share/config.site
2472 ac_site_file2=$prefix/etc/config.site
2473else
2474 ac_site_file1=$ac_default_prefix/share/config.site
2475 ac_site_file2=$ac_default_prefix/etc/config.site
2476fi
2477for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2478do
2479 test "x$ac_site_file" = xNONE && continue
2480 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2482$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2483 sed 's/^/| /' "$ac_site_file" >&5
2484 . "$ac_site_file" \
2485 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487as_fn_error $? "failed to load site script $ac_site_file
2488See \`config.log' for more details" "$LINENO" 5; }
2489 fi
2490done
2491
2492if test -r "$cache_file"; then
2493 # Some versions of bash will fail to source /dev/null (special files
2494 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2495 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2497$as_echo "$as_me: loading cache $cache_file" >&6;}
2498 case $cache_file in
2499 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2500 *) . "./$cache_file";;
2501 esac
2502 fi
2503else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2505$as_echo "$as_me: creating cache $cache_file" >&6;}
2506 >$cache_file
2507fi
2508
2509# Check that the precious variables saved in the cache have kept the same
2510# value.
2511ac_cache_corrupted=false
2512for ac_var in $ac_precious_vars; do
2513 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2514 eval ac_new_set=\$ac_env_${ac_var}_set
2515 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2516 eval ac_new_val=\$ac_env_${ac_var}_value
2517 case $ac_old_set,$ac_new_set in
2518 set,)
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2520$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2521 ac_cache_corrupted=: ;;
2522 ,set)
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2524$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2525 ac_cache_corrupted=: ;;
2526 ,);;
2527 *)
2528 if test "x$ac_old_val" != "x$ac_new_val"; then
2529 # differences in whitespace do not lead to failure.
2530 ac_old_val_w=`echo x $ac_old_val`
2531 ac_new_val_w=`echo x $ac_new_val`
2532 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2534$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2535 ac_cache_corrupted=:
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2538$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2539 eval $ac_var=\$ac_old_val
2540 fi
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2542$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2544$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2545 fi;;
2546 esac
2547 # Pass precious variables to config.status.
2548 if test "$ac_new_set" = set; then
2549 case $ac_new_val in
2550 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2551 *) ac_arg=$ac_var=$ac_new_val ;;
2552 esac
2553 case " $ac_configure_args " in
2554 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2555 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2556 esac
2557 fi
2558done
2559if $ac_cache_corrupted; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2563$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2564 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2565fi
2566## -------------------- ##
2567## Main body of script. ##
2568## -------------------- ##
2569
2570ac_ext=c
2571ac_cpp='$CPP $CPPFLAGS'
2572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575
2576
2577PACKAGE=sylpheed
2578
2579MAJOR_VERSION=3
2580MINOR_VERSION=7
2581MICRO_VERSION=0
2582INTERFACE_AGE=0
2583BINARY_AGE=0
2584EXTRA_VERSION=
2585BUILD_REVISION=1185
2586VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
2587
2588
2589ac_aux_dir=
2590for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2591 if test -f "$ac_dir/install-sh"; then
2592 ac_aux_dir=$ac_dir
2593 ac_install_sh="$ac_aux_dir/install-sh -c"
2594 break
2595 elif test -f "$ac_dir/install.sh"; then
2596 ac_aux_dir=$ac_dir
2597 ac_install_sh="$ac_aux_dir/install.sh -c"
2598 break
2599 elif test -f "$ac_dir/shtool"; then
2600 ac_aux_dir=$ac_dir
2601 ac_install_sh="$ac_aux_dir/shtool install -c"
2602 break
2603 fi
2604done
2605if test -z "$ac_aux_dir"; then
2606 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2607fi
2608
2609# These three variables are undocumented and unsupported,
2610# and are intended to be withdrawn in a future Autoconf release.
2611# They can cause serious problems if a builder's source tree is in a directory
2612# whose full name contains unusual characters.
2613ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2614ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2615ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2616
2617
2618# Make sure we can run config.sub.
2619$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2620 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2621
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2623$as_echo_n "checking build system type... " >&6; }
2624if ${ac_cv_build+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626else
2627 ac_build_alias=$build_alias
2628test "x$ac_build_alias" = x &&
2629 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2630test "x$ac_build_alias" = x &&
2631 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2632ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2633 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2634
2635fi
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2637$as_echo "$ac_cv_build" >&6; }
2638case $ac_cv_build in
2639*-*-*) ;;
2640*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2641esac
2642build=$ac_cv_build
2643ac_save_IFS=$IFS; IFS='-'
2644set x $ac_cv_build
2645shift
2646build_cpu=$1
2647build_vendor=$2
2648shift; shift
2649# Remember, the first character of IFS is used to create $*,
2650# except with old shells:
2651build_os=$*
2652IFS=$ac_save_IFS
2653case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2654
2655
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2657$as_echo_n "checking host system type... " >&6; }
2658if ${ac_cv_host+:} false; then :
2659 $as_echo_n "(cached) " >&6
2660else
2661 if test "x$host_alias" = x; then
2662 ac_cv_host=$ac_cv_build
2663else
2664 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2666fi
2667
2668fi
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2670$as_echo "$ac_cv_host" >&6; }
2671case $ac_cv_host in
2672*-*-*) ;;
2673*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2674esac
2675host=$ac_cv_host
2676ac_save_IFS=$IFS; IFS='-'
2677set x $ac_cv_host
2678shift
2679host_cpu=$1
2680host_vendor=$2
2681shift; shift
2682# Remember, the first character of IFS is used to create $*,
2683# except with old shells:
2684host_os=$*
2685IFS=$ac_save_IFS
2686case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2687
2688
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2690$as_echo_n "checking target system type... " >&6; }
2691if ${ac_cv_target+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693else
2694 if test "x$target_alias" = x; then
2695 ac_cv_target=$ac_cv_host
2696else
2697 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2698 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2699fi
2700
2701fi
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2703$as_echo "$ac_cv_target" >&6; }
2704case $ac_cv_target in
2705*-*-*) ;;
2706*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2707esac
2708target=$ac_cv_target
2709ac_save_IFS=$IFS; IFS='-'
2710set x $ac_cv_target
2711shift
2712target_cpu=$1
2713target_vendor=$2
2714shift; shift
2715# Remember, the first character of IFS is used to create $*,
2716# except with old shells:
2717target_os=$*
2718IFS=$ac_save_IFS
2719case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2720
2721
2722# The aliases save the names the user supplied, while $host etc.
2723# will get canonicalized.
2724test -n "$target_alias" &&
2725 test "$program_prefix$program_suffix$program_transform_name" = \
2726 NONENONEs,x,x, &&
2727 program_prefix=${target_alias}-
2728
2729
2730am__api_version='1.14'
2731
2732# Find a good install program. We prefer a C program (faster),
2733# so one script is as good as another. But avoid the broken or
2734# incompatible versions:
2735# SysV /etc/install, /usr/sbin/install
2736# SunOS /usr/etc/install
2737# IRIX /sbin/install
2738# AIX /bin/install
2739# AmigaOS /C/install, which installs bootblocks on floppy discs
2740# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2741# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2742# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2743# OS/2's system install, which has a completely different semantic
2744# ./install, which can be erroneously created by make from ./install.sh.
2745# Reject install programs that cannot install multiple files.
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2747$as_echo_n "checking for a BSD-compatible install... " >&6; }
2748if test -z "$INSTALL"; then
2749if ${ac_cv_path_install+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 # Account for people who put trailing slashes in PATH elements.
2758case $as_dir/ in #((
2759 ./ | .// | /[cC]/* | \
2760 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2761 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2762 /usr/ucb/* ) ;;
2763 *)
2764 # OSF1 and SCO ODT 3.0 have their own names for install.
2765 # Don't use installbsd from OSF since it installs stuff as root
2766 # by default.
2767 for ac_prog in ginstall scoinst install; do
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2770 if test $ac_prog = install &&
2771 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2772 # AIX install. It has an incompatible calling convention.
2773 :
2774 elif test $ac_prog = install &&
2775 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2776 # program-specific install script used by HP pwplus--don't use.
2777 :
2778 else
2779 rm -rf conftest.one conftest.two conftest.dir
2780 echo one > conftest.one
2781 echo two > conftest.two
2782 mkdir conftest.dir
2783 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2784 test -s conftest.one && test -s conftest.two &&
2785 test -s conftest.dir/conftest.one &&
2786 test -s conftest.dir/conftest.two
2787 then
2788 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2789 break 3
2790 fi
2791 fi
2792 fi
2793 done
2794 done
2795 ;;
2796esac
2797
2798 done
2799IFS=$as_save_IFS
2800
2801rm -rf conftest.one conftest.two conftest.dir
2802
2803fi
2804 if test "${ac_cv_path_install+set}" = set; then
2805 INSTALL=$ac_cv_path_install
2806 else
2807 # As a last resort, use the slow shell script. Don't cache a
2808 # value for INSTALL within a source directory, because that will
2809 # break other packages using the cache if that directory is
2810 # removed, or if the value is a relative name.
2811 INSTALL=$ac_install_sh
2812 fi
2813fi
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2815$as_echo "$INSTALL" >&6; }
2816
2817# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2818# It thinks the first close brace ends the variable substitution.
2819test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2820
2821test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2822
2823test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2824
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2826$as_echo_n "checking whether build environment is sane... " >&6; }
2827# Reject unsafe characters in $srcdir or the absolute working directory
2828# name. Accept space and tab only in the latter.
2829am_lf='
2830'
2831case `pwd` in
2832 *[\\\"\#\$\&\'\`$am_lf]*)
2833 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2834esac
2835case $srcdir in
2836 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2837 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2838esac
2839
2840# Do 'set' in a subshell so we don't clobber the current shell's
2841# arguments. Must try -L first in case configure is actually a
2842# symlink; some systems play weird games with the mod time of symlinks
2843# (eg FreeBSD returns the mod time of the symlink's containing
2844# directory).
2845if (
2846 am_has_slept=no
2847 for am_try in 1 2; do
2848 echo "timestamp, slept: $am_has_slept" > conftest.file
2849 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2850 if test "$*" = "X"; then
2851 # -L didn't work.
2852 set X `ls -t "$srcdir/configure" conftest.file`
2853 fi
2854 if test "$*" != "X $srcdir/configure conftest.file" \
2855 && test "$*" != "X conftest.file $srcdir/configure"; then
2856
2857 # If neither matched, then we have a broken ls. This can happen
2858 # if, for instance, CONFIG_SHELL is bash and it inherits a
2859 # broken ls alias from the environment. This has actually
2860 # happened. Such a system could not be considered "sane".
2861 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2862 alias in your environment" "$LINENO" 5
2863 fi
2864 if test "$2" = conftest.file || test $am_try -eq 2; then
2865 break
2866 fi
2867 # Just in case.
2868 sleep 1
2869 am_has_slept=yes
2870 done
2871 test "$2" = conftest.file
2872 )
2873then
2874 # Ok.
2875 :
2876else
2877 as_fn_error $? "newly created file is older than distributed files!
2878Check your system clock" "$LINENO" 5
2879fi
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881$as_echo "yes" >&6; }
2882# If we didn't sleep, we still need to ensure time stamps of config.status and
2883# generated files are strictly newer.
2884am_sleep_pid=
2885if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2886 ( sleep 1 ) &
2887 am_sleep_pid=$!
2888fi
2889
2890rm -f conftest.file
2891
2892test "$program_prefix" != NONE &&
2893 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2894# Use a double $ so make ignores it.
2895test "$program_suffix" != NONE &&
2896 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2897# Double any \ or $.
2898# By default was `s,x,x', remove it if useless.
2899ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2900program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2901
2902# expand $ac_aux_dir to an absolute path
2903am_aux_dir=`cd $ac_aux_dir && pwd`
2904
2905if test x"${MISSING+set}" != xset; then
2906 case $am_aux_dir in
2907 *\ * | *\ *)
2908 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2909 *)
2910 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2911 esac
2912fi
2913# Use eval to expand $SHELL
2914if eval "$MISSING --is-lightweight"; then
2915 am_missing_run="$MISSING "
2916else
2917 am_missing_run=
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2919$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2920fi
2921
2922if test x"${install_sh}" != xset; then
2923 case $am_aux_dir in
2924 *\ * | *\ *)
2925 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2926 *)
2927 install_sh="\${SHELL} $am_aux_dir/install-sh"
2928 esac
2929fi
2930
2931# Installed binaries are usually stripped using 'strip' when the user
2932# run "make install-strip". However 'strip' might not be the right
2933# tool to use in cross-compilation environments, therefore Automake
2934# will honor the 'STRIP' environment variable to overrule this program.
2935if test "$cross_compiling" != no; then
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2938set dummy ${ac_tool_prefix}strip; ac_word=$2
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if ${ac_cv_prog_STRIP+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943else
2944 if test -n "$STRIP"; then
2945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2946else
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958done
2959 done
2960IFS=$as_save_IFS
2961
2962fi
2963fi
2964STRIP=$ac_cv_prog_STRIP
2965if test -n "$STRIP"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2967$as_echo "$STRIP" >&6; }
2968else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970$as_echo "no" >&6; }
2971fi
2972
2973
2974fi
2975if test -z "$ac_cv_prog_STRIP"; then
2976 ac_ct_STRIP=$STRIP
2977 # Extract the first word of "strip", so it can be a program name with args.
2978set dummy strip; ac_word=$2
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980$as_echo_n "checking for $ac_word... " >&6; }
2981if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983else
2984 if test -n "$ac_ct_STRIP"; then
2985 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2986else
2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988for as_dir in $PATH
2989do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_ac_ct_STRIP="strip"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998done
2999 done
3000IFS=$as_save_IFS
3001
3002fi
3003fi
3004ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3005if test -n "$ac_ct_STRIP"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3007$as_echo "$ac_ct_STRIP" >&6; }
3008else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010$as_echo "no" >&6; }
3011fi
3012
3013 if test "x$ac_ct_STRIP" = x; then
3014 STRIP=":"
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017yes:)
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020ac_tool_warned=yes ;;
3021esac
3022 STRIP=$ac_ct_STRIP
3023 fi
3024else
3025 STRIP="$ac_cv_prog_STRIP"
3026fi
3027
3028fi
3029INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3030
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3032$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3033if test -z "$MKDIR_P"; then
3034 if ${ac_cv_path_mkdir+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3039do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_prog in mkdir gmkdir; do
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3045 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3046 'mkdir (GNU coreutils) '* | \
3047 'mkdir (coreutils) '* | \
3048 'mkdir (fileutils) '4.1*)
3049 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3050 break 3;;
3051 esac
3052 done
3053 done
3054 done
3055IFS=$as_save_IFS
3056
3057fi
3058
3059 test -d ./--version && rmdir ./--version
3060 if test "${ac_cv_path_mkdir+set}" = set; then
3061 MKDIR_P="$ac_cv_path_mkdir -p"
3062 else
3063 # As a last resort, use the slow shell script. Don't cache a
3064 # value for MKDIR_P within a source directory, because that will
3065 # break other packages using the cache if that directory is
3066 # removed, or if the value is a relative name.
3067 MKDIR_P="$ac_install_sh -d"
3068 fi
3069fi
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3071$as_echo "$MKDIR_P" >&6; }
3072
3073for ac_prog in gawk mawk nawk awk
3074do
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076set dummy $ac_prog; ac_word=$2
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078$as_echo_n "checking for $ac_word... " >&6; }
3079if ${ac_cv_prog_AWK+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081else
3082 if test -n "$AWK"; then
3083 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3084else
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_AWK="$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096done
3097 done
3098IFS=$as_save_IFS
3099
3100fi
3101fi
3102AWK=$ac_cv_prog_AWK
3103if test -n "$AWK"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3105$as_echo "$AWK" >&6; }
3106else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108$as_echo "no" >&6; }
3109fi
3110
3111
3112 test -n "$AWK" && break
3113done
3114
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3116$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3117set x ${MAKE-make}
3118ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3119if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121else
3122 cat >conftest.make <<\_ACEOF
3123SHELL = /bin/sh
3124all:
3125 @echo '@@@%%%=$(MAKE)=@@@%%%'
3126_ACEOF
3127# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3128case `${MAKE-make} -f conftest.make 2>/dev/null` in
3129 *@@@%%%=?*=@@@%%%*)
3130 eval ac_cv_prog_make_${ac_make}_set=yes;;
3131 *)
3132 eval ac_cv_prog_make_${ac_make}_set=no;;
3133esac
3134rm -f conftest.make
3135fi
3136if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138$as_echo "yes" >&6; }
3139 SET_MAKE=
3140else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142$as_echo "no" >&6; }
3143 SET_MAKE="MAKE=${MAKE-make}"
3144fi
3145
3146rm -rf .tst 2>/dev/null
3147mkdir .tst 2>/dev/null
3148if test -d .tst; then
3149 am__leading_dot=.
3150else
3151 am__leading_dot=_
3152fi
3153rmdir .tst 2>/dev/null
3154
3155# Check whether --enable-silent-rules was given.
3156if test "${enable_silent_rules+set}" = set; then :
3157 enableval=$enable_silent_rules;
3158fi
3159
3160case $enable_silent_rules in # (((
3161 yes) AM_DEFAULT_VERBOSITY=0;;
3162 no) AM_DEFAULT_VERBOSITY=1;;
3163 *) AM_DEFAULT_VERBOSITY=1;;
3164esac
3165am_make=${MAKE-make}
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3167$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3168if ${am_cv_make_support_nested_variables+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170else
3171 if $as_echo 'TRUE=$(BAR$(V))
3172BAR0=false
3173BAR1=true
3174V=1
3175am__doit:
3176 @$(TRUE)
3177.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3178 am_cv_make_support_nested_variables=yes
3179else
3180 am_cv_make_support_nested_variables=no
3181fi
3182fi
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3184$as_echo "$am_cv_make_support_nested_variables" >&6; }
3185if test $am_cv_make_support_nested_variables = yes; then
3186 AM_V='$(V)'
3187 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3188else
3189 AM_V=$AM_DEFAULT_VERBOSITY
3190 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3191fi
3192AM_BACKSLASH='\'
3193
3194if test "`cd $srcdir && pwd`" != "`pwd`"; then
3195 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3196 # is not polluted with repeated "-I."
3197 am__isrc=' -I$(srcdir)'
3198 # test to see if srcdir already configured
3199 if test -f $srcdir/config.status; then
3200 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3201 fi
3202fi
3203
3204# test whether we have cygpath
3205if test -z "$CYGPATH_W"; then
3206 if (cygpath --version) >/dev/null 2>/dev/null; then
3207 CYGPATH_W='cygpath -w'
3208 else
3209 CYGPATH_W=echo
3210 fi
3211fi
3212
3213
3214# Define the identity of the package.
3215
3216 PACKAGE=$PACKAGE
3217 VERSION=$VERSION
3218
3219
3220# Some tools Automake needs.
3221
3222ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3223
3224
3225AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3226
3227
3228AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3229
3230
3231AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3232
3233
3234MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3235
3236# For better backward compatibility. To be removed once Automake 1.9.x
3237# dies out for good. For more background, see:
3238# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3239# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3240mkdir_p='$(MKDIR_P)'
3241
3242# We need awk for the "check" target. The system "awk" is bad on
3243# some platforms.
3244# Always define AMTAR for backward compatibility. Yes, it's still used
3245# in the wild :-( We should find a proper way to deprecate it ...
3246AMTAR='$${TAR-tar}'
3247
3248
3249# We'll loop over all known methods to create a tar archive until one works.
3250_am_tools='gnutar pax cpio none'
3251
3252am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3253
3254
3255
3256
3257
3258
3259# POSIX will say in a future version that running "rm -f" with no argument
3260# is OK; and we want to be able to make that assumption in our Makefile
3261# recipes. So use an aggressive probe to check that the usage we want is
3262# actually supported "in the wild" to an acceptable degree.
3263# See automake bug#10828.
3264# To make any issue more visible, cause the running configure to be aborted
3265# by default if the 'rm' program in use doesn't match our expectations; the
3266# user can still override this though.
3267if rm -f && rm -fr && rm -rf; then : OK; else
3268 cat >&2 <<'END'
3269Oops!
3270
3271Your 'rm' program seems unable to run without file operands specified
3272on the command line, even when the '-f' option is present. This is contrary
3273to the behaviour of most rm programs out there, and not conforming with
3274the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3275
3276Please tell bug-automake@gnu.org about your system, including the value
3277of your $PATH and any error possibly output before this message. This
3278can help us improve future automake versions.
3279
3280END
3281 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3282 echo 'Configuration will proceed anyway, since you have set the' >&2
3283 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3284 echo >&2
3285 else
3286 cat >&2 <<'END'
3287Aborting the configuration process, to ensure you take notice of the issue.
3288
3289You can download and install GNU coreutils to get an 'rm' implementation
3290that behaves properly: <http://www.gnu.org/software/coreutils/>.
3291
3292If you want to complete the configuration process using your problematic
3293'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3294to "yes", and re-run configure.
3295
3296END
3297 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3298 fi
3299fi
3300# Check whether --enable-silent-rules was given.
3301if test "${enable_silent_rules+set}" = set; then :
3302 enableval=$enable_silent_rules;
3303fi
3304
3305case $enable_silent_rules in # (((
3306 yes) AM_DEFAULT_VERBOSITY=0;;
3307 no) AM_DEFAULT_VERBOSITY=1;;
3308 *) AM_DEFAULT_VERBOSITY=0;;
3309esac
3310am_make=${MAKE-make}
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3312$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3313if ${am_cv_make_support_nested_variables+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315else
3316 if $as_echo 'TRUE=$(BAR$(V))
3317BAR0=false
3318BAR1=true
3319V=1
3320am__doit:
3321 @$(TRUE)
3322.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3323 am_cv_make_support_nested_variables=yes
3324else
3325 am_cv_make_support_nested_variables=no
3326fi
3327fi
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3329$as_echo "$am_cv_make_support_nested_variables" >&6; }
3330if test $am_cv_make_support_nested_variables = yes; then
3331 AM_V='$(V)'
3332 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3333else
3334 AM_V=$AM_DEFAULT_VERBOSITY
3335 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3336fi
3337AM_BACKSLASH='\'
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348if test "x$DEVEL_VERSION" != "x"; then
3349
3350$as_echo "#define DEVEL_VERSION 1" >>confdefs.h
3351
3352fi
3353
3354LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
3355LT_CURRENT=4
3356LT_REVISION=0
3357LT_AGE=3
3358
3359
3360
3361
3362
3363ac_config_headers="$ac_config_headers config.h"
3364
3365
3366
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3368$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3369 # Check whether --enable-maintainer-mode was given.
3370if test "${enable_maintainer_mode+set}" = set; then :
3371 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3372else
3373 USE_MAINTAINER_MODE=no
3374fi
3375
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3377$as_echo "$USE_MAINTAINER_MODE" >&6; }
3378 if test $USE_MAINTAINER_MODE = yes; then
3379 MAINTAINER_MODE_TRUE=
3380 MAINTAINER_MODE_FALSE='#'
3381else
3382 MAINTAINER_MODE_TRUE='#'
3383 MAINTAINER_MODE_FALSE=
3384fi
3385
3386 MAINT=$MAINTAINER_MODE_TRUE
3387
3388
3389
3390ac_ext=c
3391ac_cpp='$CPP $CPPFLAGS'
3392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395if test -n "$ac_tool_prefix"; then
3396 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3397set dummy ${ac_tool_prefix}gcc; ac_word=$2
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399$as_echo_n "checking for $ac_word... " >&6; }
3400if ${ac_cv_prog_CC+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402else
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3405else
3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH
3408do
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3416 fi
3417done
3418 done
3419IFS=$as_save_IFS
3420
3421fi
3422fi
3423CC=$ac_cv_prog_CC
3424if test -n "$CC"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426$as_echo "$CC" >&6; }
3427else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429$as_echo "no" >&6; }
3430fi
3431
3432
3433fi
3434if test -z "$ac_cv_prog_CC"; then
3435 ac_ct_CC=$CC
3436 # Extract the first word of "gcc", so it can be a program name with args.
3437set dummy gcc; ac_word=$2
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439$as_echo_n "checking for $ac_word... " >&6; }
3440if ${ac_cv_prog_ac_ct_CC+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442else
3443 if test -n "$ac_ct_CC"; then
3444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3445else
3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH
3448do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 ac_cv_prog_ac_ct_CC="gcc"
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3456 fi
3457done
3458 done
3459IFS=$as_save_IFS
3460
3461fi
3462fi
3463ac_ct_CC=$ac_cv_prog_ac_ct_CC
3464if test -n "$ac_ct_CC"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3466$as_echo "$ac_ct_CC" >&6; }
3467else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469$as_echo "no" >&6; }
3470fi
3471
3472 if test "x$ac_ct_CC" = x; then
3473 CC=""
3474 else
3475 case $cross_compiling:$ac_tool_warned in
3476yes:)
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479ac_tool_warned=yes ;;
3480esac
3481 CC=$ac_ct_CC
3482 fi
3483else
3484 CC="$ac_cv_prog_CC"
3485fi
3486
3487if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3490set dummy ${ac_tool_prefix}cc; ac_word=$2
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492$as_echo_n "checking for $ac_word... " >&6; }
3493if ${ac_cv_prog_CC+:} false; then :
3494 $as_echo_n "(cached) " >&6
3495else
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3498else
3499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500for as_dir in $PATH
3501do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506 ac_cv_prog_CC="${ac_tool_prefix}cc"
3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3509 fi
3510done
3511 done
3512IFS=$as_save_IFS
3513
3514fi
3515fi
3516CC=$ac_cv_prog_CC
3517if test -n "$CC"; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519$as_echo "$CC" >&6; }
3520else
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522$as_echo "no" >&6; }
3523fi
3524
3525
3526 fi
3527fi
3528if test -z "$CC"; then
3529 # Extract the first word of "cc", so it can be a program name with args.
3530set dummy cc; ac_word=$2
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532$as_echo_n "checking for $ac_word... " >&6; }
3533if ${ac_cv_prog_CC+:} false; then :
3534 $as_echo_n "(cached) " >&6
3535else
3536 if test -n "$CC"; then
3537 ac_cv_prog_CC="$CC" # Let the user override the test.
3538else
3539 ac_prog_rejected=no
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3548 ac_prog_rejected=yes
3549 continue
3550 fi
3551 ac_cv_prog_CC="cc"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3554 fi
3555done
3556 done
3557IFS=$as_save_IFS
3558
3559if test $ac_prog_rejected = yes; then
3560 # We found a bogon in the path, so make sure we never use it.
3561 set dummy $ac_cv_prog_CC
3562 shift
3563 if test $# != 0; then
3564 # We chose a different compiler from the bogus one.
3565 # However, it has the same basename, so the bogon will be chosen
3566 # first if we set CC to just the basename; use the full file name.
3567 shift
3568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3569 fi
3570fi
3571fi
3572fi
3573CC=$ac_cv_prog_CC
3574if test -n "$CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576$as_echo "$CC" >&6; }
3577else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579$as_echo "no" >&6; }
3580fi
3581
3582
3583fi
3584if test -z "$CC"; then
3585 if test -n "$ac_tool_prefix"; then
3586 for ac_prog in cl.exe
3587 do
3588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3589set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591$as_echo_n "checking for $ac_word... " >&6; }
3592if ${ac_cv_prog_CC+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594else
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597else
3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH
3600do
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3608 fi
3609done
3610 done
3611IFS=$as_save_IFS
3612
3613fi
3614fi
3615CC=$ac_cv_prog_CC
3616if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618$as_echo "$CC" >&6; }
3619else
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621$as_echo "no" >&6; }
3622fi
3623
3624
3625 test -n "$CC" && break
3626 done
3627fi
3628if test -z "$CC"; then
3629 ac_ct_CC=$CC
3630 for ac_prog in cl.exe
3631do
3632 # Extract the first word of "$ac_prog", so it can be a program name with args.
3633set dummy $ac_prog; ac_word=$2
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635$as_echo_n "checking for $ac_word... " >&6; }
3636if ${ac_cv_prog_ac_ct_CC+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638else
3639 if test -n "$ac_ct_CC"; then
3640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3641else
3642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 ac_cv_prog_ac_ct_CC="$ac_prog"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3652 fi
3653done
3654 done
3655IFS=$as_save_IFS
3656
3657fi
3658fi
3659ac_ct_CC=$ac_cv_prog_ac_ct_CC
3660if test -n "$ac_ct_CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3662$as_echo "$ac_ct_CC" >&6; }
3663else
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665$as_echo "no" >&6; }
3666fi
3667
3668
3669 test -n "$ac_ct_CC" && break
3670done
3671
3672 if test "x$ac_ct_CC" = x; then
3673 CC=""
3674 else
3675 case $cross_compiling:$ac_tool_warned in
3676yes:)
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3679ac_tool_warned=yes ;;
3680esac
3681 CC=$ac_ct_CC
3682 fi
3683fi
3684
3685fi
3686
3687
3688test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690as_fn_error $? "no acceptable C compiler found in \$PATH
3691See \`config.log' for more details" "$LINENO" 5; }
3692
3693# Provide some information about the compiler.
3694$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3695set X $ac_compile
3696ac_compiler=$2
3697for ac_option in --version -v -V -qversion; do
3698 { { ac_try="$ac_compiler $ac_option >&5"
3699case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702esac
3703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704$as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3706 ac_status=$?
3707 if test -s conftest.err; then
3708 sed '10a\
3709... rest of stderr output deleted ...
3710 10q' conftest.err >conftest.er1
3711 cat conftest.er1 >&5
3712 fi
3713 rm -f conftest.er1 conftest.err
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }
3716done
3717
3718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719/* end confdefs.h. */
3720
3721int
3722main ()
3723{
3724
3725 ;
3726 return 0;
3727}
3728_ACEOF
3729ac_clean_files_save=$ac_clean_files
3730ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3731# Try to create an executable without -o first, disregard a.out.
3732# It will help us diagnose broken compilers, and finding out an intuition
3733# of exeext.
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3735$as_echo_n "checking whether the C compiler works... " >&6; }
3736ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3737
3738# The possible output files:
3739ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3740
3741ac_rmfiles=
3742for ac_file in $ac_files
3743do
3744 case $ac_file in
3745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3746 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3747 esac
3748done
3749rm -f $ac_rmfiles
3750
3751if { { ac_try="$ac_link_default"
3752case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755esac
3756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757$as_echo "$ac_try_echo"; } >&5
3758 (eval "$ac_link_default") 2>&5
3759 ac_status=$?
3760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761 test $ac_status = 0; }; then :
3762 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3763# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3764# in a Makefile. We should not override ac_cv_exeext if it was cached,
3765# so that the user can short-circuit this test for compilers unknown to
3766# Autoconf.
3767for ac_file in $ac_files ''
3768do
3769 test -f "$ac_file" || continue
3770 case $ac_file in
3771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3772 ;;
3773 [ab].out )
3774 # We found the default executable, but exeext='' is most
3775 # certainly right.
3776 break;;
3777 *.* )
3778 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3779 then :; else
3780 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3781 fi
3782 # We set ac_cv_exeext here because the later test for it is not
3783 # safe: cross compilers may not add the suffix if given an `-o'
3784 # argument, so we may need to know it at that point already.
3785 # Even if this section looks crufty: it has the advantage of
3786 # actually working.
3787 break;;
3788 * )
3789 break;;
3790 esac
3791done
3792test "$ac_cv_exeext" = no && ac_cv_exeext=
3793
3794else
3795 ac_file=''
3796fi
3797if test -z "$ac_file"; then :
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799$as_echo "no" >&6; }
3800$as_echo "$as_me: failed program was:" >&5
3801sed 's/^/| /' conftest.$ac_ext >&5
3802
3803{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805as_fn_error 77 "C compiler cannot create executables
3806See \`config.log' for more details" "$LINENO" 5; }
3807else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3809$as_echo "yes" >&6; }
3810fi
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3812$as_echo_n "checking for C compiler default output file name... " >&6; }
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3814$as_echo "$ac_file" >&6; }
3815ac_exeext=$ac_cv_exeext
3816
3817rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3818ac_clean_files=$ac_clean_files_save
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3820$as_echo_n "checking for suffix of executables... " >&6; }
3821if { { ac_try="$ac_link"
3822case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825esac
3826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827$as_echo "$ac_try_echo"; } >&5
3828 (eval "$ac_link") 2>&5
3829 ac_status=$?
3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }; then :
3832 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3833# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3834# work properly (i.e., refer to `conftest.exe'), while it won't with
3835# `rm'.
3836for ac_file in conftest.exe conftest conftest.*; do
3837 test -f "$ac_file" || continue
3838 case $ac_file in
3839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3840 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3841 break;;
3842 * ) break;;
3843 esac
3844done
3845else
3846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3849See \`config.log' for more details" "$LINENO" 5; }
3850fi
3851rm -f conftest conftest$ac_cv_exeext
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3853$as_echo "$ac_cv_exeext" >&6; }
3854
3855rm -f conftest.$ac_ext
3856EXEEXT=$ac_cv_exeext
3857ac_exeext=$EXEEXT
3858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859/* end confdefs.h. */
3860#include <stdio.h>
3861int
3862main ()
3863{
3864FILE *f = fopen ("conftest.out", "w");
3865 return ferror (f) || fclose (f) != 0;
3866
3867 ;
3868 return 0;
3869}
3870_ACEOF
3871ac_clean_files="$ac_clean_files conftest.out"
3872# Check that the compiler produces executables we can run. If not, either
3873# the compiler is broken, or we cross compile.
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3875$as_echo_n "checking whether we are cross compiling... " >&6; }
3876if test "$cross_compiling" != yes; then
3877 { { ac_try="$ac_link"
3878case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881esac
3882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883$as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_link") 2>&5
3885 ac_status=$?
3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }
3888 if { ac_try='./conftest$ac_cv_exeext'
3889 { { case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892esac
3893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894$as_echo "$ac_try_echo"; } >&5
3895 (eval "$ac_try") 2>&5
3896 ac_status=$?
3897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898 test $ac_status = 0; }; }; then
3899 cross_compiling=no
3900 else
3901 if test "$cross_compiling" = maybe; then
3902 cross_compiling=yes
3903 else
3904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906as_fn_error $? "cannot run C compiled programs.
3907If you meant to cross compile, use \`--host'.
3908See \`config.log' for more details" "$LINENO" 5; }
3909 fi
3910 fi
3911fi
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913$as_echo "$cross_compiling" >&6; }
3914
3915rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3916ac_clean_files=$ac_clean_files_save
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3918$as_echo_n "checking for suffix of object files... " >&6; }
3919if ${ac_cv_objext+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921else
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923/* end confdefs.h. */
3924
3925int
3926main ()
3927{
3928
3929 ;
3930 return 0;
3931}
3932_ACEOF
3933rm -f conftest.o conftest.obj
3934if { { ac_try="$ac_compile"
3935case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938esac
3939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940$as_echo "$ac_try_echo"; } >&5
3941 (eval "$ac_compile") 2>&5
3942 ac_status=$?
3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }; then :
3945 for ac_file in conftest.o conftest.obj conftest.*; do
3946 test -f "$ac_file" || continue;
3947 case $ac_file in
3948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3950 break;;
3951 esac
3952done
3953else
3954 $as_echo "$as_me: failed program was:" >&5
3955sed 's/^/| /' conftest.$ac_ext >&5
3956
3957{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959as_fn_error $? "cannot compute suffix of object files: cannot compile
3960See \`config.log' for more details" "$LINENO" 5; }
3961fi
3962rm -f conftest.$ac_cv_objext conftest.$ac_ext
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3965$as_echo "$ac_cv_objext" >&6; }
3966OBJEXT=$ac_cv_objext
3967ac_objext=$OBJEXT
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3969$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3970if ${ac_cv_c_compiler_gnu+:} false; then :
3971 $as_echo_n "(cached) " >&6
3972else
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974/* end confdefs.h. */
3975
3976int
3977main ()
3978{
3979#ifndef __GNUC__
3980 choke me
3981#endif
3982
3983 ;
3984 return 0;
3985}
3986_ACEOF
3987if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_compiler_gnu=yes
3989else
3990 ac_compiler_gnu=no
3991fi
3992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993ac_cv_c_compiler_gnu=$ac_compiler_gnu
3994
3995fi
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3997$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3998if test $ac_compiler_gnu = yes; then
3999 GCC=yes
4000else
4001 GCC=
4002fi
4003ac_test_CFLAGS=${CFLAGS+set}
4004ac_save_CFLAGS=$CFLAGS
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4006$as_echo_n "checking whether $CC accepts -g... " >&6; }
4007if ${ac_cv_prog_cc_g+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009else
4010 ac_save_c_werror_flag=$ac_c_werror_flag
4011 ac_c_werror_flag=yes
4012 ac_cv_prog_cc_g=no
4013 CFLAGS="-g"
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015/* end confdefs.h. */
4016
4017int
4018main ()
4019{
4020
4021 ;
4022 return 0;
4023}
4024_ACEOF
4025if ac_fn_c_try_compile "$LINENO"; then :
4026 ac_cv_prog_cc_g=yes
4027else
4028 CFLAGS=""
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030/* end confdefs.h. */
4031
4032int
4033main ()
4034{
4035
4036 ;
4037 return 0;
4038}
4039_ACEOF
4040if ac_fn_c_try_compile "$LINENO"; then :
4041
4042else
4043 ac_c_werror_flag=$ac_save_c_werror_flag
4044 CFLAGS="-g"
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h. */
4047
4048int
4049main ()
4050{
4051
4052 ;
4053 return 0;
4054}
4055_ACEOF
4056if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_prog_cc_g=yes
4058fi
4059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060fi
4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062fi
4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_c_werror_flag=$ac_save_c_werror_flag
4065fi
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4067$as_echo "$ac_cv_prog_cc_g" >&6; }
4068if test "$ac_test_CFLAGS" = set; then
4069 CFLAGS=$ac_save_CFLAGS
4070elif test $ac_cv_prog_cc_g = yes; then
4071 if test "$GCC" = yes; then
4072 CFLAGS="-g -O2"
4073 else
4074 CFLAGS="-g"
4075 fi
4076else
4077 if test "$GCC" = yes; then
4078 CFLAGS="-O2"
4079 else
4080 CFLAGS=
4081 fi
4082fi
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4084$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4085if ${ac_cv_prog_cc_c89+:} false; then :
4086 $as_echo_n "(cached) " >&6
4087else
4088 ac_cv_prog_cc_c89=no
4089ac_save_CC=$CC
4090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091/* end confdefs.h. */
4092#include <stdarg.h>
4093#include <stdio.h>
4094struct stat;
4095/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4096struct buf { int x; };
4097FILE * (*rcsopen) (struct buf *, struct stat *, int);
4098static char *e (p, i)
4099 char **p;
4100 int i;
4101{
4102 return p[i];
4103}
4104static char *f (char * (*g) (char **, int), char **p, ...)
4105{
4106 char *s;
4107 va_list v;
4108 va_start (v,p);
4109 s = g (p, va_arg (v,int));
4110 va_end (v);
4111 return s;
4112}
4113
4114/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4115 function prototypes and stuff, but not '\xHH' hex character constants.
4116 These don't provoke an error unfortunately, instead are silently treated
4117 as 'x'. The following induces an error, until -std is added to get
4118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4119 array size at least. It's necessary to write '\x00'==0 to get something
4120 that's true only with -std. */
4121int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4122
4123/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4124 inside strings and character constants. */
4125#define FOO(x) 'x'
4126int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4127
4128int test (int i, double x);
4129struct s1 {int (*f) (int a);};
4130struct s2 {int (*f) (double a);};
4131int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4132int argc;
4133char **argv;
4134int
4135main ()
4136{
4137return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4138 ;
4139 return 0;
4140}
4141_ACEOF
4142for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4144do
4145 CC="$ac_save_CC $ac_arg"
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_cv_prog_cc_c89=$ac_arg
4148fi
4149rm -f core conftest.err conftest.$ac_objext
4150 test "x$ac_cv_prog_cc_c89" != "xno" && break
4151done
4152rm -f conftest.$ac_ext
4153CC=$ac_save_CC
4154
4155fi
4156# AC_CACHE_VAL
4157case "x$ac_cv_prog_cc_c89" in
4158 x)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4160$as_echo "none needed" >&6; } ;;
4161 xno)
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4163$as_echo "unsupported" >&6; } ;;
4164 *)
4165 CC="$CC $ac_cv_prog_cc_c89"
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4167$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4168esac
4169if test "x$ac_cv_prog_cc_c89" != xno; then :
4170
4171fi
4172
4173ac_ext=c
4174ac_cpp='$CPP $CPPFLAGS'
4175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
4179ac_ext=c
4180ac_cpp='$CPP $CPPFLAGS'
4181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4185$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4186if ${am_cv_prog_cc_c_o+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188else
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190/* end confdefs.h. */
4191
4192int
4193main ()
4194{
4195
4196 ;
4197 return 0;
4198}
4199_ACEOF
4200 # Make sure it works both with $CC and with simple cc.
4201 # Following AC_PROG_CC_C_O, we do the test twice because some
4202 # compilers refuse to overwrite an existing .o file with -o,
4203 # though they will create one.
4204 am_cv_prog_cc_c_o=yes
4205 for am_i in 1 2; do
4206 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4207 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } \
4211 && test -f conftest2.$ac_objext; then
4212 : OK
4213 else
4214 am_cv_prog_cc_c_o=no
4215 break
4216 fi
4217 done
4218 rm -f core conftest*
4219 unset am_i
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4222$as_echo "$am_cv_prog_cc_c_o" >&6; }
4223if test "$am_cv_prog_cc_c_o" != yes; then
4224 # Losing compiler, so override with the script.
4225 # FIXME: It is wrong to rewrite CC.
4226 # But if we don't then we get into trouble of one sort or another.
4227 # A longer-term fix would be to have automake use am__CC in this case,
4228 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4229 CC="$am_aux_dir/compile $CC"
4230fi
4231ac_ext=c
4232ac_cpp='$CPP $CPPFLAGS'
4233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236
4237DEPDIR="${am__leading_dot}deps"
4238
4239ac_config_commands="$ac_config_commands depfiles"
4240
4241
4242am_make=${MAKE-make}
4243cat > confinc << 'END'
4244am__doit:
4245 @echo this is the am__doit target
4246.PHONY: am__doit
4247END
4248# If we don't find an include directive, just comment out the code.
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4250$as_echo_n "checking for style of include used by $am_make... " >&6; }
4251am__include="#"
4252am__quote=
4253_am_result=none
4254# First try GNU make style include.
4255echo "include confinc" > confmf
4256# Ignore all kinds of additional output from 'make'.
4257case `$am_make -s -f confmf 2> /dev/null` in #(
4258*the\ am__doit\ target*)
4259 am__include=include
4260 am__quote=
4261 _am_result=GNU
4262 ;;
4263esac
4264# Now try BSD make style include.
4265if test "$am__include" = "#"; then
4266 echo '.include "confinc"' > confmf
4267 case `$am_make -s -f confmf 2> /dev/null` in #(
4268 *the\ am__doit\ target*)
4269 am__include=.include
4270 am__quote="\""
4271 _am_result=BSD
4272 ;;
4273 esac
4274fi
4275
4276
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4278$as_echo "$_am_result" >&6; }
4279rm -f confinc confmf
4280
4281# Check whether --enable-dependency-tracking was given.
4282if test "${enable_dependency_tracking+set}" = set; then :
4283 enableval=$enable_dependency_tracking;
4284fi
4285
4286if test "x$enable_dependency_tracking" != xno; then
4287 am_depcomp="$ac_aux_dir/depcomp"
4288 AMDEPBACKSLASH='\'
4289 am__nodep='_no'
4290fi
4291 if test "x$enable_dependency_tracking" != xno; then
4292 AMDEP_TRUE=
4293 AMDEP_FALSE='#'
4294else
4295 AMDEP_TRUE='#'
4296 AMDEP_FALSE=
4297fi
4298
4299
4300
4301depcc="$CC" am_compiler_list=
4302
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4304$as_echo_n "checking dependency style of $depcc... " >&6; }
4305if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307else
4308 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4309 # We make a subdir and do the tests there. Otherwise we can end up
4310 # making bogus files that we don't know about and never remove. For
4311 # instance it was reported that on HP-UX the gcc test will end up
4312 # making a dummy file named 'D' -- because '-MD' means "put the output
4313 # in D".
4314 rm -rf conftest.dir
4315 mkdir conftest.dir
4316 # Copy depcomp to subdir because otherwise we won't find it if we're
4317 # using a relative directory.
4318 cp "$am_depcomp" conftest.dir
4319 cd conftest.dir
4320 # We will build objects and dependencies in a subdirectory because
4321 # it helps to detect inapplicable dependency modes. For instance
4322 # both Tru64's cc and ICC support -MD to output dependencies as a
4323 # side effect of compilation, but ICC will put the dependencies in
4324 # the current directory while Tru64 will put them in the object
4325 # directory.
4326 mkdir sub
4327
4328 am_cv_CC_dependencies_compiler_type=none
4329 if test "$am_compiler_list" = ""; then
4330 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4331 fi
4332 am__universal=false
4333 case " $depcc " in #(
4334 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4335 esac
4336
4337 for depmode in $am_compiler_list; do
4338 # Setup a source with many dependencies, because some compilers
4339 # like to wrap large dependency lists on column 80 (with \), and
4340 # we should not choose a depcomp mode which is confused by this.
4341 #
4342 # We need to recreate these files for each test, as the compiler may
4343 # overwrite some of them when testing with obscure command lines.
4344 # This happens at least with the AIX C compiler.
4345 : > sub/conftest.c
4346 for i in 1 2 3 4 5 6; do
4347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4348 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4349 # Solaris 10 /bin/sh.
4350 echo '/* dummy */' > sub/conftst$i.h
4351 done
4352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4353
4354 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4355 # mode. It turns out that the SunPro C++ compiler does not properly
4356 # handle '-M -o', and we need to detect this. Also, some Intel
4357 # versions had trouble with output in subdirs.
4358 am__obj=sub/conftest.${OBJEXT-o}
4359 am__minus_obj="-o $am__obj"
4360 case $depmode in
4361 gcc)
4362 # This depmode causes a compiler race in universal mode.
4363 test "$am__universal" = false || continue
4364 ;;
4365 nosideeffect)
4366 # After this tag, mechanisms are not by side-effect, so they'll
4367 # only be used when explicitly requested.
4368 if test "x$enable_dependency_tracking" = xyes; then
4369 continue
4370 else
4371 break
4372 fi
4373 ;;
4374 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4375 # This compiler won't grok '-c -o', but also, the minuso test has
4376 # not run yet. These depmodes are late enough in the game, and
4377 # so weak that their functioning should not be impacted.
4378 am__obj=conftest.${OBJEXT-o}
4379 am__minus_obj=
4380 ;;
4381 none) break ;;
4382 esac
4383 if depmode=$depmode \
4384 source=sub/conftest.c object=$am__obj \
4385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4386 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4387 >/dev/null 2>conftest.err &&
4388 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4389 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4390 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4391 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4392 # icc doesn't choke on unknown options, it will just issue warnings
4393 # or remarks (even with -Werror). So we grep stderr for any message
4394 # that says an option was ignored or not supported.
4395 # When given -MP, icc 7.0 and 7.1 complain thusly:
4396 # icc: Command line warning: ignoring option '-M'; no argument required
4397 # The diagnosis changed in icc 8.0:
4398 # icc: Command line remark: option '-MP' not supported
4399 if (grep 'ignoring option' conftest.err ||
4400 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4401 am_cv_CC_dependencies_compiler_type=$depmode
4402 break
4403 fi
4404 fi
4405 done
4406
4407 cd ..
4408 rm -rf conftest.dir
4409else
4410 am_cv_CC_dependencies_compiler_type=none
4411fi
4412
4413fi
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4415$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4416CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4417
4418 if
4419 test "x$enable_dependency_tracking" != xno \
4420 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4421 am__fastdepCC_TRUE=
4422 am__fastdepCC_FALSE='#'
4423else
4424 am__fastdepCC_TRUE='#'
4425 am__fastdepCC_FALSE=
4426fi
4427
4428
4429# Check whether --enable-static was given.
4430if test "${enable_static+set}" = set; then :
4431 enableval=$enable_static; p=${PACKAGE-default}
4432 case $enableval in
4433 yes) enable_static=yes ;;
4434 no) enable_static=no ;;
4435 *)
4436 enable_static=no
4437 # Look at the argument we got. We use all the common list separators.
4438 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4439 for pkg in $enableval; do
4440 IFS="$lt_save_ifs"
4441 if test "X$pkg" = "X$p"; then
4442 enable_static=yes
4443 fi
4444 done
4445 IFS="$lt_save_ifs"
4446 ;;
4447 esac
4448else
4449 enable_static=no
4450fi
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4462$as_echo_n "checking for library containing strerror... " >&6; }
4463if ${ac_cv_search_strerror+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465else
4466 ac_func_search_save_LIBS=$LIBS
4467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468/* end confdefs.h. */
4469
4470/* Override any GCC internal prototype to avoid an error.
4471 Use char because int might match the return type of a GCC
4472 builtin and then its argument prototype would still apply. */
4473#ifdef __cplusplus
4474extern "C"
4475#endif
4476char strerror ();
4477int
4478main ()
4479{
4480return strerror ();
4481 ;
4482 return 0;
4483}
4484_ACEOF
4485for ac_lib in '' cposix; do
4486 if test -z "$ac_lib"; then
4487 ac_res="none required"
4488 else
4489 ac_res=-l$ac_lib
4490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4491 fi
4492 if ac_fn_c_try_link "$LINENO"; then :
4493 ac_cv_search_strerror=$ac_res
4494fi
4495rm -f core conftest.err conftest.$ac_objext \
4496 conftest$ac_exeext
4497 if ${ac_cv_search_strerror+:} false; then :
4498 break
4499fi
4500done
4501if ${ac_cv_search_strerror+:} false; then :
4502
4503else
4504 ac_cv_search_strerror=no
4505fi
4506rm conftest.$ac_ext
4507LIBS=$ac_func_search_save_LIBS
4508fi
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4510$as_echo "$ac_cv_search_strerror" >&6; }
4511ac_res=$ac_cv_search_strerror
4512if test "$ac_res" != no; then :
4513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4514
4515fi
4516
4517ac_ext=c
4518ac_cpp='$CPP $CPPFLAGS'
4519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522if test -n "$ac_tool_prefix"; then
4523 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4524set dummy ${ac_tool_prefix}gcc; ac_word=$2
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526$as_echo_n "checking for $ac_word... " >&6; }
4527if ${ac_cv_prog_CC+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529else
4530 if test -n "$CC"; then
4531 ac_cv_prog_CC="$CC" # Let the user override the test.
4532else
4533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH
4535do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4543 fi
4544done
4545 done
4546IFS=$as_save_IFS
4547
4548fi
4549fi
4550CC=$ac_cv_prog_CC
4551if test -n "$CC"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4553$as_echo "$CC" >&6; }
4554else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556$as_echo "no" >&6; }
4557fi
4558
4559
4560fi
4561if test -z "$ac_cv_prog_CC"; then
4562 ac_ct_CC=$CC
4563 # Extract the first word of "gcc", so it can be a program name with args.
4564set dummy gcc; ac_word=$2
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566$as_echo_n "checking for $ac_word... " >&6; }
4567if ${ac_cv_prog_ac_ct_CC+:} false; then :
4568 $as_echo_n "(cached) " >&6
4569else
4570 if test -n "$ac_ct_CC"; then
4571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4572else
4573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574for as_dir in $PATH
4575do
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4580 ac_cv_prog_ac_ct_CC="gcc"
4581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 break 2
4583 fi
4584done
4585 done
4586IFS=$as_save_IFS
4587
4588fi
4589fi
4590ac_ct_CC=$ac_cv_prog_ac_ct_CC
4591if test -n "$ac_ct_CC"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4593$as_echo "$ac_ct_CC" >&6; }
4594else
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596$as_echo "no" >&6; }
4597fi
4598
4599 if test "x$ac_ct_CC" = x; then
4600 CC=""
4601 else
4602 case $cross_compiling:$ac_tool_warned in
4603yes:)
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4606ac_tool_warned=yes ;;
4607esac
4608 CC=$ac_ct_CC
4609 fi
4610else
4611 CC="$ac_cv_prog_CC"
4612fi
4613
4614if test -z "$CC"; then
4615 if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4617set dummy ${ac_tool_prefix}cc; ac_word=$2
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619$as_echo_n "checking for $ac_word... " >&6; }
4620if ${ac_cv_prog_CC+:} false; then :
4621 $as_echo_n "(cached) " >&6
4622else
4623 if test -n "$CC"; then
4624 ac_cv_prog_CC="$CC" # Let the user override the test.
4625else
4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633 ac_cv_prog_CC="${ac_tool_prefix}cc"
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4636 fi
4637done
4638 done
4639IFS=$as_save_IFS
4640
4641fi
4642fi
4643CC=$ac_cv_prog_CC
4644if test -n "$CC"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4646$as_echo "$CC" >&6; }
4647else
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649$as_echo "no" >&6; }
4650fi
4651
4652
4653 fi
4654fi
4655if test -z "$CC"; then
4656 # Extract the first word of "cc", so it can be a program name with args.
4657set dummy cc; ac_word=$2
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659$as_echo_n "checking for $ac_word... " >&6; }
4660if ${ac_cv_prog_CC+:} false; then :
4661 $as_echo_n "(cached) " >&6
4662else
4663 if test -n "$CC"; then
4664 ac_cv_prog_CC="$CC" # Let the user override the test.
4665else
4666 ac_prog_rejected=no
4667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4675 ac_prog_rejected=yes
4676 continue
4677 fi
4678 ac_cv_prog_CC="cc"
4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682done
4683 done
4684IFS=$as_save_IFS
4685
4686if test $ac_prog_rejected = yes; then
4687 # We found a bogon in the path, so make sure we never use it.
4688 set dummy $ac_cv_prog_CC
4689 shift
4690 if test $# != 0; then
4691 # We chose a different compiler from the bogus one.
4692 # However, it has the same basename, so the bogon will be chosen
4693 # first if we set CC to just the basename; use the full file name.
4694 shift
4695 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4696 fi
4697fi
4698fi
4699fi
4700CC=$ac_cv_prog_CC
4701if test -n "$CC"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4703$as_echo "$CC" >&6; }
4704else
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706$as_echo "no" >&6; }
4707fi
4708
4709
4710fi
4711if test -z "$CC"; then
4712 if test -n "$ac_tool_prefix"; then
4713 for ac_prog in cl.exe
4714 do
4715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4716set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718$as_echo_n "checking for $ac_word... " >&6; }
4719if ${ac_cv_prog_CC+:} false; then :
4720 $as_echo_n "(cached) " >&6
4721else
4722 if test -n "$CC"; then
4723 ac_cv_prog_CC="$CC" # Let the user override the test.
4724else
4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4735 fi
4736done
4737 done
4738IFS=$as_save_IFS
4739
4740fi
4741fi
4742CC=$ac_cv_prog_CC
4743if test -n "$CC"; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4745$as_echo "$CC" >&6; }
4746else
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748$as_echo "no" >&6; }
4749fi
4750
4751
4752 test -n "$CC" && break
4753 done
4754fi
4755if test -z "$CC"; then
4756 ac_ct_CC=$CC
4757 for ac_prog in cl.exe
4758do
4759 # Extract the first word of "$ac_prog", so it can be a program name with args.
4760set dummy $ac_prog; ac_word=$2
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762$as_echo_n "checking for $ac_word... " >&6; }
4763if ${ac_cv_prog_ac_ct_CC+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765else
4766 if test -n "$ac_ct_CC"; then
4767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4768else
4769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770for as_dir in $PATH
4771do
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4776 ac_cv_prog_ac_ct_CC="$ac_prog"
4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 break 2
4779 fi
4780done
4781 done
4782IFS=$as_save_IFS
4783
4784fi
4785fi
4786ac_ct_CC=$ac_cv_prog_ac_ct_CC
4787if test -n "$ac_ct_CC"; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4789$as_echo "$ac_ct_CC" >&6; }
4790else
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792$as_echo "no" >&6; }
4793fi
4794
4795
4796 test -n "$ac_ct_CC" && break
4797done
4798
4799 if test "x$ac_ct_CC" = x; then
4800 CC=""
4801 else
4802 case $cross_compiling:$ac_tool_warned in
4803yes:)
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4806ac_tool_warned=yes ;;
4807esac
4808 CC=$ac_ct_CC
4809 fi
4810fi
4811
4812fi
4813
4814
4815test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4817as_fn_error $? "no acceptable C compiler found in \$PATH
4818See \`config.log' for more details" "$LINENO" 5; }
4819
4820# Provide some information about the compiler.
4821$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4822set X $ac_compile
4823ac_compiler=$2
4824for ac_option in --version -v -V -qversion; do
4825 { { ac_try="$ac_compiler $ac_option >&5"
4826case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829esac
4830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4831$as_echo "$ac_try_echo"; } >&5
4832 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4833 ac_status=$?
4834 if test -s conftest.err; then
4835 sed '10a\
4836... rest of stderr output deleted ...
4837 10q' conftest.err >conftest.er1
4838 cat conftest.er1 >&5
4839 fi
4840 rm -f conftest.er1 conftest.err
4841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4842 test $ac_status = 0; }
4843done
4844
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4846$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4847if ${ac_cv_c_compiler_gnu+:} false; then :
4848 $as_echo_n "(cached) " >&6
4849else
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851/* end confdefs.h. */
4852
4853int
4854main ()
4855{
4856#ifndef __GNUC__
4857 choke me
4858#endif
4859
4860 ;
4861 return 0;
4862}
4863_ACEOF
4864if ac_fn_c_try_compile "$LINENO"; then :
4865 ac_compiler_gnu=yes
4866else
4867 ac_compiler_gnu=no
4868fi
4869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870ac_cv_c_compiler_gnu=$ac_compiler_gnu
4871
4872fi
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4874$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4875if test $ac_compiler_gnu = yes; then
4876 GCC=yes
4877else
4878 GCC=
4879fi
4880ac_test_CFLAGS=${CFLAGS+set}
4881ac_save_CFLAGS=$CFLAGS
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4883$as_echo_n "checking whether $CC accepts -g... " >&6; }
4884if ${ac_cv_prog_cc_g+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886else
4887 ac_save_c_werror_flag=$ac_c_werror_flag
4888 ac_c_werror_flag=yes
4889 ac_cv_prog_cc_g=no
4890 CFLAGS="-g"
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892/* end confdefs.h. */
4893
4894int
4895main ()
4896{
4897
4898 ;
4899 return 0;
4900}
4901_ACEOF
4902if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_cv_prog_cc_g=yes
4904else
4905 CFLAGS=""
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907/* end confdefs.h. */
4908
4909int
4910main ()
4911{
4912
4913 ;
4914 return 0;
4915}
4916_ACEOF
4917if ac_fn_c_try_compile "$LINENO"; then :
4918
4919else
4920 ac_c_werror_flag=$ac_save_c_werror_flag
4921 CFLAGS="-g"
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923/* end confdefs.h. */
4924
4925int
4926main ()
4927{
4928
4929 ;
4930 return 0;
4931}
4932_ACEOF
4933if ac_fn_c_try_compile "$LINENO"; then :
4934 ac_cv_prog_cc_g=yes
4935fi
4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937fi
4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939fi
4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 ac_c_werror_flag=$ac_save_c_werror_flag
4942fi
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4944$as_echo "$ac_cv_prog_cc_g" >&6; }
4945if test "$ac_test_CFLAGS" = set; then
4946 CFLAGS=$ac_save_CFLAGS
4947elif test $ac_cv_prog_cc_g = yes; then
4948 if test "$GCC" = yes; then
4949 CFLAGS="-g -O2"
4950 else
4951 CFLAGS="-g"
4952 fi
4953else
4954 if test "$GCC" = yes; then
4955 CFLAGS="-O2"
4956 else
4957 CFLAGS=
4958 fi
4959fi
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4961$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4962if ${ac_cv_prog_cc_c89+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964else
4965 ac_cv_prog_cc_c89=no
4966ac_save_CC=$CC
4967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968/* end confdefs.h. */
4969#include <stdarg.h>
4970#include <stdio.h>
4971struct stat;
4972/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4973struct buf { int x; };
4974FILE * (*rcsopen) (struct buf *, struct stat *, int);
4975static char *e (p, i)
4976 char **p;
4977 int i;
4978{
4979 return p[i];
4980}
4981static char *f (char * (*g) (char **, int), char **p, ...)
4982{
4983 char *s;
4984 va_list v;
4985 va_start (v,p);
4986 s = g (p, va_arg (v,int));
4987 va_end (v);
4988 return s;
4989}
4990
4991/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4992 function prototypes and stuff, but not '\xHH' hex character constants.
4993 These don't provoke an error unfortunately, instead are silently treated
4994 as 'x'. The following induces an error, until -std is added to get
4995 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4996 array size at least. It's necessary to write '\x00'==0 to get something
4997 that's true only with -std. */
4998int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4999
5000/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5001 inside strings and character constants. */
5002#define FOO(x) 'x'
5003int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5004
5005int test (int i, double x);
5006struct s1 {int (*f) (int a);};
5007struct s2 {int (*f) (double a);};
5008int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5009int argc;
5010char **argv;
5011int
5012main ()
5013{
5014return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5015 ;
5016 return 0;
5017}
5018_ACEOF
5019for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5020 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5021do
5022 CC="$ac_save_CC $ac_arg"
5023 if ac_fn_c_try_compile "$LINENO"; then :
5024 ac_cv_prog_cc_c89=$ac_arg
5025fi
5026rm -f core conftest.err conftest.$ac_objext
5027 test "x$ac_cv_prog_cc_c89" != "xno" && break
5028done
5029rm -f conftest.$ac_ext
5030CC=$ac_save_CC
5031
5032fi
5033# AC_CACHE_VAL
5034case "x$ac_cv_prog_cc_c89" in
5035 x)
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5037$as_echo "none needed" >&6; } ;;
5038 xno)
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5040$as_echo "unsupported" >&6; } ;;
5041 *)
5042 CC="$CC $ac_cv_prog_cc_c89"
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5044$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5045esac
5046if test "x$ac_cv_prog_cc_c89" != xno; then :
5047
5048fi
5049
5050ac_ext=c
5051ac_cpp='$CPP $CPPFLAGS'
5052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055
5056ac_ext=c
5057ac_cpp='$CPP $CPPFLAGS'
5058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060ac_compiler_gnu=$ac_cv_c_compiler_gnu
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5062$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5063if ${am_cv_prog_cc_c_o+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065else
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067/* end confdefs.h. */
5068
5069int
5070main ()
5071{
5072
5073 ;
5074 return 0;
5075}
5076_ACEOF
5077 # Make sure it works both with $CC and with simple cc.
5078 # Following AC_PROG_CC_C_O, we do the test twice because some
5079 # compilers refuse to overwrite an existing .o file with -o,
5080 # though they will create one.
5081 am_cv_prog_cc_c_o=yes
5082 for am_i in 1 2; do
5083 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5084 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } \
5088 && test -f conftest2.$ac_objext; then
5089 : OK
5090 else
5091 am_cv_prog_cc_c_o=no
5092 break
5093 fi
5094 done
5095 rm -f core conftest*
5096 unset am_i
5097fi
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5099$as_echo "$am_cv_prog_cc_c_o" >&6; }
5100if test "$am_cv_prog_cc_c_o" != yes; then
5101 # Losing compiler, so override with the script.
5102 # FIXME: It is wrong to rewrite CC.
5103 # But if we don't then we get into trouble of one sort or another.
5104 # A longer-term fix would be to have automake use am__CC in this case,
5105 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5106 CC="$am_aux_dir/compile $CC"
5107fi
5108ac_ext=c
5109ac_cpp='$CPP $CPPFLAGS'
5110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112ac_compiler_gnu=$ac_cv_c_compiler_gnu
5113
5114
5115depcc="$CC" am_compiler_list=
5116
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5118$as_echo_n "checking dependency style of $depcc... " >&6; }
5119if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121else
5122 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5123 # We make a subdir and do the tests there. Otherwise we can end up
5124 # making bogus files that we don't know about and never remove. For
5125 # instance it was reported that on HP-UX the gcc test will end up
5126 # making a dummy file named 'D' -- because '-MD' means "put the output
5127 # in D".
5128 rm -rf conftest.dir
5129 mkdir conftest.dir
5130 # Copy depcomp to subdir because otherwise we won't find it if we're
5131 # using a relative directory.
5132 cp "$am_depcomp" conftest.dir
5133 cd conftest.dir
5134 # We will build objects and dependencies in a subdirectory because
5135 # it helps to detect inapplicable dependency modes. For instance
5136 # both Tru64's cc and ICC support -MD to output dependencies as a
5137 # side effect of compilation, but ICC will put the dependencies in
5138 # the current directory while Tru64 will put them in the object
5139 # directory.
5140 mkdir sub
5141
5142 am_cv_CC_dependencies_compiler_type=none
5143 if test "$am_compiler_list" = ""; then
5144 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5145 fi
5146 am__universal=false
5147 case " $depcc " in #(
5148 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5149 esac
5150
5151 for depmode in $am_compiler_list; do
5152 # Setup a source with many dependencies, because some compilers
5153 # like to wrap large dependency lists on column 80 (with \), and
5154 # we should not choose a depcomp mode which is confused by this.
5155 #
5156 # We need to recreate these files for each test, as the compiler may
5157 # overwrite some of them when testing with obscure command lines.
5158 # This happens at least with the AIX C compiler.
5159 : > sub/conftest.c
5160 for i in 1 2 3 4 5 6; do
5161 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5162 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5163 # Solaris 10 /bin/sh.
5164 echo '/* dummy */' > sub/conftst$i.h
5165 done
5166 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5167
5168 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5169 # mode. It turns out that the SunPro C++ compiler does not properly
5170 # handle '-M -o', and we need to detect this. Also, some Intel
5171 # versions had trouble with output in subdirs.
5172 am__obj=sub/conftest.${OBJEXT-o}
5173 am__minus_obj="-o $am__obj"
5174 case $depmode in
5175 gcc)
5176 # This depmode causes a compiler race in universal mode.
5177 test "$am__universal" = false || continue
5178 ;;
5179 nosideeffect)
5180 # After this tag, mechanisms are not by side-effect, so they'll
5181 # only be used when explicitly requested.
5182 if test "x$enable_dependency_tracking" = xyes; then
5183 continue
5184 else
5185 break
5186 fi
5187 ;;
5188 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5189 # This compiler won't grok '-c -o', but also, the minuso test has
5190 # not run yet. These depmodes are late enough in the game, and
5191 # so weak that their functioning should not be impacted.
5192 am__obj=conftest.${OBJEXT-o}
5193 am__minus_obj=
5194 ;;
5195 none) break ;;
5196 esac
5197 if depmode=$depmode \
5198 source=sub/conftest.c object=$am__obj \
5199 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5200 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5201 >/dev/null 2>conftest.err &&
5202 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5203 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5204 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5205 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5206 # icc doesn't choke on unknown options, it will just issue warnings
5207 # or remarks (even with -Werror). So we grep stderr for any message
5208 # that says an option was ignored or not supported.
5209 # When given -MP, icc 7.0 and 7.1 complain thusly:
5210 # icc: Command line warning: ignoring option '-M'; no argument required
5211 # The diagnosis changed in icc 8.0:
5212 # icc: Command line remark: option '-MP' not supported
5213 if (grep 'ignoring option' conftest.err ||
5214 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5215 am_cv_CC_dependencies_compiler_type=$depmode
5216 break
5217 fi
5218 fi
5219 done
5220
5221 cd ..
5222 rm -rf conftest.dir
5223else
5224 am_cv_CC_dependencies_compiler_type=none
5225fi
5226
5227fi
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5229$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5230CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5231
5232 if
5233 test "x$enable_dependency_tracking" != xno \
5234 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5235 am__fastdepCC_TRUE=
5236 am__fastdepCC_FALSE='#'
5237else
5238 am__fastdepCC_TRUE='#'
5239 am__fastdepCC_FALSE=
5240fi
5241
5242
5243am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5244
5245
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5247$as_echo_n "checking whether ln -s works... " >&6; }
5248LN_S=$as_ln_s
5249if test "$LN_S" = "ln -s"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5251$as_echo "yes" >&6; }
5252else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5254$as_echo "no, using $LN_S" >&6; }
5255fi
5256
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5258$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5259set x ${MAKE-make}
5260ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5261if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263else
5264 cat >conftest.make <<\_ACEOF
5265SHELL = /bin/sh
5266all:
5267 @echo '@@@%%%=$(MAKE)=@@@%%%'
5268_ACEOF
5269# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5270case `${MAKE-make} -f conftest.make 2>/dev/null` in
5271 *@@@%%%=?*=@@@%%%*)
5272 eval ac_cv_prog_make_${ac_make}_set=yes;;
5273 *)
5274 eval ac_cv_prog_make_${ac_make}_set=no;;
5275esac
5276rm -f conftest.make
5277fi
5278if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5280$as_echo "yes" >&6; }
5281 SET_MAKE=
5282else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284$as_echo "no" >&6; }
5285 SET_MAKE="MAKE=${MAKE-make}"
5286fi
5287
5288ac_ext=c
5289ac_cpp='$CPP $CPPFLAGS'
5290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5292ac_compiler_gnu=$ac_cv_c_compiler_gnu
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5294$as_echo_n "checking how to run the C preprocessor... " >&6; }
5295# On Suns, sometimes $CPP names a directory.
5296if test -n "$CPP" && test -d "$CPP"; then
5297 CPP=
5298fi
5299if test -z "$CPP"; then
5300 if ${ac_cv_prog_CPP+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302else
5303 # Double quotes because CPP needs to be expanded
5304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5305 do
5306 ac_preproc_ok=false
5307for ac_c_preproc_warn_flag in '' yes
5308do
5309 # Use a header file that comes with gcc, so configuring glibc
5310 # with a fresh cross-compiler works.
5311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5312 # <limits.h> exists even on freestanding compilers.
5313 # On the NeXT, cc -E runs the code through the compiler's parser,
5314 # not just through cpp. "Syntax error" is here to catch this case.
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h. */
5317#ifdef __STDC__
5318# include <limits.h>
5319#else
5320# include <assert.h>
5321#endif
5322 Syntax error
5323_ACEOF
5324if ac_fn_c_try_cpp "$LINENO"; then :
5325
5326else
5327 # Broken: fails on valid input.
5328continue
5329fi
5330rm -f conftest.err conftest.i conftest.$ac_ext
5331
5332 # OK, works on sane cases. Now check whether nonexistent headers
5333 # can be detected and how.
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h. */
5336#include <ac_nonexistent.h>
5337_ACEOF
5338if ac_fn_c_try_cpp "$LINENO"; then :
5339 # Broken: success on invalid input.
5340continue
5341else
5342 # Passes both tests.
5343ac_preproc_ok=:
5344break
5345fi
5346rm -f conftest.err conftest.i conftest.$ac_ext
5347
5348done
5349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5350rm -f conftest.i conftest.err conftest.$ac_ext
5351if $ac_preproc_ok; then :
5352 break
5353fi
5354
5355 done
5356 ac_cv_prog_CPP=$CPP
5357
5358fi
5359 CPP=$ac_cv_prog_CPP
5360else
5361 ac_cv_prog_CPP=$CPP
5362fi
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5364$as_echo "$CPP" >&6; }
5365ac_preproc_ok=false
5366for ac_c_preproc_warn_flag in '' yes
5367do
5368 # Use a header file that comes with gcc, so configuring glibc
5369 # with a fresh cross-compiler works.
5370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5371 # <limits.h> exists even on freestanding compilers.
5372 # On the NeXT, cc -E runs the code through the compiler's parser,
5373 # not just through cpp. "Syntax error" is here to catch this case.
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375/* end confdefs.h. */
5376#ifdef __STDC__
5377# include <limits.h>
5378#else
5379# include <assert.h>
5380#endif
5381 Syntax error
5382_ACEOF
5383if ac_fn_c_try_cpp "$LINENO"; then :
5384
5385else
5386 # Broken: fails on valid input.
5387continue
5388fi
5389rm -f conftest.err conftest.i conftest.$ac_ext
5390
5391 # OK, works on sane cases. Now check whether nonexistent headers
5392 # can be detected and how.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h. */
5395#include <ac_nonexistent.h>
5396_ACEOF
5397if ac_fn_c_try_cpp "$LINENO"; then :
5398 # Broken: success on invalid input.
5399continue
5400else
5401 # Passes both tests.
5402ac_preproc_ok=:
5403break
5404fi
5405rm -f conftest.err conftest.i conftest.$ac_ext
5406
5407done
5408# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5409rm -f conftest.i conftest.err conftest.$ac_ext
5410if $ac_preproc_ok; then :
5411
5412else
5413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5415as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5416See \`config.log' for more details" "$LINENO" 5; }
5417fi
5418
5419ac_ext=c
5420ac_cpp='$CPP $CPPFLAGS'
5421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424
5425for ac_prog in flex lex
5426do
5427 # Extract the first word of "$ac_prog", so it can be a program name with args.
5428set dummy $ac_prog; ac_word=$2
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430$as_echo_n "checking for $ac_word... " >&6; }
5431if ${ac_cv_prog_LEX+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433else
5434 if test -n "$LEX"; then
5435 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5436else
5437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438for as_dir in $PATH
5439do
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444 ac_cv_prog_LEX="$ac_prog"
5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 break 2
5447 fi
5448done
5449 done
5450IFS=$as_save_IFS
5451
5452fi
5453fi
5454LEX=$ac_cv_prog_LEX
5455if test -n "$LEX"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5457$as_echo "$LEX" >&6; }
5458else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460$as_echo "no" >&6; }
5461fi
5462
5463
5464 test -n "$LEX" && break
5465done
5466test -n "$LEX" || LEX=":"
5467
5468if test "x$LEX" != "x:"; then
5469 cat >conftest.l <<_ACEOF
5470%%
5471a { ECHO; }
5472b { REJECT; }
5473c { yymore (); }
5474d { yyless (1); }
5475e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5476 yyless ((input () != 0)); }
5477f { unput (yytext[0]); }
5478. { BEGIN INITIAL; }
5479%%
5480#ifdef YYTEXT_POINTER
5481extern char *yytext;
5482#endif
5483int
5484main (void)
5485{
5486 return ! yylex () + ! yywrap ();
5487}
5488_ACEOF
5489{ { ac_try="$LEX conftest.l"
5490case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493esac
5494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5495$as_echo "$ac_try_echo"; } >&5
5496 (eval "$LEX conftest.l") 2>&5
5497 ac_status=$?
5498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5499 test $ac_status = 0; }
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5501$as_echo_n "checking lex output file root... " >&6; }
5502if ${ac_cv_prog_lex_root+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504else
5505
5506if test -f lex.yy.c; then
5507 ac_cv_prog_lex_root=lex.yy
5508elif test -f lexyy.c; then
5509 ac_cv_prog_lex_root=lexyy
5510else
5511 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5512fi
5513fi
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5515$as_echo "$ac_cv_prog_lex_root" >&6; }
5516LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5517
5518if test -z "${LEXLIB+set}"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5520$as_echo_n "checking lex library... " >&6; }
5521if ${ac_cv_lib_lex+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523else
5524
5525 ac_save_LIBS=$LIBS
5526 ac_cv_lib_lex='none needed'
5527 for ac_lib in '' -lfl -ll; do
5528 LIBS="$ac_lib $ac_save_LIBS"
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h. */
5531`cat $LEX_OUTPUT_ROOT.c`
5532_ACEOF
5533if ac_fn_c_try_link "$LINENO"; then :
5534 ac_cv_lib_lex=$ac_lib
5535fi
5536rm -f core conftest.err conftest.$ac_objext \
5537 conftest$ac_exeext conftest.$ac_ext
5538 test "$ac_cv_lib_lex" != 'none needed' && break
5539 done
5540 LIBS=$ac_save_LIBS
5541
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5544$as_echo "$ac_cv_lib_lex" >&6; }
5545 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5546fi
5547
5548
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5550$as_echo_n "checking whether yytext is a pointer... " >&6; }
5551if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553else
5554 # POSIX says lex can declare yytext either as a pointer or an array; the
5555# default is implementation-dependent. Figure out which it is, since
5556# not all implementations provide the %pointer and %array declarations.
5557ac_cv_prog_lex_yytext_pointer=no
5558ac_save_LIBS=$LIBS
5559LIBS="$LEXLIB $ac_save_LIBS"
5560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561/* end confdefs.h. */
5562
5563 #define YYTEXT_POINTER 1
5564`cat $LEX_OUTPUT_ROOT.c`
5565_ACEOF
5566if ac_fn_c_try_link "$LINENO"; then :
5567 ac_cv_prog_lex_yytext_pointer=yes
5568fi
5569rm -f core conftest.err conftest.$ac_objext \
5570 conftest$ac_exeext conftest.$ac_ext
5571LIBS=$ac_save_LIBS
5572
5573fi
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5575$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5576if test $ac_cv_prog_lex_yytext_pointer = yes; then
5577
5578$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5579
5580fi
5581rm -f conftest.l $LEX_OUTPUT_ROOT.c
5582
5583fi
5584if test "$LEX" = :; then
5585 LEX=${am_missing_run}flex
5586fi
5587for ac_prog in 'bison -y' byacc
5588do
5589 # Extract the first word of "$ac_prog", so it can be a program name with args.
5590set dummy $ac_prog; ac_word=$2
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592$as_echo_n "checking for $ac_word... " >&6; }
5593if ${ac_cv_prog_YACC+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595else
5596 if test -n "$YACC"; then
5597 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5598else
5599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600for as_dir in $PATH
5601do
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606 ac_cv_prog_YACC="$ac_prog"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 break 2
5609 fi
5610done
5611 done
5612IFS=$as_save_IFS
5613
5614fi
5615fi
5616YACC=$ac_cv_prog_YACC
5617if test -n "$YACC"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5619$as_echo "$YACC" >&6; }
5620else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622$as_echo "no" >&6; }
5623fi
5624
5625
5626 test -n "$YACC" && break
5627done
5628test -n "$YACC" || YACC="yacc"
5629
5630case `pwd` in
5631 *\ * | *\ *)
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5633$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5634esac
5635
5636
5637
5638macro_version='2.4.2'
5639macro_revision='1.3337'
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653ltmain="$ac_aux_dir/ltmain.sh"
5654
5655# Backslashify metacharacters that are still active within
5656# double-quoted strings.
5657sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5658
5659# Same as above, but do not quote variable references.
5660double_quote_subst='s/\(["`\\]\)/\\\1/g'
5661
5662# Sed substitution to delay expansion of an escaped shell variable in a
5663# double_quote_subst'ed string.
5664delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5665
5666# Sed substitution to delay expansion of an escaped single quote.
5667delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5668
5669# Sed substitution to avoid accidental globbing in evaled expressions
5670no_glob_subst='s/\*/\\\*/g'
5671
5672ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5673ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5674ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5675
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5677$as_echo_n "checking how to print strings... " >&6; }
5678# Test print first, because it will be a builtin if present.
5679if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5680 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5681 ECHO='print -r --'
5682elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5683 ECHO='printf %s\n'
5684else
5685 # Use this function as a fallback that always works.
5686 func_fallback_echo ()
5687 {
5688 eval 'cat <<_LTECHO_EOF
5689$1
5690_LTECHO_EOF'
5691 }
5692 ECHO='func_fallback_echo'
5693fi
5694
5695# func_echo_all arg...
5696# Invoke $ECHO with all args, space-separated.
5697func_echo_all ()
5698{
5699 $ECHO ""
5700}
5701
5702case "$ECHO" in
5703 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5704$as_echo "printf" >&6; } ;;
5705 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5706$as_echo "print -r" >&6; } ;;
5707 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5708$as_echo "cat" >&6; } ;;
5709esac
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5725$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5726if ${ac_cv_path_SED+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728else
5729 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5730 for ac_i in 1 2 3 4 5 6 7; do
5731 ac_script="$ac_script$as_nl$ac_script"
5732 done
5733 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5734 { ac_script=; unset ac_script;}
5735 if test -z "$SED"; then
5736 ac_path_SED_found=false
5737 # Loop through the user's path and test for each of PROGNAME-LIST
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_prog in sed gsed; do
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5746 as_fn_executable_p "$ac_path_SED" || continue
5747# Check for GNU ac_path_SED and select it if it is found.
5748 # Check for GNU $ac_path_SED
5749case `"$ac_path_SED" --version 2>&1` in
5750*GNU*)
5751 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5752*)
5753 ac_count=0
5754 $as_echo_n 0123456789 >"conftest.in"
5755 while :
5756 do
5757 cat "conftest.in" "conftest.in" >"conftest.tmp"
5758 mv "conftest.tmp" "conftest.in"
5759 cp "conftest.in" "conftest.nl"
5760 $as_echo '' >> "conftest.nl"
5761 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5762 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5763 as_fn_arith $ac_count + 1 && ac_count=$as_val
5764 if test $ac_count -gt ${ac_path_SED_max-0}; then
5765 # Best one so far, save it but keep looking for a better one
5766 ac_cv_path_SED="$ac_path_SED"
5767 ac_path_SED_max=$ac_count
5768 fi
5769 # 10*(2^10) chars as input seems more than enough
5770 test $ac_count -gt 10 && break
5771 done
5772 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5773esac
5774
5775 $ac_path_SED_found && break 3
5776 done
5777 done
5778 done
5779IFS=$as_save_IFS
5780 if test -z "$ac_cv_path_SED"; then
5781 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5782 fi
5783else
5784 ac_cv_path_SED=$SED
5785fi
5786
5787fi
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5789$as_echo "$ac_cv_path_SED" >&6; }
5790 SED="$ac_cv_path_SED"
5791 rm -f conftest.sed
5792
5793test -z "$SED" && SED=sed
5794Xsed="$SED -e 1s/^X//"
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5807$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5808if ${ac_cv_path_GREP+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810else
5811 if test -z "$GREP"; then
5812 ac_path_GREP_found=false
5813 # Loop through the user's path and test for each of PROGNAME-LIST
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5816do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_prog in grep ggrep; do
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5822 as_fn_executable_p "$ac_path_GREP" || continue
5823# Check for GNU ac_path_GREP and select it if it is found.
5824 # Check for GNU $ac_path_GREP
5825case `"$ac_path_GREP" --version 2>&1` in
5826*GNU*)
5827 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5828*)
5829 ac_count=0
5830 $as_echo_n 0123456789 >"conftest.in"
5831 while :
5832 do
5833 cat "conftest.in" "conftest.in" >"conftest.tmp"
5834 mv "conftest.tmp" "conftest.in"
5835 cp "conftest.in" "conftest.nl"
5836 $as_echo 'GREP' >> "conftest.nl"
5837 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5839 as_fn_arith $ac_count + 1 && ac_count=$as_val
5840 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5841 # Best one so far, save it but keep looking for a better one
5842 ac_cv_path_GREP="$ac_path_GREP"
5843 ac_path_GREP_max=$ac_count
5844 fi
5845 # 10*(2^10) chars as input seems more than enough
5846 test $ac_count -gt 10 && break
5847 done
5848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5849esac
5850
5851 $ac_path_GREP_found && break 3
5852 done
5853 done
5854 done
5855IFS=$as_save_IFS
5856 if test -z "$ac_cv_path_GREP"; then
5857 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5858 fi
5859else
5860 ac_cv_path_GREP=$GREP
5861fi
5862
5863fi
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5865$as_echo "$ac_cv_path_GREP" >&6; }
5866 GREP="$ac_cv_path_GREP"
5867
5868
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5870$as_echo_n "checking for egrep... " >&6; }
5871if ${ac_cv_path_EGREP+:} false; then :
5872 $as_echo_n "(cached) " >&6
5873else
5874 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5875 then ac_cv_path_EGREP="$GREP -E"
5876 else
5877 if test -z "$EGREP"; then
5878 ac_path_EGREP_found=false
5879 # Loop through the user's path and test for each of PROGNAME-LIST
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5882do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
5885 for ac_prog in egrep; do
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5888 as_fn_executable_p "$ac_path_EGREP" || continue
5889# Check for GNU ac_path_EGREP and select it if it is found.
5890 # Check for GNU $ac_path_EGREP
5891case `"$ac_path_EGREP" --version 2>&1` in
5892*GNU*)
5893 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5894*)
5895 ac_count=0
5896 $as_echo_n 0123456789 >"conftest.in"
5897 while :
5898 do
5899 cat "conftest.in" "conftest.in" >"conftest.tmp"
5900 mv "conftest.tmp" "conftest.in"
5901 cp "conftest.in" "conftest.nl"
5902 $as_echo 'EGREP' >> "conftest.nl"
5903 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5905 as_fn_arith $ac_count + 1 && ac_count=$as_val
5906 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5907 # Best one so far, save it but keep looking for a better one
5908 ac_cv_path_EGREP="$ac_path_EGREP"
5909 ac_path_EGREP_max=$ac_count
5910 fi
5911 # 10*(2^10) chars as input seems more than enough
5912 test $ac_count -gt 10 && break
5913 done
5914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5915esac
5916
5917 $ac_path_EGREP_found && break 3
5918 done
5919 done
5920 done
5921IFS=$as_save_IFS
5922 if test -z "$ac_cv_path_EGREP"; then
5923 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5924 fi
5925else
5926 ac_cv_path_EGREP=$EGREP
5927fi
5928
5929 fi
5930fi
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5932$as_echo "$ac_cv_path_EGREP" >&6; }
5933 EGREP="$ac_cv_path_EGREP"
5934
5935
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5937$as_echo_n "checking for fgrep... " >&6; }
5938if ${ac_cv_path_FGREP+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940else
5941 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5942 then ac_cv_path_FGREP="$GREP -F"
5943 else
5944 if test -z "$FGREP"; then
5945 ac_path_FGREP_found=false
5946 # Loop through the user's path and test for each of PROGNAME-LIST
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5949do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_prog in fgrep; do
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5955 as_fn_executable_p "$ac_path_FGREP" || continue
5956# Check for GNU ac_path_FGREP and select it if it is found.
5957 # Check for GNU $ac_path_FGREP
5958case `"$ac_path_FGREP" --version 2>&1` in
5959*GNU*)
5960 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5961*)
5962 ac_count=0
5963 $as_echo_n 0123456789 >"conftest.in"
5964 while :
5965 do
5966 cat "conftest.in" "conftest.in" >"conftest.tmp"
5967 mv "conftest.tmp" "conftest.in"
5968 cp "conftest.in" "conftest.nl"
5969 $as_echo 'FGREP' >> "conftest.nl"
5970 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5972 as_fn_arith $ac_count + 1 && ac_count=$as_val
5973 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5974 # Best one so far, save it but keep looking for a better one
5975 ac_cv_path_FGREP="$ac_path_FGREP"
5976 ac_path_FGREP_max=$ac_count
5977 fi
5978 # 10*(2^10) chars as input seems more than enough
5979 test $ac_count -gt 10 && break
5980 done
5981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5982esac
5983
5984 $ac_path_FGREP_found && break 3
5985 done
5986 done
5987 done
5988IFS=$as_save_IFS
5989 if test -z "$ac_cv_path_FGREP"; then
5990 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5991 fi
5992else
5993 ac_cv_path_FGREP=$FGREP
5994fi
5995
5996 fi
5997fi
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5999$as_echo "$ac_cv_path_FGREP" >&6; }
6000 FGREP="$ac_cv_path_FGREP"
6001
6002
6003test -z "$GREP" && GREP=grep
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023# Check whether --with-gnu-ld was given.
6024if test "${with_gnu_ld+set}" = set; then :
6025 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6026else
6027 with_gnu_ld=no
6028fi
6029
6030ac_prog=ld
6031if test "$GCC" = yes; then
6032 # Check if gcc -print-prog-name=ld gives a path.
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6034$as_echo_n "checking for ld used by $CC... " >&6; }
6035 case $host in
6036 *-*-mingw*)
6037 # gcc leaves a trailing carriage return which upsets mingw
6038 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6039 *)
6040 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6041 esac
6042 case $ac_prog in
6043 # Accept absolute paths.
6044 [\\/]* | ?:[\\/]*)
6045 re_direlt='/[^/][^/]*/\.\./'
6046 # Canonicalize the pathname of ld
6047 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6048 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6049 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6050 done
6051 test -z "$LD" && LD="$ac_prog"
6052 ;;
6053 "")
6054 # If it fails, then pretend we aren't using GCC.
6055 ac_prog=ld
6056 ;;
6057 *)
6058 # If it is relative, then search for the first ld in PATH.
6059 with_gnu_ld=unknown
6060 ;;
6061 esac
6062elif test "$with_gnu_ld" = yes; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6064$as_echo_n "checking for GNU ld... " >&6; }
6065else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6067$as_echo_n "checking for non-GNU ld... " >&6; }
6068fi
6069if ${lt_cv_path_LD+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071else
6072 if test -z "$LD"; then
6073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6074 for ac_dir in $PATH; do
6075 IFS="$lt_save_ifs"
6076 test -z "$ac_dir" && ac_dir=.
6077 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6078 lt_cv_path_LD="$ac_dir/$ac_prog"
6079 # Check to see if the program is GNU ld. I'd rather use --version,
6080 # but apparently some variants of GNU ld only accept -v.
6081 # Break only if it was the GNU/non-GNU ld that we prefer.
6082 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6083 *GNU* | *'with BFD'*)
6084 test "$with_gnu_ld" != no && break
6085 ;;
6086 *)
6087 test "$with_gnu_ld" != yes && break
6088 ;;
6089 esac
6090 fi
6091 done
6092 IFS="$lt_save_ifs"
6093else
6094 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6095fi
6096fi
6097
6098LD="$lt_cv_path_LD"
6099if test -n "$LD"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6101$as_echo "$LD" >&6; }
6102else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104$as_echo "no" >&6; }
6105fi
6106test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6108$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6109if ${lt_cv_prog_gnu_ld+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111else
6112 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6113case `$LD -v 2>&1 </dev/null` in
6114*GNU* | *'with BFD'*)
6115 lt_cv_prog_gnu_ld=yes
6116 ;;
6117*)
6118 lt_cv_prog_gnu_ld=no
6119 ;;
6120esac
6121fi
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6123$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6124with_gnu_ld=$lt_cv_prog_gnu_ld
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6135$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6136if ${lt_cv_path_NM+:} false; then :
6137 $as_echo_n "(cached) " >&6
6138else
6139 if test -n "$NM"; then
6140 # Let the user override the test.
6141 lt_cv_path_NM="$NM"
6142else
6143 lt_nm_to_check="${ac_tool_prefix}nm"
6144 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6145 lt_nm_to_check="$lt_nm_to_check nm"
6146 fi
6147 for lt_tmp_nm in $lt_nm_to_check; do
6148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6149 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6150 IFS="$lt_save_ifs"
6151 test -z "$ac_dir" && ac_dir=.
6152 tmp_nm="$ac_dir/$lt_tmp_nm"
6153 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6154 # Check to see if the nm accepts a BSD-compat flag.
6155 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6156 # nm: unknown option "B" ignored
6157 # Tru64's nm complains that /dev/null is an invalid object file
6158 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6159 */dev/null* | *'Invalid file or object type'*)
6160 lt_cv_path_NM="$tmp_nm -B"
6161 break
6162 ;;
6163 *)
6164 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6165 */dev/null*)
6166 lt_cv_path_NM="$tmp_nm -p"
6167 break
6168 ;;
6169 *)
6170 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6171 continue # so that we can try to find one that supports BSD flags
6172 ;;
6173 esac
6174 ;;
6175 esac
6176 fi
6177 done
6178 IFS="$lt_save_ifs"
6179 done
6180 : ${lt_cv_path_NM=no}
6181fi
6182fi
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6184$as_echo "$lt_cv_path_NM" >&6; }
6185if test "$lt_cv_path_NM" != "no"; then
6186 NM="$lt_cv_path_NM"
6187else
6188 # Didn't find any BSD compatible name lister, look for dumpbin.
6189 if test -n "$DUMPBIN"; then :
6190 # Let the user override the test.
6191 else
6192 if test -n "$ac_tool_prefix"; then
6193 for ac_prog in dumpbin "link -dump"
6194 do
6195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6196set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198$as_echo_n "checking for $ac_word... " >&6; }
6199if ${ac_cv_prog_DUMPBIN+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201else
6202 if test -n "$DUMPBIN"; then
6203 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216done
6217 done
6218IFS=$as_save_IFS
6219
6220fi
6221fi
6222DUMPBIN=$ac_cv_prog_DUMPBIN
6223if test -n "$DUMPBIN"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6225$as_echo "$DUMPBIN" >&6; }
6226else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228$as_echo "no" >&6; }
6229fi
6230
6231
6232 test -n "$DUMPBIN" && break
6233 done
6234fi
6235if test -z "$DUMPBIN"; then
6236 ac_ct_DUMPBIN=$DUMPBIN
6237 for ac_prog in dumpbin "link -dump"
6238do
6239 # Extract the first word of "$ac_prog", so it can be a program name with args.
6240set dummy $ac_prog; ac_word=$2
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242$as_echo_n "checking for $ac_word... " >&6; }
6243if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6244 $as_echo_n "(cached) " >&6
6245else
6246 if test -n "$ac_ct_DUMPBIN"; then
6247 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6248else
6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250for as_dir in $PATH
6251do
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 break 2
6259 fi
6260done
6261 done
6262IFS=$as_save_IFS
6263
6264fi
6265fi
6266ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6267if test -n "$ac_ct_DUMPBIN"; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6269$as_echo "$ac_ct_DUMPBIN" >&6; }
6270else
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272$as_echo "no" >&6; }
6273fi
6274
6275
6276 test -n "$ac_ct_DUMPBIN" && break
6277done
6278
6279 if test "x$ac_ct_DUMPBIN" = x; then
6280 DUMPBIN=":"
6281 else
6282 case $cross_compiling:$ac_tool_warned in
6283yes:)
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6286ac_tool_warned=yes ;;
6287esac
6288 DUMPBIN=$ac_ct_DUMPBIN
6289 fi
6290fi
6291
6292 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6293 *COFF*)
6294 DUMPBIN="$DUMPBIN -symbols"
6295 ;;
6296 *)
6297 DUMPBIN=:
6298 ;;
6299 esac
6300 fi
6301
6302 if test "$DUMPBIN" != ":"; then
6303 NM="$DUMPBIN"
6304 fi
6305fi
6306test -z "$NM" && NM=nm
6307
6308
6309
6310
6311
6312
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6314$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6315if ${lt_cv_nm_interface+:} false; then :
6316 $as_echo_n "(cached) " >&6
6317else
6318 lt_cv_nm_interface="BSD nm"
6319 echo "int some_variable = 0;" > conftest.$ac_ext
6320 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6321 (eval "$ac_compile" 2>conftest.err)
6322 cat conftest.err >&5
6323 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6324 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6325 cat conftest.err >&5
6326 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6327 cat conftest.out >&5
6328 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6329 lt_cv_nm_interface="MS dumpbin"
6330 fi
6331 rm -f conftest*
6332fi
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6334$as_echo "$lt_cv_nm_interface" >&6; }
6335
6336# find the maximum length of command line arguments
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6338$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6339if ${lt_cv_sys_max_cmd_len+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341else
6342 i=0
6343 teststring="ABCD"
6344
6345 case $build_os in
6346 msdosdjgpp*)
6347 # On DJGPP, this test can blow up pretty badly due to problems in libc
6348 # (any single argument exceeding 2000 bytes causes a buffer overrun
6349 # during glob expansion). Even if it were fixed, the result of this
6350 # check would be larger than it should be.
6351 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6352 ;;
6353
6354 gnu*)
6355 # Under GNU Hurd, this test is not required because there is
6356 # no limit to the length of command line arguments.
6357 # Libtool will interpret -1 as no limit whatsoever
6358 lt_cv_sys_max_cmd_len=-1;
6359 ;;
6360
6361 cygwin* | mingw* | cegcc*)
6362 # On Win9x/ME, this test blows up -- it succeeds, but takes
6363 # about 5 minutes as the teststring grows exponentially.
6364 # Worse, since 9x/ME are not pre-emptively multitasking,
6365 # you end up with a "frozen" computer, even though with patience
6366 # the test eventually succeeds (with a max line length of 256k).
6367 # Instead, let's just punt: use the minimum linelength reported by
6368 # all of the supported platforms: 8192 (on NT/2K/XP).
6369 lt_cv_sys_max_cmd_len=8192;
6370 ;;
6371
6372 mint*)
6373 # On MiNT this can take a long time and run out of memory.
6374 lt_cv_sys_max_cmd_len=8192;
6375 ;;
6376
6377 amigaos*)
6378 # On AmigaOS with pdksh, this test takes hours, literally.
6379 # So we just punt and use a minimum line length of 8192.
6380 lt_cv_sys_max_cmd_len=8192;
6381 ;;
6382
6383 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6384 # This has been around since 386BSD, at least. Likely further.
6385 if test -x /sbin/sysctl; then
6386 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6387 elif test -x /usr/sbin/sysctl; then
6388 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6389 else
6390 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6391 fi
6392 # And add a safety zone
6393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6395 ;;
6396
6397 interix*)
6398 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6399 lt_cv_sys_max_cmd_len=196608
6400 ;;
6401
6402 os2*)
6403 # The test takes a long time on OS/2.
6404 lt_cv_sys_max_cmd_len=8192
6405 ;;
6406
6407 osf*)
6408 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6409 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6410 # nice to cause kernel panics so lets avoid the loop below.
6411 # First set a reasonable default.
6412 lt_cv_sys_max_cmd_len=16384
6413 #
6414 if test -x /sbin/sysconfig; then
6415 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6416 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6417 esac
6418 fi
6419 ;;
6420 sco3.2v5*)
6421 lt_cv_sys_max_cmd_len=102400
6422 ;;
6423 sysv5* | sco5v6* | sysv4.2uw2*)
6424 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6425 if test -n "$kargmax"; then
6426 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6427 else
6428 lt_cv_sys_max_cmd_len=32768
6429 fi
6430 ;;
6431 *)
6432 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6433 if test -n "$lt_cv_sys_max_cmd_len" && \
6434 test undefined != "$lt_cv_sys_max_cmd_len"; then
6435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6437 else
6438 # Make teststring a little bigger before we do anything with it.
6439 # a 1K string should be a reasonable start.
6440 for i in 1 2 3 4 5 6 7 8 ; do
6441 teststring=$teststring$teststring
6442 done
6443 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6444 # If test is not a shell built-in, we'll probably end up computing a
6445 # maximum length that is only half of the actual maximum length, but
6446 # we can't tell.
6447 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6448 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6449 test $i != 17 # 1/2 MB should be enough
6450 do
6451 i=`expr $i + 1`
6452 teststring=$teststring$teststring
6453 done
6454 # Only check the string length outside the loop.
6455 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6456 teststring=
6457 # Add a significant safety factor because C++ compilers can tack on
6458 # massive amounts of additional arguments before passing them to the
6459 # linker. It appears as though 1/2 is a usable value.
6460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6461 fi
6462 ;;
6463 esac
6464
6465fi
6466
6467if test -n $lt_cv_sys_max_cmd_len ; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6469$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6470else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6472$as_echo "none" >&6; }
6473fi
6474max_cmd_len=$lt_cv_sys_max_cmd_len
6475
6476
6477
6478
6479
6480
6481: ${CP="cp -f"}
6482: ${MV="mv -f"}
6483: ${RM="rm -f"}
6484
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6486$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6487# Try some XSI features
6488xsi_shell=no
6489( _lt_dummy="a/b/c"
6490 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6491 = c,a/b,b/c, \
6492 && eval 'test $(( 1 + 1 )) -eq 2 \
6493 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6494 && xsi_shell=yes
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6496$as_echo "$xsi_shell" >&6; }
6497
6498
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6500$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6501lt_shell_append=no
6502( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6503 >/dev/null 2>&1 \
6504 && lt_shell_append=yes
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6506$as_echo "$lt_shell_append" >&6; }
6507
6508
6509if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6510 lt_unset=unset
6511else
6512 lt_unset=false
6513fi
6514
6515
6516
6517
6518
6519# test EBCDIC or ASCII
6520case `echo X|tr X '\101'` in
6521 A) # ASCII based system
6522 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6523 lt_SP2NL='tr \040 \012'
6524 lt_NL2SP='tr \015\012 \040\040'
6525 ;;
6526 *) # EBCDIC based system
6527 lt_SP2NL='tr \100 \n'
6528 lt_NL2SP='tr \r\n \100\100'
6529 ;;
6530esac
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6541$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6542if ${lt_cv_to_host_file_cmd+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544else
6545 case $host in
6546 *-*-mingw* )
6547 case $build in
6548 *-*-mingw* ) # actually msys
6549 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6550 ;;
6551 *-*-cygwin* )
6552 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6553 ;;
6554 * ) # otherwise, assume *nix
6555 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6556 ;;
6557 esac
6558 ;;
6559 *-*-cygwin* )
6560 case $build in
6561 *-*-mingw* ) # actually msys
6562 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6563 ;;
6564 *-*-cygwin* )
6565 lt_cv_to_host_file_cmd=func_convert_file_noop
6566 ;;
6567 * ) # otherwise, assume *nix
6568 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6569 ;;
6570 esac
6571 ;;
6572 * ) # unhandled hosts (and "normal" native builds)
6573 lt_cv_to_host_file_cmd=func_convert_file_noop
6574 ;;
6575esac
6576
6577fi
6578
6579to_host_file_cmd=$lt_cv_to_host_file_cmd
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6581$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6582
6583
6584
6585
6586
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6588$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6589if ${lt_cv_to_tool_file_cmd+:} false; then :
6590 $as_echo_n "(cached) " >&6
6591else
6592 #assume ordinary cross tools, or native build.
6593lt_cv_to_tool_file_cmd=func_convert_file_noop
6594case $host in
6595 *-*-mingw* )
6596 case $build in
6597 *-*-mingw* ) # actually msys
6598 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6599 ;;
6600 esac
6601 ;;
6602esac
6603
6604fi
6605
6606to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6608$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6609
6610
6611
6612
6613
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6615$as_echo_n "checking for $LD option to reload object files... " >&6; }
6616if ${lt_cv_ld_reload_flag+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618else
6619 lt_cv_ld_reload_flag='-r'
6620fi
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6622$as_echo "$lt_cv_ld_reload_flag" >&6; }
6623reload_flag=$lt_cv_ld_reload_flag
6624case $reload_flag in
6625"" | " "*) ;;
6626*) reload_flag=" $reload_flag" ;;
6627esac
6628reload_cmds='$LD$reload_flag -o $output$reload_objs'
6629case $host_os in
6630 cygwin* | mingw* | pw32* | cegcc*)
6631 if test "$GCC" != yes; then
6632 reload_cmds=false
6633 fi
6634 ;;
6635 darwin*)
6636 if test "$GCC" = yes; then
6637 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6638 else
6639 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6640 fi
6641 ;;
6642esac
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6654set dummy ${ac_tool_prefix}objdump; ac_word=$2
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656$as_echo_n "checking for $ac_word... " >&6; }
6657if ${ac_cv_prog_OBJDUMP+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659else
6660 if test -n "$OBJDUMP"; then
6661 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6662else
6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674done
6675 done
6676IFS=$as_save_IFS
6677
6678fi
6679fi
6680OBJDUMP=$ac_cv_prog_OBJDUMP
6681if test -n "$OBJDUMP"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6683$as_echo "$OBJDUMP" >&6; }
6684else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686$as_echo "no" >&6; }
6687fi
6688
6689
6690fi
6691if test -z "$ac_cv_prog_OBJDUMP"; then
6692 ac_ct_OBJDUMP=$OBJDUMP
6693 # Extract the first word of "objdump", so it can be a program name with args.
6694set dummy objdump; ac_word=$2
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696$as_echo_n "checking for $ac_word... " >&6; }
6697if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699else
6700 if test -n "$ac_ct_OBJDUMP"; then
6701 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6702else
6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714done
6715 done
6716IFS=$as_save_IFS
6717
6718fi
6719fi
6720ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6721if test -n "$ac_ct_OBJDUMP"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6723$as_echo "$ac_ct_OBJDUMP" >&6; }
6724else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726$as_echo "no" >&6; }
6727fi
6728
6729 if test "x$ac_ct_OBJDUMP" = x; then
6730 OBJDUMP="false"
6731 else
6732 case $cross_compiling:$ac_tool_warned in
6733yes:)
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736ac_tool_warned=yes ;;
6737esac
6738 OBJDUMP=$ac_ct_OBJDUMP
6739 fi
6740else
6741 OBJDUMP="$ac_cv_prog_OBJDUMP"
6742fi
6743
6744test -z "$OBJDUMP" && OBJDUMP=objdump
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6755$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6756if ${lt_cv_deplibs_check_method+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758else
6759 lt_cv_file_magic_cmd='$MAGIC_CMD'
6760lt_cv_file_magic_test_file=
6761lt_cv_deplibs_check_method='unknown'
6762# Need to set the preceding variable on all platforms that support
6763# interlibrary dependencies.
6764# 'none' -- dependencies not supported.
6765# `unknown' -- same as none, but documents that we really don't know.
6766# 'pass_all' -- all dependencies passed with no checks.
6767# 'test_compile' -- check by making test program.
6768# 'file_magic [[regex]]' -- check by looking for files in library path
6769# which responds to the $file_magic_cmd with a given extended regex.
6770# If you have `file' or equivalent on your system and you're not sure
6771# whether `pass_all' will *always* work, you probably want this one.
6772
6773case $host_os in
6774aix[4-9]*)
6775 lt_cv_deplibs_check_method=pass_all
6776 ;;
6777
6778beos*)
6779 lt_cv_deplibs_check_method=pass_all
6780 ;;
6781
6782bsdi[45]*)
6783 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6784 lt_cv_file_magic_cmd='/usr/bin/file -L'
6785 lt_cv_file_magic_test_file=/shlib/libc.so
6786 ;;
6787
6788cygwin*)
6789 # func_win32_libid is a shell function defined in ltmain.sh
6790 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6791 lt_cv_file_magic_cmd='func_win32_libid'
6792 ;;
6793
6794mingw* | pw32*)
6795 # Base MSYS/MinGW do not provide the 'file' command needed by
6796 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6797 # unless we find 'file', for example because we are cross-compiling.
6798 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6799 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6800 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6801 lt_cv_file_magic_cmd='func_win32_libid'
6802 else
6803 # Keep this pattern in sync with the one in func_win32_libid.
6804 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6805 lt_cv_file_magic_cmd='$OBJDUMP -f'
6806 fi
6807 ;;
6808
6809cegcc*)
6810 # use the weaker test based on 'objdump'. See mingw*.
6811 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6812 lt_cv_file_magic_cmd='$OBJDUMP -f'
6813 ;;
6814
6815darwin* | rhapsody*)
6816 lt_cv_deplibs_check_method=pass_all
6817 ;;
6818
6819freebsd* | dragonfly*)
6820 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6821 case $host_cpu in
6822 i*86 )
6823 # Not sure whether the presence of OpenBSD here was a mistake.
6824 # Let's accept both of them until this is cleared up.
6825 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6826 lt_cv_file_magic_cmd=/usr/bin/file
6827 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6828 ;;
6829 esac
6830 else
6831 lt_cv_deplibs_check_method=pass_all
6832 fi
6833 ;;
6834
6835haiku*)
6836 lt_cv_deplibs_check_method=pass_all
6837 ;;
6838
6839hpux10.20* | hpux11*)
6840 lt_cv_file_magic_cmd=/usr/bin/file
6841 case $host_cpu in
6842 ia64*)
6843 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6844 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6845 ;;
6846 hppa*64*)
6847 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]'
6848 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6849 ;;
6850 *)
6851 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6852 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6853 ;;
6854 esac
6855 ;;
6856
6857interix[3-9]*)
6858 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6860 ;;
6861
6862irix5* | irix6* | nonstopux*)
6863 case $LD in
6864 *-32|*"-32 ") libmagic=32-bit;;
6865 *-n32|*"-n32 ") libmagic=N32;;
6866 *-64|*"-64 ") libmagic=64-bit;;
6867 *) libmagic=never-match;;
6868 esac
6869 lt_cv_deplibs_check_method=pass_all
6870 ;;
6871
6872# This must be glibc/ELF.
6873linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6874 lt_cv_deplibs_check_method=pass_all
6875 ;;
6876
6877netbsd* | netbsdelf*-gnu)
6878 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6880 else
6881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6882 fi
6883 ;;
6884
6885newos6*)
6886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6887 lt_cv_file_magic_cmd=/usr/bin/file
6888 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6889 ;;
6890
6891*nto* | *qnx*)
6892 lt_cv_deplibs_check_method=pass_all
6893 ;;
6894
6895openbsd*)
6896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6898 else
6899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6900 fi
6901 ;;
6902
6903osf3* | osf4* | osf5*)
6904 lt_cv_deplibs_check_method=pass_all
6905 ;;
6906
6907rdos*)
6908 lt_cv_deplibs_check_method=pass_all
6909 ;;
6910
6911solaris*)
6912 lt_cv_deplibs_check_method=pass_all
6913 ;;
6914
6915sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6916 lt_cv_deplibs_check_method=pass_all
6917 ;;
6918
6919sysv4 | sysv4.3*)
6920 case $host_vendor in
6921 motorola)
6922 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]'
6923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6924 ;;
6925 ncr)
6926 lt_cv_deplibs_check_method=pass_all
6927 ;;
6928 sequent)
6929 lt_cv_file_magic_cmd='/bin/file'
6930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6931 ;;
6932 sni)
6933 lt_cv_file_magic_cmd='/bin/file'
6934 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6935 lt_cv_file_magic_test_file=/lib/libc.so
6936 ;;
6937 siemens)
6938 lt_cv_deplibs_check_method=pass_all
6939 ;;
6940 pc)
6941 lt_cv_deplibs_check_method=pass_all
6942 ;;
6943 esac
6944 ;;
6945
6946tpf*)
6947 lt_cv_deplibs_check_method=pass_all
6948 ;;
6949esac
6950
6951fi
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6953$as_echo "$lt_cv_deplibs_check_method" >&6; }
6954
6955file_magic_glob=
6956want_nocaseglob=no
6957if test "$build" = "$host"; then
6958 case $host_os in
6959 mingw* | pw32*)
6960 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6961 want_nocaseglob=yes
6962 else
6963 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6964 fi
6965 ;;
6966 esac
6967fi
6968
6969file_magic_cmd=$lt_cv_file_magic_cmd
6970deplibs_check_method=$lt_cv_deplibs_check_method
6971test -z "$deplibs_check_method" && deplibs_check_method=unknown
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994if test -n "$ac_tool_prefix"; then
6995 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6996set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998$as_echo_n "checking for $ac_word... " >&6; }
6999if ${ac_cv_prog_DLLTOOL+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001else
7002 if test -n "$DLLTOOL"; then
7003 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7004else
7005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006for as_dir in $PATH
7007do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016done
7017 done
7018IFS=$as_save_IFS
7019
7020fi
7021fi
7022DLLTOOL=$ac_cv_prog_DLLTOOL
7023if test -n "$DLLTOOL"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7025$as_echo "$DLLTOOL" >&6; }
7026else
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028$as_echo "no" >&6; }
7029fi
7030
7031
7032fi
7033if test -z "$ac_cv_prog_DLLTOOL"; then
7034 ac_ct_DLLTOOL=$DLLTOOL
7035 # Extract the first word of "dlltool", so it can be a program name with args.
7036set dummy dlltool; ac_word=$2
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038$as_echo_n "checking for $ac_word... " >&6; }
7039if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7040 $as_echo_n "(cached) " >&6
7041else
7042 if test -n "$ac_ct_DLLTOOL"; then
7043 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7044else
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056done
7057 done
7058IFS=$as_save_IFS
7059
7060fi
7061fi
7062ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7063if test -n "$ac_ct_DLLTOOL"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7065$as_echo "$ac_ct_DLLTOOL" >&6; }
7066else
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068$as_echo "no" >&6; }
7069fi
7070
7071 if test "x$ac_ct_DLLTOOL" = x; then
7072 DLLTOOL="false"
7073 else
7074 case $cross_compiling:$ac_tool_warned in
7075yes:)
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078ac_tool_warned=yes ;;
7079esac
7080 DLLTOOL=$ac_ct_DLLTOOL
7081 fi
7082else
7083 DLLTOOL="$ac_cv_prog_DLLTOOL"
7084fi
7085
7086test -z "$DLLTOOL" && DLLTOOL=dlltool
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7098$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7099if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7100 $as_echo_n "(cached) " >&6
7101else
7102 lt_cv_sharedlib_from_linklib_cmd='unknown'
7103
7104case $host_os in
7105cygwin* | mingw* | pw32* | cegcc*)
7106 # two different shell functions defined in ltmain.sh
7107 # decide which to use based on capabilities of $DLLTOOL
7108 case `$DLLTOOL --help 2>&1` in
7109 *--identify-strict*)
7110 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7111 ;;
7112 *)
7113 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7114 ;;
7115 esac
7116 ;;
7117*)
7118 # fallback: assume linklib IS sharedlib
7119 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7120 ;;
7121esac
7122
7123fi
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7125$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7126sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7127test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7128
7129
7130
7131
7132
7133
7134
7135if test -n "$ac_tool_prefix"; then
7136 for ac_prog in ar
7137 do
7138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7139set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141$as_echo_n "checking for $ac_word... " >&6; }
7142if ${ac_cv_prog_AR+:} false; then :
7143 $as_echo_n "(cached) " >&6
7144else
7145 if test -n "$AR"; then
7146 ac_cv_prog_AR="$AR" # Let the user override the test.
7147else
7148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149for as_dir in $PATH
7150do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7155 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159done
7160 done
7161IFS=$as_save_IFS
7162
7163fi
7164fi
7165AR=$ac_cv_prog_AR
7166if test -n "$AR"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7168$as_echo "$AR" >&6; }
7169else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171$as_echo "no" >&6; }
7172fi
7173
7174
7175 test -n "$AR" && break
7176 done
7177fi
7178if test -z "$AR"; then
7179 ac_ct_AR=$AR
7180 for ac_prog in ar
7181do
7182 # Extract the first word of "$ac_prog", so it can be a program name with args.
7183set dummy $ac_prog; ac_word=$2
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185$as_echo_n "checking for $ac_word... " >&6; }
7186if ${ac_cv_prog_ac_ct_AR+:} false; then :
7187 $as_echo_n "(cached) " >&6
7188else
7189 if test -n "$ac_ct_AR"; then
7190 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7191else
7192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193for as_dir in $PATH
7194do
7195 IFS=$as_save_IFS
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199 ac_cv_prog_ac_ct_AR="$ac_prog"
7200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 break 2
7202 fi
7203done
7204 done
7205IFS=$as_save_IFS
7206
7207fi
7208fi
7209ac_ct_AR=$ac_cv_prog_ac_ct_AR
7210if test -n "$ac_ct_AR"; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7212$as_echo "$ac_ct_AR" >&6; }
7213else
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215$as_echo "no" >&6; }
7216fi
7217
7218
7219 test -n "$ac_ct_AR" && break
7220done
7221
7222 if test "x$ac_ct_AR" = x; then
7223 AR="false"
7224 else
7225 case $cross_compiling:$ac_tool_warned in
7226yes:)
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229ac_tool_warned=yes ;;
7230esac
7231 AR=$ac_ct_AR
7232 fi
7233fi
7234
7235: ${AR=ar}
7236: ${AR_FLAGS=cru}
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7249$as_echo_n "checking for archiver @FILE support... " >&6; }
7250if ${lt_cv_ar_at_file+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252else
7253 lt_cv_ar_at_file=no
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255/* end confdefs.h. */
7256
7257int
7258main ()
7259{
7260
7261 ;
7262 return 0;
7263}
7264_ACEOF
7265if ac_fn_c_try_compile "$LINENO"; then :
7266 echo conftest.$ac_objext > conftest.lst
7267 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7269 (eval $lt_ar_try) 2>&5
7270 ac_status=$?
7271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272 test $ac_status = 0; }
7273 if test "$ac_status" -eq 0; then
7274 # Ensure the archiver fails upon bogus file names.
7275 rm -f conftest.$ac_objext libconftest.a
7276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7277 (eval $lt_ar_try) 2>&5
7278 ac_status=$?
7279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7280 test $ac_status = 0; }
7281 if test "$ac_status" -ne 0; then
7282 lt_cv_ar_at_file=@
7283 fi
7284 fi
7285 rm -f conftest.* libconftest.a
7286
7287fi
7288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289
7290fi
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7292$as_echo "$lt_cv_ar_at_file" >&6; }
7293
7294if test "x$lt_cv_ar_at_file" = xno; then
7295 archiver_list_spec=
7296else
7297 archiver_list_spec=$lt_cv_ar_at_file
7298fi
7299
7300
7301
7302
7303
7304
7305
7306if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7308set dummy ${ac_tool_prefix}strip; ac_word=$2
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310$as_echo_n "checking for $ac_word... " >&6; }
7311if ${ac_cv_prog_STRIP+:} false; then :
7312 $as_echo_n "(cached) " >&6
7313else
7314 if test -n "$STRIP"; then
7315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7316else
7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7327 fi
7328done
7329 done
7330IFS=$as_save_IFS
7331
7332fi
7333fi
7334STRIP=$ac_cv_prog_STRIP
7335if test -n "$STRIP"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7337$as_echo "$STRIP" >&6; }
7338else
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340$as_echo "no" >&6; }
7341fi
7342
7343
7344fi
7345if test -z "$ac_cv_prog_STRIP"; then
7346 ac_ct_STRIP=$STRIP
7347 # Extract the first word of "strip", so it can be a program name with args.
7348set dummy strip; ac_word=$2
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350$as_echo_n "checking for $ac_word... " >&6; }
7351if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353else
7354 if test -n "$ac_ct_STRIP"; then
7355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7356else
7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_ac_ct_STRIP="strip"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7367 fi
7368done
7369 done
7370IFS=$as_save_IFS
7371
7372fi
7373fi
7374ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7375if test -n "$ac_ct_STRIP"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7377$as_echo "$ac_ct_STRIP" >&6; }
7378else
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380$as_echo "no" >&6; }
7381fi
7382
7383 if test "x$ac_ct_STRIP" = x; then
7384 STRIP=":"
7385 else
7386 case $cross_compiling:$ac_tool_warned in
7387yes:)
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7390ac_tool_warned=yes ;;
7391esac
7392 STRIP=$ac_ct_STRIP
7393 fi
7394else
7395 STRIP="$ac_cv_prog_STRIP"
7396fi
7397
7398test -z "$STRIP" && STRIP=:
7399
7400
7401
7402
7403
7404
7405if test -n "$ac_tool_prefix"; then
7406 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7407set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409$as_echo_n "checking for $ac_word... " >&6; }
7410if ${ac_cv_prog_RANLIB+:} false; then :
7411 $as_echo_n "(cached) " >&6
7412else
7413 if test -n "$RANLIB"; then
7414 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7415else
7416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7426 fi
7427done
7428 done
7429IFS=$as_save_IFS
7430
7431fi
7432fi
7433RANLIB=$ac_cv_prog_RANLIB
7434if test -n "$RANLIB"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7436$as_echo "$RANLIB" >&6; }
7437else
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439$as_echo "no" >&6; }
7440fi
7441
7442
7443fi
7444if test -z "$ac_cv_prog_RANLIB"; then
7445 ac_ct_RANLIB=$RANLIB
7446 # Extract the first word of "ranlib", so it can be a program name with args.
7447set dummy ranlib; 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_RANLIB+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452else
7453 if test -n "$ac_ct_RANLIB"; then
7454 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
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_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7474if test -n "$ac_ct_RANLIB"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7476$as_echo "$ac_ct_RANLIB" >&6; }
7477else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479$as_echo "no" >&6; }
7480fi
7481
7482 if test "x$ac_ct_RANLIB" = x; then
7483 RANLIB=":"
7484 else
7485 case $cross_compiling:$ac_tool_warned in
7486yes:)
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7489ac_tool_warned=yes ;;
7490esac
7491 RANLIB=$ac_ct_RANLIB
7492 fi
7493else
7494 RANLIB="$ac_cv_prog_RANLIB"
7495fi
7496
7497test -z "$RANLIB" && RANLIB=:
7498
7499
7500
7501
7502
7503
7504# Determine commands to create old-style static archives.
7505old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7506old_postinstall_cmds='chmod 644 $oldlib'
7507old_postuninstall_cmds=
7508
7509if test -n "$RANLIB"; then
7510 case $host_os in
7511 openbsd*)
7512 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7513 ;;
7514 *)
7515 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7516 ;;
7517 esac
7518 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7519fi
7520
7521case $host_os in
7522 darwin*)
7523 lock_old_archive_extraction=yes ;;
7524 *)
7525 lock_old_archive_extraction=no ;;
7526esac
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566# If no C compiler was specified, use CC.
7567LTCC=${LTCC-"$CC"}
7568
7569# If no C compiler flags were specified, use CFLAGS.
7570LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7571
7572# Allow CC to be a program name with arguments.
7573compiler=$CC
7574
7575
7576# Check for command to grab the raw symbol name followed by C symbol from nm.
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7578$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7579if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581else
7582
7583# These are sane defaults that work on at least a few old systems.
7584# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7585
7586# Character class describing NM global symbol codes.
7587symcode='[BCDEGRST]'
7588
7589# Regexp to match symbols that can be accessed directly from C.
7590sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7591
7592# Define system-specific variables.
7593case $host_os in
7594aix*)
7595 symcode='[BCDT]'
7596 ;;
7597cygwin* | mingw* | pw32* | cegcc*)
7598 symcode='[ABCDGISTW]'
7599 ;;
7600hpux*)
7601 if test "$host_cpu" = ia64; then
7602 symcode='[ABCDEGRST]'
7603 fi
7604 ;;
7605irix* | nonstopux*)
7606 symcode='[BCDEGRST]'
7607 ;;
7608osf*)
7609 symcode='[BCDEGQRST]'
7610 ;;
7611solaris*)
7612 symcode='[BDRT]'
7613 ;;
7614sco3.2v5*)
7615 symcode='[DT]'
7616 ;;
7617sysv4.2uw2*)
7618 symcode='[DT]'
7619 ;;
7620sysv5* | sco5v6* | unixware* | OpenUNIX*)
7621 symcode='[ABDT]'
7622 ;;
7623sysv4)
7624 symcode='[DFNSTU]'
7625 ;;
7626esac
7627
7628# If we're using GNU nm, then use its standard symbol codes.
7629case `$NM -V 2>&1` in
7630*GNU* | *'with BFD'*)
7631 symcode='[ABCDGIRSTW]' ;;
7632esac
7633
7634# Transform an extracted symbol line into a proper C declaration.
7635# Some systems (esp. on ia64) link data and code symbols differently,
7636# so use this general approach.
7637lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7638
7639# Transform an extracted symbol line into symbol name and symbol address
7640lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7641lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7642
7643# Handle CRLF in mingw tool chain
7644opt_cr=
7645case $build_os in
7646mingw*)
7647 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7648 ;;
7649esac
7650
7651# Try without a prefix underscore, then with it.
7652for ac_symprfx in "" "_"; do
7653
7654 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7655 symxfrm="\\1 $ac_symprfx\\2 \\2"
7656
7657 # Write the raw and C identifiers.
7658 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7659 # Fake it for dumpbin and say T for any non-static function
7660 # and D for any global variable.
7661 # Also find C++ and __fastcall symbols from MSVC++,
7662 # which start with @ or ?.
7663 lt_cv_sys_global_symbol_pipe="$AWK '"\
7664" {last_section=section; section=\$ 3};"\
7665" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7666" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7667" \$ 0!~/External *\|/{next};"\
7668" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7669" {if(hide[section]) next};"\
7670" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7671" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7672" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7673" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7674" ' prfx=^$ac_symprfx"
7675 else
7676 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7677 fi
7678 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7679
7680 # Check to see that the pipe works correctly.
7681 pipe_works=no
7682
7683 rm -f conftest*
7684 cat > conftest.$ac_ext <<_LT_EOF
7685#ifdef __cplusplus
7686extern "C" {
7687#endif
7688char nm_test_var;
7689void nm_test_func(void);
7690void nm_test_func(void){}
7691#ifdef __cplusplus
7692}
7693#endif
7694int main(){nm_test_var='a';nm_test_func();return(0);}
7695_LT_EOF
7696
7697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7698 (eval $ac_compile) 2>&5
7699 ac_status=$?
7700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7701 test $ac_status = 0; }; then
7702 # Now try to grab the symbols.
7703 nlist=conftest.nm
7704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7705 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7706 ac_status=$?
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; } && test -s "$nlist"; then
7709 # Try sorting and uniquifying the output.
7710 if sort "$nlist" | uniq > "$nlist"T; then
7711 mv -f "$nlist"T "$nlist"
7712 else
7713 rm -f "$nlist"T
7714 fi
7715
7716 # Make sure that we snagged all the symbols we need.
7717 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7718 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7719 cat <<_LT_EOF > conftest.$ac_ext
7720/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7721#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7722/* DATA imports from DLLs on WIN32 con't be const, because runtime
7723 relocations are performed -- see ld's documentation on pseudo-relocs. */
7724# define LT_DLSYM_CONST
7725#elif defined(__osf__)
7726/* This system does not cope well with relocations in const data. */
7727# define LT_DLSYM_CONST
7728#else
7729# define LT_DLSYM_CONST const
7730#endif
7731
7732#ifdef __cplusplus
7733extern "C" {
7734#endif
7735
7736_LT_EOF
7737 # Now generate the symbol file.
7738 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7739
7740 cat <<_LT_EOF >> conftest.$ac_ext
7741
7742/* The mapping between symbol names and symbols. */
7743LT_DLSYM_CONST struct {
7744 const char *name;
7745 void *address;
7746}
7747lt__PROGRAM__LTX_preloaded_symbols[] =
7748{
7749 { "@PROGRAM@", (void *) 0 },
7750_LT_EOF
7751 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7752 cat <<\_LT_EOF >> conftest.$ac_ext
7753 {0, (void *) 0}
7754};
7755
7756/* This works around a problem in FreeBSD linker */
7757#ifdef FREEBSD_WORKAROUND
7758static const void *lt_preloaded_setup() {
7759 return lt__PROGRAM__LTX_preloaded_symbols;
7760}
7761#endif
7762
7763#ifdef __cplusplus
7764}
7765#endif
7766_LT_EOF
7767 # Now try linking the two files.
7768 mv conftest.$ac_objext conftstm.$ac_objext
7769 lt_globsym_save_LIBS=$LIBS
7770 lt_globsym_save_CFLAGS=$CFLAGS
7771 LIBS="conftstm.$ac_objext"
7772 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7774 (eval $ac_link) 2>&5
7775 ac_status=$?
7776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7778 pipe_works=yes
7779 fi
7780 LIBS=$lt_globsym_save_LIBS
7781 CFLAGS=$lt_globsym_save_CFLAGS
7782 else
7783 echo "cannot find nm_test_func in $nlist" >&5
7784 fi
7785 else
7786 echo "cannot find nm_test_var in $nlist" >&5
7787 fi
7788 else
7789 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7790 fi
7791 else
7792 echo "$progname: failed program was:" >&5
7793 cat conftest.$ac_ext >&5
7794 fi
7795 rm -rf conftest* conftst*
7796
7797 # Do not use the global_symbol_pipe unless it works.
7798 if test "$pipe_works" = yes; then
7799 break
7800 else
7801 lt_cv_sys_global_symbol_pipe=
7802 fi
7803done
7804
7805fi
7806
7807if test -z "$lt_cv_sys_global_symbol_pipe"; then
7808 lt_cv_sys_global_symbol_to_cdecl=
7809fi
7810if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7812$as_echo "failed" >&6; }
7813else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7815$as_echo "ok" >&6; }
7816fi
7817
7818# Response file support.
7819if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7820 nm_file_list_spec='@'
7821elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7822 nm_file_list_spec='@'
7823fi
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7852$as_echo_n "checking for sysroot... " >&6; }
7853
7854# Check whether --with-sysroot was given.
7855if test "${with_sysroot+set}" = set; then :
7856 withval=$with_sysroot;
7857else
7858 with_sysroot=no
7859fi
7860
7861
7862lt_sysroot=
7863case ${with_sysroot} in #(
7864 yes)
7865 if test "$GCC" = yes; then
7866 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7867 fi
7868 ;; #(
7869 /*)
7870 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7871 ;; #(
7872 no|'')
7873 ;; #(
7874 *)
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7876$as_echo "${with_sysroot}" >&6; }
7877 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7878 ;;
7879esac
7880
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7882$as_echo "${lt_sysroot:-no}" >&6; }
7883
7884
7885
7886
7887
7888# Check whether --enable-libtool-lock was given.
7889if test "${enable_libtool_lock+set}" = set; then :
7890 enableval=$enable_libtool_lock;
7891fi
7892
7893test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7894
7895# Some flags need to be propagated to the compiler or linker for good
7896# libtool support.
7897case $host in
7898ia64-*-hpux*)
7899 # Find out which ABI we are using.
7900 echo 'int i;' > conftest.$ac_ext
7901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7902 (eval $ac_compile) 2>&5
7903 ac_status=$?
7904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7905 test $ac_status = 0; }; then
7906 case `/usr/bin/file conftest.$ac_objext` in
7907 *ELF-32*)
7908 HPUX_IA64_MODE="32"
7909 ;;
7910 *ELF-64*)
7911 HPUX_IA64_MODE="64"
7912 ;;
7913 esac
7914 fi
7915 rm -rf conftest*
7916 ;;
7917*-*-irix6*)
7918 # Find out which ABI we are using.
7919 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7921 (eval $ac_compile) 2>&5
7922 ac_status=$?
7923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7924 test $ac_status = 0; }; then
7925 if test "$lt_cv_prog_gnu_ld" = yes; then
7926 case `/usr/bin/file conftest.$ac_objext` in
7927 *32-bit*)
7928 LD="${LD-ld} -melf32bsmip"
7929 ;;
7930 *N32*)
7931 LD="${LD-ld} -melf32bmipn32"
7932 ;;
7933 *64-bit*)
7934 LD="${LD-ld} -melf64bmip"
7935 ;;
7936 esac
7937 else
7938 case `/usr/bin/file conftest.$ac_objext` in
7939 *32-bit*)
7940 LD="${LD-ld} -32"
7941 ;;
7942 *N32*)
7943 LD="${LD-ld} -n32"
7944 ;;
7945 *64-bit*)
7946 LD="${LD-ld} -64"
7947 ;;
7948 esac
7949 fi
7950 fi
7951 rm -rf conftest*
7952 ;;
7953
7954x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7955s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7956 # Find out which ABI we are using.
7957 echo 'int i;' > conftest.$ac_ext
7958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7959 (eval $ac_compile) 2>&5
7960 ac_status=$?
7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; }; then
7963 case `/usr/bin/file conftest.o` in
7964 *32-bit*)
7965 case $host in
7966 x86_64-*kfreebsd*-gnu)
7967 LD="${LD-ld} -m elf_i386_fbsd"
7968 ;;
7969 x86_64-*linux*)
7970 case `/usr/bin/file conftest.o` in
7971 *x86-64*)
7972 LD="${LD-ld} -m elf32_x86_64"
7973 ;;
7974 *)
7975 LD="${LD-ld} -m elf_i386"
7976 ;;
7977 esac
7978 ;;
7979 powerpc64le-*)
7980 LD="${LD-ld} -m elf32lppclinux"
7981 ;;
7982 powerpc64-*)
7983 LD="${LD-ld} -m elf32ppclinux"
7984 ;;
7985 s390x-*linux*)
7986 LD="${LD-ld} -m elf_s390"
7987 ;;
7988 sparc64-*linux*)
7989 LD="${LD-ld} -m elf32_sparc"
7990 ;;
7991 esac
7992 ;;
7993 *64-bit*)
7994 case $host in
7995 x86_64-*kfreebsd*-gnu)
7996 LD="${LD-ld} -m elf_x86_64_fbsd"
7997 ;;
7998 x86_64-*linux*)
7999 LD="${LD-ld} -m elf_x86_64"
8000 ;;
8001 powerpcle-*)
8002 LD="${LD-ld} -m elf64lppc"
8003 ;;
8004 powerpc-*)
8005 LD="${LD-ld} -m elf64ppc"
8006 ;;
8007 s390*-*linux*|s390*-*tpf*)
8008 LD="${LD-ld} -m elf64_s390"
8009 ;;
8010 sparc*-*linux*)
8011 LD="${LD-ld} -m elf64_sparc"
8012 ;;
8013 esac
8014 ;;
8015 esac
8016 fi
8017 rm -rf conftest*
8018 ;;
8019
8020*-*-sco3.2v5*)
8021 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8022 SAVE_CFLAGS="$CFLAGS"
8023 CFLAGS="$CFLAGS -belf"
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8025$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8026if ${lt_cv_cc_needs_belf+:} false; then :
8027 $as_echo_n "(cached) " >&6
8028else
8029 ac_ext=c
8030ac_cpp='$CPP $CPPFLAGS'
8031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033ac_compiler_gnu=$ac_cv_c_compiler_gnu
8034
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036/* end confdefs.h. */
8037
8038int
8039main ()
8040{
8041
8042 ;
8043 return 0;
8044}
8045_ACEOF
8046if ac_fn_c_try_link "$LINENO"; then :
8047 lt_cv_cc_needs_belf=yes
8048else
8049 lt_cv_cc_needs_belf=no
8050fi
8051rm -f core conftest.err conftest.$ac_objext \
8052 conftest$ac_exeext conftest.$ac_ext
8053 ac_ext=c
8054ac_cpp='$CPP $CPPFLAGS'
8055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8057ac_compiler_gnu=$ac_cv_c_compiler_gnu
8058
8059fi
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8061$as_echo "$lt_cv_cc_needs_belf" >&6; }
8062 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8063 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8064 CFLAGS="$SAVE_CFLAGS"
8065 fi
8066 ;;
8067*-*solaris*)
8068 # Find out which ABI we are using.
8069 echo 'int i;' > conftest.$ac_ext
8070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8071 (eval $ac_compile) 2>&5
8072 ac_status=$?
8073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8074 test $ac_status = 0; }; then
8075 case `/usr/bin/file conftest.o` in
8076 *64-bit*)
8077 case $lt_cv_prog_gnu_ld in
8078 yes*)
8079 case $host in
8080 i?86-*-solaris*)
8081 LD="${LD-ld} -m elf_x86_64"
8082 ;;
8083 sparc*-*-solaris*)
8084 LD="${LD-ld} -m elf64_sparc"
8085 ;;
8086 esac
8087 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8088 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8089 LD="${LD-ld}_sol2"
8090 fi
8091 ;;
8092 *)
8093 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8094 LD="${LD-ld} -64"
8095 fi
8096 ;;
8097 esac
8098 ;;
8099 esac
8100 fi
8101 rm -rf conftest*
8102 ;;
8103esac
8104
8105need_locks="$enable_libtool_lock"
8106
8107if test -n "$ac_tool_prefix"; then
8108 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8109set dummy ${ac_tool_prefix}mt; ac_word=$2
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111$as_echo_n "checking for $ac_word... " >&6; }
8112if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8113 $as_echo_n "(cached) " >&6
8114else
8115 if test -n "$MANIFEST_TOOL"; then
8116 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8117else
8118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119for as_dir in $PATH
8120do
8121 IFS=$as_save_IFS
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8125 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 break 2
8128 fi
8129done
8130 done
8131IFS=$as_save_IFS
8132
8133fi
8134fi
8135MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8136if test -n "$MANIFEST_TOOL"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8138$as_echo "$MANIFEST_TOOL" >&6; }
8139else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141$as_echo "no" >&6; }
8142fi
8143
8144
8145fi
8146if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8147 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8148 # Extract the first word of "mt", so it can be a program name with args.
8149set dummy mt; ac_word=$2
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151$as_echo_n "checking for $ac_word... " >&6; }
8152if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154else
8155 if test -n "$ac_ct_MANIFEST_TOOL"; then
8156 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8157else
8158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159for as_dir in $PATH
8160do
8161 IFS=$as_save_IFS
8162 test -z "$as_dir" && as_dir=.
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8165 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 break 2
8168 fi
8169done
8170 done
8171IFS=$as_save_IFS
8172
8173fi
8174fi
8175ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8176if test -n "$ac_ct_MANIFEST_TOOL"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8178$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8179else
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181$as_echo "no" >&6; }
8182fi
8183
8184 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8185 MANIFEST_TOOL=":"
8186 else
8187 case $cross_compiling:$ac_tool_warned in
8188yes:)
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8191ac_tool_warned=yes ;;
8192esac
8193 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8194 fi
8195else
8196 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8197fi
8198
8199test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8201$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8202if ${lt_cv_path_mainfest_tool+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204else
8205 lt_cv_path_mainfest_tool=no
8206 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8207 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8208 cat conftest.err >&5
8209 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8210 lt_cv_path_mainfest_tool=yes
8211 fi
8212 rm -f conftest*
8213fi
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8215$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8216if test "x$lt_cv_path_mainfest_tool" != xyes; then
8217 MANIFEST_TOOL=:
8218fi
8219
8220
8221
8222
8223
8224
8225 case $host_os in
8226 rhapsody* | darwin*)
8227 if test -n "$ac_tool_prefix"; then
8228 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8229set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231$as_echo_n "checking for $ac_word... " >&6; }
8232if ${ac_cv_prog_DSYMUTIL+:} false; then :
8233 $as_echo_n "(cached) " >&6
8234else
8235 if test -n "$DSYMUTIL"; then
8236 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8237else
8238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239for as_dir in $PATH
8240do
8241 IFS=$as_save_IFS
8242 test -z "$as_dir" && as_dir=.
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8245 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 break 2
8248 fi
8249done
8250 done
8251IFS=$as_save_IFS
8252
8253fi
8254fi
8255DSYMUTIL=$ac_cv_prog_DSYMUTIL
8256if test -n "$DSYMUTIL"; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8258$as_echo "$DSYMUTIL" >&6; }
8259else
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261$as_echo "no" >&6; }
8262fi
8263
8264
8265fi
8266if test -z "$ac_cv_prog_DSYMUTIL"; then
8267 ac_ct_DSYMUTIL=$DSYMUTIL
8268 # Extract the first word of "dsymutil", so it can be a program name with args.
8269set dummy dsymutil; ac_word=$2
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271$as_echo_n "checking for $ac_word... " >&6; }
8272if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8273 $as_echo_n "(cached) " >&6
8274else
8275 if test -n "$ac_ct_DSYMUTIL"; then
8276 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8277else
8278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279for as_dir in $PATH
8280do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8285 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8288 fi
8289done
8290 done
8291IFS=$as_save_IFS
8292
8293fi
8294fi
8295ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8296if test -n "$ac_ct_DSYMUTIL"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8298$as_echo "$ac_ct_DSYMUTIL" >&6; }
8299else
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301$as_echo "no" >&6; }
8302fi
8303
8304 if test "x$ac_ct_DSYMUTIL" = x; then
8305 DSYMUTIL=":"
8306 else
8307 case $cross_compiling:$ac_tool_warned in
8308yes:)
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8311ac_tool_warned=yes ;;
8312esac
8313 DSYMUTIL=$ac_ct_DSYMUTIL
8314 fi
8315else
8316 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8317fi
8318
8319 if test -n "$ac_tool_prefix"; then
8320 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8321set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323$as_echo_n "checking for $ac_word... " >&6; }
8324if ${ac_cv_prog_NMEDIT+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326else
8327 if test -n "$NMEDIT"; then
8328 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8329else
8330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331for as_dir in $PATH
8332do
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8337 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 break 2
8340 fi
8341done
8342 done
8343IFS=$as_save_IFS
8344
8345fi
8346fi
8347NMEDIT=$ac_cv_prog_NMEDIT
8348if test -n "$NMEDIT"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8350$as_echo "$NMEDIT" >&6; }
8351else
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353$as_echo "no" >&6; }
8354fi
8355
8356
8357fi
8358if test -z "$ac_cv_prog_NMEDIT"; then
8359 ac_ct_NMEDIT=$NMEDIT
8360 # Extract the first word of "nmedit", so it can be a program name with args.
8361set dummy nmedit; ac_word=$2
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363$as_echo_n "checking for $ac_word... " >&6; }
8364if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8365 $as_echo_n "(cached) " >&6
8366else
8367 if test -n "$ac_ct_NMEDIT"; then
8368 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8369else
8370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371for as_dir in $PATH
8372do
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8377 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 break 2
8380 fi
8381done
8382 done
8383IFS=$as_save_IFS
8384
8385fi
8386fi
8387ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8388if test -n "$ac_ct_NMEDIT"; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8390$as_echo "$ac_ct_NMEDIT" >&6; }
8391else
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393$as_echo "no" >&6; }
8394fi
8395
8396 if test "x$ac_ct_NMEDIT" = x; then
8397 NMEDIT=":"
8398 else
8399 case $cross_compiling:$ac_tool_warned in
8400yes:)
8401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8403ac_tool_warned=yes ;;
8404esac
8405 NMEDIT=$ac_ct_NMEDIT
8406 fi
8407else
8408 NMEDIT="$ac_cv_prog_NMEDIT"
8409fi
8410
8411 if test -n "$ac_tool_prefix"; then
8412 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8413set dummy ${ac_tool_prefix}lipo; ac_word=$2
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415$as_echo_n "checking for $ac_word... " >&6; }
8416if ${ac_cv_prog_LIPO+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418else
8419 if test -n "$LIPO"; then
8420 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8421else
8422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423for as_dir in $PATH
8424do
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8429 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 break 2
8432 fi
8433done
8434 done
8435IFS=$as_save_IFS
8436
8437fi
8438fi
8439LIPO=$ac_cv_prog_LIPO
8440if test -n "$LIPO"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8442$as_echo "$LIPO" >&6; }
8443else
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
8446fi
8447
8448
8449fi
8450if test -z "$ac_cv_prog_LIPO"; then
8451 ac_ct_LIPO=$LIPO
8452 # Extract the first word of "lipo", so it can be a program name with args.
8453set dummy lipo; ac_word=$2
8454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8455$as_echo_n "checking for $ac_word... " >&6; }
8456if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8457 $as_echo_n "(cached) " >&6
8458else
8459 if test -n "$ac_ct_LIPO"; then
8460 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8461else
8462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463for as_dir in $PATH
8464do
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8469 ac_cv_prog_ac_ct_LIPO="lipo"
8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 break 2
8472 fi
8473done
8474 done
8475IFS=$as_save_IFS
8476
8477fi
8478fi
8479ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8480if test -n "$ac_ct_LIPO"; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8482$as_echo "$ac_ct_LIPO" >&6; }
8483else
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485$as_echo "no" >&6; }
8486fi
8487
8488 if test "x$ac_ct_LIPO" = x; then
8489 LIPO=":"
8490 else
8491 case $cross_compiling:$ac_tool_warned in
8492yes:)
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8495ac_tool_warned=yes ;;
8496esac
8497 LIPO=$ac_ct_LIPO
8498 fi
8499else
8500 LIPO="$ac_cv_prog_LIPO"
8501fi
8502
8503 if test -n "$ac_tool_prefix"; then
8504 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8505set dummy ${ac_tool_prefix}otool; ac_word=$2
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507$as_echo_n "checking for $ac_word... " >&6; }
8508if ${ac_cv_prog_OTOOL+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510else
8511 if test -n "$OTOOL"; then
8512 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8513else
8514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in $PATH
8516do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8524 fi
8525done
8526 done
8527IFS=$as_save_IFS
8528
8529fi
8530fi
8531OTOOL=$ac_cv_prog_OTOOL
8532if test -n "$OTOOL"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8534$as_echo "$OTOOL" >&6; }
8535else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537$as_echo "no" >&6; }
8538fi
8539
8540
8541fi
8542if test -z "$ac_cv_prog_OTOOL"; then
8543 ac_ct_OTOOL=$OTOOL
8544 # Extract the first word of "otool", so it can be a program name with args.
8545set dummy otool; ac_word=$2
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8547$as_echo_n "checking for $ac_word... " >&6; }
8548if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550else
8551 if test -n "$ac_ct_OTOOL"; then
8552 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8553else
8554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555for as_dir in $PATH
8556do
8557 IFS=$as_save_IFS
8558 test -z "$as_dir" && as_dir=.
8559 for ac_exec_ext in '' $ac_executable_extensions; do
8560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8561 ac_cv_prog_ac_ct_OTOOL="otool"
8562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8563 break 2
8564 fi
8565done
8566 done
8567IFS=$as_save_IFS
8568
8569fi
8570fi
8571ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8572if test -n "$ac_ct_OTOOL"; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8574$as_echo "$ac_ct_OTOOL" >&6; }
8575else
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577$as_echo "no" >&6; }
8578fi
8579
8580 if test "x$ac_ct_OTOOL" = x; then
8581 OTOOL=":"
8582 else
8583 case $cross_compiling:$ac_tool_warned in
8584yes:)
8585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8587ac_tool_warned=yes ;;
8588esac
8589 OTOOL=$ac_ct_OTOOL
8590 fi
8591else
8592 OTOOL="$ac_cv_prog_OTOOL"
8593fi
8594
8595 if test -n "$ac_tool_prefix"; then
8596 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8597set dummy ${ac_tool_prefix}otool64; ac_word=$2
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599$as_echo_n "checking for $ac_word... " >&6; }
8600if ${ac_cv_prog_OTOOL64+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602else
8603 if test -n "$OTOOL64"; then
8604 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8605else
8606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607for as_dir in $PATH
8608do
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8613 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 break 2
8616 fi
8617done
8618 done
8619IFS=$as_save_IFS
8620
8621fi
8622fi
8623OTOOL64=$ac_cv_prog_OTOOL64
8624if test -n "$OTOOL64"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8626$as_echo "$OTOOL64" >&6; }
8627else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629$as_echo "no" >&6; }
8630fi
8631
8632
8633fi
8634if test -z "$ac_cv_prog_OTOOL64"; then
8635 ac_ct_OTOOL64=$OTOOL64
8636 # Extract the first word of "otool64", so it can be a program name with args.
8637set dummy otool64; ac_word=$2
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639$as_echo_n "checking for $ac_word... " >&6; }
8640if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642else
8643 if test -n "$ac_ct_OTOOL64"; then
8644 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8645else
8646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647for as_dir in $PATH
8648do
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653 ac_cv_prog_ac_ct_OTOOL64="otool64"
8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 break 2
8656 fi
8657done
8658 done
8659IFS=$as_save_IFS
8660
8661fi
8662fi
8663ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8664if test -n "$ac_ct_OTOOL64"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8666$as_echo "$ac_ct_OTOOL64" >&6; }
8667else
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669$as_echo "no" >&6; }
8670fi
8671
8672 if test "x$ac_ct_OTOOL64" = x; then
8673 OTOOL64=":"
8674 else
8675 case $cross_compiling:$ac_tool_warned in
8676yes:)
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8679ac_tool_warned=yes ;;
8680esac
8681 OTOOL64=$ac_ct_OTOOL64
8682 fi
8683else
8684 OTOOL64="$ac_cv_prog_OTOOL64"
8685fi
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8714$as_echo_n "checking for -single_module linker flag... " >&6; }
8715if ${lt_cv_apple_cc_single_mod+:} false; then :
8716 $as_echo_n "(cached) " >&6
8717else
8718 lt_cv_apple_cc_single_mod=no
8719 if test -z "${LT_MULTI_MODULE}"; then
8720 # By default we will add the -single_module flag. You can override
8721 # by either setting the environment variable LT_MULTI_MODULE
8722 # non-empty at configure time, or by adding -multi_module to the
8723 # link flags.
8724 rm -rf libconftest.dylib*
8725 echo "int foo(void){return 1;}" > conftest.c
8726 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8727-dynamiclib -Wl,-single_module conftest.c" >&5
8728 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8729 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8730 _lt_result=$?
8731 # If there is a non-empty error log, and "single_module"
8732 # appears in it, assume the flag caused a linker warning
8733 if test -s conftest.err && $GREP single_module conftest.err; then
8734 cat conftest.err >&5
8735 # Otherwise, if the output was created with a 0 exit code from
8736 # the compiler, it worked.
8737 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8738 lt_cv_apple_cc_single_mod=yes
8739 else
8740 cat conftest.err >&5
8741 fi
8742 rm -rf libconftest.dylib*
8743 rm -f conftest.*
8744 fi
8745fi
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8747$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8748
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8750$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8751if ${lt_cv_ld_exported_symbols_list+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753else
8754 lt_cv_ld_exported_symbols_list=no
8755 save_LDFLAGS=$LDFLAGS
8756 echo "_main" > conftest.sym
8757 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759/* end confdefs.h. */
8760
8761int
8762main ()
8763{
8764
8765 ;
8766 return 0;
8767}
8768_ACEOF
8769if ac_fn_c_try_link "$LINENO"; then :
8770 lt_cv_ld_exported_symbols_list=yes
8771else
8772 lt_cv_ld_exported_symbols_list=no
8773fi
8774rm -f core conftest.err conftest.$ac_objext \
8775 conftest$ac_exeext conftest.$ac_ext
8776 LDFLAGS="$save_LDFLAGS"
8777
8778fi
8779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8780$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8781
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8783$as_echo_n "checking for -force_load linker flag... " >&6; }
8784if ${lt_cv_ld_force_load+:} false; then :
8785 $as_echo_n "(cached) " >&6
8786else
8787 lt_cv_ld_force_load=no
8788 cat > conftest.c << _LT_EOF
8789int forced_loaded() { return 2;}
8790_LT_EOF
8791 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8792 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8793 echo "$AR cru libconftest.a conftest.o" >&5
8794 $AR cru libconftest.a conftest.o 2>&5
8795 echo "$RANLIB libconftest.a" >&5
8796 $RANLIB libconftest.a 2>&5
8797 cat > conftest.c << _LT_EOF
8798int main() { return 0;}
8799_LT_EOF
8800 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8801 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8802 _lt_result=$?
8803 if test -s conftest.err && $GREP force_load conftest.err; then
8804 cat conftest.err >&5
8805 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8806 lt_cv_ld_force_load=yes
8807 else
8808 cat conftest.err >&5
8809 fi
8810 rm -f conftest.err libconftest.a conftest conftest.c
8811 rm -rf conftest.dSYM
8812
8813fi
8814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8815$as_echo "$lt_cv_ld_force_load" >&6; }
8816 case $host_os in
8817 rhapsody* | darwin1.[012])
8818 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8819 darwin1.*)
8820 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8821 darwin*) # darwin 5.x on
8822 # if running on 10.5 or later, the deployment target defaults
8823 # to the OS version, if on x86, and 10.4, the deployment
8824 # target defaults to 10.4. Don't you love it?
8825 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8826 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8827 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8828 10.[012]*)
8829 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8830 10.*)
8831 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8832 esac
8833 ;;
8834 esac
8835 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8836 _lt_dar_single_mod='$single_module'
8837 fi
8838 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8839 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8840 else
8841 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8842 fi
8843 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8844 _lt_dsymutil='~$DSYMUTIL $lib || :'
8845 else
8846 _lt_dsymutil=
8847 fi
8848 ;;
8849 esac
8850
8851
8852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8853$as_echo_n "checking for ANSI C header files... " >&6; }
8854if ${ac_cv_header_stdc+:} false; then :
8855 $as_echo_n "(cached) " >&6
8856else
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858/* end confdefs.h. */
8859#include <stdlib.h>
8860#include <stdarg.h>
8861#include <string.h>
8862#include <float.h>
8863
8864int
8865main ()
8866{
8867
8868 ;
8869 return 0;
8870}
8871_ACEOF
8872if ac_fn_c_try_compile "$LINENO"; then :
8873 ac_cv_header_stdc=yes
8874else
8875 ac_cv_header_stdc=no
8876fi
8877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878
8879if test $ac_cv_header_stdc = yes; then
8880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882/* end confdefs.h. */
8883#include <string.h>
8884
8885_ACEOF
8886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8887 $EGREP "memchr" >/dev/null 2>&1; then :
8888
8889else
8890 ac_cv_header_stdc=no
8891fi
8892rm -f conftest*
8893
8894fi
8895
8896if test $ac_cv_header_stdc = yes; then
8897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899/* end confdefs.h. */
8900#include <stdlib.h>
8901
8902_ACEOF
8903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8904 $EGREP "free" >/dev/null 2>&1; then :
8905
8906else
8907 ac_cv_header_stdc=no
8908fi
8909rm -f conftest*
8910
8911fi
8912
8913if test $ac_cv_header_stdc = yes; then
8914 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8915 if test "$cross_compiling" = yes; then :
8916 :
8917else
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919/* end confdefs.h. */
8920#include <ctype.h>
8921#include <stdlib.h>
8922#if ((' ' & 0x0FF) == 0x020)
8923# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8924# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8925#else
8926# define ISLOWER(c) \
8927 (('a' <= (c) && (c) <= 'i') \
8928 || ('j' <= (c) && (c) <= 'r') \
8929 || ('s' <= (c) && (c) <= 'z'))
8930# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8931#endif
8932
8933#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8934int
8935main ()
8936{
8937 int i;
8938 for (i = 0; i < 256; i++)
8939 if (XOR (islower (i), ISLOWER (i))
8940 || toupper (i) != TOUPPER (i))
8941 return 2;
8942 return 0;
8943}
8944_ACEOF
8945if ac_fn_c_try_run "$LINENO"; then :
8946
8947else
8948 ac_cv_header_stdc=no
8949fi
8950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8951 conftest.$ac_objext conftest.beam conftest.$ac_ext
8952fi
8953
8954fi
8955fi
8956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8957$as_echo "$ac_cv_header_stdc" >&6; }
8958if test $ac_cv_header_stdc = yes; then
8959
8960$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8961
8962fi
8963
8964# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8965for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8966 inttypes.h stdint.h unistd.h
8967do :
8968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8969ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8970"
8971if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8972 cat >>confdefs.h <<_ACEOF
8973#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8974_ACEOF
8975
8976fi
8977
8978done
8979
8980
8981for ac_header in dlfcn.h
8982do :
8983 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8984"
8985if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8986 cat >>confdefs.h <<_ACEOF
8987#define HAVE_DLFCN_H 1
8988_ACEOF
8989
8990fi
8991
8992done
8993
8994
8995
8996
8997
8998# Set options
8999
9000
9001
9002 enable_dlopen=no
9003
9004
9005 enable_win32_dll=no
9006
9007
9008 # Check whether --enable-shared was given.
9009if test "${enable_shared+set}" = set; then :
9010 enableval=$enable_shared; p=${PACKAGE-default}
9011 case $enableval in
9012 yes) enable_shared=yes ;;
9013 no) enable_shared=no ;;
9014 *)
9015 enable_shared=no
9016 # Look at the argument we got. We use all the common list separators.
9017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9018 for pkg in $enableval; do
9019 IFS="$lt_save_ifs"
9020 if test "X$pkg" = "X$p"; then
9021 enable_shared=yes
9022 fi
9023 done
9024 IFS="$lt_save_ifs"
9025 ;;
9026 esac
9027else
9028 enable_shared=yes
9029fi
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041# Check whether --with-pic was given.
9042if test "${with_pic+set}" = set; then :
9043 withval=$with_pic; lt_p=${PACKAGE-default}
9044 case $withval in
9045 yes|no) pic_mode=$withval ;;
9046 *)
9047 pic_mode=default
9048 # Look at the argument we got. We use all the common list separators.
9049 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9050 for lt_pkg in $withval; do
9051 IFS="$lt_save_ifs"
9052 if test "X$lt_pkg" = "X$lt_p"; then
9053 pic_mode=yes
9054 fi
9055 done
9056 IFS="$lt_save_ifs"
9057 ;;
9058 esac
9059else
9060 pic_mode=default
9061fi
9062
9063
9064test -z "$pic_mode" && pic_mode=default
9065
9066
9067
9068
9069
9070
9071
9072 # Check whether --enable-fast-install was given.
9073if test "${enable_fast_install+set}" = set; then :
9074 enableval=$enable_fast_install; p=${PACKAGE-default}
9075 case $enableval in
9076 yes) enable_fast_install=yes ;;
9077 no) enable_fast_install=no ;;
9078 *)
9079 enable_fast_install=no
9080 # Look at the argument we got. We use all the common list separators.
9081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9082 for pkg in $enableval; do
9083 IFS="$lt_save_ifs"
9084 if test "X$pkg" = "X$p"; then
9085 enable_fast_install=yes
9086 fi
9087 done
9088 IFS="$lt_save_ifs"
9089 ;;
9090 esac
9091else
9092 enable_fast_install=yes
9093fi
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105# This can be used to rebuild libtool when needed
9106LIBTOOL_DEPS="$ltmain"
9107
9108# Always use our own libtool.
9109LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140test -z "$LN_S" && LN_S="ln -s"
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155if test -n "${ZSH_VERSION+set}" ; then
9156 setopt NO_GLOB_SUBST
9157fi
9158
9159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9160$as_echo_n "checking for objdir... " >&6; }
9161if ${lt_cv_objdir+:} false; then :
9162 $as_echo_n "(cached) " >&6
9163else
9164 rm -f .libs 2>/dev/null
9165mkdir .libs 2>/dev/null
9166if test -d .libs; then
9167 lt_cv_objdir=.libs
9168else
9169 # MS-DOS does not allow filenames that begin with a dot.
9170 lt_cv_objdir=_libs
9171fi
9172rmdir .libs 2>/dev/null
9173fi
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9175$as_echo "$lt_cv_objdir" >&6; }
9176objdir=$lt_cv_objdir
9177
9178
9179
9180
9181
9182cat >>confdefs.h <<_ACEOF
9183#define LT_OBJDIR "$lt_cv_objdir/"
9184_ACEOF
9185
9186
9187
9188
9189case $host_os in
9190aix3*)
9191 # AIX sometimes has problems with the GCC collect2 program. For some
9192 # reason, if we set the COLLECT_NAMES environment variable, the problems
9193 # vanish in a puff of smoke.
9194 if test "X${COLLECT_NAMES+set}" != Xset; then
9195 COLLECT_NAMES=
9196 export COLLECT_NAMES
9197 fi
9198 ;;
9199esac
9200
9201# Global variables:
9202ofile=libtool
9203can_build_shared=yes
9204
9205# All known linkers require a `.a' archive for static linking (except MSVC,
9206# which needs '.lib').
9207libext=a
9208
9209with_gnu_ld="$lt_cv_prog_gnu_ld"
9210
9211old_CC="$CC"
9212old_CFLAGS="$CFLAGS"
9213
9214# Set sane defaults for various variables
9215test -z "$CC" && CC=cc
9216test -z "$LTCC" && LTCC=$CC
9217test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9218test -z "$LD" && LD=ld
9219test -z "$ac_objext" && ac_objext=o
9220
9221for cc_temp in $compiler""; do
9222 case $cc_temp in
9223 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9224 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9225 \-*) ;;
9226 *) break;;
9227 esac
9228done
9229cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9230
9231
9232# Only perform the check for file, if the check method requires it
9233test -z "$MAGIC_CMD" && MAGIC_CMD=file
9234case $deplibs_check_method in
9235file_magic*)
9236 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9238$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9239if ${lt_cv_path_MAGIC_CMD+:} false; then :
9240 $as_echo_n "(cached) " >&6
9241else
9242 case $MAGIC_CMD in
9243[\\/*] | ?:[\\/]*)
9244 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9245 ;;
9246*)
9247 lt_save_MAGIC_CMD="$MAGIC_CMD"
9248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9249 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9250 for ac_dir in $ac_dummy; do
9251 IFS="$lt_save_ifs"
9252 test -z "$ac_dir" && ac_dir=.
9253 if test -f $ac_dir/${ac_tool_prefix}file; then
9254 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9255 if test -n "$file_magic_test_file"; then
9256 case $deplibs_check_method in
9257 "file_magic "*)
9258 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9260 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9261 $EGREP "$file_magic_regex" > /dev/null; then
9262 :
9263 else
9264 cat <<_LT_EOF 1>&2
9265
9266*** Warning: the command libtool uses to detect shared libraries,
9267*** $file_magic_cmd, produces output that libtool cannot recognize.
9268*** The result is that libtool may fail to recognize shared libraries
9269*** as such. This will affect the creation of libtool libraries that
9270*** depend on shared libraries, but programs linked with such libtool
9271*** libraries will work regardless of this problem. Nevertheless, you
9272*** may want to report the problem to your system manager and/or to
9273*** bug-libtool@gnu.org
9274
9275_LT_EOF
9276 fi ;;
9277 esac
9278 fi
9279 break
9280 fi
9281 done
9282 IFS="$lt_save_ifs"
9283 MAGIC_CMD="$lt_save_MAGIC_CMD"
9284 ;;
9285esac
9286fi
9287
9288MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9289if test -n "$MAGIC_CMD"; then
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9291$as_echo "$MAGIC_CMD" >&6; }
9292else
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9294$as_echo "no" >&6; }
9295fi
9296
9297
9298
9299
9300
9301if test -z "$lt_cv_path_MAGIC_CMD"; then
9302 if test -n "$ac_tool_prefix"; then
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9304$as_echo_n "checking for file... " >&6; }
9305if ${lt_cv_path_MAGIC_CMD+:} false; then :
9306 $as_echo_n "(cached) " >&6
9307else
9308 case $MAGIC_CMD in
9309[\\/*] | ?:[\\/]*)
9310 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9311 ;;
9312*)
9313 lt_save_MAGIC_CMD="$MAGIC_CMD"
9314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9315 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9316 for ac_dir in $ac_dummy; do
9317 IFS="$lt_save_ifs"
9318 test -z "$ac_dir" && ac_dir=.
9319 if test -f $ac_dir/file; then
9320 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9321 if test -n "$file_magic_test_file"; then
9322 case $deplibs_check_method in
9323 "file_magic "*)
9324 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9326 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9327 $EGREP "$file_magic_regex" > /dev/null; then
9328 :
9329 else
9330 cat <<_LT_EOF 1>&2
9331
9332*** Warning: the command libtool uses to detect shared libraries,
9333*** $file_magic_cmd, produces output that libtool cannot recognize.
9334*** The result is that libtool may fail to recognize shared libraries
9335*** as such. This will affect the creation of libtool libraries that
9336*** depend on shared libraries, but programs linked with such libtool
9337*** libraries will work regardless of this problem. Nevertheless, you
9338*** may want to report the problem to your system manager and/or to
9339*** bug-libtool@gnu.org
9340
9341_LT_EOF
9342 fi ;;
9343 esac
9344 fi
9345 break
9346 fi
9347 done
9348 IFS="$lt_save_ifs"
9349 MAGIC_CMD="$lt_save_MAGIC_CMD"
9350 ;;
9351esac
9352fi
9353
9354MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9355if test -n "$MAGIC_CMD"; then
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9357$as_echo "$MAGIC_CMD" >&6; }
9358else
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360$as_echo "no" >&6; }
9361fi
9362
9363
9364 else
9365 MAGIC_CMD=:
9366 fi
9367fi
9368
9369 fi
9370 ;;
9371esac
9372
9373# Use C for the default configuration in the libtool script
9374
9375lt_save_CC="$CC"
9376ac_ext=c
9377ac_cpp='$CPP $CPPFLAGS'
9378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9380ac_compiler_gnu=$ac_cv_c_compiler_gnu
9381
9382
9383# Source file extension for C test sources.
9384ac_ext=c
9385
9386# Object file extension for compiled C test sources.
9387objext=o
9388objext=$objext
9389
9390# Code to be used in simple compile tests
9391lt_simple_compile_test_code="int some_variable = 0;"
9392
9393# Code to be used in simple link tests
9394lt_simple_link_test_code='int main(){return(0);}'
9395
9396
9397
9398
9399
9400
9401
9402# If no C compiler was specified, use CC.
9403LTCC=${LTCC-"$CC"}
9404
9405# If no C compiler flags were specified, use CFLAGS.
9406LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9407
9408# Allow CC to be a program name with arguments.
9409compiler=$CC
9410
9411# Save the default compiler, since it gets overwritten when the other
9412# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9413compiler_DEFAULT=$CC
9414
9415# save warnings/boilerplate of simple test code
9416ac_outfile=conftest.$ac_objext
9417echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9418eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9419_lt_compiler_boilerplate=`cat conftest.err`
9420$RM conftest*
9421
9422ac_outfile=conftest.$ac_objext
9423echo "$lt_simple_link_test_code" >conftest.$ac_ext
9424eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9425_lt_linker_boilerplate=`cat conftest.err`
9426$RM -r conftest*
9427
9428
9429if test -n "$compiler"; then
9430
9431lt_prog_compiler_no_builtin_flag=
9432
9433if test "$GCC" = yes; then
9434 case $cc_basename in
9435 nvcc*)
9436 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9437 *)
9438 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9439 esac
9440
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9442$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9443if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9444 $as_echo_n "(cached) " >&6
9445else
9446 lt_cv_prog_compiler_rtti_exceptions=no
9447 ac_outfile=conftest.$ac_objext
9448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9449 lt_compiler_flag="-fno-rtti -fno-exceptions"
9450 # Insert the option either (1) after the last *FLAGS variable, or
9451 # (2) before a word containing "conftest.", or (3) at the end.
9452 # Note that $ac_compile itself does not contain backslashes and begins
9453 # with a dollar sign (not a hyphen), so the echo should work correctly.
9454 # The option is referenced via a variable to avoid confusing sed.
9455 lt_compile=`echo "$ac_compile" | $SED \
9456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9458 -e 's:$: $lt_compiler_flag:'`
9459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9460 (eval "$lt_compile" 2>conftest.err)
9461 ac_status=$?
9462 cat conftest.err >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 if (exit $ac_status) && test -s "$ac_outfile"; then
9465 # The compiler can only warn and ignore the option if not recognized
9466 # So say no if there are warnings other than the usual output.
9467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9470 lt_cv_prog_compiler_rtti_exceptions=yes
9471 fi
9472 fi
9473 $RM conftest*
9474
9475fi
9476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9477$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9478
9479if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9480 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9481else
9482 :
9483fi
9484
9485fi
9486
9487
9488
9489
9490
9491
9492 lt_prog_compiler_wl=
9493lt_prog_compiler_pic=
9494lt_prog_compiler_static=
9495
9496
9497 if test "$GCC" = yes; then
9498 lt_prog_compiler_wl='-Wl,'
9499 lt_prog_compiler_static='-static'
9500
9501 case $host_os in
9502 aix*)
9503 # All AIX code is PIC.
9504 if test "$host_cpu" = ia64; then
9505 # AIX 5 now supports IA64 processor
9506 lt_prog_compiler_static='-Bstatic'
9507 fi
9508 ;;
9509
9510 amigaos*)
9511 case $host_cpu in
9512 powerpc)
9513 # see comment about AmigaOS4 .so support
9514 lt_prog_compiler_pic='-fPIC'
9515 ;;
9516 m68k)
9517 # FIXME: we need at least 68020 code to build shared libraries, but
9518 # adding the `-m68020' flag to GCC prevents building anything better,
9519 # like `-m68040'.
9520 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9521 ;;
9522 esac
9523 ;;
9524
9525 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9526 # PIC is the default for these OSes.
9527 ;;
9528
9529 mingw* | cygwin* | pw32* | os2* | cegcc*)
9530 # This hack is so that the source file can tell whether it is being
9531 # built for inclusion in a dll (and should export symbols for example).
9532 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9533 # (--disable-auto-import) libraries
9534 lt_prog_compiler_pic='-DDLL_EXPORT'
9535 ;;
9536
9537 darwin* | rhapsody*)
9538 # PIC is the default on this platform
9539 # Common symbols not allowed in MH_DYLIB files
9540 lt_prog_compiler_pic='-fno-common'
9541 ;;
9542
9543 haiku*)
9544 # PIC is the default for Haiku.
9545 # The "-static" flag exists, but is broken.
9546 lt_prog_compiler_static=
9547 ;;
9548
9549 hpux*)
9550 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9551 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9552 # sets the default TLS model and affects inlining.
9553 case $host_cpu in
9554 hppa*64*)
9555 # +Z the default
9556 ;;
9557 *)
9558 lt_prog_compiler_pic='-fPIC'
9559 ;;
9560 esac
9561 ;;
9562
9563 interix[3-9]*)
9564 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9565 # Instead, we relocate shared libraries at runtime.
9566 ;;
9567
9568 msdosdjgpp*)
9569 # Just because we use GCC doesn't mean we suddenly get shared libraries
9570 # on systems that don't support them.
9571 lt_prog_compiler_can_build_shared=no
9572 enable_shared=no
9573 ;;
9574
9575 *nto* | *qnx*)
9576 # QNX uses GNU C++, but need to define -shared option too, otherwise
9577 # it will coredump.
9578 lt_prog_compiler_pic='-fPIC -shared'
9579 ;;
9580
9581 sysv4*MP*)
9582 if test -d /usr/nec; then
9583 lt_prog_compiler_pic=-Kconform_pic
9584 fi
9585 ;;
9586
9587 *)
9588 lt_prog_compiler_pic='-fPIC'
9589 ;;
9590 esac
9591
9592 case $cc_basename in
9593 nvcc*) # Cuda Compiler Driver 2.2
9594 lt_prog_compiler_wl='-Xlinker '
9595 if test -n "$lt_prog_compiler_pic"; then
9596 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9597 fi
9598 ;;
9599 esac
9600 else
9601 # PORTME Check for flag to pass linker flags through the system compiler.
9602 case $host_os in
9603 aix*)
9604 lt_prog_compiler_wl='-Wl,'
9605 if test "$host_cpu" = ia64; then
9606 # AIX 5 now supports IA64 processor
9607 lt_prog_compiler_static='-Bstatic'
9608 else
9609 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9610 fi
9611 ;;
9612
9613 mingw* | cygwin* | pw32* | os2* | cegcc*)
9614 # This hack is so that the source file can tell whether it is being
9615 # built for inclusion in a dll (and should export symbols for example).
9616 lt_prog_compiler_pic='-DDLL_EXPORT'
9617 ;;
9618
9619 hpux9* | hpux10* | hpux11*)
9620 lt_prog_compiler_wl='-Wl,'
9621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9622 # not for PA HP-UX.
9623 case $host_cpu in
9624 hppa*64*|ia64*)
9625 # +Z the default
9626 ;;
9627 *)
9628 lt_prog_compiler_pic='+Z'
9629 ;;
9630 esac
9631 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9632 lt_prog_compiler_static='${wl}-a ${wl}archive'
9633 ;;
9634
9635 irix5* | irix6* | nonstopux*)
9636 lt_prog_compiler_wl='-Wl,'
9637 # PIC (with -KPIC) is the default.
9638 lt_prog_compiler_static='-non_shared'
9639 ;;
9640
9641 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9642 case $cc_basename in
9643 # old Intel for x86_64 which still supported -KPIC.
9644 ecc*)
9645 lt_prog_compiler_wl='-Wl,'
9646 lt_prog_compiler_pic='-KPIC'
9647 lt_prog_compiler_static='-static'
9648 ;;
9649 # icc used to be incompatible with GCC.
9650 # ICC 10 doesn't accept -KPIC any more.
9651 icc* | ifort*)
9652 lt_prog_compiler_wl='-Wl,'
9653 lt_prog_compiler_pic='-fPIC'
9654 lt_prog_compiler_static='-static'
9655 ;;
9656 # Lahey Fortran 8.1.
9657 lf95*)
9658 lt_prog_compiler_wl='-Wl,'
9659 lt_prog_compiler_pic='--shared'
9660 lt_prog_compiler_static='--static'
9661 ;;
9662 nagfor*)
9663 # NAG Fortran compiler
9664 lt_prog_compiler_wl='-Wl,-Wl,,'
9665 lt_prog_compiler_pic='-PIC'
9666 lt_prog_compiler_static='-Bstatic'
9667 ;;
9668 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9669 # Portland Group compilers (*not* the Pentium gcc compiler,
9670 # which looks to be a dead project)
9671 lt_prog_compiler_wl='-Wl,'
9672 lt_prog_compiler_pic='-fpic'
9673 lt_prog_compiler_static='-Bstatic'
9674 ;;
9675 ccc*)
9676 lt_prog_compiler_wl='-Wl,'
9677 # All Alpha code is PIC.
9678 lt_prog_compiler_static='-non_shared'
9679 ;;
9680 xl* | bgxl* | bgf* | mpixl*)
9681 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9682 lt_prog_compiler_wl='-Wl,'
9683 lt_prog_compiler_pic='-qpic'
9684 lt_prog_compiler_static='-qstaticlink'
9685 ;;
9686 *)
9687 case `$CC -V 2>&1 | sed 5q` in
9688 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9689 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9690 lt_prog_compiler_pic='-KPIC'
9691 lt_prog_compiler_static='-Bstatic'
9692 lt_prog_compiler_wl=''
9693 ;;
9694 *Sun\ F* | *Sun*Fortran*)
9695 lt_prog_compiler_pic='-KPIC'
9696 lt_prog_compiler_static='-Bstatic'
9697 lt_prog_compiler_wl='-Qoption ld '
9698 ;;
9699 *Sun\ C*)
9700 # Sun C 5.9
9701 lt_prog_compiler_pic='-KPIC'
9702 lt_prog_compiler_static='-Bstatic'
9703 lt_prog_compiler_wl='-Wl,'
9704 ;;
9705 *Intel*\ [CF]*Compiler*)
9706 lt_prog_compiler_wl='-Wl,'
9707 lt_prog_compiler_pic='-fPIC'
9708 lt_prog_compiler_static='-static'
9709 ;;
9710 *Portland\ Group*)
9711 lt_prog_compiler_wl='-Wl,'
9712 lt_prog_compiler_pic='-fpic'
9713 lt_prog_compiler_static='-Bstatic'
9714 ;;
9715 esac
9716 ;;
9717 esac
9718 ;;
9719
9720 newsos6)
9721 lt_prog_compiler_pic='-KPIC'
9722 lt_prog_compiler_static='-Bstatic'
9723 ;;
9724
9725 *nto* | *qnx*)
9726 # QNX uses GNU C++, but need to define -shared option too, otherwise
9727 # it will coredump.
9728 lt_prog_compiler_pic='-fPIC -shared'
9729 ;;
9730
9731 osf3* | osf4* | osf5*)
9732 lt_prog_compiler_wl='-Wl,'
9733 # All OSF/1 code is PIC.
9734 lt_prog_compiler_static='-non_shared'
9735 ;;
9736
9737 rdos*)
9738 lt_prog_compiler_static='-non_shared'
9739 ;;
9740
9741 solaris*)
9742 lt_prog_compiler_pic='-KPIC'
9743 lt_prog_compiler_static='-Bstatic'
9744 case $cc_basename in
9745 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9746 lt_prog_compiler_wl='-Qoption ld ';;
9747 *)
9748 lt_prog_compiler_wl='-Wl,';;
9749 esac
9750 ;;
9751
9752 sunos4*)
9753 lt_prog_compiler_wl='-Qoption ld '
9754 lt_prog_compiler_pic='-PIC'
9755 lt_prog_compiler_static='-Bstatic'
9756 ;;
9757
9758 sysv4 | sysv4.2uw2* | sysv4.3*)
9759 lt_prog_compiler_wl='-Wl,'
9760 lt_prog_compiler_pic='-KPIC'
9761 lt_prog_compiler_static='-Bstatic'
9762 ;;
9763
9764 sysv4*MP*)
9765 if test -d /usr/nec ;then
9766 lt_prog_compiler_pic='-Kconform_pic'
9767 lt_prog_compiler_static='-Bstatic'
9768 fi
9769 ;;
9770
9771 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9772 lt_prog_compiler_wl='-Wl,'
9773 lt_prog_compiler_pic='-KPIC'
9774 lt_prog_compiler_static='-Bstatic'
9775 ;;
9776
9777 unicos*)
9778 lt_prog_compiler_wl='-Wl,'
9779 lt_prog_compiler_can_build_shared=no
9780 ;;
9781
9782 uts4*)
9783 lt_prog_compiler_pic='-pic'
9784 lt_prog_compiler_static='-Bstatic'
9785 ;;
9786
9787 *)
9788 lt_prog_compiler_can_build_shared=no
9789 ;;
9790 esac
9791 fi
9792
9793case $host_os in
9794 # For platforms which do not support PIC, -DPIC is meaningless:
9795 *djgpp*)
9796 lt_prog_compiler_pic=
9797 ;;
9798 *)
9799 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9800 ;;
9801esac
9802
9803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9804$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9805if ${lt_cv_prog_compiler_pic+:} false; then :
9806 $as_echo_n "(cached) " >&6
9807else
9808 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9809fi
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9811$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9812lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9813
9814#
9815# Check to make sure the PIC flag actually works.
9816#
9817if test -n "$lt_prog_compiler_pic"; then
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9819$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9820if ${lt_cv_prog_compiler_pic_works+:} false; then :
9821 $as_echo_n "(cached) " >&6
9822else
9823 lt_cv_prog_compiler_pic_works=no
9824 ac_outfile=conftest.$ac_objext
9825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9826 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9827 # Insert the option either (1) after the last *FLAGS variable, or
9828 # (2) before a word containing "conftest.", or (3) at the end.
9829 # Note that $ac_compile itself does not contain backslashes and begins
9830 # with a dollar sign (not a hyphen), so the echo should work correctly.
9831 # The option is referenced via a variable to avoid confusing sed.
9832 lt_compile=`echo "$ac_compile" | $SED \
9833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9835 -e 's:$: $lt_compiler_flag:'`
9836 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9837 (eval "$lt_compile" 2>conftest.err)
9838 ac_status=$?
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 if (exit $ac_status) && test -s "$ac_outfile"; then
9842 # The compiler can only warn and ignore the option if not recognized
9843 # So say no if there are warnings other than the usual output.
9844 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9846 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9847 lt_cv_prog_compiler_pic_works=yes
9848 fi
9849 fi
9850 $RM conftest*
9851
9852fi
9853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9854$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9855
9856if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9857 case $lt_prog_compiler_pic in
9858 "" | " "*) ;;
9859 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9860 esac
9861else
9862 lt_prog_compiler_pic=
9863 lt_prog_compiler_can_build_shared=no
9864fi
9865
9866fi
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878#
9879# Check to make sure the static flag actually works.
9880#
9881wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9883$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9884if ${lt_cv_prog_compiler_static_works+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886else
9887 lt_cv_prog_compiler_static_works=no
9888 save_LDFLAGS="$LDFLAGS"
9889 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9890 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9892 # The linker can only warn and ignore the option if not recognized
9893 # So say no if there are warnings
9894 if test -s conftest.err; then
9895 # Append any errors to the config.log.
9896 cat conftest.err 1>&5
9897 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9899 if diff conftest.exp conftest.er2 >/dev/null; then
9900 lt_cv_prog_compiler_static_works=yes
9901 fi
9902 else
9903 lt_cv_prog_compiler_static_works=yes
9904 fi
9905 fi
9906 $RM -r conftest*
9907 LDFLAGS="$save_LDFLAGS"
9908
9909fi
9910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9911$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9912
9913if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9914 :
9915else
9916 lt_prog_compiler_static=
9917fi
9918
9919
9920
9921
9922
9923
9924
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9926$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9927if ${lt_cv_prog_compiler_c_o+:} false; then :
9928 $as_echo_n "(cached) " >&6
9929else
9930 lt_cv_prog_compiler_c_o=no
9931 $RM -r conftest 2>/dev/null
9932 mkdir conftest
9933 cd conftest
9934 mkdir out
9935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9936
9937 lt_compiler_flag="-o out/conftest2.$ac_objext"
9938 # Insert the option either (1) after the last *FLAGS variable, or
9939 # (2) before a word containing "conftest.", or (3) at the end.
9940 # Note that $ac_compile itself does not contain backslashes and begins
9941 # with a dollar sign (not a hyphen), so the echo should work correctly.
9942 lt_compile=`echo "$ac_compile" | $SED \
9943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9945 -e 's:$: $lt_compiler_flag:'`
9946 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9947 (eval "$lt_compile" 2>out/conftest.err)
9948 ac_status=$?
9949 cat out/conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9952 then
9953 # The compiler can only warn and ignore the option if not recognized
9954 # So say no if there are warnings
9955 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9956 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9957 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9958 lt_cv_prog_compiler_c_o=yes
9959 fi
9960 fi
9961 chmod u+w . 2>&5
9962 $RM conftest*
9963 # SGI C++ compiler will create directory out/ii_files/ for
9964 # template instantiation
9965 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9966 $RM out/* && rmdir out
9967 cd ..
9968 $RM -r conftest
9969 $RM conftest*
9970
9971fi
9972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9973$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9974
9975
9976
9977
9978
9979
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9981$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9982if ${lt_cv_prog_compiler_c_o+:} false; then :
9983 $as_echo_n "(cached) " >&6
9984else
9985 lt_cv_prog_compiler_c_o=no
9986 $RM -r conftest 2>/dev/null
9987 mkdir conftest
9988 cd conftest
9989 mkdir out
9990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9991
9992 lt_compiler_flag="-o out/conftest2.$ac_objext"
9993 # Insert the option either (1) after the last *FLAGS variable, or
9994 # (2) before a word containing "conftest.", or (3) at the end.
9995 # Note that $ac_compile itself does not contain backslashes and begins
9996 # with a dollar sign (not a hyphen), so the echo should work correctly.
9997 lt_compile=`echo "$ac_compile" | $SED \
9998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10000 -e 's:$: $lt_compiler_flag:'`
10001 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10002 (eval "$lt_compile" 2>out/conftest.err)
10003 ac_status=$?
10004 cat out/conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10007 then
10008 # The compiler can only warn and ignore the option if not recognized
10009 # So say no if there are warnings
10010 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10011 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10012 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10013 lt_cv_prog_compiler_c_o=yes
10014 fi
10015 fi
10016 chmod u+w . 2>&5
10017 $RM conftest*
10018 # SGI C++ compiler will create directory out/ii_files/ for
10019 # template instantiation
10020 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10021 $RM out/* && rmdir out
10022 cd ..
10023 $RM -r conftest
10024 $RM conftest*
10025
10026fi
10027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10028$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10029
10030
10031
10032
10033hard_links="nottested"
10034if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10035 # do not overwrite the value of need_locks provided by the user
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10037$as_echo_n "checking if we can lock with hard links... " >&6; }
10038 hard_links=yes
10039 $RM conftest*
10040 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10041 touch conftest.a
10042 ln conftest.a conftest.b 2>&5 || hard_links=no
10043 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10045$as_echo "$hard_links" >&6; }
10046 if test "$hard_links" = no; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10048$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10049 need_locks=warn
10050 fi
10051else
10052 need_locks=no
10053fi
10054
10055
10056
10057
10058
10059
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10061$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10062
10063 runpath_var=
10064 allow_undefined_flag=
10065 always_export_symbols=no
10066 archive_cmds=
10067 archive_expsym_cmds=
10068 compiler_needs_object=no
10069 enable_shared_with_static_runtimes=no
10070 export_dynamic_flag_spec=
10071 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10072 hardcode_automatic=no
10073 hardcode_direct=no
10074 hardcode_direct_absolute=no
10075 hardcode_libdir_flag_spec=
10076 hardcode_libdir_separator=
10077 hardcode_minus_L=no
10078 hardcode_shlibpath_var=unsupported
10079 inherit_rpath=no
10080 link_all_deplibs=unknown
10081 module_cmds=
10082 module_expsym_cmds=
10083 old_archive_from_new_cmds=
10084 old_archive_from_expsyms_cmds=
10085 thread_safe_flag_spec=
10086 whole_archive_flag_spec=
10087 # include_expsyms should be a list of space-separated symbols to be *always*
10088 # included in the symbol list
10089 include_expsyms=
10090 # exclude_expsyms can be an extended regexp of symbols to exclude
10091 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10092 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10093 # as well as any symbol that contains `d'.
10094 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10095 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10096 # platforms (ab)use it in PIC code, but their linkers get confused if
10097 # the symbol is explicitly referenced. Since portable code cannot
10098 # rely on this symbol name, it's probably fine to never include it in
10099 # preloaded symbol tables.
10100 # Exclude shared library initialization/finalization symbols.
10101 extract_expsyms_cmds=
10102
10103 case $host_os in
10104 cygwin* | mingw* | pw32* | cegcc*)
10105 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10106 # When not using gcc, we currently assume that we are using
10107 # Microsoft Visual C++.
10108 if test "$GCC" != yes; then
10109 with_gnu_ld=no
10110 fi
10111 ;;
10112 interix*)
10113 # we just hope/assume this is gcc and not c89 (= MSVC++)
10114 with_gnu_ld=yes
10115 ;;
10116 openbsd*)
10117 with_gnu_ld=no
10118 ;;
10119 linux* | k*bsd*-gnu | gnu*)
10120 link_all_deplibs=no
10121 ;;
10122 esac
10123
10124 ld_shlibs=yes
10125
10126 # On some targets, GNU ld is compatible enough with the native linker
10127 # that we're better off using the native interface for both.
10128 lt_use_gnu_ld_interface=no
10129 if test "$with_gnu_ld" = yes; then
10130 case $host_os in
10131 aix*)
10132 # The AIX port of GNU ld has always aspired to compatibility
10133 # with the native linker. However, as the warning in the GNU ld
10134 # block says, versions before 2.19.5* couldn't really create working
10135 # shared libraries, regardless of the interface used.
10136 case `$LD -v 2>&1` in
10137 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10138 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10139 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10140 *)
10141 lt_use_gnu_ld_interface=yes
10142 ;;
10143 esac
10144 ;;
10145 *)
10146 lt_use_gnu_ld_interface=yes
10147 ;;
10148 esac
10149 fi
10150
10151 if test "$lt_use_gnu_ld_interface" = yes; then
10152 # If archive_cmds runs LD, not CC, wlarc should be empty
10153 wlarc='${wl}'
10154
10155 # Set some defaults for GNU ld with shared library support. These
10156 # are reset later if shared libraries are not supported. Putting them
10157 # here allows them to be overridden if necessary.
10158 runpath_var=LD_RUN_PATH
10159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10160 export_dynamic_flag_spec='${wl}--export-dynamic'
10161 # ancient GNU ld didn't support --whole-archive et. al.
10162 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10163 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10164 else
10165 whole_archive_flag_spec=
10166 fi
10167 supports_anon_versioning=no
10168 case `$LD -v 2>&1` in
10169 *GNU\ gold*) supports_anon_versioning=yes ;;
10170 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10173 *\ 2.11.*) ;; # other 2.11 versions
10174 *) supports_anon_versioning=yes ;;
10175 esac
10176
10177 # See if GNU ld supports shared libraries.
10178 case $host_os in
10179 aix[3-9]*)
10180 # On AIX/PPC, the GNU linker is very broken
10181 if test "$host_cpu" != ia64; then
10182 ld_shlibs=no
10183 cat <<_LT_EOF 1>&2
10184
10185*** Warning: the GNU linker, at least up to release 2.19, is reported
10186*** to be unable to reliably create shared libraries on AIX.
10187*** Therefore, libtool is disabling shared libraries support. If you
10188*** really care for shared libraries, you may want to install binutils
10189*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10190*** You will then need to restart the configuration process.
10191
10192_LT_EOF
10193 fi
10194 ;;
10195
10196 amigaos*)
10197 case $host_cpu in
10198 powerpc)
10199 # see comment about AmigaOS4 .so support
10200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10201 archive_expsym_cmds=''
10202 ;;
10203 m68k)
10204 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)'
10205 hardcode_libdir_flag_spec='-L$libdir'
10206 hardcode_minus_L=yes
10207 ;;
10208 esac
10209 ;;
10210
10211 beos*)
10212 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10213 allow_undefined_flag=unsupported
10214 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10215 # support --undefined. This deserves some investigation. FIXME
10216 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10217 else
10218 ld_shlibs=no
10219 fi
10220 ;;
10221
10222 cygwin* | mingw* | pw32* | cegcc*)
10223 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10224 # as there is no search path for DLLs.
10225 hardcode_libdir_flag_spec='-L$libdir'
10226 export_dynamic_flag_spec='${wl}--export-all-symbols'
10227 allow_undefined_flag=unsupported
10228 always_export_symbols=no
10229 enable_shared_with_static_runtimes=yes
10230 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'
10231 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10232
10233 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10235 # If the export-symbols file already is a .def file (1st line
10236 # is EXPORTS), use it as is; otherwise, prepend...
10237 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10238 cp $export_symbols $output_objdir/$soname.def;
10239 else
10240 echo EXPORTS > $output_objdir/$soname.def;
10241 cat $export_symbols >> $output_objdir/$soname.def;
10242 fi~
10243 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10244 else
10245 ld_shlibs=no
10246 fi
10247 ;;
10248
10249 haiku*)
10250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10251 link_all_deplibs=yes
10252 ;;
10253
10254 interix[3-9]*)
10255 hardcode_direct=no
10256 hardcode_shlibpath_var=no
10257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10258 export_dynamic_flag_spec='${wl}-E'
10259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10260 # Instead, shared libraries are loaded at an image base (0x10000000 by
10261 # default) and relocated if they conflict, which is a slow very memory
10262 # consuming and fragmenting process. To avoid this, we pick a random,
10263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10264 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10265 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10266 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'
10267 ;;
10268
10269 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10270 tmp_diet=no
10271 if test "$host_os" = linux-dietlibc; then
10272 case $cc_basename in
10273 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10274 esac
10275 fi
10276 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10277 && test "$tmp_diet" = no
10278 then
10279 tmp_addflag=' $pic_flag'
10280 tmp_sharedflag='-shared'
10281 case $cc_basename,$host_cpu in
10282 pgcc*) # Portland Group C compiler
10283 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'
10284 tmp_addflag=' $pic_flag'
10285 ;;
10286 pgf77* | pgf90* | pgf95* | pgfortran*)
10287 # Portland Group f77 and f90 compilers
10288 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'
10289 tmp_addflag=' $pic_flag -Mnomain' ;;
10290 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10291 tmp_addflag=' -i_dynamic' ;;
10292 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10293 tmp_addflag=' -i_dynamic -nofor_main' ;;
10294 ifc* | ifort*) # Intel Fortran compiler
10295 tmp_addflag=' -nofor_main' ;;
10296 lf95*) # Lahey Fortran 8.1
10297 whole_archive_flag_spec=
10298 tmp_sharedflag='--shared' ;;
10299 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10300 tmp_sharedflag='-qmkshrobj'
10301 tmp_addflag= ;;
10302 nvcc*) # Cuda Compiler Driver 2.2
10303 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'
10304 compiler_needs_object=yes
10305 ;;
10306 esac
10307 case `$CC -V 2>&1 | sed 5q` in
10308 *Sun\ C*) # Sun C 5.9
10309 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'
10310 compiler_needs_object=yes
10311 tmp_sharedflag='-G' ;;
10312 *Sun\ F*) # Sun Fortran 8.3
10313 tmp_sharedflag='-G' ;;
10314 esac
10315 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10316
10317 if test "x$supports_anon_versioning" = xyes; then
10318 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10320 echo "local: *; };" >> $output_objdir/$libname.ver~
10321 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10322 fi
10323
10324 case $cc_basename in
10325 xlf* | bgf* | bgxlf* | mpixlf*)
10326 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10327 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10329 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10330 if test "x$supports_anon_versioning" = xyes; then
10331 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10333 echo "local: *; };" >> $output_objdir/$libname.ver~
10334 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10335 fi
10336 ;;
10337 esac
10338 else
10339 ld_shlibs=no
10340 fi
10341 ;;
10342
10343 netbsd* | netbsdelf*-gnu)
10344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10345 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10346 wlarc=
10347 else
10348 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10349 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10350 fi
10351 ;;
10352
10353 solaris*)
10354 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10355 ld_shlibs=no
10356 cat <<_LT_EOF 1>&2
10357
10358*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10359*** create shared libraries on Solaris systems. Therefore, libtool
10360*** is disabling shared libraries support. We urge you to upgrade GNU
10361*** binutils to release 2.9.1 or newer. Another option is to modify
10362*** your PATH or compiler configuration so that the native linker is
10363*** used, and then restart.
10364
10365_LT_EOF
10366 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10367 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10368 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10369 else
10370 ld_shlibs=no
10371 fi
10372 ;;
10373
10374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10375 case `$LD -v 2>&1` in
10376 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10377 ld_shlibs=no
10378 cat <<_LT_EOF 1>&2
10379
10380*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10381*** reliably create shared libraries on SCO systems. Therefore, libtool
10382*** is disabling shared libraries support. We urge you to upgrade GNU
10383*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10384*** your PATH or compiler configuration so that the native linker is
10385*** used, and then restart.
10386
10387_LT_EOF
10388 ;;
10389 *)
10390 # For security reasons, it is highly recommended that you always
10391 # use absolute paths for naming shared libraries, and exclude the
10392 # DT_RUNPATH tag from executables and libraries. But doing so
10393 # requires that you compile everything twice, which is a pain.
10394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10398 else
10399 ld_shlibs=no
10400 fi
10401 ;;
10402 esac
10403 ;;
10404
10405 sunos4*)
10406 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10407 wlarc=
10408 hardcode_direct=yes
10409 hardcode_shlibpath_var=no
10410 ;;
10411
10412 *)
10413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10414 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10415 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10416 else
10417 ld_shlibs=no
10418 fi
10419 ;;
10420 esac
10421
10422 if test "$ld_shlibs" = no; then
10423 runpath_var=
10424 hardcode_libdir_flag_spec=
10425 export_dynamic_flag_spec=
10426 whole_archive_flag_spec=
10427 fi
10428 else
10429 # PORTME fill in a description of your system's linker (not GNU ld)
10430 case $host_os in
10431 aix3*)
10432 allow_undefined_flag=unsupported
10433 always_export_symbols=yes
10434 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'
10435 # Note: this linker hardcodes the directories in LIBPATH if there
10436 # are no directories specified by -L.
10437 hardcode_minus_L=yes
10438 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10439 # Neither direct hardcoding nor static linking is supported with a
10440 # broken collect2.
10441 hardcode_direct=unsupported
10442 fi
10443 ;;
10444
10445 aix[4-9]*)
10446 if test "$host_cpu" = ia64; then
10447 # On IA64, the linker does run time linking by default, so we don't
10448 # have to do anything special.
10449 aix_use_runtimelinking=no
10450 exp_sym_flag='-Bexport'
10451 no_entry_flag=""
10452 else
10453 # If we're using GNU nm, then we don't want the "-C" option.
10454 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10455 # Also, AIX nm treats weak defined symbols like other global
10456 # defined symbols, whereas GNU nm marks them as "W".
10457 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10458 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10459 else
10460 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10461 fi
10462 aix_use_runtimelinking=no
10463
10464 # Test if we are trying to use run time linking or normal
10465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10466 # need to do runtime linking.
10467 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10468 for ld_flag in $LDFLAGS; do
10469 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10470 aix_use_runtimelinking=yes
10471 break
10472 fi
10473 done
10474 ;;
10475 esac
10476
10477 exp_sym_flag='-bexport'
10478 no_entry_flag='-bnoentry'
10479 fi
10480
10481 # When large executables or shared objects are built, AIX ld can
10482 # have problems creating the table of contents. If linking a library
10483 # or program results in "error TOC overflow" add -mminimal-toc to
10484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10486
10487 archive_cmds=''
10488 hardcode_direct=yes
10489 hardcode_direct_absolute=yes
10490 hardcode_libdir_separator=':'
10491 link_all_deplibs=yes
10492 file_list_spec='${wl}-f,'
10493
10494 if test "$GCC" = yes; then
10495 case $host_os in aix4.[012]|aix4.[012].*)
10496 # We only want to do this on AIX 4.2 and lower, the check
10497 # below for broken collect2 doesn't work under 4.3+
10498 collect2name=`${CC} -print-prog-name=collect2`
10499 if test -f "$collect2name" &&
10500 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10501 then
10502 # We have reworked collect2
10503 :
10504 else
10505 # We have old collect2
10506 hardcode_direct=unsupported
10507 # It fails to find uninstalled libraries when the uninstalled
10508 # path is not listed in the libpath. Setting hardcode_minus_L
10509 # to unsupported forces relinking
10510 hardcode_minus_L=yes
10511 hardcode_libdir_flag_spec='-L$libdir'
10512 hardcode_libdir_separator=
10513 fi
10514 ;;
10515 esac
10516 shared_flag='-shared'
10517 if test "$aix_use_runtimelinking" = yes; then
10518 shared_flag="$shared_flag "'${wl}-G'
10519 fi
10520 link_all_deplibs=no
10521 else
10522 # not using gcc
10523 if test "$host_cpu" = ia64; then
10524 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10525 # chokes on -Wl,-G. The following line is correct:
10526 shared_flag='-G'
10527 else
10528 if test "$aix_use_runtimelinking" = yes; then
10529 shared_flag='${wl}-G'
10530 else
10531 shared_flag='${wl}-bM:SRE'
10532 fi
10533 fi
10534 fi
10535
10536 export_dynamic_flag_spec='${wl}-bexpall'
10537 # It seems that -bexpall does not export symbols beginning with
10538 # underscore (_), so it is better to generate a list of symbols to export.
10539 always_export_symbols=yes
10540 if test "$aix_use_runtimelinking" = yes; then
10541 # Warning - without using the other runtime loading flags (-brtl),
10542 # -berok will link without error, but may produce a broken library.
10543 allow_undefined_flag='-berok'
10544 # Determine the default libpath from the value encoded in an
10545 # empty executable.
10546 if test "${lt_cv_aix_libpath+set}" = set; then
10547 aix_libpath=$lt_cv_aix_libpath
10548else
10549 if ${lt_cv_aix_libpath_+:} false; then :
10550 $as_echo_n "(cached) " >&6
10551else
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553/* end confdefs.h. */
10554
10555int
10556main ()
10557{
10558
10559 ;
10560 return 0;
10561}
10562_ACEOF
10563if ac_fn_c_try_link "$LINENO"; then :
10564
10565 lt_aix_libpath_sed='
10566 /Import File Strings/,/^$/ {
10567 /^0/ {
10568 s/^0 *\([^ ]*\) *$/\1/
10569 p
10570 }
10571 }'
10572 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10573 # Check for a 64-bit object if we didn't find anything.
10574 if test -z "$lt_cv_aix_libpath_"; then
10575 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10576 fi
10577fi
10578rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580 if test -z "$lt_cv_aix_libpath_"; then
10581 lt_cv_aix_libpath_="/usr/lib:/lib"
10582 fi
10583
10584fi
10585
10586 aix_libpath=$lt_cv_aix_libpath_
10587fi
10588
10589 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10590 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10591 else
10592 if test "$host_cpu" = ia64; then
10593 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10594 allow_undefined_flag="-z nodefs"
10595 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"
10596 else
10597 # Determine the default libpath from the value encoded in an
10598 # empty executable.
10599 if test "${lt_cv_aix_libpath+set}" = set; then
10600 aix_libpath=$lt_cv_aix_libpath
10601else
10602 if ${lt_cv_aix_libpath_+:} false; then :
10603 $as_echo_n "(cached) " >&6
10604else
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606/* end confdefs.h. */
10607
10608int
10609main ()
10610{
10611
10612 ;
10613 return 0;
10614}
10615_ACEOF
10616if ac_fn_c_try_link "$LINENO"; then :
10617
10618 lt_aix_libpath_sed='
10619 /Import File Strings/,/^$/ {
10620 /^0/ {
10621 s/^0 *\([^ ]*\) *$/\1/
10622 p
10623 }
10624 }'
10625 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10626 # Check for a 64-bit object if we didn't find anything.
10627 if test -z "$lt_cv_aix_libpath_"; then
10628 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10629 fi
10630fi
10631rm -f core conftest.err conftest.$ac_objext \
10632 conftest$ac_exeext conftest.$ac_ext
10633 if test -z "$lt_cv_aix_libpath_"; then
10634 lt_cv_aix_libpath_="/usr/lib:/lib"
10635 fi
10636
10637fi
10638
10639 aix_libpath=$lt_cv_aix_libpath_
10640fi
10641
10642 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10643 # Warning - without using the other run time loading flags,
10644 # -berok will link without error, but may produce a broken library.
10645 no_undefined_flag=' ${wl}-bernotok'
10646 allow_undefined_flag=' ${wl}-berok'
10647 if test "$with_gnu_ld" = yes; then
10648 # We only use this code for GNU lds that support --whole-archive.
10649 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10650 else
10651 # Exported symbols can be pulled into shared objects from archives
10652 whole_archive_flag_spec='$convenience'
10653 fi
10654 archive_cmds_need_lc=yes
10655 # This is similar to how AIX traditionally builds its shared libraries.
10656 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10657 fi
10658 fi
10659 ;;
10660
10661 amigaos*)
10662 case $host_cpu in
10663 powerpc)
10664 # see comment about AmigaOS4 .so support
10665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10666 archive_expsym_cmds=''
10667 ;;
10668 m68k)
10669 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)'
10670 hardcode_libdir_flag_spec='-L$libdir'
10671 hardcode_minus_L=yes
10672 ;;
10673 esac
10674 ;;
10675
10676 bsdi[45]*)
10677 export_dynamic_flag_spec=-rdynamic
10678 ;;
10679
10680 cygwin* | mingw* | pw32* | cegcc*)
10681 # When not using gcc, we currently assume that we are using
10682 # Microsoft Visual C++.
10683 # hardcode_libdir_flag_spec is actually meaningless, as there is
10684 # no search path for DLLs.
10685 case $cc_basename in
10686 cl*)
10687 # Native MSVC
10688 hardcode_libdir_flag_spec=' '
10689 allow_undefined_flag=unsupported
10690 always_export_symbols=yes
10691 file_list_spec='@'
10692 # Tell ltmain to make .lib files, not .a files.
10693 libext=lib
10694 # Tell ltmain to make .dll files, not .so files.
10695 shrext_cmds=".dll"
10696 # FIXME: Setting linknames here is a bad hack.
10697 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10698 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10699 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10700 else
10701 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10702 fi~
10703 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10704 linknames='
10705 # The linker will not automatically build a static lib if we build a DLL.
10706 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10707 enable_shared_with_static_runtimes=yes
10708 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10709 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10710 # Don't use ranlib
10711 old_postinstall_cmds='chmod 644 $oldlib'
10712 postlink_cmds='lt_outputfile="@OUTPUT@"~
10713 lt_tool_outputfile="@TOOL_OUTPUT@"~
10714 case $lt_outputfile in
10715 *.exe|*.EXE) ;;
10716 *)
10717 lt_outputfile="$lt_outputfile.exe"
10718 lt_tool_outputfile="$lt_tool_outputfile.exe"
10719 ;;
10720 esac~
10721 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10722 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10723 $RM "$lt_outputfile.manifest";
10724 fi'
10725 ;;
10726 *)
10727 # Assume MSVC wrapper
10728 hardcode_libdir_flag_spec=' '
10729 allow_undefined_flag=unsupported
10730 # Tell ltmain to make .lib files, not .a files.
10731 libext=lib
10732 # Tell ltmain to make .dll files, not .so files.
10733 shrext_cmds=".dll"
10734 # FIXME: Setting linknames here is a bad hack.
10735 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10736 # The linker will automatically build a .lib file if we build a DLL.
10737 old_archive_from_new_cmds='true'
10738 # FIXME: Should let the user specify the lib program.
10739 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10740 enable_shared_with_static_runtimes=yes
10741 ;;
10742 esac
10743 ;;
10744
10745 darwin* | rhapsody*)
10746
10747
10748 archive_cmds_need_lc=no
10749 hardcode_direct=no
10750 hardcode_automatic=yes
10751 hardcode_shlibpath_var=unsupported
10752 if test "$lt_cv_ld_force_load" = "yes"; then
10753 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\"`'
10754
10755 else
10756 whole_archive_flag_spec=''
10757 fi
10758 link_all_deplibs=yes
10759 allow_undefined_flag="$_lt_dar_allow_undefined"
10760 case $cc_basename in
10761 ifort*) _lt_dar_can_shared=yes ;;
10762 *) _lt_dar_can_shared=$GCC ;;
10763 esac
10764 if test "$_lt_dar_can_shared" = "yes"; then
10765 output_verbose_link_cmd=func_echo_all
10766 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10767 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10768 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}"
10769 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}"
10770
10771 else
10772 ld_shlibs=no
10773 fi
10774
10775 ;;
10776
10777 dgux*)
10778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10779 hardcode_libdir_flag_spec='-L$libdir'
10780 hardcode_shlibpath_var=no
10781 ;;
10782
10783 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10784 # support. Future versions do this automatically, but an explicit c++rt0.o
10785 # does not break anything, and helps significantly (at the cost of a little
10786 # extra space).
10787 freebsd2.2*)
10788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10789 hardcode_libdir_flag_spec='-R$libdir'
10790 hardcode_direct=yes
10791 hardcode_shlibpath_var=no
10792 ;;
10793
10794 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10795 freebsd2.*)
10796 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10797 hardcode_direct=yes
10798 hardcode_minus_L=yes
10799 hardcode_shlibpath_var=no
10800 ;;
10801
10802 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10803 freebsd* | dragonfly*)
10804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10805 hardcode_libdir_flag_spec='-R$libdir'
10806 hardcode_direct=yes
10807 hardcode_shlibpath_var=no
10808 ;;
10809
10810 hpux9*)
10811 if test "$GCC" = yes; then
10812 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10813 else
10814 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10815 fi
10816 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10817 hardcode_libdir_separator=:
10818 hardcode_direct=yes
10819
10820 # hardcode_minus_L: Not really in the search PATH,
10821 # but as the default location of the library.
10822 hardcode_minus_L=yes
10823 export_dynamic_flag_spec='${wl}-E'
10824 ;;
10825
10826 hpux10*)
10827 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10828 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10829 else
10830 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10831 fi
10832 if test "$with_gnu_ld" = no; then
10833 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10834 hardcode_libdir_separator=:
10835 hardcode_direct=yes
10836 hardcode_direct_absolute=yes
10837 export_dynamic_flag_spec='${wl}-E'
10838 # hardcode_minus_L: Not really in the search PATH,
10839 # but as the default location of the library.
10840 hardcode_minus_L=yes
10841 fi
10842 ;;
10843
10844 hpux11*)
10845 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10846 case $host_cpu in
10847 hppa*64*)
10848 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10849 ;;
10850 ia64*)
10851 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10852 ;;
10853 *)
10854 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10855 ;;
10856 esac
10857 else
10858 case $host_cpu in
10859 hppa*64*)
10860 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10861 ;;
10862 ia64*)
10863 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10864 ;;
10865 *)
10866
10867 # Older versions of the 11.00 compiler do not understand -b yet
10868 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10870$as_echo_n "checking if $CC understands -b... " >&6; }
10871if ${lt_cv_prog_compiler__b+:} false; then :
10872 $as_echo_n "(cached) " >&6
10873else
10874 lt_cv_prog_compiler__b=no
10875 save_LDFLAGS="$LDFLAGS"
10876 LDFLAGS="$LDFLAGS -b"
10877 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10879 # The linker can only warn and ignore the option if not recognized
10880 # So say no if there are warnings
10881 if test -s conftest.err; then
10882 # Append any errors to the config.log.
10883 cat conftest.err 1>&5
10884 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10886 if diff conftest.exp conftest.er2 >/dev/null; then
10887 lt_cv_prog_compiler__b=yes
10888 fi
10889 else
10890 lt_cv_prog_compiler__b=yes
10891 fi
10892 fi
10893 $RM -r conftest*
10894 LDFLAGS="$save_LDFLAGS"
10895
10896fi
10897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10898$as_echo "$lt_cv_prog_compiler__b" >&6; }
10899
10900if test x"$lt_cv_prog_compiler__b" = xyes; then
10901 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10902else
10903 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10904fi
10905
10906 ;;
10907 esac
10908 fi
10909 if test "$with_gnu_ld" = no; then
10910 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10911 hardcode_libdir_separator=:
10912
10913 case $host_cpu in
10914 hppa*64*|ia64*)
10915 hardcode_direct=no
10916 hardcode_shlibpath_var=no
10917 ;;
10918 *)
10919 hardcode_direct=yes
10920 hardcode_direct_absolute=yes
10921 export_dynamic_flag_spec='${wl}-E'
10922
10923 # hardcode_minus_L: Not really in the search PATH,
10924 # but as the default location of the library.
10925 hardcode_minus_L=yes
10926 ;;
10927 esac
10928 fi
10929 ;;
10930
10931 irix5* | irix6* | nonstopux*)
10932 if test "$GCC" = yes; then
10933 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'
10934 # Try to use the -exported_symbol ld option, if it does not
10935 # work, assume that -exports_file does not work either and
10936 # implicitly export all symbols.
10937 # This should be the same for all languages, so no per-tag cache variable.
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10939$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10940if ${lt_cv_irix_exported_symbol+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942else
10943 save_LDFLAGS="$LDFLAGS"
10944 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946/* end confdefs.h. */
10947int foo (void) { return 0; }
10948_ACEOF
10949if ac_fn_c_try_link "$LINENO"; then :
10950 lt_cv_irix_exported_symbol=yes
10951else
10952 lt_cv_irix_exported_symbol=no
10953fi
10954rm -f core conftest.err conftest.$ac_objext \
10955 conftest$ac_exeext conftest.$ac_ext
10956 LDFLAGS="$save_LDFLAGS"
10957fi
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10959$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10960 if test "$lt_cv_irix_exported_symbol" = yes; then
10961 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'
10962 fi
10963 else
10964 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'
10965 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'
10966 fi
10967 archive_cmds_need_lc='no'
10968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10969 hardcode_libdir_separator=:
10970 inherit_rpath=yes
10971 link_all_deplibs=yes
10972 ;;
10973
10974 netbsd* | netbsdelf*-gnu)
10975 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10977 else
10978 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10979 fi
10980 hardcode_libdir_flag_spec='-R$libdir'
10981 hardcode_direct=yes
10982 hardcode_shlibpath_var=no
10983 ;;
10984
10985 newsos6)
10986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10987 hardcode_direct=yes
10988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10989 hardcode_libdir_separator=:
10990 hardcode_shlibpath_var=no
10991 ;;
10992
10993 *nto* | *qnx*)
10994 ;;
10995
10996 openbsd*)
10997 if test -f /usr/libexec/ld.so; then
10998 hardcode_direct=yes
10999 hardcode_shlibpath_var=no
11000 hardcode_direct_absolute=yes
11001 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11002 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11003 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11004 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11005 export_dynamic_flag_spec='${wl}-E'
11006 else
11007 case $host_os in
11008 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11010 hardcode_libdir_flag_spec='-R$libdir'
11011 ;;
11012 *)
11013 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11014 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11015 ;;
11016 esac
11017 fi
11018 else
11019 ld_shlibs=no
11020 fi
11021 ;;
11022
11023 os2*)
11024 hardcode_libdir_flag_spec='-L$libdir'
11025 hardcode_minus_L=yes
11026 allow_undefined_flag=unsupported
11027 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11028 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11029 ;;
11030
11031 osf3*)
11032 if test "$GCC" = yes; then
11033 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11034 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'
11035 else
11036 allow_undefined_flag=' -expect_unresolved \*'
11037 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'
11038 fi
11039 archive_cmds_need_lc='no'
11040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11041 hardcode_libdir_separator=:
11042 ;;
11043
11044 osf4* | osf5*) # as osf3* with the addition of -msym flag
11045 if test "$GCC" = yes; then
11046 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11047 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'
11048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11049 else
11050 allow_undefined_flag=' -expect_unresolved \*'
11051 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'
11052 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~
11053 $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'
11054
11055 # Both c and cxx compiler support -rpath directly
11056 hardcode_libdir_flag_spec='-rpath $libdir'
11057 fi
11058 archive_cmds_need_lc='no'
11059 hardcode_libdir_separator=:
11060 ;;
11061
11062 solaris*)
11063 no_undefined_flag=' -z defs'
11064 if test "$GCC" = yes; then
11065 wlarc='${wl}'
11066 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11067 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11068 $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'
11069 else
11070 case `$CC -V 2>&1` in
11071 *"Compilers 5.0"*)
11072 wlarc=''
11073 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11074 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11075 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11076 ;;
11077 *)
11078 wlarc='${wl}'
11079 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11080 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11081 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11082 ;;
11083 esac
11084 fi
11085 hardcode_libdir_flag_spec='-R$libdir'
11086 hardcode_shlibpath_var=no
11087 case $host_os in
11088 solaris2.[0-5] | solaris2.[0-5].*) ;;
11089 *)
11090 # The compiler driver will combine and reorder linker options,
11091 # but understands `-z linker_flag'. GCC discards it without `$wl',
11092 # but is careful enough not to reorder.
11093 # Supported since Solaris 2.6 (maybe 2.5.1?)
11094 if test "$GCC" = yes; then
11095 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11096 else
11097 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11098 fi
11099 ;;
11100 esac
11101 link_all_deplibs=yes
11102 ;;
11103
11104 sunos4*)
11105 if test "x$host_vendor" = xsequent; then
11106 # Use $CC to link under sequent, because it throws in some extra .o
11107 # files that make .init and .fini sections work.
11108 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11109 else
11110 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11111 fi
11112 hardcode_libdir_flag_spec='-L$libdir'
11113 hardcode_direct=yes
11114 hardcode_minus_L=yes
11115 hardcode_shlibpath_var=no
11116 ;;
11117
11118 sysv4)
11119 case $host_vendor in
11120 sni)
11121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11122 hardcode_direct=yes # is this really true???
11123 ;;
11124 siemens)
11125 ## LD is ld it makes a PLAMLIB
11126 ## CC just makes a GrossModule.
11127 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11128 reload_cmds='$CC -r -o $output$reload_objs'
11129 hardcode_direct=no
11130 ;;
11131 motorola)
11132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11133 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11134 ;;
11135 esac
11136 runpath_var='LD_RUN_PATH'
11137 hardcode_shlibpath_var=no
11138 ;;
11139
11140 sysv4.3*)
11141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11142 hardcode_shlibpath_var=no
11143 export_dynamic_flag_spec='-Bexport'
11144 ;;
11145
11146 sysv4*MP*)
11147 if test -d /usr/nec; then
11148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11149 hardcode_shlibpath_var=no
11150 runpath_var=LD_RUN_PATH
11151 hardcode_runpath_var=yes
11152 ld_shlibs=yes
11153 fi
11154 ;;
11155
11156 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11157 no_undefined_flag='${wl}-z,text'
11158 archive_cmds_need_lc=no
11159 hardcode_shlibpath_var=no
11160 runpath_var='LD_RUN_PATH'
11161
11162 if test "$GCC" = yes; then
11163 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11164 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11165 else
11166 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11167 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11168 fi
11169 ;;
11170
11171 sysv5* | sco3.2v5* | sco5v6*)
11172 # Note: We can NOT use -z defs as we might desire, because we do not
11173 # link with -lc, and that would cause any symbols used from libc to
11174 # always be unresolved, which means just about no library would
11175 # ever link correctly. If we're not using GNU ld we use -z text
11176 # though, which does catch some bad symbols but isn't as heavy-handed
11177 # as -z defs.
11178 no_undefined_flag='${wl}-z,text'
11179 allow_undefined_flag='${wl}-z,nodefs'
11180 archive_cmds_need_lc=no
11181 hardcode_shlibpath_var=no
11182 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11183 hardcode_libdir_separator=':'
11184 link_all_deplibs=yes
11185 export_dynamic_flag_spec='${wl}-Bexport'
11186 runpath_var='LD_RUN_PATH'
11187
11188 if test "$GCC" = yes; then
11189 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11190 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11191 else
11192 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11193 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11194 fi
11195 ;;
11196
11197 uts4*)
11198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11199 hardcode_libdir_flag_spec='-L$libdir'
11200 hardcode_shlibpath_var=no
11201 ;;
11202
11203 *)
11204 ld_shlibs=no
11205 ;;
11206 esac
11207
11208 if test x$host_vendor = xsni; then
11209 case $host in
11210 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11211 export_dynamic_flag_spec='${wl}-Blargedynsym'
11212 ;;
11213 esac
11214 fi
11215 fi
11216
11217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11218$as_echo "$ld_shlibs" >&6; }
11219test "$ld_shlibs" = no && can_build_shared=no
11220
11221with_gnu_ld=$with_gnu_ld
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237#
11238# Do we need to explicitly link libc?
11239#
11240case "x$archive_cmds_need_lc" in
11241x|xyes)
11242 # Assume -lc should be added
11243 archive_cmds_need_lc=yes
11244
11245 if test "$enable_shared" = yes && test "$GCC" = yes; then
11246 case $archive_cmds in
11247 *'~'*)
11248 # FIXME: we may have to deal with multi-command sequences.
11249 ;;
11250 '$CC '*)
11251 # Test whether the compiler implicitly links with -lc since on some
11252 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11253 # to ld, don't add -lc before -lgcc.
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11255$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11256if ${lt_cv_archive_cmds_need_lc+:} false; then :
11257 $as_echo_n "(cached) " >&6
11258else
11259 $RM conftest*
11260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11261
11262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11263 (eval $ac_compile) 2>&5
11264 ac_status=$?
11265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11266 test $ac_status = 0; } 2>conftest.err; then
11267 soname=conftest
11268 lib=conftest
11269 libobjs=conftest.$ac_objext
11270 deplibs=
11271 wl=$lt_prog_compiler_wl
11272 pic_flag=$lt_prog_compiler_pic
11273 compiler_flags=-v
11274 linker_flags=-v
11275 verstring=
11276 output_objdir=.
11277 libname=conftest
11278 lt_save_allow_undefined_flag=$allow_undefined_flag
11279 allow_undefined_flag=
11280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11281 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11282 ac_status=$?
11283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11284 test $ac_status = 0; }
11285 then
11286 lt_cv_archive_cmds_need_lc=no
11287 else
11288 lt_cv_archive_cmds_need_lc=yes
11289 fi
11290 allow_undefined_flag=$lt_save_allow_undefined_flag
11291 else
11292 cat conftest.err 1>&5
11293 fi
11294 $RM conftest*
11295
11296fi
11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11298$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11299 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11300 ;;
11301 esac
11302 fi
11303 ;;
11304esac
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11458$as_echo_n "checking dynamic linker characteristics... " >&6; }
11459
11460if test "$GCC" = yes; then
11461 case $host_os in
11462 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11463 *) lt_awk_arg="/^libraries:/" ;;
11464 esac
11465 case $host_os in
11466 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11467 *) lt_sed_strip_eq="s,=/,/,g" ;;
11468 esac
11469 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11470 case $lt_search_path_spec in
11471 *\;*)
11472 # if the path contains ";" then we assume it to be the separator
11473 # otherwise default to the standard path separator (i.e. ":") - it is
11474 # assumed that no part of a normal pathname contains ";" but that should
11475 # okay in the real world where ";" in dirpaths is itself problematic.
11476 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11477 ;;
11478 *)
11479 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11480 ;;
11481 esac
11482 # Ok, now we have the path, separated by spaces, we can step through it
11483 # and add multilib dir if necessary.
11484 lt_tmp_lt_search_path_spec=
11485 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11486 for lt_sys_path in $lt_search_path_spec; do
11487 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11488 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11489 else
11490 test -d "$lt_sys_path" && \
11491 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11492 fi
11493 done
11494 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11495BEGIN {RS=" "; FS="/|\n";} {
11496 lt_foo="";
11497 lt_count=0;
11498 for (lt_i = NF; lt_i > 0; lt_i--) {
11499 if ($lt_i != "" && $lt_i != ".") {
11500 if ($lt_i == "..") {
11501 lt_count++;
11502 } else {
11503 if (lt_count == 0) {
11504 lt_foo="/" $lt_i lt_foo;
11505 } else {
11506 lt_count--;
11507 }
11508 }
11509 }
11510 }
11511 if (lt_foo != "") { lt_freq[lt_foo]++; }
11512 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11513}'`
11514 # AWK program above erroneously prepends '/' to C:/dos/paths
11515 # for these hosts.
11516 case $host_os in
11517 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11518 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11519 esac
11520 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11521else
11522 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11523fi
11524library_names_spec=
11525libname_spec='lib$name'
11526soname_spec=
11527shrext_cmds=".so"
11528postinstall_cmds=
11529postuninstall_cmds=
11530finish_cmds=
11531finish_eval=
11532shlibpath_var=
11533shlibpath_overrides_runpath=unknown
11534version_type=none
11535dynamic_linker="$host_os ld.so"
11536sys_lib_dlsearch_path_spec="/lib /usr/lib"
11537need_lib_prefix=unknown
11538hardcode_into_libs=no
11539
11540# when you set need_version to no, make sure it does not cause -set_version
11541# flags to be left without arguments
11542need_version=unknown
11543
11544case $host_os in
11545aix3*)
11546 version_type=linux # correct to gnu/linux during the next big refactor
11547 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11548 shlibpath_var=LIBPATH
11549
11550 # AIX 3 has no versioning support, so we append a major version to the name.
11551 soname_spec='${libname}${release}${shared_ext}$major'
11552 ;;
11553
11554aix[4-9]*)
11555 version_type=linux # correct to gnu/linux during the next big refactor
11556 need_lib_prefix=no
11557 need_version=no
11558 hardcode_into_libs=yes
11559 if test "$host_cpu" = ia64; then
11560 # AIX 5 supports IA64
11561 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11562 shlibpath_var=LD_LIBRARY_PATH
11563 else
11564 # With GCC up to 2.95.x, collect2 would create an import file
11565 # for dependence libraries. The import file would start with
11566 # the line `#! .'. This would cause the generated library to
11567 # depend on `.', always an invalid library. This was fixed in
11568 # development snapshots of GCC prior to 3.0.
11569 case $host_os in
11570 aix4 | aix4.[01] | aix4.[01].*)
11571 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11572 echo ' yes '
11573 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11574 :
11575 else
11576 can_build_shared=no
11577 fi
11578 ;;
11579 esac
11580 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11581 # soname into executable. Probably we can add versioning support to
11582 # collect2, so additional links can be useful in future.
11583 if test "$aix_use_runtimelinking" = yes; then
11584 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11585 # instead of lib<name>.a to let people know that these are not
11586 # typical AIX shared libraries.
11587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588 else
11589 # We preserve .a as extension for shared libraries through AIX4.2
11590 # and later when we are not doing run time linking.
11591 library_names_spec='${libname}${release}.a $libname.a'
11592 soname_spec='${libname}${release}${shared_ext}$major'
11593 fi
11594 shlibpath_var=LIBPATH
11595 fi
11596 ;;
11597
11598amigaos*)
11599 case $host_cpu in
11600 powerpc)
11601 # Since July 2007 AmigaOS4 officially supports .so libraries.
11602 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604 ;;
11605 m68k)
11606 library_names_spec='$libname.ixlibrary $libname.a'
11607 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11608 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11609 ;;
11610 esac
11611 ;;
11612
11613beos*)
11614 library_names_spec='${libname}${shared_ext}'
11615 dynamic_linker="$host_os ld.so"
11616 shlibpath_var=LIBRARY_PATH
11617 ;;
11618
11619bsdi[45]*)
11620 version_type=linux # correct to gnu/linux during the next big refactor
11621 need_version=no
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623 soname_spec='${libname}${release}${shared_ext}$major'
11624 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11625 shlibpath_var=LD_LIBRARY_PATH
11626 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11627 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11628 # the default ld.so.conf also contains /usr/contrib/lib and
11629 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11630 # libtool to hard-code these into programs
11631 ;;
11632
11633cygwin* | mingw* | pw32* | cegcc*)
11634 version_type=windows
11635 shrext_cmds=".dll"
11636 need_version=no
11637 need_lib_prefix=no
11638
11639 case $GCC,$cc_basename in
11640 yes,*)
11641 # gcc
11642 library_names_spec='$libname.dll.a'
11643 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11644 postinstall_cmds='base_file=`basename \${file}`~
11645 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11646 dldir=$destdir/`dirname \$dlpath`~
11647 test -d \$dldir || mkdir -p \$dldir~
11648 $install_prog $dir/$dlname \$dldir/$dlname~
11649 chmod a+x \$dldir/$dlname~
11650 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11651 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11652 fi'
11653 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11654 dlpath=$dir/\$dldll~
11655 $RM \$dlpath'
11656 shlibpath_overrides_runpath=yes
11657
11658 case $host_os in
11659 cygwin*)
11660 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11661 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11662
11663 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11664 ;;
11665 mingw* | cegcc*)
11666 # MinGW DLLs use traditional 'lib' prefix
11667 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11668 ;;
11669 pw32*)
11670 # pw32 DLLs use 'pw' prefix rather than 'lib'
11671 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11672 ;;
11673 esac
11674 dynamic_linker='Win32 ld.exe'
11675 ;;
11676
11677 *,cl*)
11678 # Native MSVC
11679 libname_spec='$name'
11680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11681 library_names_spec='${libname}.dll.lib'
11682
11683 case $build_os in
11684 mingw*)
11685 sys_lib_search_path_spec=
11686 lt_save_ifs=$IFS
11687 IFS=';'
11688 for lt_path in $LIB
11689 do
11690 IFS=$lt_save_ifs
11691 # Let DOS variable expansion print the short 8.3 style file name.
11692 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11693 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11694 done
11695 IFS=$lt_save_ifs
11696 # Convert to MSYS style.
11697 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11698 ;;
11699 cygwin*)
11700 # Convert to unix form, then to dos form, then back to unix form
11701 # but this time dos style (no spaces!) so that the unix form looks
11702 # like /cygdrive/c/PROGRA~1:/cygdr...
11703 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11704 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11705 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11706 ;;
11707 *)
11708 sys_lib_search_path_spec="$LIB"
11709 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11710 # It is most probably a Windows format PATH.
11711 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11712 else
11713 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11714 fi
11715 # FIXME: find the short name or the path components, as spaces are
11716 # common. (e.g. "Program Files" -> "PROGRA~1")
11717 ;;
11718 esac
11719
11720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11721 postinstall_cmds='base_file=`basename \${file}`~
11722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11723 dldir=$destdir/`dirname \$dlpath`~
11724 test -d \$dldir || mkdir -p \$dldir~
11725 $install_prog $dir/$dlname \$dldir/$dlname'
11726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11727 dlpath=$dir/\$dldll~
11728 $RM \$dlpath'
11729 shlibpath_overrides_runpath=yes
11730 dynamic_linker='Win32 link.exe'
11731 ;;
11732
11733 *)
11734 # Assume MSVC wrapper
11735 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11736 dynamic_linker='Win32 ld.exe'
11737 ;;
11738 esac
11739 # FIXME: first we should search . and the directory the executable is in
11740 shlibpath_var=PATH
11741 ;;
11742
11743darwin* | rhapsody*)
11744 dynamic_linker="$host_os dyld"
11745 version_type=darwin
11746 need_lib_prefix=no
11747 need_version=no
11748 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11749 soname_spec='${libname}${release}${major}$shared_ext'
11750 shlibpath_overrides_runpath=yes
11751 shlibpath_var=DYLD_LIBRARY_PATH
11752 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11753
11754 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11755 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11756 ;;
11757
11758dgux*)
11759 version_type=linux # correct to gnu/linux during the next big refactor
11760 need_lib_prefix=no
11761 need_version=no
11762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11763 soname_spec='${libname}${release}${shared_ext}$major'
11764 shlibpath_var=LD_LIBRARY_PATH
11765 ;;
11766
11767freebsd* | dragonfly*)
11768 # DragonFly does not have aout. When/if they implement a new
11769 # versioning mechanism, adjust this.
11770 if test -x /usr/bin/objformat; then
11771 objformat=`/usr/bin/objformat`
11772 else
11773 case $host_os in
11774 freebsd[23].*) objformat=aout ;;
11775 *) objformat=elf ;;
11776 esac
11777 fi
11778 version_type=freebsd-$objformat
11779 case $version_type in
11780 freebsd-elf*)
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11782 need_version=no
11783 need_lib_prefix=no
11784 ;;
11785 freebsd-*)
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11787 need_version=yes
11788 ;;
11789 esac
11790 shlibpath_var=LD_LIBRARY_PATH
11791 case $host_os in
11792 freebsd2.*)
11793 shlibpath_overrides_runpath=yes
11794 ;;
11795 freebsd3.[01]* | freebsdelf3.[01]*)
11796 shlibpath_overrides_runpath=yes
11797 hardcode_into_libs=yes
11798 ;;
11799 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11800 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11801 shlibpath_overrides_runpath=no
11802 hardcode_into_libs=yes
11803 ;;
11804 *) # from 4.6 on, and DragonFly
11805 shlibpath_overrides_runpath=yes
11806 hardcode_into_libs=yes
11807 ;;
11808 esac
11809 ;;
11810
11811haiku*)
11812 version_type=linux # correct to gnu/linux during the next big refactor
11813 need_lib_prefix=no
11814 need_version=no
11815 dynamic_linker="$host_os runtime_loader"
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11818 shlibpath_var=LIBRARY_PATH
11819 shlibpath_overrides_runpath=yes
11820 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11821 hardcode_into_libs=yes
11822 ;;
11823
11824hpux9* | hpux10* | hpux11*)
11825 # Give a soname corresponding to the major version so that dld.sl refuses to
11826 # link against other versions.
11827 version_type=sunos
11828 need_lib_prefix=no
11829 need_version=no
11830 case $host_cpu in
11831 ia64*)
11832 shrext_cmds='.so'
11833 hardcode_into_libs=yes
11834 dynamic_linker="$host_os dld.so"
11835 shlibpath_var=LD_LIBRARY_PATH
11836 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11838 soname_spec='${libname}${release}${shared_ext}$major'
11839 if test "X$HPUX_IA64_MODE" = X32; then
11840 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11841 else
11842 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11843 fi
11844 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11845 ;;
11846 hppa*64*)
11847 shrext_cmds='.sl'
11848 hardcode_into_libs=yes
11849 dynamic_linker="$host_os dld.sl"
11850 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11851 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853 soname_spec='${libname}${release}${shared_ext}$major'
11854 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11856 ;;
11857 *)
11858 shrext_cmds='.sl'
11859 dynamic_linker="$host_os dld.sl"
11860 shlibpath_var=SHLIB_PATH
11861 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 ;;
11865 esac
11866 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11867 postinstall_cmds='chmod 555 $lib'
11868 # or fails outright, so override atomically:
11869 install_override_mode=555
11870 ;;
11871
11872interix[3-9]*)
11873 version_type=linux # correct to gnu/linux during the next big refactor
11874 need_lib_prefix=no
11875 need_version=no
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11877 soname_spec='${libname}${release}${shared_ext}$major'
11878 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 shlibpath_overrides_runpath=no
11881 hardcode_into_libs=yes
11882 ;;
11883
11884irix5* | irix6* | nonstopux*)
11885 case $host_os in
11886 nonstopux*) version_type=nonstopux ;;
11887 *)
11888 if test "$lt_cv_prog_gnu_ld" = yes; then
11889 version_type=linux # correct to gnu/linux during the next big refactor
11890 else
11891 version_type=irix
11892 fi ;;
11893 esac
11894 need_lib_prefix=no
11895 need_version=no
11896 soname_spec='${libname}${release}${shared_ext}$major'
11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11898 case $host_os in
11899 irix5* | nonstopux*)
11900 libsuff= shlibsuff=
11901 ;;
11902 *)
11903 case $LD in # libtool.m4 will add one of these switches to LD
11904 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11905 libsuff= shlibsuff= libmagic=32-bit;;
11906 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11907 libsuff=32 shlibsuff=N32 libmagic=N32;;
11908 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11909 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11910 *) libsuff= shlibsuff= libmagic=never-match;;
11911 esac
11912 ;;
11913 esac
11914 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11915 shlibpath_overrides_runpath=no
11916 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11917 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11918 hardcode_into_libs=yes
11919 ;;
11920
11921# No shared lib support for Linux oldld, aout, or coff.
11922linux*oldld* | linux*aout* | linux*coff*)
11923 dynamic_linker=no
11924 ;;
11925
11926# This must be glibc/ELF.
11927linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11928 version_type=linux # correct to gnu/linux during the next big refactor
11929 need_lib_prefix=no
11930 need_version=no
11931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11932 soname_spec='${libname}${release}${shared_ext}$major'
11933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11934 shlibpath_var=LD_LIBRARY_PATH
11935 shlibpath_overrides_runpath=no
11936
11937 # Some binutils ld are patched to set DT_RUNPATH
11938 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11939 $as_echo_n "(cached) " >&6
11940else
11941 lt_cv_shlibpath_overrides_runpath=no
11942 save_LDFLAGS=$LDFLAGS
11943 save_libdir=$libdir
11944 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11945 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947/* end confdefs.h. */
11948
11949int
11950main ()
11951{
11952
11953 ;
11954 return 0;
11955}
11956_ACEOF
11957if ac_fn_c_try_link "$LINENO"; then :
11958 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11959 lt_cv_shlibpath_overrides_runpath=yes
11960fi
11961fi
11962rm -f core conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964 LDFLAGS=$save_LDFLAGS
11965 libdir=$save_libdir
11966
11967fi
11968
11969 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11970
11971 # This implies no fast_install, which is unacceptable.
11972 # Some rework will be needed to allow for fast_install
11973 # before this can be enabled.
11974 hardcode_into_libs=yes
11975
11976 # Append ld.so.conf contents to the search path
11977 if test -f /etc/ld.so.conf; then
11978 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' ' '`
11979 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11980 fi
11981
11982 # We used to test for /lib/ld.so.1 and disable shared libraries on
11983 # powerpc, because MkLinux only supported shared libraries with the
11984 # GNU dynamic linker. Since this was broken with cross compilers,
11985 # most powerpc-linux boxes support dynamic linking these days and
11986 # people can always --disable-shared, the test was removed, and we
11987 # assume the GNU/Linux dynamic linker is in use.
11988 dynamic_linker='GNU/Linux ld.so'
11989 ;;
11990
11991netbsdelf*-gnu)
11992 version_type=linux
11993 need_lib_prefix=no
11994 need_version=no
11995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11996 soname_spec='${libname}${release}${shared_ext}$major'
11997 shlibpath_var=LD_LIBRARY_PATH
11998 shlibpath_overrides_runpath=no
11999 hardcode_into_libs=yes
12000 dynamic_linker='NetBSD ld.elf_so'
12001 ;;
12002
12003netbsd*)
12004 version_type=sunos
12005 need_lib_prefix=no
12006 need_version=no
12007 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12010 dynamic_linker='NetBSD (a.out) ld.so'
12011 else
12012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12013 soname_spec='${libname}${release}${shared_ext}$major'
12014 dynamic_linker='NetBSD ld.elf_so'
12015 fi
12016 shlibpath_var=LD_LIBRARY_PATH
12017 shlibpath_overrides_runpath=yes
12018 hardcode_into_libs=yes
12019 ;;
12020
12021newsos6)
12022 version_type=linux # correct to gnu/linux during the next big refactor
12023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12024 shlibpath_var=LD_LIBRARY_PATH
12025 shlibpath_overrides_runpath=yes
12026 ;;
12027
12028*nto* | *qnx*)
12029 version_type=qnx
12030 need_lib_prefix=no
12031 need_version=no
12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12033 soname_spec='${libname}${release}${shared_ext}$major'
12034 shlibpath_var=LD_LIBRARY_PATH
12035 shlibpath_overrides_runpath=no
12036 hardcode_into_libs=yes
12037 dynamic_linker='ldqnx.so'
12038 ;;
12039
12040openbsd*)
12041 version_type=sunos
12042 sys_lib_dlsearch_path_spec="/usr/lib"
12043 need_lib_prefix=no
12044 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12045 case $host_os in
12046 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12047 *) need_version=no ;;
12048 esac
12049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12051 shlibpath_var=LD_LIBRARY_PATH
12052 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12053 case $host_os in
12054 openbsd2.[89] | openbsd2.[89].*)
12055 shlibpath_overrides_runpath=no
12056 ;;
12057 *)
12058 shlibpath_overrides_runpath=yes
12059 ;;
12060 esac
12061 else
12062 shlibpath_overrides_runpath=yes
12063 fi
12064 ;;
12065
12066os2*)
12067 libname_spec='$name'
12068 shrext_cmds=".dll"
12069 need_lib_prefix=no
12070 library_names_spec='$libname${shared_ext} $libname.a'
12071 dynamic_linker='OS/2 ld.exe'
12072 shlibpath_var=LIBPATH
12073 ;;
12074
12075osf3* | osf4* | osf5*)
12076 version_type=osf
12077 need_lib_prefix=no
12078 need_version=no
12079 soname_spec='${libname}${release}${shared_ext}$major'
12080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12081 shlibpath_var=LD_LIBRARY_PATH
12082 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12083 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12084 ;;
12085
12086rdos*)
12087 dynamic_linker=no
12088 ;;
12089
12090solaris*)
12091 version_type=linux # correct to gnu/linux during the next big refactor
12092 need_lib_prefix=no
12093 need_version=no
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 shlibpath_overrides_runpath=yes
12098 hardcode_into_libs=yes
12099 # ldd complains unless libraries are executable
12100 postinstall_cmds='chmod +x $lib'
12101 ;;
12102
12103sunos4*)
12104 version_type=sunos
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12106 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12107 shlibpath_var=LD_LIBRARY_PATH
12108 shlibpath_overrides_runpath=yes
12109 if test "$with_gnu_ld" = yes; then
12110 need_lib_prefix=no
12111 fi
12112 need_version=yes
12113 ;;
12114
12115sysv4 | sysv4.3*)
12116 version_type=linux # correct to gnu/linux during the next big refactor
12117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118 soname_spec='${libname}${release}${shared_ext}$major'
12119 shlibpath_var=LD_LIBRARY_PATH
12120 case $host_vendor in
12121 sni)
12122 shlibpath_overrides_runpath=no
12123 need_lib_prefix=no
12124 runpath_var=LD_RUN_PATH
12125 ;;
12126 siemens)
12127 need_lib_prefix=no
12128 ;;
12129 motorola)
12130 need_lib_prefix=no
12131 need_version=no
12132 shlibpath_overrides_runpath=no
12133 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12134 ;;
12135 esac
12136 ;;
12137
12138sysv4*MP*)
12139 if test -d /usr/nec ;then
12140 version_type=linux # correct to gnu/linux during the next big refactor
12141 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12142 soname_spec='$libname${shared_ext}.$major'
12143 shlibpath_var=LD_LIBRARY_PATH
12144 fi
12145 ;;
12146
12147sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12148 version_type=freebsd-elf
12149 need_lib_prefix=no
12150 need_version=no
12151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12152 soname_spec='${libname}${release}${shared_ext}$major'
12153 shlibpath_var=LD_LIBRARY_PATH
12154 shlibpath_overrides_runpath=yes
12155 hardcode_into_libs=yes
12156 if test "$with_gnu_ld" = yes; then
12157 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12158 else
12159 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12160 case $host_os in
12161 sco3.2v5*)
12162 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12163 ;;
12164 esac
12165 fi
12166 sys_lib_dlsearch_path_spec='/usr/lib'
12167 ;;
12168
12169tpf*)
12170 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12171 version_type=linux # correct to gnu/linux during the next big refactor
12172 need_lib_prefix=no
12173 need_version=no
12174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12175 shlibpath_var=LD_LIBRARY_PATH
12176 shlibpath_overrides_runpath=no
12177 hardcode_into_libs=yes
12178 ;;
12179
12180uts4*)
12181 version_type=linux # correct to gnu/linux during the next big refactor
12182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12183 soname_spec='${libname}${release}${shared_ext}$major'
12184 shlibpath_var=LD_LIBRARY_PATH
12185 ;;
12186
12187*)
12188 dynamic_linker=no
12189 ;;
12190esac
12191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12192$as_echo "$dynamic_linker" >&6; }
12193test "$dynamic_linker" = no && can_build_shared=no
12194
12195variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12196if test "$GCC" = yes; then
12197 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12198fi
12199
12200if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12201 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12202fi
12203if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12204 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12205fi
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12299$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12300hardcode_action=
12301if test -n "$hardcode_libdir_flag_spec" ||
12302 test -n "$runpath_var" ||
12303 test "X$hardcode_automatic" = "Xyes" ; then
12304
12305 # We can hardcode non-existent directories.
12306 if test "$hardcode_direct" != no &&
12307 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12308 # have to relink, otherwise we might link with an installed library
12309 # when we should be linking with a yet-to-be-installed one
12310 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12311 test "$hardcode_minus_L" != no; then
12312 # Linking always hardcodes the temporary library directory.
12313 hardcode_action=relink
12314 else
12315 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12316 hardcode_action=immediate
12317 fi
12318else
12319 # We cannot hardcode anything, or else we can only hardcode existing
12320 # directories.
12321 hardcode_action=unsupported
12322fi
12323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12324$as_echo "$hardcode_action" >&6; }
12325
12326if test "$hardcode_action" = relink ||
12327 test "$inherit_rpath" = yes; then
12328 # Fast installation is not supported
12329 enable_fast_install=no
12330elif test "$shlibpath_overrides_runpath" = yes ||
12331 test "$enable_shared" = no; then
12332 # Fast installation is not necessary
12333 enable_fast_install=needless
12334fi
12335
12336
12337
12338
12339
12340
12341 if test "x$enable_dlopen" != xyes; then
12342 enable_dlopen=unknown
12343 enable_dlopen_self=unknown
12344 enable_dlopen_self_static=unknown
12345else
12346 lt_cv_dlopen=no
12347 lt_cv_dlopen_libs=
12348
12349 case $host_os in
12350 beos*)
12351 lt_cv_dlopen="load_add_on"
12352 lt_cv_dlopen_libs=
12353 lt_cv_dlopen_self=yes
12354 ;;
12355
12356 mingw* | pw32* | cegcc*)
12357 lt_cv_dlopen="LoadLibrary"
12358 lt_cv_dlopen_libs=
12359 ;;
12360
12361 cygwin*)
12362 lt_cv_dlopen="dlopen"
12363 lt_cv_dlopen_libs=
12364 ;;
12365
12366 darwin*)
12367 # if libdl is installed we need to link against it
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12369$as_echo_n "checking for dlopen in -ldl... " >&6; }
12370if ${ac_cv_lib_dl_dlopen+:} false; then :
12371 $as_echo_n "(cached) " >&6
12372else
12373 ac_check_lib_save_LIBS=$LIBS
12374LIBS="-ldl $LIBS"
12375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376/* end confdefs.h. */
12377
12378/* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
12381#ifdef __cplusplus
12382extern "C"
12383#endif
12384char dlopen ();
12385int
12386main ()
12387{
12388return dlopen ();
12389 ;
12390 return 0;
12391}
12392_ACEOF
12393if ac_fn_c_try_link "$LINENO"; then :
12394 ac_cv_lib_dl_dlopen=yes
12395else
12396 ac_cv_lib_dl_dlopen=no
12397fi
12398rm -f core conftest.err conftest.$ac_objext \
12399 conftest$ac_exeext conftest.$ac_ext
12400LIBS=$ac_check_lib_save_LIBS
12401fi
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12403$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12404if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12406else
12407
12408 lt_cv_dlopen="dyld"
12409 lt_cv_dlopen_libs=
12410 lt_cv_dlopen_self=yes
12411
12412fi
12413
12414 ;;
12415
12416 *)
12417 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12418if test "x$ac_cv_func_shl_load" = xyes; then :
12419 lt_cv_dlopen="shl_load"
12420else
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12422$as_echo_n "checking for shl_load in -ldld... " >&6; }
12423if ${ac_cv_lib_dld_shl_load+:} false; then :
12424 $as_echo_n "(cached) " >&6
12425else
12426 ac_check_lib_save_LIBS=$LIBS
12427LIBS="-ldld $LIBS"
12428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429/* end confdefs.h. */
12430
12431/* Override any GCC internal prototype to avoid an error.
12432 Use char because int might match the return type of a GCC
12433 builtin and then its argument prototype would still apply. */
12434#ifdef __cplusplus
12435extern "C"
12436#endif
12437char shl_load ();
12438int
12439main ()
12440{
12441return shl_load ();
12442 ;
12443 return 0;
12444}
12445_ACEOF
12446if ac_fn_c_try_link "$LINENO"; then :
12447 ac_cv_lib_dld_shl_load=yes
12448else
12449 ac_cv_lib_dld_shl_load=no
12450fi
12451rm -f core conftest.err conftest.$ac_objext \
12452 conftest$ac_exeext conftest.$ac_ext
12453LIBS=$ac_check_lib_save_LIBS
12454fi
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12456$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12457if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12458 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12459else
12460 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12461if test "x$ac_cv_func_dlopen" = xyes; then :
12462 lt_cv_dlopen="dlopen"
12463else
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12465$as_echo_n "checking for dlopen in -ldl... " >&6; }
12466if ${ac_cv_lib_dl_dlopen+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468else
12469 ac_check_lib_save_LIBS=$LIBS
12470LIBS="-ldl $LIBS"
12471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472/* end confdefs.h. */
12473
12474/* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
12477#ifdef __cplusplus
12478extern "C"
12479#endif
12480char dlopen ();
12481int
12482main ()
12483{
12484return dlopen ();
12485 ;
12486 return 0;
12487}
12488_ACEOF
12489if ac_fn_c_try_link "$LINENO"; then :
12490 ac_cv_lib_dl_dlopen=yes
12491else
12492 ac_cv_lib_dl_dlopen=no
12493fi
12494rm -f core conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12496LIBS=$ac_check_lib_save_LIBS
12497fi
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12499$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12500if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12501 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12502else
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12504$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12505if ${ac_cv_lib_svld_dlopen+:} false; then :
12506 $as_echo_n "(cached) " >&6
12507else
12508 ac_check_lib_save_LIBS=$LIBS
12509LIBS="-lsvld $LIBS"
12510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511/* end confdefs.h. */
12512
12513/* Override any GCC internal prototype to avoid an error.
12514 Use char because int might match the return type of a GCC
12515 builtin and then its argument prototype would still apply. */
12516#ifdef __cplusplus
12517extern "C"
12518#endif
12519char dlopen ();
12520int
12521main ()
12522{
12523return dlopen ();
12524 ;
12525 return 0;
12526}
12527_ACEOF
12528if ac_fn_c_try_link "$LINENO"; then :
12529 ac_cv_lib_svld_dlopen=yes
12530else
12531 ac_cv_lib_svld_dlopen=no
12532fi
12533rm -f core conftest.err conftest.$ac_objext \
12534 conftest$ac_exeext conftest.$ac_ext
12535LIBS=$ac_check_lib_save_LIBS
12536fi
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12538$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12539if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12540 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12541else
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12543$as_echo_n "checking for dld_link in -ldld... " >&6; }
12544if ${ac_cv_lib_dld_dld_link+:} false; then :
12545 $as_echo_n "(cached) " >&6
12546else
12547 ac_check_lib_save_LIBS=$LIBS
12548LIBS="-ldld $LIBS"
12549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550/* end confdefs.h. */
12551
12552/* Override any GCC internal prototype to avoid an error.
12553 Use char because int might match the return type of a GCC
12554 builtin and then its argument prototype would still apply. */
12555#ifdef __cplusplus
12556extern "C"
12557#endif
12558char dld_link ();
12559int
12560main ()
12561{
12562return dld_link ();
12563 ;
12564 return 0;
12565}
12566_ACEOF
12567if ac_fn_c_try_link "$LINENO"; then :
12568 ac_cv_lib_dld_dld_link=yes
12569else
12570 ac_cv_lib_dld_dld_link=no
12571fi
12572rm -f core conftest.err conftest.$ac_objext \
12573 conftest$ac_exeext conftest.$ac_ext
12574LIBS=$ac_check_lib_save_LIBS
12575fi
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12577$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12578if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12579 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12580fi
12581
12582
12583fi
12584
12585
12586fi
12587
12588
12589fi
12590
12591
12592fi
12593
12594
12595fi
12596
12597 ;;
12598 esac
12599
12600 if test "x$lt_cv_dlopen" != xno; then
12601 enable_dlopen=yes
12602 else
12603 enable_dlopen=no
12604 fi
12605
12606 case $lt_cv_dlopen in
12607 dlopen)
12608 save_CPPFLAGS="$CPPFLAGS"
12609 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12610
12611 save_LDFLAGS="$LDFLAGS"
12612 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12613
12614 save_LIBS="$LIBS"
12615 LIBS="$lt_cv_dlopen_libs $LIBS"
12616
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12618$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12619if ${lt_cv_dlopen_self+:} false; then :
12620 $as_echo_n "(cached) " >&6
12621else
12622 if test "$cross_compiling" = yes; then :
12623 lt_cv_dlopen_self=cross
12624else
12625 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12626 lt_status=$lt_dlunknown
12627 cat > conftest.$ac_ext <<_LT_EOF
12628#line $LINENO "configure"
12629#include "confdefs.h"
12630
12631#if HAVE_DLFCN_H
12632#include <dlfcn.h>
12633#endif
12634
12635#include <stdio.h>
12636
12637#ifdef RTLD_GLOBAL
12638# define LT_DLGLOBAL RTLD_GLOBAL
12639#else
12640# ifdef DL_GLOBAL
12641# define LT_DLGLOBAL DL_GLOBAL
12642# else
12643# define LT_DLGLOBAL 0
12644# endif
12645#endif
12646
12647/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12648 find out it does not work in some platform. */
12649#ifndef LT_DLLAZY_OR_NOW
12650# ifdef RTLD_LAZY
12651# define LT_DLLAZY_OR_NOW RTLD_LAZY
12652# else
12653# ifdef DL_LAZY
12654# define LT_DLLAZY_OR_NOW DL_LAZY
12655# else
12656# ifdef RTLD_NOW
12657# define LT_DLLAZY_OR_NOW RTLD_NOW
12658# else
12659# ifdef DL_NOW
12660# define LT_DLLAZY_OR_NOW DL_NOW
12661# else
12662# define LT_DLLAZY_OR_NOW 0
12663# endif
12664# endif
12665# endif
12666# endif
12667#endif
12668
12669/* When -fvisbility=hidden is used, assume the code has been annotated
12670 correspondingly for the symbols needed. */
12671#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12672int fnord () __attribute__((visibility("default")));
12673#endif
12674
12675int fnord () { return 42; }
12676int main ()
12677{
12678 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12679 int status = $lt_dlunknown;
12680
12681 if (self)
12682 {
12683 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12684 else
12685 {
12686 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12687 else puts (dlerror ());
12688 }
12689 /* dlclose (self); */
12690 }
12691 else
12692 puts (dlerror ());
12693
12694 return status;
12695}
12696_LT_EOF
12697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12698 (eval $ac_link) 2>&5
12699 ac_status=$?
12700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12701 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12702 (./conftest; exit; ) >&5 2>/dev/null
12703 lt_status=$?
12704 case x$lt_status in
12705 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12706 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12707 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12708 esac
12709 else :
12710 # compilation failed
12711 lt_cv_dlopen_self=no
12712 fi
12713fi
12714rm -fr conftest*
12715
12716
12717fi
12718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12719$as_echo "$lt_cv_dlopen_self" >&6; }
12720
12721 if test "x$lt_cv_dlopen_self" = xyes; then
12722 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12724$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12725if ${lt_cv_dlopen_self_static+:} false; then :
12726 $as_echo_n "(cached) " >&6
12727else
12728 if test "$cross_compiling" = yes; then :
12729 lt_cv_dlopen_self_static=cross
12730else
12731 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12732 lt_status=$lt_dlunknown
12733 cat > conftest.$ac_ext <<_LT_EOF
12734#line $LINENO "configure"
12735#include "confdefs.h"
12736
12737#if HAVE_DLFCN_H
12738#include <dlfcn.h>
12739#endif
12740
12741#include <stdio.h>
12742
12743#ifdef RTLD_GLOBAL
12744# define LT_DLGLOBAL RTLD_GLOBAL
12745#else
12746# ifdef DL_GLOBAL
12747# define LT_DLGLOBAL DL_GLOBAL
12748# else
12749# define LT_DLGLOBAL 0
12750# endif
12751#endif
12752
12753/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12754 find out it does not work in some platform. */
12755#ifndef LT_DLLAZY_OR_NOW
12756# ifdef RTLD_LAZY
12757# define LT_DLLAZY_OR_NOW RTLD_LAZY
12758# else
12759# ifdef DL_LAZY
12760# define LT_DLLAZY_OR_NOW DL_LAZY
12761# else
12762# ifdef RTLD_NOW
12763# define LT_DLLAZY_OR_NOW RTLD_NOW
12764# else
12765# ifdef DL_NOW
12766# define LT_DLLAZY_OR_NOW DL_NOW
12767# else
12768# define LT_DLLAZY_OR_NOW 0
12769# endif
12770# endif
12771# endif
12772# endif
12773#endif
12774
12775/* When -fvisbility=hidden is used, assume the code has been annotated
12776 correspondingly for the symbols needed. */
12777#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12778int fnord () __attribute__((visibility("default")));
12779#endif
12780
12781int fnord () { return 42; }
12782int main ()
12783{
12784 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12785 int status = $lt_dlunknown;
12786
12787 if (self)
12788 {
12789 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12790 else
12791 {
12792 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12793 else puts (dlerror ());
12794 }
12795 /* dlclose (self); */
12796 }
12797 else
12798 puts (dlerror ());
12799
12800 return status;
12801}
12802_LT_EOF
12803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12804 (eval $ac_link) 2>&5
12805 ac_status=$?
12806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12807 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12808 (./conftest; exit; ) >&5 2>/dev/null
12809 lt_status=$?
12810 case x$lt_status in
12811 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12812 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12813 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12814 esac
12815 else :
12816 # compilation failed
12817 lt_cv_dlopen_self_static=no
12818 fi
12819fi
12820rm -fr conftest*
12821
12822
12823fi
12824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12825$as_echo "$lt_cv_dlopen_self_static" >&6; }
12826 fi
12827
12828 CPPFLAGS="$save_CPPFLAGS"
12829 LDFLAGS="$save_LDFLAGS"
12830 LIBS="$save_LIBS"
12831 ;;
12832 esac
12833
12834 case $lt_cv_dlopen_self in
12835 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12836 *) enable_dlopen_self=unknown ;;
12837 esac
12838
12839 case $lt_cv_dlopen_self_static in
12840 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12841 *) enable_dlopen_self_static=unknown ;;
12842 esac
12843fi
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861striplib=
12862old_striplib=
12863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12864$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12865if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12866 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12867 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12869$as_echo "yes" >&6; }
12870else
12871# FIXME - insert some real tests, host_os isn't really good enough
12872 case $host_os in
12873 darwin*)
12874 if test -n "$STRIP" ; then
12875 striplib="$STRIP -x"
12876 old_striplib="$STRIP -S"
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12878$as_echo "yes" >&6; }
12879 else
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881$as_echo "no" >&6; }
12882 fi
12883 ;;
12884 *)
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886$as_echo "no" >&6; }
12887 ;;
12888 esac
12889fi
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902 # Report which library types will actually be built
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12904$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12906$as_echo "$can_build_shared" >&6; }
12907
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12909$as_echo_n "checking whether to build shared libraries... " >&6; }
12910 test "$can_build_shared" = "no" && enable_shared=no
12911
12912 # On AIX, shared libraries and static libraries use the same namespace, and
12913 # are all built from PIC.
12914 case $host_os in
12915 aix3*)
12916 test "$enable_shared" = yes && enable_static=no
12917 if test -n "$RANLIB"; then
12918 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12919 postinstall_cmds='$RANLIB $lib'
12920 fi
12921 ;;
12922
12923 aix[4-9]*)
12924 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12925 test "$enable_shared" = yes && enable_static=no
12926 fi
12927 ;;
12928 esac
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12930$as_echo "$enable_shared" >&6; }
12931
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12933$as_echo_n "checking whether to build static libraries... " >&6; }
12934 # Make sure either enable_shared or enable_static is yes.
12935 test "$enable_shared" = yes || enable_static=yes
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12937$as_echo "$enable_static" >&6; }
12938
12939
12940
12941
12942fi
12943ac_ext=c
12944ac_cpp='$CPP $CPPFLAGS'
12945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12947ac_compiler_gnu=$ac_cv_c_compiler_gnu
12948
12949CC="$lt_save_CC"
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965 ac_config_commands="$ac_config_commands libtool"
12966
12967
12968
12969
12970# Only expand once:
12971
12972
12973
12974
12975 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
12976
12977 for k in ac ; do ACLOCAL="$ACLOCAL -I $k" ; done
12978
12979
12980native_win32=no
12981os_osx=no
12982
12983case "$target" in
12984*-darwin*)
12985 os_osx=yes
12986 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
12987 LIBSYLPH_CFLAGS="$LIBSYLPH_CFLAGS -xobjective-c"
12988 ;;
12989*-*-mingw*)
12990 native_win32=yes
12991 CFLAGS="$CFLAGS -mms-bitfields -mwindows"
12992 LIBS="$LIBS"
12993 LIBSYLPH_LIBS="-lws2_32 -lwinmm"
12994 SYLPHEED_LIBS="-lole32 -Wl,-luuid"
12995 # Extract the first word of "windres", so it can be a program name with args.
12996set dummy windres; ac_word=$2
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998$as_echo_n "checking for $ac_word... " >&6; }
12999if ${ac_cv_prog_WINDRES+:} false; then :
13000 $as_echo_n "(cached) " >&6
13001else
13002 if test -n "$WINDRES"; then
13003 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13004else
13005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006for as_dir in $PATH
13007do
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13012 ac_cv_prog_WINDRES="windres"
13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014 break 2
13015 fi
13016done
13017 done
13018IFS=$as_save_IFS
13019
13020fi
13021fi
13022WINDRES=$ac_cv_prog_WINDRES
13023if test -n "$WINDRES"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13025$as_echo "$WINDRES" >&6; }
13026else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028$as_echo "no" >&6; }
13029fi
13030
13031
13032 ;;
13033esac
13034
13035
13036
13037
13038 if test "$native_win32" = "yes"; then
13039 NATIVE_WIN32_TRUE=
13040 NATIVE_WIN32_FALSE='#'
13041else
13042 NATIVE_WIN32_TRUE='#'
13043 NATIVE_WIN32_FALSE=
13044fi
13045
13046
13047# Check whether --enable-glibtest was given.
13048if test "${enable_glibtest+set}" = set; then :
13049 enableval=$enable_glibtest;
13050else
13051 enable_glibtest=yes
13052fi
13053
13054
13055 pkg_config_args=glib-2.0
13056 for module in . gobject gmodule
13057 do
13058 case "$module" in
13059 gmodule)
13060 pkg_config_args="$pkg_config_args gmodule-2.0"
13061 ;;
13062 gmodule-no-export)
13063 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13064 ;;
13065 gobject)
13066 pkg_config_args="$pkg_config_args gobject-2.0"
13067 ;;
13068 gthread)
13069 pkg_config_args="$pkg_config_args gthread-2.0"
13070 ;;
13071 gio*)
13072 pkg_config_args="$pkg_config_args $module-2.0"
13073 ;;
13074 esac
13075 done
13076
13077
13078
13079
13080
13081
13082
13083
13084if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13085 if test -n "$ac_tool_prefix"; then
13086 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13087set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089$as_echo_n "checking for $ac_word... " >&6; }
13090if ${ac_cv_path_PKG_CONFIG+:} false; then :
13091 $as_echo_n "(cached) " >&6
13092else
13093 case $PKG_CONFIG in
13094 [\\/]* | ?:[\\/]*)
13095 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13096 ;;
13097 *)
13098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099for as_dir in $PATH
13100do
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
13103 for ac_exec_ext in '' $ac_executable_extensions; do
13104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13105 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13107 break 2
13108 fi
13109done
13110 done
13111IFS=$as_save_IFS
13112
13113 ;;
13114esac
13115fi
13116PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13117if test -n "$PKG_CONFIG"; then
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13119$as_echo "$PKG_CONFIG" >&6; }
13120else
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122$as_echo "no" >&6; }
13123fi
13124
13125
13126fi
13127if test -z "$ac_cv_path_PKG_CONFIG"; then
13128 ac_pt_PKG_CONFIG=$PKG_CONFIG
13129 # Extract the first word of "pkg-config", so it can be a program name with args.
13130set dummy pkg-config; ac_word=$2
13131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132$as_echo_n "checking for $ac_word... " >&6; }
13133if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13134 $as_echo_n "(cached) " >&6
13135else
13136 case $ac_pt_PKG_CONFIG in
13137 [\\/]* | ?:[\\/]*)
13138 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13139 ;;
13140 *)
13141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142for as_dir in $PATH
13143do
13144 IFS=$as_save_IFS
13145 test -z "$as_dir" && as_dir=.
13146 for ac_exec_ext in '' $ac_executable_extensions; do
13147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13148 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13150 break 2
13151 fi
13152done
13153 done
13154IFS=$as_save_IFS
13155
13156 ;;
13157esac
13158fi
13159ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13160if test -n "$ac_pt_PKG_CONFIG"; then
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13162$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13163else
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165$as_echo "no" >&6; }
13166fi
13167
13168 if test "x$ac_pt_PKG_CONFIG" = x; then
13169 PKG_CONFIG=""
13170 else
13171 case $cross_compiling:$ac_tool_warned in
13172yes:)
13173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13175ac_tool_warned=yes ;;
13176esac
13177 PKG_CONFIG=$ac_pt_PKG_CONFIG
13178 fi
13179else
13180 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13181fi
13182
13183fi
13184if test -n "$PKG_CONFIG"; then
13185 _pkg_min_version=0.16
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13187$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13188 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13190$as_echo "yes" >&6; }
13191 else
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193$as_echo "no" >&6; }
13194 PKG_CONFIG=""
13195 fi
13196fi
13197
13198 no_glib=""
13199
13200 if test "x$PKG_CONFIG" = x ; then
13201 no_glib=yes
13202 PKG_CONFIG=no
13203 fi
13204
13205 min_glib_version=2.8.0
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13207$as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13208
13209 if test x$PKG_CONFIG != xno ; then
13210 ## don't try to run the test against uninstalled libtool libs
13211 if $PKG_CONFIG --uninstalled $pkg_config_args; then
13212 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13213 enable_glibtest=no
13214 fi
13215
13216 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13217 :
13218 else
13219 no_glib=yes
13220 fi
13221 fi
13222
13223 if test x"$no_glib" = x ; then
13224 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13225 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13226 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13227 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13228
13229 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13230 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13231 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13232 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13233 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13234 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13235 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13236 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13237 if test "x$enable_glibtest" = "xyes" ; then
13238 ac_save_CFLAGS="$CFLAGS"
13239 ac_save_LIBS="$LIBS"
13240 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13241 LIBS="$GLIB_LIBS $LIBS"
13242 rm -f conf.glibtest
13243 if test "$cross_compiling" = yes; then :
13244 echo $ac_n "cross compiling; assumed OK... $ac_c"
13245else
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247/* end confdefs.h. */
13248
13249#include <glib.h>
13250#include <stdio.h>
13251#include <stdlib.h>
13252
13253int
13254main ()
13255{
13256 unsigned int major, minor, micro;
13257
13258 fclose (fopen ("conf.glibtest", "w"));
13259
13260 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
13261 printf("%s, bad version string\n", "$min_glib_version");
13262 exit(1);
13263 }
13264
13265 if ((glib_major_version != $glib_config_major_version) ||
13266 (glib_minor_version != $glib_config_minor_version) ||
13267 (glib_micro_version != $glib_config_micro_version))
13268 {
13269 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13270 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13271 glib_major_version, glib_minor_version, glib_micro_version);
13272 printf ("*** was found! If pkg-config was correct, then it is best\n");
13273 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13274 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13275 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13276 printf("*** required on your system.\n");
13277 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13278 printf("*** to point to the correct configuration files\n");
13279 }
13280 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13281 (glib_minor_version != GLIB_MINOR_VERSION) ||
13282 (glib_micro_version != GLIB_MICRO_VERSION))
13283 {
13284 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13285 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13286 printf("*** library (version %d.%d.%d)\n",
13287 glib_major_version, glib_minor_version, glib_micro_version);
13288 }
13289 else
13290 {
13291 if ((glib_major_version > major) ||
13292 ((glib_major_version == major) && (glib_minor_version > minor)) ||
13293 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13294 {
13295 return 0;
13296 }
13297 else
13298 {
13299 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13300 glib_major_version, glib_minor_version, glib_micro_version);
13301 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13302 major, minor, micro);
13303 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13304 printf("***\n");
13305 printf("*** If you have already installed a sufficiently new version, this error\n");
13306 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13307 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13308 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13309 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13310 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13311 printf("*** so that the correct libraries are found at run-time))\n");
13312 }
13313 }
13314 return 1;
13315}
13316
13317_ACEOF
13318if ac_fn_c_try_run "$LINENO"; then :
13319
13320else
13321 no_glib=yes
13322fi
13323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13324 conftest.$ac_objext conftest.beam conftest.$ac_ext
13325fi
13326
13327 CFLAGS="$ac_save_CFLAGS"
13328 LIBS="$ac_save_LIBS"
13329 fi
13330 fi
13331 if test "x$no_glib" = x ; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13333$as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13334 :
13335 else
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337$as_echo "no" >&6; }
13338 if test "$PKG_CONFIG" = "no" ; then
13339 echo "*** A new enough version of pkg-config was not found."
13340 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13341 else
13342 if test -f conf.glibtest ; then
13343 :
13344 else
13345 echo "*** Could not run GLIB test program, checking why..."
13346 ac_save_CFLAGS="$CFLAGS"
13347 ac_save_LIBS="$LIBS"
13348 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13349 LIBS="$LIBS $GLIB_LIBS"
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351/* end confdefs.h. */
13352
13353#include <glib.h>
13354#include <stdio.h>
13355
13356int
13357main ()
13358{
13359 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
13360 ;
13361 return 0;
13362}
13363_ACEOF
13364if ac_fn_c_try_link "$LINENO"; then :
13365 echo "*** The test program compiled, but did not run. This usually means"
13366 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
13367 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
13368 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13369 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13370 echo "*** is required on your system"
13371 echo "***"
13372 echo "*** If you have an old version installed, it is best to remove it, although"
13373 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13374else
13375 echo "*** The test program failed to compile or link. See the file config.log for the"
13376 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
13377fi
13378rm -f core conftest.err conftest.$ac_objext \
13379 conftest$ac_exeext conftest.$ac_ext
13380 CFLAGS="$ac_save_CFLAGS"
13381 LIBS="$ac_save_LIBS"
13382 fi
13383 fi
13384 GLIB_CFLAGS=""
13385 GLIB_LIBS=""
13386 GLIB_GENMARSHAL=""
13387 GOBJECT_QUERY=""
13388 GLIB_MKENUMS=""
13389 GLIB_COMPILE_RESOURCES=""
13390 as_fn_error $? "Test for GLib failed. See the 'INSTALL' for help." "$LINENO" 5
13391 fi
13392
13393
13394
13395
13396
13397
13398 rm -f conf.glibtest
13399
13400
13401# Extract the first word of "glib-genmarshal", so it can be a program name with args.
13402set dummy glib-genmarshal; ac_word=$2
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13404$as_echo_n "checking for $ac_word... " >&6; }
13405if ${ac_cv_path_GLIB_GENMARSHAL+:} false; then :
13406 $as_echo_n "(cached) " >&6
13407else
13408 case $GLIB_GENMARSHAL in
13409 [\\/]* | ?:[\\/]*)
13410 ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
13411 ;;
13412 *)
13413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13414for as_dir in $PATH
13415do
13416 IFS=$as_save_IFS
13417 test -z "$as_dir" && as_dir=.
13418 for ac_exec_ext in '' $ac_executable_extensions; do
13419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13420 ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
13421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13422 break 2
13423 fi
13424done
13425 done
13426IFS=$as_save_IFS
13427
13428 ;;
13429esac
13430fi
13431GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
13432if test -n "$GLIB_GENMARSHAL"; then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
13434$as_echo "$GLIB_GENMARSHAL" >&6; }
13435else
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437$as_echo "no" >&6; }
13438fi
13439
13440
13441
13442# Check whether --enable-gtktest was given.
13443if test "${enable_gtktest+set}" = set; then :
13444 enableval=$enable_gtktest;
13445else
13446 enable_gtktest=yes
13447fi
13448
13449
13450 pkg_config_args=gtk+-2.0
13451 for module in .
13452 do
13453 case "$module" in
13454 gthread)
13455 pkg_config_args="$pkg_config_args gthread-2.0"
13456 ;;
13457 esac
13458 done
13459
13460 no_gtk=""
13461
13462 # Extract the first word of "pkg-config", so it can be a program name with args.
13463set dummy pkg-config; ac_word=$2
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13465$as_echo_n "checking for $ac_word... " >&6; }
13466if ${ac_cv_path_PKG_CONFIG+:} false; then :
13467 $as_echo_n "(cached) " >&6
13468else
13469 case $PKG_CONFIG in
13470 [\\/]* | ?:[\\/]*)
13471 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13472 ;;
13473 *)
13474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13475for as_dir in $PATH
13476do
13477 IFS=$as_save_IFS
13478 test -z "$as_dir" && as_dir=.
13479 for ac_exec_ext in '' $ac_executable_extensions; do
13480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13481 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13483 break 2
13484 fi
13485done
13486 done
13487IFS=$as_save_IFS
13488
13489 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13490 ;;
13491esac
13492fi
13493PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13494if test -n "$PKG_CONFIG"; then
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13496$as_echo "$PKG_CONFIG" >&6; }
13497else
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13499$as_echo "no" >&6; }
13500fi
13501
13502
13503
13504 if test x$PKG_CONFIG != xno ; then
13505 if pkg-config --atleast-pkgconfig-version 0.7 ; then
13506 :
13507 else
13508 echo "*** pkg-config too old; version 0.7 or better required."
13509 no_gtk=yes
13510 PKG_CONFIG=no
13511 fi
13512 else
13513 no_gtk=yes
13514 fi
13515
13516 min_gtk_version=2.8.0
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
13518$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
13519
13520 if test x$PKG_CONFIG != xno ; then
13521 ## don't try to run the test against uninstalled libtool libs
13522 if $PKG_CONFIG --uninstalled $pkg_config_args; then
13523 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
13524 enable_gtktest=no
13525 fi
13526
13527 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
13528 :
13529 else
13530 no_gtk=yes
13531 fi
13532 fi
13533
13534 if test x"$no_gtk" = x ; then
13535 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
13536 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
13537 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
13538 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13539 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
13540 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13541 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
13542 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13543 if test "x$enable_gtktest" = "xyes" ; then
13544 ac_save_CFLAGS="$CFLAGS"
13545 ac_save_LIBS="$LIBS"
13546 CFLAGS="$CFLAGS $GTK_CFLAGS"
13547 LIBS="$GTK_LIBS $LIBS"
13548 rm -f conf.gtktest
13549 if test "$cross_compiling" = yes; then :
13550 echo $ac_n "cross compiling; assumed OK... $ac_c"
13551else
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553/* end confdefs.h. */
13554
13555#include <gtk/gtk.h>
13556#include <stdio.h>
13557#include <stdlib.h>
13558
13559int
13560main ()
13561{
13562 int major, minor, micro;
13563 char *tmp_version;
13564
13565 fclose (fopen ("conf.gtktest", "w"));
13566
13567 /* HP/UX 9 (%@#!) writes to sscanf strings */
13568 tmp_version = g_strdup("$min_gtk_version");
13569 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13570 printf("%s, bad version string\n", "$min_gtk_version");
13571 exit(1);
13572 }
13573
13574 if ((gtk_major_version != $gtk_config_major_version) ||
13575 (gtk_minor_version != $gtk_config_minor_version) ||
13576 (gtk_micro_version != $gtk_config_micro_version))
13577 {
13578 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
13579 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13580 gtk_major_version, gtk_minor_version, gtk_micro_version);
13581 printf ("*** was found! If pkg-config was correct, then it is best\n");
13582 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13583 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13584 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13585 printf("*** required on your system.\n");
13586 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13587 printf("*** to point to the correct configuration files\n");
13588 }
13589 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13590 (gtk_minor_version != GTK_MINOR_VERSION) ||
13591 (gtk_micro_version != GTK_MICRO_VERSION))
13592 {
13593 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13594 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13595 printf("*** library (version %d.%d.%d)\n",
13596 gtk_major_version, gtk_minor_version, gtk_micro_version);
13597 }
13598 else
13599 {
13600 if ((gtk_major_version > major) ||
13601 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13602 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13603 {
13604 return 0;
13605 }
13606 else
13607 {
13608 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13609 gtk_major_version, gtk_minor_version, gtk_micro_version);
13610 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13611 major, minor, micro);
13612 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13613 printf("***\n");
13614 printf("*** If you have already installed a sufficiently new version, this error\n");
13615 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13616 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13617 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
13618 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13619 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13620 printf("*** so that the correct libraries are found at run-time))\n");
13621 }
13622 }
13623 return 1;
13624}
13625
13626_ACEOF
13627if ac_fn_c_try_run "$LINENO"; then :
13628
13629else
13630 no_gtk=yes
13631fi
13632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13633 conftest.$ac_objext conftest.beam conftest.$ac_ext
13634fi
13635
13636 CFLAGS="$ac_save_CFLAGS"
13637 LIBS="$ac_save_LIBS"
13638 fi
13639 fi
13640 if test "x$no_gtk" = x ; then
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
13642$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
13643 :
13644 else
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13646$as_echo "no" >&6; }
13647 if test "$PKG_CONFIG" = "no" ; then
13648 echo "*** A new enough version of pkg-config was not found."
13649 echo "*** See http://pkgconfig.sourceforge.net"
13650 else
13651 if test -f conf.gtktest ; then
13652 :
13653 else
13654 echo "*** Could not run GTK+ test program, checking why..."
13655 ac_save_CFLAGS="$CFLAGS"
13656 ac_save_LIBS="$LIBS"
13657 CFLAGS="$CFLAGS $GTK_CFLAGS"
13658 LIBS="$LIBS $GTK_LIBS"
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660/* end confdefs.h. */
13661
13662#include <gtk/gtk.h>
13663#include <stdio.h>
13664
13665int
13666main ()
13667{
13668 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13669 ;
13670 return 0;
13671}
13672_ACEOF
13673if ac_fn_c_try_link "$LINENO"; then :
13674 echo "*** The test program compiled, but did not run. This usually means"
13675 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
13676 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
13677 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13678 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13679 echo "*** is required on your system"
13680 echo "***"
13681 echo "*** If you have an old version installed, it is best to remove it, although"
13682 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13683else
13684 echo "*** The test program failed to compile or link. See the file config.log for the"
13685 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
13686fi
13687rm -f core conftest.err conftest.$ac_objext \
13688 conftest$ac_exeext conftest.$ac_ext
13689 CFLAGS="$ac_save_CFLAGS"
13690 LIBS="$ac_save_LIBS"
13691 fi
13692 fi
13693 GTK_CFLAGS=""
13694 GTK_LIBS=""
13695 as_fn_error $? "Test for Gtk failed. See the 'INSTALL' for help." "$LINENO" 5
13696 fi
13697
13698
13699 rm -f conf.gtktest
13700
13701
13702# Check whether --enable-deprecated was given.
13703if test "${enable_deprecated+set}" = set; then :
13704 enableval=$enable_deprecated; GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
13705fi
13706
13707
13708
13709
13710
13711if test "$os_osx" == yes; then
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtkosx_application_ready in -lgtkmacintegration" >&5
13713$as_echo_n "checking for gtkosx_application_ready in -lgtkmacintegration... " >&6; }
13714if ${ac_cv_lib_gtkmacintegration_gtkosx_application_ready+:} false; then :
13715 $as_echo_n "(cached) " >&6
13716else
13717 ac_check_lib_save_LIBS=$LIBS
13718LIBS="-lgtkmacintegration $LIBS"
13719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13720/* end confdefs.h. */
13721
13722/* Override any GCC internal prototype to avoid an error.
13723 Use char because int might match the return type of a GCC
13724 builtin and then its argument prototype would still apply. */
13725#ifdef __cplusplus
13726extern "C"
13727#endif
13728char gtkosx_application_ready ();
13729int
13730main ()
13731{
13732return gtkosx_application_ready ();
13733 ;
13734 return 0;
13735}
13736_ACEOF
13737if ac_fn_c_try_link "$LINENO"; then :
13738 ac_cv_lib_gtkmacintegration_gtkosx_application_ready=yes
13739else
13740 ac_cv_lib_gtkmacintegration_gtkosx_application_ready=no
13741fi
13742rm -f core conftest.err conftest.$ac_objext \
13743 conftest$ac_exeext conftest.$ac_ext
13744LIBS=$ac_check_lib_save_LIBS
13745fi
13746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtkmacintegration_gtkosx_application_ready" >&5
13747$as_echo "$ac_cv_lib_gtkmacintegration_gtkosx_application_ready" >&6; }
13748if test "x$ac_cv_lib_gtkmacintegration_gtkosx_application_ready" = xyes; then :
13749 ac_have_gtkmacintegration=yes
13750else
13751 ac_have_gtkmacintegration=no
13752fi
13753
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gtkmacintegration is available" >&5
13755$as_echo_n "checking if gtkmacintegration is available... " >&6; }
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have_gtkmacintegration" >&5
13757$as_echo "$ac_have_gtkmacintegration" >&6; }
13758 if test "$ac_have_gtkmacintegration" = yes; then
13759 SYLPHEED_LIBS="$SYLPHEED_LIBS -lgtkmacintegration"
13760
13761$as_echo "#define USE_GTKMACINTEGRATION 1" >>confdefs.h
13762
13763 fi
13764fi
13765
13766
13767
13768
13769 if test "X$prefix" = "XNONE"; then
13770 acl_final_prefix="$ac_default_prefix"
13771 else
13772 acl_final_prefix="$prefix"
13773 fi
13774 if test "X$exec_prefix" = "XNONE"; then
13775 acl_final_exec_prefix='${prefix}'
13776 else
13777 acl_final_exec_prefix="$exec_prefix"
13778 fi
13779 acl_save_prefix="$prefix"
13780 prefix="$acl_final_prefix"
13781 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13782 prefix="$acl_save_prefix"
13783
13784
13785
13786# Check whether --with-gnu-ld was given.
13787if test "${with_gnu_ld+set}" = set; then :
13788 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13789else
13790 with_gnu_ld=no
13791fi
13792
13793# Prepare PATH_SEPARATOR.
13794# The user is always right.
13795if test "${PATH_SEPARATOR+set}" != set; then
13796 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13797 # contains only /bin. Note that ksh looks also at the FPATH variable,
13798 # so we have to set that as well for the test.
13799 PATH_SEPARATOR=:
13800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13801 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13802 || PATH_SEPARATOR=';'
13803 }
13804fi
13805
13806ac_prog=ld
13807if test "$GCC" = yes; then
13808 # Check if gcc -print-prog-name=ld gives a path.
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13810$as_echo_n "checking for ld used by $CC... " >&6; }
13811 case $host in
13812 *-*-mingw*)
13813 # gcc leaves a trailing carriage return which upsets mingw
13814 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13815 *)
13816 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13817 esac
13818 case $ac_prog in
13819 # Accept absolute paths.
13820 [\\/]* | ?:[\\/]*)
13821 re_direlt='/[^/][^/]*/\.\./'
13822 # Canonicalize the pathname of ld
13823 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13824 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13825 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13826 done
13827 test -z "$LD" && LD="$ac_prog"
13828 ;;
13829 "")
13830 # If it fails, then pretend we aren't using GCC.
13831 ac_prog=ld
13832 ;;
13833 *)
13834 # If it is relative, then search for the first ld in PATH.
13835 with_gnu_ld=unknown
13836 ;;
13837 esac
13838elif test "$with_gnu_ld" = yes; then
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13840$as_echo_n "checking for GNU ld... " >&6; }
13841else
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13843$as_echo_n "checking for non-GNU ld... " >&6; }
13844fi
13845if ${acl_cv_path_LD+:} false; then :
13846 $as_echo_n "(cached) " >&6
13847else
13848 if test -z "$LD"; then
13849 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13850 for ac_dir in $PATH; do
13851 IFS="$acl_save_ifs"
13852 test -z "$ac_dir" && ac_dir=.
13853 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13854 acl_cv_path_LD="$ac_dir/$ac_prog"
13855 # Check to see if the program is GNU ld. I'd rather use --version,
13856 # but apparently some variants of GNU ld only accept -v.
13857 # Break only if it was the GNU/non-GNU ld that we prefer.
13858 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13859 *GNU* | *'with BFD'*)
13860 test "$with_gnu_ld" != no && break
13861 ;;
13862 *)
13863 test "$with_gnu_ld" != yes && break
13864 ;;
13865 esac
13866 fi
13867 done
13868 IFS="$acl_save_ifs"
13869else
13870 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13871fi
13872fi
13873
13874LD="$acl_cv_path_LD"
13875if test -n "$LD"; then
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13877$as_echo "$LD" >&6; }
13878else
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13880$as_echo "no" >&6; }
13881fi
13882test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13884$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13885if ${acl_cv_prog_gnu_ld+:} false; then :
13886 $as_echo_n "(cached) " >&6
13887else
13888 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13889case `$LD -v 2>&1 </dev/null` in
13890*GNU* | *'with BFD'*)
13891 acl_cv_prog_gnu_ld=yes
13892 ;;
13893*)
13894 acl_cv_prog_gnu_ld=no
13895 ;;
13896esac
13897fi
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13899$as_echo "$acl_cv_prog_gnu_ld" >&6; }
13900with_gnu_ld=$acl_cv_prog_gnu_ld
13901
13902
13903
13904
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13906$as_echo_n "checking for shared library run path origin... " >&6; }
13907if ${acl_cv_rpath+:} false; then :
13908 $as_echo_n "(cached) " >&6
13909else
13910
13911 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13912 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13913 . ./conftest.sh
13914 rm -f ./conftest.sh
13915 acl_cv_rpath=done
13916
13917fi
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13919$as_echo "$acl_cv_rpath" >&6; }
13920 wl="$acl_cv_wl"
13921 acl_libext="$acl_cv_libext"
13922 acl_shlibext="$acl_cv_shlibext"
13923 acl_libname_spec="$acl_cv_libname_spec"
13924 acl_library_names_spec="$acl_cv_library_names_spec"
13925 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13926 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13927 acl_hardcode_direct="$acl_cv_hardcode_direct"
13928 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13929 # Check whether --enable-rpath was given.
13930if test "${enable_rpath+set}" = set; then :
13931 enableval=$enable_rpath; :
13932else
13933 enable_rpath=yes
13934fi
13935
13936
13937
13938
13939 acl_libdirstem=lib
13940 acl_libdirstem2=
13941 case "$host_os" in
13942 solaris*)
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13944$as_echo_n "checking for 64-bit host... " >&6; }
13945if ${gl_cv_solaris_64bit+:} false; then :
13946 $as_echo_n "(cached) " >&6
13947else
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949/* end confdefs.h. */
13950
13951#ifdef _LP64
13952sixtyfour bits
13953#endif
13954
13955_ACEOF
13956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13957 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13958 gl_cv_solaris_64bit=yes
13959else
13960 gl_cv_solaris_64bit=no
13961fi
13962rm -f conftest*
13963
13964
13965fi
13966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13967$as_echo "$gl_cv_solaris_64bit" >&6; }
13968 if test $gl_cv_solaris_64bit = yes; then
13969 acl_libdirstem=lib/64
13970 case "$host_cpu" in
13971 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13972 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13973 esac
13974 fi
13975 ;;
13976 *)
13977 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13978 if test -n "$searchpath"; then
13979 acl_save_IFS="${IFS= }"; IFS=":"
13980 for searchdir in $searchpath; do
13981 if test -d "$searchdir"; then
13982 case "$searchdir" in
13983 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13984 */../ | */.. )
13985 # Better ignore directories of this form. They are misleading.
13986 ;;
13987 *) searchdir=`cd "$searchdir" && pwd`
13988 case "$searchdir" in
13989 */lib64 ) acl_libdirstem=lib64 ;;
13990 esac ;;
13991 esac
13992 fi
13993 done
13994 IFS="$acl_save_IFS"
13995 fi
13996 ;;
13997 esac
13998 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011 use_additional=yes
14012
14013 acl_save_prefix="$prefix"
14014 prefix="$acl_final_prefix"
14015 acl_save_exec_prefix="$exec_prefix"
14016 exec_prefix="$acl_final_exec_prefix"
14017
14018 eval additional_includedir=\"$includedir\"
14019 eval additional_libdir=\"$libdir\"
14020
14021 exec_prefix="$acl_save_exec_prefix"
14022 prefix="$acl_save_prefix"
14023
14024
14025# Check whether --with-libiconv-prefix was given.
14026if test "${with_libiconv_prefix+set}" = set; then :
14027 withval=$with_libiconv_prefix;
14028 if test "X$withval" = "Xno"; then
14029 use_additional=no
14030 else
14031 if test "X$withval" = "X"; then
14032
14033 acl_save_prefix="$prefix"
14034 prefix="$acl_final_prefix"
14035 acl_save_exec_prefix="$exec_prefix"
14036 exec_prefix="$acl_final_exec_prefix"
14037
14038 eval additional_includedir=\"$includedir\"
14039 eval additional_libdir=\"$libdir\"
14040
14041 exec_prefix="$acl_save_exec_prefix"
14042 prefix="$acl_save_prefix"
14043
14044 else
14045 additional_includedir="$withval/include"
14046 additional_libdir="$withval/$acl_libdirstem"
14047 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14048 && ! test -d "$withval/$acl_libdirstem"; then
14049 additional_libdir="$withval/$acl_libdirstem2"
14050 fi
14051 fi
14052 fi
14053
14054fi
14055
14056 LIBICONV=
14057 LTLIBICONV=
14058 INCICONV=
14059 LIBICONV_PREFIX=
14060 HAVE_LIBICONV=
14061 rpathdirs=
14062 ltrpathdirs=
14063 names_already_handled=
14064 names_next_round='iconv '
14065 while test -n "$names_next_round"; do
14066 names_this_round="$names_next_round"
14067 names_next_round=
14068 for name in $names_this_round; do
14069 already_handled=
14070 for n in $names_already_handled; do
14071 if test "$n" = "$name"; then
14072 already_handled=yes
14073 break
14074 fi
14075 done
14076 if test -z "$already_handled"; then
14077 names_already_handled="$names_already_handled $name"
14078 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14079 eval value=\"\$HAVE_LIB$uppername\"
14080 if test -n "$value"; then
14081 if test "$value" = yes; then
14082 eval value=\"\$LIB$uppername\"
14083 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14084 eval value=\"\$LTLIB$uppername\"
14085 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14086 else
14087 :
14088 fi
14089 else
14090 found_dir=
14091 found_la=
14092 found_so=
14093 found_a=
14094 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14095 if test -n "$acl_shlibext"; then
14096 shrext=".$acl_shlibext" # typically: shrext=.so
14097 else
14098 shrext=
14099 fi
14100 if test $use_additional = yes; then
14101 dir="$additional_libdir"
14102 if test -n "$acl_shlibext"; then
14103 if test -f "$dir/$libname$shrext"; then
14104 found_dir="$dir"
14105 found_so="$dir/$libname$shrext"
14106 else
14107 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14108 ver=`(cd "$dir" && \
14109 for f in "$libname$shrext".*; do echo "$f"; done \
14110 | sed -e "s,^$libname$shrext\\\\.,," \
14111 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14112 | sed 1q ) 2>/dev/null`
14113 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14114 found_dir="$dir"
14115 found_so="$dir/$libname$shrext.$ver"
14116 fi
14117 else
14118 eval library_names=\"$acl_library_names_spec\"
14119 for f in $library_names; do
14120 if test -f "$dir/$f"; then
14121 found_dir="$dir"
14122 found_so="$dir/$f"
14123 break
14124 fi
14125 done
14126 fi
14127 fi
14128 fi
14129 if test "X$found_dir" = "X"; then
14130 if test -f "$dir/$libname.$acl_libext"; then
14131 found_dir="$dir"
14132 found_a="$dir/$libname.$acl_libext"
14133 fi
14134 fi
14135 if test "X$found_dir" != "X"; then
14136 if test -f "$dir/$libname.la"; then
14137 found_la="$dir/$libname.la"
14138 fi
14139 fi
14140 fi
14141 if test "X$found_dir" = "X"; then
14142 for x in $LDFLAGS $LTLIBICONV; do
14143
14144 acl_save_prefix="$prefix"
14145 prefix="$acl_final_prefix"
14146 acl_save_exec_prefix="$exec_prefix"
14147 exec_prefix="$acl_final_exec_prefix"
14148 eval x=\"$x\"
14149 exec_prefix="$acl_save_exec_prefix"
14150 prefix="$acl_save_prefix"
14151
14152 case "$x" in
14153 -L*)
14154 dir=`echo "X$x" | sed -e 's/^X-L//'`
14155 if test -n "$acl_shlibext"; then
14156 if test -f "$dir/$libname$shrext"; then
14157 found_dir="$dir"
14158 found_so="$dir/$libname$shrext"
14159 else
14160 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14161 ver=`(cd "$dir" && \
14162 for f in "$libname$shrext".*; do echo "$f"; done \
14163 | sed -e "s,^$libname$shrext\\\\.,," \
14164 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14165 | sed 1q ) 2>/dev/null`
14166 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14167 found_dir="$dir"
14168 found_so="$dir/$libname$shrext.$ver"
14169 fi
14170 else
14171 eval library_names=\"$acl_library_names_spec\"
14172 for f in $library_names; do
14173 if test -f "$dir/$f"; then
14174 found_dir="$dir"
14175 found_so="$dir/$f"
14176 break
14177 fi
14178 done
14179 fi
14180 fi
14181 fi
14182 if test "X$found_dir" = "X"; then
14183 if test -f "$dir/$libname.$acl_libext"; then
14184 found_dir="$dir"
14185 found_a="$dir/$libname.$acl_libext"
14186 fi
14187 fi
14188 if test "X$found_dir" != "X"; then
14189 if test -f "$dir/$libname.la"; then
14190 found_la="$dir/$libname.la"
14191 fi
14192 fi
14193 ;;
14194 esac
14195 if test "X$found_dir" != "X"; then
14196 break
14197 fi
14198 done
14199 fi
14200 if test "X$found_dir" != "X"; then
14201 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14202 if test "X$found_so" != "X"; then
14203 if test "$enable_rpath" = no \
14204 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14205 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14206 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14207 else
14208 haveit=
14209 for x in $ltrpathdirs; do
14210 if test "X$x" = "X$found_dir"; then
14211 haveit=yes
14212 break
14213 fi
14214 done
14215 if test -z "$haveit"; then
14216 ltrpathdirs="$ltrpathdirs $found_dir"
14217 fi
14218 if test "$acl_hardcode_direct" = yes; then
14219 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14220 else
14221 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14222 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14223 haveit=
14224 for x in $rpathdirs; do
14225 if test "X$x" = "X$found_dir"; then
14226 haveit=yes
14227 break
14228 fi
14229 done
14230 if test -z "$haveit"; then
14231 rpathdirs="$rpathdirs $found_dir"
14232 fi
14233 else
14234 haveit=
14235 for x in $LDFLAGS $LIBICONV; do
14236
14237 acl_save_prefix="$prefix"
14238 prefix="$acl_final_prefix"
14239 acl_save_exec_prefix="$exec_prefix"
14240 exec_prefix="$acl_final_exec_prefix"
14241 eval x=\"$x\"
14242 exec_prefix="$acl_save_exec_prefix"
14243 prefix="$acl_save_prefix"
14244
14245 if test "X$x" = "X-L$found_dir"; then
14246 haveit=yes
14247 break
14248 fi
14249 done
14250 if test -z "$haveit"; then
14251 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14252 fi
14253 if test "$acl_hardcode_minus_L" != no; then
14254 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14255 else
14256 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14257 fi
14258 fi
14259 fi
14260 fi
14261 else
14262 if test "X$found_a" != "X"; then
14263 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14264 else
14265 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14266 fi
14267 fi
14268 additional_includedir=
14269 case "$found_dir" in
14270 */$acl_libdirstem | */$acl_libdirstem/)
14271 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14272 if test "$name" = 'iconv'; then
14273 LIBICONV_PREFIX="$basedir"
14274 fi
14275 additional_includedir="$basedir/include"
14276 ;;
14277 */$acl_libdirstem2 | */$acl_libdirstem2/)
14278 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14279 if test "$name" = 'iconv'; then
14280 LIBICONV_PREFIX="$basedir"
14281 fi
14282 additional_includedir="$basedir/include"
14283 ;;
14284 esac
14285 if test "X$additional_includedir" != "X"; then
14286 if test "X$additional_includedir" != "X/usr/include"; then
14287 haveit=
14288 if test "X$additional_includedir" = "X/usr/local/include"; then
14289 if test -n "$GCC"; then
14290 case $host_os in
14291 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14292 esac
14293 fi
14294 fi
14295 if test -z "$haveit"; then
14296 for x in $CPPFLAGS $INCICONV; do
14297
14298 acl_save_prefix="$prefix"
14299 prefix="$acl_final_prefix"
14300 acl_save_exec_prefix="$exec_prefix"
14301 exec_prefix="$acl_final_exec_prefix"
14302 eval x=\"$x\"
14303 exec_prefix="$acl_save_exec_prefix"
14304 prefix="$acl_save_prefix"
14305
14306 if test "X$x" = "X-I$additional_includedir"; then
14307 haveit=yes
14308 break
14309 fi
14310 done
14311 if test -z "$haveit"; then
14312 if test -d "$additional_includedir"; then
14313 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14314 fi
14315 fi
14316 fi
14317 fi
14318 fi
14319 if test -n "$found_la"; then
14320 save_libdir="$libdir"
14321 case "$found_la" in
14322 */* | *\\*) . "$found_la" ;;
14323 *) . "./$found_la" ;;
14324 esac
14325 libdir="$save_libdir"
14326 for dep in $dependency_libs; do
14327 case "$dep" in
14328 -L*)
14329 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14330 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14331 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14332 haveit=
14333 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14334 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14335 if test -n "$GCC"; then
14336 case $host_os in
14337 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14338 esac
14339 fi
14340 fi
14341 if test -z "$haveit"; then
14342 haveit=
14343 for x in $LDFLAGS $LIBICONV; do
14344
14345 acl_save_prefix="$prefix"
14346 prefix="$acl_final_prefix"
14347 acl_save_exec_prefix="$exec_prefix"
14348 exec_prefix="$acl_final_exec_prefix"
14349 eval x=\"$x\"
14350 exec_prefix="$acl_save_exec_prefix"
14351 prefix="$acl_save_prefix"
14352
14353 if test "X$x" = "X-L$additional_libdir"; then
14354 haveit=yes
14355 break
14356 fi
14357 done
14358 if test -z "$haveit"; then
14359 if test -d "$additional_libdir"; then
14360 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14361 fi
14362 fi
14363 haveit=
14364 for x in $LDFLAGS $LTLIBICONV; do
14365
14366 acl_save_prefix="$prefix"
14367 prefix="$acl_final_prefix"
14368 acl_save_exec_prefix="$exec_prefix"
14369 exec_prefix="$acl_final_exec_prefix"
14370 eval x=\"$x\"
14371 exec_prefix="$acl_save_exec_prefix"
14372 prefix="$acl_save_prefix"
14373
14374 if test "X$x" = "X-L$additional_libdir"; then
14375 haveit=yes
14376 break
14377 fi
14378 done
14379 if test -z "$haveit"; then
14380 if test -d "$additional_libdir"; then
14381 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14382 fi
14383 fi
14384 fi
14385 fi
14386 ;;
14387 -R*)
14388 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14389 if test "$enable_rpath" != no; then
14390 haveit=
14391 for x in $rpathdirs; do
14392 if test "X$x" = "X$dir"; then
14393 haveit=yes
14394 break
14395 fi
14396 done
14397 if test -z "$haveit"; then
14398 rpathdirs="$rpathdirs $dir"
14399 fi
14400 haveit=
14401 for x in $ltrpathdirs; do
14402 if test "X$x" = "X$dir"; then
14403 haveit=yes
14404 break
14405 fi
14406 done
14407 if test -z "$haveit"; then
14408 ltrpathdirs="$ltrpathdirs $dir"
14409 fi
14410 fi
14411 ;;
14412 -l*)
14413 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14414 ;;
14415 *.la)
14416 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14417 ;;
14418 *)
14419 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14420 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14421 ;;
14422 esac
14423 done
14424 fi
14425 else
14426 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14427 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14428 fi
14429 fi
14430 fi
14431 done
14432 done
14433 if test "X$rpathdirs" != "X"; then
14434 if test -n "$acl_hardcode_libdir_separator"; then
14435 alldirs=
14436 for found_dir in $rpathdirs; do
14437 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14438 done
14439 acl_save_libdir="$libdir"
14440 libdir="$alldirs"
14441 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14442 libdir="$acl_save_libdir"
14443 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14444 else
14445 for found_dir in $rpathdirs; do
14446 acl_save_libdir="$libdir"
14447 libdir="$found_dir"
14448 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14449 libdir="$acl_save_libdir"
14450 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14451 done
14452 fi
14453 fi
14454 if test "X$ltrpathdirs" != "X"; then
14455 for found_dir in $ltrpathdirs; do
14456 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14457 done
14458 fi
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471 am_save_CPPFLAGS="$CPPFLAGS"
14472
14473 for element in $INCICONV; do
14474 haveit=
14475 for x in $CPPFLAGS; do
14476
14477 acl_save_prefix="$prefix"
14478 prefix="$acl_final_prefix"
14479 acl_save_exec_prefix="$exec_prefix"
14480 exec_prefix="$acl_final_exec_prefix"
14481 eval x=\"$x\"
14482 exec_prefix="$acl_save_exec_prefix"
14483 prefix="$acl_save_prefix"
14484
14485 if test "X$x" = "X$element"; then
14486 haveit=yes
14487 break
14488 fi
14489 done
14490 if test -z "$haveit"; then
14491 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14492 fi
14493 done
14494
14495
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14497$as_echo_n "checking for iconv... " >&6; }
14498if ${am_cv_func_iconv+:} false; then :
14499 $as_echo_n "(cached) " >&6
14500else
14501
14502 am_cv_func_iconv="no, consider installing GNU libiconv"
14503 am_cv_lib_iconv=no
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505/* end confdefs.h. */
14506
14507#include <stdlib.h>
14508#include <iconv.h>
14509
14510int
14511main ()
14512{
14513iconv_t cd = iconv_open("","");
14514 iconv(cd,NULL,NULL,NULL,NULL);
14515 iconv_close(cd);
14516 ;
14517 return 0;
14518}
14519_ACEOF
14520if ac_fn_c_try_link "$LINENO"; then :
14521 am_cv_func_iconv=yes
14522fi
14523rm -f core conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
14525 if test "$am_cv_func_iconv" != yes; then
14526 am_save_LIBS="$LIBS"
14527 LIBS="$LIBS $LIBICONV"
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529/* end confdefs.h. */
14530
14531#include <stdlib.h>
14532#include <iconv.h>
14533
14534int
14535main ()
14536{
14537iconv_t cd = iconv_open("","");
14538 iconv(cd,NULL,NULL,NULL,NULL);
14539 iconv_close(cd);
14540 ;
14541 return 0;
14542}
14543_ACEOF
14544if ac_fn_c_try_link "$LINENO"; then :
14545 am_cv_lib_iconv=yes
14546 am_cv_func_iconv=yes
14547fi
14548rm -f core conftest.err conftest.$ac_objext \
14549 conftest$ac_exeext conftest.$ac_ext
14550 LIBS="$am_save_LIBS"
14551 fi
14552
14553fi
14554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14555$as_echo "$am_cv_func_iconv" >&6; }
14556 if test "$am_cv_func_iconv" = yes; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14558$as_echo_n "checking for working iconv... " >&6; }
14559if ${am_cv_func_iconv_works+:} false; then :
14560 $as_echo_n "(cached) " >&6
14561else
14562
14563 am_save_LIBS="$LIBS"
14564 if test $am_cv_lib_iconv = yes; then
14565 LIBS="$LIBS $LIBICONV"
14566 fi
14567 if test "$cross_compiling" = yes; then :
14568
14569 case "$host_os" in
14570 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14571 *) am_cv_func_iconv_works="guessing yes" ;;
14572 esac
14573
14574else
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576/* end confdefs.h. */
14577
14578#include <iconv.h>
14579#include <string.h>
14580int main ()
14581{
14582 int result = 0;
14583 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14584 returns. */
14585 {
14586 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14587 if (cd_utf8_to_88591 != (iconv_t)(-1))
14588 {
14589 static const char input[] = "\342\202\254"; /* EURO SIGN */
14590 char buf[10];
14591 const char *inptr = input;
14592 size_t inbytesleft = strlen (input);
14593 char *outptr = buf;
14594 size_t outbytesleft = sizeof (buf);
14595 size_t res = iconv (cd_utf8_to_88591,
14596 (char **) &inptr, &inbytesleft,
14597 &outptr, &outbytesleft);
14598 if (res == 0)
14599 result |= 1;
14600 iconv_close (cd_utf8_to_88591);
14601 }
14602 }
14603 /* Test against Solaris 10 bug: Failures are not distinguishable from
14604 successful returns. */
14605 {
14606 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14607 if (cd_ascii_to_88591 != (iconv_t)(-1))
14608 {
14609 static const char input[] = "\263";
14610 char buf[10];
14611 const char *inptr = input;
14612 size_t inbytesleft = strlen (input);
14613 char *outptr = buf;
14614 size_t outbytesleft = sizeof (buf);
14615 size_t res = iconv (cd_ascii_to_88591,
14616 (char **) &inptr, &inbytesleft,
14617 &outptr, &outbytesleft);
14618 if (res == 0)
14619 result |= 2;
14620 iconv_close (cd_ascii_to_88591);
14621 }
14622 }
14623 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14624 {
14625 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14626 if (cd_88591_to_utf8 != (iconv_t)(-1))
14627 {
14628 static const char input[] = "\304";
14629 static char buf[2] = { (char)0xDE, (char)0xAD };
14630 const char *inptr = input;
14631 size_t inbytesleft = 1;
14632 char *outptr = buf;
14633 size_t outbytesleft = 1;
14634 size_t res = iconv (cd_88591_to_utf8,
14635 (char **) &inptr, &inbytesleft,
14636 &outptr, &outbytesleft);
14637 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14638 result |= 4;
14639 iconv_close (cd_88591_to_utf8);
14640 }
14641 }
14642#if 0 /* This bug could be worked around by the caller. */
14643 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14644 {
14645 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14646 if (cd_88591_to_utf8 != (iconv_t)(-1))
14647 {
14648 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14649 char buf[50];
14650 const char *inptr = input;
14651 size_t inbytesleft = strlen (input);
14652 char *outptr = buf;
14653 size_t outbytesleft = sizeof (buf);
14654 size_t res = iconv (cd_88591_to_utf8,
14655 (char **) &inptr, &inbytesleft,
14656 &outptr, &outbytesleft);
14657 if ((int)res > 0)
14658 result |= 8;
14659 iconv_close (cd_88591_to_utf8);
14660 }
14661 }
14662#endif
14663 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14664 provided. */
14665 if (/* Try standardized names. */
14666 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14667 /* Try IRIX, OSF/1 names. */
14668 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14669 /* Try AIX names. */
14670 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14671 /* Try HP-UX names. */
14672 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14673 result |= 16;
14674 return result;
14675}
14676_ACEOF
14677if ac_fn_c_try_run "$LINENO"; then :
14678 am_cv_func_iconv_works=yes
14679else
14680 am_cv_func_iconv_works=no
14681fi
14682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14683 conftest.$ac_objext conftest.beam conftest.$ac_ext
14684fi
14685
14686 LIBS="$am_save_LIBS"
14687
14688fi
14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14690$as_echo "$am_cv_func_iconv_works" >&6; }
14691 case "$am_cv_func_iconv_works" in
14692 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14693 *) am_func_iconv=yes ;;
14694 esac
14695 else
14696 am_func_iconv=no am_cv_lib_iconv=no
14697 fi
14698 if test "$am_func_iconv" = yes; then
14699
14700$as_echo "#define HAVE_ICONV 1" >>confdefs.h
14701
14702 fi
14703 if test "$am_cv_lib_iconv" = yes; then
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14705$as_echo_n "checking how to link with libiconv... " >&6; }
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14707$as_echo "$LIBICONV" >&6; }
14708 else
14709 CPPFLAGS="$am_save_CPPFLAGS"
14710 LIBICONV=
14711 LTLIBICONV=
14712 fi
14713
14714
14715
14716 if test "$am_cv_func_iconv" = yes; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14718$as_echo_n "checking for iconv declaration... " >&6; }
14719 if ${am_cv_proto_iconv+:} false; then :
14720 $as_echo_n "(cached) " >&6
14721else
14722
14723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724/* end confdefs.h. */
14725
14726#include <stdlib.h>
14727#include <iconv.h>
14728extern
14729#ifdef __cplusplus
14730"C"
14731#endif
14732#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
14733size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14734#else
14735size_t iconv();
14736#endif
14737
14738int
14739main ()
14740{
14741
14742 ;
14743 return 0;
14744}
14745_ACEOF
14746if ac_fn_c_try_compile "$LINENO"; then :
14747 am_cv_proto_iconv_arg1=""
14748else
14749 am_cv_proto_iconv_arg1="const"
14750fi
14751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14753fi
14754
14755 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
14757 $am_cv_proto_iconv" >&5
14758$as_echo "
14759 $am_cv_proto_iconv" >&6; }
14760
14761cat >>confdefs.h <<_ACEOF
14762#define ICONV_CONST $am_cv_proto_iconv_arg1
14763_ACEOF
14764
14765
14766 fi
14767
14768
14769for ac_func in bind_textdomain_codeset
14770do :
14771 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
14772if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
14773 cat >>confdefs.h <<_ACEOF
14774#define HAVE_BIND_TEXTDOMAIN_CODESET 1
14775_ACEOF
14776
14777fi
14778done
14779
14780
14781ALL_LINGUAS="be bg cs da de el es et eu fi fr gl he hr hu it ja ko lt nl pl pt_BR ro ru sk sl sr sv tr uk vi zh_CN zh_TW"
14782GETTEXT_PACKAGE=sylpheed
14783
14784
14785cat >>confdefs.h <<_ACEOF
14786#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
14787_ACEOF
14788
14789
14790
14791 for ac_header in locale.h
14792do :
14793 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
14794if test "x$ac_cv_header_locale_h" = xyes; then :
14795 cat >>confdefs.h <<_ACEOF
14796#define HAVE_LOCALE_H 1
14797_ACEOF
14798
14799fi
14800
14801done
14802
14803 if test $ac_cv_header_locale_h = yes; then
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14805$as_echo_n "checking for LC_MESSAGES... " >&6; }
14806if ${am_cv_val_LC_MESSAGES+:} false; then :
14807 $as_echo_n "(cached) " >&6
14808else
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810/* end confdefs.h. */
14811#include <locale.h>
14812int
14813main ()
14814{
14815return LC_MESSAGES
14816 ;
14817 return 0;
14818}
14819_ACEOF
14820if ac_fn_c_try_link "$LINENO"; then :
14821 am_cv_val_LC_MESSAGES=yes
14822else
14823 am_cv_val_LC_MESSAGES=no
14824fi
14825rm -f core conftest.err conftest.$ac_objext \
14826 conftest$ac_exeext conftest.$ac_ext
14827fi
14828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14829$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14830 if test $am_cv_val_LC_MESSAGES = yes; then
14831
14832$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14833
14834 fi
14835 fi
14836 USE_NLS=yes
14837
14838
14839 gt_cv_have_gettext=no
14840
14841 CATOBJEXT=NONE
14842 XGETTEXT=:
14843 INTLLIBS=
14844
14845 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
14846if test "x$ac_cv_header_libintl_h" = xyes; then :
14847 gt_cv_func_dgettext_libintl="no"
14848 libintl_extra_libs=""
14849
14850 #
14851 # First check in libc
14852 #
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
14854$as_echo_n "checking for ngettext in libc... " >&6; }
14855if ${gt_cv_func_ngettext_libc+:} false; then :
14856 $as_echo_n "(cached) " >&6
14857else
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859/* end confdefs.h. */
14860
14861#include <libintl.h>
14862
14863int
14864main ()
14865{
14866return !ngettext ("","", 1)
14867 ;
14868 return 0;
14869}
14870_ACEOF
14871if ac_fn_c_try_link "$LINENO"; then :
14872 gt_cv_func_ngettext_libc=yes
14873else
14874 gt_cv_func_ngettext_libc=no
14875fi
14876rm -f core conftest.err conftest.$ac_objext \
14877 conftest$ac_exeext conftest.$ac_ext
14878
14879fi
14880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
14881$as_echo "$gt_cv_func_ngettext_libc" >&6; }
14882
14883 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
14885$as_echo_n "checking for dgettext in libc... " >&6; }
14886if ${gt_cv_func_dgettext_libc+:} false; then :
14887 $as_echo_n "(cached) " >&6
14888else
14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890/* end confdefs.h. */
14891
14892#include <libintl.h>
14893
14894int
14895main ()
14896{
14897return !dgettext ("","")
14898 ;
14899 return 0;
14900}
14901_ACEOF
14902if ac_fn_c_try_link "$LINENO"; then :
14903 gt_cv_func_dgettext_libc=yes
14904else
14905 gt_cv_func_dgettext_libc=no
14906fi
14907rm -f core conftest.err conftest.$ac_objext \
14908 conftest$ac_exeext conftest.$ac_ext
14909
14910fi
14911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
14912$as_echo "$gt_cv_func_dgettext_libc" >&6; }
14913 fi
14914
14915 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14916 for ac_func in bind_textdomain_codeset
14917do :
14918 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
14919if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
14920 cat >>confdefs.h <<_ACEOF
14921#define HAVE_BIND_TEXTDOMAIN_CODESET 1
14922_ACEOF
14923
14924fi
14925done
14926
14927 fi
14928
14929 #
14930 # If we don't have everything we want, check in libintl
14931 #
14932 if test "$gt_cv_func_dgettext_libc" != "yes" \
14933 || test "$gt_cv_func_ngettext_libc" != "yes" \
14934 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
14935
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
14937$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
14938if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
14939 $as_echo_n "(cached) " >&6
14940else
14941 ac_check_lib_save_LIBS=$LIBS
14942LIBS="-lintl $LIBS"
14943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944/* end confdefs.h. */
14945
14946/* Override any GCC internal prototype to avoid an error.
14947 Use char because int might match the return type of a GCC
14948 builtin and then its argument prototype would still apply. */
14949#ifdef __cplusplus
14950extern "C"
14951#endif
14952char bindtextdomain ();
14953int
14954main ()
14955{
14956return bindtextdomain ();
14957 ;
14958 return 0;
14959}
14960_ACEOF
14961if ac_fn_c_try_link "$LINENO"; then :
14962 ac_cv_lib_intl_bindtextdomain=yes
14963else
14964 ac_cv_lib_intl_bindtextdomain=no
14965fi
14966rm -f core conftest.err conftest.$ac_objext \
14967 conftest$ac_exeext conftest.$ac_ext
14968LIBS=$ac_check_lib_save_LIBS
14969fi
14970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
14971$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
14972if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
14974$as_echo_n "checking for ngettext in -lintl... " >&6; }
14975if ${ac_cv_lib_intl_ngettext+:} false; then :
14976 $as_echo_n "(cached) " >&6
14977else
14978 ac_check_lib_save_LIBS=$LIBS
14979LIBS="-lintl $LIBS"
14980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981/* end confdefs.h. */
14982
14983/* Override any GCC internal prototype to avoid an error.
14984 Use char because int might match the return type of a GCC
14985 builtin and then its argument prototype would still apply. */
14986#ifdef __cplusplus
14987extern "C"
14988#endif
14989char ngettext ();
14990int
14991main ()
14992{
14993return ngettext ();
14994 ;
14995 return 0;
14996}
14997_ACEOF
14998if ac_fn_c_try_link "$LINENO"; then :
14999 ac_cv_lib_intl_ngettext=yes
15000else
15001 ac_cv_lib_intl_ngettext=no
15002fi
15003rm -f core conftest.err conftest.$ac_objext \
15004 conftest$ac_exeext conftest.$ac_ext
15005LIBS=$ac_check_lib_save_LIBS
15006fi
15007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
15008$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
15009if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
15011$as_echo_n "checking for dgettext in -lintl... " >&6; }
15012if ${ac_cv_lib_intl_dgettext+:} false; then :
15013 $as_echo_n "(cached) " >&6
15014else
15015 ac_check_lib_save_LIBS=$LIBS
15016LIBS="-lintl $LIBS"
15017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15018/* end confdefs.h. */
15019
15020/* Override any GCC internal prototype to avoid an error.
15021 Use char because int might match the return type of a GCC
15022 builtin and then its argument prototype would still apply. */
15023#ifdef __cplusplus
15024extern "C"
15025#endif
15026char dgettext ();
15027int
15028main ()
15029{
15030return dgettext ();
15031 ;
15032 return 0;
15033}
15034_ACEOF
15035if ac_fn_c_try_link "$LINENO"; then :
15036 ac_cv_lib_intl_dgettext=yes
15037else
15038 ac_cv_lib_intl_dgettext=no
15039fi
15040rm -f core conftest.err conftest.$ac_objext \
15041 conftest$ac_exeext conftest.$ac_ext
15042LIBS=$ac_check_lib_save_LIBS
15043fi
15044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
15045$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
15046if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
15047 gt_cv_func_dgettext_libintl=yes
15048fi
15049
15050fi
15051
15052fi
15053
15054
15055 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
15057$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15059$as_echo "" >&6; }
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
15061$as_echo_n "checking for ngettext in -lintl... " >&6; }
15062if ${ac_cv_lib_intl_ngettext+:} false; then :
15063 $as_echo_n "(cached) " >&6
15064else
15065 ac_check_lib_save_LIBS=$LIBS
15066LIBS="-lintl -liconv $LIBS"
15067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068/* end confdefs.h. */
15069
15070/* Override any GCC internal prototype to avoid an error.
15071 Use char because int might match the return type of a GCC
15072 builtin and then its argument prototype would still apply. */
15073#ifdef __cplusplus
15074extern "C"
15075#endif
15076char ngettext ();
15077int
15078main ()
15079{
15080return ngettext ();
15081 ;
15082 return 0;
15083}
15084_ACEOF
15085if ac_fn_c_try_link "$LINENO"; then :
15086 ac_cv_lib_intl_ngettext=yes
15087else
15088 ac_cv_lib_intl_ngettext=no
15089fi
15090rm -f core conftest.err conftest.$ac_objext \
15091 conftest$ac_exeext conftest.$ac_ext
15092LIBS=$ac_check_lib_save_LIBS
15093fi
15094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
15095$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
15096if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
15098$as_echo_n "checking for dcgettext in -lintl... " >&6; }
15099if ${ac_cv_lib_intl_dcgettext+:} false; then :
15100 $as_echo_n "(cached) " >&6
15101else
15102 ac_check_lib_save_LIBS=$LIBS
15103LIBS="-lintl -liconv $LIBS"
15104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105/* end confdefs.h. */
15106
15107/* Override any GCC internal prototype to avoid an error.
15108 Use char because int might match the return type of a GCC
15109 builtin and then its argument prototype would still apply. */
15110#ifdef __cplusplus
15111extern "C"
15112#endif
15113char dcgettext ();
15114int
15115main ()
15116{
15117return dcgettext ();
15118 ;
15119 return 0;
15120}
15121_ACEOF
15122if ac_fn_c_try_link "$LINENO"; then :
15123 ac_cv_lib_intl_dcgettext=yes
15124else
15125 ac_cv_lib_intl_dcgettext=no
15126fi
15127rm -f core conftest.err conftest.$ac_objext \
15128 conftest$ac_exeext conftest.$ac_ext
15129LIBS=$ac_check_lib_save_LIBS
15130fi
15131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
15132$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
15133if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
15134 gt_cv_func_dgettext_libintl=yes
15135 libintl_extra_libs=-liconv
15136else
15137 :
15138fi
15139
15140else
15141 :
15142fi
15143
15144 fi
15145
15146 #
15147 # If we found libintl, then check in it for bind_textdomain_codeset();
15148 # we'll prefer libc if neither have bind_textdomain_codeset(),
15149 # and both have dgettext and ngettext
15150 #
15151 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
15152 glib_save_LIBS="$LIBS"
15153 LIBS="$LIBS -lintl $libintl_extra_libs"
15154 unset ac_cv_func_bind_textdomain_codeset
15155 for ac_func in bind_textdomain_codeset
15156do :
15157 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
15158if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
15159 cat >>confdefs.h <<_ACEOF
15160#define HAVE_BIND_TEXTDOMAIN_CODESET 1
15161_ACEOF
15162
15163fi
15164done
15165
15166 LIBS="$glib_save_LIBS"
15167
15168 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
15169 gt_cv_func_dgettext_libc=no
15170 else
15171 if test "$gt_cv_func_dgettext_libc" = "yes" \
15172 && test "$gt_cv_func_ngettext_libc" = "yes"; then
15173 gt_cv_func_dgettext_libintl=no
15174 fi
15175 fi
15176 fi
15177 fi
15178
15179 if test "$gt_cv_func_dgettext_libc" = "yes" \
15180 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
15181 gt_cv_have_gettext=yes
15182 fi
15183
15184 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
15185 INTLLIBS="-lintl $libintl_extra_libs"
15186 fi
15187
15188 if test "$gt_cv_have_gettext" = "yes"; then
15189
15190$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15191
15192 # Extract the first word of "msgfmt", so it can be a program name with args.
15193set dummy msgfmt; ac_word=$2
15194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15195$as_echo_n "checking for $ac_word... " >&6; }
15196if ${ac_cv_path_MSGFMT+:} false; then :
15197 $as_echo_n "(cached) " >&6
15198else
15199 case "$MSGFMT" in
15200 /*)
15201 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15202 ;;
15203 *)
15204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15205 for ac_dir in $PATH; do
15206 test -z "$ac_dir" && ac_dir=.
15207 if test -f $ac_dir/$ac_word; then
15208 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
15209 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15210 break
15211 fi
15212 fi
15213 done
15214 IFS="$ac_save_ifs"
15215 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
15216 ;;
15217esac
15218fi
15219MSGFMT="$ac_cv_path_MSGFMT"
15220if test "$MSGFMT" != "no"; then
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15222$as_echo "$MSGFMT" >&6; }
15223else
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15225$as_echo "no" >&6; }
15226fi
15227 if test "$MSGFMT" != "no"; then
15228 glib_save_LIBS="$LIBS"
15229 LIBS="$LIBS $INTLLIBS"
15230 for ac_func in dcgettext
15231do :
15232 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
15233if test "x$ac_cv_func_dcgettext" = xyes; then :
15234 cat >>confdefs.h <<_ACEOF
15235#define HAVE_DCGETTEXT 1
15236_ACEOF
15237
15238fi
15239done
15240
15241 MSGFMT_OPTS=
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
15243$as_echo_n "checking if msgfmt accepts -c... " >&6; }
15244 cat >conftest.foo <<_ACEOF
15245
15246msgid ""
15247msgstr ""
15248"Content-Type: text/plain; charset=UTF-8\n"
15249"Project-Id-Version: test 1.0\n"
15250"PO-Revision-Date: 2007-02-15 12:01+0100\n"
15251"Last-Translator: test <foo@bar.xx>\n"
15252"Language-Team: C <LL@li.org>\n"
15253"MIME-Version: 1.0\n"
15254"Content-Transfer-Encoding: 8bit\n"
15255
15256_ACEOF
15257if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
15258 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
15259 ac_status=$?
15260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15261 test $ac_status = 0; }; then
15262 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15263$as_echo "yes" >&6; }
15264else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15265$as_echo "no" >&6; }
15266echo "$as_me: failed input was:" >&5
15267sed 's/^/| /' conftest.foo >&5
15268fi
15269
15270 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15271set dummy gmsgfmt; ac_word=$2
15272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15273$as_echo_n "checking for $ac_word... " >&6; }
15274if ${ac_cv_path_GMSGFMT+:} false; then :
15275 $as_echo_n "(cached) " >&6
15276else
15277 case $GMSGFMT in
15278 [\\/]* | ?:[\\/]*)
15279 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15280 ;;
15281 *)
15282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15283for as_dir in $PATH
15284do
15285 IFS=$as_save_IFS
15286 test -z "$as_dir" && as_dir=.
15287 for ac_exec_ext in '' $ac_executable_extensions; do
15288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15289 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15291 break 2
15292 fi
15293done
15294 done
15295IFS=$as_save_IFS
15296
15297 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15298 ;;
15299esac
15300fi
15301GMSGFMT=$ac_cv_path_GMSGFMT
15302if test -n "$GMSGFMT"; then
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15304$as_echo "$GMSGFMT" >&6; }
15305else
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15307$as_echo "no" >&6; }
15308fi
15309
15310
15311 # Extract the first word of "xgettext", so it can be a program name with args.
15312set dummy xgettext; ac_word=$2
15313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15314$as_echo_n "checking for $ac_word... " >&6; }
15315if ${ac_cv_path_XGETTEXT+:} false; then :
15316 $as_echo_n "(cached) " >&6
15317else
15318 case "$XGETTEXT" in
15319 /*)
15320 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15321 ;;
15322 *)
15323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15324 for ac_dir in $PATH; do
15325 test -z "$ac_dir" && ac_dir=.
15326 if test -f $ac_dir/$ac_word; then
15327 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
15328 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15329 break
15330 fi
15331 fi
15332 done
15333 IFS="$ac_save_ifs"
15334 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15335 ;;
15336esac
15337fi
15338XGETTEXT="$ac_cv_path_XGETTEXT"
15339if test "$XGETTEXT" != ":"; then
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15341$as_echo "$XGETTEXT" >&6; }
15342else
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15344$as_echo "no" >&6; }
15345fi
15346
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348/* end confdefs.h. */
15349
15350int
15351main ()
15352{
15353extern int _nl_msg_cat_cntr;
15354 return _nl_msg_cat_cntr
15355 ;
15356 return 0;
15357}
15358_ACEOF
15359if ac_fn_c_try_link "$LINENO"; then :
15360 CATOBJEXT=.gmo
15361 DATADIRNAME=share
15362else
15363 case $host in
15364 *-*-solaris*)
15365 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
15366if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
15367 CATOBJEXT=.gmo
15368 DATADIRNAME=share
15369else
15370 CATOBJEXT=.mo
15371 DATADIRNAME=lib
15372fi
15373
15374 ;;
15375 *-*-openbsd*)
15376 CATOBJEXT=.mo
15377 DATADIRNAME=share
15378 ;;
15379 *)
15380 CATOBJEXT=.mo
15381 DATADIRNAME=lib
15382 ;;
15383 esac
15384fi
15385rm -f core conftest.err conftest.$ac_objext \
15386 conftest$ac_exeext conftest.$ac_ext
15387 LIBS="$glib_save_LIBS"
15388 INSTOBJEXT=.mo
15389 else
15390 gt_cv_have_gettext=no
15391 fi
15392 fi
15393
15394fi
15395
15396
15397
15398 if test "$gt_cv_have_gettext" = "yes" ; then
15399
15400$as_echo "#define ENABLE_NLS 1" >>confdefs.h
15401
15402 fi
15403
15404 if test "$XGETTEXT" != ":"; then
15405 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
15406 : ;
15407 else
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15409$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15410 XGETTEXT=":"
15411 fi
15412 fi
15413
15414 # We need to process the po/ directory.
15415 POSUB=po
15416
15417 ac_config_commands="$ac_config_commands default-1"
15418
15419
15420 for lang in $ALL_LINGUAS; do
15421 GMOFILES="$GMOFILES $lang.gmo"
15422 POFILES="$POFILES $lang.po"
15423 done
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437 if test "$gt_cv_have_gettext" = "yes"; then
15438 if test "x$ALL_LINGUAS" = "x"; then
15439 LINGUAS=
15440 else
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15442$as_echo_n "checking for catalogs to be installed... " >&6; }
15443 NEW_LINGUAS=
15444 for presentlang in $ALL_LINGUAS; do
15445 useit=no
15446 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
15447 desiredlanguages="$LINGUAS"
15448 else
15449 desiredlanguages="$ALL_LINGUAS"
15450 fi
15451 for desiredlang in $desiredlanguages; do
15452 # Use the presentlang catalog if desiredlang is
15453 # a. equal to presentlang, or
15454 # b. a variant of presentlang (because in this case,
15455 # presentlang can be used as a fallback for messages
15456 # which are not translated in the desiredlang catalog).
15457 case "$desiredlang" in
15458 "$presentlang"*) useit=yes;;
15459 esac
15460 done
15461 if test $useit = yes; then
15462 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15463 fi
15464 done
15465 LINGUAS=$NEW_LINGUAS
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15467$as_echo "$LINGUAS" >&6; }
15468 fi
15469
15470 if test -n "$LINGUAS"; then
15471 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15472 fi
15473 fi
15474
15475 MKINSTALLDIRS=
15476 if test -n "$ac_aux_dir"; then
15477 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15478 fi
15479 if test -z "$MKINSTALLDIRS"; then
15480 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15481 fi
15482
15483
15484 test -d po || mkdir po
15485 if test "x$srcdir" != "x."; then
15486 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
15487 posrcprefix="$srcdir/"
15488 else
15489 posrcprefix="../$srcdir/"
15490 fi
15491 else
15492 posrcprefix="../"
15493 fi
15494 rm -f po/POTFILES
15495 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
15496 < $srcdir/po/POTFILES.in > po/POTFILES
15497
15498
15499if test "x$DATADIRNAME" != "x"; then
15500 localedir='${prefix}/${DATADIRNAME}/locale'
15501else
15502 localedir='${datadir}/locale'
15503fi
15504
15505# Check whether --with-localedir was given.
15506if test "${with_localedir+set}" = set; then :
15507 withval=$with_localedir; localedir="$withval"
15508fi
15509
15510
15511
15512manualdir='${datadir}/${PACKAGE}/manual'
15513
15514# Check whether --with-manualdir was given.
15515if test "${with_manualdir+set}" = set; then :
15516 withval=$with_manualdir; manualdir="$withval"
15517fi
15518
15519
15520
15521faqdir='${datadir}/${PACKAGE}/faq'
15522
15523# Check whether --with-faqdir was given.
15524if test "${with_faqdir+set}" = set; then :
15525 withval=$with_faqdir; faqdir="$withval"
15526fi
15527
15528
15529
15530plugindir='${exec_prefix}/lib/${PACKAGE}/plugins'
15531
15532# Check whether --with-plugindir was given.
15533if test "${with_plugindir+set}" = set; then :
15534 withval=$with_plugindir; plugindir="$withval"
15535fi
15536
15537
15538
15539themedir='${datadir}/${PACKAGE}/icons'
15540
15541# Check whether --with-themedir was given.
15542if test "${with_themedir+set}" = set; then :
15543 withval=$with_themedir; themedir="$withval"
15544fi
15545
15546
15547
15548# Check whether --enable-gpgme was given.
15549if test "${enable_gpgme+set}" = set; then :
15550 enableval=$enable_gpgme; ac_cv_enable_gpgme=$enableval
15551else
15552 ac_cv_enable_gpgme=yes
15553fi
15554
15555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GPGME" >&5
15556$as_echo_n "checking whether to use GPGME... " >&6; }
15557if test $ac_cv_enable_gpgme = yes; then
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15559$as_echo "yes" >&6; }
15560
15561# Check whether --with-gpgme-prefix was given.
15562if test "${with_gpgme_prefix+set}" = set; then :
15563 withval=$with_gpgme_prefix; gpgme_config_prefix="$withval"
15564else
15565 gpgme_config_prefix=""
15566fi
15567
15568 if test "x$gpgme_config_prefix" != x ; then
15569 GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
15570 fi
15571 # Extract the first word of "gpgme-config", so it can be a program name with args.
15572set dummy gpgme-config; ac_word=$2
15573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15574$as_echo_n "checking for $ac_word... " >&6; }
15575if ${ac_cv_path_GPGME_CONFIG+:} false; then :
15576 $as_echo_n "(cached) " >&6
15577else
15578 case $GPGME_CONFIG in
15579 [\\/]* | ?:[\\/]*)
15580 ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
15581 ;;
15582 *)
15583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15584for as_dir in $PATH
15585do
15586 IFS=$as_save_IFS
15587 test -z "$as_dir" && as_dir=.
15588 for ac_exec_ext in '' $ac_executable_extensions; do
15589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15590 ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15592 break 2
15593 fi
15594done
15595 done
15596IFS=$as_save_IFS
15597
15598 test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
15599 ;;
15600esac
15601fi
15602GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG
15603if test -n "$GPGME_CONFIG"; then
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGME_CONFIG" >&5
15605$as_echo "$GPGME_CONFIG" >&6; }
15606else
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15608$as_echo "no" >&6; }
15609fi
15610
15611
15612
15613 if test "$GPGME_CONFIG" != "no" ; then
15614 gpgme_version=`$GPGME_CONFIG --version`
15615 fi
15616 gpgme_version_major=`echo $gpgme_version | \
15617 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
15618 gpgme_version_minor=`echo $gpgme_version | \
15619 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
15620 gpgme_version_micro=`echo $gpgme_version | \
15621 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
15622
15623 tmp=1.0.0
15624 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
15625 req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
15626 min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
15627 else
15628 req_gpgme_api=0
15629 min_gpgme_version="$tmp"
15630 fi
15631
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME - version >= $min_gpgme_version" >&5
15633$as_echo_n "checking for GPGME - version >= $min_gpgme_version... " >&6; }
15634 ok=no
15635 if test "$GPGME_CONFIG" != "no" ; then
15636 req_major=`echo $min_gpgme_version | \
15637 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
15638 req_minor=`echo $min_gpgme_version | \
15639 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
15640 req_micro=`echo $min_gpgme_version | \
15641 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
15642 if test "$gpgme_version_major" -gt "$req_major"; then
15643 ok=yes
15644 else
15645 if test "$gpgme_version_major" -eq "$req_major"; then
15646 if test "$gpgme_version_minor" -gt "$req_minor"; then
15647 ok=yes
15648 else
15649 if test "$gpgme_version_minor" -eq "$req_minor"; then
15650 if test "$gpgme_version_micro" -ge "$req_micro"; then
15651 ok=yes
15652 fi
15653 fi
15654 fi
15655 fi
15656 fi
15657 fi
15658 if test $ok = yes; then
15659 # If we have a recent GPGME, we should also check that the
15660 # API is compatible.
15661 if test "$req_gpgme_api" -gt 0 ; then
15662 tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
15663 if test "$tmp" -gt 0 ; then
15664 if test "$req_gpgme_api" -ne "$tmp" ; then
15665 ok=no
15666 fi
15667 fi
15668 fi
15669 fi
15670 if test $ok = yes; then
15671 GPGME_CFLAGS=`$GPGME_CONFIG --cflags`
15672 GPGME_LIBS=`$GPGME_CONFIG --libs`
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15674$as_echo "yes" >&6; }
15675
15676$as_echo "#define USE_GPGME 1" >>confdefs.h
15677
15678 else
15679 GPGME_CFLAGS=""
15680 GPGME_LIBS=""
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15682$as_echo "no" >&6; }
15683 use_gpgme=no
15684 ac_cv_enable_gpgme=no
15685 fi
15686
15687
15688
15689 if test $ac_cv_enable_gpgme = yes; then
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpgme_io_writen in -lgpgme" >&5
15691$as_echo_n "checking for gpgme_io_writen in -lgpgme... " >&6; }
15692if ${ac_cv_lib_gpgme_gpgme_io_writen+:} false; then :
15693 $as_echo_n "(cached) " >&6
15694else
15695 ac_check_lib_save_LIBS=$LIBS
15696LIBS="-lgpgme $LIBS"
15697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15698/* end confdefs.h. */
15699
15700/* Override any GCC internal prototype to avoid an error.
15701 Use char because int might match the return type of a GCC
15702 builtin and then its argument prototype would still apply. */
15703#ifdef __cplusplus
15704extern "C"
15705#endif
15706char gpgme_io_writen ();
15707int
15708main ()
15709{
15710return gpgme_io_writen ();
15711 ;
15712 return 0;
15713}
15714_ACEOF
15715if ac_fn_c_try_link "$LINENO"; then :
15716 ac_cv_lib_gpgme_gpgme_io_writen=yes
15717else
15718 ac_cv_lib_gpgme_gpgme_io_writen=no
15719fi
15720rm -f core conftest.err conftest.$ac_objext \
15721 conftest$ac_exeext conftest.$ac_ext
15722LIBS=$ac_check_lib_save_LIBS
15723fi
15724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpgme_gpgme_io_writen" >&5
15725$as_echo "$ac_cv_lib_gpgme_gpgme_io_writen" >&6; }
15726if test "x$ac_cv_lib_gpgme_gpgme_io_writen" = xyes; then :
15727
15728$as_echo "#define HAVE_GPGME_IO_WRITEN 1" >>confdefs.h
15729
15730fi
15731
15732 fi
15733else
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15735$as_echo "no" >&6; }
15736fi
15737
15738# Check whether --enable-jpilot was given.
15739if test "${enable_jpilot+set}" = set; then :
15740 enableval=$enable_jpilot; ac_cv_enable_jpilot=$enableval
15741else
15742 ac_cv_enable_jpilot=no
15743fi
15744
15745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use JPilot" >&5
15746$as_echo_n "checking whether to use JPilot... " >&6; }
15747if test "$ac_cv_enable_jpilot" = yes; then
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15749$as_echo "yes" >&6; }
15750 for ac_header in pi-args.h pi-appinfo.h pi-address.h
15751do :
15752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15753ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15754if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15755 cat >>confdefs.h <<_ACEOF
15756#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15757_ACEOF
15758
15759$as_echo "#define USE_JPILOT 1" >>confdefs.h
15760
15761else
15762 ac_cv_enable_jpilot=no
15763fi
15764
15765done
15766
15767 if test "$ac_cv_enable_jpilot" = no; then
15768 for ac_header in libpisock/pi-args.h libpisock/pi-appinfo.h libpisock/pi-address.h
15769do :
15770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15771ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15772if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15773 cat >>confdefs.h <<_ACEOF
15774#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15775_ACEOF
15776 ac_cv_enable_jpilot=yes
15777
15778$as_echo "#define USE_JPILOT 1" >>confdefs.h
15779
15780fi
15781
15782done
15783
15784 fi
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether jpilot is available" >&5
15786$as_echo_n "checking whether jpilot is available... " >&6; }
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_jpilot" >&5
15788$as_echo "$ac_cv_enable_jpilot" >&6; }
15789
15790 if test "$ac_cv_enable_jpilot" = yes; then
15791 LIBS="$LIBS -lpisock"
15792 fi
15793else
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15795$as_echo "no" >&6; }
15796fi
15797
15798# Check whether --enable-ldap was given.
15799if test "${enable_ldap+set}" = set; then :
15800 enableval=$enable_ldap; ac_cv_enable_ldap=$enableval
15801else
15802 ac_cv_enable_ldap=no
15803fi
15804
15805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use LDAP" >&5
15806$as_echo_n "checking whether to use LDAP... " >&6; }
15807if test "$ac_cv_enable_ldap" = yes; then
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15809$as_echo "yes" >&6; }
15810
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
15812$as_echo_n "checking for res_query in -lresolv... " >&6; }
15813if ${ac_cv_lib_resolv_res_query+:} false; then :
15814 $as_echo_n "(cached) " >&6
15815else
15816 ac_check_lib_save_LIBS=$LIBS
15817LIBS="-lresolv $LIBS"
15818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819/* end confdefs.h. */
15820
15821/* Override any GCC internal prototype to avoid an error.
15822 Use char because int might match the return type of a GCC
15823 builtin and then its argument prototype would still apply. */
15824#ifdef __cplusplus
15825extern "C"
15826#endif
15827char res_query ();
15828int
15829main ()
15830{
15831return res_query ();
15832 ;
15833 return 0;
15834}
15835_ACEOF
15836if ac_fn_c_try_link "$LINENO"; then :
15837 ac_cv_lib_resolv_res_query=yes
15838else
15839 ac_cv_lib_resolv_res_query=no
15840fi
15841rm -f core conftest.err conftest.$ac_objext \
15842 conftest$ac_exeext conftest.$ac_ext
15843LIBS=$ac_check_lib_save_LIBS
15844fi
15845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
15846$as_echo "$ac_cv_lib_resolv_res_query" >&6; }
15847if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
15848 LDAP_LIBS="$LDAP_LIBS -lresolv"
15849fi
15850
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
15852$as_echo_n "checking for bind in -lsocket... " >&6; }
15853if ${ac_cv_lib_socket_bind+:} false; then :
15854 $as_echo_n "(cached) " >&6
15855else
15856 ac_check_lib_save_LIBS=$LIBS
15857LIBS="-lsocket $LIBS"
15858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859/* end confdefs.h. */
15860
15861/* Override any GCC internal prototype to avoid an error.
15862 Use char because int might match the return type of a GCC
15863 builtin and then its argument prototype would still apply. */
15864#ifdef __cplusplus
15865extern "C"
15866#endif
15867char bind ();
15868int
15869main ()
15870{
15871return bind ();
15872 ;
15873 return 0;
15874}
15875_ACEOF
15876if ac_fn_c_try_link "$LINENO"; then :
15877 ac_cv_lib_socket_bind=yes
15878else
15879 ac_cv_lib_socket_bind=no
15880fi
15881rm -f core conftest.err conftest.$ac_objext \
15882 conftest$ac_exeext conftest.$ac_ext
15883LIBS=$ac_check_lib_save_LIBS
15884fi
15885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
15886$as_echo "$ac_cv_lib_socket_bind" >&6; }
15887if test "x$ac_cv_lib_socket_bind" = xyes; then :
15888 LDAP_LIBS="$LDAP_LIBS -lsocket"
15889fi
15890
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5
15892$as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; }
15893if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then :
15894 $as_echo_n "(cached) " >&6
15895else
15896 ac_check_lib_save_LIBS=$LIBS
15897LIBS="-lnsl $LIBS"
15898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899/* end confdefs.h. */
15900
15901/* Override any GCC internal prototype to avoid an error.
15902 Use char because int might match the return type of a GCC
15903 builtin and then its argument prototype would still apply. */
15904#ifdef __cplusplus
15905extern "C"
15906#endif
15907char gethostbyaddr ();
15908int
15909main ()
15910{
15911return gethostbyaddr ();
15912 ;
15913 return 0;
15914}
15915_ACEOF
15916if ac_fn_c_try_link "$LINENO"; then :
15917 ac_cv_lib_nsl_gethostbyaddr=yes
15918else
15919 ac_cv_lib_nsl_gethostbyaddr=no
15920fi
15921rm -f core conftest.err conftest.$ac_objext \
15922 conftest$ac_exeext conftest.$ac_ext
15923LIBS=$ac_check_lib_save_LIBS
15924fi
15925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
15926$as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; }
15927if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then :
15928 LDAP_LIBS="$LDAP_LIBS -lnsl"
15929fi
15930
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_get_tag in -llber" >&5
15932$as_echo_n "checking for ber_get_tag in -llber... " >&6; }
15933if ${ac_cv_lib_lber_ber_get_tag+:} false; then :
15934 $as_echo_n "(cached) " >&6
15935else
15936 ac_check_lib_save_LIBS=$LIBS
15937LIBS="-llber $LDAP_LIBS $LIBS"
15938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939/* end confdefs.h. */
15940
15941/* Override any GCC internal prototype to avoid an error.
15942 Use char because int might match the return type of a GCC
15943 builtin and then its argument prototype would still apply. */
15944#ifdef __cplusplus
15945extern "C"
15946#endif
15947char ber_get_tag ();
15948int
15949main ()
15950{
15951return ber_get_tag ();
15952 ;
15953 return 0;
15954}
15955_ACEOF
15956if ac_fn_c_try_link "$LINENO"; then :
15957 ac_cv_lib_lber_ber_get_tag=yes
15958else
15959 ac_cv_lib_lber_ber_get_tag=no
15960fi
15961rm -f core conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15963LIBS=$ac_check_lib_save_LIBS
15964fi
15965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_get_tag" >&5
15966$as_echo "$ac_cv_lib_lber_ber_get_tag" >&6; }
15967if test "x$ac_cv_lib_lber_ber_get_tag" = xyes; then :
15968 LDAP_LIBS="$LDAP_LIBS -llber"
15969fi
15970
15971
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15973$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15974if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15975 $as_echo_n "(cached) " >&6
15976else
15977 ac_check_lib_save_LIBS=$LIBS
15978LIBS="-lpthread $LIBS"
15979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980/* end confdefs.h. */
15981
15982/* Override any GCC internal prototype to avoid an error.
15983 Use char because int might match the return type of a GCC
15984 builtin and then its argument prototype would still apply. */
15985#ifdef __cplusplus
15986extern "C"
15987#endif
15988char pthread_create ();
15989int
15990main ()
15991{
15992return pthread_create ();
15993 ;
15994 return 0;
15995}
15996_ACEOF
15997if ac_fn_c_try_link "$LINENO"; then :
15998 ac_cv_lib_pthread_pthread_create=yes
15999else
16000 ac_cv_lib_pthread_pthread_create=no
16001fi
16002rm -f core conftest.err conftest.$ac_objext \
16003 conftest$ac_exeext conftest.$ac_ext
16004LIBS=$ac_check_lib_save_LIBS
16005fi
16006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16007$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16008if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16009 LDAP_LIBS="$LDAP_LIBS -lpthread"
16010fi
16011
16012
16013 for ac_header in ldap.h lber.h pthread.h
16014do :
16015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16016ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16017if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16018 cat >>confdefs.h <<_ACEOF
16019#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16020_ACEOF
16021 ac_cv_enable_ldap=yes
16022else
16023 ac_cv_enable_ldap=no
16024fi
16025
16026done
16027
16028
16029 if test "$ac_cv_enable_ldap" = yes; then
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5
16031$as_echo_n "checking for ldap_open in -lldap... " >&6; }
16032if ${ac_cv_lib_ldap_ldap_open+:} false; then :
16033 $as_echo_n "(cached) " >&6
16034else
16035 ac_check_lib_save_LIBS=$LIBS
16036LIBS="-lldap $LDAP_LIBS $LIBS"
16037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16038/* end confdefs.h. */
16039
16040/* Override any GCC internal prototype to avoid an error.
16041 Use char because int might match the return type of a GCC
16042 builtin and then its argument prototype would still apply. */
16043#ifdef __cplusplus
16044extern "C"
16045#endif
16046char ldap_open ();
16047int
16048main ()
16049{
16050return ldap_open ();
16051 ;
16052 return 0;
16053}
16054_ACEOF
16055if ac_fn_c_try_link "$LINENO"; then :
16056 ac_cv_lib_ldap_ldap_open=yes
16057else
16058 ac_cv_lib_ldap_ldap_open=no
16059fi
16060rm -f core conftest.err conftest.$ac_objext \
16061 conftest$ac_exeext conftest.$ac_ext
16062LIBS=$ac_check_lib_save_LIBS
16063fi
16064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5
16065$as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
16066if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then :
16067 ac_cv_enable_ldap=yes
16068else
16069 ac_cv_enable_ldap=no
16070fi
16071
16072 fi
16073
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldap library is available" >&5
16075$as_echo_n "checking whether ldap library is available... " >&6; }
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_ldap" >&5
16077$as_echo "$ac_cv_enable_ldap" >&6; }
16078
16079 if test "$ac_cv_enable_ldap" = yes; then
16080 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags gthread-2.0`"
16081 LDAP_LIBS="$LDAP_LIBS -lldap `$PKG_CONFIG --libs gthread-2.0`"
16082
16083$as_echo "#define USE_LDAP 1" >>confdefs.h
16084
16085
16086$as_echo "#define USE_THREADS 1" >>confdefs.h
16087
16088
16089 fi
16090else
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16092$as_echo "no" >&6; }
16093fi
16094
16095# Check whether --enable-ssl was given.
16096if test "${enable_ssl+set}" = set; then :
16097 enableval=$enable_ssl; ac_cv_enable_ssl=$enableval
16098else
16099 ac_cv_enable_ssl=yes
16100fi
16101
16102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenSSL" >&5
16103$as_echo_n "checking whether to use OpenSSL... " >&6; }
16104if test $ac_cv_enable_ssl = yes; then
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16106$as_echo "yes" >&6; }
16107
16108pkg_failed=no
16109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
16110$as_echo_n "checking for OPENSSL... " >&6; }
16111
16112if test -n "$OPENSSL_CFLAGS"; then
16113 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
16114 elif test -n "$PKG_CONFIG"; then
16115 if test -n "$PKG_CONFIG" && \
16116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
16117 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
16118 ac_status=$?
16119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16120 test $ac_status = 0; }; then
16121 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
16122 test "x$?" != "x0" && pkg_failed=yes
16123else
16124 pkg_failed=yes
16125fi
16126 else
16127 pkg_failed=untried
16128fi
16129if test -n "$OPENSSL_LIBS"; then
16130 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
16131 elif test -n "$PKG_CONFIG"; then
16132 if test -n "$PKG_CONFIG" && \
16133 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
16134 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
16135 ac_status=$?
16136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16137 test $ac_status = 0; }; then
16138 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
16139 test "x$?" != "x0" && pkg_failed=yes
16140else
16141 pkg_failed=yes
16142fi
16143 else
16144 pkg_failed=untried
16145fi
16146
16147
16148
16149if test $pkg_failed = yes; then
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151$as_echo "no" >&6; }
16152
16153if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16154 _pkg_short_errors_supported=yes
16155else
16156 _pkg_short_errors_supported=no
16157fi
16158 if test $_pkg_short_errors_supported = yes; then
16159 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
16160 else
16161 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
16162 fi
16163 # Put the nasty error message in config.log where it belongs
16164 echo "$OPENSSL_PKG_ERRORS" >&5
16165
16166 :
16167elif test $pkg_failed = untried; then
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16169$as_echo "no" >&6; }
16170 :
16171else
16172 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
16173 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16175$as_echo "yes" >&6; }
16176 :
16177fi
16178 if test "x$OPENSSL_LIBS" != "x"; then
16179 CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
16180 LIBS="$LIBS $OPENSSL_LIBS"
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl is available" >&5
16182$as_echo_n "checking if openssl is available... " >&6; }
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16184$as_echo "yes" >&6; }
16185
16186$as_echo "#define USE_SSL 1" >>confdefs.h
16187
16188 else
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl is available" >&5
16190$as_echo_n "checking if openssl is available... " >&6; }
16191 ac_save_LIBS="$LIBS"
16192 if test "$native_win32" = yes; then
16193 LIBS="$LIBS -lssl32 -leay32"
16194 else
16195 LIBS="$LIBS -lssl -lcrypto"
16196 fi
16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16198/* end confdefs.h. */
16199
16200#include <openssl/opensslv.h>
16201
16202int
16203main ()
16204{
16205 return OPENSSL_VERSION_NUMBER;
16206 ;
16207 return 0;
16208}
16209_ACEOF
16210if ac_fn_c_try_link "$LINENO"; then :
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16212$as_echo "yes" >&6; }
16213
16214$as_echo "#define USE_SSL 1" >>confdefs.h
16215
16216else
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16218$as_echo "no" >&6; }
16219 LIBS="$ac_save_LIBS"
16220 ac_cv_enable_ssl=no
16221fi
16222rm -f core conftest.err conftest.$ac_objext \
16223 conftest$ac_exeext conftest.$ac_ext
16224 fi
16225else
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16227$as_echo "no" >&6; }
16228fi
16229
16230# Check whether --enable-compface was given.
16231if test "${enable_compface+set}" = set; then :
16232 enableval=$enable_compface; ac_cv_enable_compface=$enableval
16233else
16234 ac_cv_enable_compface=yes
16235fi
16236
16237if test "$ac_cv_enable_compface" = yes; then
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompface in -lcompface" >&5
16239$as_echo_n "checking for uncompface in -lcompface... " >&6; }
16240if ${ac_cv_lib_compface_uncompface+:} false; then :
16241 $as_echo_n "(cached) " >&6
16242else
16243 ac_check_lib_save_LIBS=$LIBS
16244LIBS="-lcompface $LIBS"
16245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246/* end confdefs.h. */
16247
16248/* Override any GCC internal prototype to avoid an error.
16249 Use char because int might match the return type of a GCC
16250 builtin and then its argument prototype would still apply. */
16251#ifdef __cplusplus
16252extern "C"
16253#endif
16254char uncompface ();
16255int
16256main ()
16257{
16258return uncompface ();
16259 ;
16260 return 0;
16261}
16262_ACEOF
16263if ac_fn_c_try_link "$LINENO"; then :
16264 ac_cv_lib_compface_uncompface=yes
16265else
16266 ac_cv_lib_compface_uncompface=no
16267fi
16268rm -f core conftest.err conftest.$ac_objext \
16269 conftest$ac_exeext conftest.$ac_ext
16270LIBS=$ac_check_lib_save_LIBS
16271fi
16272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_compface_uncompface" >&5
16273$as_echo "$ac_cv_lib_compface_uncompface" >&6; }
16274if test "x$ac_cv_lib_compface_uncompface" = xyes; then :
16275 cat >>confdefs.h <<_ACEOF
16276#define HAVE_LIBCOMPFACE 1
16277_ACEOF
16278
16279 LIBS="-lcompface $LIBS"
16280
16281else
16282 ac_cv_enable_compface=no
16283fi
16284
16285fi
16286
16287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GtkSpell" >&5
16288$as_echo_n "checking whether to use GtkSpell... " >&6; }
16289# Check whether --enable-gtkspell was given.
16290if test "${enable_gtkspell+set}" = set; then :
16291 enableval=$enable_gtkspell; ac_cv_enable_gtkspell=$enableval
16292else
16293 ac_cv_enable_gtkspell=yes
16294fi
16295
16296if test "$ac_cv_enable_gtkspell" = yes; then
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16298$as_echo "yes" >&6; }
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GtkSpell is available" >&5
16300$as_echo_n "checking whether GtkSpell is available... " >&6; }
16301 if $PKG_CONFIG gtkspell-2.0 ; then
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16303$as_echo "yes" >&6; }
16304 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags gtkspell-2.0`"
16305 LIBS="$LIBS `$PKG_CONFIG --libs gtkspell-2.0`"
16306 if $PKG_CONFIG --atleast-version 2.0.13 gtkspell-2.0 ; then
16307
16308$as_echo "#define USE_ENCHANT 1" >>confdefs.h
16309
16310 LIBS="$LIBS `$PKG_CONFIG --libs enchant`"
16311
16312 if $PKG_CONFIG --atleast-version 1.4.2 enchant ; then
16313 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags dbus-glib-1`"
16314 LIBS="$LIBS `$PKG_CONFIG --libs dbus-glib-1`"
16315 fi
16316 elif $PKG_CONFIG --atleast-version 2.0.12 gtkspell-2.0 ; then
16317 LIBS="$LIBS -laspell"
16318 fi
16319
16320$as_echo "#define USE_GTKSPELL 1" >>confdefs.h
16321
16322 else
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16324$as_echo "no" >&6; }
16325 ac_cv_enable_gtkspell=no
16326 fi
16327else
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16329$as_echo "no" >&6; }
16330fi
16331
16332# Check whether --enable-oniguruma was given.
16333if test "${enable_oniguruma+set}" = set; then :
16334 enableval=$enable_oniguruma; ac_cv_enable_oniguruma=$enableval
16335else
16336 ac_cv_enable_oniguruma=no
16337fi
16338
16339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Oniguruma" >&5
16340$as_echo_n "checking whether to use Oniguruma... " >&6; }
16341if test "$ac_cv_enable_oniguruma" = yes; then
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16343$as_echo "yes" >&6; }
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Oniguruma is available" >&5
16345$as_echo_n "checking whether Oniguruma is available... " >&6; }
16346 ONIG_CONFIG=onig-config
16347 ONIG_VERSION=`$ONIG_CONFIG --version 2>/dev/null`
16348 if test "x$ONIG_VERSION" != "x"; then
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16350$as_echo "yes" >&6; }
16351 CFLAGS="$CFLAGS `$ONIG_CONFIG --cflags`"
16352 LIBS="$LIBS `$ONIG_CONFIG --libs`"
16353
16354$as_echo "#define USE_ONIGURUMA 1" >>confdefs.h
16355
16356 else
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16358$as_echo "no" >&6; }
16359 ac_cv_enable_oniguruma=no
16360 fi
16361else
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16363$as_echo "no" >&6; }
16364fi
16365
16366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5
16367$as_echo_n "checking for setlocale in -lxpg4... " >&6; }
16368if ${ac_cv_lib_xpg4_setlocale+:} false; then :
16369 $as_echo_n "(cached) " >&6
16370else
16371 ac_check_lib_save_LIBS=$LIBS
16372LIBS="-lxpg4 $LIBS"
16373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374/* end confdefs.h. */
16375
16376/* Override any GCC internal prototype to avoid an error.
16377 Use char because int might match the return type of a GCC
16378 builtin and then its argument prototype would still apply. */
16379#ifdef __cplusplus
16380extern "C"
16381#endif
16382char setlocale ();
16383int
16384main ()
16385{
16386return setlocale ();
16387 ;
16388 return 0;
16389}
16390_ACEOF
16391if ac_fn_c_try_link "$LINENO"; then :
16392 ac_cv_lib_xpg4_setlocale=yes
16393else
16394 ac_cv_lib_xpg4_setlocale=no
16395fi
16396rm -f core conftest.err conftest.$ac_objext \
16397 conftest$ac_exeext conftest.$ac_ext
16398LIBS=$ac_check_lib_save_LIBS
16399fi
16400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5
16401$as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
16402if test "x$ac_cv_lib_xpg4_setlocale" = xyes; then :
16403 cat >>confdefs.h <<_ACEOF
16404#define HAVE_LIBXPG4 1
16405_ACEOF
16406
16407 LIBS="-lxpg4 $LIBS"
16408
16409fi
16410
16411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init in -lresolv" >&5
16412$as_echo_n "checking for res_init in -lresolv... " >&6; }
16413if ${ac_cv_lib_resolv_res_init+:} false; then :
16414 $as_echo_n "(cached) " >&6
16415else
16416 ac_check_lib_save_LIBS=$LIBS
16417LIBS="-lresolv $LIBS"
16418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419/* end confdefs.h. */
16420
16421/* Override any GCC internal prototype to avoid an error.
16422 Use char because int might match the return type of a GCC
16423 builtin and then its argument prototype would still apply. */
16424#ifdef __cplusplus
16425extern "C"
16426#endif
16427char res_init ();
16428int
16429main ()
16430{
16431return res_init ();
16432 ;
16433 return 0;
16434}
16435_ACEOF
16436if ac_fn_c_try_link "$LINENO"; then :
16437 ac_cv_lib_resolv_res_init=yes
16438else
16439 ac_cv_lib_resolv_res_init=no
16440fi
16441rm -f core conftest.err conftest.$ac_objext \
16442 conftest$ac_exeext conftest.$ac_ext
16443LIBS=$ac_check_lib_save_LIBS
16444fi
16445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_init" >&5
16446$as_echo "$ac_cv_lib_resolv_res_init" >&6; }
16447if test "x$ac_cv_lib_resolv_res_init" = xyes; then :
16448 cat >>confdefs.h <<_ACEOF
16449#define HAVE_LIBRESOLV 1
16450_ACEOF
16451
16452 LIBS="-lresolv $LIBS"
16453
16454fi
16455
16456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
16457$as_echo_n "checking for bind in -lsocket... " >&6; }
16458if ${ac_cv_lib_socket_bind+:} false; then :
16459 $as_echo_n "(cached) " >&6
16460else
16461 ac_check_lib_save_LIBS=$LIBS
16462LIBS="-lsocket $LIBS"
16463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464/* end confdefs.h. */
16465
16466/* Override any GCC internal prototype to avoid an error.
16467 Use char because int might match the return type of a GCC
16468 builtin and then its argument prototype would still apply. */
16469#ifdef __cplusplus
16470extern "C"
16471#endif
16472char bind ();
16473int
16474main ()
16475{
16476return bind ();
16477 ;
16478 return 0;
16479}
16480_ACEOF
16481if ac_fn_c_try_link "$LINENO"; then :
16482 ac_cv_lib_socket_bind=yes
16483else
16484 ac_cv_lib_socket_bind=no
16485fi
16486rm -f core conftest.err conftest.$ac_objext \
16487 conftest$ac_exeext conftest.$ac_ext
16488LIBS=$ac_check_lib_save_LIBS
16489fi
16490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
16491$as_echo "$ac_cv_lib_socket_bind" >&6; }
16492if test "x$ac_cv_lib_socket_bind" = xyes; then :
16493 cat >>confdefs.h <<_ACEOF
16494#define HAVE_LIBSOCKET 1
16495_ACEOF
16496
16497 LIBS="-lsocket $LIBS"
16498
16499fi
16500
16501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16502$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16503if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
16504 $as_echo_n "(cached) " >&6
16505else
16506 ac_check_lib_save_LIBS=$LIBS
16507LIBS="-lnsl $LIBS"
16508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509/* end confdefs.h. */
16510
16511/* Override any GCC internal prototype to avoid an error.
16512 Use char because int might match the return type of a GCC
16513 builtin and then its argument prototype would still apply. */
16514#ifdef __cplusplus
16515extern "C"
16516#endif
16517char gethostbyname ();
16518int
16519main ()
16520{
16521return gethostbyname ();
16522 ;
16523 return 0;
16524}
16525_ACEOF
16526if ac_fn_c_try_link "$LINENO"; then :
16527 ac_cv_lib_nsl_gethostbyname=yes
16528else
16529 ac_cv_lib_nsl_gethostbyname=no
16530fi
16531rm -f core conftest.err conftest.$ac_objext \
16532 conftest$ac_exeext conftest.$ac_ext
16533LIBS=$ac_check_lib_save_LIBS
16534fi
16535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16536$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16537if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
16538 cat >>confdefs.h <<_ACEOF
16539#define HAVE_LIBNSL 1
16540_ACEOF
16541
16542 LIBS="-lnsl $LIBS"
16543
16544fi
16545
16546
16547# Check whether --enable-threads was given.
16548if test "${enable_threads+set}" = set; then :
16549 enableval=$enable_threads; use_threads=$enableval
16550else
16551 use_threads=yes
16552fi
16553
16554
16555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use threads" >&5
16556$as_echo_n "checking whether to use threads... " >&6; }
16557if test x"$use_threads" = xyes ; then
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16559$as_echo "yes" >&6; }
16560 if $PKG_CONFIG --exists gthread-2.0 ; then
16561 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags gthread-2.0`"
16562 LIBS="$LIBS `$PKG_CONFIG --libs gthread-2.0`"
16563
16564$as_echo "#define USE_THREADS 1" >>confdefs.h
16565
16566 else
16567 as_fn_error $? "Sylpheed requires GThread from GLib to enable threading." "$LINENO" 5
16568 fi
16569else
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16571$as_echo "no" >&6; }
16572fi
16573
16574# Check whether --enable-ipv6 was given.
16575if test "${enable_ipv6+set}" = set; then :
16576 enableval=$enable_ipv6; ac_cv_enable_ipv6=$enableval
16577else
16578 ac_cv_enable_ipv6=yes
16579fi
16580
16581
16582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use IPv6" >&5
16583$as_echo_n "checking whether to use IPv6... " >&6; }
16584if test x"$ac_cv_enable_ipv6" = xyes; then
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16586$as_echo "yes" >&6; }
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
16588$as_echo_n "checking for IPv6 support... " >&6; }
16589 if test "$native_win32" = yes; then
16590 if ${ac_cv_ipv6+:} false; then :
16591 $as_echo_n "(cached) " >&6
16592else
16593
16594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16595/* end confdefs.h. */
16596#define INET6
16597 #include <sys/types.h>
16598 #include <winsock2.h>
16599 #include <ws2tcpip.h>
16600int
16601main ()
16602{
16603int x = IPPROTO_IPV6; struct in6_addr a;
16604 ;
16605 return 0;
16606}
16607_ACEOF
16608if ac_fn_c_try_compile "$LINENO"; then :
16609 ac_cv_ipv6=yes
16610else
16611 ac_cv_ipv6=no
16612fi
16613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614
16615fi
16616
16617 else
16618 if ${ac_cv_ipv6+:} false; then :
16619 $as_echo_n "(cached) " >&6
16620else
16621
16622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623/* end confdefs.h. */
16624#define INET6
16625 #include <sys/types.h>
16626 #include <netinet/in.h>
16627int
16628main ()
16629{
16630int x = IPPROTO_IPV6; struct in6_addr a;
16631 ;
16632 return 0;
16633}
16634_ACEOF
16635if ac_fn_c_try_compile "$LINENO"; then :
16636 ac_cv_ipv6=yes
16637else
16638 ac_cv_ipv6=no
16639fi
16640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16641
16642fi
16643
16644 fi
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6" >&5
16646$as_echo "$ac_cv_ipv6" >&6; }
16647 if test $ac_cv_ipv6 = yes; then
16648
16649$as_echo "#define INET6 1" >>confdefs.h
16650
16651 else
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** IPv6 will not be supported ***" >&5
16653$as_echo "$as_me: WARNING: *** IPv6 will not be supported ***" >&2;}
16654 ac_cv_enable_ipv6=no
16655 fi
16656else
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16658$as_echo "no" >&6; }
16659fi
16660
16661# Check whether --enable-updatecheck was given.
16662if test "${enable_updatecheck+set}" = set; then :
16663 enableval=$enable_updatecheck; ac_cv_enable_updatecheck=$enableval
16664else
16665 ac_cv_enable_updatecheck=yes
16666fi
16667
16668if test x"$ac_cv_enable_updatecheck" = xyes ; then
16669
16670$as_echo "#define USE_UPDATE_CHECK 1" >>confdefs.h
16671
16672
16673 # Check whether --enable-updatecheckplugin was given.
16674if test "${enable_updatecheckplugin+set}" = set; then :
16675 enableval=$enable_updatecheckplugin; ac_cv_enable_updatecheckplugin=$enableval
16676else
16677 ac_cv_enable_updatecheckplugin=yes
16678fi
16679
16680 if test x"$ac_cv_enable_updatecheckplugin" = xyes ; then
16681
16682$as_echo "#define USE_UPDATE_CHECK_PLUGIN 1" >>confdefs.h
16683
16684 fi
16685fi
16686
16687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has d_type member" >&5
16688$as_echo_n "checking whether struct dirent has d_type member... " >&6; }
16689if ${ac_cv_dirent_d_type+:} false; then :
16690 $as_echo_n "(cached) " >&6
16691else
16692
16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694/* end confdefs.h. */
16695#include <dirent.h>
16696int
16697main ()
16698{
16699struct dirent d; d.d_type = DT_REG;
16700 ;
16701 return 0;
16702}
16703_ACEOF
16704if ac_fn_c_try_compile "$LINENO"; then :
16705 ac_cv_dirent_d_type=yes
16706else
16707 ac_cv_dirent_d_type=no
16708fi
16709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710
16711fi
16712
16713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dirent_d_type" >&5
16714$as_echo "$ac_cv_dirent_d_type" >&6; }
16715if test $ac_cv_dirent_d_type = yes; then
16716
16717$as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
16718
16719fi
16720
16721for ac_header in lockfile.h
16722do :
16723 ac_fn_c_check_header_mongrel "$LINENO" "lockfile.h" "ac_cv_header_lockfile_h" "$ac_includes_default"
16724if test "x$ac_cv_header_lockfile_h" = xyes; then :
16725 cat >>confdefs.h <<_ACEOF
16726#define HAVE_LOCKFILE_H 1
16727_ACEOF
16728
16729fi
16730
16731done
16732
16733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lockfile_create in -llockfile" >&5
16734$as_echo_n "checking for lockfile_create in -llockfile... " >&6; }
16735if ${ac_cv_lib_lockfile_lockfile_create+:} false; then :
16736 $as_echo_n "(cached) " >&6
16737else
16738 ac_check_lib_save_LIBS=$LIBS
16739LIBS="-llockfile $LIBS"
16740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741/* end confdefs.h. */
16742
16743/* Override any GCC internal prototype to avoid an error.
16744 Use char because int might match the return type of a GCC
16745 builtin and then its argument prototype would still apply. */
16746#ifdef __cplusplus
16747extern "C"
16748#endif
16749char lockfile_create ();
16750int
16751main ()
16752{
16753return lockfile_create ();
16754 ;
16755 return 0;
16756}
16757_ACEOF
16758if ac_fn_c_try_link "$LINENO"; then :
16759 ac_cv_lib_lockfile_lockfile_create=yes
16760else
16761 ac_cv_lib_lockfile_lockfile_create=no
16762fi
16763rm -f core conftest.err conftest.$ac_objext \
16764 conftest$ac_exeext conftest.$ac_ext
16765LIBS=$ac_check_lib_save_LIBS
16766fi
16767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_lockfile_create" >&5
16768$as_echo "$ac_cv_lib_lockfile_lockfile_create" >&6; }
16769if test "x$ac_cv_lib_lockfile_lockfile_create" = xyes; then :
16770 cat >>confdefs.h <<_ACEOF
16771#define HAVE_LIBLOCKFILE 1
16772_ACEOF
16773
16774 LIBS="-llockfile $LIBS"
16775
16776fi
16777
16778
16779
16780ac_header_dirent=no
16781for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16782 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16784$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16785if eval \${$as_ac_Header+:} false; then :
16786 $as_echo_n "(cached) " >&6
16787else
16788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16789/* end confdefs.h. */
16790#include <sys/types.h>
16791#include <$ac_hdr>
16792
16793int
16794main ()
16795{
16796if ((DIR *) 0)
16797return 0;
16798 ;
16799 return 0;
16800}
16801_ACEOF
16802if ac_fn_c_try_compile "$LINENO"; then :
16803 eval "$as_ac_Header=yes"
16804else
16805 eval "$as_ac_Header=no"
16806fi
16807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16808fi
16809eval ac_res=\$$as_ac_Header
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16811$as_echo "$ac_res" >&6; }
16812if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16813 cat >>confdefs.h <<_ACEOF
16814#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16815_ACEOF
16816
16817ac_header_dirent=$ac_hdr; break
16818fi
16819
16820done
16821# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16822if test $ac_header_dirent = dirent.h; then
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16824$as_echo_n "checking for library containing opendir... " >&6; }
16825if ${ac_cv_search_opendir+:} false; then :
16826 $as_echo_n "(cached) " >&6
16827else
16828 ac_func_search_save_LIBS=$LIBS
16829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16830/* end confdefs.h. */
16831
16832/* Override any GCC internal prototype to avoid an error.
16833 Use char because int might match the return type of a GCC
16834 builtin and then its argument prototype would still apply. */
16835#ifdef __cplusplus
16836extern "C"
16837#endif
16838char opendir ();
16839int
16840main ()
16841{
16842return opendir ();
16843 ;
16844 return 0;
16845}
16846_ACEOF
16847for ac_lib in '' dir; do
16848 if test -z "$ac_lib"; then
16849 ac_res="none required"
16850 else
16851 ac_res=-l$ac_lib
16852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16853 fi
16854 if ac_fn_c_try_link "$LINENO"; then :
16855 ac_cv_search_opendir=$ac_res
16856fi
16857rm -f core conftest.err conftest.$ac_objext \
16858 conftest$ac_exeext
16859 if ${ac_cv_search_opendir+:} false; then :
16860 break
16861fi
16862done
16863if ${ac_cv_search_opendir+:} false; then :
16864
16865else
16866 ac_cv_search_opendir=no
16867fi
16868rm conftest.$ac_ext
16869LIBS=$ac_func_search_save_LIBS
16870fi
16871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16872$as_echo "$ac_cv_search_opendir" >&6; }
16873ac_res=$ac_cv_search_opendir
16874if test "$ac_res" != no; then :
16875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16876
16877fi
16878
16879else
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16881$as_echo_n "checking for library containing opendir... " >&6; }
16882if ${ac_cv_search_opendir+:} false; then :
16883 $as_echo_n "(cached) " >&6
16884else
16885 ac_func_search_save_LIBS=$LIBS
16886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887/* end confdefs.h. */
16888
16889/* Override any GCC internal prototype to avoid an error.
16890 Use char because int might match the return type of a GCC
16891 builtin and then its argument prototype would still apply. */
16892#ifdef __cplusplus
16893extern "C"
16894#endif
16895char opendir ();
16896int
16897main ()
16898{
16899return opendir ();
16900 ;
16901 return 0;
16902}
16903_ACEOF
16904for ac_lib in '' x; do
16905 if test -z "$ac_lib"; then
16906 ac_res="none required"
16907 else
16908 ac_res=-l$ac_lib
16909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16910 fi
16911 if ac_fn_c_try_link "$LINENO"; then :
16912 ac_cv_search_opendir=$ac_res
16913fi
16914rm -f core conftest.err conftest.$ac_objext \
16915 conftest$ac_exeext
16916 if ${ac_cv_search_opendir+:} false; then :
16917 break
16918fi
16919done
16920if ${ac_cv_search_opendir+:} false; then :
16921
16922else
16923 ac_cv_search_opendir=no
16924fi
16925rm conftest.$ac_ext
16926LIBS=$ac_func_search_save_LIBS
16927fi
16928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16929$as_echo "$ac_cv_search_opendir" >&6; }
16930ac_res=$ac_cv_search_opendir
16931if test "$ac_res" != no; then :
16932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16933
16934fi
16935
16936fi
16937
16938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16939$as_echo_n "checking for ANSI C header files... " >&6; }
16940if ${ac_cv_header_stdc+:} false; then :
16941 $as_echo_n "(cached) " >&6
16942else
16943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944/* end confdefs.h. */
16945#include <stdlib.h>
16946#include <stdarg.h>
16947#include <string.h>
16948#include <float.h>
16949
16950int
16951main ()
16952{
16953
16954 ;
16955 return 0;
16956}
16957_ACEOF
16958if ac_fn_c_try_compile "$LINENO"; then :
16959 ac_cv_header_stdc=yes
16960else
16961 ac_cv_header_stdc=no
16962fi
16963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964
16965if test $ac_cv_header_stdc = yes; then
16966 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16968/* end confdefs.h. */
16969#include <string.h>
16970
16971_ACEOF
16972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16973 $EGREP "memchr" >/dev/null 2>&1; then :
16974
16975else
16976 ac_cv_header_stdc=no
16977fi
16978rm -f conftest*
16979
16980fi
16981
16982if test $ac_cv_header_stdc = yes; then
16983 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985/* end confdefs.h. */
16986#include <stdlib.h>
16987
16988_ACEOF
16989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16990 $EGREP "free" >/dev/null 2>&1; then :
16991
16992else
16993 ac_cv_header_stdc=no
16994fi
16995rm -f conftest*
16996
16997fi
16998
16999if test $ac_cv_header_stdc = yes; then
17000 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17001 if test "$cross_compiling" = yes; then :
17002 :
17003else
17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005/* end confdefs.h. */
17006#include <ctype.h>
17007#include <stdlib.h>
17008#if ((' ' & 0x0FF) == 0x020)
17009# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17010# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17011#else
17012# define ISLOWER(c) \
17013 (('a' <= (c) && (c) <= 'i') \
17014 || ('j' <= (c) && (c) <= 'r') \
17015 || ('s' <= (c) && (c) <= 'z'))
17016# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17017#endif
17018
17019#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17020int
17021main ()
17022{
17023 int i;
17024 for (i = 0; i < 256; i++)
17025 if (XOR (islower (i), ISLOWER (i))
17026 || toupper (i) != TOUPPER (i))
17027 return 2;
17028 return 0;
17029}
17030_ACEOF
17031if ac_fn_c_try_run "$LINENO"; then :
17032
17033else
17034 ac_cv_header_stdc=no
17035fi
17036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17037 conftest.$ac_objext conftest.beam conftest.$ac_ext
17038fi
17039
17040fi
17041fi
17042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17043$as_echo "$ac_cv_header_stdc" >&6; }
17044if test $ac_cv_header_stdc = yes; then
17045
17046$as_echo "#define STDC_HEADERS 1" >>confdefs.h
17047
17048fi
17049
17050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
17051$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
17052if ${ac_cv_header_sys_wait_h+:} false; then :
17053 $as_echo_n "(cached) " >&6
17054else
17055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17056/* end confdefs.h. */
17057#include <sys/types.h>
17058#include <sys/wait.h>
17059#ifndef WEXITSTATUS
17060# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17061#endif
17062#ifndef WIFEXITED
17063# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17064#endif
17065
17066int
17067main ()
17068{
17069 int s;
17070 wait (&s);
17071 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17072 ;
17073 return 0;
17074}
17075_ACEOF
17076if ac_fn_c_try_compile "$LINENO"; then :
17077 ac_cv_header_sys_wait_h=yes
17078else
17079 ac_cv_header_sys_wait_h=no
17080fi
17081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082fi
17083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
17084$as_echo "$ac_cv_header_sys_wait_h" >&6; }
17085if test $ac_cv_header_sys_wait_h = yes; then
17086
17087$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
17088
17089fi
17090
17091for ac_header in fcntl.h sys/file.h unistd.h paths.h \
17092 sys/param.h sys/utsname.h sys/select.h \
17093 netdb.h regex.h sys/mman.h
17094do :
17095 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17096ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17097if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17098 cat >>confdefs.h <<_ACEOF
17099#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17100_ACEOF
17101
17102fi
17103
17104done
17105
17106
17107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17108$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17109if ${ac_cv_c_const+:} false; then :
17110 $as_echo_n "(cached) " >&6
17111else
17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113/* end confdefs.h. */
17114
17115int
17116main ()
17117{
17118
17119#ifndef __cplusplus
17120 /* Ultrix mips cc rejects this sort of thing. */
17121 typedef int charset[2];
17122 const charset cs = { 0, 0 };
17123 /* SunOS 4.1.1 cc rejects this. */
17124 char const *const *pcpcc;
17125 char **ppc;
17126 /* NEC SVR4.0.2 mips cc rejects this. */
17127 struct point {int x, y;};
17128 static struct point const zero = {0,0};
17129 /* AIX XL C 1.02.0.0 rejects this.
17130 It does not let you subtract one const X* pointer from another in
17131 an arm of an if-expression whose if-part is not a constant
17132 expression */
17133 const char *g = "string";
17134 pcpcc = &g + (g ? g-g : 0);
17135 /* HPUX 7.0 cc rejects these. */
17136 ++pcpcc;
17137 ppc = (char**) pcpcc;
17138 pcpcc = (char const *const *) ppc;
17139 { /* SCO 3.2v4 cc rejects this sort of thing. */
17140 char tx;
17141 char *t = &tx;
17142 char const *s = 0 ? (char *) 0 : (char const *) 0;
17143
17144 *t++ = 0;
17145 if (s) return 0;
17146 }
17147 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17148 int x[] = {25, 17};
17149 const int *foo = &x[0];
17150 ++foo;
17151 }
17152 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17153 typedef const int *iptr;
17154 iptr p = 0;
17155 ++p;
17156 }
17157 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17158 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17159 struct s { int j; const int *ap[3]; } bx;
17160 struct s *b = &bx; b->j = 5;
17161 }
17162 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17163 const int foo = 10;
17164 if (!foo) return 0;
17165 }
17166 return !cs[0] && !zero.x;
17167#endif
17168
17169 ;
17170 return 0;
17171}
17172_ACEOF
17173if ac_fn_c_try_compile "$LINENO"; then :
17174 ac_cv_c_const=yes
17175else
17176 ac_cv_c_const=no
17177fi
17178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17179fi
17180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17181$as_echo "$ac_cv_c_const" >&6; }
17182if test $ac_cv_c_const = no; then
17183
17184$as_echo "#define const /**/" >>confdefs.h
17185
17186fi
17187
17188ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17189if test "x$ac_cv_type_off_t" = xyes; then :
17190
17191else
17192
17193cat >>confdefs.h <<_ACEOF
17194#define off_t long int
17195_ACEOF
17196
17197fi
17198
17199ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17200if test "x$ac_cv_type_pid_t" = xyes; then :
17201
17202else
17203
17204cat >>confdefs.h <<_ACEOF
17205#define pid_t int
17206_ACEOF
17207
17208fi
17209
17210ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17211if test "x$ac_cv_type_size_t" = xyes; then :
17212
17213else
17214
17215cat >>confdefs.h <<_ACEOF
17216#define size_t unsigned int
17217_ACEOF
17218
17219fi
17220
17221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17222$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17223if ${ac_cv_struct_tm+:} false; then :
17224 $as_echo_n "(cached) " >&6
17225else
17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227/* end confdefs.h. */
17228#include <sys/types.h>
17229#include <time.h>
17230
17231int
17232main ()
17233{
17234struct tm tm;
17235 int *p = &tm.tm_sec;
17236 return !p;
17237 ;
17238 return 0;
17239}
17240_ACEOF
17241if ac_fn_c_try_compile "$LINENO"; then :
17242 ac_cv_struct_tm=time.h
17243else
17244 ac_cv_struct_tm=sys/time.h
17245fi
17246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17247fi
17248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17249$as_echo "$ac_cv_struct_tm" >&6; }
17250if test $ac_cv_struct_tm = sys/time.h; then
17251
17252$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17253
17254fi
17255
17256
17257# Check whether --enable-largefile was given.
17258if test "${enable_largefile+set}" = set; then :
17259 enableval=$enable_largefile;
17260fi
17261
17262if test "$enable_largefile" != no; then
17263
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17265$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17266if ${ac_cv_sys_largefile_CC+:} false; then :
17267 $as_echo_n "(cached) " >&6
17268else
17269 ac_cv_sys_largefile_CC=no
17270 if test "$GCC" != yes; then
17271 ac_save_CC=$CC
17272 while :; do
17273 # IRIX 6.2 and later do not support large files by default,
17274 # so use the C compiler's -n32 option if that helps.
17275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276/* end confdefs.h. */
17277#include <sys/types.h>
17278 /* Check that off_t can represent 2**63 - 1 correctly.
17279 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17280 since some C++ compilers masquerading as C compilers
17281 incorrectly reject 9223372036854775807. */
17282#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17283 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17284 && LARGE_OFF_T % 2147483647 == 1)
17285 ? 1 : -1];
17286int
17287main ()
17288{
17289
17290 ;
17291 return 0;
17292}
17293_ACEOF
17294 if ac_fn_c_try_compile "$LINENO"; then :
17295 break
17296fi
17297rm -f core conftest.err conftest.$ac_objext
17298 CC="$CC -n32"
17299 if ac_fn_c_try_compile "$LINENO"; then :
17300 ac_cv_sys_largefile_CC=' -n32'; break
17301fi
17302rm -f core conftest.err conftest.$ac_objext
17303 break
17304 done
17305 CC=$ac_save_CC
17306 rm -f conftest.$ac_ext
17307 fi
17308fi
17309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17310$as_echo "$ac_cv_sys_largefile_CC" >&6; }
17311 if test "$ac_cv_sys_largefile_CC" != no; then
17312 CC=$CC$ac_cv_sys_largefile_CC
17313 fi
17314
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17316$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17317if ${ac_cv_sys_file_offset_bits+:} false; then :
17318 $as_echo_n "(cached) " >&6
17319else
17320 while :; do
17321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322/* end confdefs.h. */
17323#include <sys/types.h>
17324 /* Check that off_t can represent 2**63 - 1 correctly.
17325 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17326 since some C++ compilers masquerading as C compilers
17327 incorrectly reject 9223372036854775807. */
17328#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17329 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17330 && LARGE_OFF_T % 2147483647 == 1)
17331 ? 1 : -1];
17332int
17333main ()
17334{
17335
17336 ;
17337 return 0;
17338}
17339_ACEOF
17340if ac_fn_c_try_compile "$LINENO"; then :
17341 ac_cv_sys_file_offset_bits=no; break
17342fi
17343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345/* end confdefs.h. */
17346#define _FILE_OFFSET_BITS 64
17347#include <sys/types.h>
17348 /* Check that off_t can represent 2**63 - 1 correctly.
17349 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17350 since some C++ compilers masquerading as C compilers
17351 incorrectly reject 9223372036854775807. */
17352#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17353 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17354 && LARGE_OFF_T % 2147483647 == 1)
17355 ? 1 : -1];
17356int
17357main ()
17358{
17359
17360 ;
17361 return 0;
17362}
17363_ACEOF
17364if ac_fn_c_try_compile "$LINENO"; then :
17365 ac_cv_sys_file_offset_bits=64; break
17366fi
17367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17368 ac_cv_sys_file_offset_bits=unknown
17369 break
17370done
17371fi
17372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17373$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17374case $ac_cv_sys_file_offset_bits in #(
17375 no | unknown) ;;
17376 *)
17377cat >>confdefs.h <<_ACEOF
17378#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17379_ACEOF
17380;;
17381esac
17382rm -rf conftest*
17383 if test $ac_cv_sys_file_offset_bits = unknown; then
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17385$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17386if ${ac_cv_sys_large_files+:} false; then :
17387 $as_echo_n "(cached) " >&6
17388else
17389 while :; do
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391/* end confdefs.h. */
17392#include <sys/types.h>
17393 /* Check that off_t can represent 2**63 - 1 correctly.
17394 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17395 since some C++ compilers masquerading as C compilers
17396 incorrectly reject 9223372036854775807. */
17397#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17398 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17399 && LARGE_OFF_T % 2147483647 == 1)
17400 ? 1 : -1];
17401int
17402main ()
17403{
17404
17405 ;
17406 return 0;
17407}
17408_ACEOF
17409if ac_fn_c_try_compile "$LINENO"; then :
17410 ac_cv_sys_large_files=no; break
17411fi
17412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414/* end confdefs.h. */
17415#define _LARGE_FILES 1
17416#include <sys/types.h>
17417 /* Check that off_t can represent 2**63 - 1 correctly.
17418 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17419 since some C++ compilers masquerading as C compilers
17420 incorrectly reject 9223372036854775807. */
17421#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17422 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17423 && LARGE_OFF_T % 2147483647 == 1)
17424 ? 1 : -1];
17425int
17426main ()
17427{
17428
17429 ;
17430 return 0;
17431}
17432_ACEOF
17433if ac_fn_c_try_compile "$LINENO"; then :
17434 ac_cv_sys_large_files=1; break
17435fi
17436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17437 ac_cv_sys_large_files=unknown
17438 break
17439done
17440fi
17441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17442$as_echo "$ac_cv_sys_large_files" >&6; }
17443case $ac_cv_sys_large_files in #(
17444 no | unknown) ;;
17445 *)
17446cat >>confdefs.h <<_ACEOF
17447#define _LARGE_FILES $ac_cv_sys_large_files
17448_ACEOF
17449;;
17450esac
17451rm -rf conftest*
17452 fi
17453
17454
17455fi
17456
17457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17458$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
17459if ${ac_cv_sys_largefile_source+:} false; then :
17460 $as_echo_n "(cached) " >&6
17461else
17462 while :; do
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464/* end confdefs.h. */
17465#include <sys/types.h> /* for off_t */
17466 #include <stdio.h>
17467int
17468main ()
17469{
17470int (*fp) (FILE *, off_t, int) = fseeko;
17471 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17472 ;
17473 return 0;
17474}
17475_ACEOF
17476if ac_fn_c_try_link "$LINENO"; then :
17477 ac_cv_sys_largefile_source=no; break
17478fi
17479rm -f core conftest.err conftest.$ac_objext \
17480 conftest$ac_exeext conftest.$ac_ext
17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482/* end confdefs.h. */
17483#define _LARGEFILE_SOURCE 1
17484#include <sys/types.h> /* for off_t */
17485 #include <stdio.h>
17486int
17487main ()
17488{
17489int (*fp) (FILE *, off_t, int) = fseeko;
17490 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17491 ;
17492 return 0;
17493}
17494_ACEOF
17495if ac_fn_c_try_link "$LINENO"; then :
17496 ac_cv_sys_largefile_source=1; break
17497fi
17498rm -f core conftest.err conftest.$ac_objext \
17499 conftest$ac_exeext conftest.$ac_ext
17500 ac_cv_sys_largefile_source=unknown
17501 break
17502done
17503fi
17504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
17505$as_echo "$ac_cv_sys_largefile_source" >&6; }
17506case $ac_cv_sys_largefile_source in #(
17507 no | unknown) ;;
17508 *)
17509cat >>confdefs.h <<_ACEOF
17510#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17511_ACEOF
17512;;
17513esac
17514rm -rf conftest*
17515
17516# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17517# in glibc 2.1.3, but that breaks too many other things.
17518# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17519if test $ac_cv_sys_largefile_source != unknown; then
17520
17521$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
17522
17523fi
17524
17525
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
17527$as_echo_n "checking for u32 typedef... " >&6; }
17528 if ${gnupg_cv_typedef_u32+:} false; then :
17529 $as_echo_n "(cached) " >&6
17530else
17531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17532/* end confdefs.h. */
17533#include <stdlib.h>
17534 #include <sys/types.h>
17535int
17536main ()
17537{
17538
17539 #undef u32
17540 int a = sizeof(u32);
17541
17542 ;
17543 return 0;
17544}
17545_ACEOF
17546if ac_fn_c_try_compile "$LINENO"; then :
17547 gnupg_cv_typedef_u32=yes
17548else
17549 gnupg_cv_typedef_u32=no
17550fi
17551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17552fi
17553
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
17555$as_echo "$gnupg_cv_typedef_u32" >&6; }
17556 if test "$gnupg_cv_typedef_u32" = yes; then
17557
17558$as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
17559
17560 fi
17561
17562# The cast to long int works around a bug in the HP C Compiler
17563# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17564# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17565# This bug is HP SR number 8606223364.
17566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
17567$as_echo_n "checking size of unsigned short... " >&6; }
17568if ${ac_cv_sizeof_unsigned_short+:} false; then :
17569 $as_echo_n "(cached) " >&6
17570else
17571 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
17572
17573else
17574 if test "$ac_cv_type_unsigned_short" = yes; then
17575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17577as_fn_error 77 "cannot compute sizeof (unsigned short)
17578See \`config.log' for more details" "$LINENO" 5; }
17579 else
17580 ac_cv_sizeof_unsigned_short=0
17581 fi
17582fi
17583
17584fi
17585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
17586$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
17587
17588
17589
17590cat >>confdefs.h <<_ACEOF
17591#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
17592_ACEOF
17593
17594
17595# The cast to long int works around a bug in the HP C Compiler
17596# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17597# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17598# This bug is HP SR number 8606223364.
17599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
17600$as_echo_n "checking size of unsigned int... " >&6; }
17601if ${ac_cv_sizeof_unsigned_int+:} false; then :
17602 $as_echo_n "(cached) " >&6
17603else
17604 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
17605
17606else
17607 if test "$ac_cv_type_unsigned_int" = yes; then
17608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17610as_fn_error 77 "cannot compute sizeof (unsigned int)
17611See \`config.log' for more details" "$LINENO" 5; }
17612 else
17613 ac_cv_sizeof_unsigned_int=0
17614 fi
17615fi
17616
17617fi
17618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
17619$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
17620
17621
17622
17623cat >>confdefs.h <<_ACEOF
17624#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
17625_ACEOF
17626
17627
17628# The cast to long int works around a bug in the HP C Compiler
17629# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17630# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17631# This bug is HP SR number 8606223364.
17632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
17633$as_echo_n "checking size of unsigned long... " >&6; }
17634if ${ac_cv_sizeof_unsigned_long+:} false; then :
17635 $as_echo_n "(cached) " >&6
17636else
17637 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
17638
17639else
17640 if test "$ac_cv_type_unsigned_long" = yes; then
17641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17643as_fn_error 77 "cannot compute sizeof (unsigned long)
17644See \`config.log' for more details" "$LINENO" 5; }
17645 else
17646 ac_cv_sizeof_unsigned_long=0
17647 fi
17648fi
17649
17650fi
17651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
17652$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
17653
17654
17655
17656cat >>confdefs.h <<_ACEOF
17657#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17658_ACEOF
17659
17660
17661# The cast to long int works around a bug in the HP C Compiler
17662# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17663# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17664# This bug is HP SR number 8606223364.
17665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
17666$as_echo_n "checking size of time_t... " >&6; }
17667if ${ac_cv_sizeof_time_t+:} false; then :
17668 $as_echo_n "(cached) " >&6
17669else
17670 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
17671
17672else
17673 if test "$ac_cv_type_time_t" = yes; then
17674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17676as_fn_error 77 "cannot compute sizeof (time_t)
17677See \`config.log' for more details" "$LINENO" 5; }
17678 else
17679 ac_cv_sizeof_time_t=0
17680 fi
17681fi
17682
17683fi
17684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
17685$as_echo "$ac_cv_sizeof_time_t" >&6; }
17686
17687
17688
17689cat >>confdefs.h <<_ACEOF
17690#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
17691_ACEOF
17692
17693
17694# The cast to long int works around a bug in the HP C Compiler
17695# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17696# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17697# This bug is HP SR number 8606223364.
17698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
17699$as_echo_n "checking size of off_t... " >&6; }
17700if ${ac_cv_sizeof_off_t+:} false; then :
17701 $as_echo_n "(cached) " >&6
17702else
17703 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
17704
17705else
17706 if test "$ac_cv_type_off_t" = yes; then
17707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17709as_fn_error 77 "cannot compute sizeof (off_t)
17710See \`config.log' for more details" "$LINENO" 5; }
17711 else
17712 ac_cv_sizeof_off_t=0
17713 fi
17714fi
17715
17716fi
17717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
17718$as_echo "$ac_cv_sizeof_off_t" >&6; }
17719
17720
17721
17722cat >>confdefs.h <<_ACEOF
17723#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
17724_ACEOF
17725
17726
17727
17728if test "x$ac_cv_sizeof_time_t" = "x8"; then
17729
17730$as_echo "#define HAVE_64BIT_TIME_T 1" >>confdefs.h
17731
17732fi
17733
17734# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17735# for constant arguments. Useless!
17736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17737$as_echo_n "checking for working alloca.h... " >&6; }
17738if ${ac_cv_working_alloca_h+:} false; then :
17739 $as_echo_n "(cached) " >&6
17740else
17741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742/* end confdefs.h. */
17743#include <alloca.h>
17744int
17745main ()
17746{
17747char *p = (char *) alloca (2 * sizeof (int));
17748 if (p) return 0;
17749 ;
17750 return 0;
17751}
17752_ACEOF
17753if ac_fn_c_try_link "$LINENO"; then :
17754 ac_cv_working_alloca_h=yes
17755else
17756 ac_cv_working_alloca_h=no
17757fi
17758rm -f core conftest.err conftest.$ac_objext \
17759 conftest$ac_exeext conftest.$ac_ext
17760fi
17761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17762$as_echo "$ac_cv_working_alloca_h" >&6; }
17763if test $ac_cv_working_alloca_h = yes; then
17764
17765$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17766
17767fi
17768
17769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17770$as_echo_n "checking for alloca... " >&6; }
17771if ${ac_cv_func_alloca_works+:} false; then :
17772 $as_echo_n "(cached) " >&6
17773else
17774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775/* end confdefs.h. */
17776#ifdef __GNUC__
17777# define alloca __builtin_alloca
17778#else
17779# ifdef _MSC_VER
17780# include <malloc.h>
17781# define alloca _alloca
17782# else
17783# ifdef HAVE_ALLOCA_H
17784# include <alloca.h>
17785# else
17786# ifdef _AIX
17787 #pragma alloca
17788# else
17789# ifndef alloca /* predefined by HP cc +Olibcalls */
17790void *alloca (size_t);
17791# endif
17792# endif
17793# endif
17794# endif
17795#endif
17796
17797int
17798main ()
17799{
17800char *p = (char *) alloca (1);
17801 if (p) return 0;
17802 ;
17803 return 0;
17804}
17805_ACEOF
17806if ac_fn_c_try_link "$LINENO"; then :
17807 ac_cv_func_alloca_works=yes
17808else
17809 ac_cv_func_alloca_works=no
17810fi
17811rm -f core conftest.err conftest.$ac_objext \
17812 conftest$ac_exeext conftest.$ac_ext
17813fi
17814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17815$as_echo "$ac_cv_func_alloca_works" >&6; }
17816
17817if test $ac_cv_func_alloca_works = yes; then
17818
17819$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17820
17821else
17822 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17823# that cause trouble. Some versions do not even contain alloca or
17824# contain a buggy version. If you still want to use their alloca,
17825# use ar to extract alloca.o from them instead of compiling alloca.c.
17826
17827ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17828
17829$as_echo "#define C_ALLOCA 1" >>confdefs.h
17830
17831
17832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17833$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17834if ${ac_cv_os_cray+:} false; then :
17835 $as_echo_n "(cached) " >&6
17836else
17837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838/* end confdefs.h. */
17839#if defined CRAY && ! defined CRAY2
17840webecray
17841#else
17842wenotbecray
17843#endif
17844
17845_ACEOF
17846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17847 $EGREP "webecray" >/dev/null 2>&1; then :
17848 ac_cv_os_cray=yes
17849else
17850 ac_cv_os_cray=no
17851fi
17852rm -f conftest*
17853
17854fi
17855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17856$as_echo "$ac_cv_os_cray" >&6; }
17857if test $ac_cv_os_cray = yes; then
17858 for ac_func in _getb67 GETB67 getb67; do
17859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17860ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17861if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17862
17863cat >>confdefs.h <<_ACEOF
17864#define CRAY_STACKSEG_END $ac_func
17865_ACEOF
17866
17867 break
17868fi
17869
17870 done
17871fi
17872
17873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17874$as_echo_n "checking stack direction for C alloca... " >&6; }
17875if ${ac_cv_c_stack_direction+:} false; then :
17876 $as_echo_n "(cached) " >&6
17877else
17878 if test "$cross_compiling" = yes; then :
17879 ac_cv_c_stack_direction=0
17880else
17881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17882/* end confdefs.h. */
17883$ac_includes_default
17884int
17885find_stack_direction (int *addr, int depth)
17886{
17887 int dir, dummy = 0;
17888 if (! addr)
17889 addr = &dummy;
17890 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17891 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17892 return dir + dummy;
17893}
17894
17895int
17896main (int argc, char **argv)
17897{
17898 return find_stack_direction (0, argc + !argv + 20) < 0;
17899}
17900_ACEOF
17901if ac_fn_c_try_run "$LINENO"; then :
17902 ac_cv_c_stack_direction=1
17903else
17904 ac_cv_c_stack_direction=-1
17905fi
17906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17907 conftest.$ac_objext conftest.beam conftest.$ac_ext
17908fi
17909
17910fi
17911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17912$as_echo "$ac_cv_c_stack_direction" >&6; }
17913cat >>confdefs.h <<_ACEOF
17914#define STACK_DIRECTION $ac_cv_c_stack_direction
17915_ACEOF
17916
17917
17918fi
17919
17920for ac_func in gethostname mkdir mktime socket strstr strchr \
17921 uname flock lockf inet_aton inet_addr \
17922 fchmod truncate getuid regcomp mlock fsync
17923do :
17924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17925ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17926if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17927 cat >>confdefs.h <<_ACEOF
17928#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17929_ACEOF
17930
17931fi
17932done
17933
17934
17935ac_config_files="$ac_config_files Makefile sylpheed.spec ac/Makefile libsylph/Makefile src/version.h src/sylpheed.rc src/Makefile src/icons/Makefile plugin/Makefile plugin/attachment_tool/Makefile plugin/test/Makefile po/Makefile.in faq/Makefile faq/de/Makefile faq/en/Makefile faq/es/Makefile faq/fr/Makefile faq/it/Makefile manual/Makefile manual/en/Makefile manual/ja/Makefile nsis/Makefile macosx/Makefile macosx/bundle/Makefile"
17936
17937cat >confcache <<\_ACEOF
17938# This file is a shell script that caches the results of configure
17939# tests run on this system so they can be shared between configure
17940# scripts and configure runs, see configure's option --config-cache.
17941# It is not useful on other systems. If it contains results you don't
17942# want to keep, you may remove or edit it.
17943#
17944# config.status only pays attention to the cache file if you give it
17945# the --recheck option to rerun configure.
17946#
17947# `ac_cv_env_foo' variables (set or unset) will be overridden when
17948# loading this file, other *unset* `ac_cv_foo' will be assigned the
17949# following values.
17950
17951_ACEOF
17952
17953# The following way of writing the cache mishandles newlines in values,
17954# but we know of no workaround that is simple, portable, and efficient.
17955# So, we kill variables containing newlines.
17956# Ultrix sh set writes to stderr and can't be redirected directly,
17957# and sets the high bit in the cache file unless we assign to the vars.
17958(
17959 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17960 eval ac_val=\$$ac_var
17961 case $ac_val in #(
17962 *${as_nl}*)
17963 case $ac_var in #(
17964 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17965$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17966 esac
17967 case $ac_var in #(
17968 _ | IFS | as_nl) ;; #(
17969 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17970 *) { eval $ac_var=; unset $ac_var;} ;;
17971 esac ;;
17972 esac
17973 done
17974
17975 (set) 2>&1 |
17976 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17977 *${as_nl}ac_space=\ *)
17978 # `set' does not quote correctly, so add quotes: double-quote
17979 # substitution turns \\\\ into \\, and sed turns \\ into \.
17980 sed -n \
17981 "s/'/'\\\\''/g;
17982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17983 ;; #(
17984 *)
17985 # `set' quotes correctly as required by POSIX, so do not add quotes.
17986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17987 ;;
17988 esac |
17989 sort
17990) |
17991 sed '
17992 /^ac_cv_env_/b end
17993 t clear
17994 :clear
17995 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17996 t end
17997 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17998 :end' >>confcache
17999if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18000 if test -w "$cache_file"; then
18001 if test "x$cache_file" != "x/dev/null"; then
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18003$as_echo "$as_me: updating cache $cache_file" >&6;}
18004 if test ! -f "$cache_file" || test -h "$cache_file"; then
18005 cat confcache >"$cache_file"
18006 else
18007 case $cache_file in #(
18008 */* | ?:*)
18009 mv -f confcache "$cache_file"$$ &&
18010 mv -f "$cache_file"$$ "$cache_file" ;; #(
18011 *)
18012 mv -f confcache "$cache_file" ;;
18013 esac
18014 fi
18015 fi
18016 else
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18018$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18019 fi
18020fi
18021rm -f confcache
18022
18023test "x$prefix" = xNONE && prefix=$ac_default_prefix
18024# Let make expand exec_prefix.
18025test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18026
18027DEFS=-DHAVE_CONFIG_H
18028
18029ac_libobjs=
18030ac_ltlibobjs=
18031for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18032 # 1. Remove the extension, and $U if already installed.
18033 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18034 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18035 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18036 # will be set to the directory where LIBOBJS objects are built.
18037 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18038 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18039done
18040LIBOBJS=$ac_libobjs
18041
18042LTLIBOBJS=$ac_ltlibobjs
18043
18044
18045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18046$as_echo_n "checking that generated files are newer than configure... " >&6; }
18047 if test -n "$am_sleep_pid"; then
18048 # Hide warnings about reused PIDs.
18049 wait $am_sleep_pid 2>/dev/null
18050 fi
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18052$as_echo "done" >&6; }
18053 if test -n "$EXEEXT"; then
18054 am__EXEEXT_TRUE=
18055 am__EXEEXT_FALSE='#'
18056else
18057 am__EXEEXT_TRUE='#'
18058 am__EXEEXT_FALSE=
18059fi
18060
18061if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18062 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18063Usually this means the macro was only invoked conditionally." "$LINENO" 5
18064fi
18065if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18066 as_fn_error $? "conditional \"AMDEP\" was never defined.
18067Usually this means the macro was only invoked conditionally." "$LINENO" 5
18068fi
18069if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18070 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18071Usually this means the macro was only invoked conditionally." "$LINENO" 5
18072fi
18073if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18074 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18075Usually this means the macro was only invoked conditionally." "$LINENO" 5
18076fi
18077if test -z "${NATIVE_WIN32_TRUE}" && test -z "${NATIVE_WIN32_FALSE}"; then
18078 as_fn_error $? "conditional \"NATIVE_WIN32\" was never defined.
18079Usually this means the macro was only invoked conditionally." "$LINENO" 5
18080fi
18081
18082: "${CONFIG_STATUS=./config.status}"
18083ac_write_fail=0
18084ac_clean_files_save=$ac_clean_files
18085ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18086{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18087$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18088as_write_fail=0
18089cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18090#! $SHELL
18091# Generated by $as_me.
18092# Run this file to recreate the current configuration.
18093# Compiler output produced by configure, useful for debugging
18094# configure, is in config.log if it exists.
18095
18096debug=false
18097ac_cs_recheck=false
18098ac_cs_silent=false
18099
18100SHELL=\${CONFIG_SHELL-$SHELL}
18101export SHELL
18102_ASEOF
18103cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18104## -------------------- ##
18105## M4sh Initialization. ##
18106## -------------------- ##
18107
18108# Be more Bourne compatible
18109DUALCASE=1; export DUALCASE # for MKS sh
18110if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18111 emulate sh
18112 NULLCMD=:
18113 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18114 # is contrary to our usage. Disable this feature.
18115 alias -g '${1+"$@"}'='"$@"'
18116 setopt NO_GLOB_SUBST
18117else
18118 case `(set -o) 2>/dev/null` in #(
18119 *posix*) :
18120 set -o posix ;; #(
18121 *) :
18122 ;;
18123esac
18124fi
18125
18126
18127as_nl='
18128'
18129export as_nl
18130# Printing a long string crashes Solaris 7 /usr/bin/printf.
18131as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18132as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18133as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18134# Prefer a ksh shell builtin over an external printf program on Solaris,
18135# but without wasting forks for bash or zsh.
18136if test -z "$BASH_VERSION$ZSH_VERSION" \
18137 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18138 as_echo='print -r --'
18139 as_echo_n='print -rn --'
18140elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18141 as_echo='printf %s\n'
18142 as_echo_n='printf %s'
18143else
18144 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18145 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18146 as_echo_n='/usr/ucb/echo -n'
18147 else
18148 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18149 as_echo_n_body='eval
18150 arg=$1;
18151 case $arg in #(
18152 *"$as_nl"*)
18153 expr "X$arg" : "X\\(.*\\)$as_nl";
18154 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18155 esac;
18156 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18157 '
18158 export as_echo_n_body
18159 as_echo_n='sh -c $as_echo_n_body as_echo'
18160 fi
18161 export as_echo_body
18162 as_echo='sh -c $as_echo_body as_echo'
18163fi
18164
18165# The user is always right.
18166if test "${PATH_SEPARATOR+set}" != set; then
18167 PATH_SEPARATOR=:
18168 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18169 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18170 PATH_SEPARATOR=';'
18171 }
18172fi
18173
18174
18175# IFS
18176# We need space, tab and new line, in precisely that order. Quoting is
18177# there to prevent editors from complaining about space-tab.
18178# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18179# splitting by setting IFS to empty value.)
18180IFS=" "" $as_nl"
18181
18182# Find who we are. Look in the path if we contain no directory separator.
18183as_myself=
18184case $0 in #((
18185 *[\\/]* ) as_myself=$0 ;;
18186 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18187for as_dir in $PATH
18188do
18189 IFS=$as_save_IFS
18190 test -z "$as_dir" && as_dir=.
18191 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18192 done
18193IFS=$as_save_IFS
18194
18195 ;;
18196esac
18197# We did not find ourselves, most probably we were run as `sh COMMAND'
18198# in which case we are not to be found in the path.
18199if test "x$as_myself" = x; then
18200 as_myself=$0
18201fi
18202if test ! -f "$as_myself"; then
18203 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18204 exit 1
18205fi
18206
18207# Unset variables that we do not need and which cause bugs (e.g. in
18208# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18209# suppresses any "Segmentation fault" message there. '((' could
18210# trigger a bug in pdksh 5.2.14.
18211for as_var in BASH_ENV ENV MAIL MAILPATH
18212do eval test x\${$as_var+set} = xset \
18213 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18214done
18215PS1='$ '
18216PS2='> '
18217PS4='+ '
18218
18219# NLS nuisances.
18220LC_ALL=C
18221export LC_ALL
18222LANGUAGE=C
18223export LANGUAGE
18224
18225# CDPATH.
18226(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18227
18228
18229# as_fn_error STATUS ERROR [LINENO LOG_FD]
18230# ----------------------------------------
18231# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18232# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18233# script with STATUS, using 1 if that was 0.
18234as_fn_error ()
18235{
18236 as_status=$1; test $as_status -eq 0 && as_status=1
18237 if test "$4"; then
18238 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18239 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18240 fi
18241 $as_echo "$as_me: error: $2" >&2
18242 as_fn_exit $as_status
18243} # as_fn_error
18244
18245
18246# as_fn_set_status STATUS
18247# -----------------------
18248# Set $? to STATUS, without forking.
18249as_fn_set_status ()
18250{
18251 return $1
18252} # as_fn_set_status
18253
18254# as_fn_exit STATUS
18255# -----------------
18256# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18257as_fn_exit ()
18258{
18259 set +e
18260 as_fn_set_status $1
18261 exit $1
18262} # as_fn_exit
18263
18264# as_fn_unset VAR
18265# ---------------
18266# Portably unset VAR.
18267as_fn_unset ()
18268{
18269 { eval $1=; unset $1;}
18270}
18271as_unset=as_fn_unset
18272# as_fn_append VAR VALUE
18273# ----------------------
18274# Append the text in VALUE to the end of the definition contained in VAR. Take
18275# advantage of any shell optimizations that allow amortized linear growth over
18276# repeated appends, instead of the typical quadratic growth present in naive
18277# implementations.
18278if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18279 eval 'as_fn_append ()
18280 {
18281 eval $1+=\$2
18282 }'
18283else
18284 as_fn_append ()
18285 {
18286 eval $1=\$$1\$2
18287 }
18288fi # as_fn_append
18289
18290# as_fn_arith ARG...
18291# ------------------
18292# Perform arithmetic evaluation on the ARGs, and store the result in the
18293# global $as_val. Take advantage of shells that can avoid forks. The arguments
18294# must be portable across $(()) and expr.
18295if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18296 eval 'as_fn_arith ()
18297 {
18298 as_val=$(( $* ))
18299 }'
18300else
18301 as_fn_arith ()
18302 {
18303 as_val=`expr "$@" || test $? -eq 1`
18304 }
18305fi # as_fn_arith
18306
18307
18308if expr a : '\(a\)' >/dev/null 2>&1 &&
18309 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18310 as_expr=expr
18311else
18312 as_expr=false
18313fi
18314
18315if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18316 as_basename=basename
18317else
18318 as_basename=false
18319fi
18320
18321if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18322 as_dirname=dirname
18323else
18324 as_dirname=false
18325fi
18326
18327as_me=`$as_basename -- "$0" ||
18328$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18329 X"$0" : 'X\(//\)$' \| \
18330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18331$as_echo X/"$0" |
18332 sed '/^.*\/\([^/][^/]*\)\/*$/{
18333 s//\1/
18334 q
18335 }
18336 /^X\/\(\/\/\)$/{
18337 s//\1/
18338 q
18339 }
18340 /^X\/\(\/\).*/{
18341 s//\1/
18342 q
18343 }
18344 s/.*/./; q'`
18345
18346# Avoid depending upon Character Ranges.
18347as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18348as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18349as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18350as_cr_digits='0123456789'
18351as_cr_alnum=$as_cr_Letters$as_cr_digits
18352
18353ECHO_C= ECHO_N= ECHO_T=
18354case `echo -n x` in #(((((
18355-n*)
18356 case `echo 'xy\c'` in
18357 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18358 xy) ECHO_C='\c';;
18359 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18360 ECHO_T=' ';;
18361 esac;;
18362*)
18363 ECHO_N='-n';;
18364esac
18365
18366rm -f conf$$ conf$$.exe conf$$.file
18367if test -d conf$$.dir; then
18368 rm -f conf$$.dir/conf$$.file
18369else
18370 rm -f conf$$.dir
18371 mkdir conf$$.dir 2>/dev/null
18372fi
18373if (echo >conf$$.file) 2>/dev/null; then
18374 if ln -s conf$$.file conf$$ 2>/dev/null; then
18375 as_ln_s='ln -s'
18376 # ... but there are two gotchas:
18377 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18378 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18379 # In both cases, we have to default to `cp -pR'.
18380 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18381 as_ln_s='cp -pR'
18382 elif ln conf$$.file conf$$ 2>/dev/null; then
18383 as_ln_s=ln
18384 else
18385 as_ln_s='cp -pR'
18386 fi
18387else
18388 as_ln_s='cp -pR'
18389fi
18390rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18391rmdir conf$$.dir 2>/dev/null
18392
18393
18394# as_fn_mkdir_p
18395# -------------
18396# Create "$as_dir" as a directory, including parents if necessary.
18397as_fn_mkdir_p ()
18398{
18399
18400 case $as_dir in #(
18401 -*) as_dir=./$as_dir;;
18402 esac
18403 test -d "$as_dir" || eval $as_mkdir_p || {
18404 as_dirs=
18405 while :; do
18406 case $as_dir in #(
18407 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18408 *) as_qdir=$as_dir;;
18409 esac
18410 as_dirs="'$as_qdir' $as_dirs"
18411 as_dir=`$as_dirname -- "$as_dir" ||
18412$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18413 X"$as_dir" : 'X\(//\)[^/]' \| \
18414 X"$as_dir" : 'X\(//\)$' \| \
18415 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18416$as_echo X"$as_dir" |
18417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18418 s//\1/
18419 q
18420 }
18421 /^X\(\/\/\)[^/].*/{
18422 s//\1/
18423 q
18424 }
18425 /^X\(\/\/\)$/{
18426 s//\1/
18427 q
18428 }
18429 /^X\(\/\).*/{
18430 s//\1/
18431 q
18432 }
18433 s/.*/./; q'`
18434 test -d "$as_dir" && break
18435 done
18436 test -z "$as_dirs" || eval "mkdir $as_dirs"
18437 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18438
18439
18440} # as_fn_mkdir_p
18441if mkdir -p . 2>/dev/null; then
18442 as_mkdir_p='mkdir -p "$as_dir"'
18443else
18444 test -d ./-p && rmdir ./-p
18445 as_mkdir_p=false
18446fi
18447
18448
18449# as_fn_executable_p FILE
18450# -----------------------
18451# Test if FILE is an executable regular file.
18452as_fn_executable_p ()
18453{
18454 test -f "$1" && test -x "$1"
18455} # as_fn_executable_p
18456as_test_x='test -x'
18457as_executable_p=as_fn_executable_p
18458
18459# Sed expression to map a string onto a valid CPP name.
18460as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18461
18462# Sed expression to map a string onto a valid variable name.
18463as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18464
18465
18466exec 6>&1
18467## ----------------------------------- ##
18468## Main body of $CONFIG_STATUS script. ##
18469## ----------------------------------- ##
18470_ASEOF
18471test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18472
18473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18474# Save the log message, to keep $0 and so on meaningful, and to
18475# report actual input values of CONFIG_FILES etc. instead of their
18476# values after options handling.
18477ac_log="
18478This file was extended by $as_me, which was
18479generated by GNU Autoconf 2.69. Invocation command line was
18480
18481 CONFIG_FILES = $CONFIG_FILES
18482 CONFIG_HEADERS = $CONFIG_HEADERS
18483 CONFIG_LINKS = $CONFIG_LINKS
18484 CONFIG_COMMANDS = $CONFIG_COMMANDS
18485 $ $0 $@
18486
18487on `(hostname || uname -n) 2>/dev/null | sed 1q`
18488"
18489
18490_ACEOF
18491
18492case $ac_config_files in *"
18493"*) set x $ac_config_files; shift; ac_config_files=$*;;
18494esac
18495
18496case $ac_config_headers in *"
18497"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18498esac
18499
18500
18501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18502# Files that config.status was made for.
18503config_files="$ac_config_files"
18504config_headers="$ac_config_headers"
18505config_commands="$ac_config_commands"
18506
18507_ACEOF
18508
18509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18510ac_cs_usage="\
18511\`$as_me' instantiates files and other configuration actions
18512from templates according to the current configuration. Unless the files
18513and actions are specified as TAGs, all are instantiated by default.
18514
18515Usage: $0 [OPTION]... [TAG]...
18516
18517 -h, --help print this help, then exit
18518 -V, --version print version number and configuration settings, then exit
18519 --config print configuration, then exit
18520 -q, --quiet, --silent
18521 do not print progress messages
18522 -d, --debug don't remove temporary files
18523 --recheck update $as_me by reconfiguring in the same conditions
18524 --file=FILE[:TEMPLATE]
18525 instantiate the configuration file FILE
18526 --header=FILE[:TEMPLATE]
18527 instantiate the configuration header FILE
18528
18529Configuration files:
18530$config_files
18531
18532Configuration headers:
18533$config_headers
18534
18535Configuration commands:
18536$config_commands
18537
18538Report bugs to the package provider."
18539
18540_ACEOF
18541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18542ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18543ac_cs_version="\\
18544config.status
18545configured by $0, generated by GNU Autoconf 2.69,
18546 with options \\"\$ac_cs_config\\"
18547
18548Copyright (C) 2012 Free Software Foundation, Inc.
18549This config.status script is free software; the Free Software Foundation
18550gives unlimited permission to copy, distribute and modify it."
18551
18552ac_pwd='$ac_pwd'
18553srcdir='$srcdir'
18554INSTALL='$INSTALL'
18555MKDIR_P='$MKDIR_P'
18556AWK='$AWK'
18557test -n "\$AWK" || AWK=awk
18558_ACEOF
18559
18560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18561# The default lists apply if the user does not specify any file.
18562ac_need_defaults=:
18563while test $# != 0
18564do
18565 case $1 in
18566 --*=?*)
18567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18568 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18569 ac_shift=:
18570 ;;
18571 --*=)
18572 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18573 ac_optarg=
18574 ac_shift=:
18575 ;;
18576 *)
18577 ac_option=$1
18578 ac_optarg=$2
18579 ac_shift=shift
18580 ;;
18581 esac
18582
18583 case $ac_option in
18584 # Handling of the options.
18585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18586 ac_cs_recheck=: ;;
18587 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18588 $as_echo "$ac_cs_version"; exit ;;
18589 --config | --confi | --conf | --con | --co | --c )
18590 $as_echo "$ac_cs_config"; exit ;;
18591 --debug | --debu | --deb | --de | --d | -d )
18592 debug=: ;;
18593 --file | --fil | --fi | --f )
18594 $ac_shift
18595 case $ac_optarg in
18596 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18597 '') as_fn_error $? "missing file argument" ;;
18598 esac
18599 as_fn_append CONFIG_FILES " '$ac_optarg'"
18600 ac_need_defaults=false;;
18601 --header | --heade | --head | --hea )
18602 $ac_shift
18603 case $ac_optarg in
18604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18605 esac
18606 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18607 ac_need_defaults=false;;
18608 --he | --h)
18609 # Conflict between --help and --header
18610 as_fn_error $? "ambiguous option: \`$1'
18611Try \`$0 --help' for more information.";;
18612 --help | --hel | -h )
18613 $as_echo "$ac_cs_usage"; exit ;;
18614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18616 ac_cs_silent=: ;;
18617
18618 # This is an error.
18619 -*) as_fn_error $? "unrecognized option: \`$1'
18620Try \`$0 --help' for more information." ;;
18621
18622 *) as_fn_append ac_config_targets " $1"
18623 ac_need_defaults=false ;;
18624
18625 esac
18626 shift
18627done
18628
18629ac_configure_extra_args=
18630
18631if $ac_cs_silent; then
18632 exec 6>/dev/null
18633 ac_configure_extra_args="$ac_configure_extra_args --silent"
18634fi
18635
18636_ACEOF
18637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18638if \$ac_cs_recheck; then
18639 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18640 shift
18641 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18642 CONFIG_SHELL='$SHELL'
18643 export CONFIG_SHELL
18644 exec "\$@"
18645fi
18646
18647_ACEOF
18648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18649exec 5>>config.log
18650{
18651 echo
18652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18653## Running $as_me. ##
18654_ASBOX
18655 $as_echo "$ac_log"
18656} >&5
18657
18658_ACEOF
18659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18660#
18661# INIT-COMMANDS
18662#
18663AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18664
18665
18666# The HP-UX ksh and POSIX shell print the target directory to stdout
18667# if CDPATH is set.
18668(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18669
18670sed_quote_subst='$sed_quote_subst'
18671double_quote_subst='$double_quote_subst'
18672delay_variable_subst='$delay_variable_subst'
18673enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18674macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18675macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18676enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18677pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18678enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18679SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18680ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18681PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18682host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18683host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18684host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18685build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18686build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18687build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18688SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18689Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18690GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18691EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18692FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18693LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18694NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18695LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18696max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18697ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18698exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18699lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18700lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18701lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18702lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18703lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18704reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18705reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18706OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18707deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18708file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18709file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18710want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18711DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18712sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18713AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18714AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18715archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18716STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18717RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18718old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18719old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18720old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18721lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18722CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18723CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18724compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18725GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18726lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18727lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18728lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18729lt_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"`'
18730nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18731lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18732objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18733MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18734lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18735lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18736lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18737lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18738lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18739need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18740MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18741DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18742NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18743LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18744OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18745OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18746libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18747shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18748extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18749archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18750enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18751export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18752whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18753compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18754old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18755old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18756archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18757archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18758module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18759module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18760with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18761allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18762no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18763hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18764hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18765hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18766hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18767hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18768hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18769hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18770inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18771link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18772always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18773export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18774exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18775include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18776prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18777postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18778file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18779variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18780need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18781need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18782version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18783runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18784shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18785shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18786libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18787library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18788soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18789install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18790postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18791postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18792finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18793finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18794hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18795sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18796sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18797hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18798enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18799enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18800enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18801old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18802striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18803
18804LTCC='$LTCC'
18805LTCFLAGS='$LTCFLAGS'
18806compiler='$compiler_DEFAULT'
18807
18808# A function that is used when there is no print builtin or printf.
18809func_fallback_echo ()
18810{
18811 eval 'cat <<_LTECHO_EOF
18812\$1
18813_LTECHO_EOF'
18814}
18815
18816# Quote evaled strings.
18817for var in SHELL \
18818ECHO \
18819PATH_SEPARATOR \
18820SED \
18821GREP \
18822EGREP \
18823FGREP \
18824LD \
18825NM \
18826LN_S \
18827lt_SP2NL \
18828lt_NL2SP \
18829reload_flag \
18830OBJDUMP \
18831deplibs_check_method \
18832file_magic_cmd \
18833file_magic_glob \
18834want_nocaseglob \
18835DLLTOOL \
18836sharedlib_from_linklib_cmd \
18837AR \
18838AR_FLAGS \
18839archiver_list_spec \
18840STRIP \
18841RANLIB \
18842CC \
18843CFLAGS \
18844compiler \
18845lt_cv_sys_global_symbol_pipe \
18846lt_cv_sys_global_symbol_to_cdecl \
18847lt_cv_sys_global_symbol_to_c_name_address \
18848lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18849nm_file_list_spec \
18850lt_prog_compiler_no_builtin_flag \
18851lt_prog_compiler_pic \
18852lt_prog_compiler_wl \
18853lt_prog_compiler_static \
18854lt_cv_prog_compiler_c_o \
18855need_locks \
18856MANIFEST_TOOL \
18857DSYMUTIL \
18858NMEDIT \
18859LIPO \
18860OTOOL \
18861OTOOL64 \
18862shrext_cmds \
18863export_dynamic_flag_spec \
18864whole_archive_flag_spec \
18865compiler_needs_object \
18866with_gnu_ld \
18867allow_undefined_flag \
18868no_undefined_flag \
18869hardcode_libdir_flag_spec \
18870hardcode_libdir_separator \
18871exclude_expsyms \
18872include_expsyms \
18873file_list_spec \
18874variables_saved_for_relink \
18875libname_spec \
18876library_names_spec \
18877soname_spec \
18878install_override_mode \
18879finish_eval \
18880old_striplib \
18881striplib; do
18882 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18883 *[\\\\\\\`\\"\\\$]*)
18884 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18885 ;;
18886 *)
18887 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18888 ;;
18889 esac
18890done
18891
18892# Double-quote double-evaled strings.
18893for var in reload_cmds \
18894old_postinstall_cmds \
18895old_postuninstall_cmds \
18896old_archive_cmds \
18897extract_expsyms_cmds \
18898old_archive_from_new_cmds \
18899old_archive_from_expsyms_cmds \
18900archive_cmds \
18901archive_expsym_cmds \
18902module_cmds \
18903module_expsym_cmds \
18904export_symbols_cmds \
18905prelink_cmds \
18906postlink_cmds \
18907postinstall_cmds \
18908postuninstall_cmds \
18909finish_cmds \
18910sys_lib_search_path_spec \
18911sys_lib_dlsearch_path_spec; do
18912 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18913 *[\\\\\\\`\\"\\\$]*)
18914 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18915 ;;
18916 *)
18917 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18918 ;;
18919 esac
18920done
18921
18922ac_aux_dir='$ac_aux_dir'
18923xsi_shell='$xsi_shell'
18924lt_shell_append='$lt_shell_append'
18925
18926# See if we are running on zsh, and set the options which allow our
18927# commands through without removal of \ escapes INIT.
18928if test -n "\${ZSH_VERSION+set}" ; then
18929 setopt NO_GLOB_SUBST
18930fi
18931
18932
18933 PACKAGE='$PACKAGE'
18934 VERSION='$VERSION'
18935 TIMESTAMP='$TIMESTAMP'
18936 RM='$RM'
18937 ofile='$ofile'
18938
18939
18940
18941
18942
18943_ACEOF
18944
18945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18946
18947# Handling of arguments.
18948for ac_config_target in $ac_config_targets
18949do
18950 case $ac_config_target in
18951 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18952 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18953 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18954 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18955 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18956 "sylpheed.spec") CONFIG_FILES="$CONFIG_FILES sylpheed.spec" ;;
18957 "ac/Makefile") CONFIG_FILES="$CONFIG_FILES ac/Makefile" ;;
18958 "libsylph/Makefile") CONFIG_FILES="$CONFIG_FILES libsylph/Makefile" ;;
18959 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
18960 "src/sylpheed.rc") CONFIG_FILES="$CONFIG_FILES src/sylpheed.rc" ;;
18961 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18962 "src/icons/Makefile") CONFIG_FILES="$CONFIG_FILES src/icons/Makefile" ;;
18963 "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
18964 "plugin/attachment_tool/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/attachment_tool/Makefile" ;;
18965 "plugin/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/test/Makefile" ;;
18966 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18967 "faq/Makefile") CONFIG_FILES="$CONFIG_FILES faq/Makefile" ;;
18968 "faq/de/Makefile") CONFIG_FILES="$CONFIG_FILES faq/de/Makefile" ;;
18969 "faq/en/Makefile") CONFIG_FILES="$CONFIG_FILES faq/en/Makefile" ;;
18970 "faq/es/Makefile") CONFIG_FILES="$CONFIG_FILES faq/es/Makefile" ;;
18971 "faq/fr/Makefile") CONFIG_FILES="$CONFIG_FILES faq/fr/Makefile" ;;
18972 "faq/it/Makefile") CONFIG_FILES="$CONFIG_FILES faq/it/Makefile" ;;
18973 "manual/Makefile") CONFIG_FILES="$CONFIG_FILES manual/Makefile" ;;
18974 "manual/en/Makefile") CONFIG_FILES="$CONFIG_FILES manual/en/Makefile" ;;
18975 "manual/ja/Makefile") CONFIG_FILES="$CONFIG_FILES manual/ja/Makefile" ;;
18976 "nsis/Makefile") CONFIG_FILES="$CONFIG_FILES nsis/Makefile" ;;
18977 "macosx/Makefile") CONFIG_FILES="$CONFIG_FILES macosx/Makefile" ;;
18978 "macosx/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES macosx/bundle/Makefile" ;;
18979
18980 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18981 esac
18982done
18983
18984
18985# If the user did not use the arguments to specify the items to instantiate,
18986# then the envvar interface is used. Set only those that are not.
18987# We use the long form for the default assignment because of an extremely
18988# bizarre bug on SunOS 4.1.3.
18989if $ac_need_defaults; then
18990 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18991 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18992 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18993fi
18994
18995# Have a temporary directory for convenience. Make it in the build tree
18996# simply because there is no reason against having it here, and in addition,
18997# creating and moving files from /tmp can sometimes cause problems.
18998# Hook for its removal unless debugging.
18999# Note that there is a small window in which the directory will not be cleaned:
19000# after its creation but before its name has been assigned to `$tmp'.
19001$debug ||
19002{
19003 tmp= ac_tmp=
19004 trap 'exit_status=$?
19005 : "${ac_tmp:=$tmp}"
19006 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19007' 0
19008 trap 'as_fn_exit 1' 1 2 13 15
19009}
19010# Create a (secure) tmp directory for tmp files.
19011
19012{
19013 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19014 test -d "$tmp"
19015} ||
19016{
19017 tmp=./conf$$-$RANDOM
19018 (umask 077 && mkdir "$tmp")
19019} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19020ac_tmp=$tmp
19021
19022# Set up the scripts for CONFIG_FILES section.
19023# No need to generate them if there are no CONFIG_FILES.
19024# This happens for instance with `./config.status config.h'.
19025if test -n "$CONFIG_FILES"; then
19026
19027
19028ac_cr=`echo X | tr X '\015'`
19029# On cygwin, bash can eat \r inside `` if the user requested igncr.
19030# But we know of no other shell where ac_cr would be empty at this
19031# point, so we can use a bashism as a fallback.
19032if test "x$ac_cr" = x; then
19033 eval ac_cr=\$\'\\r\'
19034fi
19035ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19036if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19037 ac_cs_awk_cr='\\r'
19038else
19039 ac_cs_awk_cr=$ac_cr
19040fi
19041
19042echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19043_ACEOF
19044
19045
19046{
19047 echo "cat >conf$$subs.awk <<_ACEOF" &&
19048 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19049 echo "_ACEOF"
19050} >conf$$subs.sh ||
19051 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19052ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19053ac_delim='%!_!# '
19054for ac_last_try in false false false false false :; do
19055 . ./conf$$subs.sh ||
19056 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19057
19058 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19059 if test $ac_delim_n = $ac_delim_num; then
19060 break
19061 elif $ac_last_try; then
19062 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19063 else
19064 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19065 fi
19066done
19067rm -f conf$$subs.sh
19068
19069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19070cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19071_ACEOF
19072sed -n '
19073h
19074s/^/S["/; s/!.*/"]=/
19075p
19076g
19077s/^[^!]*!//
19078:repl
19079t repl
19080s/'"$ac_delim"'$//
19081t delim
19082:nl
19083h
19084s/\(.\{148\}\)..*/\1/
19085t more1
19086s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19087p
19088n
19089b repl
19090:more1
19091s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19092p
19093g
19094s/.\{148\}//
19095t nl
19096:delim
19097h
19098s/\(.\{148\}\)..*/\1/
19099t more2
19100s/["\\]/\\&/g; s/^/"/; s/$/"/
19101p
19102b
19103:more2
19104s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19105p
19106g
19107s/.\{148\}//
19108t delim
19109' <conf$$subs.awk | sed '
19110/^[^""]/{
19111 N
19112 s/\n//
19113}
19114' >>$CONFIG_STATUS || ac_write_fail=1
19115rm -f conf$$subs.awk
19116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19117_ACAWK
19118cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19119 for (key in S) S_is_set[key] = 1
19120 FS = ""
19121
19122}
19123{
19124 line = $ 0
19125 nfields = split(line, field, "@")
19126 substed = 0
19127 len = length(field[1])
19128 for (i = 2; i < nfields; i++) {
19129 key = field[i]
19130 keylen = length(key)
19131 if (S_is_set[key]) {
19132 value = S[key]
19133 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19134 len += length(value) + length(field[++i])
19135 substed = 1
19136 } else
19137 len += 1 + keylen
19138 }
19139
19140 print line
19141}
19142
19143_ACAWK
19144_ACEOF
19145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19146if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19147 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19148else
19149 cat
19150fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19151 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19152_ACEOF
19153
19154# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19155# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19156# trailing colons and then remove the whole line if VPATH becomes empty
19157# (actually we leave an empty line to preserve line numbers).
19158if test "x$srcdir" = x.; then
19159 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19160h
19161s///
19162s/^/:/
19163s/[ ]*$/:/
19164s/:\$(srcdir):/:/g
19165s/:\${srcdir}:/:/g
19166s/:@srcdir@:/:/g
19167s/^:*//
19168s/:*$//
19169x
19170s/\(=[ ]*\).*/\1/
19171G
19172s/\n//
19173s/^[^=]*=[ ]*$//
19174}'
19175fi
19176
19177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19178fi # test -n "$CONFIG_FILES"
19179
19180# Set up the scripts for CONFIG_HEADERS section.
19181# No need to generate them if there are no CONFIG_HEADERS.
19182# This happens for instance with `./config.status Makefile'.
19183if test -n "$CONFIG_HEADERS"; then
19184cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19185BEGIN {
19186_ACEOF
19187
19188# Transform confdefs.h into an awk script `defines.awk', embedded as
19189# here-document in config.status, that substitutes the proper values into
19190# config.h.in to produce config.h.
19191
19192# Create a delimiter string that does not exist in confdefs.h, to ease
19193# handling of long lines.
19194ac_delim='%!_!# '
19195for ac_last_try in false false :; do
19196 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19197 if test -z "$ac_tt"; then
19198 break
19199 elif $ac_last_try; then
19200 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19201 else
19202 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19203 fi
19204done
19205
19206# For the awk script, D is an array of macro values keyed by name,
19207# likewise P contains macro parameters if any. Preserve backslash
19208# newline sequences.
19209
19210ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19211sed -n '
19212s/.\{148\}/&'"$ac_delim"'/g
19213t rset
19214:rset
19215s/^[ ]*#[ ]*define[ ][ ]*/ /
19216t def
19217d
19218:def
19219s/\\$//
19220t bsnl
19221s/["\\]/\\&/g
19222s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19223D["\1"]=" \3"/p
19224s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19225d
19226:bsnl
19227s/["\\]/\\&/g
19228s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19229D["\1"]=" \3\\\\\\n"\\/p
19230t cont
19231s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19232t cont
19233d
19234:cont
19235n
19236s/.\{148\}/&'"$ac_delim"'/g
19237t clear
19238:clear
19239s/\\$//
19240t bsnlc
19241s/["\\]/\\&/g; s/^/"/; s/$/"/p
19242d
19243:bsnlc
19244s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19245b cont
19246' <confdefs.h | sed '
19247s/'"$ac_delim"'/"\\\
19248"/g' >>$CONFIG_STATUS || ac_write_fail=1
19249
19250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19251 for (key in D) D_is_set[key] = 1
19252 FS = ""
19253}
19254/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19255 line = \$ 0
19256 split(line, arg, " ")
19257 if (arg[1] == "#") {
19258 defundef = arg[2]
19259 mac1 = arg[3]
19260 } else {
19261 defundef = substr(arg[1], 2)
19262 mac1 = arg[2]
19263 }
19264 split(mac1, mac2, "(") #)
19265 macro = mac2[1]
19266 prefix = substr(line, 1, index(line, defundef) - 1)
19267 if (D_is_set[macro]) {
19268 # Preserve the white space surrounding the "#".
19269 print prefix "define", macro P[macro] D[macro]
19270 next
19271 } else {
19272 # Replace #undef with comments. This is necessary, for example,
19273 # in the case of _POSIX_SOURCE, which is predefined and required
19274 # on some systems where configure will not decide to define it.
19275 if (defundef == "undef") {
19276 print "/*", prefix defundef, macro, "*/"
19277 next
19278 }
19279 }
19280}
19281{ print }
19282_ACAWK
19283_ACEOF
19284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19285 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19286fi # test -n "$CONFIG_HEADERS"
19287
19288
19289eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19290shift
19291for ac_tag
19292do
19293 case $ac_tag in
19294 :[FHLC]) ac_mode=$ac_tag; continue;;
19295 esac
19296 case $ac_mode$ac_tag in
19297 :[FHL]*:*);;
19298 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19299 :[FH]-) ac_tag=-:-;;
19300 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19301 esac
19302 ac_save_IFS=$IFS
19303 IFS=:
19304 set x $ac_tag
19305 IFS=$ac_save_IFS
19306 shift
19307 ac_file=$1
19308 shift
19309
19310 case $ac_mode in
19311 :L) ac_source=$1;;
19312 :[FH])
19313 ac_file_inputs=
19314 for ac_f
19315 do
19316 case $ac_f in
19317 -) ac_f="$ac_tmp/stdin";;
19318 *) # Look for the file first in the build tree, then in the source tree
19319 # (if the path is not absolute). The absolute path cannot be DOS-style,
19320 # because $ac_f cannot contain `:'.
19321 test -f "$ac_f" ||
19322 case $ac_f in
19323 [\\/$]*) false;;
19324 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19325 esac ||
19326 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19327 esac
19328 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19329 as_fn_append ac_file_inputs " '$ac_f'"
19330 done
19331
19332 # Let's still pretend it is `configure' which instantiates (i.e., don't
19333 # use $as_me), people would be surprised to read:
19334 # /* config.h. Generated by config.status. */
19335 configure_input='Generated from '`
19336 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19337 `' by configure.'
19338 if test x"$ac_file" != x-; then
19339 configure_input="$ac_file. $configure_input"
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19341$as_echo "$as_me: creating $ac_file" >&6;}
19342 fi
19343 # Neutralize special characters interpreted by sed in replacement strings.
19344 case $configure_input in #(
19345 *\&* | *\|* | *\\* )
19346 ac_sed_conf_input=`$as_echo "$configure_input" |
19347 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19348 *) ac_sed_conf_input=$configure_input;;
19349 esac
19350
19351 case $ac_tag in
19352 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19354 esac
19355 ;;
19356 esac
19357
19358 ac_dir=`$as_dirname -- "$ac_file" ||
19359$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19360 X"$ac_file" : 'X\(//\)[^/]' \| \
19361 X"$ac_file" : 'X\(//\)$' \| \
19362 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19363$as_echo X"$ac_file" |
19364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19365 s//\1/
19366 q
19367 }
19368 /^X\(\/\/\)[^/].*/{
19369 s//\1/
19370 q
19371 }
19372 /^X\(\/\/\)$/{
19373 s//\1/
19374 q
19375 }
19376 /^X\(\/\).*/{
19377 s//\1/
19378 q
19379 }
19380 s/.*/./; q'`
19381 as_dir="$ac_dir"; as_fn_mkdir_p
19382 ac_builddir=.
19383
19384case "$ac_dir" in
19385.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19386*)
19387 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19388 # A ".." for each directory in $ac_dir_suffix.
19389 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19390 case $ac_top_builddir_sub in
19391 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19392 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19393 esac ;;
19394esac
19395ac_abs_top_builddir=$ac_pwd
19396ac_abs_builddir=$ac_pwd$ac_dir_suffix
19397# for backward compatibility:
19398ac_top_builddir=$ac_top_build_prefix
19399
19400case $srcdir in
19401 .) # We are building in place.
19402 ac_srcdir=.
19403 ac_top_srcdir=$ac_top_builddir_sub
19404 ac_abs_top_srcdir=$ac_pwd ;;
19405 [\\/]* | ?:[\\/]* ) # Absolute name.
19406 ac_srcdir=$srcdir$ac_dir_suffix;
19407 ac_top_srcdir=$srcdir
19408 ac_abs_top_srcdir=$srcdir ;;
19409 *) # Relative name.
19410 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19411 ac_top_srcdir=$ac_top_build_prefix$srcdir
19412 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19413esac
19414ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19415
19416
19417 case $ac_mode in
19418 :F)
19419 #
19420 # CONFIG_FILE
19421 #
19422
19423 case $INSTALL in
19424 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19425 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19426 esac
19427 ac_MKDIR_P=$MKDIR_P
19428 case $MKDIR_P in
19429 [\\/$]* | ?:[\\/]* ) ;;
19430 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19431 esac
19432_ACEOF
19433
19434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19435# If the template does not know about datarootdir, expand it.
19436# FIXME: This hack should be removed a few years after 2.60.
19437ac_datarootdir_hack=; ac_datarootdir_seen=
19438ac_sed_dataroot='
19439/datarootdir/ {
19440 p
19441 q
19442}
19443/@datadir@/p
19444/@docdir@/p
19445/@infodir@/p
19446/@localedir@/p
19447/@mandir@/p'
19448case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19449*datarootdir*) ac_datarootdir_seen=yes;;
19450*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19452$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19453_ACEOF
19454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19455 ac_datarootdir_hack='
19456 s&@datadir@&$datadir&g
19457 s&@docdir@&$docdir&g
19458 s&@infodir@&$infodir&g
19459 s&@localedir@&$localedir&g
19460 s&@mandir@&$mandir&g
19461 s&\\\${datarootdir}&$datarootdir&g' ;;
19462esac
19463_ACEOF
19464
19465# Neutralize VPATH when `$srcdir' = `.'.
19466# Shell code in configure.ac might set extrasub.
19467# FIXME: do we really want to maintain this feature?
19468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19469ac_sed_extra="$ac_vpsub
19470$extrasub
19471_ACEOF
19472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19473:t
19474/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19475s|@configure_input@|$ac_sed_conf_input|;t t
19476s&@top_builddir@&$ac_top_builddir_sub&;t t
19477s&@top_build_prefix@&$ac_top_build_prefix&;t t
19478s&@srcdir@&$ac_srcdir&;t t
19479s&@abs_srcdir@&$ac_abs_srcdir&;t t
19480s&@top_srcdir@&$ac_top_srcdir&;t t
19481s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19482s&@builddir@&$ac_builddir&;t t
19483s&@abs_builddir@&$ac_abs_builddir&;t t
19484s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19485s&@INSTALL@&$ac_INSTALL&;t t
19486s&@MKDIR_P@&$ac_MKDIR_P&;t t
19487$ac_datarootdir_hack
19488"
19489eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19490 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19491
19492test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19493 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19494 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19495 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19497which seems to be undefined. Please make sure it is defined" >&5
19498$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19499which seems to be undefined. Please make sure it is defined" >&2;}
19500
19501 rm -f "$ac_tmp/stdin"
19502 case $ac_file in
19503 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19504 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19505 esac \
19506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19507 ;;
19508 :H)
19509 #
19510 # CONFIG_HEADER
19511 #
19512 if test x"$ac_file" != x-; then
19513 {
19514 $as_echo "/* $configure_input */" \
19515 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19516 } >"$ac_tmp/config.h" \
19517 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19518 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19520$as_echo "$as_me: $ac_file is unchanged" >&6;}
19521 else
19522 rm -f "$ac_file"
19523 mv "$ac_tmp/config.h" "$ac_file" \
19524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19525 fi
19526 else
19527 $as_echo "/* $configure_input */" \
19528 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19529 || as_fn_error $? "could not create -" "$LINENO" 5
19530 fi
19531# Compute "$ac_file"'s index in $config_headers.
19532_am_arg="$ac_file"
19533_am_stamp_count=1
19534for _am_header in $config_headers :; do
19535 case $_am_header in
19536 $_am_arg | $_am_arg:* )
19537 break ;;
19538 * )
19539 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19540 esac
19541done
19542echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19543$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19544 X"$_am_arg" : 'X\(//\)[^/]' \| \
19545 X"$_am_arg" : 'X\(//\)$' \| \
19546 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19547$as_echo X"$_am_arg" |
19548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19549 s//\1/
19550 q
19551 }
19552 /^X\(\/\/\)[^/].*/{
19553 s//\1/
19554 q
19555 }
19556 /^X\(\/\/\)$/{
19557 s//\1/
19558 q
19559 }
19560 /^X\(\/\).*/{
19561 s//\1/
19562 q
19563 }
19564 s/.*/./; q'`/stamp-h$_am_stamp_count
19565 ;;
19566
19567 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19568$as_echo "$as_me: executing $ac_file commands" >&6;}
19569 ;;
19570 esac
19571
19572
19573 case $ac_file$ac_mode in
19574 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19575 # Older Autoconf quotes --file arguments for eval, but not when files
19576 # are listed without --file. Let's play safe and only enable the eval
19577 # if we detect the quoting.
19578 case $CONFIG_FILES in
19579 *\'*) eval set x "$CONFIG_FILES" ;;
19580 *) set x $CONFIG_FILES ;;
19581 esac
19582 shift
19583 for mf
19584 do
19585 # Strip MF so we end up with the name of the file.
19586 mf=`echo "$mf" | sed -e 's/:.*$//'`
19587 # Check whether this is an Automake generated Makefile or not.
19588 # We used to match only the files named 'Makefile.in', but
19589 # some people rename them; so instead we look at the file content.
19590 # Grep'ing the first line is not enough: some people post-process
19591 # each Makefile.in and add a new line on top of each file to say so.
19592 # Grep'ing the whole file is not good either: AIX grep has a line
19593 # limit of 2048, but all sed's we know have understand at least 4000.
19594 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19595 dirpart=`$as_dirname -- "$mf" ||
19596$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19597 X"$mf" : 'X\(//\)[^/]' \| \
19598 X"$mf" : 'X\(//\)$' \| \
19599 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19600$as_echo X"$mf" |
19601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19602 s//\1/
19603 q
19604 }
19605 /^X\(\/\/\)[^/].*/{
19606 s//\1/
19607 q
19608 }
19609 /^X\(\/\/\)$/{
19610 s//\1/
19611 q
19612 }
19613 /^X\(\/\).*/{
19614 s//\1/
19615 q
19616 }
19617 s/.*/./; q'`
19618 else
19619 continue
19620 fi
19621 # Extract the definition of DEPDIR, am__include, and am__quote
19622 # from the Makefile without running 'make'.
19623 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19624 test -z "$DEPDIR" && continue
19625 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19626 test -z "$am__include" && continue
19627 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19628 # Find all dependency output files, they are included files with
19629 # $(DEPDIR) in their names. We invoke sed twice because it is the
19630 # simplest approach to changing $(DEPDIR) to its actual value in the
19631 # expansion.
19632 for file in `sed -n "
19633 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19634 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19635 # Make sure the directory exists.
19636 test -f "$dirpart/$file" && continue
19637 fdir=`$as_dirname -- "$file" ||
19638$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19639 X"$file" : 'X\(//\)[^/]' \| \
19640 X"$file" : 'X\(//\)$' \| \
19641 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19642$as_echo X"$file" |
19643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19644 s//\1/
19645 q
19646 }
19647 /^X\(\/\/\)[^/].*/{
19648 s//\1/
19649 q
19650 }
19651 /^X\(\/\/\)$/{
19652 s//\1/
19653 q
19654 }
19655 /^X\(\/\).*/{
19656 s//\1/
19657 q
19658 }
19659 s/.*/./; q'`
19660 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19661 # echo "creating $dirpart/$file"
19662 echo '# dummy' > "$dirpart/$file"
19663 done
19664 done
19665}
19666 ;;
19667 "libtool":C)
19668
19669 # See if we are running on zsh, and set the options which allow our
19670 # commands through without removal of \ escapes.
19671 if test -n "${ZSH_VERSION+set}" ; then
19672 setopt NO_GLOB_SUBST
19673 fi
19674
19675 cfgfile="${ofile}T"
19676 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19677 $RM "$cfgfile"
19678
19679 cat <<_LT_EOF >> "$cfgfile"
19680#! $SHELL
19681
19682# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19683# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19684# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19685# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19686#
19687# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19688# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19689# Foundation, Inc.
19690# Written by Gordon Matzigkeit, 1996
19691#
19692# This file is part of GNU Libtool.
19693#
19694# GNU Libtool is free software; you can redistribute it and/or
19695# modify it under the terms of the GNU General Public License as
19696# published by the Free Software Foundation; either version 2 of
19697# the License, or (at your option) any later version.
19698#
19699# As a special exception to the GNU General Public License,
19700# if you distribute this file as part of a program or library that
19701# is built using GNU Libtool, you may include this file under the
19702# same distribution terms that you use for the rest of that program.
19703#
19704# GNU Libtool is distributed in the hope that it will be useful,
19705# but WITHOUT ANY WARRANTY; without even the implied warranty of
19706# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19707# GNU General Public License for more details.
19708#
19709# You should have received a copy of the GNU General Public License
19710# along with GNU Libtool; see the file COPYING. If not, a copy
19711# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19712# obtained by writing to the Free Software Foundation, Inc.,
19713# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19714
19715
19716# The names of the tagged configurations supported by this script.
19717available_tags=""
19718
19719# ### BEGIN LIBTOOL CONFIG
19720
19721# Whether or not to build static libraries.
19722build_old_libs=$enable_static
19723
19724# Which release of libtool.m4 was used?
19725macro_version=$macro_version
19726macro_revision=$macro_revision
19727
19728# Whether or not to build shared libraries.
19729build_libtool_libs=$enable_shared
19730
19731# What type of objects to build.
19732pic_mode=$pic_mode
19733
19734# Whether or not to optimize for fast installation.
19735fast_install=$enable_fast_install
19736
19737# Shell to use when invoking shell scripts.
19738SHELL=$lt_SHELL
19739
19740# An echo program that protects backslashes.
19741ECHO=$lt_ECHO
19742
19743# The PATH separator for the build system.
19744PATH_SEPARATOR=$lt_PATH_SEPARATOR
19745
19746# The host system.
19747host_alias=$host_alias
19748host=$host
19749host_os=$host_os
19750
19751# The build system.
19752build_alias=$build_alias
19753build=$build
19754build_os=$build_os
19755
19756# A sed program that does not truncate output.
19757SED=$lt_SED
19758
19759# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19760Xsed="\$SED -e 1s/^X//"
19761
19762# A grep program that handles long lines.
19763GREP=$lt_GREP
19764
19765# An ERE matcher.
19766EGREP=$lt_EGREP
19767
19768# A literal string matcher.
19769FGREP=$lt_FGREP
19770
19771# A BSD- or MS-compatible name lister.
19772NM=$lt_NM
19773
19774# Whether we need soft or hard links.
19775LN_S=$lt_LN_S
19776
19777# What is the maximum length of a command?
19778max_cmd_len=$max_cmd_len
19779
19780# Object file suffix (normally "o").
19781objext=$ac_objext
19782
19783# Executable file suffix (normally "").
19784exeext=$exeext
19785
19786# whether the shell understands "unset".
19787lt_unset=$lt_unset
19788
19789# turn spaces into newlines.
19790SP2NL=$lt_lt_SP2NL
19791
19792# turn newlines into spaces.
19793NL2SP=$lt_lt_NL2SP
19794
19795# convert \$build file names to \$host format.
19796to_host_file_cmd=$lt_cv_to_host_file_cmd
19797
19798# convert \$build files to toolchain format.
19799to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19800
19801# An object symbol dumper.
19802OBJDUMP=$lt_OBJDUMP
19803
19804# Method to check whether dependent libraries are shared objects.
19805deplibs_check_method=$lt_deplibs_check_method
19806
19807# Command to use when deplibs_check_method = "file_magic".
19808file_magic_cmd=$lt_file_magic_cmd
19809
19810# How to find potential files when deplibs_check_method = "file_magic".
19811file_magic_glob=$lt_file_magic_glob
19812
19813# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19814want_nocaseglob=$lt_want_nocaseglob
19815
19816# DLL creation program.
19817DLLTOOL=$lt_DLLTOOL
19818
19819# Command to associate shared and link libraries.
19820sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19821
19822# The archiver.
19823AR=$lt_AR
19824
19825# Flags to create an archive.
19826AR_FLAGS=$lt_AR_FLAGS
19827
19828# How to feed a file listing to the archiver.
19829archiver_list_spec=$lt_archiver_list_spec
19830
19831# A symbol stripping program.
19832STRIP=$lt_STRIP
19833
19834# Commands used to install an old-style archive.
19835RANLIB=$lt_RANLIB
19836old_postinstall_cmds=$lt_old_postinstall_cmds
19837old_postuninstall_cmds=$lt_old_postuninstall_cmds
19838
19839# Whether to use a lock for old archive extraction.
19840lock_old_archive_extraction=$lock_old_archive_extraction
19841
19842# A C compiler.
19843LTCC=$lt_CC
19844
19845# LTCC compiler flags.
19846LTCFLAGS=$lt_CFLAGS
19847
19848# Take the output of nm and produce a listing of raw symbols and C names.
19849global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19850
19851# Transform the output of nm in a proper C declaration.
19852global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19853
19854# Transform the output of nm in a C name address pair.
19855global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19856
19857# Transform the output of nm in a C name address pair when lib prefix is needed.
19858global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19859
19860# Specify filename containing input files for \$NM.
19861nm_file_list_spec=$lt_nm_file_list_spec
19862
19863# The root where to search for dependent libraries,and in which our libraries should be installed.
19864lt_sysroot=$lt_sysroot
19865
19866# The name of the directory that contains temporary libtool files.
19867objdir=$objdir
19868
19869# Used to examine libraries when file_magic_cmd begins with "file".
19870MAGIC_CMD=$MAGIC_CMD
19871
19872# Must we lock files when doing compilation?
19873need_locks=$lt_need_locks
19874
19875# Manifest tool.
19876MANIFEST_TOOL=$lt_MANIFEST_TOOL
19877
19878# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19879DSYMUTIL=$lt_DSYMUTIL
19880
19881# Tool to change global to local symbols on Mac OS X.
19882NMEDIT=$lt_NMEDIT
19883
19884# Tool to manipulate fat objects and archives on Mac OS X.
19885LIPO=$lt_LIPO
19886
19887# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19888OTOOL=$lt_OTOOL
19889
19890# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19891OTOOL64=$lt_OTOOL64
19892
19893# Old archive suffix (normally "a").
19894libext=$libext
19895
19896# Shared library suffix (normally ".so").
19897shrext_cmds=$lt_shrext_cmds
19898
19899# The commands to extract the exported symbol list from a shared archive.
19900extract_expsyms_cmds=$lt_extract_expsyms_cmds
19901
19902# Variables whose values should be saved in libtool wrapper scripts and
19903# restored at link time.
19904variables_saved_for_relink=$lt_variables_saved_for_relink
19905
19906# Do we need the "lib" prefix for modules?
19907need_lib_prefix=$need_lib_prefix
19908
19909# Do we need a version for libraries?
19910need_version=$need_version
19911
19912# Library versioning type.
19913version_type=$version_type
19914
19915# Shared library runtime path variable.
19916runpath_var=$runpath_var
19917
19918# Shared library path variable.
19919shlibpath_var=$shlibpath_var
19920
19921# Is shlibpath searched before the hard-coded library search path?
19922shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19923
19924# Format of library name prefix.
19925libname_spec=$lt_libname_spec
19926
19927# List of archive names. First name is the real one, the rest are links.
19928# The last name is the one that the linker finds with -lNAME
19929library_names_spec=$lt_library_names_spec
19930
19931# The coded name of the library, if different from the real name.
19932soname_spec=$lt_soname_spec
19933
19934# Permission mode override for installation of shared libraries.
19935install_override_mode=$lt_install_override_mode
19936
19937# Command to use after installation of a shared archive.
19938postinstall_cmds=$lt_postinstall_cmds
19939
19940# Command to use after uninstallation of a shared archive.
19941postuninstall_cmds=$lt_postuninstall_cmds
19942
19943# Commands used to finish a libtool library installation in a directory.
19944finish_cmds=$lt_finish_cmds
19945
19946# As "finish_cmds", except a single script fragment to be evaled but
19947# not shown.
19948finish_eval=$lt_finish_eval
19949
19950# Whether we should hardcode library paths into libraries.
19951hardcode_into_libs=$hardcode_into_libs
19952
19953# Compile-time system search path for libraries.
19954sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19955
19956# Run-time system search path for libraries.
19957sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19958
19959# Whether dlopen is supported.
19960dlopen_support=$enable_dlopen
19961
19962# Whether dlopen of programs is supported.
19963dlopen_self=$enable_dlopen_self
19964
19965# Whether dlopen of statically linked programs is supported.
19966dlopen_self_static=$enable_dlopen_self_static
19967
19968# Commands to strip libraries.
19969old_striplib=$lt_old_striplib
19970striplib=$lt_striplib
19971
19972
19973# The linker used to build libraries.
19974LD=$lt_LD
19975
19976# How to create reloadable object files.
19977reload_flag=$lt_reload_flag
19978reload_cmds=$lt_reload_cmds
19979
19980# Commands used to build an old-style archive.
19981old_archive_cmds=$lt_old_archive_cmds
19982
19983# A language specific compiler.
19984CC=$lt_compiler
19985
19986# Is the compiler the GNU compiler?
19987with_gcc=$GCC
19988
19989# Compiler flag to turn off builtin functions.
19990no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19991
19992# Additional compiler flags for building library objects.
19993pic_flag=$lt_lt_prog_compiler_pic
19994
19995# How to pass a linker flag through the compiler.
19996wl=$lt_lt_prog_compiler_wl
19997
19998# Compiler flag to prevent dynamic linking.
19999link_static_flag=$lt_lt_prog_compiler_static
20000
20001# Does compiler simultaneously support -c and -o options?
20002compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20003
20004# Whether or not to add -lc for building shared libraries.
20005build_libtool_need_lc=$archive_cmds_need_lc
20006
20007# Whether or not to disallow shared libs when runtime libs are static.
20008allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20009
20010# Compiler flag to allow reflexive dlopens.
20011export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20012
20013# Compiler flag to generate shared objects directly from archives.
20014whole_archive_flag_spec=$lt_whole_archive_flag_spec
20015
20016# Whether the compiler copes with passing no objects directly.
20017compiler_needs_object=$lt_compiler_needs_object
20018
20019# Create an old-style archive from a shared archive.
20020old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20021
20022# Create a temporary old-style archive to link instead of a shared archive.
20023old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20024
20025# Commands used to build a shared archive.
20026archive_cmds=$lt_archive_cmds
20027archive_expsym_cmds=$lt_archive_expsym_cmds
20028
20029# Commands used to build a loadable module if different from building
20030# a shared archive.
20031module_cmds=$lt_module_cmds
20032module_expsym_cmds=$lt_module_expsym_cmds
20033
20034# Whether we are building with GNU ld or not.
20035with_gnu_ld=$lt_with_gnu_ld
20036
20037# Flag that allows shared libraries with undefined symbols to be built.
20038allow_undefined_flag=$lt_allow_undefined_flag
20039
20040# Flag that enforces no undefined symbols.
20041no_undefined_flag=$lt_no_undefined_flag
20042
20043# Flag to hardcode \$libdir into a binary during linking.
20044# This must work even if \$libdir does not exist
20045hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20046
20047# Whether we need a single "-rpath" flag with a separated argument.
20048hardcode_libdir_separator=$lt_hardcode_libdir_separator
20049
20050# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20051# DIR into the resulting binary.
20052hardcode_direct=$hardcode_direct
20053
20054# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20055# DIR into the resulting binary and the resulting library dependency is
20056# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20057# library is relocated.
20058hardcode_direct_absolute=$hardcode_direct_absolute
20059
20060# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20061# into the resulting binary.
20062hardcode_minus_L=$hardcode_minus_L
20063
20064# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20065# into the resulting binary.
20066hardcode_shlibpath_var=$hardcode_shlibpath_var
20067
20068# Set to "yes" if building a shared library automatically hardcodes DIR
20069# into the library and all subsequent libraries and executables linked
20070# against it.
20071hardcode_automatic=$hardcode_automatic
20072
20073# Set to yes if linker adds runtime paths of dependent libraries
20074# to runtime path list.
20075inherit_rpath=$inherit_rpath
20076
20077# Whether libtool must link a program against all its dependency libraries.
20078link_all_deplibs=$link_all_deplibs
20079
20080# Set to "yes" if exported symbols are required.
20081always_export_symbols=$always_export_symbols
20082
20083# The commands to list exported symbols.
20084export_symbols_cmds=$lt_export_symbols_cmds
20085
20086# Symbols that should not be listed in the preloaded symbols.
20087exclude_expsyms=$lt_exclude_expsyms
20088
20089# Symbols that must always be exported.
20090include_expsyms=$lt_include_expsyms
20091
20092# Commands necessary for linking programs (against libraries) with templates.
20093prelink_cmds=$lt_prelink_cmds
20094
20095# Commands necessary for finishing linking programs.
20096postlink_cmds=$lt_postlink_cmds
20097
20098# Specify filename containing input files.
20099file_list_spec=$lt_file_list_spec
20100
20101# How to hardcode a shared library path into an executable.
20102hardcode_action=$hardcode_action
20103
20104# ### END LIBTOOL CONFIG
20105
20106_LT_EOF
20107
20108 case $host_os in
20109 aix3*)
20110 cat <<\_LT_EOF >> "$cfgfile"
20111# AIX sometimes has problems with the GCC collect2 program. For some
20112# reason, if we set the COLLECT_NAMES environment variable, the problems
20113# vanish in a puff of smoke.
20114if test "X${COLLECT_NAMES+set}" != Xset; then
20115 COLLECT_NAMES=
20116 export COLLECT_NAMES
20117fi
20118_LT_EOF
20119 ;;
20120 esac
20121
20122
20123ltmain="$ac_aux_dir/ltmain.sh"
20124
20125
20126 # We use sed instead of cat because bash on DJGPP gets confused if
20127 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20128 # text mode, it properly converts lines to CR/LF. This bash problem
20129 # is reportedly fixed, but why not run on old versions too?
20130 sed '$q' "$ltmain" >> "$cfgfile" \
20131 || (rm -f "$cfgfile"; exit 1)
20132
20133 if test x"$xsi_shell" = xyes; then
20134 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20135func_dirname ()\
20136{\
20137\ case ${1} in\
20138\ */*) func_dirname_result="${1%/*}${2}" ;;\
20139\ * ) func_dirname_result="${3}" ;;\
20140\ esac\
20141} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20142 && mv -f "$cfgfile.tmp" "$cfgfile" \
20143 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20144test 0 -eq $? || _lt_function_replace_fail=:
20145
20146
20147 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20148func_basename ()\
20149{\
20150\ func_basename_result="${1##*/}"\
20151} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20152 && mv -f "$cfgfile.tmp" "$cfgfile" \
20153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20154test 0 -eq $? || _lt_function_replace_fail=:
20155
20156
20157 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20158func_dirname_and_basename ()\
20159{\
20160\ case ${1} in\
20161\ */*) func_dirname_result="${1%/*}${2}" ;;\
20162\ * ) func_dirname_result="${3}" ;;\
20163\ esac\
20164\ func_basename_result="${1##*/}"\
20165} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20166 && mv -f "$cfgfile.tmp" "$cfgfile" \
20167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20168test 0 -eq $? || _lt_function_replace_fail=:
20169
20170
20171 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20172func_stripname ()\
20173{\
20174\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20175\ # positional parameters, so assign one to ordinary parameter first.\
20176\ func_stripname_result=${3}\
20177\ func_stripname_result=${func_stripname_result#"${1}"}\
20178\ func_stripname_result=${func_stripname_result%"${2}"}\
20179} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20180 && mv -f "$cfgfile.tmp" "$cfgfile" \
20181 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20182test 0 -eq $? || _lt_function_replace_fail=:
20183
20184
20185 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20186func_split_long_opt ()\
20187{\
20188\ func_split_long_opt_name=${1%%=*}\
20189\ func_split_long_opt_arg=${1#*=}\
20190} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20191 && mv -f "$cfgfile.tmp" "$cfgfile" \
20192 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20193test 0 -eq $? || _lt_function_replace_fail=:
20194
20195
20196 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20197func_split_short_opt ()\
20198{\
20199\ func_split_short_opt_arg=${1#??}\
20200\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20201} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20202 && mv -f "$cfgfile.tmp" "$cfgfile" \
20203 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20204test 0 -eq $? || _lt_function_replace_fail=:
20205
20206
20207 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20208func_lo2o ()\
20209{\
20210\ case ${1} in\
20211\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20212\ *) func_lo2o_result=${1} ;;\
20213\ esac\
20214} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20215 && mv -f "$cfgfile.tmp" "$cfgfile" \
20216 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20217test 0 -eq $? || _lt_function_replace_fail=:
20218
20219
20220 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20221func_xform ()\
20222{\
20223 func_xform_result=${1%.*}.lo\
20224} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20225 && mv -f "$cfgfile.tmp" "$cfgfile" \
20226 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20227test 0 -eq $? || _lt_function_replace_fail=:
20228
20229
20230 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20231func_arith ()\
20232{\
20233 func_arith_result=$(( $* ))\
20234} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20235 && mv -f "$cfgfile.tmp" "$cfgfile" \
20236 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20237test 0 -eq $? || _lt_function_replace_fail=:
20238
20239
20240 sed -e '/^func_len ()$/,/^} # func_len /c\
20241func_len ()\
20242{\
20243 func_len_result=${#1}\
20244} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20245 && mv -f "$cfgfile.tmp" "$cfgfile" \
20246 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20247test 0 -eq $? || _lt_function_replace_fail=:
20248
20249fi
20250
20251if test x"$lt_shell_append" = xyes; then
20252 sed -e '/^func_append ()$/,/^} # func_append /c\
20253func_append ()\
20254{\
20255 eval "${1}+=\\${2}"\
20256} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20257 && mv -f "$cfgfile.tmp" "$cfgfile" \
20258 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20259test 0 -eq $? || _lt_function_replace_fail=:
20260
20261
20262 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20263func_append_quoted ()\
20264{\
20265\ func_quote_for_eval "${2}"\
20266\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20267} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20268 && mv -f "$cfgfile.tmp" "$cfgfile" \
20269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20270test 0 -eq $? || _lt_function_replace_fail=:
20271
20272
20273 # Save a `func_append' function call where possible by direct use of '+='
20274 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20275 && mv -f "$cfgfile.tmp" "$cfgfile" \
20276 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20277 test 0 -eq $? || _lt_function_replace_fail=:
20278else
20279 # Save a `func_append' function call even when '+=' is not available
20280 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20281 && mv -f "$cfgfile.tmp" "$cfgfile" \
20282 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20283 test 0 -eq $? || _lt_function_replace_fail=:
20284fi
20285
20286if test x"$_lt_function_replace_fail" = x":"; then
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20288$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20289fi
20290
20291
20292 mv -f "$cfgfile" "$ofile" ||
20293 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20294 chmod +x "$ofile"
20295
20296 ;;
20297 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
20298 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
20299 esac ;;
20300
20301 esac
20302done # for ac_tag
20303
20304
20305as_fn_exit 0
20306_ACEOF
20307ac_clean_files=$ac_clean_files_save
20308
20309test $ac_write_fail = 0 ||
20310 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20311
20312
20313# configure is writing to config.log, and then calls config.status.
20314# config.status does its own redirection, appending to config.log.
20315# Unfortunately, on DOS this fails, as config.log is still kept open
20316# by configure, so config.status won't be able to write to it; its
20317# output is simply discarded. So we exec the FD to /dev/null,
20318# effectively closing config.log, so it can be properly (re)opened and
20319# appended to by config.status. When coming back to configure, we
20320# need to make the FD available again.
20321if test "$no_create" != yes; then
20322 ac_cs_success=:
20323 ac_config_status_args=
20324 test "$silent" = yes &&
20325 ac_config_status_args="$ac_config_status_args --quiet"
20326 exec 5>/dev/null
20327 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20328 exec 5>>config.log
20329 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20330 # would make configure fail if this is the last instruction.
20331 $ac_cs_success || as_fn_exit 1
20332fi
20333if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20335$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20336fi
20337
20338
20339echo ""
20340echo "$PACKAGE $VERSION"
20341echo ""
20342echo "GnuPG : $ac_cv_enable_gpgme"
20343echo "JPilot : $ac_cv_enable_jpilot"
20344echo "LDAP : $ac_cv_enable_ldap"
20345echo "OpenSSL : $ac_cv_enable_ssl"
20346echo "iconv : $am_cv_func_iconv"
20347echo "compface : $ac_cv_enable_compface"
20348echo "IPv6 : $ac_cv_enable_ipv6"
20349echo "GtkSpell : $ac_cv_enable_gtkspell"
20350echo "Oniguruma : $ac_cv_enable_oniguruma"
20351echo "GThread : $use_threads"
20352echo ""
20353echo "The binary will be installed in $prefix/bin"
20354echo ""
20355echo "Configure finished, type 'make' to build."