]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/tiff/configure
Add missing WXK constants for the control keys
[wxWidgets.git] / src / tiff / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for LibTIFF Software 3.8.2.
4#
5# Report bugs to <tiff@lists.maptools.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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 # Zsh 3.x and 4.x performs 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*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$lt_ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565ECHO=${lt_ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $ECHO works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<_LT_EOF
584$*
585_LT_EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$lt_ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
600 then
601 break
602 fi
603 done
604 fi
605
606 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 :
610 else
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
614 #
615 # So, first we look for a working echo in the user's PATH.
616
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
619 IFS="$lt_save_ifs"
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 ECHO="$dir/echo"
625 break
626 fi
627 done
628 IFS="$lt_save_ifs"
629
630 if test "X$ECHO" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
636 ECHO='print -r'
637 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
643 export CONFIG_SHELL
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645 else
646 # Try using printf.
647 ECHO='printf %s\n'
648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 # Cool, printf works
652 :
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 export CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
660 export SHELL
661 ECHO="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 ECHO="$CONFIG_SHELL $0 --fallback-echo"
667 else
668 # maybe with a smaller string...
669 prev=:
670
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
673 then
674 break
675 fi
676 prev="$cmd"
677 done
678
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 else
684 # Oops. We lost completely, so just stick with echo.
685 ECHO=echo
686 fi
687 fi
688 fi
689 fi
690 fi
691fi
692
693# Copy echo and quote the copy suitably for passing to libtool from
694# the Makefile, instead of quoting the original, which is used later.
695lt_ECHO=$ECHO
696if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698fi
699
700
701
702
703exec 7<&0 </dev/null 6>&1
704
705# Name of the host.
706# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707# so uname gets run too.
708ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
710#
711# Initializations.
712#
713ac_default_prefix=/usr/local
714ac_clean_files=
715ac_config_libobj_dir=.
716LIBOBJS=
717cross_compiling=no
718subdirs=
719MFLAGS=
720MAKEFLAGS=
721SHELL=${CONFIG_SHELL-/bin/sh}
722
723# Identity of this package.
724PACKAGE_NAME='LibTIFF Software'
725PACKAGE_TARNAME='tiff'
726PACKAGE_VERSION='3.8.2'
727PACKAGE_STRING='LibTIFF Software 3.8.2'
728PACKAGE_BUGREPORT='tiff@lists.maptools.org'
729
730# Factoring default headers for most tests.
731ac_includes_default="\
732#include <stdio.h>
733#ifdef HAVE_SYS_TYPES_H
734# include <sys/types.h>
735#endif
736#ifdef HAVE_SYS_STAT_H
737# include <sys/stat.h>
738#endif
739#ifdef STDC_HEADERS
740# include <stdlib.h>
741# include <stddef.h>
742#else
743# ifdef HAVE_STDLIB_H
744# include <stdlib.h>
745# endif
746#endif
747#ifdef HAVE_STRING_H
748# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
749# include <memory.h>
750# endif
751# include <string.h>
752#endif
753#ifdef HAVE_STRINGS_H
754# include <strings.h>
755#endif
756#ifdef HAVE_INTTYPES_H
757# include <inttypes.h>
758#endif
759#ifdef HAVE_STDINT_H
760# include <stdint.h>
761#endif
762#ifdef HAVE_UNISTD_H
763# include <unistd.h>
764#endif"
765
766ac_subst_vars='SHELL
767PATH_SEPARATOR
768PACKAGE_NAME
769PACKAGE_TARNAME
770PACKAGE_VERSION
771PACKAGE_STRING
772PACKAGE_BUGREPORT
773exec_prefix
774prefix
775program_transform_name
776bindir
777sbindir
778libexecdir
779datarootdir
780datadir
781sysconfdir
782sharedstatedir
783localstatedir
784includedir
785oldincludedir
786docdir
787infodir
788htmldir
789dvidir
790pdfdir
791psdir
792libdir
793localedir
794mandir
795DEFS
796ECHO_C
797ECHO_N
798ECHO_T
799LIBS
800build_alias
801host_alias
802target_alias
803build
804build_cpu
805build_vendor
806build_os
807host
808host_cpu
809host_vendor
810host_os
811INSTALL_PROGRAM
812INSTALL_SCRIPT
813INSTALL_DATA
814CYGPATH_W
815PACKAGE
816VERSION
817ACLOCAL
818AUTOCONF
819AUTOMAKE
820AUTOHEADER
821MAKEINFO
822install_sh
823STRIP
824INSTALL_STRIP_PROGRAM
825mkdir_p
826AWK
827SET_MAKE
828am__leading_dot
829AMTAR
830am__tar
831am__untar
832MAINTAINER_MODE_TRUE
833MAINTAINER_MODE_FALSE
834MAINT
835LIBTIFF_MAJOR_VERSION
836LIBTIFF_MINOR_VERSION
837LIBTIFF_MICRO_VERSION
838LIBTIFF_ALPHA_VERSION
839LIBTIFF_VERSION
840LIBTIFF_VERSION_INFO
841LIBTIFF_RELEASE_DATE
842CC
843CFLAGS
844LDFLAGS
845CPPFLAGS
846ac_ct_CC
847EXEEXT
848OBJEXT
849DEPDIR
850am__include
851am__quote
852AMDEP_TRUE
853AMDEP_FALSE
854AMDEPBACKSLASH
855CCDEPMODE
856am__fastdepCC_TRUE
857am__fastdepCC_FALSE
858LN_S
859LIBTOOL
860SED
861GREP
862EGREP
863FGREP
864LD
865DUMPBIN
866ac_ct_DUMPBIN
867NM
868AR
869RANLIB
870lt_ECHO
871CPP
872AS
873DLLTOOL
874OBJDUMP
875LIBOBJS
876HAVE_RPATH_TRUE
877HAVE_RPATH_FALSE
878LIBTIFF_DOCDIR
879HAVE_CXX_TRUE
880HAVE_CXX_FALSE
881XMKMF
882X_CFLAGS
883X_PRE_LIBS
884X_LIBS
885X_EXTRA_LIBS
886acx_pthread_config
887PTHREAD_CC
888PTHREAD_LIBS
889PTHREAD_CFLAGS
890GL_CFLAGS
891GL_LIBS
892CXX
893CXXFLAGS
894ac_ct_CXX
895CXXDEPMODE
896am__fastdepCXX_TRUE
897am__fastdepCXX_FALSE
898CXXCPP
899GLU_CFLAGS
900GLU_LIBS
901GLUT_CFLAGS
902GLUT_LIBS
903HAVE_OPENGL_TRUE
904HAVE_OPENGL_FALSE
905LIBDIR
906LTLIBOBJS'
907ac_subst_files=''
908 ac_precious_vars='build_alias
909host_alias
910target_alias
911CC
912CFLAGS
913LDFLAGS
914LIBS
915CPPFLAGS
916CPP
917XMKMF
918CXX
919CXXFLAGS
920CCC
921CXXCPP'
922
923
924# Initialize some variables set by options.
925ac_init_help=
926ac_init_version=false
927# The variables have the same names as the options, with
928# dashes changed to underlines.
929cache_file=/dev/null
930exec_prefix=NONE
931no_create=
932no_recursion=
933prefix=NONE
934program_prefix=NONE
935program_suffix=NONE
936program_transform_name=s,x,x,
937silent=
938site=
939srcdir=
940verbose=
941x_includes=NONE
942x_libraries=NONE
943
944# Installation directory options.
945# These are left unexpanded so users can "make install exec_prefix=/foo"
946# and all the variables that are supposed to be based on exec_prefix
947# by default will actually change.
948# Use braces instead of parens because sh, perl, etc. also accept them.
949# (The list follows the same order as the GNU Coding Standards.)
950bindir='${exec_prefix}/bin'
951sbindir='${exec_prefix}/sbin'
952libexecdir='${exec_prefix}/libexec'
953datarootdir='${prefix}/share'
954datadir='${datarootdir}'
955sysconfdir='${prefix}/etc'
956sharedstatedir='${prefix}/com'
957localstatedir='${prefix}/var'
958includedir='${prefix}/include'
959oldincludedir='/usr/include'
960docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961infodir='${datarootdir}/info'
962htmldir='${docdir}'
963dvidir='${docdir}'
964pdfdir='${docdir}'
965psdir='${docdir}'
966libdir='${exec_prefix}/lib'
967localedir='${datarootdir}/locale'
968mandir='${datarootdir}/man'
969
970ac_prev=
971ac_dashdash=
972for ac_option
973do
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
977 ac_prev=
978 continue
979 fi
980
981 case $ac_option in
982 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *) ac_optarg=yes ;;
984 esac
985
986 # Accept the important Cygnus configure options, so we can diagnose typos.
987
988 case $ac_dashdash$ac_option in
989 --)
990 ac_dashdash=yes ;;
991
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 ac_prev=bindir ;;
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 bindir=$ac_optarg ;;
996
997 -build | --build | --buil | --bui | --bu)
998 ac_prev=build_alias ;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias=$ac_optarg ;;
1001
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev=cache_file ;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007 cache_file=$ac_optarg ;;
1008
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
1011
1012 -datadir | --datadir | --datadi | --datad)
1013 ac_prev=datadir ;;
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir=$ac_optarg ;;
1016
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
1023
1024 -disable-* | --disable-*)
1025 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029 { (exit 1); exit 1; }; }
1030 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031 eval enable_$ac_feature=no ;;
1032
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1037
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
1042
1043 -enable-* | --enable-*)
1044 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1050 eval enable_$ac_feature=\$ac_optarg ;;
1051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
1059 exec_prefix=$ac_optarg ;;
1060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
1071
1072 -host | --host | --hos | --ho)
1073 ac_prev=host_alias ;;
1074 -host=* | --host=* | --hos=* | --ho=*)
1075 host_alias=$ac_optarg ;;
1076
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
1088 includedir=$ac_optarg ;;
1089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093 infodir=$ac_optarg ;;
1094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098 libdir=$ac_optarg ;;
1099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
1105 libexecdir=$ac_optarg ;;
1106
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
1113 | --localstate | --localstat | --localsta | --localst | --locals)
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117 localstatedir=$ac_optarg ;;
1118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122 mandir=$ac_optarg ;;
1123
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129 | --no-cr | --no-c | -n)
1130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143 oldincludedir=$ac_optarg ;;
1144
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148 prefix=$ac_optarg ;;
1149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155 program_prefix=$ac_optarg ;;
1156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162 program_suffix=$ac_optarg ;;
1163
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
1179 program_transform_name=$ac_optarg ;;
1180
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 ac_prev=sbindir ;;
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 | --sbi=* | --sb=*)
1199 sbindir=$ac_optarg ;;
1200
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1204 | --sha | --sh)
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 | --sha=* | --sh=*)
1210 sharedstatedir=$ac_optarg ;;
1211
1212 -site | --site | --sit)
1213 ac_prev=site ;;
1214 -site=* | --site=* | --sit=*)
1215 site=$ac_optarg ;;
1216
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 ac_prev=srcdir ;;
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220 srcdir=$ac_optarg ;;
1221
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227 sysconfdir=$ac_optarg ;;
1228
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
1230 ac_prev=target_alias ;;
1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232 target_alias=$ac_optarg ;;
1233
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 verbose=yes ;;
1236
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
1239
1240 -with-* | --with-*)
1241 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247 eval with_$ac_package=\$ac_optarg ;;
1248
1249 -without-* | --without-*)
1250 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_$ac_package=no ;;
1257
1258 --x)
1259 # Obsolete; use --with-x.
1260 with_x=yes ;;
1261
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263 | --x-incl | --x-inc | --x-in | --x-i)
1264 ac_prev=x_includes ;;
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267 x_includes=$ac_optarg ;;
1268
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271 ac_prev=x_libraries ;;
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274 x_libraries=$ac_optarg ;;
1275
1276 -*) { echo "$as_me: error: unrecognized option: $ac_option
1277Try \`$0 --help' for more information." >&2
1278 { (exit 1); exit 1; }; }
1279 ;;
1280
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1286 { (exit 1); exit 1; }; }
1287 eval $ac_envvar=\$ac_optarg
1288 export $ac_envvar ;;
1289
1290 *)
1291 # FIXME: should be removed in autoconf 3.0.
1292 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296 ;;
1297
1298 esac
1299done
1300
1301if test -n "$ac_prev"; then
1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303 { echo "$as_me: error: missing argument to $ac_option" >&2
1304 { (exit 1); exit 1; }; }
1305fi
1306
1307# Be sure to have absolute directory names.
1308for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1312do
1313 eval ac_val=\$$ac_var
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1319 { (exit 1); exit 1; }; }
1320done
1321
1322# There might be people who depend on the old broken behavior: `$host'
1323# used to hold the argument of --host etc.
1324# FIXME: To remove some day.
1325build=$build_alias
1326host=$host_alias
1327target=$target_alias
1328
1329# FIXME: To remove some day.
1330if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used." >&2
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1337 fi
1338fi
1339
1340ac_tool_prefix=
1341test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343test "$silent" = yes && exec 6>/dev/null
1344
1345
1346ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347ac_ls_di=`ls -di .` &&
1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 { echo "$as_me: error: Working directory cannot be determined" >&2
1350 { (exit 1); exit 1; }; }
1351test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 { echo "$as_me: error: pwd does not report name of working directory" >&2
1353 { (exit 1); exit 1; }; }
1354
1355
1356# Find the source files, if location was not specified.
1357if test -z "$srcdir"; then
1358 ac_srcdir_defaulted=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir=`$as_dirname -- "$0" ||
1361$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$0" : 'X\(//\)[^/]' \| \
1363 X"$0" : 'X\(//\)$' \| \
1364 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1365echo X"$0" |
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)[^/].*/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)$/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\).*/{
1379 s//\1/
1380 q
1381 }
1382 s/.*/./; q'`
1383 srcdir=$ac_confdir
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 srcdir=..
1386 fi
1387else
1388 ac_srcdir_defaulted=no
1389fi
1390if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1393 { (exit 1); exit 1; }; }
1394fi
1395ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396ac_abs_confdir=`(
1397 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1398 { (exit 1); exit 1; }; }
1399 pwd)`
1400# When building in place, set srcdir=.
1401if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403fi
1404# Remove unnecessary trailing slashes from srcdir.
1405# Double slashes in file names in object file debugging info
1406# mess up M-x gdb in Emacs.
1407case $srcdir in
1408*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409esac
1410for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415done
1416
1417#
1418# Report the --help message.
1419#
1420if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424\`configure' configures LibTIFF Software 3.8.2 to adapt to many kinds of systems.
1425
1426Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431Defaults for the options are specified in brackets.
1432
1433Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
1444Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1449
1450By default, \`make install' will install all the files in
1451\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453for instance \`--prefix=\$HOME'.
1454
1455For better control, use the options below.
1456
1457Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477_ACEOF
1478
1479 cat <<\_ACEOF
1480
1481Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485
1486X features:
1487 --x-includes=DIR X include files are in DIR
1488 --x-libraries=DIR X library files are in DIR
1489
1490System types:
1491 --build=BUILD configure for building on BUILD [guessed]
1492 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1493_ACEOF
1494fi
1495
1496if test -n "$ac_init_help"; then
1497 case $ac_init_help in
1498 short | recursive ) echo "Configuration of LibTIFF Software 3.8.2:";;
1499 esac
1500 cat <<\_ACEOF
1501
1502Optional Features:
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1505 --enable-maintainer-mode enable make rules and dependencies not useful
1506 (and sometimes confusing) to the casual installer
1507 --disable-dependency-tracking speeds up one-time build
1508 --enable-dependency-tracking do not reject slow dependency extractors
1509 --enable-shared[=PKGS] build shared libraries [default=yes]
1510 --enable-static[=PKGS] build static libraries [default=yes]
1511 --enable-fast-install[=PKGS]
1512 optimize for fast installation [default=yes]
1513 --disable-libtool-lock avoid locking (might break parallel builds)
1514 --enable-rpath Enable runtime linker paths (-R libtool option)
1515 --disable-largefile omit support for large files
1516 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms
1517 --disable-packbits disable support for Macintosh PackBits algorithm
1518 --disable-lzw disable support for LZW algorithm
1519 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm
1520 --disable-next disable support for NeXT 2-bit RLE algorithm
1521 --disable-logluv disable support for LogLuv high dynamic range
1522 encoding
1523 --disable-mdi disable support for Microsoft Document Imaging
1524 --disable-zlib disable Zlib usage (required for Deflate
1525 compression, enabled by default)
1526 --disable-pixarlog disable support for Pixar log-format algorithm
1527 (requires Zlib)
1528 --disable-jpeg disable IJG JPEG library usage (required for JPEG
1529 compression, enabled by default)
1530 --enable-old-jpeg enable support for Old JPEG compresson (read
1531 contrib/ojpeg/README first! Compilation fails with
1532 unpatched IJG JPEG library)
1533 --enable-cxx enable C++ stream API building (requires C++
1534 compiler)
1535 --disable-strip-chopping
1536 disable support for strip chopping (whether or not
1537 to convert single-strip uncompressed images to
1538 mutiple strips of specified size to reduce memory
1539 usage)
1540 --disable-extrasample-as-alpha
1541 the RGBA interface will treat a fourth sample with
1542 no EXTRASAMPLE_ value as being ASSOCALPHA. Many
1543 packages produce RGBA files but don't mark the alpha
1544 properly
1545 --disable-check-ycbcr-subsampling
1546 disable picking up YCbCr subsampling info from the
1547 JPEG data stream to support files lacking the tag
1548
1549Optional Packages:
1550 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1551 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1552 --with-pic try to use only PIC/non-PIC objects [default=use
1553 both]
1554 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1555 --with-docdir=DIR directory where documentation should be installed
1556 --with-zlib-include-dir=DIR
1557 location of Zlib headers
1558 --with-zlib-lib-dir=DIR location of Zlib library binary
1559 --with-jpeg-include-dir=DIR
1560 location of IJG JPEG library headers
1561 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary
1562 --with-x use the X Window System
1563 --with-apple-opengl-framework
1564 use Apple OpenGL framework (Mac OS X only)
1565 --with-default-strip-size=SIZE
1566 default size of the strip in bytes (when strip
1567 chopping enabled) [default=8192]
1568
1569Some influential environment variables:
1570 CC C compiler command
1571 CFLAGS C compiler flags
1572 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1573 nonstandard directory <lib dir>
1574 LIBS libraries to pass to the linker, e.g. -l<library>
1575 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1576 you have headers in a nonstandard directory <include dir>
1577 CPP C preprocessor
1578 XMKMF Path to xmkmf, Makefile generator for X Window System
1579 CXX C++ compiler command
1580 CXXFLAGS C++ compiler flags
1581 CXXCPP C++ preprocessor
1582
1583Use these variables to override the choices made by `configure' or to help
1584it to find libraries and programs with nonstandard names/locations.
1585
1586Report bugs to <tiff@lists.maptools.org>.
1587_ACEOF
1588ac_status=$?
1589fi
1590
1591if test "$ac_init_help" = "recursive"; then
1592 # If there are subdirs, report their specific --help.
1593 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594 test -d "$ac_dir" || continue
1595 ac_builddir=.
1596
1597case "$ac_dir" in
1598.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599*)
1600 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1601 # A ".." for each directory in $ac_dir_suffix.
1602 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606 esac ;;
1607esac
1608ac_abs_top_builddir=$ac_pwd
1609ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610# for backward compatibility:
1611ac_top_builddir=$ac_top_build_prefix
1612
1613case $srcdir in
1614 .) # We are building in place.
1615 ac_srcdir=.
1616 ac_top_srcdir=$ac_top_builddir_sub
1617 ac_abs_top_srcdir=$ac_pwd ;;
1618 [\\/]* | ?:[\\/]* ) # Absolute name.
1619 ac_srcdir=$srcdir$ac_dir_suffix;
1620 ac_top_srcdir=$srcdir
1621 ac_abs_top_srcdir=$srcdir ;;
1622 *) # Relative name.
1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626esac
1627ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628
1629 cd "$ac_dir" || { ac_status=$?; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure" --help=recursive
1637 else
1638 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639 fi || ac_status=$?
1640 cd "$ac_pwd" || { ac_status=$?; break; }
1641 done
1642fi
1643
1644test -n "$ac_init_help" && exit $ac_status
1645if $ac_init_version; then
1646 cat <<\_ACEOF
1647LibTIFF Software configure 3.8.2
1648generated by GNU Autoconf 2.61
1649
1650Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16512002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1652This configure script is free software; the Free Software Foundation
1653gives unlimited permission to copy, distribute and modify it.
1654_ACEOF
1655 exit
1656fi
1657cat >config.log <<_ACEOF
1658This file contains any messages produced by compilers while
1659running configure, to aid debugging if configure makes a mistake.
1660
1661It was created by LibTIFF Software $as_me 3.8.2, which was
1662generated by GNU Autoconf 2.61. Invocation command line was
1663
1664 $ $0 $@
1665
1666_ACEOF
1667exec 5>>config.log
1668{
1669cat <<_ASUNAME
1670## --------- ##
1671## Platform. ##
1672## --------- ##
1673
1674hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1675uname -m = `(uname -m) 2>/dev/null || echo unknown`
1676uname -r = `(uname -r) 2>/dev/null || echo unknown`
1677uname -s = `(uname -s) 2>/dev/null || echo unknown`
1678uname -v = `(uname -v) 2>/dev/null || echo unknown`
1679
1680/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1681/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1682
1683/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1684/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1685/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1686/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1687/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1688/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1689/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1690
1691_ASUNAME
1692
1693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694for as_dir in $PATH
1695do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 echo "PATH: $as_dir"
1699done
1700IFS=$as_save_IFS
1701
1702} >&5
1703
1704cat >&5 <<_ACEOF
1705
1706
1707## ----------- ##
1708## Core tests. ##
1709## ----------- ##
1710
1711_ACEOF
1712
1713
1714# Keep a trace of the command line.
1715# Strip out --no-create and --no-recursion so they do not pile up.
1716# Strip out --silent because we don't want to record it for future runs.
1717# Also quote any args containing shell meta-characters.
1718# Make two passes to allow for proper duplicate-argument suppression.
1719ac_configure_args=
1720ac_configure_args0=
1721ac_configure_args1=
1722ac_must_keep_next=false
1723for ac_pass in 1 2
1724do
1725 for ac_arg
1726 do
1727 case $ac_arg in
1728 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1730 | -silent | --silent | --silen | --sile | --sil)
1731 continue ;;
1732 *\'*)
1733 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1734 esac
1735 case $ac_pass in
1736 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1737 2)
1738 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1739 if test $ac_must_keep_next = true; then
1740 ac_must_keep_next=false # Got value, back to normal.
1741 else
1742 case $ac_arg in
1743 *=* | --config-cache | -C | -disable-* | --disable-* \
1744 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1745 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1746 | -with-* | --with-* | -without-* | --without-* | --x)
1747 case "$ac_configure_args0 " in
1748 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1749 esac
1750 ;;
1751 -* ) ac_must_keep_next=true ;;
1752 esac
1753 fi
1754 ac_configure_args="$ac_configure_args '$ac_arg'"
1755 ;;
1756 esac
1757 done
1758done
1759$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1760$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1761
1762# When interrupted or exit'd, cleanup temporary files, and complete
1763# config.log. We remove comments because anyway the quotes in there
1764# would cause problems or look ugly.
1765# WARNING: Use '\'' to represent an apostrophe within the trap.
1766# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1767trap 'exit_status=$?
1768 # Save into config.log some information that might help in debugging.
1769 {
1770 echo
1771
1772 cat <<\_ASBOX
1773## ---------------- ##
1774## Cache variables. ##
1775## ---------------- ##
1776_ASBOX
1777 echo
1778 # The following way of writing the cache mishandles newlines in values,
1779(
1780 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1781 eval ac_val=\$$ac_var
1782 case $ac_val in #(
1783 *${as_nl}*)
1784 case $ac_var in #(
1785 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1786echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1787 esac
1788 case $ac_var in #(
1789 _ | IFS | as_nl) ;; #(
1790 *) $as_unset $ac_var ;;
1791 esac ;;
1792 esac
1793 done
1794 (set) 2>&1 |
1795 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1796 *${as_nl}ac_space=\ *)
1797 sed -n \
1798 "s/'\''/'\''\\\\'\'''\''/g;
1799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1800 ;; #(
1801 *)
1802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1803 ;;
1804 esac |
1805 sort
1806)
1807 echo
1808
1809 cat <<\_ASBOX
1810## ----------------- ##
1811## Output variables. ##
1812## ----------------- ##
1813_ASBOX
1814 echo
1815 for ac_var in $ac_subst_vars
1816 do
1817 eval ac_val=\$$ac_var
1818 case $ac_val in
1819 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820 esac
1821 echo "$ac_var='\''$ac_val'\''"
1822 done | sort
1823 echo
1824
1825 if test -n "$ac_subst_files"; then
1826 cat <<\_ASBOX
1827## ------------------- ##
1828## File substitutions. ##
1829## ------------------- ##
1830_ASBOX
1831 echo
1832 for ac_var in $ac_subst_files
1833 do
1834 eval ac_val=\$$ac_var
1835 case $ac_val in
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 esac
1838 echo "$ac_var='\''$ac_val'\''"
1839 done | sort
1840 echo
1841 fi
1842
1843 if test -s confdefs.h; then
1844 cat <<\_ASBOX
1845## ----------- ##
1846## confdefs.h. ##
1847## ----------- ##
1848_ASBOX
1849 echo
1850 cat confdefs.h
1851 echo
1852 fi
1853 test "$ac_signal" != 0 &&
1854 echo "$as_me: caught signal $ac_signal"
1855 echo "$as_me: exit $exit_status"
1856 } >&5
1857 rm -f core *.core core.conftest.* &&
1858 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1859 exit $exit_status
1860' 0
1861for ac_signal in 1 2 13 15; do
1862 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1863done
1864ac_signal=0
1865
1866# confdefs.h avoids OS command line length limits that DEFS can exceed.
1867rm -f -r conftest* confdefs.h
1868
1869# Predefined preprocessor variables.
1870
1871cat >>confdefs.h <<_ACEOF
1872#define PACKAGE_NAME "$PACKAGE_NAME"
1873_ACEOF
1874
1875
1876cat >>confdefs.h <<_ACEOF
1877#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1878_ACEOF
1879
1880
1881cat >>confdefs.h <<_ACEOF
1882#define PACKAGE_VERSION "$PACKAGE_VERSION"
1883_ACEOF
1884
1885
1886cat >>confdefs.h <<_ACEOF
1887#define PACKAGE_STRING "$PACKAGE_STRING"
1888_ACEOF
1889
1890
1891cat >>confdefs.h <<_ACEOF
1892#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1893_ACEOF
1894
1895
1896# Let the site file select an alternate cache file if it wants to.
1897# Prefer explicitly selected file to automatically selected ones.
1898if test -n "$CONFIG_SITE"; then
1899 set x "$CONFIG_SITE"
1900elif test "x$prefix" != xNONE; then
1901 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1902else
1903 set x "$ac_default_prefix/share/config.site" \
1904 "$ac_default_prefix/etc/config.site"
1905fi
1906shift
1907for ac_site_file
1908do
1909 if test -r "$ac_site_file"; then
1910 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1911echo "$as_me: loading site script $ac_site_file" >&6;}
1912 sed 's/^/| /' "$ac_site_file" >&5
1913 . "$ac_site_file"
1914 fi
1915done
1916
1917if test -r "$cache_file"; then
1918 # Some versions of bash will fail to source /dev/null (special
1919 # files actually), so we avoid doing that.
1920 if test -f "$cache_file"; then
1921 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1922echo "$as_me: loading cache $cache_file" >&6;}
1923 case $cache_file in
1924 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1925 *) . "./$cache_file";;
1926 esac
1927 fi
1928else
1929 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1930echo "$as_me: creating cache $cache_file" >&6;}
1931 >$cache_file
1932fi
1933
1934# Check that the precious variables saved in the cache have kept the same
1935# value.
1936ac_cache_corrupted=false
1937for ac_var in $ac_precious_vars; do
1938 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1939 eval ac_new_set=\$ac_env_${ac_var}_set
1940 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1941 eval ac_new_val=\$ac_env_${ac_var}_value
1942 case $ac_old_set,$ac_new_set in
1943 set,)
1944 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1945echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1946 ac_cache_corrupted=: ;;
1947 ,set)
1948 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1949echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1950 ac_cache_corrupted=: ;;
1951 ,);;
1952 *)
1953 if test "x$ac_old_val" != "x$ac_new_val"; then
1954 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1955echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1956 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1957echo "$as_me: former value: $ac_old_val" >&2;}
1958 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1959echo "$as_me: current value: $ac_new_val" >&2;}
1960 ac_cache_corrupted=:
1961 fi;;
1962 esac
1963 # Pass precious variables to config.status.
1964 if test "$ac_new_set" = set; then
1965 case $ac_new_val in
1966 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1967 *) ac_arg=$ac_var=$ac_new_val ;;
1968 esac
1969 case " $ac_configure_args " in
1970 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1971 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1972 esac
1973 fi
1974done
1975if $ac_cache_corrupted; then
1976 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980 { (exit 1); exit 1; }; }
1981fi
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007ac_ext=c
2008ac_cpp='$CPP $CPPFLAGS'
2009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012
2013
2014ac_aux_dir=
2015for ac_dir in config "$srcdir"/config; do
2016 if test -f "$ac_dir/install-sh"; then
2017 ac_aux_dir=$ac_dir
2018 ac_install_sh="$ac_aux_dir/install-sh -c"
2019 break
2020 elif test -f "$ac_dir/install.sh"; then
2021 ac_aux_dir=$ac_dir
2022 ac_install_sh="$ac_aux_dir/install.sh -c"
2023 break
2024 elif test -f "$ac_dir/shtool"; then
2025 ac_aux_dir=$ac_dir
2026 ac_install_sh="$ac_aux_dir/shtool install -c"
2027 break
2028 fi
2029done
2030if test -z "$ac_aux_dir"; then
2031 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2032echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2033 { (exit 1); exit 1; }; }
2034fi
2035
2036# These three variables are undocumented and unsupported,
2037# and are intended to be withdrawn in a future Autoconf release.
2038# They can cause serious problems if a builder's source tree is in a directory
2039# whose full name contains unusual characters.
2040ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2043
2044
2045
2046ac_ext=c
2047ac_cpp='$CPP $CPPFLAGS'
2048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051
2052
2053# Make sure we can run config.sub.
2054$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2055 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2056echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2057 { (exit 1); exit 1; }; }
2058
2059{ echo "$as_me:$LINENO: checking build system type" >&5
2060echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2061if test "${ac_cv_build+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2063else
2064 ac_build_alias=$build_alias
2065test "x$ac_build_alias" = x &&
2066 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2067test "x$ac_build_alias" = x &&
2068 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2069echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2070 { (exit 1); exit 1; }; }
2071ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2072 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2073echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2074 { (exit 1); exit 1; }; }
2075
2076fi
2077{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2078echo "${ECHO_T}$ac_cv_build" >&6; }
2079case $ac_cv_build in
2080*-*-*) ;;
2081*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2082echo "$as_me: error: invalid value of canonical build" >&2;}
2083 { (exit 1); exit 1; }; };;
2084esac
2085build=$ac_cv_build
2086ac_save_IFS=$IFS; IFS='-'
2087set x $ac_cv_build
2088shift
2089build_cpu=$1
2090build_vendor=$2
2091shift; shift
2092# Remember, the first character of IFS is used to create $*,
2093# except with old shells:
2094build_os=$*
2095IFS=$ac_save_IFS
2096case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2097
2098
2099{ echo "$as_me:$LINENO: checking host system type" >&5
2100echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2101if test "${ac_cv_host+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
2104 if test "x$host_alias" = x; then
2105 ac_cv_host=$ac_cv_build
2106else
2107 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2109echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2111fi
2112
2113fi
2114{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2115echo "${ECHO_T}$ac_cv_host" >&6; }
2116case $ac_cv_host in
2117*-*-*) ;;
2118*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2119echo "$as_me: error: invalid value of canonical host" >&2;}
2120 { (exit 1); exit 1; }; };;
2121esac
2122host=$ac_cv_host
2123ac_save_IFS=$IFS; IFS='-'
2124set x $ac_cv_host
2125shift
2126host_cpu=$1
2127host_vendor=$2
2128shift; shift
2129# Remember, the first character of IFS is used to create $*,
2130# except with old shells:
2131host_os=$*
2132IFS=$ac_save_IFS
2133case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2134
2135
2136
2137am__api_version="1.9"
2138# Find a good install program. We prefer a C program (faster),
2139# so one script is as good as another. But avoid the broken or
2140# incompatible versions:
2141# SysV /etc/install, /usr/sbin/install
2142# SunOS /usr/etc/install
2143# IRIX /sbin/install
2144# AIX /bin/install
2145# AmigaOS /C/install, which installs bootblocks on floppy discs
2146# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2147# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2148# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2149# OS/2's system install, which has a completely different semantic
2150# ./install, which can be erroneously created by make from ./install.sh.
2151{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2152echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2153if test -z "$INSTALL"; then
2154if test "${ac_cv_path_install+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2156else
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158for as_dir in $PATH
2159do
2160 IFS=$as_save_IFS
2161 test -z "$as_dir" && as_dir=.
2162 # Account for people who put trailing slashes in PATH elements.
2163case $as_dir/ in
2164 ./ | .// | /cC/* | \
2165 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2166 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2167 /usr/ucb/* ) ;;
2168 *)
2169 # OSF1 and SCO ODT 3.0 have their own names for install.
2170 # Don't use installbsd from OSF since it installs stuff as root
2171 # by default.
2172 for ac_prog in ginstall scoinst install; do
2173 for ac_exec_ext in '' $ac_executable_extensions; do
2174 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2175 if test $ac_prog = install &&
2176 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2177 # AIX install. It has an incompatible calling convention.
2178 :
2179 elif test $ac_prog = install &&
2180 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2181 # program-specific install script used by HP pwplus--don't use.
2182 :
2183 else
2184 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2185 break 3
2186 fi
2187 fi
2188 done
2189 done
2190 ;;
2191esac
2192done
2193IFS=$as_save_IFS
2194
2195
2196fi
2197 if test "${ac_cv_path_install+set}" = set; then
2198 INSTALL=$ac_cv_path_install
2199 else
2200 # As a last resort, use the slow shell script. Don't cache a
2201 # value for INSTALL within a source directory, because that will
2202 # break other packages using the cache if that directory is
2203 # removed, or if the value is a relative name.
2204 INSTALL=$ac_install_sh
2205 fi
2206fi
2207{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2208echo "${ECHO_T}$INSTALL" >&6; }
2209
2210# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2211# It thinks the first close brace ends the variable substitution.
2212test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2213
2214test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2215
2216test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2217
2218{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2219echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2220# Just in case
2221sleep 1
2222echo timestamp > conftest.file
2223# Do `set' in a subshell so we don't clobber the current shell's
2224# arguments. Must try -L first in case configure is actually a
2225# symlink; some systems play weird games with the mod time of symlinks
2226# (eg FreeBSD returns the mod time of the symlink's containing
2227# directory).
2228if (
2229 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2230 if test "$*" = "X"; then
2231 # -L didn't work.
2232 set X `ls -t $srcdir/configure conftest.file`
2233 fi
2234 rm -f conftest.file
2235 if test "$*" != "X $srcdir/configure conftest.file" \
2236 && test "$*" != "X conftest.file $srcdir/configure"; then
2237
2238 # If neither matched, then we have a broken ls. This can happen
2239 # if, for instance, CONFIG_SHELL is bash and it inherits a
2240 # broken ls alias from the environment. This has actually
2241 # happened. Such a system could not be considered "sane".
2242 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2243alias in your environment" >&5
2244echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2245alias in your environment" >&2;}
2246 { (exit 1); exit 1; }; }
2247 fi
2248
2249 test "$2" = conftest.file
2250 )
2251then
2252 # Ok.
2253 :
2254else
2255 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2256Check your system clock" >&5
2257echo "$as_me: error: newly created file is older than distributed files!
2258Check your system clock" >&2;}
2259 { (exit 1); exit 1; }; }
2260fi
2261{ echo "$as_me:$LINENO: result: yes" >&5
2262echo "${ECHO_T}yes" >&6; }
2263test "$program_prefix" != NONE &&
2264 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2265# Use a double $ so make ignores it.
2266test "$program_suffix" != NONE &&
2267 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2268# Double any \ or $. echo might interpret backslashes.
2269# By default was `s,x,x', remove it if useless.
2270cat <<\_ACEOF >conftest.sed
2271s/[\\$]/&&/g;s/;s,x,x,$//
2272_ACEOF
2273program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2274rm -f conftest.sed
2275
2276# expand $ac_aux_dir to an absolute path
2277am_aux_dir=`cd $ac_aux_dir && pwd`
2278
2279test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2280# Use eval to expand $SHELL
2281if eval "$MISSING --run true"; then
2282 am_missing_run="$MISSING --run "
2283else
2284 am_missing_run=
2285 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2286echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2287fi
2288
2289if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2290 # We used to keeping the `.' as first argument, in order to
2291 # allow $(mkdir_p) to be used without argument. As in
2292 # $(mkdir_p) $(somedir)
2293 # where $(somedir) is conditionally defined. However this is wrong
2294 # for two reasons:
2295 # 1. if the package is installed by a user who cannot write `.'
2296 # make install will fail,
2297 # 2. the above comment should most certainly read
2298 # $(mkdir_p) $(DESTDIR)$(somedir)
2299 # so it does not work when $(somedir) is undefined and
2300 # $(DESTDIR) is not.
2301 # To support the latter case, we have to write
2302 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2303 # so the `.' trick is pointless.
2304 mkdir_p='mkdir -p --'
2305else
2306 # On NextStep and OpenStep, the `mkdir' command does not
2307 # recognize any option. It will interpret all options as
2308 # directories to create, and then abort because `.' already
2309 # exists.
2310 for d in ./-p ./--version;
2311 do
2312 test -d $d && rmdir $d
2313 done
2314 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2315 if test -f "$ac_aux_dir/mkinstalldirs"; then
2316 mkdir_p='$(mkinstalldirs)'
2317 else
2318 mkdir_p='$(install_sh) -d'
2319 fi
2320fi
2321
2322for ac_prog in gawk mawk nawk awk
2323do
2324 # Extract the first word of "$ac_prog", so it can be a program name with args.
2325set dummy $ac_prog; ac_word=$2
2326{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2328if test "${ac_cv_prog_AWK+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330else
2331 if test -n "$AWK"; then
2332 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2333else
2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335for as_dir in $PATH
2336do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_AWK="$ac_prog"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2344 fi
2345done
2346done
2347IFS=$as_save_IFS
2348
2349fi
2350fi
2351AWK=$ac_cv_prog_AWK
2352if test -n "$AWK"; then
2353 { echo "$as_me:$LINENO: result: $AWK" >&5
2354echo "${ECHO_T}$AWK" >&6; }
2355else
2356 { echo "$as_me:$LINENO: result: no" >&5
2357echo "${ECHO_T}no" >&6; }
2358fi
2359
2360
2361 test -n "$AWK" && break
2362done
2363
2364{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2365echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2366set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2367if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370 cat >conftest.make <<\_ACEOF
2371SHELL = /bin/sh
2372all:
2373 @echo '@@@%%%=$(MAKE)=@@@%%%'
2374_ACEOF
2375# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2376case `${MAKE-make} -f conftest.make 2>/dev/null` in
2377 *@@@%%%=?*=@@@%%%*)
2378 eval ac_cv_prog_make_${ac_make}_set=yes;;
2379 *)
2380 eval ac_cv_prog_make_${ac_make}_set=no;;
2381esac
2382rm -f conftest.make
2383fi
2384if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2385 { echo "$as_me:$LINENO: result: yes" >&5
2386echo "${ECHO_T}yes" >&6; }
2387 SET_MAKE=
2388else
2389 { echo "$as_me:$LINENO: result: no" >&5
2390echo "${ECHO_T}no" >&6; }
2391 SET_MAKE="MAKE=${MAKE-make}"
2392fi
2393
2394rm -rf .tst 2>/dev/null
2395mkdir .tst 2>/dev/null
2396if test -d .tst; then
2397 am__leading_dot=.
2398else
2399 am__leading_dot=_
2400fi
2401rmdir .tst 2>/dev/null
2402
2403# test to see if srcdir already configured
2404if test "`cd $srcdir && pwd`" != "`pwd`" &&
2405 test -f $srcdir/config.status; then
2406 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2407echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2408 { (exit 1); exit 1; }; }
2409fi
2410
2411# test whether we have cygpath
2412if test -z "$CYGPATH_W"; then
2413 if (cygpath --version) >/dev/null 2>/dev/null; then
2414 CYGPATH_W='cygpath -w'
2415 else
2416 CYGPATH_W=echo
2417 fi
2418fi
2419
2420
2421# Define the identity of the package.
2422 PACKAGE='tiff'
2423 VERSION='3.8.2'
2424
2425
2426cat >>confdefs.h <<_ACEOF
2427#define PACKAGE "$PACKAGE"
2428_ACEOF
2429
2430
2431cat >>confdefs.h <<_ACEOF
2432#define VERSION "$VERSION"
2433_ACEOF
2434
2435# Some tools Automake needs.
2436
2437ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2438
2439
2440AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2441
2442
2443AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2444
2445
2446AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2447
2448
2449MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2450
2451install_sh=${install_sh-"$am_aux_dir/install-sh"}
2452
2453# Installed binaries are usually stripped using `strip' when the user
2454# run `make install-strip'. However `strip' might not be the right
2455# tool to use in cross-compilation environments, therefore Automake
2456# will honor the `STRIP' environment variable to overrule this program.
2457if test "$cross_compiling" != no; then
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2460set dummy ${ac_tool_prefix}strip; ac_word=$2
2461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463if test "${ac_cv_prog_STRIP+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465else
2466 if test -n "$STRIP"; then
2467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2468else
2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2479 fi
2480done
2481done
2482IFS=$as_save_IFS
2483
2484fi
2485fi
2486STRIP=$ac_cv_prog_STRIP
2487if test -n "$STRIP"; then
2488 { echo "$as_me:$LINENO: result: $STRIP" >&5
2489echo "${ECHO_T}$STRIP" >&6; }
2490else
2491 { echo "$as_me:$LINENO: result: no" >&5
2492echo "${ECHO_T}no" >&6; }
2493fi
2494
2495
2496fi
2497if test -z "$ac_cv_prog_STRIP"; then
2498 ac_ct_STRIP=$STRIP
2499 # Extract the first word of "strip", so it can be a program name with args.
2500set dummy strip; ac_word=$2
2501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2505else
2506 if test -n "$ac_ct_STRIP"; then
2507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2508else
2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_prog_ac_ct_STRIP="strip"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2519 fi
2520done
2521done
2522IFS=$as_save_IFS
2523
2524fi
2525fi
2526ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2527if test -n "$ac_ct_STRIP"; then
2528 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2529echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2530else
2531 { echo "$as_me:$LINENO: result: no" >&5
2532echo "${ECHO_T}no" >&6; }
2533fi
2534
2535 if test "x$ac_ct_STRIP" = x; then
2536 STRIP=":"
2537 else
2538 case $cross_compiling:$ac_tool_warned in
2539yes:)
2540{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2541whose name does not start with the host triplet. If you think this
2542configuration is useful to you, please write to autoconf@gnu.org." >&5
2543echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2544whose name does not start with the host triplet. If you think this
2545configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2546ac_tool_warned=yes ;;
2547esac
2548 STRIP=$ac_ct_STRIP
2549 fi
2550else
2551 STRIP="$ac_cv_prog_STRIP"
2552fi
2553
2554fi
2555INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2556
2557# We need awk for the "check" target. The system "awk" is bad on
2558# some platforms.
2559# Always define AMTAR for backward compatibility.
2560
2561AMTAR=${AMTAR-"${am_missing_run}tar"}
2562
2563am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2564
2565
2566
2567
2568
2569{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2570echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2571 # Check whether --enable-maintainer-mode was given.
2572if test "${enable_maintainer_mode+set}" = set; then
2573 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2574else
2575 USE_MAINTAINER_MODE=no
2576fi
2577
2578 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2579echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2580
2581
2582if test $USE_MAINTAINER_MODE = yes; then
2583 MAINTAINER_MODE_TRUE=
2584 MAINTAINER_MODE_FALSE='#'
2585else
2586 MAINTAINER_MODE_TRUE='#'
2587 MAINTAINER_MODE_FALSE=
2588fi
2589
2590 MAINT=$MAINTAINER_MODE_TRUE
2591
2592
2593
2594LIBTIFF_MAJOR_VERSION=3
2595LIBTIFF_MINOR_VERSION=8
2596LIBTIFF_MICRO_VERSION=2
2597LIBTIFF_ALPHA_VERSION=
2598LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
2599LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"`
2600
2601# This is a special hack for OpenBSD and MirOS systems. The dynamic linker
2602# in OpenBSD uses some special semantics for shared libraries. Their soname
2603# contains only two numbers, major and minor.
2604# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details.
2605case "$target_os" in
2606 openbsd* | mirbsd*)
2607 LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION:0
2608 ;;
2609 *)
2610 LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
2611 ;;
2612esac
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622ac_ext=c
2623ac_cpp='$CPP $CPPFLAGS'
2624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627if test -n "$ac_tool_prefix"; then
2628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2629set dummy ${ac_tool_prefix}gcc; ac_word=$2
2630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2632if test "${ac_cv_prog_CC+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634else
2635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2637else
2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639for as_dir in $PATH
2640do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2648 fi
2649done
2650done
2651IFS=$as_save_IFS
2652
2653fi
2654fi
2655CC=$ac_cv_prog_CC
2656if test -n "$CC"; then
2657 { echo "$as_me:$LINENO: result: $CC" >&5
2658echo "${ECHO_T}$CC" >&6; }
2659else
2660 { echo "$as_me:$LINENO: result: no" >&5
2661echo "${ECHO_T}no" >&6; }
2662fi
2663
2664
2665fi
2666if test -z "$ac_cv_prog_CC"; then
2667 ac_ct_CC=$CC
2668 # Extract the first word of "gcc", so it can be a program name with args.
2669set dummy gcc; ac_word=$2
2670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2674else
2675 if test -n "$ac_ct_CC"; then
2676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2677else
2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_ac_ct_CC="gcc"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2688 fi
2689done
2690done
2691IFS=$as_save_IFS
2692
2693fi
2694fi
2695ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696if test -n "$ac_ct_CC"; then
2697 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698echo "${ECHO_T}$ac_ct_CC" >&6; }
2699else
2700 { echo "$as_me:$LINENO: result: no" >&5
2701echo "${ECHO_T}no" >&6; }
2702fi
2703
2704 if test "x$ac_ct_CC" = x; then
2705 CC=""
2706 else
2707 case $cross_compiling:$ac_tool_warned in
2708yes:)
2709{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2710whose name does not start with the host triplet. If you think this
2711configuration is useful to you, please write to autoconf@gnu.org." >&5
2712echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2713whose name does not start with the host triplet. If you think this
2714configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2715ac_tool_warned=yes ;;
2716esac
2717 CC=$ac_ct_CC
2718 fi
2719else
2720 CC="$ac_cv_prog_CC"
2721fi
2722
2723if test -z "$CC"; then
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2726set dummy ${ac_tool_prefix}cc; ac_word=$2
2727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2729if test "${ac_cv_prog_CC+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2731else
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2734else
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_CC="${ac_tool_prefix}cc"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746done
2747done
2748IFS=$as_save_IFS
2749
2750fi
2751fi
2752CC=$ac_cv_prog_CC
2753if test -n "$CC"; then
2754 { echo "$as_me:$LINENO: result: $CC" >&5
2755echo "${ECHO_T}$CC" >&6; }
2756else
2757 { echo "$as_me:$LINENO: result: no" >&5
2758echo "${ECHO_T}no" >&6; }
2759fi
2760
2761
2762 fi
2763fi
2764if test -z "$CC"; then
2765 # Extract the first word of "cc", so it can be a program name with args.
2766set dummy cc; ac_word=$2
2767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2769if test "${ac_cv_prog_CC+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2771else
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2774else
2775 ac_prog_rejected=no
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2784 ac_prog_rejected=yes
2785 continue
2786 fi
2787 ac_cv_prog_CC="cc"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791done
2792done
2793IFS=$as_save_IFS
2794
2795if test $ac_prog_rejected = yes; then
2796 # We found a bogon in the path, so make sure we never use it.
2797 set dummy $ac_cv_prog_CC
2798 shift
2799 if test $# != 0; then
2800 # We chose a different compiler from the bogus one.
2801 # However, it has the same basename, so the bogon will be chosen
2802 # first if we set CC to just the basename; use the full file name.
2803 shift
2804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2805 fi
2806fi
2807fi
2808fi
2809CC=$ac_cv_prog_CC
2810if test -n "$CC"; then
2811 { echo "$as_me:$LINENO: result: $CC" >&5
2812echo "${ECHO_T}$CC" >&6; }
2813else
2814 { echo "$as_me:$LINENO: result: no" >&5
2815echo "${ECHO_T}no" >&6; }
2816fi
2817
2818
2819fi
2820if test -z "$CC"; then
2821 if test -n "$ac_tool_prefix"; then
2822 for ac_prog in cl.exe
2823 do
2824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2828if test "${ac_cv_prog_CC+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830else
2831 if test -n "$CC"; then
2832 ac_cv_prog_CC="$CC" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845done
2846done
2847IFS=$as_save_IFS
2848
2849fi
2850fi
2851CC=$ac_cv_prog_CC
2852if test -n "$CC"; then
2853 { echo "$as_me:$LINENO: result: $CC" >&5
2854echo "${ECHO_T}$CC" >&6; }
2855else
2856 { echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6; }
2858fi
2859
2860
2861 test -n "$CC" && break
2862 done
2863fi
2864if test -z "$CC"; then
2865 ac_ct_CC=$CC
2866 for ac_prog in cl.exe
2867do
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869set dummy $ac_prog; ac_word=$2
2870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2872if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874else
2875 if test -n "$ac_ct_CC"; then
2876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2877else
2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885 ac_cv_prog_ac_ct_CC="$ac_prog"
2886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889done
2890done
2891IFS=$as_save_IFS
2892
2893fi
2894fi
2895ac_ct_CC=$ac_cv_prog_ac_ct_CC
2896if test -n "$ac_ct_CC"; then
2897 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2898echo "${ECHO_T}$ac_ct_CC" >&6; }
2899else
2900 { echo "$as_me:$LINENO: result: no" >&5
2901echo "${ECHO_T}no" >&6; }
2902fi
2903
2904
2905 test -n "$ac_ct_CC" && break
2906done
2907
2908 if test "x$ac_ct_CC" = x; then
2909 CC=""
2910 else
2911 case $cross_compiling:$ac_tool_warned in
2912yes:)
2913{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2914whose name does not start with the host triplet. If you think this
2915configuration is useful to you, please write to autoconf@gnu.org." >&5
2916echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2917whose name does not start with the host triplet. If you think this
2918configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2919ac_tool_warned=yes ;;
2920esac
2921 CC=$ac_ct_CC
2922 fi
2923fi
2924
2925fi
2926
2927
2928test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2929See \`config.log' for more details." >&5
2930echo "$as_me: error: no acceptable C compiler found in \$PATH
2931See \`config.log' for more details." >&2;}
2932 { (exit 1); exit 1; }; }
2933
2934# Provide some information about the compiler.
2935echo "$as_me:$LINENO: checking for C compiler version" >&5
2936ac_compiler=`set X $ac_compile; echo $2`
2937{ (ac_try="$ac_compiler --version >&5"
2938case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler --version >&5") 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947{ (ac_try="$ac_compiler -v >&5"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compiler -v >&5") 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2957{ (ac_try="$ac_compiler -V >&5"
2958case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compiler -V >&5") 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }
2967
2968cat >conftest.$ac_ext <<_ACEOF
2969/* confdefs.h. */
2970_ACEOF
2971cat confdefs.h >>conftest.$ac_ext
2972cat >>conftest.$ac_ext <<_ACEOF
2973/* end confdefs.h. */
2974
2975int
2976main ()
2977{
2978
2979 ;
2980 return 0;
2981}
2982_ACEOF
2983ac_clean_files_save=$ac_clean_files
2984ac_clean_files="$ac_clean_files a.out a.exe b.out"
2985# Try to create an executable without -o first, disregard a.out.
2986# It will help us diagnose broken compilers, and finding out an intuition
2987# of exeext.
2988{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2989echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2990ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2991#
2992# List of possible output files, starting from the most likely.
2993# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2994# only as a last resort. b.out is created by i960 compilers.
2995ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2996#
2997# The IRIX 6 linker writes into existing files which may not be
2998# executable, retaining their permissions. Remove them first so a
2999# subsequent execution test works.
3000ac_rmfiles=
3001for ac_file in $ac_files
3002do
3003 case $ac_file in
3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3005 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3006 esac
3007done
3008rm -f $ac_rmfiles
3009
3010if { (ac_try="$ac_link_default"
3011case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014esac
3015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_link_default") 2>&5
3017 ac_status=$?
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; then
3020 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3021# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3022# in a Makefile. We should not override ac_cv_exeext if it was cached,
3023# so that the user can short-circuit this test for compilers unknown to
3024# Autoconf.
3025for ac_file in $ac_files ''
3026do
3027 test -f "$ac_file" || continue
3028 case $ac_file in
3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3030 ;;
3031 [ab].out )
3032 # We found the default executable, but exeext='' is most
3033 # certainly right.
3034 break;;
3035 *.* )
3036 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3037 then :; else
3038 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3039 fi
3040 # We set ac_cv_exeext here because the later test for it is not
3041 # safe: cross compilers may not add the suffix if given an `-o'
3042 # argument, so we may need to know it at that point already.
3043 # Even if this section looks crufty: it has the advantage of
3044 # actually working.
3045 break;;
3046 * )
3047 break;;
3048 esac
3049done
3050test "$ac_cv_exeext" = no && ac_cv_exeext=
3051
3052else
3053 ac_file=''
3054fi
3055
3056{ echo "$as_me:$LINENO: result: $ac_file" >&5
3057echo "${ECHO_T}$ac_file" >&6; }
3058if test -z "$ac_file"; then
3059 echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3063See \`config.log' for more details." >&5
3064echo "$as_me: error: C compiler cannot create executables
3065See \`config.log' for more details." >&2;}
3066 { (exit 77); exit 77; }; }
3067fi
3068
3069ac_exeext=$ac_cv_exeext
3070
3071# Check that the compiler produces executables we can run. If not, either
3072# the compiler is broken, or we cross compile.
3073{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3074echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3075# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3076# If not cross compiling, check that we can run a simple program.
3077if test "$cross_compiling" != yes; then
3078 if { ac_try='./$ac_file'
3079 { (case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082esac
3083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_try") 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 cross_compiling=no
3089 else
3090 if test "$cross_compiling" = maybe; then
3091 cross_compiling=yes
3092 else
3093 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3094If you meant to cross compile, use \`--host'.
3095See \`config.log' for more details." >&5
3096echo "$as_me: error: cannot run C compiled programs.
3097If you meant to cross compile, use \`--host'.
3098See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3100 fi
3101 fi
3102fi
3103{ echo "$as_me:$LINENO: result: yes" >&5
3104echo "${ECHO_T}yes" >&6; }
3105
3106rm -f a.out a.exe conftest$ac_cv_exeext b.out
3107ac_clean_files=$ac_clean_files_save
3108# Check that the compiler produces executables we can run. If not, either
3109# the compiler is broken, or we cross compile.
3110{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3111echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3112{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3113echo "${ECHO_T}$cross_compiling" >&6; }
3114
3115{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3116echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3117if { (ac_try="$ac_link"
3118case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_link") 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; then
3127 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3128# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3129# work properly (i.e., refer to `conftest.exe'), while it won't with
3130# `rm'.
3131for ac_file in conftest.exe conftest conftest.*; do
3132 test -f "$ac_file" || continue
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3135 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 break;;
3137 * ) break;;
3138 esac
3139done
3140else
3141 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3142See \`config.log' for more details." >&5
3143echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3144See \`config.log' for more details." >&2;}
3145 { (exit 1); exit 1; }; }
3146fi
3147
3148rm -f conftest$ac_cv_exeext
3149{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3150echo "${ECHO_T}$ac_cv_exeext" >&6; }
3151
3152rm -f conftest.$ac_ext
3153EXEEXT=$ac_cv_exeext
3154ac_exeext=$EXEEXT
3155{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3156echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3157if test "${ac_cv_objext+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159else
3160 cat >conftest.$ac_ext <<_ACEOF
3161/* confdefs.h. */
3162_ACEOF
3163cat confdefs.h >>conftest.$ac_ext
3164cat >>conftest.$ac_ext <<_ACEOF
3165/* end confdefs.h. */
3166
3167int
3168main ()
3169{
3170
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175rm -f conftest.o conftest.obj
3176if { (ac_try="$ac_compile"
3177case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180esac
3181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; then
3186 for ac_file in conftest.o conftest.obj conftest.*; do
3187 test -f "$ac_file" || continue;
3188 case $ac_file in
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3191 break;;
3192 esac
3193done
3194else
3195 echo "$as_me: failed program was:" >&5
3196sed 's/^/| /' conftest.$ac_ext >&5
3197
3198{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3199See \`config.log' for more details." >&5
3200echo "$as_me: error: cannot compute suffix of object files: cannot compile
3201See \`config.log' for more details." >&2;}
3202 { (exit 1); exit 1; }; }
3203fi
3204
3205rm -f conftest.$ac_cv_objext conftest.$ac_ext
3206fi
3207{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3208echo "${ECHO_T}$ac_cv_objext" >&6; }
3209OBJEXT=$ac_cv_objext
3210ac_objext=$OBJEXT
3211{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3212echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3213if test "${ac_cv_c_compiler_gnu+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215else
3216 cat >conftest.$ac_ext <<_ACEOF
3217/* confdefs.h. */
3218_ACEOF
3219cat confdefs.h >>conftest.$ac_ext
3220cat >>conftest.$ac_ext <<_ACEOF
3221/* end confdefs.h. */
3222
3223int
3224main ()
3225{
3226#ifndef __GNUC__
3227 choke me
3228#endif
3229
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234rm -f conftest.$ac_objext
3235if { (ac_try="$ac_compile"
3236case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239esac
3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } && {
3248 test -z "$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 } && test -s conftest.$ac_objext; then
3251 ac_compiler_gnu=yes
3252else
3253 echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 ac_compiler_gnu=no
3257fi
3258
3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260ac_cv_c_compiler_gnu=$ac_compiler_gnu
3261
3262fi
3263{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3264echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3265GCC=`test $ac_compiler_gnu = yes && echo yes`
3266ac_test_CFLAGS=${CFLAGS+set}
3267ac_save_CFLAGS=$CFLAGS
3268{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3269echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3270if test "${ac_cv_prog_cc_g+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3272else
3273 ac_save_c_werror_flag=$ac_c_werror_flag
3274 ac_c_werror_flag=yes
3275 ac_cv_prog_cc_g=no
3276 CFLAGS="-g"
3277 cat >conftest.$ac_ext <<_ACEOF
3278/* confdefs.h. */
3279_ACEOF
3280cat confdefs.h >>conftest.$ac_ext
3281cat >>conftest.$ac_ext <<_ACEOF
3282/* end confdefs.h. */
3283
3284int
3285main ()
3286{
3287
3288 ;
3289 return 0;
3290}
3291_ACEOF
3292rm -f conftest.$ac_objext
3293if { (ac_try="$ac_compile"
3294case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297esac
3298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_compile") 2>conftest.er1
3300 ac_status=$?
3301 grep -v '^ *+' conftest.er1 >conftest.err
3302 rm -f conftest.er1
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } && {
3306 test -z "$ac_c_werror_flag" ||
3307 test ! -s conftest.err
3308 } && test -s conftest.$ac_objext; then
3309 ac_cv_prog_cc_g=yes
3310else
3311 echo "$as_me: failed program was:" >&5
3312sed 's/^/| /' conftest.$ac_ext >&5
3313
3314 CFLAGS=""
3315 cat >conftest.$ac_ext <<_ACEOF
3316/* confdefs.h. */
3317_ACEOF
3318cat confdefs.h >>conftest.$ac_ext
3319cat >>conftest.$ac_ext <<_ACEOF
3320/* end confdefs.h. */
3321
3322int
3323main ()
3324{
3325
3326 ;
3327 return 0;
3328}
3329_ACEOF
3330rm -f conftest.$ac_objext
3331if { (ac_try="$ac_compile"
3332case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
3336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_compile") 2>conftest.er1
3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } && {
3344 test -z "$ac_c_werror_flag" ||
3345 test ! -s conftest.err
3346 } && test -s conftest.$ac_objext; then
3347 :
3348else
3349 echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 ac_c_werror_flag=$ac_save_c_werror_flag
3353 CFLAGS="-g"
3354 cat >conftest.$ac_ext <<_ACEOF
3355/* confdefs.h. */
3356_ACEOF
3357cat confdefs.h >>conftest.$ac_ext
3358cat >>conftest.$ac_ext <<_ACEOF
3359/* end confdefs.h. */
3360
3361int
3362main ()
3363{
3364
3365 ;
3366 return 0;
3367}
3368_ACEOF
3369rm -f conftest.$ac_objext
3370if { (ac_try="$ac_compile"
3371case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374esac
3375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_compile") 2>conftest.er1
3377 ac_status=$?
3378 grep -v '^ *+' conftest.er1 >conftest.err
3379 rm -f conftest.er1
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } && {
3383 test -z "$ac_c_werror_flag" ||
3384 test ! -s conftest.err
3385 } && test -s conftest.$ac_objext; then
3386 ac_cv_prog_cc_g=yes
3387else
3388 echo "$as_me: failed program was:" >&5
3389sed 's/^/| /' conftest.$ac_ext >&5
3390
3391
3392fi
3393
3394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395fi
3396
3397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398fi
3399
3400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 ac_c_werror_flag=$ac_save_c_werror_flag
3402fi
3403{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3404echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3405if test "$ac_test_CFLAGS" = set; then
3406 CFLAGS=$ac_save_CFLAGS
3407elif test $ac_cv_prog_cc_g = yes; then
3408 if test "$GCC" = yes; then
3409 CFLAGS="-g -O2"
3410 else
3411 CFLAGS="-g"
3412 fi
3413else
3414 if test "$GCC" = yes; then
3415 CFLAGS="-O2"
3416 else
3417 CFLAGS=
3418 fi
3419fi
3420{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3421echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3422if test "${ac_cv_prog_cc_c89+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424else
3425 ac_cv_prog_cc_c89=no
3426ac_save_CC=$CC
3427cat >conftest.$ac_ext <<_ACEOF
3428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
3433#include <stdarg.h>
3434#include <stdio.h>
3435#include <sys/types.h>
3436#include <sys/stat.h>
3437/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3438struct buf { int x; };
3439FILE * (*rcsopen) (struct buf *, struct stat *, int);
3440static char *e (p, i)
3441 char **p;
3442 int i;
3443{
3444 return p[i];
3445}
3446static char *f (char * (*g) (char **, int), char **p, ...)
3447{
3448 char *s;
3449 va_list v;
3450 va_start (v,p);
3451 s = g (p, va_arg (v,int));
3452 va_end (v);
3453 return s;
3454}
3455
3456/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3457 function prototypes and stuff, but not '\xHH' hex character constants.
3458 These don't provoke an error unfortunately, instead are silently treated
3459 as 'x'. The following induces an error, until -std is added to get
3460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3461 array size at least. It's necessary to write '\x00'==0 to get something
3462 that's true only with -std. */
3463int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3464
3465/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3466 inside strings and character constants. */
3467#define FOO(x) 'x'
3468int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3469
3470int test (int i, double x);
3471struct s1 {int (*f) (int a);};
3472struct s2 {int (*f) (double a);};
3473int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3474int argc;
3475char **argv;
3476int
3477main ()
3478{
3479return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3480 ;
3481 return 0;
3482}
3483_ACEOF
3484for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3485 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3486do
3487 CC="$ac_save_CC $ac_arg"
3488 rm -f conftest.$ac_objext
3489if { (ac_try="$ac_compile"
3490case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493esac
3494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_compile") 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } && {
3502 test -z "$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 } && test -s conftest.$ac_objext; then
3505 ac_cv_prog_cc_c89=$ac_arg
3506else
3507 echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510
3511fi
3512
3513rm -f core conftest.err conftest.$ac_objext
3514 test "x$ac_cv_prog_cc_c89" != "xno" && break
3515done
3516rm -f conftest.$ac_ext
3517CC=$ac_save_CC
3518
3519fi
3520# AC_CACHE_VAL
3521case "x$ac_cv_prog_cc_c89" in
3522 x)
3523 { echo "$as_me:$LINENO: result: none needed" >&5
3524echo "${ECHO_T}none needed" >&6; } ;;
3525 xno)
3526 { echo "$as_me:$LINENO: result: unsupported" >&5
3527echo "${ECHO_T}unsupported" >&6; } ;;
3528 *)
3529 CC="$CC $ac_cv_prog_cc_c89"
3530 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3531echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3532esac
3533
3534
3535ac_ext=c
3536ac_cpp='$CPP $CPPFLAGS'
3537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540DEPDIR="${am__leading_dot}deps"
3541
3542ac_config_commands="$ac_config_commands depfiles"
3543
3544
3545am_make=${MAKE-make}
3546cat > confinc << 'END'
3547am__doit:
3548 @echo done
3549.PHONY: am__doit
3550END
3551# If we don't find an include directive, just comment out the code.
3552{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3553echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3554am__include="#"
3555am__quote=
3556_am_result=none
3557# First try GNU make style include.
3558echo "include confinc" > confmf
3559# We grep out `Entering directory' and `Leaving directory'
3560# messages which can occur if `w' ends up in MAKEFLAGS.
3561# In particular we don't look at `^make:' because GNU make might
3562# be invoked under some other name (usually "gmake"), in which
3563# case it prints its new name instead of `make'.
3564if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3565 am__include=include
3566 am__quote=
3567 _am_result=GNU
3568fi
3569# Now try BSD make style include.
3570if test "$am__include" = "#"; then
3571 echo '.include "confinc"' > confmf
3572 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3573 am__include=.include
3574 am__quote="\""
3575 _am_result=BSD
3576 fi
3577fi
3578
3579
3580{ echo "$as_me:$LINENO: result: $_am_result" >&5
3581echo "${ECHO_T}$_am_result" >&6; }
3582rm -f confinc confmf
3583
3584# Check whether --enable-dependency-tracking was given.
3585if test "${enable_dependency_tracking+set}" = set; then
3586 enableval=$enable_dependency_tracking;
3587fi
3588
3589if test "x$enable_dependency_tracking" != xno; then
3590 am_depcomp="$ac_aux_dir/depcomp"
3591 AMDEPBACKSLASH='\'
3592fi
3593
3594
3595if test "x$enable_dependency_tracking" != xno; then
3596 AMDEP_TRUE=
3597 AMDEP_FALSE='#'
3598else
3599 AMDEP_TRUE='#'
3600 AMDEP_FALSE=
3601fi
3602
3603
3604
3605
3606depcc="$CC" am_compiler_list=
3607
3608{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3609echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3610if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3612else
3613 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3614 # We make a subdir and do the tests there. Otherwise we can end up
3615 # making bogus files that we don't know about and never remove. For
3616 # instance it was reported that on HP-UX the gcc test will end up
3617 # making a dummy file named `D' -- because `-MD' means `put the output
3618 # in D'.
3619 mkdir conftest.dir
3620 # Copy depcomp to subdir because otherwise we won't find it if we're
3621 # using a relative directory.
3622 cp "$am_depcomp" conftest.dir
3623 cd conftest.dir
3624 # We will build objects and dependencies in a subdirectory because
3625 # it helps to detect inapplicable dependency modes. For instance
3626 # both Tru64's cc and ICC support -MD to output dependencies as a
3627 # side effect of compilation, but ICC will put the dependencies in
3628 # the current directory while Tru64 will put them in the object
3629 # directory.
3630 mkdir sub
3631
3632 am_cv_CC_dependencies_compiler_type=none
3633 if test "$am_compiler_list" = ""; then
3634 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3635 fi
3636 for depmode in $am_compiler_list; do
3637 # Setup a source with many dependencies, because some compilers
3638 # like to wrap large dependency lists on column 80 (with \), and
3639 # we should not choose a depcomp mode which is confused by this.
3640 #
3641 # We need to recreate these files for each test, as the compiler may
3642 # overwrite some of them when testing with obscure command lines.
3643 # This happens at least with the AIX C compiler.
3644 : > sub/conftest.c
3645 for i in 1 2 3 4 5 6; do
3646 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3647 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3648 # Solaris 8's {/usr,}/bin/sh.
3649 touch sub/conftst$i.h
3650 done
3651 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3652
3653 case $depmode in
3654 nosideeffect)
3655 # after this tag, mechanisms are not by side-effect, so they'll
3656 # only be used when explicitly requested
3657 if test "x$enable_dependency_tracking" = xyes; then
3658 continue
3659 else
3660 break
3661 fi
3662 ;;
3663 none) break ;;
3664 esac
3665 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3666 # mode. It turns out that the SunPro C++ compiler does not properly
3667 # handle `-M -o', and we need to detect this.
3668 if depmode=$depmode \
3669 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3670 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3671 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3672 >/dev/null 2>conftest.err &&
3673 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3674 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3675 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3676 # icc doesn't choke on unknown options, it will just issue warnings
3677 # or remarks (even with -Werror). So we grep stderr for any message
3678 # that says an option was ignored or not supported.
3679 # When given -MP, icc 7.0 and 7.1 complain thusly:
3680 # icc: Command line warning: ignoring option '-M'; no argument required
3681 # The diagnosis changed in icc 8.0:
3682 # icc: Command line remark: option '-MP' not supported
3683 if (grep 'ignoring option' conftest.err ||
3684 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3685 am_cv_CC_dependencies_compiler_type=$depmode
3686 break
3687 fi
3688 fi
3689 done
3690
3691 cd ..
3692 rm -rf conftest.dir
3693else
3694 am_cv_CC_dependencies_compiler_type=none
3695fi
3696
3697fi
3698{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3699echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3700CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3701
3702
3703
3704if
3705 test "x$enable_dependency_tracking" != xno \
3706 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3707 am__fastdepCC_TRUE=
3708 am__fastdepCC_FALSE='#'
3709else
3710 am__fastdepCC_TRUE='#'
3711 am__fastdepCC_FALSE=
3712fi
3713
3714
3715if test "x$CC" != xcc; then
3716 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3717echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3718else
3719 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3720echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3721fi
3722set dummy $CC; ac_cc=`echo $2 |
3723 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3724if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726else
3727 cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h. */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h. */
3733
3734int
3735main ()
3736{
3737
3738 ;
3739 return 0;
3740}
3741_ACEOF
3742# Make sure it works both with $CC and with simple cc.
3743# We do the test twice because some compilers refuse to overwrite an
3744# existing .o file with -o, though they will create one.
3745ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3746rm -f conftest2.*
3747if { (case "(($ac_try" in
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3750esac
3751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3752 (eval "$ac_try") 2>&5
3753 ac_status=$?
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759esac
3760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761 (eval "$ac_try") 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); };
3765then
3766 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3767 if test "x$CC" != xcc; then
3768 # Test first that cc exists at all.
3769 if { ac_try='cc -c conftest.$ac_ext >&5'
3770 { (case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773esac
3774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775 (eval "$ac_try") 2>&5
3776 ac_status=$?
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3779 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3780 rm -f conftest2.*
3781 if { (case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784esac
3785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_try") 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } &&
3790 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793esac
3794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_try") 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); };
3799 then
3800 # cc works too.
3801 :
3802 else
3803 # cc exists but doesn't like -o.
3804 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3805 fi
3806 fi
3807 fi
3808else
3809 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3810fi
3811rm -f core conftest*
3812
3813fi
3814if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3815 { echo "$as_me:$LINENO: result: yes" >&5
3816echo "${ECHO_T}yes" >&6; }
3817else
3818 { echo "$as_me:$LINENO: result: no" >&5
3819echo "${ECHO_T}no" >&6; }
3820
3821cat >>confdefs.h <<\_ACEOF
3822#define NO_MINUS_C_MINUS_O 1
3823_ACEOF
3824
3825fi
3826
3827# FIXME: we rely on the cache variable name because
3828# there is no other way.
3829set dummy $CC
3830ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3831if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3832 # Losing compiler, so override with the script.
3833 # FIXME: It is wrong to rewrite CC.
3834 # But if we don't then we get into trouble of one sort or another.
3835 # A longer-term fix would be to have automake use am__CC in this case,
3836 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3837 CC="$am_aux_dir/compile $CC"
3838fi
3839
3840
3841
3842 ansi=
3843 if test -z "$ansi"; then
3844 msg="for C compiler warning flags"
3845 else
3846 msg="for C compiler warning and ANSI conformance flags"
3847 fi
3848 { echo "$as_me:$LINENO: checking $msg" >&5
3849echo $ECHO_N "checking $msg... $ECHO_C" >&6; }
3850if test "${vl_cv_prog_cc_warnings+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852else
3853
3854 if test -n "$CC"; then
3855 cat > conftest.c <<EOF
3856int main(int argc, char **argv) { return 0; }
3857EOF
3858
3859 if test "$GCC" = "yes"; then
3860 if test -z "$ansi"; then
3861 vl_cv_prog_cc_warnings="-Wall -W"
3862 else
3863 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic"
3864 fi
3865
3866
3867 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
3868 $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
3869 test -f conftest.o; then
3870 if test -z "$ansi"; then
3871 vl_cv_prog_cc_warnings="-v"
3872 else
3873 vl_cv_prog_cc_warnings="-v -Xc"
3874 fi
3875
3876 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
3877 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
3878 test -f conftest.o; then
3879 if test -z "$ansi"; then
3880 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
3881 else
3882 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
3883 fi
3884
3885 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
3886 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
3887 test -f conftest.o; then
3888 if test -z "$ansi"; then
3889 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
3890 else
3891 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
3892 fi
3893
3894 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
3895 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
3896 test -f conftest.o; then
3897 if test -z "$ansi"; then
3898 vl_cv_prog_cc_warnings="-fullwarn"
3899 else
3900 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
3901 fi
3902
3903 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
3904 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
3905 test -f conftest.o; then
3906 if test -z "$ansi"; then
3907 vl_cv_prog_cc_warnings="+w1"
3908 else
3909 vl_cv_prog_cc_warnings="+w1 -Aa"
3910 fi
3911
3912 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
3913 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
3914 test -f conftest.o; then
3915 if test -z "$ansi"; then
3916 vl_cv_prog_cc_warnings="-pvctl,fullmsg"
3917 else
3918 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
3919 fi
3920
3921 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
3922 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
3923 test -f conftest.o; then
3924 if test -z "$ansi"; then
3925 vl_cv_prog_cc_warnings="-h msglevel 2"
3926 else
3927 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
3928 fi
3929
3930 fi
3931 rm -f conftest.*
3932 fi
3933 if test -n "$vl_cv_prog_cc_warnings"; then
3934 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
3935 else
3936 vl_cv_prog_cc_warnings="unknown"
3937 fi
3938
3939fi
3940{ echo "$as_me:$LINENO: result: $vl_cv_prog_cc_warnings" >&5
3941echo "${ECHO_T}$vl_cv_prog_cc_warnings" >&6; }
3942
3943
3944# Find a good install program. We prefer a C program (faster),
3945# so one script is as good as another. But avoid the broken or
3946# incompatible versions:
3947# SysV /etc/install, /usr/sbin/install
3948# SunOS /usr/etc/install
3949# IRIX /sbin/install
3950# AIX /bin/install
3951# AmigaOS /C/install, which installs bootblocks on floppy discs
3952# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3953# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3954# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3955# OS/2's system install, which has a completely different semantic
3956# ./install, which can be erroneously created by make from ./install.sh.
3957{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3958echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3959if test -z "$INSTALL"; then
3960if test "${ac_cv_path_install+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 # Account for people who put trailing slashes in PATH elements.
3969case $as_dir/ in
3970 ./ | .// | /cC/* | \
3971 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3972 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3973 /usr/ucb/* ) ;;
3974 *)
3975 # OSF1 and SCO ODT 3.0 have their own names for install.
3976 # Don't use installbsd from OSF since it installs stuff as root
3977 # by default.
3978 for ac_prog in ginstall scoinst install; do
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3981 if test $ac_prog = install &&
3982 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3983 # AIX install. It has an incompatible calling convention.
3984 :
3985 elif test $ac_prog = install &&
3986 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3987 # program-specific install script used by HP pwplus--don't use.
3988 :
3989 else
3990 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3991 break 3
3992 fi
3993 fi
3994 done
3995 done
3996 ;;
3997esac
3998done
3999IFS=$as_save_IFS
4000
4001
4002fi
4003 if test "${ac_cv_path_install+set}" = set; then
4004 INSTALL=$ac_cv_path_install
4005 else
4006 # As a last resort, use the slow shell script. Don't cache a
4007 # value for INSTALL within a source directory, because that will
4008 # break other packages using the cache if that directory is
4009 # removed, or if the value is a relative name.
4010 INSTALL=$ac_install_sh
4011 fi
4012fi
4013{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4014echo "${ECHO_T}$INSTALL" >&6; }
4015
4016# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4017# It thinks the first close brace ends the variable substitution.
4018test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4019
4020test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4021
4022test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4023
4024{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4025echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4026LN_S=$as_ln_s
4027if test "$LN_S" = "ln -s"; then
4028 { echo "$as_me:$LINENO: result: yes" >&5
4029echo "${ECHO_T}yes" >&6; }
4030else
4031 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4032echo "${ECHO_T}no, using $LN_S" >&6; }
4033fi
4034
4035
4036
4037macro_version='2.1a'
4038macro_revision='1.2248'
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051ltmain="$ac_aux_dir/ltmain.sh"
4052
4053# Set options
4054
4055enable_dlopen=no
4056
4057
4058enable_win32_dll=no
4059
4060
4061# Check whether --enable-shared was given.
4062if test "${enable_shared+set}" = set; then
4063 enableval=$enable_shared; p=${PACKAGE-default}
4064 case $enableval in
4065 yes) enable_shared=yes ;;
4066 no) enable_shared=no ;;
4067 *)
4068 enable_shared=no
4069 # Look at the argument we got. We use all the common list separators.
4070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4071 for pkg in $enableval; do
4072 IFS="$lt_save_ifs"
4073 if test "X$pkg" = "X$p"; then
4074 enable_shared=yes
4075 fi
4076 done
4077 IFS="$lt_save_ifs"
4078 ;;
4079 esac
4080else
4081 enable_shared=yes
4082fi
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092# Check whether --enable-static was given.
4093if test "${enable_static+set}" = set; then
4094 enableval=$enable_static; p=${PACKAGE-default}
4095 case $enableval in
4096 yes) enable_static=yes ;;
4097 no) enable_static=no ;;
4098 *)
4099 enable_static=no
4100 # Look at the argument we got. We use all the common list separators.
4101 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4102 for pkg in $enableval; do
4103 IFS="$lt_save_ifs"
4104 if test "X$pkg" = "X$p"; then
4105 enable_static=yes
4106 fi
4107 done
4108 IFS="$lt_save_ifs"
4109 ;;
4110 esac
4111else
4112 enable_static=yes
4113fi
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124# Check whether --with-pic was given.
4125if test "${with_pic+set}" = set; then
4126 withval=$with_pic; pic_mode="$withval"
4127else
4128 pic_mode=default
4129fi
4130
4131
4132test -z "$pic_mode" && pic_mode=default
4133
4134
4135
4136
4137
4138
4139
4140# Check whether --enable-fast-install was given.
4141if test "${enable_fast_install+set}" = set; then
4142 enableval=$enable_fast_install; p=${PACKAGE-default}
4143 case $enableval in
4144 yes) enable_fast_install=yes ;;
4145 no) enable_fast_install=no ;;
4146 *)
4147 enable_fast_install=no
4148 # Look at the argument we got. We use all the common list separators.
4149 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4150 for pkg in $enableval; do
4151 IFS="$lt_save_ifs"
4152 if test "X$pkg" = "X$p"; then
4153 enable_fast_install=yes
4154 fi
4155 done
4156 IFS="$lt_save_ifs"
4157 ;;
4158 esac
4159else
4160 enable_fast_install=yes
4161fi
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4172echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4173if test "${ac_cv_path_SED+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175else
4176 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4177 for ac_i in 1 2 3 4 5 6 7; do
4178 ac_script="$ac_script$as_nl$ac_script"
4179 done
4180 echo "$ac_script" | sed 99q >conftest.sed
4181 $as_unset ac_script || ac_script=
4182 # Extract the first word of "sed gsed" to use in msg output
4183if test -z "$SED"; then
4184set dummy sed gsed; ac_prog_name=$2
4185if test "${ac_cv_path_SED+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188 ac_path_SED_found=false
4189# Loop through the user's path and test for each of PROGNAME-LIST
4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH
4192do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_prog in sed gsed; do
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4198 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4199 # Check for GNU ac_path_SED and select it if it is found.
4200 # Check for GNU $ac_path_SED
4201case `"$ac_path_SED" --version 2>&1` in
4202*GNU*)
4203 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4204*)
4205 ac_count=0
4206 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4207 while :
4208 do
4209 cat "conftest.in" "conftest.in" >"conftest.tmp"
4210 mv "conftest.tmp" "conftest.in"
4211 cp "conftest.in" "conftest.nl"
4212 echo '' >> "conftest.nl"
4213 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215 ac_count=`expr $ac_count + 1`
4216 if test $ac_count -gt ${ac_path_SED_max-0}; then
4217 # Best one so far, save it but keep looking for a better one
4218 ac_cv_path_SED="$ac_path_SED"
4219 ac_path_SED_max=$ac_count
4220 fi
4221 # 10*(2^10) chars as input seems more than enough
4222 test $ac_count -gt 10 && break
4223 done
4224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225esac
4226
4227
4228 $ac_path_SED_found && break 3
4229 done
4230done
4231
4232done
4233IFS=$as_save_IFS
4234
4235
4236fi
4237
4238SED="$ac_cv_path_SED"
4239if test -z "$SED"; then
4240 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4241echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4242 { (exit 1); exit 1; }; }
4243fi
4244
4245else
4246 ac_cv_path_SED=$SED
4247fi
4248
4249fi
4250{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4251echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4252 SED="$ac_cv_path_SED"
4253 rm -f conftest.sed
4254
4255test -z "$SED" && SED=sed
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4268echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4269if test "${ac_cv_path_GREP+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271else
4272 # Extract the first word of "grep ggrep" to use in msg output
4273if test -z "$GREP"; then
4274set dummy grep ggrep; ac_prog_name=$2
4275if test "${ac_cv_path_GREP+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277else
4278 ac_path_GREP_found=false
4279# Loop through the user's path and test for each of PROGNAME-LIST
4280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4282do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_prog in grep ggrep; do
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4288 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4289 # Check for GNU ac_path_GREP and select it if it is found.
4290 # Check for GNU $ac_path_GREP
4291case `"$ac_path_GREP" --version 2>&1` in
4292*GNU*)
4293 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4294*)
4295 ac_count=0
4296 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4297 while :
4298 do
4299 cat "conftest.in" "conftest.in" >"conftest.tmp"
4300 mv "conftest.tmp" "conftest.in"
4301 cp "conftest.in" "conftest.nl"
4302 echo 'GREP' >> "conftest.nl"
4303 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4305 ac_count=`expr $ac_count + 1`
4306 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4307 # Best one so far, save it but keep looking for a better one
4308 ac_cv_path_GREP="$ac_path_GREP"
4309 ac_path_GREP_max=$ac_count
4310 fi
4311 # 10*(2^10) chars as input seems more than enough
4312 test $ac_count -gt 10 && break
4313 done
4314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4315esac
4316
4317
4318 $ac_path_GREP_found && break 3
4319 done
4320done
4321
4322done
4323IFS=$as_save_IFS
4324
4325
4326fi
4327
4328GREP="$ac_cv_path_GREP"
4329if test -z "$GREP"; then
4330 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4331echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4332 { (exit 1); exit 1; }; }
4333fi
4334
4335else
4336 ac_cv_path_GREP=$GREP
4337fi
4338
4339
4340fi
4341{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4342echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4343 GREP="$ac_cv_path_GREP"
4344
4345
4346{ echo "$as_me:$LINENO: checking for egrep" >&5
4347echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4348if test "${ac_cv_path_EGREP+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350else
4351 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4352 then ac_cv_path_EGREP="$GREP -E"
4353 else
4354 # Extract the first word of "egrep" to use in msg output
4355if test -z "$EGREP"; then
4356set dummy egrep; ac_prog_name=$2
4357if test "${ac_cv_path_EGREP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359else
4360 ac_path_EGREP_found=false
4361# Loop through the user's path and test for each of PROGNAME-LIST
4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4364do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_prog in egrep; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4370 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4371 # Check for GNU ac_path_EGREP and select it if it is found.
4372 # Check for GNU $ac_path_EGREP
4373case `"$ac_path_EGREP" --version 2>&1` in
4374*GNU*)
4375 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4376*)
4377 ac_count=0
4378 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4379 while :
4380 do
4381 cat "conftest.in" "conftest.in" >"conftest.tmp"
4382 mv "conftest.tmp" "conftest.in"
4383 cp "conftest.in" "conftest.nl"
4384 echo 'EGREP' >> "conftest.nl"
4385 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4387 ac_count=`expr $ac_count + 1`
4388 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4389 # Best one so far, save it but keep looking for a better one
4390 ac_cv_path_EGREP="$ac_path_EGREP"
4391 ac_path_EGREP_max=$ac_count
4392 fi
4393 # 10*(2^10) chars as input seems more than enough
4394 test $ac_count -gt 10 && break
4395 done
4396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4397esac
4398
4399
4400 $ac_path_EGREP_found && break 3
4401 done
4402done
4403
4404done
4405IFS=$as_save_IFS
4406
4407
4408fi
4409
4410EGREP="$ac_cv_path_EGREP"
4411if test -z "$EGREP"; then
4412 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4413echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4414 { (exit 1); exit 1; }; }
4415fi
4416
4417else
4418 ac_cv_path_EGREP=$EGREP
4419fi
4420
4421
4422 fi
4423fi
4424{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4425echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4426 EGREP="$ac_cv_path_EGREP"
4427
4428
4429{ echo "$as_me:$LINENO: checking for fgrep" >&5
4430echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4431if test "${ac_cv_path_FGREP+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4435 then ac_cv_path_FGREP="$GREP -F"
4436 else
4437 # Extract the first word of "fgrep" to use in msg output
4438if test -z "$FGREP"; then
4439set dummy fgrep; ac_prog_name=$2
4440if test "${ac_cv_path_FGREP+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443 ac_path_FGREP_found=false
4444# Loop through the user's path and test for each of PROGNAME-LIST
4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4447do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_prog in fgrep; do
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4453 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4454 # Check for GNU ac_path_FGREP and select it if it is found.
4455 # Check for GNU $ac_path_FGREP
4456case `"$ac_path_FGREP" --version 2>&1` in
4457*GNU*)
4458 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4459*)
4460 ac_count=0
4461 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4462 while :
4463 do
4464 cat "conftest.in" "conftest.in" >"conftest.tmp"
4465 mv "conftest.tmp" "conftest.in"
4466 cp "conftest.in" "conftest.nl"
4467 echo 'FGREP' >> "conftest.nl"
4468 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4470 ac_count=`expr $ac_count + 1`
4471 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4472 # Best one so far, save it but keep looking for a better one
4473 ac_cv_path_FGREP="$ac_path_FGREP"
4474 ac_path_FGREP_max=$ac_count
4475 fi
4476 # 10*(2^10) chars as input seems more than enough
4477 test $ac_count -gt 10 && break
4478 done
4479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4480esac
4481
4482
4483 $ac_path_FGREP_found && break 3
4484 done
4485done
4486
4487done
4488IFS=$as_save_IFS
4489
4490
4491fi
4492
4493FGREP="$ac_cv_path_FGREP"
4494if test -z "$FGREP"; then
4495 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4496echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4497 { (exit 1); exit 1; }; }
4498fi
4499
4500else
4501 ac_cv_path_FGREP=$FGREP
4502fi
4503
4504
4505 fi
4506fi
4507{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4508echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4509 FGREP="$ac_cv_path_FGREP"
4510
4511
4512test -z "$GREP" && GREP=grep
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532# Check whether --with-gnu-ld was given.
4533if test "${with_gnu_ld+set}" = set; then
4534 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4535else
4536 with_gnu_ld=no
4537fi
4538
4539ac_prog=ld
4540if test "$GCC" = yes; then
4541 # Check if gcc -print-prog-name=ld gives a path.
4542 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4543echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4544 case $host in
4545 *-*-mingw*)
4546 # gcc leaves a trailing carriage return which upsets mingw
4547 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4548 *)
4549 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4550 esac
4551 case $ac_prog in
4552 # Accept absolute paths.
4553 [\\/]* | ?:[\\/]*)
4554 re_direlt='/[^/][^/]*/\.\./'
4555 # Canonicalize the pathname of ld
4556 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4557 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4558 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4559 done
4560 test -z "$LD" && LD="$ac_prog"
4561 ;;
4562 "")
4563 # If it fails, then pretend we aren't using GCC.
4564 ac_prog=ld
4565 ;;
4566 *)
4567 # If it is relative, then search for the first ld in PATH.
4568 with_gnu_ld=unknown
4569 ;;
4570 esac
4571elif test "$with_gnu_ld" = yes; then
4572 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4573echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4574else
4575 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4576echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4577fi
4578if test "${lt_cv_path_LD+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581 if test -z "$LD"; then
4582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4583 for ac_dir in $PATH; do
4584 IFS="$lt_save_ifs"
4585 test -z "$ac_dir" && ac_dir=.
4586 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4587 lt_cv_path_LD="$ac_dir/$ac_prog"
4588 # Check to see if the program is GNU ld. I'd rather use --version,
4589 # but apparently some variants of GNU ld only accept -v.
4590 # Break only if it was the GNU/non-GNU ld that we prefer.
4591 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4592 *GNU* | *'with BFD'*)
4593 test "$with_gnu_ld" != no && break
4594 ;;
4595 *)
4596 test "$with_gnu_ld" != yes && break
4597 ;;
4598 esac
4599 fi
4600 done
4601 IFS="$lt_save_ifs"
4602else
4603 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4604fi
4605fi
4606
4607LD="$lt_cv_path_LD"
4608if test -n "$LD"; then
4609 { echo "$as_me:$LINENO: result: $LD" >&5
4610echo "${ECHO_T}$LD" >&6; }
4611else
4612 { echo "$as_me:$LINENO: result: no" >&5
4613echo "${ECHO_T}no" >&6; }
4614fi
4615test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4616echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4617 { (exit 1); exit 1; }; }
4618{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4619echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4620if test "${lt_cv_prog_gnu_ld+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4624case `$LD -v 2>&1 </dev/null` in
4625*GNU* | *'with BFD'*)
4626 lt_cv_prog_gnu_ld=yes
4627 ;;
4628*)
4629 lt_cv_prog_gnu_ld=no
4630 ;;
4631esac
4632fi
4633{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4634echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4635with_gnu_ld=$lt_cv_prog_gnu_ld
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4647echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4648if test "${lt_cv_path_NM+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651 if test -n "$NM"; then
4652 # Let the user override the test.
4653 lt_cv_path_NM="$NM"
4654else
4655 lt_nm_to_check="${ac_tool_prefix}nm"
4656 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4657 lt_nm_to_check="$lt_nm_to_check nm"
4658 fi
4659 for lt_tmp_nm in $lt_nm_to_check; do
4660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4661 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4662 IFS="$lt_save_ifs"
4663 test -z "$ac_dir" && ac_dir=.
4664 tmp_nm="$ac_dir/$lt_tmp_nm"
4665 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4666 # Check to see if the nm accepts a BSD-compat flag.
4667 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4668 # nm: unknown option "B" ignored
4669 # Tru64's nm complains that /dev/null is an invalid object file
4670 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4671 */dev/null* | *'Invalid file or object type'*)
4672 lt_cv_path_NM="$tmp_nm -B"
4673 break
4674 ;;
4675 *)
4676 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4677 */dev/null*)
4678 lt_cv_path_NM="$tmp_nm -p"
4679 break
4680 ;;
4681 *)
4682 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4683 continue # so that we can try to find one that supports BSD flags
4684 ;;
4685 esac
4686 ;;
4687 esac
4688 fi
4689 done
4690 IFS="$lt_save_ifs"
4691 done
4692 : ${lt_cv_path_NM=no}
4693fi
4694fi
4695{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4696echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4697if test "$lt_cv_path_NM" != "no"; then
4698 NM="$lt_cv_path_NM"
4699else
4700 # Didn't find any BSD compatible name lister, look for dumpbin.
4701 if test -n "$ac_tool_prefix"; then
4702 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4703 do
4704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4705set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710else
4711 if test -n "$DUMPBIN"; then
4712 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4713else
4714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715for as_dir in $PATH
4716do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4724 fi
4725done
4726done
4727IFS=$as_save_IFS
4728
4729fi
4730fi
4731DUMPBIN=$ac_cv_prog_DUMPBIN
4732if test -n "$DUMPBIN"; then
4733 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4734echo "${ECHO_T}$DUMPBIN" >&6; }
4735else
4736 { echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6; }
4738fi
4739
4740
4741 test -n "$DUMPBIN" && break
4742 done
4743fi
4744if test -z "$DUMPBIN"; then
4745 ac_ct_DUMPBIN=$DUMPBIN
4746 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4747do
4748 # Extract the first word of "$ac_prog", so it can be a program name with args.
4749set dummy $ac_prog; ac_word=$2
4750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4752if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754else
4755 if test -n "$ac_ct_DUMPBIN"; then
4756 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4757else
4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759for as_dir in $PATH
4760do
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 break 2
4768 fi
4769done
4770done
4771IFS=$as_save_IFS
4772
4773fi
4774fi
4775ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4776if test -n "$ac_ct_DUMPBIN"; then
4777 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4778echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4779else
4780 { echo "$as_me:$LINENO: result: no" >&5
4781echo "${ECHO_T}no" >&6; }
4782fi
4783
4784
4785 test -n "$ac_ct_DUMPBIN" && break
4786done
4787
4788 if test "x$ac_ct_DUMPBIN" = x; then
4789 DUMPBIN=":"
4790 else
4791 case $cross_compiling:$ac_tool_warned in
4792yes:)
4793{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4794whose name does not start with the host triplet. If you think this
4795configuration is useful to you, please write to autoconf@gnu.org." >&5
4796echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4797whose name does not start with the host triplet. If you think this
4798configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4799ac_tool_warned=yes ;;
4800esac
4801 DUMPBIN=$ac_ct_DUMPBIN
4802 fi
4803fi
4804
4805
4806 if test "$DUMPBIN" != ":"; then
4807 NM="$DUMPBIN"
4808 fi
4809fi
4810test -z "$NM" && NM=nm
4811
4812
4813
4814
4815
4816
4817{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4818echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4819if test "${lt_cv_nm_interface+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821else
4822 lt_cv_nm_interface="BSD nm"
4823 echo "int some_variable = 0;" > conftest.$ac_ext
4824 (eval echo "\"\$as_me:4824: $ac_compile\"" >&5)
4825 (eval "$ac_compile" 2>conftest.err)
4826 cat conftest.err >&5
4827 (eval echo "\"\$as_me:4827: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4828 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4829 cat conftest.err >&5
4830 (eval echo "\"\$as_me:4830: output\"" >&5)
4831 cat conftest.out >&5
4832 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4833 lt_cv_nm_interface="MS dumpbin"
4834 fi
4835 rm -f conftest*
4836fi
4837{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4838echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4839
4840# find the maximum length of command line arguments
4841{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4842echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4843if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845else
4846 i=0
4847 teststring="ABCD"
4848
4849 case $build_os in
4850 msdosdjgpp*)
4851 # On DJGPP, this test can blow up pretty badly due to problems in libc
4852 # (any single argument exceeding 2000 bytes causes a buffer overrun
4853 # during glob expansion). Even if it were fixed, the result of this
4854 # check would be larger than it should be.
4855 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4856 ;;
4857
4858 gnu*)
4859 # Under GNU Hurd, this test is not required because there is
4860 # no limit to the length of command line arguments.
4861 # Libtool will interpret -1 as no limit whatsoever
4862 lt_cv_sys_max_cmd_len=-1;
4863 ;;
4864
4865 cygwin* | mingw*)
4866 # On Win9x/ME, this test blows up -- it succeeds, but takes
4867 # about 5 minutes as the teststring grows exponentially.
4868 # Worse, since 9x/ME are not pre-emptively multitasking,
4869 # you end up with a "frozen" computer, even though with patience
4870 # the test eventually succeeds (with a max line length of 256k).
4871 # Instead, let's just punt: use the minimum linelength reported by
4872 # all of the supported platforms: 8192 (on NT/2K/XP).
4873 lt_cv_sys_max_cmd_len=8192;
4874 ;;
4875
4876 amigaos*)
4877 # On AmigaOS with pdksh, this test takes hours, literally.
4878 # So we just punt and use a minimum line length of 8192.
4879 lt_cv_sys_max_cmd_len=8192;
4880 ;;
4881
4882 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4883 # This has been around since 386BSD, at least. Likely further.
4884 if test -x /sbin/sysctl; then
4885 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4886 elif test -x /usr/sbin/sysctl; then
4887 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4888 else
4889 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4890 fi
4891 # And add a safety zone
4892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4894 ;;
4895
4896 interix*)
4897 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4898 lt_cv_sys_max_cmd_len=196608
4899 ;;
4900
4901 osf*)
4902 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4903 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4904 # nice to cause kernel panics so lets avoid the loop below.
4905 # First set a reasonable default.
4906 lt_cv_sys_max_cmd_len=16384
4907 #
4908 if test -x /sbin/sysconfig; then
4909 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4910 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4911 esac
4912 fi
4913 ;;
4914 sco3.2v5*)
4915 lt_cv_sys_max_cmd_len=102400
4916 ;;
4917 sysv5* | sco5v6* | sysv4.2uw2*)
4918 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4919 if test -n "$kargmax"; then
4920 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4921 else
4922 lt_cv_sys_max_cmd_len=32768
4923 fi
4924 ;;
4925 *)
4926 # Make teststring a little bigger before we do anything with it.
4927 # a 1K string should be a reasonable start.
4928 for i in 1 2 3 4 5 6 7 8 ; do
4929 teststring=$teststring$teststring
4930 done
4931 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4932 # If test is not a shell built-in, we'll probably end up computing a
4933 # maximum length that is only half of the actual maximum length, but
4934 # we can't tell.
4935 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4936 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4937 test $i != 17 # 1/2 MB should be enough
4938 do
4939 i=`expr $i + 1`
4940 teststring=$teststring$teststring
4941 done
4942 # Only check the string length outside the loop.
4943 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4944 teststring=
4945 # Add a significant safety factor because C++ compilers can tack on massive
4946 # amounts of additional arguments before passing them to the linker.
4947 # It appears as though 1/2 is a usable value.
4948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4949 ;;
4950 esac
4951
4952fi
4953
4954if test -n $lt_cv_sys_max_cmd_len ; then
4955 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4956echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4957else
4958 { echo "$as_me:$LINENO: result: none" >&5
4959echo "${ECHO_T}none" >&6; }
4960fi
4961max_cmd_len=$lt_cv_sys_max_cmd_len
4962
4963
4964
4965
4966
4967
4968
4969: ${CP="cp -f"}
4970: ${MV="mv -f"}
4971: ${RM="rm -f"}
4972
4973{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4974echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4975# Try some XSI features
4976xsi_shell=no
4977( _lt_dummy="a/b/c"
4978 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4979 = c,a/b,, ) >/dev/null 2>&1 \
4980 && xsi_shell=yes
4981{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
4982echo "${ECHO_T}$xsi_shell" >&6; }
4983
4984
4985{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4986echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4987if test "${lt_cv_ld_reload_flag+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
4990 lt_cv_ld_reload_flag='-r'
4991fi
4992{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4993echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4994reload_flag=$lt_cv_ld_reload_flag
4995case $reload_flag in
4996"" | " "*) ;;
4997*) reload_flag=" $reload_flag" ;;
4998esac
4999reload_cmds='$LD$reload_flag -o $output$reload_objs'
5000case $host_os in
5001 darwin*)
5002 if test "$GCC" = yes; then
5003 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5004 else
5005 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5006 fi
5007 ;;
5008esac
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5020echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5021if test "${lt_cv_deplibs_check_method+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024 lt_cv_file_magic_cmd='$MAGIC_CMD'
5025lt_cv_file_magic_test_file=
5026lt_cv_deplibs_check_method='unknown'
5027# Need to set the preceding variable on all platforms that support
5028# interlibrary dependencies.
5029# 'none' -- dependencies not supported.
5030# `unknown' -- same as none, but documents that we really don't know.
5031# 'pass_all' -- all dependencies passed with no checks.
5032# 'test_compile' -- check by making test program.
5033# 'file_magic [[regex]]' -- check by looking for files in library path
5034# which responds to the $file_magic_cmd with a given extended regex.
5035# If you have `file' or equivalent on your system and you're not sure
5036# whether `pass_all' will *always* work, you probably want this one.
5037
5038case $host_os in
5039aix4* | aix5*)
5040 lt_cv_deplibs_check_method=pass_all
5041 ;;
5042
5043beos*)
5044 lt_cv_deplibs_check_method=pass_all
5045 ;;
5046
5047bsdi[45]*)
5048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5049 lt_cv_file_magic_cmd='/usr/bin/file -L'
5050 lt_cv_file_magic_test_file=/shlib/libc.so
5051 ;;
5052
5053cygwin*)
5054 # func_win32_libid is a shell function defined in ltmain.sh
5055 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5056 lt_cv_file_magic_cmd='func_win32_libid'
5057 ;;
5058
5059 # Base MSYS/MinGW do not provide the 'file' command needed by
5060 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5061mingw* | pw32*)
5062 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5063 lt_cv_file_magic_cmd='$OBJDUMP -f'
5064 ;;
5065
5066darwin* | rhapsody*)
5067 lt_cv_deplibs_check_method=pass_all
5068 ;;
5069
5070freebsd* | kfreebsd*-gnu | dragonfly*)
5071 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5072 case $host_cpu in
5073 i*86 )
5074 # Not sure whether the presence of OpenBSD here was a mistake.
5075 # Let's accept both of them until this is cleared up.
5076 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5077 lt_cv_file_magic_cmd=/usr/bin/file
5078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5079 ;;
5080 esac
5081 else
5082 lt_cv_deplibs_check_method=pass_all
5083 fi
5084 ;;
5085
5086gnu*)
5087 lt_cv_deplibs_check_method=pass_all
5088 ;;
5089
5090hpux10.20* | hpux11*)
5091 lt_cv_file_magic_cmd=/usr/bin/file
5092 case $host_cpu in
5093 ia64*)
5094 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5095 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5096 ;;
5097 hppa*64*)
5098 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5099 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5100 ;;
5101 *)
5102 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5103 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5104 ;;
5105 esac
5106 ;;
5107
5108interix3*)
5109 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5111 ;;
5112
5113irix5* | irix6* | nonstopux*)
5114 case $LD in
5115 *-32|*"-32 ") libmagic=32-bit;;
5116 *-n32|*"-n32 ") libmagic=N32;;
5117 *-64|*"-64 ") libmagic=64-bit;;
5118 *) libmagic=never-match;;
5119 esac
5120 lt_cv_deplibs_check_method=pass_all
5121 ;;
5122
5123# This must be Linux ELF.
5124linux*)
5125 lt_cv_deplibs_check_method=pass_all
5126 ;;
5127
5128netbsd* | knetbsd*-gnu)
5129 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5131 else
5132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5133 fi
5134 ;;
5135
5136newos6*)
5137 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5138 lt_cv_file_magic_cmd=/usr/bin/file
5139 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5140 ;;
5141
5142*nto* | *qnx*)
5143 lt_cv_deplibs_check_method=pass_all
5144 ;;
5145
5146openbsd*)
5147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5149 else
5150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5151 fi
5152 ;;
5153
5154osf3* | osf4* | osf5*)
5155 lt_cv_deplibs_check_method=pass_all
5156 ;;
5157
5158rdos*)
5159 lt_cv_deplibs_check_method=pass_all
5160 ;;
5161
5162solaris*)
5163 lt_cv_deplibs_check_method=pass_all
5164 ;;
5165
5166sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5167 lt_cv_deplibs_check_method=pass_all
5168 ;;
5169
5170sysv4 | sysv4.3*)
5171 case $host_vendor in
5172 motorola)
5173 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]'
5174 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5175 ;;
5176 ncr)
5177 lt_cv_deplibs_check_method=pass_all
5178 ;;
5179 sequent)
5180 lt_cv_file_magic_cmd='/bin/file'
5181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5182 ;;
5183 sni)
5184 lt_cv_file_magic_cmd='/bin/file'
5185 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5186 lt_cv_file_magic_test_file=/lib/libc.so
5187 ;;
5188 siemens)
5189 lt_cv_deplibs_check_method=pass_all
5190 ;;
5191 pc)
5192 lt_cv_deplibs_check_method=pass_all
5193 ;;
5194 esac
5195 ;;
5196
5197tpf*)
5198 lt_cv_deplibs_check_method=pass_all
5199 ;;
5200esac
5201
5202fi
5203{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5204echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5205file_magic_cmd=$lt_cv_file_magic_cmd
5206deplibs_check_method=$lt_cv_deplibs_check_method
5207test -z "$deplibs_check_method" && deplibs_check_method=unknown
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220if test -n "$ac_tool_prefix"; then
5221 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5222set dummy ${ac_tool_prefix}ar; ac_word=$2
5223{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5225if test "${ac_cv_prog_AR+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227else
5228 if test -n "$AR"; then
5229 ac_cv_prog_AR="$AR" # Let the user override the test.
5230else
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238 ac_cv_prog_AR="${ac_tool_prefix}ar"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242done
5243done
5244IFS=$as_save_IFS
5245
5246fi
5247fi
5248AR=$ac_cv_prog_AR
5249if test -n "$AR"; then
5250 { echo "$as_me:$LINENO: result: $AR" >&5
5251echo "${ECHO_T}$AR" >&6; }
5252else
5253 { echo "$as_me:$LINENO: result: no" >&5
5254echo "${ECHO_T}no" >&6; }
5255fi
5256
5257
5258fi
5259if test -z "$ac_cv_prog_AR"; then
5260 ac_ct_AR=$AR
5261 # Extract the first word of "ar", so it can be a program name with args.
5262set dummy ar; ac_word=$2
5263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5265if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267else
5268 if test -n "$ac_ct_AR"; then
5269 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5270else
5271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272for as_dir in $PATH
5273do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5278 ac_cv_prog_ac_ct_AR="ar"
5279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282done
5283done
5284IFS=$as_save_IFS
5285
5286fi
5287fi
5288ac_ct_AR=$ac_cv_prog_ac_ct_AR
5289if test -n "$ac_ct_AR"; then
5290 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5291echo "${ECHO_T}$ac_ct_AR" >&6; }
5292else
5293 { echo "$as_me:$LINENO: result: no" >&5
5294echo "${ECHO_T}no" >&6; }
5295fi
5296
5297 if test "x$ac_ct_AR" = x; then
5298 AR="false"
5299 else
5300 case $cross_compiling:$ac_tool_warned in
5301yes:)
5302{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5303whose name does not start with the host triplet. If you think this
5304configuration is useful to you, please write to autoconf@gnu.org." >&5
5305echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5306whose name does not start with the host triplet. If you think this
5307configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5308ac_tool_warned=yes ;;
5309esac
5310 AR=$ac_ct_AR
5311 fi
5312else
5313 AR="$ac_cv_prog_AR"
5314fi
5315
5316test -z "$AR" && AR=ar
5317test -z "$AR_FLAGS" && AR_FLAGS=cru
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329if test -n "$ac_tool_prefix"; then
5330 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5331set dummy ${ac_tool_prefix}strip; ac_word=$2
5332{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5334if test "${ac_cv_prog_STRIP+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336else
5337 if test -n "$STRIP"; then
5338 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5339else
5340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341for as_dir in $PATH
5342do
5343 IFS=$as_save_IFS
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 break 2
5350 fi
5351done
5352done
5353IFS=$as_save_IFS
5354
5355fi
5356fi
5357STRIP=$ac_cv_prog_STRIP
5358if test -n "$STRIP"; then
5359 { echo "$as_me:$LINENO: result: $STRIP" >&5
5360echo "${ECHO_T}$STRIP" >&6; }
5361else
5362 { echo "$as_me:$LINENO: result: no" >&5
5363echo "${ECHO_T}no" >&6; }
5364fi
5365
5366
5367fi
5368if test -z "$ac_cv_prog_STRIP"; then
5369 ac_ct_STRIP=$STRIP
5370 # Extract the first word of "strip", so it can be a program name with args.
5371set dummy strip; ac_word=$2
5372{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5374if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377 if test -n "$ac_ct_STRIP"; then
5378 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5379else
5380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381for as_dir in $PATH
5382do
5383 IFS=$as_save_IFS
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387 ac_cv_prog_ac_ct_STRIP="strip"
5388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 break 2
5390 fi
5391done
5392done
5393IFS=$as_save_IFS
5394
5395fi
5396fi
5397ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5398if test -n "$ac_ct_STRIP"; then
5399 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5400echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5401else
5402 { echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6; }
5404fi
5405
5406 if test "x$ac_ct_STRIP" = x; then
5407 STRIP=":"
5408 else
5409 case $cross_compiling:$ac_tool_warned in
5410yes:)
5411{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5412whose name does not start with the host triplet. If you think this
5413configuration is useful to you, please write to autoconf@gnu.org." >&5
5414echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5415whose name does not start with the host triplet. If you think this
5416configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5417ac_tool_warned=yes ;;
5418esac
5419 STRIP=$ac_ct_STRIP
5420 fi
5421else
5422 STRIP="$ac_cv_prog_STRIP"
5423fi
5424
5425test -z "$STRIP" && STRIP=:
5426
5427
5428
5429
5430
5431
5432if test -n "$ac_tool_prefix"; then
5433 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5434set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5437if test "${ac_cv_prog_RANLIB+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5439else
5440 if test -n "$RANLIB"; then
5441 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5442else
5443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5453 fi
5454done
5455done
5456IFS=$as_save_IFS
5457
5458fi
5459fi
5460RANLIB=$ac_cv_prog_RANLIB
5461if test -n "$RANLIB"; then
5462 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5463echo "${ECHO_T}$RANLIB" >&6; }
5464else
5465 { echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6; }
5467fi
5468
5469
5470fi
5471if test -z "$ac_cv_prog_RANLIB"; then
5472 ac_ct_RANLIB=$RANLIB
5473 # Extract the first word of "ranlib", so it can be a program name with args.
5474set dummy ranlib; ac_word=$2
5475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5477if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479else
5480 if test -n "$ac_ct_RANLIB"; then
5481 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5482else
5483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484for as_dir in $PATH
5485do
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490 ac_cv_prog_ac_ct_RANLIB="ranlib"
5491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5493 fi
5494done
5495done
5496IFS=$as_save_IFS
5497
5498fi
5499fi
5500ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5501if test -n "$ac_ct_RANLIB"; then
5502 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5503echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5504else
5505 { echo "$as_me:$LINENO: result: no" >&5
5506echo "${ECHO_T}no" >&6; }
5507fi
5508
5509 if test "x$ac_ct_RANLIB" = x; then
5510 RANLIB=":"
5511 else
5512 case $cross_compiling:$ac_tool_warned in
5513yes:)
5514{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5515whose name does not start with the host triplet. If you think this
5516configuration is useful to you, please write to autoconf@gnu.org." >&5
5517echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5518whose name does not start with the host triplet. If you think this
5519configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5520ac_tool_warned=yes ;;
5521esac
5522 RANLIB=$ac_ct_RANLIB
5523 fi
5524else
5525 RANLIB="$ac_cv_prog_RANLIB"
5526fi
5527
5528test -z "$RANLIB" && RANLIB=:
5529
5530
5531
5532
5533
5534
5535# Determine commands to create old-style static archives.
5536old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5537old_postinstall_cmds='chmod 644 $oldlib'
5538old_postuninstall_cmds=
5539
5540if test -n "$RANLIB"; then
5541 case $host_os in
5542 openbsd*)
5543 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5544 ;;
5545 *)
5546 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5547 ;;
5548 esac
5549 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5550fi
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585# If no C compiler was specified, use CC.
5586LTCC=${LTCC-"$CC"}
5587
5588# If no C compiler flags were specified, use CFLAGS.
5589LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5590
5591# Allow CC to be a program name with arguments.
5592compiler=$CC
5593
5594
5595# Check for command to grab the raw symbol name followed by C symbol from nm.
5596{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5597echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5598if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601
5602# These are sane defaults that work on at least a few old systems.
5603# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5604
5605# Character class describing NM global symbol codes.
5606symcode='[BCDEGRST]'
5607
5608# Regexp to match symbols that can be accessed directly from C.
5609sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5610
5611# Define system-specific variables.
5612case $host_os in
5613aix*)
5614 symcode='[BCDT]'
5615 ;;
5616cygwin* | mingw* | pw32*)
5617 symcode='[ABCDGISTW]'
5618 ;;
5619hpux*)
5620 if test "$host_cpu" = ia64; then
5621 symcode='[ABCDEGRST]'
5622 fi
5623 ;;
5624irix* | nonstopux*)
5625 symcode='[BCDEGRST]'
5626 ;;
5627osf*)
5628 symcode='[BCDEGQRST]'
5629 ;;
5630solaris*)
5631 symcode='[BDRT]'
5632 ;;
5633sco3.2v5*)
5634 symcode='[DT]'
5635 ;;
5636sysv4.2uw2*)
5637 symcode='[DT]'
5638 ;;
5639sysv5* | sco5v6* | unixware* | OpenUNIX*)
5640 symcode='[ABDT]'
5641 ;;
5642sysv4)
5643 symcode='[DFNSTU]'
5644 ;;
5645esac
5646
5647# If we're using GNU nm, then use its standard symbol codes.
5648case `$NM -V 2>&1` in
5649*GNU* | *'with BFD'*)
5650 symcode='[ABCDGIRSTW]' ;;
5651esac
5652
5653# Transform an extracted symbol line into a proper C declaration.
5654# Some systems (esp. on ia64) link data and code symbols differently,
5655# so use this general approach.
5656lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5657
5658# Transform an extracted symbol line into symbol name and symbol address
5659lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5660
5661# Handle CRLF in mingw tool chain
5662opt_cr=
5663case $build_os in
5664mingw*)
5665 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5666 ;;
5667esac
5668
5669# Try without a prefix underscore, then with it.
5670for ac_symprfx in "" "_"; do
5671
5672 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5673 symxfrm="\\1 $ac_symprfx\\2 \\2"
5674
5675 # Write the raw and C identifiers.
5676 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5677 # Fake it for dumpbin and say T for any non-static function
5678 # and D for any global variable.
5679 # Also find C++ and __fastcall symbols from MSVC++,
5680 # which start with @ or ?.
5681 lt_cv_sys_global_symbol_pipe="$AWK '"\
5682" {last_section=section; section=\$ 3};"\
5683" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5684" \$ 0!~/External *\|/{next};"\
5685" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5686" {if(hide[section]) next};"\
5687" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5688" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5689" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5690" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5691" ' prfx=^$ac_symprfx"
5692 else
5693 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5694 fi
5695
5696 # Check to see that the pipe works correctly.
5697 pipe_works=no
5698
5699 rm -f conftest*
5700 cat > conftest.$ac_ext <<_LT_EOF
5701#ifdef __cplusplus
5702extern "C" {
5703#endif
5704char nm_test_var;
5705void nm_test_func(){}
5706#ifdef __cplusplus
5707}
5708#endif
5709int main(){nm_test_var='a';nm_test_func();return(0);}
5710_LT_EOF
5711
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; then
5717 # Now try to grab the symbols.
5718 nlist=conftest.nm
5719 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5720 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && test -s "$nlist"; then
5724 # Try sorting and uniquifying the output.
5725 if sort "$nlist" | uniq > "$nlist"T; then
5726 mv -f "$nlist"T "$nlist"
5727 else
5728 rm -f "$nlist"T
5729 fi
5730
5731 # Make sure that we snagged all the symbols we need.
5732 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5733 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5734 cat <<_LT_EOF > conftest.$ac_ext
5735#ifdef __cplusplus
5736extern "C" {
5737#endif
5738
5739_LT_EOF
5740 # Now generate the symbol file.
5741 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5742
5743 cat <<_LT_EOF >> conftest.$ac_ext
5744
5745/* The mapping between symbol names and symbols. */
5746const struct {
5747 const char *name;
5748 void *address;
5749}
5750lt__PROGRAM__LTX_preloaded_symbols[] =
5751{
5752 { "@PROGRAM@", (void *) 0 },
5753_LT_EOF
5754 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5755 cat <<\_LT_EOF >> conftest.$ac_ext
5756 {0, (void *) 0}
5757};
5758
5759/* This works around a problem in FreeBSD linker */
5760#ifdef FREEBSD_WORKAROUND
5761static const void *lt_preloaded_setup() {
5762 return lt__PROGRAM__LTX_preloaded_symbols;
5763}
5764#endif
5765
5766#ifdef __cplusplus
5767}
5768#endif
5769_LT_EOF
5770 # Now try linking the two files.
5771 mv conftest.$ac_objext conftstm.$ac_objext
5772 lt_save_LIBS="$LIBS"
5773 lt_save_CFLAGS="$CFLAGS"
5774 LIBS="conftstm.$ac_objext"
5775 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5777 (eval $ac_link) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5781 pipe_works=yes
5782 fi
5783 LIBS="$lt_save_LIBS"
5784 CFLAGS="$lt_save_CFLAGS"
5785 else
5786 echo "cannot find nm_test_func in $nlist" >&5
5787 fi
5788 else
5789 echo "cannot find nm_test_var in $nlist" >&5
5790 fi
5791 else
5792 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5793 fi
5794 else
5795 echo "$progname: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5797 fi
5798 rm -f conftest* conftst*
5799
5800 # Do not use the global_symbol_pipe unless it works.
5801 if test "$pipe_works" = yes; then
5802 break
5803 else
5804 lt_cv_sys_global_symbol_pipe=
5805 fi
5806done
5807
5808fi
5809
5810if test -z "$lt_cv_sys_global_symbol_pipe"; then
5811 lt_cv_sys_global_symbol_to_cdecl=
5812fi
5813if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5814 { echo "$as_me:$LINENO: result: failed" >&5
5815echo "${ECHO_T}failed" >&6; }
5816else
5817 { echo "$as_me:$LINENO: result: ok" >&5
5818echo "${ECHO_T}ok" >&6; }
5819fi
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838# Check whether --enable-libtool-lock was given.
5839if test "${enable_libtool_lock+set}" = set; then
5840 enableval=$enable_libtool_lock;
5841fi
5842
5843test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5844
5845# Some flags need to be propagated to the compiler or linker for good
5846# libtool support.
5847case $host in
5848ia64-*-hpux*)
5849 # Find out which ABI we are using.
5850 echo 'int i;' > conftest.$ac_ext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852 (eval $ac_compile) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; then
5856 case `/usr/bin/file conftest.$ac_objext` in
5857 *ELF-32*)
5858 HPUX_IA64_MODE="32"
5859 ;;
5860 *ELF-64*)
5861 HPUX_IA64_MODE="64"
5862 ;;
5863 esac
5864 fi
5865 rm -rf conftest*
5866 ;;
5867*-*-irix6*)
5868 # Find out which ABI we are using.
5869 echo '#line 5869 "configure"' > conftest.$ac_ext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871 (eval $ac_compile) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; then
5875 if test "$lt_cv_prog_gnu_ld" = yes; then
5876 case `/usr/bin/file conftest.$ac_objext` in
5877 *32-bit*)
5878 LD="${LD-ld} -melf32bsmip"
5879 ;;
5880 *N32*)
5881 LD="${LD-ld} -melf32bmipn32"
5882 ;;
5883 *64-bit*)
5884 LD="${LD-ld} -melf64bmip"
5885 ;;
5886 esac
5887 else
5888 case `/usr/bin/file conftest.$ac_objext` in
5889 *32-bit*)
5890 LD="${LD-ld} -32"
5891 ;;
5892 *N32*)
5893 LD="${LD-ld} -n32"
5894 ;;
5895 *64-bit*)
5896 LD="${LD-ld} -64"
5897 ;;
5898 esac
5899 fi
5900 fi
5901 rm -rf conftest*
5902 ;;
5903
5904x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5905 # Find out which ABI we are using.
5906 echo 'int i;' > conftest.$ac_ext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908 (eval $ac_compile) 2>&5
5909 ac_status=$?
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; then
5912 case `/usr/bin/file conftest.o` in
5913 *32-bit*)
5914 case $host in
5915 x86_64-*linux*)
5916 LD="${LD-ld} -m elf_i386"
5917 ;;
5918 ppc64-*linux*|powerpc64-*linux*)
5919 LD="${LD-ld} -m elf32ppclinux"
5920 ;;
5921 s390x-*linux*)
5922 LD="${LD-ld} -m elf_s390"
5923 ;;
5924 sparc64-*linux*)
5925 LD="${LD-ld} -m elf32_sparc"
5926 ;;
5927 esac
5928 ;;
5929 *64-bit*)
5930 case $host in
5931 x86_64-*linux*)
5932 LD="${LD-ld} -m elf_x86_64"
5933 ;;
5934 ppc*-*linux*|powerpc*-*linux*)
5935 LD="${LD-ld} -m elf64ppc"
5936 ;;
5937 s390*-*linux*|s390*-*tpf*)
5938 LD="${LD-ld} -m elf64_s390"
5939 ;;
5940 sparc*-*linux*)
5941 LD="${LD-ld} -m elf64_sparc"
5942 ;;
5943 esac
5944 ;;
5945 esac
5946 fi
5947 rm -rf conftest*
5948 ;;
5949
5950*-*-sco3.2v5*)
5951 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5952 SAVE_CFLAGS="$CFLAGS"
5953 CFLAGS="$CFLAGS -belf"
5954 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5955echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5956if test "${lt_cv_cc_needs_belf+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959 ac_ext=c
5960ac_cpp='$CPP $CPPFLAGS'
5961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963ac_compiler_gnu=$ac_cv_c_compiler_gnu
5964
5965 cat >conftest.$ac_ext <<_ACEOF
5966/* confdefs.h. */
5967_ACEOF
5968cat confdefs.h >>conftest.$ac_ext
5969cat >>conftest.$ac_ext <<_ACEOF
5970/* end confdefs.h. */
5971
5972int
5973main ()
5974{
5975
5976 ;
5977 return 0;
5978}
5979_ACEOF
5980rm -f conftest.$ac_objext conftest$ac_exeext
5981if { (ac_try="$ac_link"
5982case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985esac
5986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_link") 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } && {
5994 test -z "$ac_c_werror_flag" ||
5995 test ! -s conftest.err
5996 } && test -s conftest$ac_exeext &&
5997 $as_test_x conftest$ac_exeext; then
5998 lt_cv_cc_needs_belf=yes
5999else
6000 echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
6002
6003 lt_cv_cc_needs_belf=no
6004fi
6005
6006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6007 conftest$ac_exeext conftest.$ac_ext
6008 ac_ext=c
6009ac_cpp='$CPP $CPPFLAGS'
6010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6012ac_compiler_gnu=$ac_cv_c_compiler_gnu
6013
6014fi
6015{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6016echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6017 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6018 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6019 CFLAGS="$SAVE_CFLAGS"
6020 fi
6021 ;;
6022sparc*-*solaris*)
6023 # Find out which ABI we are using.
6024 echo 'int i;' > conftest.$ac_ext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026 (eval $ac_compile) 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; then
6030 case `/usr/bin/file conftest.o` in
6031 *64-bit*)
6032 case $lt_cv_prog_gnu_ld in
6033 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6034 *) LD="${LD-ld} -64" ;;
6035 esac
6036 ;;
6037 esac
6038 fi
6039 rm -rf conftest*
6040 ;;
6041esac
6042
6043need_locks="$enable_libtool_lock"
6044
6045ac_ext=c
6046ac_cpp='$CPP $CPPFLAGS'
6047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6049ac_compiler_gnu=$ac_cv_c_compiler_gnu
6050{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6051echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6052# On Suns, sometimes $CPP names a directory.
6053if test -n "$CPP" && test -d "$CPP"; then
6054 CPP=
6055fi
6056if test -z "$CPP"; then
6057 if test "${ac_cv_prog_CPP+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060 # Double quotes because CPP needs to be expanded
6061 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6062 do
6063 ac_preproc_ok=false
6064for ac_c_preproc_warn_flag in '' yes
6065do
6066 # Use a header file that comes with gcc, so configuring glibc
6067 # with a fresh cross-compiler works.
6068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6069 # <limits.h> exists even on freestanding compilers.
6070 # On the NeXT, cc -E runs the code through the compiler's parser,
6071 # not just through cpp. "Syntax error" is here to catch this case.
6072 cat >conftest.$ac_ext <<_ACEOF
6073/* confdefs.h. */
6074_ACEOF
6075cat confdefs.h >>conftest.$ac_ext
6076cat >>conftest.$ac_ext <<_ACEOF
6077/* end confdefs.h. */
6078#ifdef __STDC__
6079# include <limits.h>
6080#else
6081# include <assert.h>
6082#endif
6083 Syntax error
6084_ACEOF
6085if { (ac_try="$ac_cpp conftest.$ac_ext"
6086case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089esac
6090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6092 ac_status=$?
6093 grep -v '^ *+' conftest.er1 >conftest.err
6094 rm -f conftest.er1
6095 cat conftest.err >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } >/dev/null && {
6098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6099 test ! -s conftest.err
6100 }; then
6101 :
6102else
6103 echo "$as_me: failed program was:" >&5
6104sed 's/^/| /' conftest.$ac_ext >&5
6105
6106 # Broken: fails on valid input.
6107continue
6108fi
6109
6110rm -f conftest.err conftest.$ac_ext
6111
6112 # OK, works on sane cases. Now check whether nonexistent headers
6113 # can be detected and how.
6114 cat >conftest.$ac_ext <<_ACEOF
6115/* confdefs.h. */
6116_ACEOF
6117cat confdefs.h >>conftest.$ac_ext
6118cat >>conftest.$ac_ext <<_ACEOF
6119/* end confdefs.h. */
6120#include <ac_nonexistent.h>
6121_ACEOF
6122if { (ac_try="$ac_cpp conftest.$ac_ext"
6123case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6126esac
6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } >/dev/null && {
6135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6136 test ! -s conftest.err
6137 }; then
6138 # Broken: success on invalid input.
6139continue
6140else
6141 echo "$as_me: failed program was:" >&5
6142sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 # Passes both tests.
6145ac_preproc_ok=:
6146break
6147fi
6148
6149rm -f conftest.err conftest.$ac_ext
6150
6151done
6152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6153rm -f conftest.err conftest.$ac_ext
6154if $ac_preproc_ok; then
6155 break
6156fi
6157
6158 done
6159 ac_cv_prog_CPP=$CPP
6160
6161fi
6162 CPP=$ac_cv_prog_CPP
6163else
6164 ac_cv_prog_CPP=$CPP
6165fi
6166{ echo "$as_me:$LINENO: result: $CPP" >&5
6167echo "${ECHO_T}$CPP" >&6; }
6168ac_preproc_ok=false
6169for ac_c_preproc_warn_flag in '' yes
6170do
6171 # Use a header file that comes with gcc, so configuring glibc
6172 # with a fresh cross-compiler works.
6173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6174 # <limits.h> exists even on freestanding compilers.
6175 # On the NeXT, cc -E runs the code through the compiler's parser,
6176 # not just through cpp. "Syntax error" is here to catch this case.
6177 cat >conftest.$ac_ext <<_ACEOF
6178/* confdefs.h. */
6179_ACEOF
6180cat confdefs.h >>conftest.$ac_ext
6181cat >>conftest.$ac_ext <<_ACEOF
6182/* end confdefs.h. */
6183#ifdef __STDC__
6184# include <limits.h>
6185#else
6186# include <assert.h>
6187#endif
6188 Syntax error
6189_ACEOF
6190if { (ac_try="$ac_cpp conftest.$ac_ext"
6191case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194esac
6195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } >/dev/null && {
6203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6204 test ! -s conftest.err
6205 }; then
6206 :
6207else
6208 echo "$as_me: failed program was:" >&5
6209sed 's/^/| /' conftest.$ac_ext >&5
6210
6211 # Broken: fails on valid input.
6212continue
6213fi
6214
6215rm -f conftest.err conftest.$ac_ext
6216
6217 # OK, works on sane cases. Now check whether nonexistent headers
6218 # can be detected and how.
6219 cat >conftest.$ac_ext <<_ACEOF
6220/* confdefs.h. */
6221_ACEOF
6222cat confdefs.h >>conftest.$ac_ext
6223cat >>conftest.$ac_ext <<_ACEOF
6224/* end confdefs.h. */
6225#include <ac_nonexistent.h>
6226_ACEOF
6227if { (ac_try="$ac_cpp conftest.$ac_ext"
6228case "(($ac_try" in
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6231esac
6232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } >/dev/null && {
6240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6241 test ! -s conftest.err
6242 }; then
6243 # Broken: success on invalid input.
6244continue
6245else
6246 echo "$as_me: failed program was:" >&5
6247sed 's/^/| /' conftest.$ac_ext >&5
6248
6249 # Passes both tests.
6250ac_preproc_ok=:
6251break
6252fi
6253
6254rm -f conftest.err conftest.$ac_ext
6255
6256done
6257# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6258rm -f conftest.err conftest.$ac_ext
6259if $ac_preproc_ok; then
6260 :
6261else
6262 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6263See \`config.log' for more details." >&5
6264echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6265See \`config.log' for more details." >&2;}
6266 { (exit 1); exit 1; }; }
6267fi
6268
6269ac_ext=c
6270ac_cpp='$CPP $CPPFLAGS'
6271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6273ac_compiler_gnu=$ac_cv_c_compiler_gnu
6274
6275
6276{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6277echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6278if test "${ac_cv_header_stdc+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280else
6281 cat >conftest.$ac_ext <<_ACEOF
6282/* confdefs.h. */
6283_ACEOF
6284cat confdefs.h >>conftest.$ac_ext
6285cat >>conftest.$ac_ext <<_ACEOF
6286/* end confdefs.h. */
6287#include <stdlib.h>
6288#include <stdarg.h>
6289#include <string.h>
6290#include <float.h>
6291
6292int
6293main ()
6294{
6295
6296 ;
6297 return 0;
6298}
6299_ACEOF
6300rm -f conftest.$ac_objext
6301if { (ac_try="$ac_compile"
6302case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6305esac
6306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307 (eval "$ac_compile") 2>conftest.er1
6308 ac_status=$?
6309 grep -v '^ *+' conftest.er1 >conftest.err
6310 rm -f conftest.er1
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } && {
6314 test -z "$ac_c_werror_flag" ||
6315 test ! -s conftest.err
6316 } && test -s conftest.$ac_objext; then
6317 ac_cv_header_stdc=yes
6318else
6319 echo "$as_me: failed program was:" >&5
6320sed 's/^/| /' conftest.$ac_ext >&5
6321
6322 ac_cv_header_stdc=no
6323fi
6324
6325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326
6327if test $ac_cv_header_stdc = yes; then
6328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6329 cat >conftest.$ac_ext <<_ACEOF
6330/* confdefs.h. */
6331_ACEOF
6332cat confdefs.h >>conftest.$ac_ext
6333cat >>conftest.$ac_ext <<_ACEOF
6334/* end confdefs.h. */
6335#include <string.h>
6336
6337_ACEOF
6338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6339 $EGREP "memchr" >/dev/null 2>&1; then
6340 :
6341else
6342 ac_cv_header_stdc=no
6343fi
6344rm -f conftest*
6345
6346fi
6347
6348if test $ac_cv_header_stdc = yes; then
6349 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6350 cat >conftest.$ac_ext <<_ACEOF
6351/* confdefs.h. */
6352_ACEOF
6353cat confdefs.h >>conftest.$ac_ext
6354cat >>conftest.$ac_ext <<_ACEOF
6355/* end confdefs.h. */
6356#include <stdlib.h>
6357
6358_ACEOF
6359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6360 $EGREP "free" >/dev/null 2>&1; then
6361 :
6362else
6363 ac_cv_header_stdc=no
6364fi
6365rm -f conftest*
6366
6367fi
6368
6369if test $ac_cv_header_stdc = yes; then
6370 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6371 if test "$cross_compiling" = yes; then
6372 :
6373else
6374 cat >conftest.$ac_ext <<_ACEOF
6375/* confdefs.h. */
6376_ACEOF
6377cat confdefs.h >>conftest.$ac_ext
6378cat >>conftest.$ac_ext <<_ACEOF
6379/* end confdefs.h. */
6380#include <ctype.h>
6381#include <stdlib.h>
6382#if ((' ' & 0x0FF) == 0x020)
6383# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6384# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6385#else
6386# define ISLOWER(c) \
6387 (('a' <= (c) && (c) <= 'i') \
6388 || ('j' <= (c) && (c) <= 'r') \
6389 || ('s' <= (c) && (c) <= 'z'))
6390# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6391#endif
6392
6393#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6394int
6395main ()
6396{
6397 int i;
6398 for (i = 0; i < 256; i++)
6399 if (XOR (islower (i), ISLOWER (i))
6400 || toupper (i) != TOUPPER (i))
6401 return 2;
6402 return 0;
6403}
6404_ACEOF
6405rm -f conftest$ac_exeext
6406if { (ac_try="$ac_link"
6407case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6410esac
6411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_link") 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6416 { (case "(($ac_try" in
6417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6418 *) ac_try_echo=$ac_try;;
6419esac
6420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6421 (eval "$ac_try") 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 :
6426else
6427 echo "$as_me: program exited with status $ac_status" >&5
6428echo "$as_me: failed program was:" >&5
6429sed 's/^/| /' conftest.$ac_ext >&5
6430
6431( exit $ac_status )
6432ac_cv_header_stdc=no
6433fi
6434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6435fi
6436
6437
6438fi
6439fi
6440{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6441echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6442if test $ac_cv_header_stdc = yes; then
6443
6444cat >>confdefs.h <<\_ACEOF
6445#define STDC_HEADERS 1
6446_ACEOF
6447
6448fi
6449
6450# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6461 inttypes.h stdint.h unistd.h
6462do
6463as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6464{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468else
6469 cat >conftest.$ac_ext <<_ACEOF
6470/* confdefs.h. */
6471_ACEOF
6472cat confdefs.h >>conftest.$ac_ext
6473cat >>conftest.$ac_ext <<_ACEOF
6474/* end confdefs.h. */
6475$ac_includes_default
6476
6477#include <$ac_header>
6478_ACEOF
6479rm -f conftest.$ac_objext
6480if { (ac_try="$ac_compile"
6481case "(($ac_try" in
6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6484esac
6485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6486 (eval "$ac_compile") 2>conftest.er1
6487 ac_status=$?
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } && {
6493 test -z "$ac_c_werror_flag" ||
6494 test ! -s conftest.err
6495 } && test -s conftest.$ac_objext; then
6496 eval "$as_ac_Header=yes"
6497else
6498 echo "$as_me: failed program was:" >&5
6499sed 's/^/| /' conftest.$ac_ext >&5
6500
6501 eval "$as_ac_Header=no"
6502fi
6503
6504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505fi
6506ac_res=`eval echo '${'$as_ac_Header'}'`
6507 { echo "$as_me:$LINENO: result: $ac_res" >&5
6508echo "${ECHO_T}$ac_res" >&6; }
6509if test `eval echo '${'$as_ac_Header'}'` = yes; then
6510 cat >>confdefs.h <<_ACEOF
6511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6512_ACEOF
6513
6514fi
6515
6516done
6517
6518
6519
6520for ac_header in dlfcn.h
6521do
6522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6523{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527else
6528 cat >conftest.$ac_ext <<_ACEOF
6529/* confdefs.h. */
6530_ACEOF
6531cat confdefs.h >>conftest.$ac_ext
6532cat >>conftest.$ac_ext <<_ACEOF
6533/* end confdefs.h. */
6534$ac_includes_default
6535
6536#include <$ac_header>
6537_ACEOF
6538rm -f conftest.$ac_objext
6539if { (ac_try="$ac_compile"
6540case "(($ac_try" in
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6543esac
6544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6546 ac_status=$?
6547 grep -v '^ *+' conftest.er1 >conftest.err
6548 rm -f conftest.er1
6549 cat conftest.err >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.$ac_objext; then
6555 eval "$as_ac_Header=yes"
6556else
6557 echo "$as_me: failed program was:" >&5
6558sed 's/^/| /' conftest.$ac_ext >&5
6559
6560 eval "$as_ac_Header=no"
6561fi
6562
6563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564fi
6565ac_res=`eval echo '${'$as_ac_Header'}'`
6566 { echo "$as_me:$LINENO: result: $ac_res" >&5
6567echo "${ECHO_T}$ac_res" >&6; }
6568if test `eval echo '${'$as_ac_Header'}'` = yes; then
6569 cat >>confdefs.h <<_ACEOF
6570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6571_ACEOF
6572
6573fi
6574
6575done
6576
6577
6578
6579# This can be used to rebuild libtool when needed
6580LIBTOOL_DEPS="$ltmain"
6581
6582# Always use our own libtool.
6583LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609test -z "$LN_S" && LN_S="ln -s"
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624if test -n "${ZSH_VERSION+set}" ; then
6625 setopt NO_GLOB_SUBST
6626fi
6627
6628{ echo "$as_me:$LINENO: checking for objdir" >&5
6629echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6630if test "${lt_cv_objdir+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633 rm -f .libs 2>/dev/null
6634mkdir .libs 2>/dev/null
6635if test -d .libs; then
6636 lt_cv_objdir=.libs
6637else
6638 # MS-DOS does not allow filenames that begin with a dot.
6639 lt_cv_objdir=_libs
6640fi
6641rmdir .libs 2>/dev/null
6642fi
6643{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6644echo "${ECHO_T}$lt_cv_objdir" >&6; }
6645objdir=$lt_cv_objdir
6646
6647
6648
6649
6650
6651cat >>confdefs.h <<_ACEOF
6652#define LT_OBJDIR "$lt_cv_objdir/"
6653_ACEOF
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671case $host_os in
6672aix3*)
6673 # AIX sometimes has problems with the GCC collect2 program. For some
6674 # reason, if we set the COLLECT_NAMES environment variable, the problems
6675 # vanish in a puff of smoke.
6676 if test "X${COLLECT_NAMES+set}" != Xset; then
6677 COLLECT_NAMES=
6678 export COLLECT_NAMES
6679 fi
6680 ;;
6681esac
6682
6683# Sed substitution that helps us do robust quoting. It backslashifies
6684# metacharacters that are still active within double-quoted strings.
6685Xsed='sed -e 1s/^X//'
6686sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6687
6688# Same as above, but do not quote variable references.
6689double_quote_subst='s/\(["`\\]\)/\\\1/g'
6690
6691# Sed substitution to delay expansion of an escaped shell variable in a
6692# double_quote_subst'ed string.
6693delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6694
6695# Sed substitution to delay expansion of an escaped single quote.
6696delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6697
6698# Sed substitution to avoid accidental globbing in evaled expressions
6699no_glob_subst='s/\*/\\\*/g'
6700
6701# Global variables:
6702ofile=libtool
6703can_build_shared=yes
6704
6705# All known linkers require a `.a' archive for static linking (except MSVC,
6706# which needs '.lib').
6707libext=a
6708
6709with_gnu_ld="$lt_cv_prog_gnu_ld"
6710
6711old_CC="$CC"
6712old_CFLAGS="$CFLAGS"
6713
6714# Set sane defaults for various variables
6715test -z "$CC" && CC=cc
6716test -z "$LTCC" && LTCC=$CC
6717test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6718test -z "$LD" && LD=ld
6719test -z "$ac_objext" && ac_objext=o
6720
6721for cc_temp in $compiler""; do
6722 case $cc_temp in
6723 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6724 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6725 \-*) ;;
6726 *) break;;
6727 esac
6728done
6729cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6730
6731
6732# Only perform the check for file, if the check method requires it
6733test -z "$MAGIC_CMD" && MAGIC_CMD=file
6734case $deplibs_check_method in
6735file_magic*)
6736 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6737 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6738echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6739if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741else
6742 case $MAGIC_CMD in
6743[\\/*] | ?:[\\/]*)
6744 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6745 ;;
6746*)
6747 lt_save_MAGIC_CMD="$MAGIC_CMD"
6748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6749 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6750 for ac_dir in $ac_dummy; do
6751 IFS="$lt_save_ifs"
6752 test -z "$ac_dir" && ac_dir=.
6753 if test -f $ac_dir/${ac_tool_prefix}file; then
6754 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6755 if test -n "$file_magic_test_file"; then
6756 case $deplibs_check_method in
6757 "file_magic "*)
6758 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6760 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6761 $EGREP "$file_magic_regex" > /dev/null; then
6762 :
6763 else
6764 cat <<_LT_EOF 1>&2
6765
6766*** Warning: the command libtool uses to detect shared libraries,
6767*** $file_magic_cmd, produces output that libtool cannot recognize.
6768*** The result is that libtool may fail to recognize shared libraries
6769*** as such. This will affect the creation of libtool libraries that
6770*** depend on shared libraries, but programs linked with such libtool
6771*** libraries will work regardless of this problem. Nevertheless, you
6772*** may want to report the problem to your system manager and/or to
6773*** bug-libtool@gnu.org
6774
6775_LT_EOF
6776 fi ;;
6777 esac
6778 fi
6779 break
6780 fi
6781 done
6782 IFS="$lt_save_ifs"
6783 MAGIC_CMD="$lt_save_MAGIC_CMD"
6784 ;;
6785esac
6786fi
6787
6788MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6789if test -n "$MAGIC_CMD"; then
6790 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6791echo "${ECHO_T}$MAGIC_CMD" >&6; }
6792else
6793 { echo "$as_me:$LINENO: result: no" >&5
6794echo "${ECHO_T}no" >&6; }
6795fi
6796
6797
6798
6799
6800
6801if test -z "$lt_cv_path_MAGIC_CMD"; then
6802 if test -n "$ac_tool_prefix"; then
6803 { echo "$as_me:$LINENO: checking for file" >&5
6804echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6805if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807else
6808 case $MAGIC_CMD in
6809[\\/*] | ?:[\\/]*)
6810 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6811 ;;
6812*)
6813 lt_save_MAGIC_CMD="$MAGIC_CMD"
6814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6815 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6816 for ac_dir in $ac_dummy; do
6817 IFS="$lt_save_ifs"
6818 test -z "$ac_dir" && ac_dir=.
6819 if test -f $ac_dir/file; then
6820 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6821 if test -n "$file_magic_test_file"; then
6822 case $deplibs_check_method in
6823 "file_magic "*)
6824 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6826 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6827 $EGREP "$file_magic_regex" > /dev/null; then
6828 :
6829 else
6830 cat <<_LT_EOF 1>&2
6831
6832*** Warning: the command libtool uses to detect shared libraries,
6833*** $file_magic_cmd, produces output that libtool cannot recognize.
6834*** The result is that libtool may fail to recognize shared libraries
6835*** as such. This will affect the creation of libtool libraries that
6836*** depend on shared libraries, but programs linked with such libtool
6837*** libraries will work regardless of this problem. Nevertheless, you
6838*** may want to report the problem to your system manager and/or to
6839*** bug-libtool@gnu.org
6840
6841_LT_EOF
6842 fi ;;
6843 esac
6844 fi
6845 break
6846 fi
6847 done
6848 IFS="$lt_save_ifs"
6849 MAGIC_CMD="$lt_save_MAGIC_CMD"
6850 ;;
6851esac
6852fi
6853
6854MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6855if test -n "$MAGIC_CMD"; then
6856 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6857echo "${ECHO_T}$MAGIC_CMD" >&6; }
6858else
6859 { echo "$as_me:$LINENO: result: no" >&5
6860echo "${ECHO_T}no" >&6; }
6861fi
6862
6863
6864 else
6865 MAGIC_CMD=:
6866 fi
6867fi
6868
6869 fi
6870 ;;
6871esac
6872
6873# Use C for the default configuration in the libtool script
6874
6875lt_save_CC="$CC"
6876ac_ext=c
6877ac_cpp='$CPP $CPPFLAGS'
6878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6880ac_compiler_gnu=$ac_cv_c_compiler_gnu
6881
6882
6883# Source file extension for C test sources.
6884ac_ext=c
6885
6886# Object file extension for compiled C test sources.
6887objext=o
6888objext=$objext
6889
6890# Code to be used in simple compile tests
6891lt_simple_compile_test_code="int some_variable = 0;\n"
6892
6893# Code to be used in simple link tests
6894lt_simple_link_test_code='int main(){return(0);}\n'
6895
6896
6897
6898
6899
6900
6901
6902# If no C compiler was specified, use CC.
6903LTCC=${LTCC-"$CC"}
6904
6905# If no C compiler flags were specified, use CFLAGS.
6906LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6907
6908# Allow CC to be a program name with arguments.
6909compiler=$CC
6910
6911# Save the default compiler, since it gets overwritten when the other
6912# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6913compiler_DEFAULT=$CC
6914
6915# save warnings/boilerplate of simple test code
6916ac_outfile=conftest.$ac_objext
6917printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6918eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6919_lt_compiler_boilerplate=`cat conftest.err`
6920$RM conftest*
6921
6922ac_outfile=conftest.$ac_objext
6923printf "$lt_simple_link_test_code" >conftest.$ac_ext
6924eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6925_lt_linker_boilerplate=`cat conftest.err`
6926$RM conftest*
6927
6928
6929## CAVEAT EMPTOR:
6930## There is no encapsulation within the following macros, do not change
6931## the running order or otherwise move them around unless you know exactly
6932## what you are doing...
6933if test -n "$compiler"; then
6934
6935lt_prog_compiler_no_builtin_flag=
6936
6937if test "$GCC" = yes; then
6938 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6939
6940 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6941echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6942if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944else
6945 lt_cv_prog_compiler_rtti_exceptions=no
6946 ac_outfile=conftest.$ac_objext
6947 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6948 lt_compiler_flag="-fno-rtti -fno-exceptions"
6949 # Insert the option either (1) after the last *FLAGS variable, or
6950 # (2) before a word containing "conftest.", or (3) at the end.
6951 # Note that $ac_compile itself does not contain backslashes and begins
6952 # with a dollar sign (not a hyphen), so the echo should work correctly.
6953 # The option is referenced via a variable to avoid confusing sed.
6954 lt_compile=`echo "$ac_compile" | $SED \
6955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6957 -e 's:$: $lt_compiler_flag:'`
6958 (eval echo "\"\$as_me:6958: $lt_compile\"" >&5)
6959 (eval "$lt_compile" 2>conftest.err)
6960 ac_status=$?
6961 cat conftest.err >&5
6962 echo "$as_me:6962: \$? = $ac_status" >&5
6963 if (exit $ac_status) && test -s "$ac_outfile"; then
6964 # The compiler can only warn and ignore the option if not recognized
6965 # So say no if there are warnings other than the usual output.
6966 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6968 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6969 lt_cv_prog_compiler_rtti_exceptions=yes
6970 fi
6971 fi
6972 $RM conftest*
6973
6974fi
6975{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6976echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6977
6978if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6979 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6980else
6981 :
6982fi
6983
6984fi
6985
6986
6987
6988
6989
6990
6991 lt_prog_compiler_wl=
6992lt_prog_compiler_pic=
6993lt_prog_compiler_static=
6994
6995{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6996echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6997
6998 if test "$GCC" = yes; then
6999 lt_prog_compiler_wl='-Wl,'
7000 lt_prog_compiler_static='-static'
7001
7002 case $host_os in
7003 aix*)
7004 # All AIX code is PIC.
7005 if test "$host_cpu" = ia64; then
7006 # AIX 5 now supports IA64 processor
7007 lt_prog_compiler_static='-Bstatic'
7008 fi
7009 ;;
7010
7011 amigaos*)
7012 if test "$host_cpu" = m68k; then
7013 # FIXME: we need at least 68020 code to build shared libraries, but
7014 # adding the `-m68020' flag to GCC prevents building anything better,
7015 # like `-m68040'.
7016 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7017 fi
7018 ;;
7019
7020 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7021 # PIC is the default for these OSes.
7022 ;;
7023
7024 mingw* | pw32* | os2*)
7025 # This hack is so that the source file can tell whether it is being
7026 # built for inclusion in a dll (and should export symbols for example).
7027 lt_prog_compiler_pic='-DDLL_EXPORT'
7028 ;;
7029
7030 darwin* | rhapsody*)
7031 # PIC is the default on this platform
7032 # Common symbols not allowed in MH_DYLIB files
7033 lt_prog_compiler_pic='-fno-common'
7034 ;;
7035
7036 hpux*)
7037 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7038 # not for PA HP-UX.
7039 case $host_cpu in
7040 hppa*64*|ia64*)
7041 # +Z the default
7042 ;;
7043 *)
7044 lt_prog_compiler_pic='-fPIC'
7045 ;;
7046 esac
7047 ;;
7048
7049 interix3*)
7050 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7051 # Instead, we relocate shared libraries at runtime.
7052 ;;
7053
7054 msdosdjgpp*)
7055 # Just because we use GCC doesn't mean we suddenly get shared libraries
7056 # on systems that don't support them.
7057 lt_prog_compiler_can_build_shared=no
7058 enable_shared=no
7059 ;;
7060
7061 *nto* | *qnx*)
7062 # QNX uses GNU C++, but need to define -shared option too, otherwise
7063 # it will coredump.
7064 lt_prog_compiler_pic='-fPIC -shared'
7065 ;;
7066
7067 sysv4*MP*)
7068 if test -d /usr/nec; then
7069 lt_prog_compiler_pic=-Kconform_pic
7070 fi
7071 ;;
7072
7073 *)
7074 lt_prog_compiler_pic='-fPIC'
7075 ;;
7076 esac
7077 else
7078 # PORTME Check for flag to pass linker flags through the system compiler.
7079 case $host_os in
7080 aix*)
7081 lt_prog_compiler_wl='-Wl,'
7082 if test "$host_cpu" = ia64; then
7083 # AIX 5 now supports IA64 processor
7084 lt_prog_compiler_static='-Bstatic'
7085 else
7086 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7087 fi
7088 ;;
7089 darwin*)
7090 # PIC is the default on this platform
7091 # Common symbols not allowed in MH_DYLIB files
7092 case $cc_basename in
7093 xlc*)
7094 lt_prog_compiler_pic='-qnocommon'
7095 lt_prog_compiler_wl='-Wl,'
7096 ;;
7097 esac
7098 ;;
7099
7100 mingw* | pw32* | os2*)
7101 # This hack is so that the source file can tell whether it is being
7102 # built for inclusion in a dll (and should export symbols for example).
7103 lt_prog_compiler_pic='-DDLL_EXPORT'
7104 ;;
7105
7106 hpux9* | hpux10* | hpux11*)
7107 lt_prog_compiler_wl='-Wl,'
7108 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7109 # not for PA HP-UX.
7110 case $host_cpu in
7111 hppa*64*|ia64*)
7112 # +Z the default
7113 ;;
7114 *)
7115 lt_prog_compiler_pic='+Z'
7116 ;;
7117 esac
7118 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7119 lt_prog_compiler_static='${wl}-a ${wl}archive'
7120 ;;
7121
7122 irix5* | irix6* | nonstopux*)
7123 lt_prog_compiler_wl='-Wl,'
7124 # PIC (with -KPIC) is the default.
7125 lt_prog_compiler_static='-non_shared'
7126 ;;
7127
7128 linux*)
7129 case $cc_basename in
7130 icc* | ecc*)
7131 lt_prog_compiler_wl='-Wl,'
7132 lt_prog_compiler_pic='-KPIC'
7133 lt_prog_compiler_static='-static'
7134 ;;
7135 pgcc* | pgf77* | pgf90* | pgf95*)
7136 # Portland Group compilers (*not* the Pentium gcc compiler,
7137 # which looks to be a dead project)
7138 lt_prog_compiler_wl='-Wl,'
7139 lt_prog_compiler_pic='-fpic'
7140 lt_prog_compiler_static='-Bstatic'
7141 ;;
7142 ccc*)
7143 lt_prog_compiler_wl='-Wl,'
7144 # All Alpha code is PIC.
7145 lt_prog_compiler_static='-non_shared'
7146 ;;
7147 esac
7148 ;;
7149
7150 newsos6)
7151 lt_prog_compiler_pic='-KPIC'
7152 lt_prog_compiler_static='-Bstatic'
7153 ;;
7154
7155 *nto* | *qnx*)
7156 # QNX uses GNU C++, but need to define -shared option too, otherwise
7157 # it will coredump.
7158 lt_prog_compiler_pic='-fPIC -shared'
7159 ;;
7160
7161 osf3* | osf4* | osf5*)
7162 lt_prog_compiler_wl='-Wl,'
7163 # All OSF/1 code is PIC.
7164 lt_prog_compiler_static='-non_shared'
7165 ;;
7166
7167 rdos*)
7168 lt_prog_compiler_static='-non_shared'
7169 ;;
7170
7171 solaris*)
7172 lt_prog_compiler_pic='-KPIC'
7173 lt_prog_compiler_static='-Bstatic'
7174 case $cc_basename in
7175 f77* | f90* | f95*)
7176 lt_prog_compiler_wl='-Qoption ld ';;
7177 *)
7178 lt_prog_compiler_wl='-Wl,';;
7179 esac
7180 ;;
7181
7182 sunos4*)
7183 lt_prog_compiler_wl='-Qoption ld '
7184 lt_prog_compiler_pic='-PIC'
7185 lt_prog_compiler_static='-Bstatic'
7186 ;;
7187
7188 sysv4 | sysv4.2uw2* | sysv4.3*)
7189 lt_prog_compiler_wl='-Wl,'
7190 lt_prog_compiler_pic='-KPIC'
7191 lt_prog_compiler_static='-Bstatic'
7192 ;;
7193
7194 sysv4*MP*)
7195 if test -d /usr/nec ;then
7196 lt_prog_compiler_pic='-Kconform_pic'
7197 lt_prog_compiler_static='-Bstatic'
7198 fi
7199 ;;
7200
7201 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7202 lt_prog_compiler_wl='-Wl,'
7203 lt_prog_compiler_pic='-KPIC'
7204 lt_prog_compiler_static='-Bstatic'
7205 ;;
7206
7207 unicos*)
7208 lt_prog_compiler_wl='-Wl,'
7209 lt_prog_compiler_can_build_shared=no
7210 ;;
7211
7212 uts4*)
7213 lt_prog_compiler_pic='-pic'
7214 lt_prog_compiler_static='-Bstatic'
7215 ;;
7216
7217 *)
7218 lt_prog_compiler_can_build_shared=no
7219 ;;
7220 esac
7221 fi
7222
7223case $host_os in
7224 # For platforms which do not support PIC, -DPIC is meaningless:
7225 *djgpp*)
7226 lt_prog_compiler_pic=
7227 ;;
7228 *)
7229 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7230 ;;
7231esac
7232{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7233echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7234
7235
7236
7237
7238
7239
7240#
7241# Check to make sure the PIC flag actually works.
7242#
7243if test -n "$lt_prog_compiler_pic"; then
7244 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7245echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7246if test "${lt_prog_compiler_pic_works+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248else
7249 lt_prog_compiler_pic_works=no
7250 ac_outfile=conftest.$ac_objext
7251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7252 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7253 # Insert the option either (1) after the last *FLAGS variable, or
7254 # (2) before a word containing "conftest.", or (3) at the end.
7255 # Note that $ac_compile itself does not contain backslashes and begins
7256 # with a dollar sign (not a hyphen), so the echo should work correctly.
7257 # The option is referenced via a variable to avoid confusing sed.
7258 lt_compile=`echo "$ac_compile" | $SED \
7259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7261 -e 's:$: $lt_compiler_flag:'`
7262 (eval echo "\"\$as_me:7262: $lt_compile\"" >&5)
7263 (eval "$lt_compile" 2>conftest.err)
7264 ac_status=$?
7265 cat conftest.err >&5
7266 echo "$as_me:7266: \$? = $ac_status" >&5
7267 if (exit $ac_status) && test -s "$ac_outfile"; then
7268 # The compiler can only warn and ignore the option if not recognized
7269 # So say no if there are warnings other than the usual output.
7270 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7272 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7273 lt_prog_compiler_pic_works=yes
7274 fi
7275 fi
7276 $RM conftest*
7277
7278fi
7279{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7280echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7281
7282if test x"$lt_prog_compiler_pic_works" = xyes; then
7283 case $lt_prog_compiler_pic in
7284 "" | " "*) ;;
7285 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7286 esac
7287else
7288 lt_prog_compiler_pic=
7289 lt_prog_compiler_can_build_shared=no
7290fi
7291
7292fi
7293
7294
7295
7296
7297
7298
7299#
7300# Check to make sure the static flag actually works.
7301#
7302wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7303{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7304echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7305if test "${lt_prog_compiler_static_works+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307else
7308 lt_prog_compiler_static_works=no
7309 save_LDFLAGS="$LDFLAGS"
7310 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7311 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7312 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7313 # The linker can only warn and ignore the option if not recognized
7314 # So say no if there are warnings
7315 if test -s conftest.err; then
7316 # Append any errors to the config.log.
7317 cat conftest.err 1>&5
7318 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7320 if diff conftest.exp conftest.er2 >/dev/null; then
7321 lt_prog_compiler_static_works=yes
7322 fi
7323 else
7324 lt_prog_compiler_static_works=yes
7325 fi
7326 fi
7327 $RM conftest*
7328 LDFLAGS="$save_LDFLAGS"
7329
7330fi
7331{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7332echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7333
7334if test x"$lt_prog_compiler_static_works" = xyes; then
7335 :
7336else
7337 lt_prog_compiler_static=
7338fi
7339
7340
7341
7342
7343
7344
7345
7346 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7347echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7348if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350else
7351 lt_cv_prog_compiler_c_o=no
7352 $RM -r conftest 2>/dev/null
7353 mkdir conftest
7354 cd conftest
7355 mkdir out
7356 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7357
7358 lt_compiler_flag="-o out/conftest2.$ac_objext"
7359 # Insert the option either (1) after the last *FLAGS variable, or
7360 # (2) before a word containing "conftest.", or (3) at the end.
7361 # Note that $ac_compile itself does not contain backslashes and begins
7362 # with a dollar sign (not a hyphen), so the echo should work correctly.
7363 lt_compile=`echo "$ac_compile" | $SED \
7364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7366 -e 's:$: $lt_compiler_flag:'`
7367 (eval echo "\"\$as_me:7367: $lt_compile\"" >&5)
7368 (eval "$lt_compile" 2>out/conftest.err)
7369 ac_status=$?
7370 cat out/conftest.err >&5
7371 echo "$as_me:7371: \$? = $ac_status" >&5
7372 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7373 then
7374 # The compiler can only warn and ignore the option if not recognized
7375 # So say no if there are warnings
7376 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7377 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7378 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7379 lt_cv_prog_compiler_c_o=yes
7380 fi
7381 fi
7382 chmod u+w . 2>&5
7383 $RM conftest*
7384 # SGI C++ compiler will create directory out/ii_files/ for
7385 # template instantiation
7386 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7387 $RM out/* && rmdir out
7388 cd ..
7389 $RM -r conftest
7390 $RM conftest*
7391
7392fi
7393{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7394echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7395
7396
7397
7398
7399
7400
7401 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7402echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7403if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405else
7406 lt_cv_prog_compiler_c_o=no
7407 $RM -r conftest 2>/dev/null
7408 mkdir conftest
7409 cd conftest
7410 mkdir out
7411 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7412
7413 lt_compiler_flag="-o out/conftest2.$ac_objext"
7414 # Insert the option either (1) after the last *FLAGS variable, or
7415 # (2) before a word containing "conftest.", or (3) at the end.
7416 # Note that $ac_compile itself does not contain backslashes and begins
7417 # with a dollar sign (not a hyphen), so the echo should work correctly.
7418 lt_compile=`echo "$ac_compile" | $SED \
7419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7421 -e 's:$: $lt_compiler_flag:'`
7422 (eval echo "\"\$as_me:7422: $lt_compile\"" >&5)
7423 (eval "$lt_compile" 2>out/conftest.err)
7424 ac_status=$?
7425 cat out/conftest.err >&5
7426 echo "$as_me:7426: \$? = $ac_status" >&5
7427 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7428 then
7429 # The compiler can only warn and ignore the option if not recognized
7430 # So say no if there are warnings
7431 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7432 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7433 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7434 lt_cv_prog_compiler_c_o=yes
7435 fi
7436 fi
7437 chmod u+w . 2>&5
7438 $RM conftest*
7439 # SGI C++ compiler will create directory out/ii_files/ for
7440 # template instantiation
7441 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7442 $RM out/* && rmdir out
7443 cd ..
7444 $RM -r conftest
7445 $RM conftest*
7446
7447fi
7448{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7449echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7450
7451
7452
7453
7454hard_links="nottested"
7455if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7456 # do not overwrite the value of need_locks provided by the user
7457 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7458echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7459 hard_links=yes
7460 $RM conftest*
7461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7462 touch conftest.a
7463 ln conftest.a conftest.b 2>&5 || hard_links=no
7464 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7465 { echo "$as_me:$LINENO: result: $hard_links" >&5
7466echo "${ECHO_T}$hard_links" >&6; }
7467 if test "$hard_links" = no; then
7468 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7469echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7470 need_locks=warn
7471 fi
7472else
7473 need_locks=no
7474fi
7475
7476
7477
7478
7479
7480
7481 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7482echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7483
7484 runpath_var=
7485 allow_undefined_flag=
7486 always_export_symbols=no
7487 archive_cmds=
7488 archive_expsym_cmds=
7489 enable_shared_with_static_runtimes=no
7490 export_dynamic_flag_spec=
7491 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7492 hardcode_automatic=no
7493 hardcode_direct=no
7494 hardcode_libdir_flag_spec=
7495 hardcode_libdir_flag_spec_ld=
7496 hardcode_libdir_separator=
7497 hardcode_minus_L=no
7498 hardcode_shlibpath_var=unsupported
7499 inherit_rpath=no
7500 link_all_deplibs=unknown
7501 module_cmds=
7502 module_expsym_cmds=
7503 old_archive_from_new_cmds=
7504 old_archive_from_expsyms_cmds=
7505 thread_safe_flag_spec=
7506 whole_archive_flag_spec=
7507 # include_expsyms should be a list of space-separated symbols to be *always*
7508 # included in the symbol list
7509 include_expsyms=
7510 # exclude_expsyms can be an extended regexp of symbols to exclude
7511 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7512 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7513 # as well as any symbol that contains `d'.
7514 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7515 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7516 # platforms (ab)use it in PIC code, but their linkers get confused if
7517 # the symbol is explicitly referenced. Since portable code cannot
7518 # rely on this symbol name, it's probably fine to never include it in
7519 # preloaded symbol tables.
7520 extract_expsyms_cmds=
7521
7522 case $host_os in
7523 cygwin* | mingw* | pw32*)
7524 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7525 # When not using gcc, we currently assume that we are using
7526 # Microsoft Visual C++.
7527 if test "$GCC" != yes; then
7528 with_gnu_ld=no
7529 fi
7530 ;;
7531 interix*)
7532 # we just hope/assume this is gcc and not c89 (= MSVC++)
7533 with_gnu_ld=yes
7534 ;;
7535 openbsd*)
7536 with_gnu_ld=no
7537 ;;
7538 esac
7539
7540 ld_shlibs=yes
7541 if test "$with_gnu_ld" = yes; then
7542 # If archive_cmds runs LD, not CC, wlarc should be empty
7543 wlarc='${wl}'
7544
7545 # Set some defaults for GNU ld with shared library support. These
7546 # are reset later if shared libraries are not supported. Putting them
7547 # here allows them to be overridden if necessary.
7548 runpath_var=LD_RUN_PATH
7549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7550 export_dynamic_flag_spec='${wl}--export-dynamic'
7551 # ancient GNU ld didn't support --whole-archive et. al.
7552 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7553 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7554 else
7555 whole_archive_flag_spec=
7556 fi
7557 supports_anon_versioning=no
7558 case `$LD -v 2>&1` in
7559 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7560 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7561 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7562 *\ 2.11.*) ;; # other 2.11 versions
7563 *) supports_anon_versioning=yes ;;
7564 esac
7565
7566 # See if GNU ld supports shared libraries.
7567 case $host_os in
7568 aix3* | aix4* | aix5*)
7569 # On AIX/PPC, the GNU linker is very broken
7570 if test "$host_cpu" != ia64; then
7571 ld_shlibs=no
7572 cat <<_LT_EOF 1>&2
7573
7574*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7575*** to be unable to reliably create shared libraries on AIX.
7576*** Therefore, libtool is disabling shared libraries support. If you
7577*** really care for shared libraries, you may want to modify your PATH
7578*** so that a non-GNU linker is found, and then restart.
7579
7580_LT_EOF
7581 fi
7582 ;;
7583
7584 amigaos*)
7585 if test "$host_cpu" = m68k; then
7586 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)'
7587 hardcode_libdir_flag_spec='-L$libdir'
7588 hardcode_minus_L=yes
7589 fi
7590
7591 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7592 # that the semantics of dynamic libraries on AmigaOS, at least up
7593 # to version 4, is to share data among multiple programs linked
7594 # with the same dynamic library. Since this doesn't match the
7595 # behavior of shared libraries on other platforms, we can't use
7596 # them.
7597 ld_shlibs=no
7598 ;;
7599
7600 beos*)
7601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7602 allow_undefined_flag=unsupported
7603 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7604 # support --undefined. This deserves some investigation. FIXME
7605 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7606 else
7607 ld_shlibs=no
7608 fi
7609 ;;
7610
7611 cygwin* | mingw* | pw32*)
7612 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7613 # as there is no search path for DLLs.
7614 hardcode_libdir_flag_spec='-L$libdir'
7615 allow_undefined_flag=unsupported
7616 always_export_symbols=no
7617 enable_shared_with_static_runtimes=yes
7618 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7619
7620 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7622 # If the export-symbols file already is a .def file (1st line
7623 # is EXPORTS), use it as is; otherwise, prepend...
7624 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7625 cp $export_symbols $output_objdir/$soname.def;
7626 else
7627 echo EXPORTS > $output_objdir/$soname.def;
7628 cat $export_symbols >> $output_objdir/$soname.def;
7629 fi~
7630 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7631 else
7632 ld_shlibs=no
7633 fi
7634 ;;
7635
7636 interix3*)
7637 hardcode_direct=no
7638 hardcode_shlibpath_var=no
7639 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7640 export_dynamic_flag_spec='${wl}-E'
7641 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7642 # Instead, shared libraries are loaded at an image base (0x10000000 by
7643 # default) and relocated if they conflict, which is a slow very memory
7644 # consuming and fragmenting process. To avoid this, we pick a random,
7645 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7646 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7647 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7648 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'
7649 ;;
7650
7651 linux*|tpf*)
7652 tmp_diet=no
7653 if test "$host_os" = linux-dietlibc; then
7654 case $cc_basename in
7655 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7656 esac
7657 fi
7658 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7659 && test "$tmp_diet" = no
7660 then
7661 tmp_addflag=
7662 case $cc_basename,$host_cpu in
7663 pgcc*) # Portland Group C compiler
7664 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7665 tmp_addflag=' $pic_flag'
7666 ;;
7667 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7668 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7669 tmp_addflag=' $pic_flag -Mnomain' ;;
7670 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7671 tmp_addflag=' -i_dynamic' ;;
7672 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7673 tmp_addflag=' -i_dynamic -nofor_main' ;;
7674 ifc* | ifort*) # Intel Fortran compiler
7675 tmp_addflag=' -nofor_main' ;;
7676 esac
7677
7678 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7679
7680 if test "x$supports_anon_versioning" = xyes; then
7681 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~echo "local: *; };" >> $output_objdir/$libname.ver~$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7682 fi
7683 else
7684 ld_shlibs=no
7685 fi
7686 ;;
7687
7688 netbsd*)
7689 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7690 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7691 wlarc=
7692 else
7693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7695 fi
7696 ;;
7697
7698 solaris*)
7699 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7700 ld_shlibs=no
7701 cat <<_LT_EOF 1>&2
7702
7703*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7704*** create shared libraries on Solaris systems. Therefore, libtool
7705*** is disabling shared libraries support. We urge you to upgrade GNU
7706*** binutils to release 2.9.1 or newer. Another option is to modify
7707*** your PATH or compiler configuration so that the native linker is
7708*** used, and then restart.
7709
7710_LT_EOF
7711 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7714 else
7715 ld_shlibs=no
7716 fi
7717 ;;
7718
7719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7720 case `$LD -v 2>&1` in
7721 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7722 ld_shlibs=no
7723 cat <<_LT_EOF 1>&2
7724
7725*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7726*** reliably create shared libraries on SCO systems. Therefore, libtool
7727*** is disabling shared libraries support. We urge you to upgrade GNU
7728*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7729*** your PATH or compiler configuration so that the native linker is
7730*** used, and then restart.
7731
7732_LT_EOF
7733 ;;
7734 *)
7735 # For security reasons, it is highly recommended that you always
7736 # use absolute paths for naming shared libraries, and exclude the
7737 # DT_RUNPATH tag from executables and libraries. But doing so
7738 # requires that you compile everything twice, which is a pain.
7739 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7743 else
7744 ld_shlibs=no
7745 fi
7746 ;;
7747 esac
7748 ;;
7749
7750 sunos4*)
7751 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7752 wlarc=
7753 hardcode_direct=yes
7754 hardcode_shlibpath_var=no
7755 ;;
7756
7757 *)
7758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7761 else
7762 ld_shlibs=no
7763 fi
7764 ;;
7765 esac
7766
7767 if test "$ld_shlibs" = no; then
7768 runpath_var=
7769 hardcode_libdir_flag_spec=
7770 export_dynamic_flag_spec=
7771 whole_archive_flag_spec=
7772 fi
7773 else
7774 # PORTME fill in a description of your system's linker (not GNU ld)
7775 case $host_os in
7776 aix3*)
7777 allow_undefined_flag=unsupported
7778 always_export_symbols=yes
7779 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'
7780 # Note: this linker hardcodes the directories in LIBPATH if there
7781 # are no directories specified by -L.
7782 hardcode_minus_L=yes
7783 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7784 # Neither direct hardcoding nor static linking is supported with a
7785 # broken collect2.
7786 hardcode_direct=unsupported
7787 fi
7788 ;;
7789
7790 aix4* | aix5*)
7791 if test "$host_cpu" = ia64; then
7792 # On IA64, the linker does run time linking by default, so we don't
7793 # have to do anything special.
7794 aix_use_runtimelinking=no
7795 exp_sym_flag='-Bexport'
7796 no_entry_flag=""
7797 else
7798 # If we're using GNU nm, then we don't want the "-C" option.
7799 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7800 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7801 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7802 else
7803 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'
7804 fi
7805 aix_use_runtimelinking=no
7806
7807 # Test if we are trying to use run time linking or normal
7808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7809 # need to do runtime linking.
7810 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7811 for ld_flag in $LDFLAGS; do
7812 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7813 aix_use_runtimelinking=yes
7814 break
7815 fi
7816 done
7817 ;;
7818 esac
7819
7820 exp_sym_flag='-bexport'
7821 no_entry_flag='-bnoentry'
7822 fi
7823
7824 # When large executables or shared objects are built, AIX ld can
7825 # have problems creating the table of contents. If linking a library
7826 # or program results in "error TOC overflow" add -mminimal-toc to
7827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7829
7830 archive_cmds=''
7831 hardcode_direct=yes
7832 hardcode_libdir_separator=':'
7833 link_all_deplibs=yes
7834 file_list_spec='${wl}-f,'
7835
7836 if test "$GCC" = yes; then
7837 case $host_os in aix4.[012]|aix4.[012].*)
7838 # We only want to do this on AIX 4.2 and lower, the check
7839 # below for broken collect2 doesn't work under 4.3+
7840 collect2name=`${CC} -print-prog-name=collect2`
7841 if test -f "$collect2name" &&
7842 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7843 then
7844 # We have reworked collect2
7845 hardcode_direct=yes
7846 else
7847 # We have old collect2
7848 hardcode_direct=unsupported
7849 # It fails to find uninstalled libraries when the uninstalled
7850 # path is not listed in the libpath. Setting hardcode_minus_L
7851 # to unsupported forces relinking
7852 hardcode_minus_L=yes
7853 hardcode_libdir_flag_spec='-L$libdir'
7854 hardcode_libdir_separator=
7855 fi
7856 ;;
7857 esac
7858 shared_flag='-shared'
7859 if test "$aix_use_runtimelinking" = yes; then
7860 shared_flag="$shared_flag "'${wl}-G'
7861 fi
7862 else
7863 # not using gcc
7864 if test "$host_cpu" = ia64; then
7865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7866 # chokes on -Wl,-G. The following line is correct:
7867 shared_flag='-G'
7868 else
7869 if test "$aix_use_runtimelinking" = yes; then
7870 shared_flag='${wl}-G'
7871 else
7872 shared_flag='${wl}-bM:SRE'
7873 fi
7874 fi
7875 fi
7876
7877 # It seems that -bexpall does not export symbols beginning with
7878 # underscore (_), so it is better to generate a list of symbols to export.
7879 always_export_symbols=yes
7880 if test "$aix_use_runtimelinking" = yes; then
7881 # Warning - without using the other runtime loading flags (-brtl),
7882 # -berok will link without error, but may produce a broken library.
7883 allow_undefined_flag='-berok'
7884 # Determine the default libpath from the value encoded in an
7885 # empty executable.
7886 cat >conftest.$ac_ext <<_ACEOF
7887/* confdefs.h. */
7888_ACEOF
7889cat confdefs.h >>conftest.$ac_ext
7890cat >>conftest.$ac_ext <<_ACEOF
7891/* end confdefs.h. */
7892
7893int
7894main ()
7895{
7896
7897 ;
7898 return 0;
7899}
7900_ACEOF
7901rm -f conftest.$ac_objext conftest$ac_exeext
7902if { (ac_try="$ac_link"
7903case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7906esac
7907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_link") 2>conftest.er1
7909 ac_status=$?
7910 grep -v '^ *+' conftest.er1 >conftest.err
7911 rm -f conftest.er1
7912 cat conftest.err >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest$ac_exeext &&
7918 $as_test_x conftest$ac_exeext; then
7919
7920lt_aix_libpath_sed='
7921 /Import File Strings/,/^$/ {
7922 /^0/ {
7923 s/^0 *\(.*\)$/\1/
7924 p
7925 }
7926 }'
7927aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7928# Check for a 64-bit object if we didn't find anything.
7929if test -z "$aix_libpath"; then
7930 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7931fi
7932else
7933 echo "$as_me: failed program was:" >&5
7934sed 's/^/| /' conftest.$ac_ext >&5
7935
7936
7937fi
7938
7939rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7940 conftest$ac_exeext conftest.$ac_ext
7941if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7942
7943 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7944 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7945 else
7946 if test "$host_cpu" = ia64; then
7947 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7948 allow_undefined_flag="-z nodefs"
7949 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"
7950 else
7951 # Determine the default libpath from the value encoded in an
7952 # empty executable.
7953 cat >conftest.$ac_ext <<_ACEOF
7954/* confdefs.h. */
7955_ACEOF
7956cat confdefs.h >>conftest.$ac_ext
7957cat >>conftest.$ac_ext <<_ACEOF
7958/* end confdefs.h. */
7959
7960int
7961main ()
7962{
7963
7964 ;
7965 return 0;
7966}
7967_ACEOF
7968rm -f conftest.$ac_objext conftest$ac_exeext
7969if { (ac_try="$ac_link"
7970case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7973esac
7974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_link") 2>conftest.er1
7976 ac_status=$?
7977 grep -v '^ *+' conftest.er1 >conftest.err
7978 rm -f conftest.er1
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && {
7982 test -z "$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 } && test -s conftest$ac_exeext &&
7985 $as_test_x conftest$ac_exeext; then
7986
7987lt_aix_libpath_sed='
7988 /Import File Strings/,/^$/ {
7989 /^0/ {
7990 s/^0 *\(.*\)$/\1/
7991 p
7992 }
7993 }'
7994aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7995# Check for a 64-bit object if we didn't find anything.
7996if test -z "$aix_libpath"; then
7997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7998fi
7999else
8000 echo "$as_me: failed program was:" >&5
8001sed 's/^/| /' conftest.$ac_ext >&5
8002
8003
8004fi
8005
8006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8007 conftest$ac_exeext conftest.$ac_ext
8008if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8009
8010 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8011 # Warning - without using the other run time loading flags,
8012 # -berok will link without error, but may produce a broken library.
8013 no_undefined_flag=' ${wl}-bernotok'
8014 allow_undefined_flag=' ${wl}-berok'
8015 # Exported symbols can be pulled into shared objects from archives
8016 whole_archive_flag_spec='$convenience'
8017 archive_cmds_need_lc=yes
8018 # This is similar to how AIX traditionally builds its shared libraries.
8019 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'
8020 fi
8021 fi
8022 ;;
8023
8024 amigaos*)
8025 if test "$host_cpu" = m68k; then
8026 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)'
8027 hardcode_libdir_flag_spec='-L$libdir'
8028 hardcode_minus_L=yes
8029 fi
8030 # see comment about different semantics on the GNU ld section
8031 ld_shlibs=no
8032 ;;
8033
8034 bsdi[45]*)
8035 export_dynamic_flag_spec=-rdynamic
8036 ;;
8037
8038 cygwin* | mingw* | pw32*)
8039 # When not using gcc, we currently assume that we are using
8040 # Microsoft Visual C++.
8041 # hardcode_libdir_flag_spec is actually meaningless, as there is
8042 # no search path for DLLs.
8043 hardcode_libdir_flag_spec=' '
8044 allow_undefined_flag=unsupported
8045 # Tell ltmain to make .lib files, not .a files.
8046 libext=lib
8047 # Tell ltmain to make .dll files, not .so files.
8048 shrext_cmds=".dll"
8049 # FIXME: Setting linknames here is a bad hack.
8050 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8051 # The linker will automatically build a .lib file if we build a DLL.
8052 old_archive_from_new_cmds='true'
8053 # FIXME: Should let the user specify the lib program.
8054 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8055 fix_srcfile_path='`cygpath -w "$srcfile"`'
8056 enable_shared_with_static_runtimes=yes
8057 ;;
8058
8059 darwin* | rhapsody*)
8060 case $host_os in
8061 rhapsody* | darwin1.[012])
8062 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8063 ;;
8064 *) # Darwin 1.3 on
8065 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8066 10.[012])
8067 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8068 ;;
8069 10.*)
8070 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8071 ;;
8072 esac
8073 ;;
8074 esac
8075 archive_cmds_need_lc=no
8076 hardcode_direct=no
8077 hardcode_automatic=yes
8078 hardcode_shlibpath_var=unsupported
8079 whole_archive_flag_spec=''
8080 link_all_deplibs=yes
8081 if test "$GCC" = yes ; then
8082 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084else
8085 lt_cv_apple_cc_single_mod=no
8086 if test -z "${LT_MULTI_MODULE}"; then
8087 # By default we will add the -single_module flag. You can override
8088 # by either setting the environment variable LT_MULTI_MODULE
8089 # non-empty at configure time, or by adding -multi-module to the
8090 # link flags.
8091 echo "int foo(void){return 1;}" > conftest.c
8092 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8093 -dynamiclib ${wl}-single_module conftest.c
8094 if test -f libconftest.dylib; then
8095 lt_cv_apple_cc_single_mod=yes
8096 rm libconftest.dylib
8097 fi
8098 rm conftest.$ac_ext
8099 fi
8100fi
8101
8102 output_verbose_link_cmd=echo
8103 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8104 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8105 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8106 else
8107 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8108 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8109 fi
8110 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8111 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8112 else
8113 case $cc_basename in
8114 xlc*)
8115 output_verbose_link_cmd=echo
8116 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8117 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8118 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8119 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8120 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8121 ;;
8122 *)
8123 ld_shlibs=no
8124 ;;
8125 esac
8126 fi
8127 ;;
8128
8129 dgux*)
8130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8131 hardcode_libdir_flag_spec='-L$libdir'
8132 hardcode_shlibpath_var=no
8133 ;;
8134
8135 freebsd1*)
8136 ld_shlibs=no
8137 ;;
8138
8139 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8140 # support. Future versions do this automatically, but an explicit c++rt0.o
8141 # does not break anything, and helps significantly (at the cost of a little
8142 # extra space).
8143 freebsd2.2*)
8144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8145 hardcode_libdir_flag_spec='-R$libdir'
8146 hardcode_direct=yes
8147 hardcode_shlibpath_var=no
8148 ;;
8149
8150 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8151 freebsd2*)
8152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8153 hardcode_direct=yes
8154 hardcode_minus_L=yes
8155 hardcode_shlibpath_var=no
8156 ;;
8157
8158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8159 freebsd* | kfreebsd*-gnu | dragonfly*)
8160 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8161 hardcode_libdir_flag_spec='-R$libdir'
8162 hardcode_direct=yes
8163 hardcode_shlibpath_var=no
8164 ;;
8165
8166 hpux9*)
8167 if test "$GCC" = yes; then
8168 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8169 else
8170 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'
8171 fi
8172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8173 hardcode_libdir_separator=:
8174 hardcode_direct=yes
8175
8176 # hardcode_minus_L: Not really in the search PATH,
8177 # but as the default location of the library.
8178 hardcode_minus_L=yes
8179 export_dynamic_flag_spec='${wl}-E'
8180 ;;
8181
8182 hpux10*)
8183 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8184 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8185 else
8186 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8187 fi
8188 if test "$with_gnu_ld" = no; then
8189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8190 hardcode_libdir_flag_spec_ld='+b $libdir'
8191 hardcode_libdir_separator=:
8192 hardcode_direct=yes
8193 export_dynamic_flag_spec='${wl}-E'
8194 # hardcode_minus_L: Not really in the search PATH,
8195 # but as the default location of the library.
8196 hardcode_minus_L=yes
8197 fi
8198 ;;
8199
8200 hpux11*)
8201 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8202 case $host_cpu in
8203 hppa*64*)
8204 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8205 ;;
8206 ia64*)
8207 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8208 ;;
8209 *)
8210 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8211 ;;
8212 esac
8213 else
8214 case $host_cpu in
8215 hppa*64*)
8216 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8217 ;;
8218 ia64*)
8219 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8220 ;;
8221 *)
8222 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8223 ;;
8224 esac
8225 fi
8226 if test "$with_gnu_ld" = no; then
8227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8228 hardcode_libdir_separator=:
8229
8230 case $host_cpu in
8231 hppa*64*|ia64*)
8232 hardcode_direct=no
8233 hardcode_shlibpath_var=no
8234 ;;
8235 *)
8236 hardcode_direct=yes
8237 export_dynamic_flag_spec='${wl}-E'
8238
8239 # hardcode_minus_L: Not really in the search PATH,
8240 # but as the default location of the library.
8241 hardcode_minus_L=yes
8242 ;;
8243 esac
8244 fi
8245 ;;
8246
8247 irix5* | irix6* | nonstopux*)
8248 if test "$GCC" = yes; then
8249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8250 # Try to use the -exported_symbol ld option, if it does not
8251 # work, assume that -exports_file does not work either and
8252 # implicitly export all symbols.
8253 save_LDFLAGS="$LDFLAGS"
8254 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8255 cat >conftest.$ac_ext <<_ACEOF
8256int foo(void) {}
8257_ACEOF
8258rm -f conftest.$ac_objext conftest$ac_exeext
8259if { (ac_try="$ac_link"
8260case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8263esac
8264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_link") 2>conftest.er1
8266 ac_status=$?
8267 grep -v '^ *+' conftest.er1 >conftest.err
8268 rm -f conftest.er1
8269 cat conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } && {
8272 test -z "$ac_c_werror_flag" ||
8273 test ! -s conftest.err
8274 } && test -s conftest$ac_exeext &&
8275 $as_test_x conftest$ac_exeext; then
8276 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8277
8278else
8279 echo "$as_me: failed program was:" >&5
8280sed 's/^/| /' conftest.$ac_ext >&5
8281
8282
8283fi
8284
8285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8286 conftest$ac_exeext conftest.$ac_ext
8287 LDFLAGS="$save_LDFLAGS"
8288 else
8289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8291 fi
8292 archive_cmds_need_lc='no'
8293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8294 hardcode_libdir_separator=:
8295 inherit_rpath=yes
8296 link_all_deplibs=yes
8297 ;;
8298
8299 netbsd*)
8300 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8302 else
8303 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8304 fi
8305 hardcode_libdir_flag_spec='-R$libdir'
8306 hardcode_direct=yes
8307 hardcode_shlibpath_var=no
8308 ;;
8309
8310 newsos6)
8311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8312 hardcode_direct=yes
8313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8314 hardcode_libdir_separator=:
8315 hardcode_shlibpath_var=no
8316 ;;
8317
8318 *nto* | *qnx*)
8319 ;;
8320
8321 openbsd*)
8322 hardcode_direct=yes
8323 hardcode_shlibpath_var=no
8324 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8326 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8328 export_dynamic_flag_spec='${wl}-E'
8329 else
8330 case $host_os in
8331 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8333 hardcode_libdir_flag_spec='-R$libdir'
8334 ;;
8335 *)
8336 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8337 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8338 ;;
8339 esac
8340 fi
8341 ;;
8342
8343 os2*)
8344 hardcode_libdir_flag_spec='-L$libdir'
8345 hardcode_minus_L=yes
8346 allow_undefined_flag=unsupported
8347 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'
8348 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8349 ;;
8350
8351 osf3*)
8352 if test "$GCC" = yes; then
8353 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8354 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8355 else
8356 allow_undefined_flag=' -expect_unresolved \*'
8357 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8358 fi
8359 archive_cmds_need_lc='no'
8360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8361 hardcode_libdir_separator=:
8362 ;;
8363
8364 osf4* | osf5*) # as osf3* with the addition of -msym flag
8365 if test "$GCC" = yes; then
8366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8367 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8369 else
8370 allow_undefined_flag=' -expect_unresolved \*'
8371 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8372 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~
8373 $CC -shared${allow_undefined_flag} -input $lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8374
8375 # Both c and cxx compiler support -rpath directly
8376 hardcode_libdir_flag_spec='-rpath $libdir'
8377 fi
8378 archive_cmds_need_lc='no'
8379 hardcode_libdir_separator=:
8380 ;;
8381
8382 solaris*)
8383 no_undefined_flag=' -z defs'
8384 if test "$GCC" = yes; then
8385 wlarc='${wl}'
8386 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8388 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8389 else
8390 case `$CC -V 2>&1` in
8391 *"Compilers 5.0"*)
8392 wlarc=''
8393 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8396 ;;
8397 *)
8398 wlarc='${wl}'
8399 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8401 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8402 ;;
8403 esac
8404 fi
8405 hardcode_libdir_flag_spec='-R$libdir'
8406 hardcode_shlibpath_var=no
8407 case $host_os in
8408 solaris2.[0-5] | solaris2.[0-5].*) ;;
8409 *)
8410 # The compiler driver will combine linker options so we
8411 # cannot just pass the convenience library names through
8412 # without $wl, iff we do not link with $LD.
8413 # Luckily, gcc supports the same syntax we need for Sun Studio.
8414 # Supported since Solaris 2.6 (maybe 2.5.1?)
8415 case $wlarc in
8416 '')
8417 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8418 *)
8419 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8420 esac ;;
8421 esac
8422 link_all_deplibs=yes
8423 ;;
8424
8425 sunos4*)
8426 if test "x$host_vendor" = xsequent; then
8427 # Use $CC to link under sequent, because it throws in some extra .o
8428 # files that make .init and .fini sections work.
8429 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8430 else
8431 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8432 fi
8433 hardcode_libdir_flag_spec='-L$libdir'
8434 hardcode_direct=yes
8435 hardcode_minus_L=yes
8436 hardcode_shlibpath_var=no
8437 ;;
8438
8439 sysv4)
8440 case $host_vendor in
8441 sni)
8442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8443 hardcode_direct=yes # is this really true???
8444 ;;
8445 siemens)
8446 ## LD is ld it makes a PLAMLIB
8447 ## CC just makes a GrossModule.
8448 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8449 reload_cmds='$CC -r -o $output$reload_objs'
8450 hardcode_direct=no
8451 ;;
8452 motorola)
8453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8454 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8455 ;;
8456 esac
8457 runpath_var='LD_RUN_PATH'
8458 hardcode_shlibpath_var=no
8459 ;;
8460
8461 sysv4.3*)
8462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8463 hardcode_shlibpath_var=no
8464 export_dynamic_flag_spec='-Bexport'
8465 ;;
8466
8467 sysv4*MP*)
8468 if test -d /usr/nec; then
8469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8470 hardcode_shlibpath_var=no
8471 runpath_var=LD_RUN_PATH
8472 hardcode_runpath_var=yes
8473 ld_shlibs=yes
8474 fi
8475 ;;
8476
8477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8478 no_undefined_flag='${wl}-z,text'
8479 archive_cmds_need_lc=no
8480 hardcode_shlibpath_var=no
8481 runpath_var='LD_RUN_PATH'
8482
8483 if test "$GCC" = yes; then
8484 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8485 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8486 else
8487 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8488 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8489 fi
8490 ;;
8491
8492 sysv5* | sco3.2v5* | sco5v6*)
8493 # Note: We can NOT use -z defs as we might desire, because we do not
8494 # link with -lc, and that would cause any symbols used from libc to
8495 # always be unresolved, which means just about no library would
8496 # ever link correctly. If we're not using GNU ld we use -z text
8497 # though, which does catch some bad symbols but isn't as heavy-handed
8498 # as -z defs.
8499 no_undefined_flag='${wl}-z,text'
8500 allow_undefined_flag='${wl}-z,nodefs'
8501 archive_cmds_need_lc=no
8502 hardcode_shlibpath_var=no
8503 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8504 hardcode_libdir_separator=':'
8505 link_all_deplibs=yes
8506 export_dynamic_flag_spec='${wl}-Bexport'
8507 runpath_var='LD_RUN_PATH'
8508
8509 if test "$GCC" = yes; then
8510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512 else
8513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8515 fi
8516 ;;
8517
8518 uts4*)
8519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8520 hardcode_libdir_flag_spec='-L$libdir'
8521 hardcode_shlibpath_var=no
8522 ;;
8523
8524 *)
8525 ld_shlibs=no
8526 ;;
8527 esac
8528
8529 if test x$host_vendor = xsni; then
8530 case $host in
8531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8532 export_dynamic_flag_spec='${wl}-Blargedynsym'
8533 ;;
8534 esac
8535 fi
8536 fi
8537
8538{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8539echo "${ECHO_T}$ld_shlibs" >&6; }
8540test "$ld_shlibs" = no && can_build_shared=no
8541
8542with_gnu_ld=$with_gnu_ld
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558#
8559# Do we need to explicitly link libc?
8560#
8561case "x$archive_cmds_need_lc" in
8562x|xyes)
8563 # Assume -lc should be added
8564 archive_cmds_need_lc=yes
8565
8566 if test "$enable_shared" = yes && test "$GCC" = yes; then
8567 case $archive_cmds in
8568 *'~'*)
8569 # FIXME: we may have to deal with multi-command sequences.
8570 ;;
8571 '$CC '*)
8572 # Test whether the compiler implicitly links with -lc since on some
8573 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8574 # to ld, don't add -lc before -lgcc.
8575 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8576echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8577 $RM conftest*
8578 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8579
8580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8581 (eval $ac_compile) 2>&5
8582 ac_status=$?
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } 2>conftest.err; then
8585 soname=conftest
8586 lib=conftest
8587 libobjs=conftest.$ac_objext
8588 deplibs=
8589 wl=$lt_prog_compiler_wl
8590 pic_flag=$lt_prog_compiler_pic
8591 compiler_flags=-v
8592 linker_flags=-v
8593 verstring=
8594 output_objdir=.
8595 libname=conftest
8596 lt_save_allow_undefined_flag=$allow_undefined_flag
8597 allow_undefined_flag=
8598 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8599 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }
8603 then
8604 archive_cmds_need_lc=no
8605 else
8606 archive_cmds_need_lc=yes
8607 fi
8608 allow_undefined_flag=$lt_save_allow_undefined_flag
8609 else
8610 cat conftest.err 1>&5
8611 fi
8612 $RM conftest*
8613 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8614echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8615 ;;
8616 esac
8617 fi
8618 ;;
8619esac
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
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
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8768echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8769withGCC=$GCC
8770library_names_spec=
8771libname_spec='lib$name'
8772soname_spec=
8773shrext_cmds=".so"
8774postinstall_cmds=
8775postuninstall_cmds=
8776finish_cmds=
8777finish_eval=
8778shlibpath_var=
8779shlibpath_overrides_runpath=unknown
8780version_type=none
8781dynamic_linker="$host_os ld.so"
8782sys_lib_dlsearch_path_spec="/lib /usr/lib"
8783if test "$withGCC" = yes; then
8784 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8785 if $ECHO "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then
8786 # if the path contains ";" then we assume it to be the separator
8787 # otherwise default to the standard path separator (i.e. ":") - it is
8788 # assumed that no part of a normal pathname contains ";" but that should
8789 # okay in the real world where ";" in dirpaths is itself problematic.
8790 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8791 else
8792 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8793 fi
8794else
8795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8796fi
8797need_lib_prefix=unknown
8798hardcode_into_libs=no
8799
8800# when you set need_version to no, make sure it does not cause -set_version
8801# flags to be left without arguments
8802need_version=unknown
8803
8804case $host_os in
8805aix3*)
8806 version_type=linux
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8808 shlibpath_var=LIBPATH
8809
8810 # AIX 3 has no versioning support, so we append a major version to the name.
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 ;;
8813
8814aix4* | aix5*)
8815 version_type=linux
8816 need_lib_prefix=no
8817 need_version=no
8818 hardcode_into_libs=yes
8819 if test "$host_cpu" = ia64; then
8820 # AIX 5 supports IA64
8821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8822 shlibpath_var=LD_LIBRARY_PATH
8823 else
8824 # With GCC up to 2.95.x, collect2 would create an import file
8825 # for dependence libraries. The import file would start with
8826 # the line `#! .'. This would cause the generated library to
8827 # depend on `.', always an invalid library. This was fixed in
8828 # development snapshots of GCC prior to 3.0.
8829 case $host_os in
8830 aix4 | aix4.[01] | aix4.[01].*)
8831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8832 echo ' yes '
8833 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8834 :
8835 else
8836 can_build_shared=no
8837 fi
8838 ;;
8839 esac
8840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8841 # soname into executable. Probably we can add versioning support to
8842 # collect2, so additional links can be useful in future.
8843 if test "$aix_use_runtimelinking" = yes; then
8844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8845 # instead of lib<name>.a to let people know that these are not
8846 # typical AIX shared libraries.
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848 else
8849 # We preserve .a as extension for shared libraries through AIX4.2
8850 # and later when we are not doing run time linking.
8851 library_names_spec='${libname}${release}.a $libname.a'
8852 soname_spec='${libname}${release}${shared_ext}$major'
8853 fi
8854 shlibpath_var=LIBPATH
8855 fi
8856 ;;
8857
8858amigaos*)
8859 if test "$host_cpu" = m68k; then
8860 library_names_spec='$libname.ixlibrary $libname.a'
8861 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8862 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
8863 else
8864 dynamic_linker=no
8865 fi
8866 ;;
8867
8868beos*)
8869 library_names_spec='${libname}${shared_ext}'
8870 dynamic_linker="$host_os ld.so"
8871 shlibpath_var=LIBRARY_PATH
8872 ;;
8873
8874bsdi[45]*)
8875 version_type=linux
8876 need_version=no
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878 soname_spec='${libname}${release}${shared_ext}$major'
8879 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8880 shlibpath_var=LD_LIBRARY_PATH
8881 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8882 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8883 # the default ld.so.conf also contains /usr/contrib/lib and
8884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8885 # libtool to hard-code these into programs
8886 ;;
8887
8888cygwin* | mingw* | pw32*)
8889 version_type=windows
8890 shrext_cmds=".dll"
8891 need_version=no
8892 need_lib_prefix=no
8893
8894 case $withGCC,$host_os in
8895 yes,cygwin* | yes,mingw* | yes,pw32*)
8896 library_names_spec='$libname.dll.a'
8897 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8898 postinstall_cmds='base_file=`basename \${file}`~
8899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8900 dldir=$destdir/`dirname \$dlpath`~
8901 test -d \$dldir || mkdir -p \$dldir~
8902 $install_prog $dir/$dlname \$dldir/$dlname~
8903 chmod a+x \$dldir/$dlname~
8904 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8905 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8906 fi'
8907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8908 dlpath=$dir/\$dldll~
8909 $RM \$dlpath'
8910 shlibpath_overrides_runpath=yes
8911
8912 case $host_os in
8913 cygwin*)
8914 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8915 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8916 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8917 ;;
8918 mingw*)
8919 # MinGW DLLs use traditional 'lib' prefix
8920 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8921 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8922 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8923 # It is most probably a Windows format PATH printed by
8924 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8925 # path with ; separators, and with drive letters. We can handle the
8926 # drive letters (cygwin fileutils understands them), so leave them,
8927 # especially as we might pass files found there to a mingw objdump,
8928 # which wouldn't understand a cygwinified path. Ahh.
8929 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8930 else
8931 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8932 fi
8933 ;;
8934 pw32*)
8935 # pw32 DLLs use 'pw' prefix rather than 'lib'
8936 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8937 ;;
8938 esac
8939 ;;
8940
8941 *)
8942 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8943 ;;
8944 esac
8945 dynamic_linker='Win32 ld.exe'
8946 # FIXME: first we should search . and the directory the executable is in
8947 shlibpath_var=PATH
8948 ;;
8949
8950darwin* | rhapsody*)
8951 dynamic_linker="$host_os dyld"
8952 version_type=darwin
8953 need_lib_prefix=no
8954 need_version=no
8955 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8956 soname_spec='${libname}${release}${major}$shared_ext'
8957 shlibpath_overrides_runpath=yes
8958 shlibpath_var=DYLD_LIBRARY_PATH
8959 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8960 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8961 if test "$withGCC" = yes; then
8962 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | $GREP "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8963 else
8964 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8965 fi
8966 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8967 ;;
8968
8969dgux*)
8970 version_type=linux
8971 need_lib_prefix=no
8972 need_version=no
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 ;;
8977
8978freebsd1*)
8979 dynamic_linker=no
8980 ;;
8981
8982kfreebsd*-gnu)
8983 version_type=linux
8984 need_lib_prefix=no
8985 need_version=no
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 shlibpath_overrides_runpath=no
8990 hardcode_into_libs=yes
8991 dynamic_linker='GNU ld.so'
8992 ;;
8993
8994freebsd* | dragonfly*)
8995 # DragonFly does not have aout. When/if they implement a new
8996 # versioning mechanism, adjust this.
8997 if test -x /usr/bin/objformat; then
8998 objformat=`/usr/bin/objformat`
8999 else
9000 case $host_os in
9001 freebsd[123]*) objformat=aout ;;
9002 *) objformat=elf ;;
9003 esac
9004 fi
9005 version_type=freebsd-$objformat
9006 case $version_type in
9007 freebsd-elf*)
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9009 need_version=no
9010 need_lib_prefix=no
9011 ;;
9012 freebsd-*)
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9014 need_version=yes
9015 ;;
9016 esac
9017 shlibpath_var=LD_LIBRARY_PATH
9018 case $host_os in
9019 freebsd2*)
9020 shlibpath_overrides_runpath=yes
9021 ;;
9022 freebsd3.[01]* | freebsdelf3.[01]*)
9023 shlibpath_overrides_runpath=yes
9024 hardcode_into_libs=yes
9025 ;;
9026 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9027 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9028 shlibpath_overrides_runpath=no
9029 hardcode_into_libs=yes
9030 ;;
9031 freebsd*) # from 4.6 on
9032 shlibpath_overrides_runpath=yes
9033 hardcode_into_libs=yes
9034 ;;
9035 esac
9036 ;;
9037
9038gnu*)
9039 version_type=linux
9040 need_lib_prefix=no
9041 need_version=no
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 hardcode_into_libs=yes
9046 ;;
9047
9048hpux9* | hpux10* | hpux11*)
9049 # Give a soname corresponding to the major version so that dld.sl refuses to
9050 # link against other versions.
9051 version_type=sunos
9052 need_lib_prefix=no
9053 need_version=no
9054 case $host_cpu in
9055 ia64*)
9056 shrext_cmds='.so'
9057 hardcode_into_libs=yes
9058 dynamic_linker="$host_os dld.so"
9059 shlibpath_var=LD_LIBRARY_PATH
9060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 if test "X$HPUX_IA64_MODE" = X32; then
9064 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9065 else
9066 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9067 fi
9068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9069 ;;
9070 hppa*64*)
9071 shrext_cmds='.sl'
9072 hardcode_into_libs=yes
9073 dynamic_linker="$host_os dld.sl"
9074 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9080 ;;
9081 *)
9082 shrext_cmds='.sl'
9083 dynamic_linker="$host_os dld.sl"
9084 shlibpath_var=SHLIB_PATH
9085 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 ;;
9089 esac
9090 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9091 postinstall_cmds='chmod 555 $lib'
9092 ;;
9093
9094interix3*)
9095 version_type=linux
9096 need_lib_prefix=no
9097 need_version=no
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 shlibpath_overrides_runpath=no
9103 hardcode_into_libs=yes
9104 ;;
9105
9106irix5* | irix6* | nonstopux*)
9107 case $host_os in
9108 nonstopux*) version_type=nonstopux ;;
9109 *)
9110 if test "$lt_cv_prog_gnu_ld" = yes; then
9111 version_type=linux
9112 else
9113 version_type=irix
9114 fi ;;
9115 esac
9116 need_lib_prefix=no
9117 need_version=no
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9120 case $host_os in
9121 irix5* | nonstopux*)
9122 libsuff= shlibsuff=
9123 ;;
9124 *)
9125 case $LD in # libtool.m4 will add one of these switches to LD
9126 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9127 libsuff= shlibsuff= libmagic=32-bit;;
9128 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9129 libsuff=32 shlibsuff=N32 libmagic=N32;;
9130 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9131 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9132 *) libsuff= shlibsuff= libmagic=never-match;;
9133 esac
9134 ;;
9135 esac
9136 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9137 shlibpath_overrides_runpath=no
9138 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9139 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9140 hardcode_into_libs=yes
9141 ;;
9142
9143# No shared lib support for Linux oldld, aout, or coff.
9144linux*oldld* | linux*aout* | linux*coff*)
9145 dynamic_linker=no
9146 ;;
9147
9148# This must be Linux ELF.
9149linux*)
9150 version_type=linux
9151 need_lib_prefix=no
9152 need_version=no
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 shlibpath_overrides_runpath=no
9158 # This implies no fast_install, which is unacceptable.
9159 # Some rework will be needed to allow for fast_install
9160 # before this can be enabled.
9161 hardcode_into_libs=yes
9162
9163 # Append ld.so.conf contents to the search path
9164 if test -f /etc/ld.so.conf; then
9165 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9166 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9167 fi
9168
9169 # We used to test for /lib/ld.so.1 and disable shared libraries on
9170 # powerpc, because MkLinux only supported shared libraries with the
9171 # GNU dynamic linker. Since this was broken with cross compilers,
9172 # most powerpc-linux boxes support dynamic linking these days and
9173 # people can always --disable-shared, the test was removed, and we
9174 # assume the GNU/Linux dynamic linker is in use.
9175 dynamic_linker='GNU/Linux ld.so'
9176 ;;
9177
9178knetbsd*-gnu)
9179 version_type=linux
9180 need_lib_prefix=no
9181 need_version=no
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 shlibpath_overrides_runpath=no
9186 hardcode_into_libs=yes
9187 dynamic_linker='GNU ld.so'
9188 ;;
9189
9190netbsd*)
9191 version_type=sunos
9192 need_lib_prefix=no
9193 need_version=no
9194 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9197 dynamic_linker='NetBSD (a.out) ld.so'
9198 else
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9200 soname_spec='${libname}${release}${shared_ext}$major'
9201 dynamic_linker='NetBSD ld.elf_so'
9202 fi
9203 shlibpath_var=LD_LIBRARY_PATH
9204 shlibpath_overrides_runpath=yes
9205 hardcode_into_libs=yes
9206 ;;
9207
9208newsos6)
9209 version_type=linux
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=yes
9213 ;;
9214
9215*nto* | *qnx*)
9216 version_type=qnx
9217 need_lib_prefix=no
9218 need_version=no
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220 soname_spec='${libname}${release}${shared_ext}$major'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 shlibpath_overrides_runpath=no
9223 hardcode_into_libs=yes
9224 dynamic_linker='ldqnx.so'
9225 ;;
9226
9227openbsd*)
9228 version_type=sunos
9229 sys_lib_dlsearch_path_spec="/usr/lib"
9230 need_lib_prefix=no
9231 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9232 case $host_os in
9233 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9234 *) need_version=no ;;
9235 esac
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9240 case $host_os in
9241 openbsd2.[89] | openbsd2.[89].*)
9242 shlibpath_overrides_runpath=no
9243 ;;
9244 *)
9245 shlibpath_overrides_runpath=yes
9246 ;;
9247 esac
9248 else
9249 shlibpath_overrides_runpath=yes
9250 fi
9251 ;;
9252
9253os2*)
9254 libname_spec='$name'
9255 shrext_cmds=".dll"
9256 need_lib_prefix=no
9257 library_names_spec='$libname${shared_ext} $libname.a'
9258 dynamic_linker='OS/2 ld.exe'
9259 shlibpath_var=LIBPATH
9260 ;;
9261
9262osf3* | osf4* | osf5*)
9263 version_type=osf
9264 need_lib_prefix=no
9265 need_version=no
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9270 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9271 ;;
9272
9273rdos*)
9274 dynamic_linker=no
9275 ;;
9276
9277solaris*)
9278 version_type=linux
9279 need_lib_prefix=no
9280 need_version=no
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9282 soname_spec='${libname}${release}${shared_ext}$major'
9283 shlibpath_var=LD_LIBRARY_PATH
9284 shlibpath_overrides_runpath=yes
9285 hardcode_into_libs=yes
9286 # ldd complains unless libraries are executable
9287 postinstall_cmds='chmod +x $lib'
9288 ;;
9289
9290sunos4*)
9291 version_type=sunos
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9293 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 shlibpath_overrides_runpath=yes
9296 if test "$with_gnu_ld" = yes; then
9297 need_lib_prefix=no
9298 fi
9299 need_version=yes
9300 ;;
9301
9302sysv4 | sysv4.3*)
9303 version_type=linux
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9306 shlibpath_var=LD_LIBRARY_PATH
9307 case $host_vendor in
9308 sni)
9309 shlibpath_overrides_runpath=no
9310 need_lib_prefix=no
9311 runpath_var=LD_RUN_PATH
9312 ;;
9313 siemens)
9314 need_lib_prefix=no
9315 ;;
9316 motorola)
9317 need_lib_prefix=no
9318 need_version=no
9319 shlibpath_overrides_runpath=no
9320 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9321 ;;
9322 esac
9323 ;;
9324
9325sysv4*MP*)
9326 if test -d /usr/nec ;then
9327 version_type=linux
9328 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9329 soname_spec='$libname${shared_ext}.$major'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 fi
9332 ;;
9333
9334sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9335 version_type=freebsd-elf
9336 need_lib_prefix=no
9337 need_version=no
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 shlibpath_overrides_runpath=yes
9342 hardcode_into_libs=yes
9343 if test "$with_gnu_ld" = yes; then
9344 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9345 else
9346 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9347 case $host_os in
9348 sco3.2v5*)
9349 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9350 ;;
9351 esac
9352 fi
9353 sys_lib_dlsearch_path_spec='/usr/lib'
9354 ;;
9355
9356tpf*)
9357 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9358 version_type=linux
9359 need_lib_prefix=no
9360 need_version=no
9361 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 shlibpath_overrides_runpath=no
9364 hardcode_into_libs=yes
9365 ;;
9366
9367uts4*)
9368 version_type=linux
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 shlibpath_var=LD_LIBRARY_PATH
9372 ;;
9373
9374*)
9375 dynamic_linker=no
9376 ;;
9377esac
9378{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9379echo "${ECHO_T}$dynamic_linker" >&6; }
9380test "$dynamic_linker" = no && can_build_shared=no
9381
9382variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9383if test "$GCC" = yes; then
9384 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9385fi
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9474echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9475hardcode_action=
9476if test -n "$hardcode_libdir_flag_spec" ||
9477 test -n "$runpath_var" ||
9478 test "X$hardcode_automatic" = "Xyes" ; then
9479
9480 # We can hardcode non-existent directories.
9481 if test "$hardcode_direct" != no &&
9482 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9483 # have to relink, otherwise we might link with an installed library
9484 # when we should be linking with a yet-to-be-installed one
9485 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9486 test "$hardcode_minus_L" != no; then
9487 # Linking always hardcodes the temporary library directory.
9488 hardcode_action=relink
9489 else
9490 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9491 hardcode_action=immediate
9492 fi
9493else
9494 # We cannot hardcode anything, or else we can only hardcode existing
9495 # directories.
9496 hardcode_action=unsupported
9497fi
9498{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9499echo "${ECHO_T}$hardcode_action" >&6; }
9500
9501if test "$hardcode_action" = relink ||
9502 test "$inherit_rpath" = yes; then
9503 # Fast installation is not supported
9504 enable_fast_install=no
9505elif test "$shlibpath_overrides_runpath" = yes ||
9506 test "$enable_shared" = no; then
9507 # Fast installation is not necessary
9508 enable_fast_install=needless
9509fi
9510
9511
9512
9513
9514
9515
9516 if test "x$enable_dlopen" != xyes; then
9517 enable_dlopen=unknown
9518 enable_dlopen_self=unknown
9519 enable_dlopen_self_static=unknown
9520else
9521 lt_cv_dlopen=no
9522 lt_cv_dlopen_libs=
9523
9524 case $host_os in
9525 beos*)
9526 lt_cv_dlopen="load_add_on"
9527 lt_cv_dlopen_libs=
9528 lt_cv_dlopen_self=yes
9529 ;;
9530
9531 mingw* | pw32*)
9532 lt_cv_dlopen="LoadLibrary"
9533 lt_cv_dlopen_libs=
9534 ;;
9535
9536 cygwin*)
9537 lt_cv_dlopen="dlopen"
9538 lt_cv_dlopen_libs=
9539 ;;
9540
9541 darwin*)
9542 # if libdl is installed we need to link against it
9543 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9544echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9545if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547else
9548 ac_check_lib_save_LIBS=$LIBS
9549LIBS="-ldl $LIBS"
9550cat >conftest.$ac_ext <<_ACEOF
9551/* confdefs.h. */
9552_ACEOF
9553cat confdefs.h >>conftest.$ac_ext
9554cat >>conftest.$ac_ext <<_ACEOF
9555/* end confdefs.h. */
9556
9557/* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9560#ifdef __cplusplus
9561extern "C"
9562#endif
9563char dlopen ();
9564int
9565main ()
9566{
9567return dlopen ();
9568 ;
9569 return 0;
9570}
9571_ACEOF
9572rm -f conftest.$ac_objext conftest$ac_exeext
9573if { (ac_try="$ac_link"
9574case "(($ac_try" in
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9577esac
9578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_link") 2>conftest.er1
9580 ac_status=$?
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } && {
9586 test -z "$ac_c_werror_flag" ||
9587 test ! -s conftest.err
9588 } && test -s conftest$ac_exeext &&
9589 $as_test_x conftest$ac_exeext; then
9590 ac_cv_lib_dl_dlopen=yes
9591else
9592 echo "$as_me: failed program was:" >&5
9593sed 's/^/| /' conftest.$ac_ext >&5
9594
9595 ac_cv_lib_dl_dlopen=no
9596fi
9597
9598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9599 conftest$ac_exeext conftest.$ac_ext
9600LIBS=$ac_check_lib_save_LIBS
9601fi
9602{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9603echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9604if test $ac_cv_lib_dl_dlopen = yes; then
9605 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9606else
9607
9608 lt_cv_dlopen="dyld"
9609 lt_cv_dlopen_libs=
9610 lt_cv_dlopen_self=yes
9611
9612fi
9613
9614 ;;
9615
9616 *)
9617 { echo "$as_me:$LINENO: checking for shl_load" >&5
9618echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9619if test "${ac_cv_func_shl_load+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9621else
9622 cat >conftest.$ac_ext <<_ACEOF
9623/* confdefs.h. */
9624_ACEOF
9625cat confdefs.h >>conftest.$ac_ext
9626cat >>conftest.$ac_ext <<_ACEOF
9627/* end confdefs.h. */
9628/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9630#define shl_load innocuous_shl_load
9631
9632/* System header to define __stub macros and hopefully few prototypes,
9633 which can conflict with char shl_load (); below.
9634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9635 <limits.h> exists even on freestanding compilers. */
9636
9637#ifdef __STDC__
9638# include <limits.h>
9639#else
9640# include <assert.h>
9641#endif
9642
9643#undef shl_load
9644
9645/* Override any GCC internal prototype to avoid an error.
9646 Use char because int might match the return type of a GCC
9647 builtin and then its argument prototype would still apply. */
9648#ifdef __cplusplus
9649extern "C"
9650#endif
9651char shl_load ();
9652/* The GNU C library defines this for functions which it implements
9653 to always fail with ENOSYS. Some functions are actually named
9654 something starting with __ and the normal name is an alias. */
9655#if defined __stub_shl_load || defined __stub___shl_load
9656choke me
9657#endif
9658
9659int
9660main ()
9661{
9662return shl_load ();
9663 ;
9664 return 0;
9665}
9666_ACEOF
9667rm -f conftest.$ac_objext conftest$ac_exeext
9668if { (ac_try="$ac_link"
9669case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672esac
9673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_link") 2>conftest.er1
9675 ac_status=$?
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } && {
9681 test -z "$ac_c_werror_flag" ||
9682 test ! -s conftest.err
9683 } && test -s conftest$ac_exeext &&
9684 $as_test_x conftest$ac_exeext; then
9685 ac_cv_func_shl_load=yes
9686else
9687 echo "$as_me: failed program was:" >&5
9688sed 's/^/| /' conftest.$ac_ext >&5
9689
9690 ac_cv_func_shl_load=no
9691fi
9692
9693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9694 conftest$ac_exeext conftest.$ac_ext
9695fi
9696{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9697echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9698if test $ac_cv_func_shl_load = yes; then
9699 lt_cv_dlopen="shl_load"
9700else
9701 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9702echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9703if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9705else
9706 ac_check_lib_save_LIBS=$LIBS
9707LIBS="-ldld $LIBS"
9708cat >conftest.$ac_ext <<_ACEOF
9709/* confdefs.h. */
9710_ACEOF
9711cat confdefs.h >>conftest.$ac_ext
9712cat >>conftest.$ac_ext <<_ACEOF
9713/* end confdefs.h. */
9714
9715/* Override any GCC internal prototype to avoid an error.
9716 Use char because int might match the return type of a GCC
9717 builtin and then its argument prototype would still apply. */
9718#ifdef __cplusplus
9719extern "C"
9720#endif
9721char shl_load ();
9722int
9723main ()
9724{
9725return shl_load ();
9726 ;
9727 return 0;
9728}
9729_ACEOF
9730rm -f conftest.$ac_objext conftest$ac_exeext
9731if { (ac_try="$ac_link"
9732case "(($ac_try" in
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9735esac
9736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_link") 2>conftest.er1
9738 ac_status=$?
9739 grep -v '^ *+' conftest.er1 >conftest.err
9740 rm -f conftest.er1
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } && {
9744 test -z "$ac_c_werror_flag" ||
9745 test ! -s conftest.err
9746 } && test -s conftest$ac_exeext &&
9747 $as_test_x conftest$ac_exeext; then
9748 ac_cv_lib_dld_shl_load=yes
9749else
9750 echo "$as_me: failed program was:" >&5
9751sed 's/^/| /' conftest.$ac_ext >&5
9752
9753 ac_cv_lib_dld_shl_load=no
9754fi
9755
9756rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9757 conftest$ac_exeext conftest.$ac_ext
9758LIBS=$ac_check_lib_save_LIBS
9759fi
9760{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9761echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9762if test $ac_cv_lib_dld_shl_load = yes; then
9763 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9764else
9765 { echo "$as_me:$LINENO: checking for dlopen" >&5
9766echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9767if test "${ac_cv_func_dlopen+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9769else
9770 cat >conftest.$ac_ext <<_ACEOF
9771/* confdefs.h. */
9772_ACEOF
9773cat confdefs.h >>conftest.$ac_ext
9774cat >>conftest.$ac_ext <<_ACEOF
9775/* end confdefs.h. */
9776/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9778#define dlopen innocuous_dlopen
9779
9780/* System header to define __stub macros and hopefully few prototypes,
9781 which can conflict with char dlopen (); below.
9782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9783 <limits.h> exists even on freestanding compilers. */
9784
9785#ifdef __STDC__
9786# include <limits.h>
9787#else
9788# include <assert.h>
9789#endif
9790
9791#undef dlopen
9792
9793/* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9796#ifdef __cplusplus
9797extern "C"
9798#endif
9799char dlopen ();
9800/* The GNU C library defines this for functions which it implements
9801 to always fail with ENOSYS. Some functions are actually named
9802 something starting with __ and the normal name is an alias. */
9803#if defined __stub_dlopen || defined __stub___dlopen
9804choke me
9805#endif
9806
9807int
9808main ()
9809{
9810return dlopen ();
9811 ;
9812 return 0;
9813}
9814_ACEOF
9815rm -f conftest.$ac_objext conftest$ac_exeext
9816if { (ac_try="$ac_link"
9817case "(($ac_try" in
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9820esac
9821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_link") 2>conftest.er1
9823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } && {
9829 test -z "$ac_c_werror_flag" ||
9830 test ! -s conftest.err
9831 } && test -s conftest$ac_exeext &&
9832 $as_test_x conftest$ac_exeext; then
9833 ac_cv_func_dlopen=yes
9834else
9835 echo "$as_me: failed program was:" >&5
9836sed 's/^/| /' conftest.$ac_ext >&5
9837
9838 ac_cv_func_dlopen=no
9839fi
9840
9841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9842 conftest$ac_exeext conftest.$ac_ext
9843fi
9844{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9845echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9846if test $ac_cv_func_dlopen = yes; then
9847 lt_cv_dlopen="dlopen"
9848else
9849 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9850echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9851if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9853else
9854 ac_check_lib_save_LIBS=$LIBS
9855LIBS="-ldl $LIBS"
9856cat >conftest.$ac_ext <<_ACEOF
9857/* confdefs.h. */
9858_ACEOF
9859cat confdefs.h >>conftest.$ac_ext
9860cat >>conftest.$ac_ext <<_ACEOF
9861/* end confdefs.h. */
9862
9863/* Override any GCC internal prototype to avoid an error.
9864 Use char because int might match the return type of a GCC
9865 builtin and then its argument prototype would still apply. */
9866#ifdef __cplusplus
9867extern "C"
9868#endif
9869char dlopen ();
9870int
9871main ()
9872{
9873return dlopen ();
9874 ;
9875 return 0;
9876}
9877_ACEOF
9878rm -f conftest.$ac_objext conftest$ac_exeext
9879if { (ac_try="$ac_link"
9880case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883esac
9884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_link") 2>conftest.er1
9886 ac_status=$?
9887 grep -v '^ *+' conftest.er1 >conftest.err
9888 rm -f conftest.er1
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } && {
9892 test -z "$ac_c_werror_flag" ||
9893 test ! -s conftest.err
9894 } && test -s conftest$ac_exeext &&
9895 $as_test_x conftest$ac_exeext; then
9896 ac_cv_lib_dl_dlopen=yes
9897else
9898 echo "$as_me: failed program was:" >&5
9899sed 's/^/| /' conftest.$ac_ext >&5
9900
9901 ac_cv_lib_dl_dlopen=no
9902fi
9903
9904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9905 conftest$ac_exeext conftest.$ac_ext
9906LIBS=$ac_check_lib_save_LIBS
9907fi
9908{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9909echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9910if test $ac_cv_lib_dl_dlopen = yes; then
9911 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9912else
9913 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9914echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9915if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9917else
9918 ac_check_lib_save_LIBS=$LIBS
9919LIBS="-lsvld $LIBS"
9920cat >conftest.$ac_ext <<_ACEOF
9921/* confdefs.h. */
9922_ACEOF
9923cat confdefs.h >>conftest.$ac_ext
9924cat >>conftest.$ac_ext <<_ACEOF
9925/* end confdefs.h. */
9926
9927/* Override any GCC internal prototype to avoid an error.
9928 Use char because int might match the return type of a GCC
9929 builtin and then its argument prototype would still apply. */
9930#ifdef __cplusplus
9931extern "C"
9932#endif
9933char dlopen ();
9934int
9935main ()
9936{
9937return dlopen ();
9938 ;
9939 return 0;
9940}
9941_ACEOF
9942rm -f conftest.$ac_objext conftest$ac_exeext
9943if { (ac_try="$ac_link"
9944case "(($ac_try" in
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9947esac
9948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 (eval "$ac_link") 2>conftest.er1
9950 ac_status=$?
9951 grep -v '^ *+' conftest.er1 >conftest.err
9952 rm -f conftest.er1
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } && {
9956 test -z "$ac_c_werror_flag" ||
9957 test ! -s conftest.err
9958 } && test -s conftest$ac_exeext &&
9959 $as_test_x conftest$ac_exeext; then
9960 ac_cv_lib_svld_dlopen=yes
9961else
9962 echo "$as_me: failed program was:" >&5
9963sed 's/^/| /' conftest.$ac_ext >&5
9964
9965 ac_cv_lib_svld_dlopen=no
9966fi
9967
9968rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9969 conftest$ac_exeext conftest.$ac_ext
9970LIBS=$ac_check_lib_save_LIBS
9971fi
9972{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9973echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9974if test $ac_cv_lib_svld_dlopen = yes; then
9975 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9976else
9977 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9978echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9979if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981else
9982 ac_check_lib_save_LIBS=$LIBS
9983LIBS="-ldld $LIBS"
9984cat >conftest.$ac_ext <<_ACEOF
9985/* confdefs.h. */
9986_ACEOF
9987cat confdefs.h >>conftest.$ac_ext
9988cat >>conftest.$ac_ext <<_ACEOF
9989/* end confdefs.h. */
9990
9991/* Override any GCC internal prototype to avoid an error.
9992 Use char because int might match the return type of a GCC
9993 builtin and then its argument prototype would still apply. */
9994#ifdef __cplusplus
9995extern "C"
9996#endif
9997char dld_link ();
9998int
9999main ()
10000{
10001return dld_link ();
10002 ;
10003 return 0;
10004}
10005_ACEOF
10006rm -f conftest.$ac_objext conftest$ac_exeext
10007if { (ac_try="$ac_link"
10008case "(($ac_try" in
10009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010 *) ac_try_echo=$ac_try;;
10011esac
10012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013 (eval "$ac_link") 2>conftest.er1
10014 ac_status=$?
10015 grep -v '^ *+' conftest.er1 >conftest.err
10016 rm -f conftest.er1
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } && {
10020 test -z "$ac_c_werror_flag" ||
10021 test ! -s conftest.err
10022 } && test -s conftest$ac_exeext &&
10023 $as_test_x conftest$ac_exeext; then
10024 ac_cv_lib_dld_dld_link=yes
10025else
10026 echo "$as_me: failed program was:" >&5
10027sed 's/^/| /' conftest.$ac_ext >&5
10028
10029 ac_cv_lib_dld_dld_link=no
10030fi
10031
10032rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10033 conftest$ac_exeext conftest.$ac_ext
10034LIBS=$ac_check_lib_save_LIBS
10035fi
10036{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10037echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10038if test $ac_cv_lib_dld_dld_link = yes; then
10039 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10040fi
10041
10042
10043fi
10044
10045
10046fi
10047
10048
10049fi
10050
10051
10052fi
10053
10054
10055fi
10056
10057 ;;
10058 esac
10059
10060 if test "x$lt_cv_dlopen" != xno; then
10061 enable_dlopen=yes
10062 else
10063 enable_dlopen=no
10064 fi
10065
10066 case $lt_cv_dlopen in
10067 dlopen)
10068 save_CPPFLAGS="$CPPFLAGS"
10069 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10070
10071 save_LDFLAGS="$LDFLAGS"
10072 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10073
10074 save_LIBS="$LIBS"
10075 LIBS="$lt_cv_dlopen_libs $LIBS"
10076
10077 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10078echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10079if test "${lt_cv_dlopen_self+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10081else
10082 if test "$cross_compiling" = yes; then :
10083 lt_cv_dlopen_self=cross
10084else
10085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10086 lt_status=$lt_dlunknown
10087 cat > conftest.$ac_ext <<_LT_EOF
10088#line 10088 "configure"
10089#include "confdefs.h"
10090
10091#if HAVE_DLFCN_H
10092#include <dlfcn.h>
10093#endif
10094
10095#include <stdio.h>
10096
10097#ifdef RTLD_GLOBAL
10098# define LT_DLGLOBAL RTLD_GLOBAL
10099#else
10100# ifdef DL_GLOBAL
10101# define LT_DLGLOBAL DL_GLOBAL
10102# else
10103# define LT_DLGLOBAL 0
10104# endif
10105#endif
10106
10107/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10108 find out it does not work in some platform. */
10109#ifndef LT_DLLAZY_OR_NOW
10110# ifdef RTLD_LAZY
10111# define LT_DLLAZY_OR_NOW RTLD_LAZY
10112# else
10113# ifdef DL_LAZY
10114# define LT_DLLAZY_OR_NOW DL_LAZY
10115# else
10116# ifdef RTLD_NOW
10117# define LT_DLLAZY_OR_NOW RTLD_NOW
10118# else
10119# ifdef DL_NOW
10120# define LT_DLLAZY_OR_NOW DL_NOW
10121# else
10122# define LT_DLLAZY_OR_NOW 0
10123# endif
10124# endif
10125# endif
10126# endif
10127#endif
10128
10129#ifdef __cplusplus
10130extern "C" void exit (int);
10131#endif
10132
10133void fnord() { int i=42;}
10134int main ()
10135{
10136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10137 int status = $lt_dlunknown;
10138
10139 if (self)
10140 {
10141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10142 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10143 /* dlclose (self); */
10144 }
10145 else
10146 puts (dlerror ());
10147
10148 exit (status);
10149}
10150_LT_EOF
10151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152 (eval $ac_link) 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10156 (./conftest; exit; ) >&5 2>/dev/null
10157 lt_status=$?
10158 case x$lt_status in
10159 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10160 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10161 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10162 esac
10163 else :
10164 # compilation failed
10165 lt_cv_dlopen_self=no
10166 fi
10167fi
10168rm -fr conftest*
10169
10170
10171fi
10172{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10173echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10174
10175 if test "x$lt_cv_dlopen_self" = xyes; then
10176 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10177 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10178echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10179if test "${lt_cv_dlopen_self_static+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181else
10182 if test "$cross_compiling" = yes; then :
10183 lt_cv_dlopen_self_static=cross
10184else
10185 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10186 lt_status=$lt_dlunknown
10187 cat > conftest.$ac_ext <<_LT_EOF
10188#line 10188 "configure"
10189#include "confdefs.h"
10190
10191#if HAVE_DLFCN_H
10192#include <dlfcn.h>
10193#endif
10194
10195#include <stdio.h>
10196
10197#ifdef RTLD_GLOBAL
10198# define LT_DLGLOBAL RTLD_GLOBAL
10199#else
10200# ifdef DL_GLOBAL
10201# define LT_DLGLOBAL DL_GLOBAL
10202# else
10203# define LT_DLGLOBAL 0
10204# endif
10205#endif
10206
10207/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10208 find out it does not work in some platform. */
10209#ifndef LT_DLLAZY_OR_NOW
10210# ifdef RTLD_LAZY
10211# define LT_DLLAZY_OR_NOW RTLD_LAZY
10212# else
10213# ifdef DL_LAZY
10214# define LT_DLLAZY_OR_NOW DL_LAZY
10215# else
10216# ifdef RTLD_NOW
10217# define LT_DLLAZY_OR_NOW RTLD_NOW
10218# else
10219# ifdef DL_NOW
10220# define LT_DLLAZY_OR_NOW DL_NOW
10221# else
10222# define LT_DLLAZY_OR_NOW 0
10223# endif
10224# endif
10225# endif
10226# endif
10227#endif
10228
10229#ifdef __cplusplus
10230extern "C" void exit (int);
10231#endif
10232
10233void fnord() { int i=42;}
10234int main ()
10235{
10236 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10237 int status = $lt_dlunknown;
10238
10239 if (self)
10240 {
10241 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10242 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10243 /* dlclose (self); */
10244 }
10245 else
10246 puts (dlerror ());
10247
10248 exit (status);
10249}
10250_LT_EOF
10251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10252 (eval $ac_link) 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10256 (./conftest; exit; ) >&5 2>/dev/null
10257 lt_status=$?
10258 case x$lt_status in
10259 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10260 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10261 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10262 esac
10263 else :
10264 # compilation failed
10265 lt_cv_dlopen_self_static=no
10266 fi
10267fi
10268rm -fr conftest*
10269
10270
10271fi
10272{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10273echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10274 fi
10275
10276 CPPFLAGS="$save_CPPFLAGS"
10277 LDFLAGS="$save_LDFLAGS"
10278 LIBS="$save_LIBS"
10279 ;;
10280 esac
10281
10282 case $lt_cv_dlopen_self in
10283 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10284 *) enable_dlopen_self=unknown ;;
10285 esac
10286
10287 case $lt_cv_dlopen_self_static in
10288 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10289 *) enable_dlopen_self_static=unknown ;;
10290 esac
10291fi
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309striplib=
10310old_striplib=
10311{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10312echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10313if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10314 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10315 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10316 { echo "$as_me:$LINENO: result: yes" >&5
10317echo "${ECHO_T}yes" >&6; }
10318else
10319# FIXME - insert some real tests, host_os isn't really good enough
10320 case $host_os in
10321 darwin*)
10322 if test -n "$STRIP" ; then
10323 striplib="$STRIP -x"
10324 old_striplib="$STRIP -S"
10325 { echo "$as_me:$LINENO: result: yes" >&5
10326echo "${ECHO_T}yes" >&6; }
10327 else
10328 { echo "$as_me:$LINENO: result: no" >&5
10329echo "${ECHO_T}no" >&6; }
10330 fi
10331 ;;
10332 *)
10333 { echo "$as_me:$LINENO: result: no" >&5
10334echo "${ECHO_T}no" >&6; }
10335 ;;
10336 esac
10337fi
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350 # Report which library types will actually be built
10351 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10352echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10353 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10354echo "${ECHO_T}$can_build_shared" >&6; }
10355
10356 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10357echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10358 test "$can_build_shared" = "no" && enable_shared=no
10359
10360 # On AIX, shared libraries and static libraries use the same namespace, and
10361 # are all built from PIC.
10362 case $host_os in
10363 aix3*)
10364 test "$enable_shared" = yes && enable_static=no
10365 if test -n "$RANLIB"; then
10366 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10367 postinstall_cmds='$RANLIB $lib'
10368 fi
10369 ;;
10370
10371 aix4* | aix5*)
10372 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10373 test "$enable_shared" = yes && enable_static=no
10374 fi
10375 ;;
10376 esac
10377 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10378echo "${ECHO_T}$enable_shared" >&6; }
10379
10380 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10381echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10382 # Make sure either enable_shared or enable_static is yes.
10383 test "$enable_shared" = yes || enable_static=yes
10384 { echo "$as_me:$LINENO: result: $enable_static" >&5
10385echo "${ECHO_T}$enable_static" >&6; }
10386
10387
10388
10389
10390fi
10391ac_ext=c
10392ac_cpp='$CPP $CPPFLAGS'
10393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10395ac_compiler_gnu=$ac_cv_c_compiler_gnu
10396
10397CC="$lt_save_CC"
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411 ac_config_commands="$ac_config_commands libtool"
10412
10413
10414
10415
10416# Only expand once:
10417
10418
10419enable_win32_dll=yes
10420
10421case $host in
10422*-*-cygwin* | *-*-mingw* | *-*-pw32*)
10423 if test -n "$ac_tool_prefix"; then
10424 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10425set dummy ${ac_tool_prefix}as; ac_word=$2
10426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10428if test "${ac_cv_prog_AS+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10430else
10431 if test -n "$AS"; then
10432 ac_cv_prog_AS="$AS" # Let the user override the test.
10433else
10434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435for as_dir in $PATH
10436do
10437 IFS=$as_save_IFS
10438 test -z "$as_dir" && as_dir=.
10439 for ac_exec_ext in '' $ac_executable_extensions; do
10440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10441 ac_cv_prog_AS="${ac_tool_prefix}as"
10442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10443 break 2
10444 fi
10445done
10446done
10447IFS=$as_save_IFS
10448
10449fi
10450fi
10451AS=$ac_cv_prog_AS
10452if test -n "$AS"; then
10453 { echo "$as_me:$LINENO: result: $AS" >&5
10454echo "${ECHO_T}$AS" >&6; }
10455else
10456 { echo "$as_me:$LINENO: result: no" >&5
10457echo "${ECHO_T}no" >&6; }
10458fi
10459
10460
10461fi
10462if test -z "$ac_cv_prog_AS"; then
10463 ac_ct_AS=$AS
10464 # Extract the first word of "as", so it can be a program name with args.
10465set dummy as; ac_word=$2
10466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10468if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470else
10471 if test -n "$ac_ct_AS"; then
10472 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10473else
10474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475for as_dir in $PATH
10476do
10477 IFS=$as_save_IFS
10478 test -z "$as_dir" && as_dir=.
10479 for ac_exec_ext in '' $ac_executable_extensions; do
10480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10481 ac_cv_prog_ac_ct_AS="as"
10482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10483 break 2
10484 fi
10485done
10486done
10487IFS=$as_save_IFS
10488
10489fi
10490fi
10491ac_ct_AS=$ac_cv_prog_ac_ct_AS
10492if test -n "$ac_ct_AS"; then
10493 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
10494echo "${ECHO_T}$ac_ct_AS" >&6; }
10495else
10496 { echo "$as_me:$LINENO: result: no" >&5
10497echo "${ECHO_T}no" >&6; }
10498fi
10499
10500 if test "x$ac_ct_AS" = x; then
10501 AS="false"
10502 else
10503 case $cross_compiling:$ac_tool_warned in
10504yes:)
10505{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10506whose name does not start with the host triplet. If you think this
10507configuration is useful to you, please write to autoconf@gnu.org." >&5
10508echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10509whose name does not start with the host triplet. If you think this
10510configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10511ac_tool_warned=yes ;;
10512esac
10513 AS=$ac_ct_AS
10514 fi
10515else
10516 AS="$ac_cv_prog_AS"
10517fi
10518
10519 if test -n "$ac_tool_prefix"; then
10520 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10521set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10524if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526else
10527 if test -n "$DLLTOOL"; then
10528 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10529else
10530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10531for as_dir in $PATH
10532do
10533 IFS=$as_save_IFS
10534 test -z "$as_dir" && as_dir=.
10535 for ac_exec_ext in '' $ac_executable_extensions; do
10536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10537 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10539 break 2
10540 fi
10541done
10542done
10543IFS=$as_save_IFS
10544
10545fi
10546fi
10547DLLTOOL=$ac_cv_prog_DLLTOOL
10548if test -n "$DLLTOOL"; then
10549 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10550echo "${ECHO_T}$DLLTOOL" >&6; }
10551else
10552 { echo "$as_me:$LINENO: result: no" >&5
10553echo "${ECHO_T}no" >&6; }
10554fi
10555
10556
10557fi
10558if test -z "$ac_cv_prog_DLLTOOL"; then
10559 ac_ct_DLLTOOL=$DLLTOOL
10560 # Extract the first word of "dlltool", so it can be a program name with args.
10561set dummy dlltool; ac_word=$2
10562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10564if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10566else
10567 if test -n "$ac_ct_DLLTOOL"; then
10568 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10569else
10570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571for as_dir in $PATH
10572do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10577 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10579 break 2
10580 fi
10581done
10582done
10583IFS=$as_save_IFS
10584
10585fi
10586fi
10587ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10588if test -n "$ac_ct_DLLTOOL"; then
10589 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
10590echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
10591else
10592 { echo "$as_me:$LINENO: result: no" >&5
10593echo "${ECHO_T}no" >&6; }
10594fi
10595
10596 if test "x$ac_ct_DLLTOOL" = x; then
10597 DLLTOOL="false"
10598 else
10599 case $cross_compiling:$ac_tool_warned in
10600yes:)
10601{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10602whose name does not start with the host triplet. If you think this
10603configuration is useful to you, please write to autoconf@gnu.org." >&5
10604echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10605whose name does not start with the host triplet. If you think this
10606configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10607ac_tool_warned=yes ;;
10608esac
10609 DLLTOOL=$ac_ct_DLLTOOL
10610 fi
10611else
10612 DLLTOOL="$ac_cv_prog_DLLTOOL"
10613fi
10614
10615 if test -n "$ac_tool_prefix"; then
10616 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10617set dummy ${ac_tool_prefix}objdump; ac_word=$2
10618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10620if test "${ac_cv_prog_OBJDUMP+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
10623 if test -n "$OBJDUMP"; then
10624 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10625else
10626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627for as_dir in $PATH
10628do
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10633 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 break 2
10636 fi
10637done
10638done
10639IFS=$as_save_IFS
10640
10641fi
10642fi
10643OBJDUMP=$ac_cv_prog_OBJDUMP
10644if test -n "$OBJDUMP"; then
10645 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
10646echo "${ECHO_T}$OBJDUMP" >&6; }
10647else
10648 { echo "$as_me:$LINENO: result: no" >&5
10649echo "${ECHO_T}no" >&6; }
10650fi
10651
10652
10653fi
10654if test -z "$ac_cv_prog_OBJDUMP"; then
10655 ac_ct_OBJDUMP=$OBJDUMP
10656 # Extract the first word of "objdump", so it can be a program name with args.
10657set dummy objdump; ac_word=$2
10658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10660if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662else
10663 if test -n "$ac_ct_OBJDUMP"; then
10664 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10665else
10666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667for as_dir in $PATH
10668do
10669 IFS=$as_save_IFS
10670 test -z "$as_dir" && as_dir=.
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10673 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10675 break 2
10676 fi
10677done
10678done
10679IFS=$as_save_IFS
10680
10681fi
10682fi
10683ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10684if test -n "$ac_ct_OBJDUMP"; then
10685 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
10686echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
10687else
10688 { echo "$as_me:$LINENO: result: no" >&5
10689echo "${ECHO_T}no" >&6; }
10690fi
10691
10692 if test "x$ac_ct_OBJDUMP" = x; then
10693 OBJDUMP="false"
10694 else
10695 case $cross_compiling:$ac_tool_warned in
10696yes:)
10697{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10698whose name does not start with the host triplet. If you think this
10699configuration is useful to you, please write to autoconf@gnu.org." >&5
10700echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10701whose name does not start with the host triplet. If you think this
10702configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10703ac_tool_warned=yes ;;
10704esac
10705 OBJDUMP=$ac_ct_OBJDUMP
10706 fi
10707else
10708 OBJDUMP="$ac_cv_prog_OBJDUMP"
10709fi
10710
10711 ;;
10712esac
10713
10714test -z "$AS" && AS=as
10715
10716
10717
10718
10719
10720test -z "$DLLTOOL" && DLLTOOL=dlltool
10721
10722
10723
10724
10725
10726test -z "$OBJDUMP" && OBJDUMP=objdump
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736{ echo "$as_me:$LINENO: checking for main in -lc" >&5
10737echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6; }
10738if test "${ac_cv_lib_c_main+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740else
10741 ac_check_lib_save_LIBS=$LIBS
10742LIBS="-lc $LIBS"
10743cat >conftest.$ac_ext <<_ACEOF
10744/* confdefs.h. */
10745_ACEOF
10746cat confdefs.h >>conftest.$ac_ext
10747cat >>conftest.$ac_ext <<_ACEOF
10748/* end confdefs.h. */
10749
10750
10751int
10752main ()
10753{
10754return main ();
10755 ;
10756 return 0;
10757}
10758_ACEOF
10759rm -f conftest.$ac_objext conftest$ac_exeext
10760if { (ac_try="$ac_link"
10761case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10764esac
10765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_link") 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } && {
10773 test -z "$ac_c_werror_flag" ||
10774 test ! -s conftest.err
10775 } && test -s conftest$ac_exeext &&
10776 $as_test_x conftest$ac_exeext; then
10777 ac_cv_lib_c_main=yes
10778else
10779 echo "$as_me: failed program was:" >&5
10780sed 's/^/| /' conftest.$ac_ext >&5
10781
10782 ac_cv_lib_c_main=no
10783fi
10784
10785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10786 conftest$ac_exeext conftest.$ac_ext
10787LIBS=$ac_check_lib_save_LIBS
10788fi
10789{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
10790echo "${ECHO_T}$ac_cv_lib_c_main" >&6; }
10791if test $ac_cv_lib_c_main = yes; then
10792 cat >>confdefs.h <<_ACEOF
10793#define HAVE_LIBC 1
10794_ACEOF
10795
10796 LIBS="-lc $LIBS"
10797
10798fi
10799
10800
10801case "$target_os" in
10802 cygwin* | mingw32* | beos* | darwin*)
10803 ;;
10804 *)
10805
10806{ echo "$as_me:$LINENO: checking for main in -lm" >&5
10807echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
10808if test "${ac_cv_lib_m_main+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810else
10811 ac_check_lib_save_LIBS=$LIBS
10812LIBS="-lm $LIBS"
10813cat >conftest.$ac_ext <<_ACEOF
10814/* confdefs.h. */
10815_ACEOF
10816cat confdefs.h >>conftest.$ac_ext
10817cat >>conftest.$ac_ext <<_ACEOF
10818/* end confdefs.h. */
10819
10820
10821int
10822main ()
10823{
10824return main ();
10825 ;
10826 return 0;
10827}
10828_ACEOF
10829rm -f conftest.$ac_objext conftest$ac_exeext
10830if { (ac_try="$ac_link"
10831case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10834esac
10835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_link") 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && {
10843 test -z "$ac_c_werror_flag" ||
10844 test ! -s conftest.err
10845 } && test -s conftest$ac_exeext &&
10846 $as_test_x conftest$ac_exeext; then
10847 ac_cv_lib_m_main=yes
10848else
10849 echo "$as_me: failed program was:" >&5
10850sed 's/^/| /' conftest.$ac_ext >&5
10851
10852 ac_cv_lib_m_main=no
10853fi
10854
10855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10856 conftest$ac_exeext conftest.$ac_ext
10857LIBS=$ac_check_lib_save_LIBS
10858fi
10859{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10860echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
10861if test $ac_cv_lib_m_main = yes; then
10862 cat >>confdefs.h <<_ACEOF
10863#define HAVE_LIBM 1
10864_ACEOF
10865
10866 LIBS="-lm $LIBS"
10867
10868fi
10869
10870 ;;
10871esac
10872
10873
10874
10875
10876
10877
10878
10879
10880for ac_header in assert.h fcntl.h limits.h malloc.h search.h sys/time.h unistd.h
10881do
10882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10887 echo $ECHO_N "(cached) $ECHO_C" >&6
10888fi
10889ac_res=`eval echo '${'$as_ac_Header'}'`
10890 { echo "$as_me:$LINENO: result: $ac_res" >&5
10891echo "${ECHO_T}$ac_res" >&6; }
10892else
10893 # Is the header compilable?
10894{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10895echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10896cat >conftest.$ac_ext <<_ACEOF
10897/* confdefs.h. */
10898_ACEOF
10899cat confdefs.h >>conftest.$ac_ext
10900cat >>conftest.$ac_ext <<_ACEOF
10901/* end confdefs.h. */
10902$ac_includes_default
10903#include <$ac_header>
10904_ACEOF
10905rm -f conftest.$ac_objext
10906if { (ac_try="$ac_compile"
10907case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10910esac
10911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_compile") 2>conftest.er1
10913 ac_status=$?
10914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } && {
10919 test -z "$ac_c_werror_flag" ||
10920 test ! -s conftest.err
10921 } && test -s conftest.$ac_objext; then
10922 ac_header_compiler=yes
10923else
10924 echo "$as_me: failed program was:" >&5
10925sed 's/^/| /' conftest.$ac_ext >&5
10926
10927 ac_header_compiler=no
10928fi
10929
10930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10932echo "${ECHO_T}$ac_header_compiler" >&6; }
10933
10934# Is the header present?
10935{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10937cat >conftest.$ac_ext <<_ACEOF
10938/* confdefs.h. */
10939_ACEOF
10940cat confdefs.h >>conftest.$ac_ext
10941cat >>conftest.$ac_ext <<_ACEOF
10942/* end confdefs.h. */
10943#include <$ac_header>
10944_ACEOF
10945if { (ac_try="$ac_cpp conftest.$ac_ext"
10946case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949esac
10950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } >/dev/null && {
10958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10959 test ! -s conftest.err
10960 }; then
10961 ac_header_preproc=yes
10962else
10963 echo "$as_me: failed program was:" >&5
10964sed 's/^/| /' conftest.$ac_ext >&5
10965
10966 ac_header_preproc=no
10967fi
10968
10969rm -f conftest.err conftest.$ac_ext
10970{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10971echo "${ECHO_T}$ac_header_preproc" >&6; }
10972
10973# So? What about this header?
10974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10975 yes:no: )
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10977echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10979echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10980 ac_header_preproc=yes
10981 ;;
10982 no:yes:* )
10983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10984echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10986echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10988echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10990echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10992echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10994echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10995 ( cat <<\_ASBOX
10996## -------------------------------------- ##
10997## Report this to tiff@lists.maptools.org ##
10998## -------------------------------------- ##
10999_ASBOX
11000 ) | sed "s/^/$as_me: WARNING: /" >&2
11001 ;;
11002esac
11003{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007else
11008 eval "$as_ac_Header=\$ac_header_preproc"
11009fi
11010ac_res=`eval echo '${'$as_ac_Header'}'`
11011 { echo "$as_me:$LINENO: result: $ac_res" >&5
11012echo "${ECHO_T}$ac_res" >&6; }
11013
11014fi
11015if test `eval echo '${'$as_ac_Header'}'` = yes; then
11016 cat >>confdefs.h <<_ACEOF
11017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11018_ACEOF
11019
11020fi
11021
11022done
11023
11024
11025{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11026echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11027if test "${ac_cv_c_const+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11029else
11030 cat >conftest.$ac_ext <<_ACEOF
11031/* confdefs.h. */
11032_ACEOF
11033cat confdefs.h >>conftest.$ac_ext
11034cat >>conftest.$ac_ext <<_ACEOF
11035/* end confdefs.h. */
11036
11037int
11038main ()
11039{
11040/* FIXME: Include the comments suggested by Paul. */
11041#ifndef __cplusplus
11042 /* Ultrix mips cc rejects this. */
11043 typedef int charset[2];
11044 const charset cs;
11045 /* SunOS 4.1.1 cc rejects this. */
11046 char const *const *pcpcc;
11047 char **ppc;
11048 /* NEC SVR4.0.2 mips cc rejects this. */
11049 struct point {int x, y;};
11050 static struct point const zero = {0,0};
11051 /* AIX XL C 1.02.0.0 rejects this.
11052 It does not let you subtract one const X* pointer from another in
11053 an arm of an if-expression whose if-part is not a constant
11054 expression */
11055 const char *g = "string";
11056 pcpcc = &g + (g ? g-g : 0);
11057 /* HPUX 7.0 cc rejects these. */
11058 ++pcpcc;
11059 ppc = (char**) pcpcc;
11060 pcpcc = (char const *const *) ppc;
11061 { /* SCO 3.2v4 cc rejects this. */
11062 char *t;
11063 char const *s = 0 ? (char *) 0 : (char const *) 0;
11064
11065 *t++ = 0;
11066 if (s) return 0;
11067 }
11068 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11069 int x[] = {25, 17};
11070 const int *foo = &x[0];
11071 ++foo;
11072 }
11073 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11074 typedef const int *iptr;
11075 iptr p = 0;
11076 ++p;
11077 }
11078 { /* AIX XL C 1.02.0.0 rejects this saying
11079 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11080 struct s { int j; const int *ap[3]; };
11081 struct s *b; b->j = 5;
11082 }
11083 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11084 const int foo = 10;
11085 if (!foo) return 0;
11086 }
11087 return !cs[0] && !zero.x;
11088#endif
11089
11090 ;
11091 return 0;
11092}
11093_ACEOF
11094rm -f conftest.$ac_objext
11095if { (ac_try="$ac_compile"
11096case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11099esac
11100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101 (eval "$ac_compile") 2>conftest.er1
11102 ac_status=$?
11103 grep -v '^ *+' conftest.er1 >conftest.err
11104 rm -f conftest.er1
11105 cat conftest.err >&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } && {
11108 test -z "$ac_c_werror_flag" ||
11109 test ! -s conftest.err
11110 } && test -s conftest.$ac_objext; then
11111 ac_cv_c_const=yes
11112else
11113 echo "$as_me: failed program was:" >&5
11114sed 's/^/| /' conftest.$ac_ext >&5
11115
11116 ac_cv_c_const=no
11117fi
11118
11119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120fi
11121{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11122echo "${ECHO_T}$ac_cv_c_const" >&6; }
11123if test $ac_cv_c_const = no; then
11124
11125cat >>confdefs.h <<\_ACEOF
11126#define const
11127_ACEOF
11128
11129fi
11130
11131{ echo "$as_me:$LINENO: checking for inline" >&5
11132echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11133if test "${ac_cv_c_inline+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11135else
11136 ac_cv_c_inline=no
11137for ac_kw in inline __inline__ __inline; do
11138 cat >conftest.$ac_ext <<_ACEOF
11139/* confdefs.h. */
11140_ACEOF
11141cat confdefs.h >>conftest.$ac_ext
11142cat >>conftest.$ac_ext <<_ACEOF
11143/* end confdefs.h. */
11144#ifndef __cplusplus
11145typedef int foo_t;
11146static $ac_kw foo_t static_foo () {return 0; }
11147$ac_kw foo_t foo () {return 0; }
11148#endif
11149
11150_ACEOF
11151rm -f conftest.$ac_objext
11152if { (ac_try="$ac_compile"
11153case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11156esac
11157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_compile") 2>conftest.er1
11159 ac_status=$?
11160 grep -v '^ *+' conftest.er1 >conftest.err
11161 rm -f conftest.er1
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } && {
11165 test -z "$ac_c_werror_flag" ||
11166 test ! -s conftest.err
11167 } && test -s conftest.$ac_objext; then
11168 ac_cv_c_inline=$ac_kw
11169else
11170 echo "$as_me: failed program was:" >&5
11171sed 's/^/| /' conftest.$ac_ext >&5
11172
11173
11174fi
11175
11176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177 test "$ac_cv_c_inline" != no && break
11178done
11179
11180fi
11181{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11182echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11183
11184
11185case $ac_cv_c_inline in
11186 inline | yes) ;;
11187 *)
11188 case $ac_cv_c_inline in
11189 no) ac_val=;;
11190 *) ac_val=$ac_cv_c_inline;;
11191 esac
11192 cat >>confdefs.h <<_ACEOF
11193#ifndef __cplusplus
11194#define inline $ac_val
11195#endif
11196_ACEOF
11197 ;;
11198esac
11199
11200{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11201echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
11202if test "${ac_cv_c_bigendian+set}" = set; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11204else
11205 # See if sys/param.h defines the BYTE_ORDER macro.
11206cat >conftest.$ac_ext <<_ACEOF
11207/* confdefs.h. */
11208_ACEOF
11209cat confdefs.h >>conftest.$ac_ext
11210cat >>conftest.$ac_ext <<_ACEOF
11211/* end confdefs.h. */
11212#include <sys/types.h>
11213#include <sys/param.h>
11214
11215int
11216main ()
11217{
11218#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
11219 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
11220 bogus endian macros
11221#endif
11222
11223 ;
11224 return 0;
11225}
11226_ACEOF
11227rm -f conftest.$ac_objext
11228if { (ac_try="$ac_compile"
11229case "(($ac_try" in
11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11232esac
11233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234 (eval "$ac_compile") 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } && {
11241 test -z "$ac_c_werror_flag" ||
11242 test ! -s conftest.err
11243 } && test -s conftest.$ac_objext; then
11244 # It does; now see whether it defined to BIG_ENDIAN or not.
11245cat >conftest.$ac_ext <<_ACEOF
11246/* confdefs.h. */
11247_ACEOF
11248cat confdefs.h >>conftest.$ac_ext
11249cat >>conftest.$ac_ext <<_ACEOF
11250/* end confdefs.h. */
11251#include <sys/types.h>
11252#include <sys/param.h>
11253
11254int
11255main ()
11256{
11257#if BYTE_ORDER != BIG_ENDIAN
11258 not big endian
11259#endif
11260
11261 ;
11262 return 0;
11263}
11264_ACEOF
11265rm -f conftest.$ac_objext
11266if { (ac_try="$ac_compile"
11267case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270esac
11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_compile") 2>conftest.er1
11273 ac_status=$?
11274 grep -v '^ *+' conftest.er1 >conftest.err
11275 rm -f conftest.er1
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } && {
11279 test -z "$ac_c_werror_flag" ||
11280 test ! -s conftest.err
11281 } && test -s conftest.$ac_objext; then
11282 ac_cv_c_bigendian=yes
11283else
11284 echo "$as_me: failed program was:" >&5
11285sed 's/^/| /' conftest.$ac_ext >&5
11286
11287 ac_cv_c_bigendian=no
11288fi
11289
11290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11291else
11292 echo "$as_me: failed program was:" >&5
11293sed 's/^/| /' conftest.$ac_ext >&5
11294
11295 # It does not; compile a test program.
11296if test "$cross_compiling" = yes; then
11297 # try to guess the endianness by grepping values into an object file
11298 ac_cv_c_bigendian=unknown
11299 cat >conftest.$ac_ext <<_ACEOF
11300/* confdefs.h. */
11301_ACEOF
11302cat confdefs.h >>conftest.$ac_ext
11303cat >>conftest.$ac_ext <<_ACEOF
11304/* end confdefs.h. */
11305short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11306short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11307void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11308short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11309short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11310void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11311int
11312main ()
11313{
11314 _ascii (); _ebcdic ();
11315 ;
11316 return 0;
11317}
11318_ACEOF
11319rm -f conftest.$ac_objext
11320if { (ac_try="$ac_compile"
11321case "(($ac_try" in
11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323 *) ac_try_echo=$ac_try;;
11324esac
11325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11326 (eval "$ac_compile") 2>conftest.er1
11327 ac_status=$?
11328 grep -v '^ *+' conftest.er1 >conftest.err
11329 rm -f conftest.er1
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } && {
11333 test -z "$ac_c_werror_flag" ||
11334 test ! -s conftest.err
11335 } && test -s conftest.$ac_objext; then
11336 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11337 ac_cv_c_bigendian=yes
11338fi
11339if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11340 if test "$ac_cv_c_bigendian" = unknown; then
11341 ac_cv_c_bigendian=no
11342 else
11343 # finding both strings is unlikely to happen, but who knows?
11344 ac_cv_c_bigendian=unknown
11345 fi
11346fi
11347else
11348 echo "$as_me: failed program was:" >&5
11349sed 's/^/| /' conftest.$ac_ext >&5
11350
11351
11352fi
11353
11354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11355else
11356 cat >conftest.$ac_ext <<_ACEOF
11357/* confdefs.h. */
11358_ACEOF
11359cat confdefs.h >>conftest.$ac_ext
11360cat >>conftest.$ac_ext <<_ACEOF
11361/* end confdefs.h. */
11362$ac_includes_default
11363int
11364main ()
11365{
11366
11367 /* Are we little or big endian? From Harbison&Steele. */
11368 union
11369 {
11370 long int l;
11371 char c[sizeof (long int)];
11372 } u;
11373 u.l = 1;
11374 return u.c[sizeof (long int) - 1] == 1;
11375
11376 ;
11377 return 0;
11378}
11379_ACEOF
11380rm -f conftest$ac_exeext
11381if { (ac_try="$ac_link"
11382case "(($ac_try" in
11383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384 *) ac_try_echo=$ac_try;;
11385esac
11386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11387 (eval "$ac_link") 2>&5
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11391 { (case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11394esac
11395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_try") 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 ac_cv_c_bigendian=no
11401else
11402 echo "$as_me: program exited with status $ac_status" >&5
11403echo "$as_me: failed program was:" >&5
11404sed 's/^/| /' conftest.$ac_ext >&5
11405
11406( exit $ac_status )
11407ac_cv_c_bigendian=yes
11408fi
11409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11410fi
11411
11412
11413fi
11414
11415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11416fi
11417{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11418echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
11419case $ac_cv_c_bigendian in
11420 yes)
11421
11422cat >>confdefs.h <<\_ACEOF
11423#define WORDS_BIGENDIAN 1
11424_ACEOF
11425 ;;
11426 no)
11427 ;;
11428 *)
11429 { { echo "$as_me:$LINENO: error: unknown endianness
11430presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11431echo "$as_me: error: unknown endianness
11432presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11433 { (exit 1); exit 1; }; } ;;
11434esac
11435
11436{ echo "$as_me:$LINENO: checking for off_t" >&5
11437echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11438if test "${ac_cv_type_off_t+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440else
11441 cat >conftest.$ac_ext <<_ACEOF
11442/* confdefs.h. */
11443_ACEOF
11444cat confdefs.h >>conftest.$ac_ext
11445cat >>conftest.$ac_ext <<_ACEOF
11446/* end confdefs.h. */
11447$ac_includes_default
11448typedef off_t ac__type_new_;
11449int
11450main ()
11451{
11452if ((ac__type_new_ *) 0)
11453 return 0;
11454if (sizeof (ac__type_new_))
11455 return 0;
11456 ;
11457 return 0;
11458}
11459_ACEOF
11460rm -f conftest.$ac_objext
11461if { (ac_try="$ac_compile"
11462case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11465esac
11466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_compile") 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } && {
11474 test -z "$ac_c_werror_flag" ||
11475 test ! -s conftest.err
11476 } && test -s conftest.$ac_objext; then
11477 ac_cv_type_off_t=yes
11478else
11479 echo "$as_me: failed program was:" >&5
11480sed 's/^/| /' conftest.$ac_ext >&5
11481
11482 ac_cv_type_off_t=no
11483fi
11484
11485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486fi
11487{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11488echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11489if test $ac_cv_type_off_t = yes; then
11490 :
11491else
11492
11493cat >>confdefs.h <<_ACEOF
11494#define off_t long int
11495_ACEOF
11496
11497fi
11498
11499{ echo "$as_me:$LINENO: checking for size_t" >&5
11500echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11501if test "${ac_cv_type_size_t+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11503else
11504 cat >conftest.$ac_ext <<_ACEOF
11505/* confdefs.h. */
11506_ACEOF
11507cat confdefs.h >>conftest.$ac_ext
11508cat >>conftest.$ac_ext <<_ACEOF
11509/* end confdefs.h. */
11510$ac_includes_default
11511typedef size_t ac__type_new_;
11512int
11513main ()
11514{
11515if ((ac__type_new_ *) 0)
11516 return 0;
11517if (sizeof (ac__type_new_))
11518 return 0;
11519 ;
11520 return 0;
11521}
11522_ACEOF
11523rm -f conftest.$ac_objext
11524if { (ac_try="$ac_compile"
11525case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528esac
11529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_compile") 2>conftest.er1
11531 ac_status=$?
11532 grep -v '^ *+' conftest.er1 >conftest.err
11533 rm -f conftest.er1
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } && {
11537 test -z "$ac_c_werror_flag" ||
11538 test ! -s conftest.err
11539 } && test -s conftest.$ac_objext; then
11540 ac_cv_type_size_t=yes
11541else
11542 echo "$as_me: failed program was:" >&5
11543sed 's/^/| /' conftest.$ac_ext >&5
11544
11545 ac_cv_type_size_t=no
11546fi
11547
11548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549fi
11550{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11551echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11552if test $ac_cv_type_size_t = yes; then
11553 :
11554else
11555
11556cat >>confdefs.h <<_ACEOF
11557#define size_t unsigned int
11558_ACEOF
11559
11560fi
11561
11562{ echo "$as_me:$LINENO: checking for int" >&5
11563echo $ECHO_N "checking for int... $ECHO_C" >&6; }
11564if test "${ac_cv_type_int+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566else
11567 cat >conftest.$ac_ext <<_ACEOF
11568/* confdefs.h. */
11569_ACEOF
11570cat confdefs.h >>conftest.$ac_ext
11571cat >>conftest.$ac_ext <<_ACEOF
11572/* end confdefs.h. */
11573$ac_includes_default
11574typedef int ac__type_new_;
11575int
11576main ()
11577{
11578if ((ac__type_new_ *) 0)
11579 return 0;
11580if (sizeof (ac__type_new_))
11581 return 0;
11582 ;
11583 return 0;
11584}
11585_ACEOF
11586rm -f conftest.$ac_objext
11587if { (ac_try="$ac_compile"
11588case "(($ac_try" in
11589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590 *) ac_try_echo=$ac_try;;
11591esac
11592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11593 (eval "$ac_compile") 2>conftest.er1
11594 ac_status=$?
11595 grep -v '^ *+' conftest.er1 >conftest.err
11596 rm -f conftest.er1
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } && {
11600 test -z "$ac_c_werror_flag" ||
11601 test ! -s conftest.err
11602 } && test -s conftest.$ac_objext; then
11603 ac_cv_type_int=yes
11604else
11605 echo "$as_me: failed program was:" >&5
11606sed 's/^/| /' conftest.$ac_ext >&5
11607
11608 ac_cv_type_int=no
11609fi
11610
11611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11612fi
11613{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11614echo "${ECHO_T}$ac_cv_type_int" >&6; }
11615
11616# The cast to long int works around a bug in the HP C Compiler
11617# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11618# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11619# This bug is HP SR number 8606223364.
11620{ echo "$as_me:$LINENO: checking size of int" >&5
11621echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
11622if test "${ac_cv_sizeof_int+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624else
11625 if test "$cross_compiling" = yes; then
11626 # Depending upon the size, compute the lo and hi bounds.
11627cat >conftest.$ac_ext <<_ACEOF
11628/* confdefs.h. */
11629_ACEOF
11630cat confdefs.h >>conftest.$ac_ext
11631cat >>conftest.$ac_ext <<_ACEOF
11632/* end confdefs.h. */
11633$ac_includes_default
11634 typedef int ac__type_sizeof_;
11635int
11636main ()
11637{
11638static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11639test_array [0] = 0
11640
11641 ;
11642 return 0;
11643}
11644_ACEOF
11645rm -f conftest.$ac_objext
11646if { (ac_try="$ac_compile"
11647case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650esac
11651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_compile") 2>conftest.er1
11653 ac_status=$?
11654 grep -v '^ *+' conftest.er1 >conftest.err
11655 rm -f conftest.er1
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } && {
11659 test -z "$ac_c_werror_flag" ||
11660 test ! -s conftest.err
11661 } && test -s conftest.$ac_objext; then
11662 ac_lo=0 ac_mid=0
11663 while :; do
11664 cat >conftest.$ac_ext <<_ACEOF
11665/* confdefs.h. */
11666_ACEOF
11667cat confdefs.h >>conftest.$ac_ext
11668cat >>conftest.$ac_ext <<_ACEOF
11669/* end confdefs.h. */
11670$ac_includes_default
11671 typedef int ac__type_sizeof_;
11672int
11673main ()
11674{
11675static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11676test_array [0] = 0
11677
11678 ;
11679 return 0;
11680}
11681_ACEOF
11682rm -f conftest.$ac_objext
11683if { (ac_try="$ac_compile"
11684case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11687esac
11688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_compile") 2>conftest.er1
11690 ac_status=$?
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } && {
11696 test -z "$ac_c_werror_flag" ||
11697 test ! -s conftest.err
11698 } && test -s conftest.$ac_objext; then
11699 ac_hi=$ac_mid; break
11700else
11701 echo "$as_me: failed program was:" >&5
11702sed 's/^/| /' conftest.$ac_ext >&5
11703
11704 ac_lo=`expr $ac_mid + 1`
11705 if test $ac_lo -le $ac_mid; then
11706 ac_lo= ac_hi=
11707 break
11708 fi
11709 ac_mid=`expr 2 '*' $ac_mid + 1`
11710fi
11711
11712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11713 done
11714else
11715 echo "$as_me: failed program was:" >&5
11716sed 's/^/| /' conftest.$ac_ext >&5
11717
11718 cat >conftest.$ac_ext <<_ACEOF
11719/* confdefs.h. */
11720_ACEOF
11721cat confdefs.h >>conftest.$ac_ext
11722cat >>conftest.$ac_ext <<_ACEOF
11723/* end confdefs.h. */
11724$ac_includes_default
11725 typedef int ac__type_sizeof_;
11726int
11727main ()
11728{
11729static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11730test_array [0] = 0
11731
11732 ;
11733 return 0;
11734}
11735_ACEOF
11736rm -f conftest.$ac_objext
11737if { (ac_try="$ac_compile"
11738case "(($ac_try" in
11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740 *) ac_try_echo=$ac_try;;
11741esac
11742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743 (eval "$ac_compile") 2>conftest.er1
11744 ac_status=$?
11745 grep -v '^ *+' conftest.er1 >conftest.err
11746 rm -f conftest.er1
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } && {
11750 test -z "$ac_c_werror_flag" ||
11751 test ! -s conftest.err
11752 } && test -s conftest.$ac_objext; then
11753 ac_hi=-1 ac_mid=-1
11754 while :; do
11755 cat >conftest.$ac_ext <<_ACEOF
11756/* confdefs.h. */
11757_ACEOF
11758cat confdefs.h >>conftest.$ac_ext
11759cat >>conftest.$ac_ext <<_ACEOF
11760/* end confdefs.h. */
11761$ac_includes_default
11762 typedef int ac__type_sizeof_;
11763int
11764main ()
11765{
11766static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11767test_array [0] = 0
11768
11769 ;
11770 return 0;
11771}
11772_ACEOF
11773rm -f conftest.$ac_objext
11774if { (ac_try="$ac_compile"
11775case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11778esac
11779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_compile") 2>conftest.er1
11781 ac_status=$?
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } && {
11787 test -z "$ac_c_werror_flag" ||
11788 test ! -s conftest.err
11789 } && test -s conftest.$ac_objext; then
11790 ac_lo=$ac_mid; break
11791else
11792 echo "$as_me: failed program was:" >&5
11793sed 's/^/| /' conftest.$ac_ext >&5
11794
11795 ac_hi=`expr '(' $ac_mid ')' - 1`
11796 if test $ac_mid -le $ac_hi; then
11797 ac_lo= ac_hi=
11798 break
11799 fi
11800 ac_mid=`expr 2 '*' $ac_mid`
11801fi
11802
11803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11804 done
11805else
11806 echo "$as_me: failed program was:" >&5
11807sed 's/^/| /' conftest.$ac_ext >&5
11808
11809 ac_lo= ac_hi=
11810fi
11811
11812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813fi
11814
11815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11816# Binary search between lo and hi bounds.
11817while test "x$ac_lo" != "x$ac_hi"; do
11818 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11819 cat >conftest.$ac_ext <<_ACEOF
11820/* confdefs.h. */
11821_ACEOF
11822cat confdefs.h >>conftest.$ac_ext
11823cat >>conftest.$ac_ext <<_ACEOF
11824/* end confdefs.h. */
11825$ac_includes_default
11826 typedef int ac__type_sizeof_;
11827int
11828main ()
11829{
11830static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11831test_array [0] = 0
11832
11833 ;
11834 return 0;
11835}
11836_ACEOF
11837rm -f conftest.$ac_objext
11838if { (ac_try="$ac_compile"
11839case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11842esac
11843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_compile") 2>conftest.er1
11845 ac_status=$?
11846 grep -v '^ *+' conftest.er1 >conftest.err
11847 rm -f conftest.er1
11848 cat conftest.err >&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } && {
11851 test -z "$ac_c_werror_flag" ||
11852 test ! -s conftest.err
11853 } && test -s conftest.$ac_objext; then
11854 ac_hi=$ac_mid
11855else
11856 echo "$as_me: failed program was:" >&5
11857sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 ac_lo=`expr '(' $ac_mid ')' + 1`
11860fi
11861
11862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11863done
11864case $ac_lo in
11865?*) ac_cv_sizeof_int=$ac_lo;;
11866'') if test "$ac_cv_type_int" = yes; then
11867 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
11868See \`config.log' for more details." >&5
11869echo "$as_me: error: cannot compute sizeof (int)
11870See \`config.log' for more details." >&2;}
11871 { (exit 77); exit 77; }; }
11872 else
11873 ac_cv_sizeof_int=0
11874 fi ;;
11875esac
11876else
11877 cat >conftest.$ac_ext <<_ACEOF
11878/* confdefs.h. */
11879_ACEOF
11880cat confdefs.h >>conftest.$ac_ext
11881cat >>conftest.$ac_ext <<_ACEOF
11882/* end confdefs.h. */
11883$ac_includes_default
11884 typedef int ac__type_sizeof_;
11885static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11886static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11887#include <stdio.h>
11888#include <stdlib.h>
11889int
11890main ()
11891{
11892
11893 FILE *f = fopen ("conftest.val", "w");
11894 if (! f)
11895 return 1;
11896 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11897 {
11898 long int i = longval ();
11899 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11900 return 1;
11901 fprintf (f, "%ld\n", i);
11902 }
11903 else
11904 {
11905 unsigned long int i = ulongval ();
11906 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11907 return 1;
11908 fprintf (f, "%lu\n", i);
11909 }
11910 return ferror (f) || fclose (f) != 0;
11911
11912 ;
11913 return 0;
11914}
11915_ACEOF
11916rm -f conftest$ac_exeext
11917if { (ac_try="$ac_link"
11918case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921esac
11922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_link") 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11927 { (case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11930esac
11931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_try") 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 ac_cv_sizeof_int=`cat conftest.val`
11937else
11938 echo "$as_me: program exited with status $ac_status" >&5
11939echo "$as_me: failed program was:" >&5
11940sed 's/^/| /' conftest.$ac_ext >&5
11941
11942( exit $ac_status )
11943if test "$ac_cv_type_int" = yes; then
11944 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
11945See \`config.log' for more details." >&5
11946echo "$as_me: error: cannot compute sizeof (int)
11947See \`config.log' for more details." >&2;}
11948 { (exit 77); exit 77; }; }
11949 else
11950 ac_cv_sizeof_int=0
11951 fi
11952fi
11953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11954fi
11955rm -f conftest.val
11956fi
11957{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11958echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
11959
11960
11961
11962cat >>confdefs.h <<_ACEOF
11963#define SIZEOF_INT $ac_cv_sizeof_int
11964_ACEOF
11965
11966
11967{ echo "$as_me:$LINENO: checking for long" >&5
11968echo $ECHO_N "checking for long... $ECHO_C" >&6; }
11969if test "${ac_cv_type_long+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11971else
11972 cat >conftest.$ac_ext <<_ACEOF
11973/* confdefs.h. */
11974_ACEOF
11975cat confdefs.h >>conftest.$ac_ext
11976cat >>conftest.$ac_ext <<_ACEOF
11977/* end confdefs.h. */
11978$ac_includes_default
11979typedef long ac__type_new_;
11980int
11981main ()
11982{
11983if ((ac__type_new_ *) 0)
11984 return 0;
11985if (sizeof (ac__type_new_))
11986 return 0;
11987 ;
11988 return 0;
11989}
11990_ACEOF
11991rm -f conftest.$ac_objext
11992if { (ac_try="$ac_compile"
11993case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11996esac
11997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_compile") 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } && {
12005 test -z "$ac_c_werror_flag" ||
12006 test ! -s conftest.err
12007 } && test -s conftest.$ac_objext; then
12008 ac_cv_type_long=yes
12009else
12010 echo "$as_me: failed program was:" >&5
12011sed 's/^/| /' conftest.$ac_ext >&5
12012
12013 ac_cv_type_long=no
12014fi
12015
12016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12017fi
12018{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12019echo "${ECHO_T}$ac_cv_type_long" >&6; }
12020
12021# The cast to long int works around a bug in the HP C Compiler
12022# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12023# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12024# This bug is HP SR number 8606223364.
12025{ echo "$as_me:$LINENO: checking size of long" >&5
12026echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
12027if test "${ac_cv_sizeof_long+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029else
12030 if test "$cross_compiling" = yes; then
12031 # Depending upon the size, compute the lo and hi bounds.
12032cat >conftest.$ac_ext <<_ACEOF
12033/* confdefs.h. */
12034_ACEOF
12035cat confdefs.h >>conftest.$ac_ext
12036cat >>conftest.$ac_ext <<_ACEOF
12037/* end confdefs.h. */
12038$ac_includes_default
12039 typedef long ac__type_sizeof_;
12040int
12041main ()
12042{
12043static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12044test_array [0] = 0
12045
12046 ;
12047 return 0;
12048}
12049_ACEOF
12050rm -f conftest.$ac_objext
12051if { (ac_try="$ac_compile"
12052case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055esac
12056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_compile") 2>conftest.er1
12058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } && {
12064 test -z "$ac_c_werror_flag" ||
12065 test ! -s conftest.err
12066 } && test -s conftest.$ac_objext; then
12067 ac_lo=0 ac_mid=0
12068 while :; do
12069 cat >conftest.$ac_ext <<_ACEOF
12070/* confdefs.h. */
12071_ACEOF
12072cat confdefs.h >>conftest.$ac_ext
12073cat >>conftest.$ac_ext <<_ACEOF
12074/* end confdefs.h. */
12075$ac_includes_default
12076 typedef long ac__type_sizeof_;
12077int
12078main ()
12079{
12080static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12081test_array [0] = 0
12082
12083 ;
12084 return 0;
12085}
12086_ACEOF
12087rm -f conftest.$ac_objext
12088if { (ac_try="$ac_compile"
12089case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12092esac
12093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094 (eval "$ac_compile") 2>conftest.er1
12095 ac_status=$?
12096 grep -v '^ *+' conftest.er1 >conftest.err
12097 rm -f conftest.er1
12098 cat conftest.err >&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } && {
12101 test -z "$ac_c_werror_flag" ||
12102 test ! -s conftest.err
12103 } && test -s conftest.$ac_objext; then
12104 ac_hi=$ac_mid; break
12105else
12106 echo "$as_me: failed program was:" >&5
12107sed 's/^/| /' conftest.$ac_ext >&5
12108
12109 ac_lo=`expr $ac_mid + 1`
12110 if test $ac_lo -le $ac_mid; then
12111 ac_lo= ac_hi=
12112 break
12113 fi
12114 ac_mid=`expr 2 '*' $ac_mid + 1`
12115fi
12116
12117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12118 done
12119else
12120 echo "$as_me: failed program was:" >&5
12121sed 's/^/| /' conftest.$ac_ext >&5
12122
12123 cat >conftest.$ac_ext <<_ACEOF
12124/* confdefs.h. */
12125_ACEOF
12126cat confdefs.h >>conftest.$ac_ext
12127cat >>conftest.$ac_ext <<_ACEOF
12128/* end confdefs.h. */
12129$ac_includes_default
12130 typedef long ac__type_sizeof_;
12131int
12132main ()
12133{
12134static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12135test_array [0] = 0
12136
12137 ;
12138 return 0;
12139}
12140_ACEOF
12141rm -f conftest.$ac_objext
12142if { (ac_try="$ac_compile"
12143case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12146esac
12147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_compile") 2>conftest.er1
12149 ac_status=$?
12150 grep -v '^ *+' conftest.er1 >conftest.err
12151 rm -f conftest.er1
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } && {
12155 test -z "$ac_c_werror_flag" ||
12156 test ! -s conftest.err
12157 } && test -s conftest.$ac_objext; then
12158 ac_hi=-1 ac_mid=-1
12159 while :; do
12160 cat >conftest.$ac_ext <<_ACEOF
12161/* confdefs.h. */
12162_ACEOF
12163cat confdefs.h >>conftest.$ac_ext
12164cat >>conftest.$ac_ext <<_ACEOF
12165/* end confdefs.h. */
12166$ac_includes_default
12167 typedef long ac__type_sizeof_;
12168int
12169main ()
12170{
12171static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12172test_array [0] = 0
12173
12174 ;
12175 return 0;
12176}
12177_ACEOF
12178rm -f conftest.$ac_objext
12179if { (ac_try="$ac_compile"
12180case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12183esac
12184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_compile") 2>conftest.er1
12186 ac_status=$?
12187 grep -v '^ *+' conftest.er1 >conftest.err
12188 rm -f conftest.er1
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && {
12192 test -z "$ac_c_werror_flag" ||
12193 test ! -s conftest.err
12194 } && test -s conftest.$ac_objext; then
12195 ac_lo=$ac_mid; break
12196else
12197 echo "$as_me: failed program was:" >&5
12198sed 's/^/| /' conftest.$ac_ext >&5
12199
12200 ac_hi=`expr '(' $ac_mid ')' - 1`
12201 if test $ac_mid -le $ac_hi; then
12202 ac_lo= ac_hi=
12203 break
12204 fi
12205 ac_mid=`expr 2 '*' $ac_mid`
12206fi
12207
12208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12209 done
12210else
12211 echo "$as_me: failed program was:" >&5
12212sed 's/^/| /' conftest.$ac_ext >&5
12213
12214 ac_lo= ac_hi=
12215fi
12216
12217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218fi
12219
12220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221# Binary search between lo and hi bounds.
12222while test "x$ac_lo" != "x$ac_hi"; do
12223 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12224 cat >conftest.$ac_ext <<_ACEOF
12225/* confdefs.h. */
12226_ACEOF
12227cat confdefs.h >>conftest.$ac_ext
12228cat >>conftest.$ac_ext <<_ACEOF
12229/* end confdefs.h. */
12230$ac_includes_default
12231 typedef long ac__type_sizeof_;
12232int
12233main ()
12234{
12235static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12236test_array [0] = 0
12237
12238 ;
12239 return 0;
12240}
12241_ACEOF
12242rm -f conftest.$ac_objext
12243if { (ac_try="$ac_compile"
12244case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12247esac
12248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_compile") 2>conftest.er1
12250 ac_status=$?
12251 grep -v '^ *+' conftest.er1 >conftest.err
12252 rm -f conftest.er1
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } && {
12256 test -z "$ac_c_werror_flag" ||
12257 test ! -s conftest.err
12258 } && test -s conftest.$ac_objext; then
12259 ac_hi=$ac_mid
12260else
12261 echo "$as_me: failed program was:" >&5
12262sed 's/^/| /' conftest.$ac_ext >&5
12263
12264 ac_lo=`expr '(' $ac_mid ')' + 1`
12265fi
12266
12267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268done
12269case $ac_lo in
12270?*) ac_cv_sizeof_long=$ac_lo;;
12271'') if test "$ac_cv_type_long" = yes; then
12272 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
12273See \`config.log' for more details." >&5
12274echo "$as_me: error: cannot compute sizeof (long)
12275See \`config.log' for more details." >&2;}
12276 { (exit 77); exit 77; }; }
12277 else
12278 ac_cv_sizeof_long=0
12279 fi ;;
12280esac
12281else
12282 cat >conftest.$ac_ext <<_ACEOF
12283/* confdefs.h. */
12284_ACEOF
12285cat confdefs.h >>conftest.$ac_ext
12286cat >>conftest.$ac_ext <<_ACEOF
12287/* end confdefs.h. */
12288$ac_includes_default
12289 typedef long ac__type_sizeof_;
12290static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12291static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12292#include <stdio.h>
12293#include <stdlib.h>
12294int
12295main ()
12296{
12297
12298 FILE *f = fopen ("conftest.val", "w");
12299 if (! f)
12300 return 1;
12301 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12302 {
12303 long int i = longval ();
12304 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12305 return 1;
12306 fprintf (f, "%ld\n", i);
12307 }
12308 else
12309 {
12310 unsigned long int i = ulongval ();
12311 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12312 return 1;
12313 fprintf (f, "%lu\n", i);
12314 }
12315 return ferror (f) || fclose (f) != 0;
12316
12317 ;
12318 return 0;
12319}
12320_ACEOF
12321rm -f conftest$ac_exeext
12322if { (ac_try="$ac_link"
12323case "(($ac_try" in
12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12326esac
12327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328 (eval "$ac_link") 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12332 { (case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12335esac
12336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_try") 2>&5
12338 ac_status=$?
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 ac_cv_sizeof_long=`cat conftest.val`
12342else
12343 echo "$as_me: program exited with status $ac_status" >&5
12344echo "$as_me: failed program was:" >&5
12345sed 's/^/| /' conftest.$ac_ext >&5
12346
12347( exit $ac_status )
12348if test "$ac_cv_type_long" = yes; then
12349 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
12350See \`config.log' for more details." >&5
12351echo "$as_me: error: cannot compute sizeof (long)
12352See \`config.log' for more details." >&2;}
12353 { (exit 77); exit 77; }; }
12354 else
12355 ac_cv_sizeof_long=0
12356 fi
12357fi
12358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12359fi
12360rm -f conftest.val
12361fi
12362{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12363echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
12364
12365
12366
12367cat >>confdefs.h <<_ACEOF
12368#define SIZEOF_LONG $ac_cv_sizeof_long
12369_ACEOF
12370
12371
12372{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12373echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
12374if test "${ac_cv_header_time+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376else
12377 cat >conftest.$ac_ext <<_ACEOF
12378/* confdefs.h. */
12379_ACEOF
12380cat confdefs.h >>conftest.$ac_ext
12381cat >>conftest.$ac_ext <<_ACEOF
12382/* end confdefs.h. */
12383#include <sys/types.h>
12384#include <sys/time.h>
12385#include <time.h>
12386
12387int
12388main ()
12389{
12390if ((struct tm *) 0)
12391return 0;
12392 ;
12393 return 0;
12394}
12395_ACEOF
12396rm -f conftest.$ac_objext
12397if { (ac_try="$ac_compile"
12398case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12401esac
12402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_compile") 2>conftest.er1
12404 ac_status=$?
12405 grep -v '^ *+' conftest.er1 >conftest.err
12406 rm -f conftest.er1
12407 cat conftest.err >&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } && {
12410 test -z "$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12412 } && test -s conftest.$ac_objext; then
12413 ac_cv_header_time=yes
12414else
12415 echo "$as_me: failed program was:" >&5
12416sed 's/^/| /' conftest.$ac_ext >&5
12417
12418 ac_cv_header_time=no
12419fi
12420
12421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422fi
12423{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12424echo "${ECHO_T}$ac_cv_header_time" >&6; }
12425if test $ac_cv_header_time = yes; then
12426
12427cat >>confdefs.h <<\_ACEOF
12428#define TIME_WITH_SYS_TIME 1
12429_ACEOF
12430
12431fi
12432
12433{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12434echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
12435if test "${ac_cv_struct_tm+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12437else
12438 cat >conftest.$ac_ext <<_ACEOF
12439/* confdefs.h. */
12440_ACEOF
12441cat confdefs.h >>conftest.$ac_ext
12442cat >>conftest.$ac_ext <<_ACEOF
12443/* end confdefs.h. */
12444#include <sys/types.h>
12445#include <time.h>
12446
12447int
12448main ()
12449{
12450struct tm tm;
12451 int *p = &tm.tm_sec;
12452 return !p;
12453 ;
12454 return 0;
12455}
12456_ACEOF
12457rm -f conftest.$ac_objext
12458if { (ac_try="$ac_compile"
12459case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462esac
12463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_compile") 2>conftest.er1
12465 ac_status=$?
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } && {
12471 test -z "$ac_c_werror_flag" ||
12472 test ! -s conftest.err
12473 } && test -s conftest.$ac_objext; then
12474 ac_cv_struct_tm=time.h
12475else
12476 echo "$as_me: failed program was:" >&5
12477sed 's/^/| /' conftest.$ac_ext >&5
12478
12479 ac_cv_struct_tm=sys/time.h
12480fi
12481
12482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483fi
12484{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12485echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
12486if test $ac_cv_struct_tm = sys/time.h; then
12487
12488cat >>confdefs.h <<\_ACEOF
12489#define TM_IN_SYS_TIME 1
12490_ACEOF
12491
12492fi
12493
12494{ echo "$as_me:$LINENO: checking for int8" >&5
12495echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
12496if test "${ac_cv_type_int8+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498else
12499 cat >conftest.$ac_ext <<_ACEOF
12500/* confdefs.h. */
12501_ACEOF
12502cat confdefs.h >>conftest.$ac_ext
12503cat >>conftest.$ac_ext <<_ACEOF
12504/* end confdefs.h. */
12505
12506#if HAVE_INTTYPES_H
12507# include <inttypes.h>
12508#endif
12509
12510
12511typedef int8 ac__type_new_;
12512int
12513main ()
12514{
12515if ((ac__type_new_ *) 0)
12516 return 0;
12517if (sizeof (ac__type_new_))
12518 return 0;
12519 ;
12520 return 0;
12521}
12522_ACEOF
12523rm -f conftest.$ac_objext
12524if { (ac_try="$ac_compile"
12525case "(($ac_try" in
12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527 *) ac_try_echo=$ac_try;;
12528esac
12529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530 (eval "$ac_compile") 2>conftest.er1
12531 ac_status=$?
12532 grep -v '^ *+' conftest.er1 >conftest.err
12533 rm -f conftest.er1
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } && {
12537 test -z "$ac_c_werror_flag" ||
12538 test ! -s conftest.err
12539 } && test -s conftest.$ac_objext; then
12540 ac_cv_type_int8=yes
12541else
12542 echo "$as_me: failed program was:" >&5
12543sed 's/^/| /' conftest.$ac_ext >&5
12544
12545 ac_cv_type_int8=no
12546fi
12547
12548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12549fi
12550{ echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
12551echo "${ECHO_T}$ac_cv_type_int8" >&6; }
12552if test $ac_cv_type_int8 = yes; then
12553
12554cat >>confdefs.h <<_ACEOF
12555#define HAVE_INT8 1
12556_ACEOF
12557
12558
12559fi
12560{ echo "$as_me:$LINENO: checking for int16" >&5
12561echo $ECHO_N "checking for int16... $ECHO_C" >&6; }
12562if test "${ac_cv_type_int16+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12564else
12565 cat >conftest.$ac_ext <<_ACEOF
12566/* confdefs.h. */
12567_ACEOF
12568cat confdefs.h >>conftest.$ac_ext
12569cat >>conftest.$ac_ext <<_ACEOF
12570/* end confdefs.h. */
12571
12572#if HAVE_INTTYPES_H
12573# include <inttypes.h>
12574#endif
12575
12576
12577typedef int16 ac__type_new_;
12578int
12579main ()
12580{
12581if ((ac__type_new_ *) 0)
12582 return 0;
12583if (sizeof (ac__type_new_))
12584 return 0;
12585 ;
12586 return 0;
12587}
12588_ACEOF
12589rm -f conftest.$ac_objext
12590if { (ac_try="$ac_compile"
12591case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594esac
12595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_compile") 2>conftest.er1
12597 ac_status=$?
12598 grep -v '^ *+' conftest.er1 >conftest.err
12599 rm -f conftest.er1
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } && {
12603 test -z "$ac_c_werror_flag" ||
12604 test ! -s conftest.err
12605 } && test -s conftest.$ac_objext; then
12606 ac_cv_type_int16=yes
12607else
12608 echo "$as_me: failed program was:" >&5
12609sed 's/^/| /' conftest.$ac_ext >&5
12610
12611 ac_cv_type_int16=no
12612fi
12613
12614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615fi
12616{ echo "$as_me:$LINENO: result: $ac_cv_type_int16" >&5
12617echo "${ECHO_T}$ac_cv_type_int16" >&6; }
12618if test $ac_cv_type_int16 = yes; then
12619
12620cat >>confdefs.h <<_ACEOF
12621#define HAVE_INT16 1
12622_ACEOF
12623
12624
12625fi
12626{ echo "$as_me:$LINENO: checking for int32" >&5
12627echo $ECHO_N "checking for int32... $ECHO_C" >&6; }
12628if test "${ac_cv_type_int32+set}" = set; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
12630else
12631 cat >conftest.$ac_ext <<_ACEOF
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h. */
12637
12638#if HAVE_INTTYPES_H
12639# include <inttypes.h>
12640#endif
12641
12642
12643typedef int32 ac__type_new_;
12644int
12645main ()
12646{
12647if ((ac__type_new_ *) 0)
12648 return 0;
12649if (sizeof (ac__type_new_))
12650 return 0;
12651 ;
12652 return 0;
12653}
12654_ACEOF
12655rm -f conftest.$ac_objext
12656if { (ac_try="$ac_compile"
12657case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12660esac
12661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662 (eval "$ac_compile") 2>conftest.er1
12663 ac_status=$?
12664 grep -v '^ *+' conftest.er1 >conftest.err
12665 rm -f conftest.er1
12666 cat conftest.err >&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } && {
12669 test -z "$ac_c_werror_flag" ||
12670 test ! -s conftest.err
12671 } && test -s conftest.$ac_objext; then
12672 ac_cv_type_int32=yes
12673else
12674 echo "$as_me: failed program was:" >&5
12675sed 's/^/| /' conftest.$ac_ext >&5
12676
12677 ac_cv_type_int32=no
12678fi
12679
12680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12681fi
12682{ echo "$as_me:$LINENO: result: $ac_cv_type_int32" >&5
12683echo "${ECHO_T}$ac_cv_type_int32" >&6; }
12684if test $ac_cv_type_int32 = yes; then
12685
12686cat >>confdefs.h <<_ACEOF
12687#define HAVE_INT32 1
12688_ACEOF
12689
12690
12691fi
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705for ac_func in floor isascii memmove memset mmap pow sqrt strchr strrchr strstr strtol
12706do
12707as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12708{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12709echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12710if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12712else
12713 cat >conftest.$ac_ext <<_ACEOF
12714/* confdefs.h. */
12715_ACEOF
12716cat confdefs.h >>conftest.$ac_ext
12717cat >>conftest.$ac_ext <<_ACEOF
12718/* end confdefs.h. */
12719/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12721#define $ac_func innocuous_$ac_func
12722
12723/* System header to define __stub macros and hopefully few prototypes,
12724 which can conflict with char $ac_func (); below.
12725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12726 <limits.h> exists even on freestanding compilers. */
12727
12728#ifdef __STDC__
12729# include <limits.h>
12730#else
12731# include <assert.h>
12732#endif
12733
12734#undef $ac_func
12735
12736/* Override any GCC internal prototype to avoid an error.
12737 Use char because int might match the return type of a GCC
12738 builtin and then its argument prototype would still apply. */
12739#ifdef __cplusplus
12740extern "C"
12741#endif
12742char $ac_func ();
12743/* The GNU C library defines this for functions which it implements
12744 to always fail with ENOSYS. Some functions are actually named
12745 something starting with __ and the normal name is an alias. */
12746#if defined __stub_$ac_func || defined __stub___$ac_func
12747choke me
12748#endif
12749
12750int
12751main ()
12752{
12753return $ac_func ();
12754 ;
12755 return 0;
12756}
12757_ACEOF
12758rm -f conftest.$ac_objext conftest$ac_exeext
12759if { (ac_try="$ac_link"
12760case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12763esac
12764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_link") 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } && {
12772 test -z "$ac_c_werror_flag" ||
12773 test ! -s conftest.err
12774 } && test -s conftest$ac_exeext &&
12775 $as_test_x conftest$ac_exeext; then
12776 eval "$as_ac_var=yes"
12777else
12778 echo "$as_me: failed program was:" >&5
12779sed 's/^/| /' conftest.$ac_ext >&5
12780
12781 eval "$as_ac_var=no"
12782fi
12783
12784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12785 conftest$ac_exeext conftest.$ac_ext
12786fi
12787ac_res=`eval echo '${'$as_ac_var'}'`
12788 { echo "$as_me:$LINENO: result: $ac_res" >&5
12789echo "${ECHO_T}$ac_res" >&6; }
12790if test `eval echo '${'$as_ac_var'}'` = yes; then
12791 cat >>confdefs.h <<_ACEOF
12792#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12793_ACEOF
12794
12795fi
12796done
12797
12798
12799
12800for ac_func in getopt
12801do
12802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12803{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12805if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12807else
12808 cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12816#define $ac_func innocuous_$ac_func
12817
12818/* System header to define __stub macros and hopefully few prototypes,
12819 which can conflict with char $ac_func (); below.
12820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12821 <limits.h> exists even on freestanding compilers. */
12822
12823#ifdef __STDC__
12824# include <limits.h>
12825#else
12826# include <assert.h>
12827#endif
12828
12829#undef $ac_func
12830
12831/* Override any GCC internal prototype to avoid an error.
12832 Use char because int might match the return type of a GCC
12833 builtin and then its argument prototype would still apply. */
12834#ifdef __cplusplus
12835extern "C"
12836#endif
12837char $ac_func ();
12838/* The GNU C library defines this for functions which it implements
12839 to always fail with ENOSYS. Some functions are actually named
12840 something starting with __ and the normal name is an alias. */
12841#if defined __stub_$ac_func || defined __stub___$ac_func
12842choke me
12843#endif
12844
12845int
12846main ()
12847{
12848return $ac_func ();
12849 ;
12850 return 0;
12851}
12852_ACEOF
12853rm -f conftest.$ac_objext conftest$ac_exeext
12854if { (ac_try="$ac_link"
12855case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12858esac
12859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860 (eval "$ac_link") 2>conftest.er1
12861 ac_status=$?
12862 grep -v '^ *+' conftest.er1 >conftest.err
12863 rm -f conftest.er1
12864 cat conftest.err >&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); } && {
12867 test -z "$ac_c_werror_flag" ||
12868 test ! -s conftest.err
12869 } && test -s conftest$ac_exeext &&
12870 $as_test_x conftest$ac_exeext; then
12871 eval "$as_ac_var=yes"
12872else
12873 echo "$as_me: failed program was:" >&5
12874sed 's/^/| /' conftest.$ac_ext >&5
12875
12876 eval "$as_ac_var=no"
12877fi
12878
12879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12880 conftest$ac_exeext conftest.$ac_ext
12881fi
12882ac_res=`eval echo '${'$as_ac_var'}'`
12883 { echo "$as_me:$LINENO: result: $ac_res" >&5
12884echo "${ECHO_T}$ac_res" >&6; }
12885if test `eval echo '${'$as_ac_var'}'` = yes; then
12886 cat >>confdefs.h <<_ACEOF
12887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12888_ACEOF
12889
12890else
12891 case " $LIBOBJS " in
12892 *" $ac_func.$ac_objext "* ) ;;
12893 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12894 ;;
12895esac
12896
12897fi
12898done
12899
12900
12901
12902for ac_func in strcasecmp
12903do
12904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12905{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12907if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12909else
12910 cat >conftest.$ac_ext <<_ACEOF
12911/* confdefs.h. */
12912_ACEOF
12913cat confdefs.h >>conftest.$ac_ext
12914cat >>conftest.$ac_ext <<_ACEOF
12915/* end confdefs.h. */
12916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12918#define $ac_func innocuous_$ac_func
12919
12920/* System header to define __stub macros and hopefully few prototypes,
12921 which can conflict with char $ac_func (); below.
12922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12923 <limits.h> exists even on freestanding compilers. */
12924
12925#ifdef __STDC__
12926# include <limits.h>
12927#else
12928# include <assert.h>
12929#endif
12930
12931#undef $ac_func
12932
12933/* Override any GCC internal prototype to avoid an error.
12934 Use char because int might match the return type of a GCC
12935 builtin and then its argument prototype would still apply. */
12936#ifdef __cplusplus
12937extern "C"
12938#endif
12939char $ac_func ();
12940/* The GNU C library defines this for functions which it implements
12941 to always fail with ENOSYS. Some functions are actually named
12942 something starting with __ and the normal name is an alias. */
12943#if defined __stub_$ac_func || defined __stub___$ac_func
12944choke me
12945#endif
12946
12947int
12948main ()
12949{
12950return $ac_func ();
12951 ;
12952 return 0;
12953}
12954_ACEOF
12955rm -f conftest.$ac_objext conftest$ac_exeext
12956if { (ac_try="$ac_link"
12957case "(($ac_try" in
12958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12959 *) ac_try_echo=$ac_try;;
12960esac
12961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12962 (eval "$ac_link") 2>conftest.er1
12963 ac_status=$?
12964 grep -v '^ *+' conftest.er1 >conftest.err
12965 rm -f conftest.er1
12966 cat conftest.err >&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } && {
12969 test -z "$ac_c_werror_flag" ||
12970 test ! -s conftest.err
12971 } && test -s conftest$ac_exeext &&
12972 $as_test_x conftest$ac_exeext; then
12973 eval "$as_ac_var=yes"
12974else
12975 echo "$as_me: failed program was:" >&5
12976sed 's/^/| /' conftest.$ac_ext >&5
12977
12978 eval "$as_ac_var=no"
12979fi
12980
12981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12982 conftest$ac_exeext conftest.$ac_ext
12983fi
12984ac_res=`eval echo '${'$as_ac_var'}'`
12985 { echo "$as_me:$LINENO: result: $ac_res" >&5
12986echo "${ECHO_T}$ac_res" >&6; }
12987if test `eval echo '${'$as_ac_var'}'` = yes; then
12988 cat >>confdefs.h <<_ACEOF
12989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12990_ACEOF
12991
12992else
12993 case " $LIBOBJS " in
12994 *" $ac_func.$ac_objext "* ) ;;
12995 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12996 ;;
12997esac
12998
12999fi
13000done
13001
13002
13003
13004for ac_func in strtoul
13005do
13006as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13007{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13008echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13009if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13011else
13012 cat >conftest.$ac_ext <<_ACEOF
13013/* confdefs.h. */
13014_ACEOF
13015cat confdefs.h >>conftest.$ac_ext
13016cat >>conftest.$ac_ext <<_ACEOF
13017/* end confdefs.h. */
13018/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13020#define $ac_func innocuous_$ac_func
13021
13022/* System header to define __stub macros and hopefully few prototypes,
13023 which can conflict with char $ac_func (); below.
13024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13025 <limits.h> exists even on freestanding compilers. */
13026
13027#ifdef __STDC__
13028# include <limits.h>
13029#else
13030# include <assert.h>
13031#endif
13032
13033#undef $ac_func
13034
13035/* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13038#ifdef __cplusplus
13039extern "C"
13040#endif
13041char $ac_func ();
13042/* The GNU C library defines this for functions which it implements
13043 to always fail with ENOSYS. Some functions are actually named
13044 something starting with __ and the normal name is an alias. */
13045#if defined __stub_$ac_func || defined __stub___$ac_func
13046choke me
13047#endif
13048
13049int
13050main ()
13051{
13052return $ac_func ();
13053 ;
13054 return 0;
13055}
13056_ACEOF
13057rm -f conftest.$ac_objext conftest$ac_exeext
13058if { (ac_try="$ac_link"
13059case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13062esac
13063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_link") 2>conftest.er1
13065 ac_status=$?
13066 grep -v '^ *+' conftest.er1 >conftest.err
13067 rm -f conftest.er1
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } && {
13071 test -z "$ac_c_werror_flag" ||
13072 test ! -s conftest.err
13073 } && test -s conftest$ac_exeext &&
13074 $as_test_x conftest$ac_exeext; then
13075 eval "$as_ac_var=yes"
13076else
13077 echo "$as_me: failed program was:" >&5
13078sed 's/^/| /' conftest.$ac_ext >&5
13079
13080 eval "$as_ac_var=no"
13081fi
13082
13083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13084 conftest$ac_exeext conftest.$ac_ext
13085fi
13086ac_res=`eval echo '${'$as_ac_var'}'`
13087 { echo "$as_me:$LINENO: result: $ac_res" >&5
13088echo "${ECHO_T}$ac_res" >&6; }
13089if test `eval echo '${'$as_ac_var'}'` = yes; then
13090 cat >>confdefs.h <<_ACEOF
13091#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13092_ACEOF
13093
13094else
13095 case " $LIBOBJS " in
13096 *" $ac_func.$ac_objext "* ) ;;
13097 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13098 ;;
13099esac
13100
13101fi
13102done
13103
13104
13105
13106for ac_func in lfind
13107do
13108as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13109{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13110echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13111if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13113else
13114 cat >conftest.$ac_ext <<_ACEOF
13115/* confdefs.h. */
13116_ACEOF
13117cat confdefs.h >>conftest.$ac_ext
13118cat >>conftest.$ac_ext <<_ACEOF
13119/* end confdefs.h. */
13120/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13122#define $ac_func innocuous_$ac_func
13123
13124/* System header to define __stub macros and hopefully few prototypes,
13125 which can conflict with char $ac_func (); below.
13126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13127 <limits.h> exists even on freestanding compilers. */
13128
13129#ifdef __STDC__
13130# include <limits.h>
13131#else
13132# include <assert.h>
13133#endif
13134
13135#undef $ac_func
13136
13137/* Override any GCC internal prototype to avoid an error.
13138 Use char because int might match the return type of a GCC
13139 builtin and then its argument prototype would still apply. */
13140#ifdef __cplusplus
13141extern "C"
13142#endif
13143char $ac_func ();
13144/* The GNU C library defines this for functions which it implements
13145 to always fail with ENOSYS. Some functions are actually named
13146 something starting with __ and the normal name is an alias. */
13147#if defined __stub_$ac_func || defined __stub___$ac_func
13148choke me
13149#endif
13150
13151int
13152main ()
13153{
13154return $ac_func ();
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159rm -f conftest.$ac_objext conftest$ac_exeext
13160if { (ac_try="$ac_link"
13161case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13164esac
13165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_link") 2>conftest.er1
13167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } && {
13173 test -z "$ac_c_werror_flag" ||
13174 test ! -s conftest.err
13175 } && test -s conftest$ac_exeext &&
13176 $as_test_x conftest$ac_exeext; then
13177 eval "$as_ac_var=yes"
13178else
13179 echo "$as_me: failed program was:" >&5
13180sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 eval "$as_ac_var=no"
13183fi
13184
13185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13186 conftest$ac_exeext conftest.$ac_ext
13187fi
13188ac_res=`eval echo '${'$as_ac_var'}'`
13189 { echo "$as_me:$LINENO: result: $ac_res" >&5
13190echo "${ECHO_T}$ac_res" >&6; }
13191if test `eval echo '${'$as_ac_var'}'` = yes; then
13192 cat >>confdefs.h <<_ACEOF
13193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13194_ACEOF
13195
13196else
13197 case " $LIBOBJS " in
13198 *" $ac_func.$ac_objext "* ) ;;
13199 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13200 ;;
13201esac
13202
13203fi
13204done
13205
13206
13207
13208{ echo "$as_me:$LINENO: checking native cpu bit order" >&5
13209echo $ECHO_N "checking native cpu bit order... $ECHO_C" >&6; }
13210case "$target_cpu" in
13211 i*86*)
13212 HOST_FILLORDER=FILLORDER_LSB2MSB
13213 { echo "$as_me:$LINENO: result: lsb2msb" >&5
13214echo "${ECHO_T}lsb2msb" >&6; }
13215 ;;
13216 *)
13217 HOST_FILLORDER=FILLORDER_MSB2LSB
13218 { echo "$as_me:$LINENO: result: msb2lsb" >&5
13219echo "${ECHO_T}msb2lsb" >&6; }
13220 ;;
13221esac
13222
13223cat >>confdefs.h <<_ACEOF
13224#define HOST_FILLORDER $HOST_FILLORDER
13225_ACEOF
13226
13227
13228if test "$ac_cv_c_bigendian" = yes ; then
13229 HOST_BIGENDIAN=1
13230else
13231 HOST_BIGENDIAN=0
13232fi
13233
13234cat >>confdefs.h <<_ACEOF
13235#define HOST_BIGENDIAN $HOST_BIGENDIAN
13236_ACEOF
13237
13238
13239#_POSIX_C_SOURCE=2
13240#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.])
13241
13242HAVE_IEEEFP=1
13243
13244cat >>confdefs.h <<_ACEOF
13245#define HAVE_IEEEFP $HAVE_IEEEFP
13246_ACEOF
13247
13248
13249
13250# Check whether --enable-rpath was given.
13251if test "${enable_rpath+set}" = set; then
13252 enableval=$enable_rpath; HAVE_RPATH=$enableval
13253else
13254 HAVE_RPATH=no
13255fi
13256
13257
13258
13259if test "$HAVE_RPATH" = "yes"; then
13260 HAVE_RPATH_TRUE=
13261 HAVE_RPATH_FALSE='#'
13262else
13263 HAVE_RPATH_TRUE='#'
13264 HAVE_RPATH_FALSE=
13265fi
13266
13267
13268
13269# Check whether --enable-largefile was given.
13270if test "${enable_largefile+set}" = set; then
13271 enableval=$enable_largefile;
13272fi
13273
13274if test "$enable_largefile" != no; then
13275
13276 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
13277echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
13278if test "${ac_cv_sys_largefile_CC+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280else
13281 ac_cv_sys_largefile_CC=no
13282 if test "$GCC" != yes; then
13283 ac_save_CC=$CC
13284 while :; do
13285 # IRIX 6.2 and later do not support large files by default,
13286 # so use the C compiler's -n32 option if that helps.
13287 cat >conftest.$ac_ext <<_ACEOF
13288/* confdefs.h. */
13289_ACEOF
13290cat confdefs.h >>conftest.$ac_ext
13291cat >>conftest.$ac_ext <<_ACEOF
13292/* end confdefs.h. */
13293#include <sys/types.h>
13294 /* Check that off_t can represent 2**63 - 1 correctly.
13295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13296 since some C++ compilers masquerading as C compilers
13297 incorrectly reject 9223372036854775807. */
13298#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13300 && LARGE_OFF_T % 2147483647 == 1)
13301 ? 1 : -1];
13302int
13303main ()
13304{
13305
13306 ;
13307 return 0;
13308}
13309_ACEOF
13310 rm -f conftest.$ac_objext
13311if { (ac_try="$ac_compile"
13312case "(($ac_try" in
13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314 *) ac_try_echo=$ac_try;;
13315esac
13316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317 (eval "$ac_compile") 2>conftest.er1
13318 ac_status=$?
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } && {
13324 test -z "$ac_c_werror_flag" ||
13325 test ! -s conftest.err
13326 } && test -s conftest.$ac_objext; then
13327 break
13328else
13329 echo "$as_me: failed program was:" >&5
13330sed 's/^/| /' conftest.$ac_ext >&5
13331
13332
13333fi
13334
13335rm -f core conftest.err conftest.$ac_objext
13336 CC="$CC -n32"
13337 rm -f conftest.$ac_objext
13338if { (ac_try="$ac_compile"
13339case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13342esac
13343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_compile") 2>conftest.er1
13345 ac_status=$?
13346 grep -v '^ *+' conftest.er1 >conftest.err
13347 rm -f conftest.er1
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } && {
13351 test -z "$ac_c_werror_flag" ||
13352 test ! -s conftest.err
13353 } && test -s conftest.$ac_objext; then
13354 ac_cv_sys_largefile_CC=' -n32'; break
13355else
13356 echo "$as_me: failed program was:" >&5
13357sed 's/^/| /' conftest.$ac_ext >&5
13358
13359
13360fi
13361
13362rm -f core conftest.err conftest.$ac_objext
13363 break
13364 done
13365 CC=$ac_save_CC
13366 rm -f conftest.$ac_ext
13367 fi
13368fi
13369{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
13370echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
13371 if test "$ac_cv_sys_largefile_CC" != no; then
13372 CC=$CC$ac_cv_sys_largefile_CC
13373 fi
13374
13375 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13376echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
13377if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13379else
13380 while :; do
13381 cat >conftest.$ac_ext <<_ACEOF
13382/* confdefs.h. */
13383_ACEOF
13384cat confdefs.h >>conftest.$ac_ext
13385cat >>conftest.$ac_ext <<_ACEOF
13386/* end confdefs.h. */
13387#include <sys/types.h>
13388 /* Check that off_t can represent 2**63 - 1 correctly.
13389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13390 since some C++ compilers masquerading as C compilers
13391 incorrectly reject 9223372036854775807. */
13392#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13394 && LARGE_OFF_T % 2147483647 == 1)
13395 ? 1 : -1];
13396int
13397main ()
13398{
13399
13400 ;
13401 return 0;
13402}
13403_ACEOF
13404rm -f conftest.$ac_objext
13405if { (ac_try="$ac_compile"
13406case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13409esac
13410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 (eval "$ac_compile") 2>conftest.er1
13412 ac_status=$?
13413 grep -v '^ *+' conftest.er1 >conftest.err
13414 rm -f conftest.er1
13415 cat conftest.err >&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } && {
13418 test -z "$ac_c_werror_flag" ||
13419 test ! -s conftest.err
13420 } && test -s conftest.$ac_objext; then
13421 ac_cv_sys_file_offset_bits=no; break
13422else
13423 echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
13425
13426
13427fi
13428
13429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13430 cat >conftest.$ac_ext <<_ACEOF
13431/* confdefs.h. */
13432_ACEOF
13433cat confdefs.h >>conftest.$ac_ext
13434cat >>conftest.$ac_ext <<_ACEOF
13435/* end confdefs.h. */
13436#define _FILE_OFFSET_BITS 64
13437#include <sys/types.h>
13438 /* Check that off_t can represent 2**63 - 1 correctly.
13439 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13440 since some C++ compilers masquerading as C compilers
13441 incorrectly reject 9223372036854775807. */
13442#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13443 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13444 && LARGE_OFF_T % 2147483647 == 1)
13445 ? 1 : -1];
13446int
13447main ()
13448{
13449
13450 ;
13451 return 0;
13452}
13453_ACEOF
13454rm -f conftest.$ac_objext
13455if { (ac_try="$ac_compile"
13456case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13459esac
13460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_compile") 2>conftest.er1
13462 ac_status=$?
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } && {
13468 test -z "$ac_c_werror_flag" ||
13469 test ! -s conftest.err
13470 } && test -s conftest.$ac_objext; then
13471 ac_cv_sys_file_offset_bits=64; break
13472else
13473 echo "$as_me: failed program was:" >&5
13474sed 's/^/| /' conftest.$ac_ext >&5
13475
13476
13477fi
13478
13479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480 ac_cv_sys_file_offset_bits=unknown
13481 break
13482done
13483fi
13484{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
13485echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
13486case $ac_cv_sys_file_offset_bits in #(
13487 no | unknown) ;;
13488 *)
13489cat >>confdefs.h <<_ACEOF
13490#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13491_ACEOF
13492;;
13493esac
13494rm -f conftest*
13495 if test $ac_cv_sys_file_offset_bits = unknown; then
13496 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
13497echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
13498if test "${ac_cv_sys_large_files+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13500else
13501 while :; do
13502 cat >conftest.$ac_ext <<_ACEOF
13503/* confdefs.h. */
13504_ACEOF
13505cat confdefs.h >>conftest.$ac_ext
13506cat >>conftest.$ac_ext <<_ACEOF
13507/* end confdefs.h. */
13508#include <sys/types.h>
13509 /* Check that off_t can represent 2**63 - 1 correctly.
13510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13511 since some C++ compilers masquerading as C compilers
13512 incorrectly reject 9223372036854775807. */
13513#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13515 && LARGE_OFF_T % 2147483647 == 1)
13516 ? 1 : -1];
13517int
13518main ()
13519{
13520
13521 ;
13522 return 0;
13523}
13524_ACEOF
13525rm -f conftest.$ac_objext
13526if { (ac_try="$ac_compile"
13527case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13530esac
13531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_compile") 2>conftest.er1
13533 ac_status=$?
13534 grep -v '^ *+' conftest.er1 >conftest.err
13535 rm -f conftest.er1
13536 cat conftest.err >&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } && {
13539 test -z "$ac_c_werror_flag" ||
13540 test ! -s conftest.err
13541 } && test -s conftest.$ac_objext; then
13542 ac_cv_sys_large_files=no; break
13543else
13544 echo "$as_me: failed program was:" >&5
13545sed 's/^/| /' conftest.$ac_ext >&5
13546
13547
13548fi
13549
13550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551 cat >conftest.$ac_ext <<_ACEOF
13552/* confdefs.h. */
13553_ACEOF
13554cat confdefs.h >>conftest.$ac_ext
13555cat >>conftest.$ac_ext <<_ACEOF
13556/* end confdefs.h. */
13557#define _LARGE_FILES 1
13558#include <sys/types.h>
13559 /* Check that off_t can represent 2**63 - 1 correctly.
13560 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13561 since some C++ compilers masquerading as C compilers
13562 incorrectly reject 9223372036854775807. */
13563#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13564 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13565 && LARGE_OFF_T % 2147483647 == 1)
13566 ? 1 : -1];
13567int
13568main ()
13569{
13570
13571 ;
13572 return 0;
13573}
13574_ACEOF
13575rm -f conftest.$ac_objext
13576if { (ac_try="$ac_compile"
13577case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13580esac
13581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_compile") 2>conftest.er1
13583 ac_status=$?
13584 grep -v '^ *+' conftest.er1 >conftest.err
13585 rm -f conftest.er1
13586 cat conftest.err >&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } && {
13589 test -z "$ac_c_werror_flag" ||
13590 test ! -s conftest.err
13591 } && test -s conftest.$ac_objext; then
13592 ac_cv_sys_large_files=1; break
13593else
13594 echo "$as_me: failed program was:" >&5
13595sed 's/^/| /' conftest.$ac_ext >&5
13596
13597
13598fi
13599
13600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601 ac_cv_sys_large_files=unknown
13602 break
13603done
13604fi
13605{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
13606echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
13607case $ac_cv_sys_large_files in #(
13608 no | unknown) ;;
13609 *)
13610cat >>confdefs.h <<_ACEOF
13611#define _LARGE_FILES $ac_cv_sys_large_files
13612_ACEOF
13613;;
13614esac
13615rm -f conftest*
13616 fi
13617fi
13618
13619
13620
13621LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
13622
13623
13624# Check whether --with-docdir was given.
13625if test "${with_docdir+set}" = set; then
13626 withval=$with_docdir;
13627fi
13628
13629if test "x$with_docdir" != "x" ; then
13630 LIBTIFF_DOCDIR=$with_docdir
13631fi
13632
13633
13634
13635
13636# Check whether --enable-ccitt was given.
13637if test "${enable_ccitt+set}" = set; then
13638 enableval=$enable_ccitt; HAVE_CCITT=$enableval
13639else
13640 HAVE_CCITT=yes
13641fi
13642
13643
13644if test "$HAVE_CCITT" = "yes" ; then
13645
13646cat >>confdefs.h <<\_ACEOF
13647#define CCITT_SUPPORT 1
13648_ACEOF
13649
13650fi
13651
13652# Check whether --enable-packbits was given.
13653if test "${enable_packbits+set}" = set; then
13654 enableval=$enable_packbits; HAVE_PACKBITS=$enableval
13655else
13656 HAVE_PACKBITS=yes
13657fi
13658
13659
13660if test "$HAVE_PACKBITS" = "yes" ; then
13661
13662cat >>confdefs.h <<\_ACEOF
13663#define PACKBITS_SUPPORT 1
13664_ACEOF
13665
13666fi
13667
13668# Check whether --enable-lzw was given.
13669if test "${enable_lzw+set}" = set; then
13670 enableval=$enable_lzw; HAVE_LZW=$enableval
13671else
13672 HAVE_LZW=yes
13673fi
13674
13675
13676if test "$HAVE_LZW" = "yes" ; then
13677
13678cat >>confdefs.h <<\_ACEOF
13679#define LZW_SUPPORT 1
13680_ACEOF
13681
13682fi
13683
13684# Check whether --enable-thunder was given.
13685if test "${enable_thunder+set}" = set; then
13686 enableval=$enable_thunder; HAVE_THUNDER=$enableval
13687else
13688 HAVE_THUNDER=yes
13689fi
13690
13691
13692if test "$HAVE_THUNDER" = "yes" ; then
13693
13694cat >>confdefs.h <<\_ACEOF
13695#define THUNDER_SUPPORT 1
13696_ACEOF
13697
13698fi
13699
13700HAVE_NEXT=yes
13701
13702# Check whether --enable-next was given.
13703if test "${enable_next+set}" = set; then
13704 enableval=$enable_next; HAVE_NEXT=$enableval
13705else
13706 HAVE_NEXT=yes
13707fi
13708
13709
13710if test "$HAVE_NEXT" = "yes" ; then
13711
13712cat >>confdefs.h <<\_ACEOF
13713#define NEXT_SUPPORT 1
13714_ACEOF
13715
13716fi
13717
13718# Check whether --enable-logluv was given.
13719if test "${enable_logluv+set}" = set; then
13720 enableval=$enable_logluv; HAVE_LOGLUV=$enableval
13721else
13722 HAVE_LOGLUV=yes
13723fi
13724
13725
13726if test "$HAVE_LOGLUV" = "yes" ; then
13727
13728cat >>confdefs.h <<\_ACEOF
13729#define LOGLUV_SUPPORT 1
13730_ACEOF
13731
13732fi
13733
13734
13735# Check whether --enable-mdi was given.
13736if test "${enable_mdi+set}" = set; then
13737 enableval=$enable_mdi; HAVE_MDI=$enableval
13738else
13739 HAVE_MDI=yes
13740fi
13741
13742
13743if test "$HAVE_MDI" = "yes" ; then
13744
13745cat >>confdefs.h <<\_ACEOF
13746#define MDI_SUPPORT 1
13747_ACEOF
13748
13749fi
13750
13751
13752HAVE_ZLIB=no
13753
13754# Check whether --enable-zlib was given.
13755if test "${enable_zlib+set}" = set; then
13756 enableval=$enable_zlib;
13757fi
13758
13759
13760# Check whether --with-zlib-include-dir was given.
13761if test "${with_zlib_include_dir+set}" = set; then
13762 withval=$with_zlib_include_dir;
13763fi
13764
13765
13766# Check whether --with-zlib-lib-dir was given.
13767if test "${with_zlib_lib_dir+set}" = set; then
13768 withval=$with_zlib_lib_dir;
13769fi
13770
13771
13772if test "x$enable_zlib" != "xno" ; then
13773
13774 if test "x$with_zlib_lib_dir" != "x" ; then
13775 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
13776 fi
13777
13778 { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
13779echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
13780if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782else
13783 ac_check_lib_save_LIBS=$LIBS
13784LIBS="-lz $LIBS"
13785cat >conftest.$ac_ext <<_ACEOF
13786/* confdefs.h. */
13787_ACEOF
13788cat confdefs.h >>conftest.$ac_ext
13789cat >>conftest.$ac_ext <<_ACEOF
13790/* end confdefs.h. */
13791
13792/* Override any GCC internal prototype to avoid an error.
13793 Use char because int might match the return type of a GCC
13794 builtin and then its argument prototype would still apply. */
13795#ifdef __cplusplus
13796extern "C"
13797#endif
13798char inflateEnd ();
13799int
13800main ()
13801{
13802return inflateEnd ();
13803 ;
13804 return 0;
13805}
13806_ACEOF
13807rm -f conftest.$ac_objext conftest$ac_exeext
13808if { (ac_try="$ac_link"
13809case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13812esac
13813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_link") 2>conftest.er1
13815 ac_status=$?
13816 grep -v '^ *+' conftest.er1 >conftest.err
13817 rm -f conftest.er1
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } && {
13821 test -z "$ac_c_werror_flag" ||
13822 test ! -s conftest.err
13823 } && test -s conftest$ac_exeext &&
13824 $as_test_x conftest$ac_exeext; then
13825 ac_cv_lib_z_inflateEnd=yes
13826else
13827 echo "$as_me: failed program was:" >&5
13828sed 's/^/| /' conftest.$ac_ext >&5
13829
13830 ac_cv_lib_z_inflateEnd=no
13831fi
13832
13833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13834 conftest$ac_exeext conftest.$ac_ext
13835LIBS=$ac_check_lib_save_LIBS
13836fi
13837{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
13838echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
13839if test $ac_cv_lib_z_inflateEnd = yes; then
13840 zlib_lib=yes
13841else
13842 zlib_lib=no
13843fi
13844
13845 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then
13846 { { echo "$as_me:$LINENO: error: Zlib library not found at $with_zlib_lib_dir" >&5
13847echo "$as_me: error: Zlib library not found at $with_zlib_lib_dir" >&2;}
13848 { (exit 1); exit 1; }; }
13849 fi
13850
13851 if test "x$with_zlib_include_dir" != "x" ; then
13852 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
13853 fi
13854 if test "${ac_cv_header_zlib_h+set}" = set; then
13855 { echo "$as_me:$LINENO: checking for zlib.h" >&5
13856echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
13857if test "${ac_cv_header_zlib_h+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859fi
13860{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13861echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
13862else
13863 # Is the header compilable?
13864{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
13865echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
13866cat >conftest.$ac_ext <<_ACEOF
13867/* confdefs.h. */
13868_ACEOF
13869cat confdefs.h >>conftest.$ac_ext
13870cat >>conftest.$ac_ext <<_ACEOF
13871/* end confdefs.h. */
13872$ac_includes_default
13873#include <zlib.h>
13874_ACEOF
13875rm -f conftest.$ac_objext
13876if { (ac_try="$ac_compile"
13877case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13880esac
13881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_compile") 2>conftest.er1
13883 ac_status=$?
13884 grep -v '^ *+' conftest.er1 >conftest.err
13885 rm -f conftest.er1
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } && {
13889 test -z "$ac_c_werror_flag" ||
13890 test ! -s conftest.err
13891 } && test -s conftest.$ac_objext; then
13892 ac_header_compiler=yes
13893else
13894 echo "$as_me: failed program was:" >&5
13895sed 's/^/| /' conftest.$ac_ext >&5
13896
13897 ac_header_compiler=no
13898fi
13899
13900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13901{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13902echo "${ECHO_T}$ac_header_compiler" >&6; }
13903
13904# Is the header present?
13905{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
13906echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
13907cat >conftest.$ac_ext <<_ACEOF
13908/* confdefs.h. */
13909_ACEOF
13910cat confdefs.h >>conftest.$ac_ext
13911cat >>conftest.$ac_ext <<_ACEOF
13912/* end confdefs.h. */
13913#include <zlib.h>
13914_ACEOF
13915if { (ac_try="$ac_cpp conftest.$ac_ext"
13916case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13919esac
13920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13922 ac_status=$?
13923 grep -v '^ *+' conftest.er1 >conftest.err
13924 rm -f conftest.er1
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } >/dev/null && {
13928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13929 test ! -s conftest.err
13930 }; then
13931 ac_header_preproc=yes
13932else
13933 echo "$as_me: failed program was:" >&5
13934sed 's/^/| /' conftest.$ac_ext >&5
13935
13936 ac_header_preproc=no
13937fi
13938
13939rm -f conftest.err conftest.$ac_ext
13940{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13941echo "${ECHO_T}$ac_header_preproc" >&6; }
13942
13943# So? What about this header?
13944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13945 yes:no: )
13946 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13947echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13948 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
13949echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
13950 ac_header_preproc=yes
13951 ;;
13952 no:yes:* )
13953 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
13954echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
13955 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
13956echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
13957 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
13958echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
13959 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
13960echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13961 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
13962echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
13963 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
13964echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
13965 ( cat <<\_ASBOX
13966## -------------------------------------- ##
13967## Report this to tiff@lists.maptools.org ##
13968## -------------------------------------- ##
13969_ASBOX
13970 ) | sed "s/^/$as_me: WARNING: /" >&2
13971 ;;
13972esac
13973{ echo "$as_me:$LINENO: checking for zlib.h" >&5
13974echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
13975if test "${ac_cv_header_zlib_h+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977else
13978 ac_cv_header_zlib_h=$ac_header_preproc
13979fi
13980{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13981echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
13982
13983fi
13984if test $ac_cv_header_zlib_h = yes; then
13985 zlib_h=yes
13986else
13987 zlib_h=no
13988fi
13989
13990
13991 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then
13992 { { echo "$as_me:$LINENO: error: Zlib headers not found at $with_zlib_include_dir" >&5
13993echo "$as_me: error: Zlib headers not found at $with_zlib_include_dir" >&2;}
13994 { (exit 1); exit 1; }; }
13995 fi
13996
13997 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
13998 HAVE_ZLIB=yes
13999 fi
14000
14001fi
14002
14003if test "$HAVE_ZLIB" = "yes" ; then
14004
14005cat >>confdefs.h <<\_ACEOF
14006#define ZIP_SUPPORT 1
14007_ACEOF
14008
14009 LIBS="-lz $LIBS"
14010
14011 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then
14012 LIBDIR="-R $with_zlib_lib_dir $LIBDIR"
14013 fi
14014
14015fi
14016
14017
14018# Check whether --enable-pixarlog was given.
14019if test "${enable_pixarlog+set}" = set; then
14020 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval
14021else
14022 HAVE_PIXARLOG=yes
14023fi
14024
14025
14026if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
14027
14028cat >>confdefs.h <<\_ACEOF
14029#define PIXARLOG_SUPPORT 1
14030_ACEOF
14031
14032else
14033 HAVE_PIXARLOG=no
14034fi
14035
14036
14037HAVE_JPEG=no
14038
14039# Check whether --enable-jpeg was given.
14040if test "${enable_jpeg+set}" = set; then
14041 enableval=$enable_jpeg;
14042fi
14043
14044
14045# Check whether --with-jpeg-include-dir was given.
14046if test "${with_jpeg_include_dir+set}" = set; then
14047 withval=$with_jpeg_include_dir;
14048fi
14049
14050
14051# Check whether --with-jpeg-lib-dir was given.
14052if test "${with_jpeg_lib_dir+set}" = set; then
14053 withval=$with_jpeg_lib_dir;
14054fi
14055
14056
14057if test "x$enable_jpeg" != "xno" ; then
14058
14059 if test "x$with_jpeg_lib_dir" != "x" ; then
14060 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
14061
14062 fi
14063
14064 { echo "$as_me:$LINENO: checking for jpeg_read_scanlines in -ljpeg" >&5
14065echo $ECHO_N "checking for jpeg_read_scanlines in -ljpeg... $ECHO_C" >&6; }
14066if test "${ac_cv_lib_jpeg_jpeg_read_scanlines+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14068else
14069 ac_check_lib_save_LIBS=$LIBS
14070LIBS="-ljpeg $LIBS"
14071cat >conftest.$ac_ext <<_ACEOF
14072/* confdefs.h. */
14073_ACEOF
14074cat confdefs.h >>conftest.$ac_ext
14075cat >>conftest.$ac_ext <<_ACEOF
14076/* end confdefs.h. */
14077
14078/* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14081#ifdef __cplusplus
14082extern "C"
14083#endif
14084char jpeg_read_scanlines ();
14085int
14086main ()
14087{
14088return jpeg_read_scanlines ();
14089 ;
14090 return 0;
14091}
14092_ACEOF
14093rm -f conftest.$ac_objext conftest$ac_exeext
14094if { (ac_try="$ac_link"
14095case "(($ac_try" in
14096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14098esac
14099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100 (eval "$ac_link") 2>conftest.er1
14101 ac_status=$?
14102 grep -v '^ *+' conftest.er1 >conftest.err
14103 rm -f conftest.er1
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } && {
14107 test -z "$ac_c_werror_flag" ||
14108 test ! -s conftest.err
14109 } && test -s conftest$ac_exeext &&
14110 $as_test_x conftest$ac_exeext; then
14111 ac_cv_lib_jpeg_jpeg_read_scanlines=yes
14112else
14113 echo "$as_me: failed program was:" >&5
14114sed 's/^/| /' conftest.$ac_ext >&5
14115
14116 ac_cv_lib_jpeg_jpeg_read_scanlines=no
14117fi
14118
14119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14120 conftest$ac_exeext conftest.$ac_ext
14121LIBS=$ac_check_lib_save_LIBS
14122fi
14123{ echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
14124echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; }
14125if test $ac_cv_lib_jpeg_jpeg_read_scanlines = yes; then
14126 jpeg_lib=yes
14127else
14128 jpeg_lib=no
14129fi
14130
14131 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then
14132 { { echo "$as_me:$LINENO: error: IJG JPEG library not found at $with_jpeg_lib_dir" >&5
14133echo "$as_me: error: IJG JPEG library not found at $with_jpeg_lib_dir" >&2;}
14134 { (exit 1); exit 1; }; }
14135 fi
14136
14137 if test "x$with_jpeg_include_dir" != "x" ; then
14138 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
14139 fi
14140 if test "${ac_cv_header_jpeglib_h+set}" = set; then
14141 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
14142echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
14143if test "${ac_cv_header_jpeglib_h+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14145fi
14146{ echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
14147echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
14148else
14149 # Is the header compilable?
14150{ echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
14151echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6; }
14152cat >conftest.$ac_ext <<_ACEOF
14153/* confdefs.h. */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h. */
14158$ac_includes_default
14159#include <jpeglib.h>
14160_ACEOF
14161rm -f conftest.$ac_objext
14162if { (ac_try="$ac_compile"
14163case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14166esac
14167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_compile") 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } && {
14175 test -z "$ac_c_werror_flag" ||
14176 test ! -s conftest.err
14177 } && test -s conftest.$ac_objext; then
14178 ac_header_compiler=yes
14179else
14180 echo "$as_me: failed program was:" >&5
14181sed 's/^/| /' conftest.$ac_ext >&5
14182
14183 ac_header_compiler=no
14184fi
14185
14186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14187{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14188echo "${ECHO_T}$ac_header_compiler" >&6; }
14189
14190# Is the header present?
14191{ echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
14192echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6; }
14193cat >conftest.$ac_ext <<_ACEOF
14194/* confdefs.h. */
14195_ACEOF
14196cat confdefs.h >>conftest.$ac_ext
14197cat >>conftest.$ac_ext <<_ACEOF
14198/* end confdefs.h. */
14199#include <jpeglib.h>
14200_ACEOF
14201if { (ac_try="$ac_cpp conftest.$ac_ext"
14202case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14205esac
14206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14208 ac_status=$?
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } >/dev/null && {
14214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14215 test ! -s conftest.err
14216 }; then
14217 ac_header_preproc=yes
14218else
14219 echo "$as_me: failed program was:" >&5
14220sed 's/^/| /' conftest.$ac_ext >&5
14221
14222 ac_header_preproc=no
14223fi
14224
14225rm -f conftest.err conftest.$ac_ext
14226{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14227echo "${ECHO_T}$ac_header_preproc" >&6; }
14228
14229# So? What about this header?
14230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14231 yes:no: )
14232 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14233echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14234 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
14235echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
14236 ac_header_preproc=yes
14237 ;;
14238 no:yes:* )
14239 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
14240echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
14241 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
14242echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
14244echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
14246echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
14248echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
14250echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
14251 ( cat <<\_ASBOX
14252## -------------------------------------- ##
14253## Report this to tiff@lists.maptools.org ##
14254## -------------------------------------- ##
14255_ASBOX
14256 ) | sed "s/^/$as_me: WARNING: /" >&2
14257 ;;
14258esac
14259{ echo "$as_me:$LINENO: checking for jpeglib.h" >&5
14260echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
14261if test "${ac_cv_header_jpeglib_h+set}" = set; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14263else
14264 ac_cv_header_jpeglib_h=$ac_header_preproc
14265fi
14266{ echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
14267echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
14268
14269fi
14270if test $ac_cv_header_jpeglib_h = yes; then
14271 jpeg_h=yes
14272else
14273 jpeg_h=no
14274fi
14275
14276
14277 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then
14278 { { echo "$as_me:$LINENO: error: IJG JPEG library headers not found at $with_jpeg_include_dir" >&5
14279echo "$as_me: error: IJG JPEG library headers not found at $with_jpeg_include_dir" >&2;}
14280 { (exit 1); exit 1; }; }
14281 fi
14282
14283 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
14284 HAVE_JPEG=yes
14285 fi
14286
14287fi
14288
14289if test "$HAVE_JPEG" = "yes" ; then
14290
14291cat >>confdefs.h <<\_ACEOF
14292#define JPEG_SUPPORT 1
14293_ACEOF
14294
14295 LIBS="-ljpeg $LIBS"
14296
14297 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then
14298 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR"
14299 fi
14300
14301fi
14302
14303
14304# Check whether --enable-old-jpeg was given.
14305if test "${enable_old_jpeg+set}" = set; then
14306 enableval=$enable_old_jpeg; HAVE_OJPEG=$enableval
14307else
14308 HAVE_OJPEG=no
14309fi
14310
14311
14312if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
14313
14314cat >>confdefs.h <<\_ACEOF
14315#define OJPEG_SUPPORT 1
14316_ACEOF
14317
14318else
14319 HAVE_OJPEG=no
14320fi
14321
14322
14323# Check whether --enable-cxx was given.
14324if test "${enable_cxx+set}" = set; then
14325 enableval=$enable_cxx; HAVE_CXX=$enableval
14326else
14327 HAVE_CXX=yes
14328fi
14329
14330
14331if test "$HAVE_CXX" = "yes" ; then
14332
14333cat >>confdefs.h <<\_ACEOF
14334#define CXX_SUPPORT 1
14335_ACEOF
14336
14337else
14338 HAVE_CXX=no
14339fi
14340
14341
14342
14343if test "$HAVE_CXX" = "yes"; then
14344 HAVE_CXX_TRUE=
14345 HAVE_CXX_FALSE='#'
14346else
14347 HAVE_CXX_TRUE='#'
14348 HAVE_CXX_FALSE=
14349fi
14350
14351
14352
14353HAVE_OPENGL=no
14354
14355{ echo "$as_me:$LINENO: checking for X" >&5
14356echo $ECHO_N "checking for X... $ECHO_C" >&6; }
14357
14358
14359# Check whether --with-x was given.
14360if test "${with_x+set}" = set; then
14361 withval=$with_x;
14362fi
14363
14364# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14365if test "x$with_x" = xno; then
14366 # The user explicitly disabled X.
14367 have_x=disabled
14368else
14369 case $x_includes,$x_libraries in #(
14370 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
14371echo "$as_me: error: Cannot use X directory names containing '" >&2;}
14372 { (exit 1); exit 1; }; };; #(
14373 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14375else
14376 # One or both of the vars are not set, and there is no cached value.
14377ac_x_includes=no ac_x_libraries=no
14378rm -f -r conftest.dir
14379if mkdir conftest.dir; then
14380 cd conftest.dir
14381 cat >Imakefile <<'_ACEOF'
14382incroot:
14383 @echo incroot='${INCROOT}'
14384usrlibdir:
14385 @echo usrlibdir='${USRLIBDIR}'
14386libdir:
14387 @echo libdir='${LIBDIR}'
14388_ACEOF
14389 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14390 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14391 for ac_var in incroot usrlibdir libdir; do
14392 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14393 done
14394 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14395 for ac_extension in a so sl; do
14396 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14397 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14398 ac_im_usrlibdir=$ac_im_libdir; break
14399 fi
14400 done
14401 # Screen out bogus values from the imake configuration. They are
14402 # bogus both because they are the default anyway, and because
14403 # using them would break gcc on systems where it needs fixed includes.
14404 case $ac_im_incroot in
14405 /usr/include) ac_x_includes= ;;
14406 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14407 esac
14408 case $ac_im_usrlibdir in
14409 /usr/lib | /lib) ;;
14410 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14411 esac
14412 fi
14413 cd ..
14414 rm -f -r conftest.dir
14415fi
14416
14417# Standard set of common directories for X headers.
14418# Check X11 before X11Rn because it is often a symlink to the current release.
14419ac_x_header_dirs='
14420/usr/X11/include
14421/usr/X11R6/include
14422/usr/X11R5/include
14423/usr/X11R4/include
14424
14425/usr/include/X11
14426/usr/include/X11R6
14427/usr/include/X11R5
14428/usr/include/X11R4
14429
14430/usr/local/X11/include
14431/usr/local/X11R6/include
14432/usr/local/X11R5/include
14433/usr/local/X11R4/include
14434
14435/usr/local/include/X11
14436/usr/local/include/X11R6
14437/usr/local/include/X11R5
14438/usr/local/include/X11R4
14439
14440/usr/X386/include
14441/usr/x386/include
14442/usr/XFree86/include/X11
14443
14444/usr/include
14445/usr/local/include
14446/usr/unsupported/include
14447/usr/athena/include
14448/usr/local/x11r5/include
14449/usr/lpp/Xamples/include
14450
14451/usr/openwin/include
14452/usr/openwin/share/include'
14453
14454if test "$ac_x_includes" = no; then
14455 # Guess where to find include files, by looking for Xlib.h.
14456 # First, try using that file with no special directory specified.
14457 cat >conftest.$ac_ext <<_ACEOF
14458/* confdefs.h. */
14459_ACEOF
14460cat confdefs.h >>conftest.$ac_ext
14461cat >>conftest.$ac_ext <<_ACEOF
14462/* end confdefs.h. */
14463#include <X11/Xlib.h>
14464_ACEOF
14465if { (ac_try="$ac_cpp conftest.$ac_ext"
14466case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14469esac
14470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14472 ac_status=$?
14473 grep -v '^ *+' conftest.er1 >conftest.err
14474 rm -f conftest.er1
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } >/dev/null && {
14478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14479 test ! -s conftest.err
14480 }; then
14481 # We can compile using X headers with no special include directory.
14482ac_x_includes=
14483else
14484 echo "$as_me: failed program was:" >&5
14485sed 's/^/| /' conftest.$ac_ext >&5
14486
14487 for ac_dir in $ac_x_header_dirs; do
14488 if test -r "$ac_dir/X11/Xlib.h"; then
14489 ac_x_includes=$ac_dir
14490 break
14491 fi
14492done
14493fi
14494
14495rm -f conftest.err conftest.$ac_ext
14496fi # $ac_x_includes = no
14497
14498if test "$ac_x_libraries" = no; then
14499 # Check for the libraries.
14500 # See if we find them without any special options.
14501 # Don't add to $LIBS permanently.
14502 ac_save_LIBS=$LIBS
14503 LIBS="-lX11 $LIBS"
14504 cat >conftest.$ac_ext <<_ACEOF
14505/* confdefs.h. */
14506_ACEOF
14507cat confdefs.h >>conftest.$ac_ext
14508cat >>conftest.$ac_ext <<_ACEOF
14509/* end confdefs.h. */
14510#include <X11/Xlib.h>
14511int
14512main ()
14513{
14514XrmInitialize ()
14515 ;
14516 return 0;
14517}
14518_ACEOF
14519rm -f conftest.$ac_objext conftest$ac_exeext
14520if { (ac_try="$ac_link"
14521case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14524esac
14525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_link") 2>conftest.er1
14527 ac_status=$?
14528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } && {
14533 test -z "$ac_c_werror_flag" ||
14534 test ! -s conftest.err
14535 } && test -s conftest$ac_exeext &&
14536 $as_test_x conftest$ac_exeext; then
14537 LIBS=$ac_save_LIBS
14538# We can link X programs with no special library path.
14539ac_x_libraries=
14540else
14541 echo "$as_me: failed program was:" >&5
14542sed 's/^/| /' conftest.$ac_ext >&5
14543
14544 LIBS=$ac_save_LIBS
14545for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14546do
14547 # Don't even attempt the hair of trying to link an X program!
14548 for ac_extension in a so sl; do
14549 if test -r "$ac_dir/libX11.$ac_extension"; then
14550 ac_x_libraries=$ac_dir
14551 break 2
14552 fi
14553 done
14554done
14555fi
14556
14557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14558 conftest$ac_exeext conftest.$ac_ext
14559fi # $ac_x_libraries = no
14560
14561case $ac_x_includes,$ac_x_libraries in #(
14562 no,* | *,no | *\'*)
14563 # Didn't find X, or a directory has "'" in its name.
14564 ac_cv_have_x="have_x=no";; #(
14565 *)
14566 # Record where we found X for the cache.
14567 ac_cv_have_x="have_x=yes\
14568 ac_x_includes='$ac_x_includes'\
14569 ac_x_libraries='$ac_x_libraries'"
14570esac
14571fi
14572;; #(
14573 *) have_x=yes;;
14574 esac
14575 eval "$ac_cv_have_x"
14576fi # $with_x != no
14577
14578if test "$have_x" != yes; then
14579 { echo "$as_me:$LINENO: result: $have_x" >&5
14580echo "${ECHO_T}$have_x" >&6; }
14581 no_x=yes
14582else
14583 # If each of the values was on the command line, it overrides each guess.
14584 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14585 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14586 # Update the cache value to reflect the command line values.
14587 ac_cv_have_x="have_x=yes\
14588 ac_x_includes='$x_includes'\
14589 ac_x_libraries='$x_libraries'"
14590 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
14591echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
14592fi
14593
14594if test "$no_x" = yes; then
14595 # Not all programs may use this symbol, but it does not hurt to define it.
14596
14597cat >>confdefs.h <<\_ACEOF
14598#define X_DISPLAY_MISSING 1
14599_ACEOF
14600
14601 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14602else
14603 if test -n "$x_includes"; then
14604 X_CFLAGS="$X_CFLAGS -I$x_includes"
14605 fi
14606
14607 # It would also be nice to do this for all -L options, not just this one.
14608 if test -n "$x_libraries"; then
14609 X_LIBS="$X_LIBS -L$x_libraries"
14610 # For Solaris; some versions of Sun CC require a space after -R and
14611 # others require no space. Words are not sufficient . . . .
14612 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
14613echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
14614 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
14615 ac_xsave_c_werror_flag=$ac_c_werror_flag
14616 ac_c_werror_flag=yes
14617 cat >conftest.$ac_ext <<_ACEOF
14618/* confdefs.h. */
14619_ACEOF
14620cat confdefs.h >>conftest.$ac_ext
14621cat >>conftest.$ac_ext <<_ACEOF
14622/* end confdefs.h. */
14623
14624int
14625main ()
14626{
14627
14628 ;
14629 return 0;
14630}
14631_ACEOF
14632rm -f conftest.$ac_objext conftest$ac_exeext
14633if { (ac_try="$ac_link"
14634case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14637esac
14638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_link") 2>conftest.er1
14640 ac_status=$?
14641 grep -v '^ *+' conftest.er1 >conftest.err
14642 rm -f conftest.er1
14643 cat conftest.err >&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } && {
14646 test -z "$ac_c_werror_flag" ||
14647 test ! -s conftest.err
14648 } && test -s conftest$ac_exeext &&
14649 $as_test_x conftest$ac_exeext; then
14650 { echo "$as_me:$LINENO: result: no" >&5
14651echo "${ECHO_T}no" >&6; }
14652 X_LIBS="$X_LIBS -R$x_libraries"
14653else
14654 echo "$as_me: failed program was:" >&5
14655sed 's/^/| /' conftest.$ac_ext >&5
14656
14657 LIBS="$ac_xsave_LIBS -R $x_libraries"
14658 cat >conftest.$ac_ext <<_ACEOF
14659/* confdefs.h. */
14660_ACEOF
14661cat confdefs.h >>conftest.$ac_ext
14662cat >>conftest.$ac_ext <<_ACEOF
14663/* end confdefs.h. */
14664
14665int
14666main ()
14667{
14668
14669 ;
14670 return 0;
14671}
14672_ACEOF
14673rm -f conftest.$ac_objext conftest$ac_exeext
14674if { (ac_try="$ac_link"
14675case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14678esac
14679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_link") 2>conftest.er1
14681 ac_status=$?
14682 grep -v '^ *+' conftest.er1 >conftest.err
14683 rm -f conftest.er1
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } && {
14687 test -z "$ac_c_werror_flag" ||
14688 test ! -s conftest.err
14689 } && test -s conftest$ac_exeext &&
14690 $as_test_x conftest$ac_exeext; then
14691 { echo "$as_me:$LINENO: result: yes" >&5
14692echo "${ECHO_T}yes" >&6; }
14693 X_LIBS="$X_LIBS -R $x_libraries"
14694else
14695 echo "$as_me: failed program was:" >&5
14696sed 's/^/| /' conftest.$ac_ext >&5
14697
14698 { echo "$as_me:$LINENO: result: neither works" >&5
14699echo "${ECHO_T}neither works" >&6; }
14700fi
14701
14702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14703 conftest$ac_exeext conftest.$ac_ext
14704fi
14705
14706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14707 conftest$ac_exeext conftest.$ac_ext
14708 ac_c_werror_flag=$ac_xsave_c_werror_flag
14709 LIBS=$ac_xsave_LIBS
14710 fi
14711
14712 # Check for system-dependent libraries X programs must link with.
14713 # Do this before checking for the system-independent R6 libraries
14714 # (-lICE), since we may need -lsocket or whatever for X linking.
14715
14716 if test "$ISC" = yes; then
14717 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14718 else
14719 # Martyn Johnson says this is needed for Ultrix, if the X
14720 # libraries were built with DECnet support. And Karl Berry says
14721 # the Alpha needs dnet_stub (dnet does not exist).
14722 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
14723 cat >conftest.$ac_ext <<_ACEOF
14724/* confdefs.h. */
14725_ACEOF
14726cat confdefs.h >>conftest.$ac_ext
14727cat >>conftest.$ac_ext <<_ACEOF
14728/* end confdefs.h. */
14729
14730/* Override any GCC internal prototype to avoid an error.
14731 Use char because int might match the return type of a GCC
14732 builtin and then its argument prototype would still apply. */
14733#ifdef __cplusplus
14734extern "C"
14735#endif
14736char XOpenDisplay ();
14737int
14738main ()
14739{
14740return XOpenDisplay ();
14741 ;
14742 return 0;
14743}
14744_ACEOF
14745rm -f conftest.$ac_objext conftest$ac_exeext
14746if { (ac_try="$ac_link"
14747case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14750esac
14751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_link") 2>conftest.er1
14753 ac_status=$?
14754 grep -v '^ *+' conftest.er1 >conftest.err
14755 rm -f conftest.er1
14756 cat conftest.err >&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } && {
14759 test -z "$ac_c_werror_flag" ||
14760 test ! -s conftest.err
14761 } && test -s conftest$ac_exeext &&
14762 $as_test_x conftest$ac_exeext; then
14763 :
14764else
14765 echo "$as_me: failed program was:" >&5
14766sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
14769echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
14770if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772else
14773 ac_check_lib_save_LIBS=$LIBS
14774LIBS="-ldnet $LIBS"
14775cat >conftest.$ac_ext <<_ACEOF
14776/* confdefs.h. */
14777_ACEOF
14778cat confdefs.h >>conftest.$ac_ext
14779cat >>conftest.$ac_ext <<_ACEOF
14780/* end confdefs.h. */
14781
14782/* Override any GCC internal prototype to avoid an error.
14783 Use char because int might match the return type of a GCC
14784 builtin and then its argument prototype would still apply. */
14785#ifdef __cplusplus
14786extern "C"
14787#endif
14788char dnet_ntoa ();
14789int
14790main ()
14791{
14792return dnet_ntoa ();
14793 ;
14794 return 0;
14795}
14796_ACEOF
14797rm -f conftest.$ac_objext conftest$ac_exeext
14798if { (ac_try="$ac_link"
14799case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14802esac
14803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804 (eval "$ac_link") 2>conftest.er1
14805 ac_status=$?
14806 grep -v '^ *+' conftest.er1 >conftest.err
14807 rm -f conftest.er1
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } && {
14811 test -z "$ac_c_werror_flag" ||
14812 test ! -s conftest.err
14813 } && test -s conftest$ac_exeext &&
14814 $as_test_x conftest$ac_exeext; then
14815 ac_cv_lib_dnet_dnet_ntoa=yes
14816else
14817 echo "$as_me: failed program was:" >&5
14818sed 's/^/| /' conftest.$ac_ext >&5
14819
14820 ac_cv_lib_dnet_dnet_ntoa=no
14821fi
14822
14823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14824 conftest$ac_exeext conftest.$ac_ext
14825LIBS=$ac_check_lib_save_LIBS
14826fi
14827{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
14828echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
14829if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
14830 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14831fi
14832
14833 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14834 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
14835echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
14836if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14838else
14839 ac_check_lib_save_LIBS=$LIBS
14840LIBS="-ldnet_stub $LIBS"
14841cat >conftest.$ac_ext <<_ACEOF
14842/* confdefs.h. */
14843_ACEOF
14844cat confdefs.h >>conftest.$ac_ext
14845cat >>conftest.$ac_ext <<_ACEOF
14846/* end confdefs.h. */
14847
14848/* Override any GCC internal prototype to avoid an error.
14849 Use char because int might match the return type of a GCC
14850 builtin and then its argument prototype would still apply. */
14851#ifdef __cplusplus
14852extern "C"
14853#endif
14854char dnet_ntoa ();
14855int
14856main ()
14857{
14858return dnet_ntoa ();
14859 ;
14860 return 0;
14861}
14862_ACEOF
14863rm -f conftest.$ac_objext conftest$ac_exeext
14864if { (ac_try="$ac_link"
14865case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14868esac
14869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_link") 2>conftest.er1
14871 ac_status=$?
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } && {
14877 test -z "$ac_c_werror_flag" ||
14878 test ! -s conftest.err
14879 } && test -s conftest$ac_exeext &&
14880 $as_test_x conftest$ac_exeext; then
14881 ac_cv_lib_dnet_stub_dnet_ntoa=yes
14882else
14883 echo "$as_me: failed program was:" >&5
14884sed 's/^/| /' conftest.$ac_ext >&5
14885
14886 ac_cv_lib_dnet_stub_dnet_ntoa=no
14887fi
14888
14889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14890 conftest$ac_exeext conftest.$ac_ext
14891LIBS=$ac_check_lib_save_LIBS
14892fi
14893{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
14894echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
14895if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
14896 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14897fi
14898
14899 fi
14900fi
14901
14902rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14903 conftest$ac_exeext conftest.$ac_ext
14904 LIBS="$ac_xsave_LIBS"
14905
14906 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14907 # to get the SysV transport functions.
14908 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
14909 # needs -lnsl.
14910 # The nsl library prevents programs from opening the X display
14911 # on Irix 5.2, according to T.E. Dickey.
14912 # The functions gethostbyname, getservbyname, and inet_addr are
14913 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
14914 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
14915echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
14916if test "${ac_cv_func_gethostbyname+set}" = set; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14918else
14919 cat >conftest.$ac_ext <<_ACEOF
14920/* confdefs.h. */
14921_ACEOF
14922cat confdefs.h >>conftest.$ac_ext
14923cat >>conftest.$ac_ext <<_ACEOF
14924/* end confdefs.h. */
14925/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
14926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14927#define gethostbyname innocuous_gethostbyname
14928
14929/* System header to define __stub macros and hopefully few prototypes,
14930 which can conflict with char gethostbyname (); below.
14931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14932 <limits.h> exists even on freestanding compilers. */
14933
14934#ifdef __STDC__
14935# include <limits.h>
14936#else
14937# include <assert.h>
14938#endif
14939
14940#undef gethostbyname
14941
14942/* Override any GCC internal prototype to avoid an error.
14943 Use char because int might match the return type of a GCC
14944 builtin and then its argument prototype would still apply. */
14945#ifdef __cplusplus
14946extern "C"
14947#endif
14948char gethostbyname ();
14949/* The GNU C library defines this for functions which it implements
14950 to always fail with ENOSYS. Some functions are actually named
14951 something starting with __ and the normal name is an alias. */
14952#if defined __stub_gethostbyname || defined __stub___gethostbyname
14953choke me
14954#endif
14955
14956int
14957main ()
14958{
14959return gethostbyname ();
14960 ;
14961 return 0;
14962}
14963_ACEOF
14964rm -f conftest.$ac_objext conftest$ac_exeext
14965if { (ac_try="$ac_link"
14966case "(($ac_try" in
14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14969esac
14970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14971 (eval "$ac_link") 2>conftest.er1
14972 ac_status=$?
14973 grep -v '^ *+' conftest.er1 >conftest.err
14974 rm -f conftest.er1
14975 cat conftest.err >&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); } && {
14978 test -z "$ac_c_werror_flag" ||
14979 test ! -s conftest.err
14980 } && test -s conftest$ac_exeext &&
14981 $as_test_x conftest$ac_exeext; then
14982 ac_cv_func_gethostbyname=yes
14983else
14984 echo "$as_me: failed program was:" >&5
14985sed 's/^/| /' conftest.$ac_ext >&5
14986
14987 ac_cv_func_gethostbyname=no
14988fi
14989
14990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14991 conftest$ac_exeext conftest.$ac_ext
14992fi
14993{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
14994echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
14995
14996 if test $ac_cv_func_gethostbyname = no; then
14997 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
14998echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
14999if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15001else
15002 ac_check_lib_save_LIBS=$LIBS
15003LIBS="-lnsl $LIBS"
15004cat >conftest.$ac_ext <<_ACEOF
15005/* confdefs.h. */
15006_ACEOF
15007cat confdefs.h >>conftest.$ac_ext
15008cat >>conftest.$ac_ext <<_ACEOF
15009/* end confdefs.h. */
15010
15011/* Override any GCC internal prototype to avoid an error.
15012 Use char because int might match the return type of a GCC
15013 builtin and then its argument prototype would still apply. */
15014#ifdef __cplusplus
15015extern "C"
15016#endif
15017char gethostbyname ();
15018int
15019main ()
15020{
15021return gethostbyname ();
15022 ;
15023 return 0;
15024}
15025_ACEOF
15026rm -f conftest.$ac_objext conftest$ac_exeext
15027if { (ac_try="$ac_link"
15028case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031esac
15032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_link") 2>conftest.er1
15034 ac_status=$?
15035 grep -v '^ *+' conftest.er1 >conftest.err
15036 rm -f conftest.er1
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && {
15040 test -z "$ac_c_werror_flag" ||
15041 test ! -s conftest.err
15042 } && test -s conftest$ac_exeext &&
15043 $as_test_x conftest$ac_exeext; then
15044 ac_cv_lib_nsl_gethostbyname=yes
15045else
15046 echo "$as_me: failed program was:" >&5
15047sed 's/^/| /' conftest.$ac_ext >&5
15048
15049 ac_cv_lib_nsl_gethostbyname=no
15050fi
15051
15052rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15053 conftest$ac_exeext conftest.$ac_ext
15054LIBS=$ac_check_lib_save_LIBS
15055fi
15056{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
15057echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
15058if test $ac_cv_lib_nsl_gethostbyname = yes; then
15059 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15060fi
15061
15062 if test $ac_cv_lib_nsl_gethostbyname = no; then
15063 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
15064echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
15065if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
15066 echo $ECHO_N "(cached) $ECHO_C" >&6
15067else
15068 ac_check_lib_save_LIBS=$LIBS
15069LIBS="-lbsd $LIBS"
15070cat >conftest.$ac_ext <<_ACEOF
15071/* confdefs.h. */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
15075/* end confdefs.h. */
15076
15077/* Override any GCC internal prototype to avoid an error.
15078 Use char because int might match the return type of a GCC
15079 builtin and then its argument prototype would still apply. */
15080#ifdef __cplusplus
15081extern "C"
15082#endif
15083char gethostbyname ();
15084int
15085main ()
15086{
15087return gethostbyname ();
15088 ;
15089 return 0;
15090}
15091_ACEOF
15092rm -f conftest.$ac_objext conftest$ac_exeext
15093if { (ac_try="$ac_link"
15094case "(($ac_try" in
15095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096 *) ac_try_echo=$ac_try;;
15097esac
15098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099 (eval "$ac_link") 2>conftest.er1
15100 ac_status=$?
15101 grep -v '^ *+' conftest.er1 >conftest.err
15102 rm -f conftest.er1
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } && {
15106 test -z "$ac_c_werror_flag" ||
15107 test ! -s conftest.err
15108 } && test -s conftest$ac_exeext &&
15109 $as_test_x conftest$ac_exeext; then
15110 ac_cv_lib_bsd_gethostbyname=yes
15111else
15112 echo "$as_me: failed program was:" >&5
15113sed 's/^/| /' conftest.$ac_ext >&5
15114
15115 ac_cv_lib_bsd_gethostbyname=no
15116fi
15117
15118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15119 conftest$ac_exeext conftest.$ac_ext
15120LIBS=$ac_check_lib_save_LIBS
15121fi
15122{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
15123echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
15124if test $ac_cv_lib_bsd_gethostbyname = yes; then
15125 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
15126fi
15127
15128 fi
15129 fi
15130
15131 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15132 # socket/setsockopt and other routines are undefined under SCO ODT
15133 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15134 # on later versions), says Simon Leinen: it contains gethostby*
15135 # variants that don't use the name server (or something). -lsocket
15136 # must be given before -lnsl if both are needed. We assume that
15137 # if connect needs -lnsl, so does gethostbyname.
15138 { echo "$as_me:$LINENO: checking for connect" >&5
15139echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
15140if test "${ac_cv_func_connect+set}" = set; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15142else
15143 cat >conftest.$ac_ext <<_ACEOF
15144/* confdefs.h. */
15145_ACEOF
15146cat confdefs.h >>conftest.$ac_ext
15147cat >>conftest.$ac_ext <<_ACEOF
15148/* end confdefs.h. */
15149/* Define connect to an innocuous variant, in case <limits.h> declares connect.
15150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15151#define connect innocuous_connect
15152
15153/* System header to define __stub macros and hopefully few prototypes,
15154 which can conflict with char connect (); below.
15155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15156 <limits.h> exists even on freestanding compilers. */
15157
15158#ifdef __STDC__
15159# include <limits.h>
15160#else
15161# include <assert.h>
15162#endif
15163
15164#undef connect
15165
15166/* Override any GCC internal prototype to avoid an error.
15167 Use char because int might match the return type of a GCC
15168 builtin and then its argument prototype would still apply. */
15169#ifdef __cplusplus
15170extern "C"
15171#endif
15172char connect ();
15173/* The GNU C library defines this for functions which it implements
15174 to always fail with ENOSYS. Some functions are actually named
15175 something starting with __ and the normal name is an alias. */
15176#if defined __stub_connect || defined __stub___connect
15177choke me
15178#endif
15179
15180int
15181main ()
15182{
15183return connect ();
15184 ;
15185 return 0;
15186}
15187_ACEOF
15188rm -f conftest.$ac_objext conftest$ac_exeext
15189if { (ac_try="$ac_link"
15190case "(($ac_try" in
15191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15192 *) ac_try_echo=$ac_try;;
15193esac
15194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15195 (eval "$ac_link") 2>conftest.er1
15196 ac_status=$?
15197 grep -v '^ *+' conftest.er1 >conftest.err
15198 rm -f conftest.er1
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } && {
15202 test -z "$ac_c_werror_flag" ||
15203 test ! -s conftest.err
15204 } && test -s conftest$ac_exeext &&
15205 $as_test_x conftest$ac_exeext; then
15206 ac_cv_func_connect=yes
15207else
15208 echo "$as_me: failed program was:" >&5
15209sed 's/^/| /' conftest.$ac_ext >&5
15210
15211 ac_cv_func_connect=no
15212fi
15213
15214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15215 conftest$ac_exeext conftest.$ac_ext
15216fi
15217{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
15218echo "${ECHO_T}$ac_cv_func_connect" >&6; }
15219
15220 if test $ac_cv_func_connect = no; then
15221 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
15222echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
15223if test "${ac_cv_lib_socket_connect+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225else
15226 ac_check_lib_save_LIBS=$LIBS
15227LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15228cat >conftest.$ac_ext <<_ACEOF
15229/* confdefs.h. */
15230_ACEOF
15231cat confdefs.h >>conftest.$ac_ext
15232cat >>conftest.$ac_ext <<_ACEOF
15233/* end confdefs.h. */
15234
15235/* Override any GCC internal prototype to avoid an error.
15236 Use char because int might match the return type of a GCC
15237 builtin and then its argument prototype would still apply. */
15238#ifdef __cplusplus
15239extern "C"
15240#endif
15241char connect ();
15242int
15243main ()
15244{
15245return connect ();
15246 ;
15247 return 0;
15248}
15249_ACEOF
15250rm -f conftest.$ac_objext conftest$ac_exeext
15251if { (ac_try="$ac_link"
15252case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15255esac
15256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_link") 2>conftest.er1
15258 ac_status=$?
15259 grep -v '^ *+' conftest.er1 >conftest.err
15260 rm -f conftest.er1
15261 cat conftest.err >&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } && {
15264 test -z "$ac_c_werror_flag" ||
15265 test ! -s conftest.err
15266 } && test -s conftest$ac_exeext &&
15267 $as_test_x conftest$ac_exeext; then
15268 ac_cv_lib_socket_connect=yes
15269else
15270 echo "$as_me: failed program was:" >&5
15271sed 's/^/| /' conftest.$ac_ext >&5
15272
15273 ac_cv_lib_socket_connect=no
15274fi
15275
15276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15277 conftest$ac_exeext conftest.$ac_ext
15278LIBS=$ac_check_lib_save_LIBS
15279fi
15280{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
15281echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
15282if test $ac_cv_lib_socket_connect = yes; then
15283 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15284fi
15285
15286 fi
15287
15288 # Guillermo Gomez says -lposix is necessary on A/UX.
15289 { echo "$as_me:$LINENO: checking for remove" >&5
15290echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
15291if test "${ac_cv_func_remove+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15293else
15294 cat >conftest.$ac_ext <<_ACEOF
15295/* confdefs.h. */
15296_ACEOF
15297cat confdefs.h >>conftest.$ac_ext
15298cat >>conftest.$ac_ext <<_ACEOF
15299/* end confdefs.h. */
15300/* Define remove to an innocuous variant, in case <limits.h> declares remove.
15301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15302#define remove innocuous_remove
15303
15304/* System header to define __stub macros and hopefully few prototypes,
15305 which can conflict with char remove (); below.
15306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15307 <limits.h> exists even on freestanding compilers. */
15308
15309#ifdef __STDC__
15310# include <limits.h>
15311#else
15312# include <assert.h>
15313#endif
15314
15315#undef remove
15316
15317/* Override any GCC internal prototype to avoid an error.
15318 Use char because int might match the return type of a GCC
15319 builtin and then its argument prototype would still apply. */
15320#ifdef __cplusplus
15321extern "C"
15322#endif
15323char remove ();
15324/* The GNU C library defines this for functions which it implements
15325 to always fail with ENOSYS. Some functions are actually named
15326 something starting with __ and the normal name is an alias. */
15327#if defined __stub_remove || defined __stub___remove
15328choke me
15329#endif
15330
15331int
15332main ()
15333{
15334return remove ();
15335 ;
15336 return 0;
15337}
15338_ACEOF
15339rm -f conftest.$ac_objext conftest$ac_exeext
15340if { (ac_try="$ac_link"
15341case "(($ac_try" in
15342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343 *) ac_try_echo=$ac_try;;
15344esac
15345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15346 (eval "$ac_link") 2>conftest.er1
15347 ac_status=$?
15348 grep -v '^ *+' conftest.er1 >conftest.err
15349 rm -f conftest.er1
15350 cat conftest.err >&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } && {
15353 test -z "$ac_c_werror_flag" ||
15354 test ! -s conftest.err
15355 } && test -s conftest$ac_exeext &&
15356 $as_test_x conftest$ac_exeext; then
15357 ac_cv_func_remove=yes
15358else
15359 echo "$as_me: failed program was:" >&5
15360sed 's/^/| /' conftest.$ac_ext >&5
15361
15362 ac_cv_func_remove=no
15363fi
15364
15365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15366 conftest$ac_exeext conftest.$ac_ext
15367fi
15368{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
15369echo "${ECHO_T}$ac_cv_func_remove" >&6; }
15370
15371 if test $ac_cv_func_remove = no; then
15372 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
15373echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
15374if test "${ac_cv_lib_posix_remove+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15376else
15377 ac_check_lib_save_LIBS=$LIBS
15378LIBS="-lposix $LIBS"
15379cat >conftest.$ac_ext <<_ACEOF
15380/* confdefs.h. */
15381_ACEOF
15382cat confdefs.h >>conftest.$ac_ext
15383cat >>conftest.$ac_ext <<_ACEOF
15384/* end confdefs.h. */
15385
15386/* Override any GCC internal prototype to avoid an error.
15387 Use char because int might match the return type of a GCC
15388 builtin and then its argument prototype would still apply. */
15389#ifdef __cplusplus
15390extern "C"
15391#endif
15392char remove ();
15393int
15394main ()
15395{
15396return remove ();
15397 ;
15398 return 0;
15399}
15400_ACEOF
15401rm -f conftest.$ac_objext conftest$ac_exeext
15402if { (ac_try="$ac_link"
15403case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15406esac
15407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_link") 2>conftest.er1
15409 ac_status=$?
15410 grep -v '^ *+' conftest.er1 >conftest.err
15411 rm -f conftest.er1
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } && {
15415 test -z "$ac_c_werror_flag" ||
15416 test ! -s conftest.err
15417 } && test -s conftest$ac_exeext &&
15418 $as_test_x conftest$ac_exeext; then
15419 ac_cv_lib_posix_remove=yes
15420else
15421 echo "$as_me: failed program was:" >&5
15422sed 's/^/| /' conftest.$ac_ext >&5
15423
15424 ac_cv_lib_posix_remove=no
15425fi
15426
15427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15428 conftest$ac_exeext conftest.$ac_ext
15429LIBS=$ac_check_lib_save_LIBS
15430fi
15431{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
15432echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
15433if test $ac_cv_lib_posix_remove = yes; then
15434 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15435fi
15436
15437 fi
15438
15439 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15440 { echo "$as_me:$LINENO: checking for shmat" >&5
15441echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
15442if test "${ac_cv_func_shmat+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15444else
15445 cat >conftest.$ac_ext <<_ACEOF
15446/* confdefs.h. */
15447_ACEOF
15448cat confdefs.h >>conftest.$ac_ext
15449cat >>conftest.$ac_ext <<_ACEOF
15450/* end confdefs.h. */
15451/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
15452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15453#define shmat innocuous_shmat
15454
15455/* System header to define __stub macros and hopefully few prototypes,
15456 which can conflict with char shmat (); below.
15457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15458 <limits.h> exists even on freestanding compilers. */
15459
15460#ifdef __STDC__
15461# include <limits.h>
15462#else
15463# include <assert.h>
15464#endif
15465
15466#undef shmat
15467
15468/* Override any GCC internal prototype to avoid an error.
15469 Use char because int might match the return type of a GCC
15470 builtin and then its argument prototype would still apply. */
15471#ifdef __cplusplus
15472extern "C"
15473#endif
15474char shmat ();
15475/* The GNU C library defines this for functions which it implements
15476 to always fail with ENOSYS. Some functions are actually named
15477 something starting with __ and the normal name is an alias. */
15478#if defined __stub_shmat || defined __stub___shmat
15479choke me
15480#endif
15481
15482int
15483main ()
15484{
15485return shmat ();
15486 ;
15487 return 0;
15488}
15489_ACEOF
15490rm -f conftest.$ac_objext conftest$ac_exeext
15491if { (ac_try="$ac_link"
15492case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15495esac
15496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497 (eval "$ac_link") 2>conftest.er1
15498 ac_status=$?
15499 grep -v '^ *+' conftest.er1 >conftest.err
15500 rm -f conftest.er1
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } && {
15504 test -z "$ac_c_werror_flag" ||
15505 test ! -s conftest.err
15506 } && test -s conftest$ac_exeext &&
15507 $as_test_x conftest$ac_exeext; then
15508 ac_cv_func_shmat=yes
15509else
15510 echo "$as_me: failed program was:" >&5
15511sed 's/^/| /' conftest.$ac_ext >&5
15512
15513 ac_cv_func_shmat=no
15514fi
15515
15516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15517 conftest$ac_exeext conftest.$ac_ext
15518fi
15519{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
15520echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
15521
15522 if test $ac_cv_func_shmat = no; then
15523 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
15524echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
15525if test "${ac_cv_lib_ipc_shmat+set}" = set; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
15527else
15528 ac_check_lib_save_LIBS=$LIBS
15529LIBS="-lipc $LIBS"
15530cat >conftest.$ac_ext <<_ACEOF
15531/* confdefs.h. */
15532_ACEOF
15533cat confdefs.h >>conftest.$ac_ext
15534cat >>conftest.$ac_ext <<_ACEOF
15535/* end confdefs.h. */
15536
15537/* Override any GCC internal prototype to avoid an error.
15538 Use char because int might match the return type of a GCC
15539 builtin and then its argument prototype would still apply. */
15540#ifdef __cplusplus
15541extern "C"
15542#endif
15543char shmat ();
15544int
15545main ()
15546{
15547return shmat ();
15548 ;
15549 return 0;
15550}
15551_ACEOF
15552rm -f conftest.$ac_objext conftest$ac_exeext
15553if { (ac_try="$ac_link"
15554case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15557esac
15558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559 (eval "$ac_link") 2>conftest.er1
15560 ac_status=$?
15561 grep -v '^ *+' conftest.er1 >conftest.err
15562 rm -f conftest.er1
15563 cat conftest.err >&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } && {
15566 test -z "$ac_c_werror_flag" ||
15567 test ! -s conftest.err
15568 } && test -s conftest$ac_exeext &&
15569 $as_test_x conftest$ac_exeext; then
15570 ac_cv_lib_ipc_shmat=yes
15571else
15572 echo "$as_me: failed program was:" >&5
15573sed 's/^/| /' conftest.$ac_ext >&5
15574
15575 ac_cv_lib_ipc_shmat=no
15576fi
15577
15578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15579 conftest$ac_exeext conftest.$ac_ext
15580LIBS=$ac_check_lib_save_LIBS
15581fi
15582{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
15583echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
15584if test $ac_cv_lib_ipc_shmat = yes; then
15585 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15586fi
15587
15588 fi
15589 fi
15590
15591 # Check for libraries that X11R6 Xt/Xaw programs need.
15592 ac_save_LDFLAGS=$LDFLAGS
15593 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15594 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15595 # check for ICE first), but we must link in the order -lSM -lICE or
15596 # we get undefined symbols. So assume we have SM if we have ICE.
15597 # These have to be linked with before -lX11, unlike the other
15598 # libraries we check for below, so use a different variable.
15599 # John Interrante, Karl Berry
15600 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
15601echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
15602if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
15603 echo $ECHO_N "(cached) $ECHO_C" >&6
15604else
15605 ac_check_lib_save_LIBS=$LIBS
15606LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15607cat >conftest.$ac_ext <<_ACEOF
15608/* confdefs.h. */
15609_ACEOF
15610cat confdefs.h >>conftest.$ac_ext
15611cat >>conftest.$ac_ext <<_ACEOF
15612/* end confdefs.h. */
15613
15614/* Override any GCC internal prototype to avoid an error.
15615 Use char because int might match the return type of a GCC
15616 builtin and then its argument prototype would still apply. */
15617#ifdef __cplusplus
15618extern "C"
15619#endif
15620char IceConnectionNumber ();
15621int
15622main ()
15623{
15624return IceConnectionNumber ();
15625 ;
15626 return 0;
15627}
15628_ACEOF
15629rm -f conftest.$ac_objext conftest$ac_exeext
15630if { (ac_try="$ac_link"
15631case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15634esac
15635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_link") 2>conftest.er1
15637 ac_status=$?
15638 grep -v '^ *+' conftest.er1 >conftest.err
15639 rm -f conftest.er1
15640 cat conftest.err >&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } && {
15643 test -z "$ac_c_werror_flag" ||
15644 test ! -s conftest.err
15645 } && test -s conftest$ac_exeext &&
15646 $as_test_x conftest$ac_exeext; then
15647 ac_cv_lib_ICE_IceConnectionNumber=yes
15648else
15649 echo "$as_me: failed program was:" >&5
15650sed 's/^/| /' conftest.$ac_ext >&5
15651
15652 ac_cv_lib_ICE_IceConnectionNumber=no
15653fi
15654
15655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15656 conftest$ac_exeext conftest.$ac_ext
15657LIBS=$ac_check_lib_save_LIBS
15658fi
15659{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
15660echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
15661if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
15662 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15663fi
15664
15665 LDFLAGS=$ac_save_LDFLAGS
15666
15667fi
15668
15669
15670
15671
15672
15673ac_ext=c
15674ac_cpp='$CPP $CPPFLAGS'
15675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15677ac_compiler_gnu=$ac_cv_c_compiler_gnu
15678
15679acx_pthread_ok=no
15680
15681# We used to check for pthread.h first, but this fails if pthread.h
15682# requires special compiler flags (e.g. on True64 or Sequent).
15683# It gets checked for in the link test anyway.
15684
15685# First of all, check if the user has set any of the PTHREAD_LIBS,
15686# etcetera environment variables, and if threads linking works using
15687# them:
15688if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15689 save_CFLAGS="$CFLAGS"
15690 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15691 save_LIBS="$LIBS"
15692 LIBS="$PTHREAD_LIBS $LIBS"
15693 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15694echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
15695 cat >conftest.$ac_ext <<_ACEOF
15696/* confdefs.h. */
15697_ACEOF
15698cat confdefs.h >>conftest.$ac_ext
15699cat >>conftest.$ac_ext <<_ACEOF
15700/* end confdefs.h. */
15701
15702/* Override any GCC internal prototype to avoid an error.
15703 Use char because int might match the return type of a GCC
15704 builtin and then its argument prototype would still apply. */
15705#ifdef __cplusplus
15706extern "C"
15707#endif
15708char pthread_join ();
15709int
15710main ()
15711{
15712return pthread_join ();
15713 ;
15714 return 0;
15715}
15716_ACEOF
15717rm -f conftest.$ac_objext conftest$ac_exeext
15718if { (ac_try="$ac_link"
15719case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722esac
15723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_link") 2>conftest.er1
15725 ac_status=$?
15726 grep -v '^ *+' conftest.er1 >conftest.err
15727 rm -f conftest.er1
15728 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } && {
15731 test -z "$ac_c_werror_flag" ||
15732 test ! -s conftest.err
15733 } && test -s conftest$ac_exeext &&
15734 $as_test_x conftest$ac_exeext; then
15735 acx_pthread_ok=yes
15736else
15737 echo "$as_me: failed program was:" >&5
15738sed 's/^/| /' conftest.$ac_ext >&5
15739
15740
15741fi
15742
15743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15744 conftest$ac_exeext conftest.$ac_ext
15745 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15746echo "${ECHO_T}$acx_pthread_ok" >&6; }
15747 if test x"$acx_pthread_ok" = xno; then
15748 PTHREAD_LIBS=""
15749 PTHREAD_CFLAGS=""
15750 fi
15751 LIBS="$save_LIBS"
15752 CFLAGS="$save_CFLAGS"
15753fi
15754
15755# We must check for the threads library under a number of different
15756# names; the ordering is very important because some systems
15757# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15758# libraries is broken (non-POSIX).
15759
15760# Create a list of thread flags to try. Items starting with a "-" are
15761# C compiler flags, and other items are library names, except for "none"
15762# which indicates that we try without any flags at all, and "pthread-config"
15763# which is a program returning the flags for the Pth emulation library.
15764
15765acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15766
15767# The ordering *is* (sometimes) important. Some notes on the
15768# individual items follow:
15769
15770# pthreads: AIX (must check this before -lpthread)
15771# none: in case threads are in libc; should be tried before -Kthread and
15772# other compiler flags to prevent continual compiler warnings
15773# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15774# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15775# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15776# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15777# -pthreads: Solaris/gcc
15778# -mthreads: Mingw32/gcc, Lynx/gcc
15779# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15780# doesn't hurt to check since this sometimes defines pthreads too;
15781# also defines -D_REENTRANT)
15782# pthread: Linux, etcetera
15783# --thread-safe: KAI C++
15784# pthread-config: use pthread-config program (for GNU Pth library)
15785
15786case "${host_cpu}-${host_os}" in
15787 *solaris*)
15788
15789 # On Solaris (at least, for some versions), libc contains stubbed
15790 # (non-functional) versions of the pthreads routines, so link-based
15791 # tests will erroneously succeed. (We need to link with -pthread or
15792 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15793 # a function called by this macro, so we could check for that, but
15794 # who knows whether they'll stub that too in a future libc.) So,
15795 # we'll just look for -pthreads and -lpthread first:
15796
15797 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
15798 ;;
15799esac
15800
15801if test x"$acx_pthread_ok" = xno; then
15802for flag in $acx_pthread_flags; do
15803
15804 case $flag in
15805 none)
15806 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
15807echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
15808 ;;
15809
15810 -*)
15811 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
15812echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
15813 PTHREAD_CFLAGS="$flag"
15814 ;;
15815
15816 pthread-config)
15817 # Extract the first word of "pthread-config", so it can be a program name with args.
15818set dummy pthread-config; ac_word=$2
15819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15821if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15823else
15824 if test -n "$acx_pthread_config"; then
15825 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15826else
15827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15828for as_dir in $PATH
15829do
15830 IFS=$as_save_IFS
15831 test -z "$as_dir" && as_dir=.
15832 for ac_exec_ext in '' $ac_executable_extensions; do
15833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15834 ac_cv_prog_acx_pthread_config="yes"
15835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15836 break 2
15837 fi
15838done
15839done
15840IFS=$as_save_IFS
15841
15842 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15843fi
15844fi
15845acx_pthread_config=$ac_cv_prog_acx_pthread_config
15846if test -n "$acx_pthread_config"; then
15847 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
15848echo "${ECHO_T}$acx_pthread_config" >&6; }
15849else
15850 { echo "$as_me:$LINENO: result: no" >&5
15851echo "${ECHO_T}no" >&6; }
15852fi
15853
15854
15855 if test x"$acx_pthread_config" = xno; then continue; fi
15856 PTHREAD_CFLAGS="`pthread-config --cflags`"
15857 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15858 ;;
15859
15860 *)
15861 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
15862echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
15863 PTHREAD_LIBS="-l$flag"
15864 ;;
15865 esac
15866
15867 save_LIBS="$LIBS"
15868 save_CFLAGS="$CFLAGS"
15869 LIBS="$PTHREAD_LIBS $LIBS"
15870 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15871
15872 # Check for various functions. We must include pthread.h,
15873 # since some functions may be macros. (On the Sequent, we
15874 # need a special flag -Kthread to make this header compile.)
15875 # We check for pthread_join because it is in -lpthread on IRIX
15876 # while pthread_create is in libc. We check for pthread_attr_init
15877 # due to DEC craziness with -lpthreads. We check for
15878 # pthread_cleanup_push because it is one of the few pthread
15879 # functions on Solaris that doesn't have a non-functional libc stub.
15880 # We try pthread_create on general principles.
15881 cat >conftest.$ac_ext <<_ACEOF
15882/* confdefs.h. */
15883_ACEOF
15884cat confdefs.h >>conftest.$ac_ext
15885cat >>conftest.$ac_ext <<_ACEOF
15886/* end confdefs.h. */
15887#include <pthread.h>
15888int
15889main ()
15890{
15891pthread_t th; pthread_join(th, 0);
15892 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15893 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15894 ;
15895 return 0;
15896}
15897_ACEOF
15898rm -f conftest.$ac_objext conftest$ac_exeext
15899if { (ac_try="$ac_link"
15900case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903esac
15904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_link") 2>conftest.er1
15906 ac_status=$?
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } && {
15912 test -z "$ac_c_werror_flag" ||
15913 test ! -s conftest.err
15914 } && test -s conftest$ac_exeext &&
15915 $as_test_x conftest$ac_exeext; then
15916 acx_pthread_ok=yes
15917else
15918 echo "$as_me: failed program was:" >&5
15919sed 's/^/| /' conftest.$ac_ext >&5
15920
15921
15922fi
15923
15924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15925 conftest$ac_exeext conftest.$ac_ext
15926
15927 LIBS="$save_LIBS"
15928 CFLAGS="$save_CFLAGS"
15929
15930 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15931echo "${ECHO_T}$acx_pthread_ok" >&6; }
15932 if test "x$acx_pthread_ok" = xyes; then
15933 break;
15934 fi
15935
15936 PTHREAD_LIBS=""
15937 PTHREAD_CFLAGS=""
15938done
15939fi
15940
15941# Various other checks:
15942if test "x$acx_pthread_ok" = xyes; then
15943 save_LIBS="$LIBS"
15944 LIBS="$PTHREAD_LIBS $LIBS"
15945 save_CFLAGS="$CFLAGS"
15946 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15947
15948 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15949 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
15950echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
15951 attr_name=unknown
15952 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15953 cat >conftest.$ac_ext <<_ACEOF
15954/* confdefs.h. */
15955_ACEOF
15956cat confdefs.h >>conftest.$ac_ext
15957cat >>conftest.$ac_ext <<_ACEOF
15958/* end confdefs.h. */
15959#include <pthread.h>
15960int
15961main ()
15962{
15963int attr=$attr;
15964 ;
15965 return 0;
15966}
15967_ACEOF
15968rm -f conftest.$ac_objext conftest$ac_exeext
15969if { (ac_try="$ac_link"
15970case "(($ac_try" in
15971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15972 *) ac_try_echo=$ac_try;;
15973esac
15974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15975 (eval "$ac_link") 2>conftest.er1
15976 ac_status=$?
15977 grep -v '^ *+' conftest.er1 >conftest.err
15978 rm -f conftest.er1
15979 cat conftest.err >&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } && {
15982 test -z "$ac_c_werror_flag" ||
15983 test ! -s conftest.err
15984 } && test -s conftest$ac_exeext &&
15985 $as_test_x conftest$ac_exeext; then
15986 attr_name=$attr; break
15987else
15988 echo "$as_me: failed program was:" >&5
15989sed 's/^/| /' conftest.$ac_ext >&5
15990
15991
15992fi
15993
15994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15995 conftest$ac_exeext conftest.$ac_ext
15996 done
15997 { echo "$as_me:$LINENO: result: $attr_name" >&5
15998echo "${ECHO_T}$attr_name" >&6; }
15999 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16000
16001cat >>confdefs.h <<_ACEOF
16002#define PTHREAD_CREATE_JOINABLE $attr_name
16003_ACEOF
16004
16005 fi
16006
16007 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16008echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
16009 flag=no
16010 case "${host_cpu}-${host_os}" in
16011 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16012 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16013 esac
16014 { echo "$as_me:$LINENO: result: ${flag}" >&5
16015echo "${ECHO_T}${flag}" >&6; }
16016 if test "x$flag" != xno; then
16017 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16018 fi
16019
16020 LIBS="$save_LIBS"
16021 CFLAGS="$save_CFLAGS"
16022
16023 # More AIX lossage: must compile with cc_r
16024 # Extract the first word of "cc_r", so it can be a program name with args.
16025set dummy cc_r; ac_word=$2
16026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16028if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16030else
16031 if test -n "$PTHREAD_CC"; then
16032 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16033else
16034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16035for as_dir in $PATH
16036do
16037 IFS=$as_save_IFS
16038 test -z "$as_dir" && as_dir=.
16039 for ac_exec_ext in '' $ac_executable_extensions; do
16040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16041 ac_cv_prog_PTHREAD_CC="cc_r"
16042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16043 break 2
16044 fi
16045done
16046done
16047IFS=$as_save_IFS
16048
16049 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16050fi
16051fi
16052PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16053if test -n "$PTHREAD_CC"; then
16054 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16055echo "${ECHO_T}$PTHREAD_CC" >&6; }
16056else
16057 { echo "$as_me:$LINENO: result: no" >&5
16058echo "${ECHO_T}no" >&6; }
16059fi
16060
16061
16062else
16063 PTHREAD_CC="$CC"
16064fi
16065
16066
16067
16068
16069
16070# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16071if test x"$acx_pthread_ok" = xyes; then
16072
16073cat >>confdefs.h <<\_ACEOF
16074#define HAVE_PTHREAD 1
16075_ACEOF
16076
16077 :
16078else
16079 acx_pthread_ok=no
16080
16081fi
16082ac_ext=c
16083ac_cpp='$CPP $CPPFLAGS'
16084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16086ac_compiler_gnu=$ac_cv_c_compiler_gnu
16087
16088
16089
16090#
16091# There isn't a reliable way to know we should use the Apple OpenGL framework
16092# without a configure option. A Mac OS X user may have installed an
16093# alternative GL implementation (e.g., Mesa), which may or may not depend on X.
16094#
16095
16096# Check whether --with-apple-opengl-framework was given.
16097if test "${with_apple_opengl_framework+set}" = set; then
16098 withval=$with_apple_opengl_framework;
16099fi
16100
16101if test "X$with_apple_opengl_framework" = "Xyes"; then
16102
16103cat >>confdefs.h <<\_ACEOF
16104#define HAVE_APPLE_OPENGL_FRAMEWORK 1
16105_ACEOF
16106
16107 GL_LIBS="-framework OpenGL"
16108else
16109 ac_ext=c
16110ac_cpp='$CPP $CPPFLAGS'
16111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16113ac_compiler_gnu=$ac_cv_c_compiler_gnu
16114
16115
16116 { echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5
16117echo $ECHO_N "checking whether we are using the Microsoft C compiler... $ECHO_C" >&6; }
16118if test "${ax_cv_c_compiler_ms+set}" = set; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16120else
16121 cat >conftest.$ac_ext <<_ACEOF
16122/* confdefs.h. */
16123_ACEOF
16124cat confdefs.h >>conftest.$ac_ext
16125cat >>conftest.$ac_ext <<_ACEOF
16126/* end confdefs.h. */
16127
16128int
16129main ()
16130{
16131#ifndef _MSC_VER
16132 choke me
16133#endif
16134
16135 ;
16136 return 0;
16137}
16138_ACEOF
16139rm -f conftest.$ac_objext
16140if { (ac_try="$ac_compile"
16141case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16144esac
16145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16146 (eval "$ac_compile") 2>conftest.er1
16147 ac_status=$?
16148 grep -v '^ *+' conftest.er1 >conftest.err
16149 rm -f conftest.er1
16150 cat conftest.err >&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } && {
16153 test -z "$ac_c_werror_flag" ||
16154 test ! -s conftest.err
16155 } && test -s conftest.$ac_objext; then
16156 ax_compiler_ms=yes
16157else
16158 echo "$as_me: failed program was:" >&5
16159sed 's/^/| /' conftest.$ac_ext >&5
16160
16161 ax_compiler_ms=no
16162fi
16163
16164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16165ax_cv_c_compiler_ms=$ax_compiler_ms
16166
16167fi
16168{ echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5
16169echo "${ECHO_T}$ax_cv_c_compiler_ms" >&6; }
16170 if test X$ax_compiler_ms = Xno; then
16171 GL_CFLAGS="${PTHREAD_CFLAGS}"
16172 GL_LIBS="${PTHREAD_LIBS} -lm"
16173 fi
16174
16175 #
16176 # Use x_includes and x_libraries if they have been set (presumably by
16177 # AC_PATH_X).
16178 #
16179 if test "X$no_x" != "Xyes"; then
16180 if test -n "$x_includes"; then
16181 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
16182 fi
16183 if test -n "$x_libraries"; then
16184 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
16185 fi
16186 fi
16187
16188
16189for ac_header in windows.h
16190do
16191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16196 echo $ECHO_N "(cached) $ECHO_C" >&6
16197fi
16198ac_res=`eval echo '${'$as_ac_Header'}'`
16199 { echo "$as_me:$LINENO: result: $ac_res" >&5
16200echo "${ECHO_T}$ac_res" >&6; }
16201else
16202 # Is the header compilable?
16203{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16204echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16205cat >conftest.$ac_ext <<_ACEOF
16206/* confdefs.h. */
16207_ACEOF
16208cat confdefs.h >>conftest.$ac_ext
16209cat >>conftest.$ac_ext <<_ACEOF
16210/* end confdefs.h. */
16211$ac_includes_default
16212#include <$ac_header>
16213_ACEOF
16214rm -f conftest.$ac_objext
16215if { (ac_try="$ac_compile"
16216case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16219esac
16220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_compile") 2>conftest.er1
16222 ac_status=$?
16223 grep -v '^ *+' conftest.er1 >conftest.err
16224 rm -f conftest.er1
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } && {
16228 test -z "$ac_c_werror_flag" ||
16229 test ! -s conftest.err
16230 } && test -s conftest.$ac_objext; then
16231 ac_header_compiler=yes
16232else
16233 echo "$as_me: failed program was:" >&5
16234sed 's/^/| /' conftest.$ac_ext >&5
16235
16236 ac_header_compiler=no
16237fi
16238
16239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16241echo "${ECHO_T}$ac_header_compiler" >&6; }
16242
16243# Is the header present?
16244{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16245echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16246cat >conftest.$ac_ext <<_ACEOF
16247/* confdefs.h. */
16248_ACEOF
16249cat confdefs.h >>conftest.$ac_ext
16250cat >>conftest.$ac_ext <<_ACEOF
16251/* end confdefs.h. */
16252#include <$ac_header>
16253_ACEOF
16254if { (ac_try="$ac_cpp conftest.$ac_ext"
16255case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16258esac
16259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16261 ac_status=$?
16262 grep -v '^ *+' conftest.er1 >conftest.err
16263 rm -f conftest.er1
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } >/dev/null && {
16267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16269 }; then
16270 ac_header_preproc=yes
16271else
16272 echo "$as_me: failed program was:" >&5
16273sed 's/^/| /' conftest.$ac_ext >&5
16274
16275 ac_header_preproc=no
16276fi
16277
16278rm -f conftest.err conftest.$ac_ext
16279{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16280echo "${ECHO_T}$ac_header_preproc" >&6; }
16281
16282# So? What about this header?
16283case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16284 yes:no: )
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16286echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16288echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16289 ac_header_preproc=yes
16290 ;;
16291 no:yes:* )
16292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16295echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16297echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16299echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16301echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16303echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16304 ( cat <<\_ASBOX
16305## -------------------------------------- ##
16306## Report this to tiff@lists.maptools.org ##
16307## -------------------------------------- ##
16308_ASBOX
16309 ) | sed "s/^/$as_me: WARNING: /" >&2
16310 ;;
16311esac
16312{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16316else
16317 eval "$as_ac_Header=\$ac_header_preproc"
16318fi
16319ac_res=`eval echo '${'$as_ac_Header'}'`
16320 { echo "$as_me:$LINENO: result: $ac_res" >&5
16321echo "${ECHO_T}$ac_res" >&6; }
16322
16323fi
16324if test `eval echo '${'$as_ac_Header'}'` = yes; then
16325 cat >>confdefs.h <<_ACEOF
16326#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16327_ACEOF
16328
16329fi
16330
16331done
16332
16333
16334 { echo "$as_me:$LINENO: checking for OpenGL library" >&5
16335echo $ECHO_N "checking for OpenGL library... $ECHO_C" >&6; }
16336if test "${ax_cv_check_gl_libgl+set}" = set; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16338else
16339 ax_cv_check_gl_libgl="no"
16340 ax_save_CPPFLAGS="${CPPFLAGS}"
16341 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
16342 ax_save_LIBS="${LIBS}"
16343 LIBS=""
16344 ax_check_libs="-lopengl32 -lGL"
16345 for ax_lib in ${ax_check_libs}; do
16346 if test X$ax_compiler_ms = Xyes; then
16347 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
16348 else
16349 ax_try_lib="${ax_lib}"
16350 fi
16351 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
16352 cat >conftest.$ac_ext <<_ACEOF
16353/* confdefs.h. */
16354_ACEOF
16355cat confdefs.h >>conftest.$ac_ext
16356cat >>conftest.$ac_ext <<_ACEOF
16357/* end confdefs.h. */
16358
16359# if HAVE_WINDOWS_H && defined(_WIN32)
16360# include <windows.h>
16361# endif
16362# include <GL/gl.h>
16363int
16364main ()
16365{
16366glBegin(0)
16367 ;
16368 return 0;
16369}
16370_ACEOF
16371rm -f conftest.$ac_objext conftest$ac_exeext
16372if { (ac_try="$ac_link"
16373case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16376esac
16377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378 (eval "$ac_link") 2>conftest.er1
16379 ac_status=$?
16380 grep -v '^ *+' conftest.er1 >conftest.err
16381 rm -f conftest.er1
16382 cat conftest.err >&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } && {
16385 test -z "$ac_c_werror_flag" ||
16386 test ! -s conftest.err
16387 } && test -s conftest$ac_exeext &&
16388 $as_test_x conftest$ac_exeext; then
16389 ax_cv_check_gl_libgl="${ax_try_lib}"; break
16390else
16391 echo "$as_me: failed program was:" >&5
16392sed 's/^/| /' conftest.$ac_ext >&5
16393
16394
16395fi
16396
16397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16398 conftest$ac_exeext conftest.$ac_ext
16399 done
16400 LIBS=${ax_save_LIBS}
16401 CPPFLAGS=${ax_save_CPPFLAGS}
16402fi
16403{ echo "$as_me:$LINENO: result: $ax_cv_check_gl_libgl" >&5
16404echo "${ECHO_T}$ax_cv_check_gl_libgl" >&6; }
16405
16406 if test "X${ax_cv_check_gl_libgl}" = "Xno"; then
16407 no_gl="yes"
16408 GL_CFLAGS=""
16409 GL_LIBS=""
16410 else
16411 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
16412 fi
16413 ac_ext=c
16414ac_cpp='$CPP $CPPFLAGS'
16415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16417ac_compiler_gnu=$ac_cv_c_compiler_gnu
16418
16419fi
16420
16421
16422
16423
16424
16425
16426ac_ext=cpp
16427ac_cpp='$CXXCPP $CPPFLAGS'
16428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16431if test -z "$CXX"; then
16432 if test -n "$CCC"; then
16433 CXX=$CCC
16434 else
16435 if test -n "$ac_tool_prefix"; then
16436 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16437 do
16438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16439set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16442if test "${ac_cv_prog_CXX+set}" = set; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16444else
16445 if test -n "$CXX"; then
16446 ac_cv_prog_CXX="$CXX" # Let the user override the test.
16447else
16448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16449for as_dir in $PATH
16450do
16451 IFS=$as_save_IFS
16452 test -z "$as_dir" && as_dir=.
16453 for ac_exec_ext in '' $ac_executable_extensions; do
16454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16455 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16457 break 2
16458 fi
16459done
16460done
16461IFS=$as_save_IFS
16462
16463fi
16464fi
16465CXX=$ac_cv_prog_CXX
16466if test -n "$CXX"; then
16467 { echo "$as_me:$LINENO: result: $CXX" >&5
16468echo "${ECHO_T}$CXX" >&6; }
16469else
16470 { echo "$as_me:$LINENO: result: no" >&5
16471echo "${ECHO_T}no" >&6; }
16472fi
16473
16474
16475 test -n "$CXX" && break
16476 done
16477fi
16478if test -z "$CXX"; then
16479 ac_ct_CXX=$CXX
16480 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16481do
16482 # Extract the first word of "$ac_prog", so it can be a program name with args.
16483set dummy $ac_prog; ac_word=$2
16484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16486if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16488else
16489 if test -n "$ac_ct_CXX"; then
16490 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16491else
16492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16493for as_dir in $PATH
16494do
16495 IFS=$as_save_IFS
16496 test -z "$as_dir" && as_dir=.
16497 for ac_exec_ext in '' $ac_executable_extensions; do
16498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16499 ac_cv_prog_ac_ct_CXX="$ac_prog"
16500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16501 break 2
16502 fi
16503done
16504done
16505IFS=$as_save_IFS
16506
16507fi
16508fi
16509ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16510if test -n "$ac_ct_CXX"; then
16511 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16512echo "${ECHO_T}$ac_ct_CXX" >&6; }
16513else
16514 { echo "$as_me:$LINENO: result: no" >&5
16515echo "${ECHO_T}no" >&6; }
16516fi
16517
16518
16519 test -n "$ac_ct_CXX" && break
16520done
16521
16522 if test "x$ac_ct_CXX" = x; then
16523 CXX="g++"
16524 else
16525 case $cross_compiling:$ac_tool_warned in
16526yes:)
16527{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16528whose name does not start with the host triplet. If you think this
16529configuration is useful to you, please write to autoconf@gnu.org." >&5
16530echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16531whose name does not start with the host triplet. If you think this
16532configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16533ac_tool_warned=yes ;;
16534esac
16535 CXX=$ac_ct_CXX
16536 fi
16537fi
16538
16539 fi
16540fi
16541# Provide some information about the compiler.
16542echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16543ac_compiler=`set X $ac_compile; echo $2`
16544{ (ac_try="$ac_compiler --version >&5"
16545case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16548esac
16549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_compiler --version >&5") 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }
16554{ (ac_try="$ac_compiler -v >&5"
16555case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16558esac
16559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560 (eval "$ac_compiler -v >&5") 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }
16564{ (ac_try="$ac_compiler -V >&5"
16565case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16568esac
16569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_compiler -V >&5") 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }
16574
16575{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16576echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16577if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
16579else
16580 cat >conftest.$ac_ext <<_ACEOF
16581/* confdefs.h. */
16582_ACEOF
16583cat confdefs.h >>conftest.$ac_ext
16584cat >>conftest.$ac_ext <<_ACEOF
16585/* end confdefs.h. */
16586
16587int
16588main ()
16589{
16590#ifndef __GNUC__
16591 choke me
16592#endif
16593
16594 ;
16595 return 0;
16596}
16597_ACEOF
16598rm -f conftest.$ac_objext
16599if { (ac_try="$ac_compile"
16600case "(($ac_try" in
16601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16602 *) ac_try_echo=$ac_try;;
16603esac
16604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16605 (eval "$ac_compile") 2>conftest.er1
16606 ac_status=$?
16607 grep -v '^ *+' conftest.er1 >conftest.err
16608 rm -f conftest.er1
16609 cat conftest.err >&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } && {
16612 test -z "$ac_cxx_werror_flag" ||
16613 test ! -s conftest.err
16614 } && test -s conftest.$ac_objext; then
16615 ac_compiler_gnu=yes
16616else
16617 echo "$as_me: failed program was:" >&5
16618sed 's/^/| /' conftest.$ac_ext >&5
16619
16620 ac_compiler_gnu=no
16621fi
16622
16623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16625
16626fi
16627{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16628echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16629GXX=`test $ac_compiler_gnu = yes && echo yes`
16630ac_test_CXXFLAGS=${CXXFLAGS+set}
16631ac_save_CXXFLAGS=$CXXFLAGS
16632{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16633echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16634if test "${ac_cv_prog_cxx_g+set}" = set; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16636else
16637 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16638 ac_cxx_werror_flag=yes
16639 ac_cv_prog_cxx_g=no
16640 CXXFLAGS="-g"
16641 cat >conftest.$ac_ext <<_ACEOF
16642/* confdefs.h. */
16643_ACEOF
16644cat confdefs.h >>conftest.$ac_ext
16645cat >>conftest.$ac_ext <<_ACEOF
16646/* end confdefs.h. */
16647
16648int
16649main ()
16650{
16651
16652 ;
16653 return 0;
16654}
16655_ACEOF
16656rm -f conftest.$ac_objext
16657if { (ac_try="$ac_compile"
16658case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661esac
16662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_compile") 2>conftest.er1
16664 ac_status=$?
16665 grep -v '^ *+' conftest.er1 >conftest.err
16666 rm -f conftest.er1
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } && {
16670 test -z "$ac_cxx_werror_flag" ||
16671 test ! -s conftest.err
16672 } && test -s conftest.$ac_objext; then
16673 ac_cv_prog_cxx_g=yes
16674else
16675 echo "$as_me: failed program was:" >&5
16676sed 's/^/| /' conftest.$ac_ext >&5
16677
16678 CXXFLAGS=""
16679 cat >conftest.$ac_ext <<_ACEOF
16680/* confdefs.h. */
16681_ACEOF
16682cat confdefs.h >>conftest.$ac_ext
16683cat >>conftest.$ac_ext <<_ACEOF
16684/* end confdefs.h. */
16685
16686int
16687main ()
16688{
16689
16690 ;
16691 return 0;
16692}
16693_ACEOF
16694rm -f conftest.$ac_objext
16695if { (ac_try="$ac_compile"
16696case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16699esac
16700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_compile") 2>conftest.er1
16702 ac_status=$?
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } && {
16708 test -z "$ac_cxx_werror_flag" ||
16709 test ! -s conftest.err
16710 } && test -s conftest.$ac_objext; then
16711 :
16712else
16713 echo "$as_me: failed program was:" >&5
16714sed 's/^/| /' conftest.$ac_ext >&5
16715
16716 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16717 CXXFLAGS="-g"
16718 cat >conftest.$ac_ext <<_ACEOF
16719/* confdefs.h. */
16720_ACEOF
16721cat confdefs.h >>conftest.$ac_ext
16722cat >>conftest.$ac_ext <<_ACEOF
16723/* end confdefs.h. */
16724
16725int
16726main ()
16727{
16728
16729 ;
16730 return 0;
16731}
16732_ACEOF
16733rm -f conftest.$ac_objext
16734if { (ac_try="$ac_compile"
16735case "(($ac_try" in
16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737 *) ac_try_echo=$ac_try;;
16738esac
16739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740 (eval "$ac_compile") 2>conftest.er1
16741 ac_status=$?
16742 grep -v '^ *+' conftest.er1 >conftest.err
16743 rm -f conftest.er1
16744 cat conftest.err >&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } && {
16747 test -z "$ac_cxx_werror_flag" ||
16748 test ! -s conftest.err
16749 } && test -s conftest.$ac_objext; then
16750 ac_cv_prog_cxx_g=yes
16751else
16752 echo "$as_me: failed program was:" >&5
16753sed 's/^/| /' conftest.$ac_ext >&5
16754
16755
16756fi
16757
16758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759fi
16760
16761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762fi
16763
16764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16766fi
16767{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16768echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16769if test "$ac_test_CXXFLAGS" = set; then
16770 CXXFLAGS=$ac_save_CXXFLAGS
16771elif test $ac_cv_prog_cxx_g = yes; then
16772 if test "$GXX" = yes; then
16773 CXXFLAGS="-g -O2"
16774 else
16775 CXXFLAGS="-g"
16776 fi
16777else
16778 if test "$GXX" = yes; then
16779 CXXFLAGS="-O2"
16780 else
16781 CXXFLAGS=
16782 fi
16783fi
16784ac_ext=c
16785ac_cpp='$CPP $CPPFLAGS'
16786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16788ac_compiler_gnu=$ac_cv_c_compiler_gnu
16789
16790depcc="$CXX" am_compiler_list=
16791
16792{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16793echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
16794if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16796else
16797 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16798 # We make a subdir and do the tests there. Otherwise we can end up
16799 # making bogus files that we don't know about and never remove. For
16800 # instance it was reported that on HP-UX the gcc test will end up
16801 # making a dummy file named `D' -- because `-MD' means `put the output
16802 # in D'.
16803 mkdir conftest.dir
16804 # Copy depcomp to subdir because otherwise we won't find it if we're
16805 # using a relative directory.
16806 cp "$am_depcomp" conftest.dir
16807 cd conftest.dir
16808 # We will build objects and dependencies in a subdirectory because
16809 # it helps to detect inapplicable dependency modes. For instance
16810 # both Tru64's cc and ICC support -MD to output dependencies as a
16811 # side effect of compilation, but ICC will put the dependencies in
16812 # the current directory while Tru64 will put them in the object
16813 # directory.
16814 mkdir sub
16815
16816 am_cv_CXX_dependencies_compiler_type=none
16817 if test "$am_compiler_list" = ""; then
16818 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16819 fi
16820 for depmode in $am_compiler_list; do
16821 # Setup a source with many dependencies, because some compilers
16822 # like to wrap large dependency lists on column 80 (with \), and
16823 # we should not choose a depcomp mode which is confused by this.
16824 #
16825 # We need to recreate these files for each test, as the compiler may
16826 # overwrite some of them when testing with obscure command lines.
16827 # This happens at least with the AIX C compiler.
16828 : > sub/conftest.c
16829 for i in 1 2 3 4 5 6; do
16830 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16831 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16832 # Solaris 8's {/usr,}/bin/sh.
16833 touch sub/conftst$i.h
16834 done
16835 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16836
16837 case $depmode in
16838 nosideeffect)
16839 # after this tag, mechanisms are not by side-effect, so they'll
16840 # only be used when explicitly requested
16841 if test "x$enable_dependency_tracking" = xyes; then
16842 continue
16843 else
16844 break
16845 fi
16846 ;;
16847 none) break ;;
16848 esac
16849 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16850 # mode. It turns out that the SunPro C++ compiler does not properly
16851 # handle `-M -o', and we need to detect this.
16852 if depmode=$depmode \
16853 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16854 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16855 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16856 >/dev/null 2>conftest.err &&
16857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16858 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16860 # icc doesn't choke on unknown options, it will just issue warnings
16861 # or remarks (even with -Werror). So we grep stderr for any message
16862 # that says an option was ignored or not supported.
16863 # When given -MP, icc 7.0 and 7.1 complain thusly:
16864 # icc: Command line warning: ignoring option '-M'; no argument required
16865 # The diagnosis changed in icc 8.0:
16866 # icc: Command line remark: option '-MP' not supported
16867 if (grep 'ignoring option' conftest.err ||
16868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16869 am_cv_CXX_dependencies_compiler_type=$depmode
16870 break
16871 fi
16872 fi
16873 done
16874
16875 cd ..
16876 rm -rf conftest.dir
16877else
16878 am_cv_CXX_dependencies_compiler_type=none
16879fi
16880
16881fi
16882{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
16883echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
16884CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16885
16886
16887
16888if
16889 test "x$enable_dependency_tracking" != xno \
16890 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16891 am__fastdepCXX_TRUE=
16892 am__fastdepCXX_FALSE='#'
16893else
16894 am__fastdepCXX_TRUE='#'
16895 am__fastdepCXX_FALSE=
16896fi
16897
16898
16899if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16900 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16901 (test "X$CXX" != "Xg++"))) ; then
16902 ac_ext=cpp
16903ac_cpp='$CXXCPP $CPPFLAGS'
16904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16907{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16908echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
16909if test -z "$CXXCPP"; then
16910 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16912else
16913 # Double quotes because CXXCPP needs to be expanded
16914 for CXXCPP in "$CXX -E" "/lib/cpp"
16915 do
16916 ac_preproc_ok=false
16917for ac_cxx_preproc_warn_flag in '' yes
16918do
16919 # Use a header file that comes with gcc, so configuring glibc
16920 # with a fresh cross-compiler works.
16921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16922 # <limits.h> exists even on freestanding compilers.
16923 # On the NeXT, cc -E runs the code through the compiler's parser,
16924 # not just through cpp. "Syntax error" is here to catch this case.
16925 cat >conftest.$ac_ext <<_ACEOF
16926/* confdefs.h. */
16927_ACEOF
16928cat confdefs.h >>conftest.$ac_ext
16929cat >>conftest.$ac_ext <<_ACEOF
16930/* end confdefs.h. */
16931#ifdef __STDC__
16932# include <limits.h>
16933#else
16934# include <assert.h>
16935#endif
16936 Syntax error
16937_ACEOF
16938if { (ac_try="$ac_cpp conftest.$ac_ext"
16939case "(($ac_try" in
16940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941 *) ac_try_echo=$ac_try;;
16942esac
16943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16945 ac_status=$?
16946 grep -v '^ *+' conftest.er1 >conftest.err
16947 rm -f conftest.er1
16948 cat conftest.err >&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } >/dev/null && {
16951 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16952 test ! -s conftest.err
16953 }; then
16954 :
16955else
16956 echo "$as_me: failed program was:" >&5
16957sed 's/^/| /' conftest.$ac_ext >&5
16958
16959 # Broken: fails on valid input.
16960continue
16961fi
16962
16963rm -f conftest.err conftest.$ac_ext
16964
16965 # OK, works on sane cases. Now check whether nonexistent headers
16966 # can be detected and how.
16967 cat >conftest.$ac_ext <<_ACEOF
16968/* confdefs.h. */
16969_ACEOF
16970cat confdefs.h >>conftest.$ac_ext
16971cat >>conftest.$ac_ext <<_ACEOF
16972/* end confdefs.h. */
16973#include <ac_nonexistent.h>
16974_ACEOF
16975if { (ac_try="$ac_cpp conftest.$ac_ext"
16976case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16979esac
16980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16982 ac_status=$?
16983 grep -v '^ *+' conftest.er1 >conftest.err
16984 rm -f conftest.er1
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } >/dev/null && {
16988 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16989 test ! -s conftest.err
16990 }; then
16991 # Broken: success on invalid input.
16992continue
16993else
16994 echo "$as_me: failed program was:" >&5
16995sed 's/^/| /' conftest.$ac_ext >&5
16996
16997 # Passes both tests.
16998ac_preproc_ok=:
16999break
17000fi
17001
17002rm -f conftest.err conftest.$ac_ext
17003
17004done
17005# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17006rm -f conftest.err conftest.$ac_ext
17007if $ac_preproc_ok; then
17008 break
17009fi
17010
17011 done
17012 ac_cv_prog_CXXCPP=$CXXCPP
17013
17014fi
17015 CXXCPP=$ac_cv_prog_CXXCPP
17016else
17017 ac_cv_prog_CXXCPP=$CXXCPP
17018fi
17019{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
17020echo "${ECHO_T}$CXXCPP" >&6; }
17021ac_preproc_ok=false
17022for ac_cxx_preproc_warn_flag in '' yes
17023do
17024 # Use a header file that comes with gcc, so configuring glibc
17025 # with a fresh cross-compiler works.
17026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17027 # <limits.h> exists even on freestanding compilers.
17028 # On the NeXT, cc -E runs the code through the compiler's parser,
17029 # not just through cpp. "Syntax error" is here to catch this case.
17030 cat >conftest.$ac_ext <<_ACEOF
17031/* confdefs.h. */
17032_ACEOF
17033cat confdefs.h >>conftest.$ac_ext
17034cat >>conftest.$ac_ext <<_ACEOF
17035/* end confdefs.h. */
17036#ifdef __STDC__
17037# include <limits.h>
17038#else
17039# include <assert.h>
17040#endif
17041 Syntax error
17042_ACEOF
17043if { (ac_try="$ac_cpp conftest.$ac_ext"
17044case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047esac
17048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17050 ac_status=$?
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } >/dev/null && {
17056 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
17057 test ! -s conftest.err
17058 }; then
17059 :
17060else
17061 echo "$as_me: failed program was:" >&5
17062sed 's/^/| /' conftest.$ac_ext >&5
17063
17064 # Broken: fails on valid input.
17065continue
17066fi
17067
17068rm -f conftest.err conftest.$ac_ext
17069
17070 # OK, works on sane cases. Now check whether nonexistent headers
17071 # can be detected and how.
17072 cat >conftest.$ac_ext <<_ACEOF
17073/* confdefs.h. */
17074_ACEOF
17075cat confdefs.h >>conftest.$ac_ext
17076cat >>conftest.$ac_ext <<_ACEOF
17077/* end confdefs.h. */
17078#include <ac_nonexistent.h>
17079_ACEOF
17080if { (ac_try="$ac_cpp conftest.$ac_ext"
17081case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17084esac
17085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17087 ac_status=$?
17088 grep -v '^ *+' conftest.er1 >conftest.err
17089 rm -f conftest.er1
17090 cat conftest.err >&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } >/dev/null && {
17093 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
17094 test ! -s conftest.err
17095 }; then
17096 # Broken: success on invalid input.
17097continue
17098else
17099 echo "$as_me: failed program was:" >&5
17100sed 's/^/| /' conftest.$ac_ext >&5
17101
17102 # Passes both tests.
17103ac_preproc_ok=:
17104break
17105fi
17106
17107rm -f conftest.err conftest.$ac_ext
17108
17109done
17110# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17111rm -f conftest.err conftest.$ac_ext
17112if $ac_preproc_ok; then
17113 :
17114else
17115 _lt_caught_CXX_error=yes
17116fi
17117
17118ac_ext=c
17119ac_cpp='$CPP $CPPFLAGS'
17120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17122ac_compiler_gnu=$ac_cv_c_compiler_gnu
17123
17124else
17125 _lt_caught_CXX_error=yes
17126fi
17127
17128
17129
17130ac_ext=cpp
17131ac_cpp='$CXXCPP $CPPFLAGS'
17132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17135if test -z "$CXX"; then
17136 if test -n "$CCC"; then
17137 CXX=$CCC
17138 else
17139 if test -n "$ac_tool_prefix"; then
17140 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17141 do
17142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17143set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17146if test "${ac_cv_prog_CXX+set}" = set; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17148else
17149 if test -n "$CXX"; then
17150 ac_cv_prog_CXX="$CXX" # Let the user override the test.
17151else
17152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17153for as_dir in $PATH
17154do
17155 IFS=$as_save_IFS
17156 test -z "$as_dir" && as_dir=.
17157 for ac_exec_ext in '' $ac_executable_extensions; do
17158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17159 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17161 break 2
17162 fi
17163done
17164done
17165IFS=$as_save_IFS
17166
17167fi
17168fi
17169CXX=$ac_cv_prog_CXX
17170if test -n "$CXX"; then
17171 { echo "$as_me:$LINENO: result: $CXX" >&5
17172echo "${ECHO_T}$CXX" >&6; }
17173else
17174 { echo "$as_me:$LINENO: result: no" >&5
17175echo "${ECHO_T}no" >&6; }
17176fi
17177
17178
17179 test -n "$CXX" && break
17180 done
17181fi
17182if test -z "$CXX"; then
17183 ac_ct_CXX=$CXX
17184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17185do
17186 # Extract the first word of "$ac_prog", so it can be a program name with args.
17187set dummy $ac_prog; ac_word=$2
17188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17190if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
17192else
17193 if test -n "$ac_ct_CXX"; then
17194 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17195else
17196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17197for as_dir in $PATH
17198do
17199 IFS=$as_save_IFS
17200 test -z "$as_dir" && as_dir=.
17201 for ac_exec_ext in '' $ac_executable_extensions; do
17202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17203 ac_cv_prog_ac_ct_CXX="$ac_prog"
17204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17205 break 2
17206 fi
17207done
17208done
17209IFS=$as_save_IFS
17210
17211fi
17212fi
17213ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17214if test -n "$ac_ct_CXX"; then
17215 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17216echo "${ECHO_T}$ac_ct_CXX" >&6; }
17217else
17218 { echo "$as_me:$LINENO: result: no" >&5
17219echo "${ECHO_T}no" >&6; }
17220fi
17221
17222
17223 test -n "$ac_ct_CXX" && break
17224done
17225
17226 if test "x$ac_ct_CXX" = x; then
17227 CXX="g++"
17228 else
17229 case $cross_compiling:$ac_tool_warned in
17230yes:)
17231{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17232whose name does not start with the host triplet. If you think this
17233configuration is useful to you, please write to autoconf@gnu.org." >&5
17234echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17235whose name does not start with the host triplet. If you think this
17236configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17237ac_tool_warned=yes ;;
17238esac
17239 CXX=$ac_ct_CXX
17240 fi
17241fi
17242
17243 fi
17244fi
17245# Provide some information about the compiler.
17246echo "$as_me:$LINENO: checking for C++ compiler version" >&5
17247ac_compiler=`set X $ac_compile; echo $2`
17248{ (ac_try="$ac_compiler --version >&5"
17249case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17252esac
17253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_compiler --version >&5") 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }
17258{ (ac_try="$ac_compiler -v >&5"
17259case "(($ac_try" in
17260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261 *) ac_try_echo=$ac_try;;
17262esac
17263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264 (eval "$ac_compiler -v >&5") 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }
17268{ (ac_try="$ac_compiler -V >&5"
17269case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17272esac
17273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_compiler -V >&5") 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }
17278
17279{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17280echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
17281if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17283else
17284 cat >conftest.$ac_ext <<_ACEOF
17285/* confdefs.h. */
17286_ACEOF
17287cat confdefs.h >>conftest.$ac_ext
17288cat >>conftest.$ac_ext <<_ACEOF
17289/* end confdefs.h. */
17290
17291int
17292main ()
17293{
17294#ifndef __GNUC__
17295 choke me
17296#endif
17297
17298 ;
17299 return 0;
17300}
17301_ACEOF
17302rm -f conftest.$ac_objext
17303if { (ac_try="$ac_compile"
17304case "(($ac_try" in
17305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306 *) ac_try_echo=$ac_try;;
17307esac
17308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17309 (eval "$ac_compile") 2>conftest.er1
17310 ac_status=$?
17311 grep -v '^ *+' conftest.er1 >conftest.err
17312 rm -f conftest.er1
17313 cat conftest.err >&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } && {
17316 test -z "$ac_cxx_werror_flag" ||
17317 test ! -s conftest.err
17318 } && test -s conftest.$ac_objext; then
17319 ac_compiler_gnu=yes
17320else
17321 echo "$as_me: failed program was:" >&5
17322sed 's/^/| /' conftest.$ac_ext >&5
17323
17324 ac_compiler_gnu=no
17325fi
17326
17327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17329
17330fi
17331{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17332echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17333GXX=`test $ac_compiler_gnu = yes && echo yes`
17334ac_test_CXXFLAGS=${CXXFLAGS+set}
17335ac_save_CXXFLAGS=$CXXFLAGS
17336{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17337echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17338if test "${ac_cv_prog_cxx_g+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17340else
17341 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17342 ac_cxx_werror_flag=yes
17343 ac_cv_prog_cxx_g=no
17344 CXXFLAGS="-g"
17345 cat >conftest.$ac_ext <<_ACEOF
17346/* confdefs.h. */
17347_ACEOF
17348cat confdefs.h >>conftest.$ac_ext
17349cat >>conftest.$ac_ext <<_ACEOF
17350/* end confdefs.h. */
17351
17352int
17353main ()
17354{
17355
17356 ;
17357 return 0;
17358}
17359_ACEOF
17360rm -f conftest.$ac_objext
17361if { (ac_try="$ac_compile"
17362case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365esac
17366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_compile") 2>conftest.er1
17368 ac_status=$?
17369 grep -v '^ *+' conftest.er1 >conftest.err
17370 rm -f conftest.er1
17371 cat conftest.err >&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } && {
17374 test -z "$ac_cxx_werror_flag" ||
17375 test ! -s conftest.err
17376 } && test -s conftest.$ac_objext; then
17377 ac_cv_prog_cxx_g=yes
17378else
17379 echo "$as_me: failed program was:" >&5
17380sed 's/^/| /' conftest.$ac_ext >&5
17381
17382 CXXFLAGS=""
17383 cat >conftest.$ac_ext <<_ACEOF
17384/* confdefs.h. */
17385_ACEOF
17386cat confdefs.h >>conftest.$ac_ext
17387cat >>conftest.$ac_ext <<_ACEOF
17388/* end confdefs.h. */
17389
17390int
17391main ()
17392{
17393
17394 ;
17395 return 0;
17396}
17397_ACEOF
17398rm -f conftest.$ac_objext
17399if { (ac_try="$ac_compile"
17400case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17403esac
17404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_compile") 2>conftest.er1
17406 ac_status=$?
17407 grep -v '^ *+' conftest.er1 >conftest.err
17408 rm -f conftest.er1
17409 cat conftest.err >&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); } && {
17412 test -z "$ac_cxx_werror_flag" ||
17413 test ! -s conftest.err
17414 } && test -s conftest.$ac_objext; then
17415 :
17416else
17417 echo "$as_me: failed program was:" >&5
17418sed 's/^/| /' conftest.$ac_ext >&5
17419
17420 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17421 CXXFLAGS="-g"
17422 cat >conftest.$ac_ext <<_ACEOF
17423/* confdefs.h. */
17424_ACEOF
17425cat confdefs.h >>conftest.$ac_ext
17426cat >>conftest.$ac_ext <<_ACEOF
17427/* end confdefs.h. */
17428
17429int
17430main ()
17431{
17432
17433 ;
17434 return 0;
17435}
17436_ACEOF
17437rm -f conftest.$ac_objext
17438if { (ac_try="$ac_compile"
17439case "(($ac_try" in
17440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441 *) ac_try_echo=$ac_try;;
17442esac
17443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17444 (eval "$ac_compile") 2>conftest.er1
17445 ac_status=$?
17446 grep -v '^ *+' conftest.er1 >conftest.err
17447 rm -f conftest.er1
17448 cat conftest.err >&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } && {
17451 test -z "$ac_cxx_werror_flag" ||
17452 test ! -s conftest.err
17453 } && test -s conftest.$ac_objext; then
17454 ac_cv_prog_cxx_g=yes
17455else
17456 echo "$as_me: failed program was:" >&5
17457sed 's/^/| /' conftest.$ac_ext >&5
17458
17459
17460fi
17461
17462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17463fi
17464
17465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17466fi
17467
17468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17469 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17470fi
17471{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17472echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17473if test "$ac_test_CXXFLAGS" = set; then
17474 CXXFLAGS=$ac_save_CXXFLAGS
17475elif test $ac_cv_prog_cxx_g = yes; then
17476 if test "$GXX" = yes; then
17477 CXXFLAGS="-g -O2"
17478 else
17479 CXXFLAGS="-g"
17480 fi
17481else
17482 if test "$GXX" = yes; then
17483 CXXFLAGS="-O2"
17484 else
17485 CXXFLAGS=
17486 fi
17487fi
17488ac_ext=c
17489ac_cpp='$CPP $CPPFLAGS'
17490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17492ac_compiler_gnu=$ac_cv_c_compiler_gnu
17493
17494depcc="$CXX" am_compiler_list=
17495
17496{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
17497echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
17498if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17500else
17501 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17502 # We make a subdir and do the tests there. Otherwise we can end up
17503 # making bogus files that we don't know about and never remove. For
17504 # instance it was reported that on HP-UX the gcc test will end up
17505 # making a dummy file named `D' -- because `-MD' means `put the output
17506 # in D'.
17507 mkdir conftest.dir
17508 # Copy depcomp to subdir because otherwise we won't find it if we're
17509 # using a relative directory.
17510 cp "$am_depcomp" conftest.dir
17511 cd conftest.dir
17512 # We will build objects and dependencies in a subdirectory because
17513 # it helps to detect inapplicable dependency modes. For instance
17514 # both Tru64's cc and ICC support -MD to output dependencies as a
17515 # side effect of compilation, but ICC will put the dependencies in
17516 # the current directory while Tru64 will put them in the object
17517 # directory.
17518 mkdir sub
17519
17520 am_cv_CXX_dependencies_compiler_type=none
17521 if test "$am_compiler_list" = ""; then
17522 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17523 fi
17524 for depmode in $am_compiler_list; do
17525 # Setup a source with many dependencies, because some compilers
17526 # like to wrap large dependency lists on column 80 (with \), and
17527 # we should not choose a depcomp mode which is confused by this.
17528 #
17529 # We need to recreate these files for each test, as the compiler may
17530 # overwrite some of them when testing with obscure command lines.
17531 # This happens at least with the AIX C compiler.
17532 : > sub/conftest.c
17533 for i in 1 2 3 4 5 6; do
17534 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17535 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17536 # Solaris 8's {/usr,}/bin/sh.
17537 touch sub/conftst$i.h
17538 done
17539 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17540
17541 case $depmode in
17542 nosideeffect)
17543 # after this tag, mechanisms are not by side-effect, so they'll
17544 # only be used when explicitly requested
17545 if test "x$enable_dependency_tracking" = xyes; then
17546 continue
17547 else
17548 break
17549 fi
17550 ;;
17551 none) break ;;
17552 esac
17553 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17554 # mode. It turns out that the SunPro C++ compiler does not properly
17555 # handle `-M -o', and we need to detect this.
17556 if depmode=$depmode \
17557 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
17558 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17559 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
17560 >/dev/null 2>conftest.err &&
17561 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17562 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
17563 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17564 # icc doesn't choke on unknown options, it will just issue warnings
17565 # or remarks (even with -Werror). So we grep stderr for any message
17566 # that says an option was ignored or not supported.
17567 # When given -MP, icc 7.0 and 7.1 complain thusly:
17568 # icc: Command line warning: ignoring option '-M'; no argument required
17569 # The diagnosis changed in icc 8.0:
17570 # icc: Command line remark: option '-MP' not supported
17571 if (grep 'ignoring option' conftest.err ||
17572 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17573 am_cv_CXX_dependencies_compiler_type=$depmode
17574 break
17575 fi
17576 fi
17577 done
17578
17579 cd ..
17580 rm -rf conftest.dir
17581else
17582 am_cv_CXX_dependencies_compiler_type=none
17583fi
17584
17585fi
17586{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
17587echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
17588CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17589
17590
17591
17592if
17593 test "x$enable_dependency_tracking" != xno \
17594 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17595 am__fastdepCXX_TRUE=
17596 am__fastdepCXX_FALSE='#'
17597else
17598 am__fastdepCXX_TRUE='#'
17599 am__fastdepCXX_FALSE=
17600fi
17601
17602
17603ac_ext=cpp
17604ac_cpp='$CXXCPP $CPPFLAGS'
17605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17608
17609archive_cmds_need_lc_CXX=no
17610allow_undefined_flag_CXX=
17611always_export_symbols_CXX=no
17612archive_expsym_cmds_CXX=
17613export_dynamic_flag_spec_CXX=
17614hardcode_direct_CXX=no
17615hardcode_libdir_flag_spec_CXX=
17616hardcode_libdir_flag_spec_ld_CXX=
17617hardcode_libdir_separator_CXX=
17618hardcode_minus_L_CXX=no
17619hardcode_shlibpath_var_CXX=unsupported
17620hardcode_automatic_CXX=no
17621inherit_rpath_CXX=no
17622module_cmds_CXX=
17623module_expsym_cmds_CXX=
17624link_all_deplibs_CXX=unknown
17625old_archive_cmds_CXX=$old_archive_cmds
17626no_undefined_flag_CXX=
17627whole_archive_flag_spec_CXX=
17628enable_shared_with_static_runtimes_CXX=no
17629
17630# Source file extension for C++ test sources.
17631ac_ext=cpp
17632
17633# Object file extension for compiled C++ test sources.
17634objext=o
17635objext_CXX=$objext
17636
17637# No sense in running all these tests if we already determined that
17638# the CXX compiler isn't working. Some variables (like enable_shared)
17639# are currently assumed to apply to all compilers on this platform,
17640# and will be corrupted by setting them based on a non-working compiler.
17641if test "$_lt_caught_CXX_error" != yes; then
17642 # Code to be used in simple compile tests
17643 lt_simple_compile_test_code="int some_variable = 0;\n"
17644
17645 # Code to be used in simple link tests
17646 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17647
17648 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17649
17650
17651
17652
17653
17654
17655# If no C compiler was specified, use CC.
17656LTCC=${LTCC-"$CC"}
17657
17658# If no C compiler flags were specified, use CFLAGS.
17659LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17660
17661# Allow CC to be a program name with arguments.
17662compiler=$CC
17663
17664
17665 # save warnings/boilerplate of simple test code
17666 ac_outfile=conftest.$ac_objext
17667printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17668eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17669_lt_compiler_boilerplate=`cat conftest.err`
17670$RM conftest*
17671
17672 ac_outfile=conftest.$ac_objext
17673printf "$lt_simple_link_test_code" >conftest.$ac_ext
17674eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17675_lt_linker_boilerplate=`cat conftest.err`
17676$RM conftest*
17677
17678
17679 # Allow CC to be a program name with arguments.
17680 lt_save_CC=$CC
17681 lt_save_LD=$LD
17682 lt_save_GCC=$GCC
17683 GCC=$GXX
17684 lt_save_with_gnu_ld=$with_gnu_ld
17685 lt_save_path_LD=$lt_cv_path_LD
17686 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17687 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17688 else
17689 $as_unset lt_cv_prog_gnu_ld
17690 fi
17691 if test -n "${lt_cv_path_LDCXX+set}"; then
17692 lt_cv_path_LD=$lt_cv_path_LDCXX
17693 else
17694 $as_unset lt_cv_path_LD
17695 fi
17696 test -z "${LDCXX+set}" || LD=$LDCXX
17697 CC=${CXX-"c++"}
17698 compiler=$CC
17699 compiler_CXX=$CC
17700 for cc_temp in $compiler""; do
17701 case $cc_temp in
17702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17704 \-*) ;;
17705 *) break;;
17706 esac
17707done
17708cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17709
17710
17711 if test -n "$compiler"; then
17712 # We don't want -fno-exception when compiling C++ code, so set the
17713 # no_builtin_flag separately
17714 if test "$GXX" = yes; then
17715 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17716 else
17717 lt_prog_compiler_no_builtin_flag_CXX=
17718 fi
17719
17720 if test "$GXX" = yes; then
17721 # Set up default GNU C++ configuration
17722
17723
17724
17725# Check whether --with-gnu-ld was given.
17726if test "${with_gnu_ld+set}" = set; then
17727 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17728else
17729 with_gnu_ld=no
17730fi
17731
17732ac_prog=ld
17733if test "$GCC" = yes; then
17734 # Check if gcc -print-prog-name=ld gives a path.
17735 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17736echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17737 case $host in
17738 *-*-mingw*)
17739 # gcc leaves a trailing carriage return which upsets mingw
17740 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17741 *)
17742 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17743 esac
17744 case $ac_prog in
17745 # Accept absolute paths.
17746 [\\/]* | ?:[\\/]*)
17747 re_direlt='/[^/][^/]*/\.\./'
17748 # Canonicalize the pathname of ld
17749 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17750 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17751 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17752 done
17753 test -z "$LD" && LD="$ac_prog"
17754 ;;
17755 "")
17756 # If it fails, then pretend we aren't using GCC.
17757 ac_prog=ld
17758 ;;
17759 *)
17760 # If it is relative, then search for the first ld in PATH.
17761 with_gnu_ld=unknown
17762 ;;
17763 esac
17764elif test "$with_gnu_ld" = yes; then
17765 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17766echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17767else
17768 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17769echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17770fi
17771if test "${lt_cv_path_LD+set}" = set; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17773else
17774 if test -z "$LD"; then
17775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17776 for ac_dir in $PATH; do
17777 IFS="$lt_save_ifs"
17778 test -z "$ac_dir" && ac_dir=.
17779 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17780 lt_cv_path_LD="$ac_dir/$ac_prog"
17781 # Check to see if the program is GNU ld. I'd rather use --version,
17782 # but apparently some variants of GNU ld only accept -v.
17783 # Break only if it was the GNU/non-GNU ld that we prefer.
17784 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17785 *GNU* | *'with BFD'*)
17786 test "$with_gnu_ld" != no && break
17787 ;;
17788 *)
17789 test "$with_gnu_ld" != yes && break
17790 ;;
17791 esac
17792 fi
17793 done
17794 IFS="$lt_save_ifs"
17795else
17796 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17797fi
17798fi
17799
17800LD="$lt_cv_path_LD"
17801if test -n "$LD"; then
17802 { echo "$as_me:$LINENO: result: $LD" >&5
17803echo "${ECHO_T}$LD" >&6; }
17804else
17805 { echo "$as_me:$LINENO: result: no" >&5
17806echo "${ECHO_T}no" >&6; }
17807fi
17808test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17809echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17810 { (exit 1); exit 1; }; }
17811{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17812echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17813if test "${lt_cv_prog_gnu_ld+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17815else
17816 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17817case `$LD -v 2>&1 </dev/null` in
17818*GNU* | *'with BFD'*)
17819 lt_cv_prog_gnu_ld=yes
17820 ;;
17821*)
17822 lt_cv_prog_gnu_ld=no
17823 ;;
17824esac
17825fi
17826{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17827echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17828with_gnu_ld=$lt_cv_prog_gnu_ld
17829
17830
17831
17832
17833
17834
17835
17836 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17837 # archiving commands below assume that GNU ld is being used.
17838 if test "$with_gnu_ld" = yes; then
17839 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17840 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17841
17842 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17843 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17844
17845 # If archive_cmds runs LD, not CC, wlarc should be empty
17846 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17847 # investigate it a little bit more. (MM)
17848 wlarc='${wl}'
17849
17850 # ancient GNU ld didn't support --whole-archive et. al.
17851 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17852 $GREP 'no-whole-archive' > /dev/null; then
17853 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17854 else
17855 whole_archive_flag_spec_CXX=
17856 fi
17857 else
17858 with_gnu_ld=no
17859 wlarc=
17860
17861 # A generic and very simple default shared library creation
17862 # command for GNU C++ for the case where it uses the native
17863 # linker, instead of GNU ld. If possible, this setting should
17864 # overridden to take advantage of the native linker features on
17865 # the platform it is being used on.
17866 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17867 fi
17868
17869 # Commands to make compiler produce verbose output that lists
17870 # what "hidden" libraries, object files and flags are used when
17871 # linking a shared library.
17872 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17873
17874 else
17875 GXX=no
17876 with_gnu_ld=no
17877 wlarc=
17878 fi
17879
17880 # PORTME: fill in a description of your system's C++ link characteristics
17881 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17882echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17883 ld_shlibs_CXX=yes
17884 case $host_os in
17885 aix3*)
17886 # FIXME: insert proper C++ library support
17887 ld_shlibs_CXX=no
17888 ;;
17889 aix4* | aix5*)
17890 if test "$host_cpu" = ia64; then
17891 # On IA64, the linker does run time linking by default, so we don't
17892 # have to do anything special.
17893 aix_use_runtimelinking=no
17894 exp_sym_flag='-Bexport'
17895 no_entry_flag=""
17896 else
17897 aix_use_runtimelinking=no
17898
17899 # Test if we are trying to use run time linking or normal
17900 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17901 # need to do runtime linking.
17902 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17903 for ld_flag in $LDFLAGS; do
17904 case $ld_flag in
17905 *-brtl*)
17906 aix_use_runtimelinking=yes
17907 break
17908 ;;
17909 esac
17910 done
17911 ;;
17912 esac
17913
17914 exp_sym_flag='-bexport'
17915 no_entry_flag='-bnoentry'
17916 fi
17917
17918 # When large executables or shared objects are built, AIX ld can
17919 # have problems creating the table of contents. If linking a library
17920 # or program results in "error TOC overflow" add -mminimal-toc to
17921 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17922 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17923
17924 archive_cmds_CXX=''
17925 hardcode_direct_CXX=yes
17926 hardcode_libdir_separator_CXX=':'
17927 link_all_deplibs_CXX=yes
17928 file_list_spec_CXX='${wl}-f,'
17929
17930 if test "$GXX" = yes; then
17931 case $host_os in aix4.[012]|aix4.[012].*)
17932 # We only want to do this on AIX 4.2 and lower, the check
17933 # below for broken collect2 doesn't work under 4.3+
17934 collect2name=`${CC} -print-prog-name=collect2`
17935 if test -f "$collect2name" &&
17936 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17937 then
17938 # We have reworked collect2
17939 hardcode_direct_CXX=yes
17940 else
17941 # We have old collect2
17942 hardcode_direct_CXX=unsupported
17943 # It fails to find uninstalled libraries when the uninstalled
17944 # path is not listed in the libpath. Setting hardcode_minus_L
17945 # to unsupported forces relinking
17946 hardcode_minus_L_CXX=yes
17947 hardcode_libdir_flag_spec_CXX='-L$libdir'
17948 hardcode_libdir_separator_CXX=
17949 fi
17950 esac
17951 shared_flag='-shared'
17952 if test "$aix_use_runtimelinking" = yes; then
17953 shared_flag="$shared_flag "'${wl}-G'
17954 fi
17955 else
17956 # not using gcc
17957 if test "$host_cpu" = ia64; then
17958 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17959 # chokes on -Wl,-G. The following line is correct:
17960 shared_flag='-G'
17961 else
17962 if test "$aix_use_runtimelinking" = yes; then
17963 shared_flag='${wl}-G'
17964 else
17965 shared_flag='${wl}-bM:SRE'
17966 fi
17967 fi
17968 fi
17969
17970 # It seems that -bexpall does not export symbols beginning with
17971 # underscore (_), so it is better to generate a list of symbols to
17972 # export.
17973 always_export_symbols_CXX=yes
17974 if test "$aix_use_runtimelinking" = yes; then
17975 # Warning - without using the other runtime loading flags (-brtl),
17976 # -berok will link without error, but may produce a broken library.
17977 allow_undefined_flag_CXX='-berok'
17978 # Determine the default libpath from the value encoded in an empty
17979 # executable.
17980 cat >conftest.$ac_ext <<_ACEOF
17981/* confdefs.h. */
17982_ACEOF
17983cat confdefs.h >>conftest.$ac_ext
17984cat >>conftest.$ac_ext <<_ACEOF
17985/* end confdefs.h. */
17986
17987int
17988main ()
17989{
17990
17991 ;
17992 return 0;
17993}
17994_ACEOF
17995rm -f conftest.$ac_objext conftest$ac_exeext
17996if { (ac_try="$ac_link"
17997case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18000esac
18001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_link") 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } && {
18009 test -z "$ac_cxx_werror_flag" ||
18010 test ! -s conftest.err
18011 } && test -s conftest$ac_exeext &&
18012 $as_test_x conftest$ac_exeext; then
18013
18014lt_aix_libpath_sed='
18015 /Import File Strings/,/^$/ {
18016 /^0/ {
18017 s/^0 *\(.*\)$/\1/
18018 p
18019 }
18020 }'
18021aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18022# Check for a 64-bit object if we didn't find anything.
18023if test -z "$aix_libpath"; then
18024 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18025fi
18026else
18027 echo "$as_me: failed program was:" >&5
18028sed 's/^/| /' conftest.$ac_ext >&5
18029
18030
18031fi
18032
18033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18034 conftest$ac_exeext conftest.$ac_ext
18035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18036
18037 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18038
18039 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18040 else
18041 if test "$host_cpu" = ia64; then
18042 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18043 allow_undefined_flag_CXX="-z nodefs"
18044 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18045 else
18046 # Determine the default libpath from the value encoded in an
18047 # empty executable.
18048 cat >conftest.$ac_ext <<_ACEOF
18049/* confdefs.h. */
18050_ACEOF
18051cat confdefs.h >>conftest.$ac_ext
18052cat >>conftest.$ac_ext <<_ACEOF
18053/* end confdefs.h. */
18054
18055int
18056main ()
18057{
18058
18059 ;
18060 return 0;
18061}
18062_ACEOF
18063rm -f conftest.$ac_objext conftest$ac_exeext
18064if { (ac_try="$ac_link"
18065case "(($ac_try" in
18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067 *) ac_try_echo=$ac_try;;
18068esac
18069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070 (eval "$ac_link") 2>conftest.er1
18071 ac_status=$?
18072 grep -v '^ *+' conftest.er1 >conftest.err
18073 rm -f conftest.er1
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } && {
18077 test -z "$ac_cxx_werror_flag" ||
18078 test ! -s conftest.err
18079 } && test -s conftest$ac_exeext &&
18080 $as_test_x conftest$ac_exeext; then
18081
18082lt_aix_libpath_sed='
18083 /Import File Strings/,/^$/ {
18084 /^0/ {
18085 s/^0 *\(.*\)$/\1/
18086 p
18087 }
18088 }'
18089aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18090# Check for a 64-bit object if we didn't find anything.
18091if test -z "$aix_libpath"; then
18092 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18093fi
18094else
18095 echo "$as_me: failed program was:" >&5
18096sed 's/^/| /' conftest.$ac_ext >&5
18097
18098
18099fi
18100
18101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18102 conftest$ac_exeext conftest.$ac_ext
18103if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18104
18105 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18106 # Warning - without using the other run time loading flags,
18107 # -berok will link without error, but may produce a broken library.
18108 no_undefined_flag_CXX=' ${wl}-bernotok'
18109 allow_undefined_flag_CXX=' ${wl}-berok'
18110 # Exported symbols can be pulled into shared objects from archives
18111 whole_archive_flag_spec_CXX='$convenience'
18112 archive_cmds_need_lc_CXX=yes
18113 # This is similar to how AIX traditionally builds its shared
18114 # libraries.
18115 archive_expsym_cmds_CXX="\$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'
18116 fi
18117 fi
18118 ;;
18119
18120 beos*)
18121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18122 allow_undefined_flag_CXX=unsupported
18123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18124 # support --undefined. This deserves some investigation. FIXME
18125 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18126 else
18127 ld_shlibs_CXX=no
18128 fi
18129 ;;
18130
18131 chorus*)
18132 case $cc_basename in
18133 *)
18134 # FIXME: insert proper C++ library support
18135 ld_shlibs_CXX=no
18136 ;;
18137 esac
18138 ;;
18139
18140 cygwin* | mingw* | pw32*)
18141 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18142 # as there is no search path for DLLs.
18143 hardcode_libdir_flag_spec_CXX='-L$libdir'
18144 allow_undefined_flag_CXX=unsupported
18145 always_export_symbols_CXX=no
18146 enable_shared_with_static_runtimes_CXX=yes
18147
18148 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18149 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18150 # If the export-symbols file already is a .def file (1st line
18151 # is EXPORTS), use it as is; otherwise, prepend...
18152 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18153 cp $export_symbols $output_objdir/$soname.def;
18154 else
18155 echo EXPORTS > $output_objdir/$soname.def;
18156 cat $export_symbols >> $output_objdir/$soname.def;
18157 fi~
18158 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18159 else
18160 ld_shlibs_CXX=no
18161 fi
18162 ;;
18163 darwin* | rhapsody*)
18164 case $host_os in
18165 rhapsody* | darwin1.[012])
18166 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18167 ;;
18168 *) # Darwin 1.3 on
18169 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
18170 10.[012])
18171 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18172 ;;
18173 10.*)
18174 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18175 ;;
18176 esac
18177 ;;
18178 esac
18179 archive_cmds_need_lc_CXX=no
18180 hardcode_direct_CXX=no
18181 hardcode_automatic_CXX=yes
18182 hardcode_shlibpath_var_CXX=unsupported
18183 whole_archive_flag_spec_CXX=''
18184 link_all_deplibs_CXX=yes
18185
18186 if test "$GXX" = yes ; then
18187 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18189else
18190 lt_cv_apple_cc_single_mod=no
18191 if test -z "${LT_MULTI_MODULE}"; then
18192 # By default we will add the -single_module flag. You can override
18193 # by either setting the environment variable LT_MULTI_MODULE
18194 # non-empty at configure time, or by adding -multi-module to the
18195 # link flags.
18196 echo "int foo(void){return 1;}" > conftest.c
18197 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
18198 -dynamiclib ${wl}-single_module conftest.c
18199 if test -f libconftest.dylib; then
18200 lt_cv_apple_cc_single_mod=yes
18201 rm libconftest.dylib
18202 fi
18203 rm conftest.$ac_ext
18204 fi
18205fi
18206
18207 output_verbose_link_cmd=echo
18208 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
18209 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18210 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18211 else
18212 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18213 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18214 fi
18215 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18216 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18217 else
18218 case $cc_basename in
18219 xlc*)
18220 output_verbose_link_cmd=echo
18221 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
18222 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18223 # Don't fix this by using the ld -exported_symbols_list flag,
18224 # it doesn't exist in older darwin lds
18225 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18226 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18227 ;;
18228 *)
18229 ld_shlibs_CXX=no
18230 ;;
18231 esac
18232 fi
18233 ;;
18234
18235 dgux*)
18236 case $cc_basename in
18237 ec++*)
18238 # FIXME: insert proper C++ library support
18239 ld_shlibs_CXX=no
18240 ;;
18241 ghcx*)
18242 # Green Hills C++ Compiler
18243 # FIXME: insert proper C++ library support
18244 ld_shlibs_CXX=no
18245 ;;
18246 *)
18247 # FIXME: insert proper C++ library support
18248 ld_shlibs_CXX=no
18249 ;;
18250 esac
18251 ;;
18252
18253 freebsd[12]*)
18254 # C++ shared libraries reported to be fairly broken before
18255 # switch to ELF
18256 ld_shlibs_CXX=no
18257 ;;
18258
18259 freebsd-elf*)
18260 archive_cmds_need_lc_CXX=no
18261 ;;
18262
18263 freebsd* | kfreebsd*-gnu | dragonfly*)
18264 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18265 # conventions
18266 ld_shlibs_CXX=yes
18267 ;;
18268
18269 gnu*)
18270 ;;
18271
18272 hpux9*)
18273 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18274 hardcode_libdir_separator_CXX=:
18275 export_dynamic_flag_spec_CXX='${wl}-E'
18276 hardcode_direct_CXX=yes
18277 hardcode_minus_L_CXX=yes # Not in the search PATH,
18278 # but as the default
18279 # location of the library.
18280
18281 case $cc_basename in
18282 CC*)
18283 # FIXME: insert proper C++ library support
18284 ld_shlibs_CXX=no
18285 ;;
18286 aCC*)
18287 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18288 # Commands to make compiler produce verbose output that lists
18289 # what "hidden" libraries, object files and flags are used when
18290 # linking a shared library.
18291 #
18292 # There doesn't appear to be a way to prevent this compiler from
18293 # explicitly linking system object files so we need to strip them
18294 # from the output so that they don't get included in the library
18295 # dependencies.
18296 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
18297 ;;
18298 *)
18299 if test "$GXX" = yes; then
18300 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18301 else
18302 # FIXME: insert proper C++ library support
18303 ld_shlibs_CXX=no
18304 fi
18305 ;;
18306 esac
18307 ;;
18308
18309 hpux10*|hpux11*)
18310 if test $with_gnu_ld = no; then
18311 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18312 hardcode_libdir_separator_CXX=:
18313
18314 case $host_cpu in
18315 hppa*64*|ia64*)
18316 ;;
18317 *)
18318 export_dynamic_flag_spec_CXX='${wl}-E'
18319 ;;
18320 esac
18321 fi
18322 case $host_cpu in
18323 hppa*64*|ia64*)
18324 hardcode_direct_CXX=no
18325 hardcode_shlibpath_var_CXX=no
18326 ;;
18327 *)
18328 hardcode_direct_CXX=yes
18329 hardcode_minus_L_CXX=yes # Not in the search PATH,
18330 # but as the default
18331 # location of the library.
18332 ;;
18333 esac
18334
18335 case $cc_basename in
18336 CC*)
18337 # FIXME: insert proper C++ library support
18338 ld_shlibs_CXX=no
18339 ;;
18340 aCC*)
18341 case $host_cpu in
18342 hppa*64*)
18343 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18344 ;;
18345 ia64*)
18346 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18347 ;;
18348 *)
18349 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18350 ;;
18351 esac
18352 # Commands to make compiler produce verbose output that lists
18353 # what "hidden" libraries, object files and flags are used when
18354 # linking a shared library.
18355 #
18356 # There doesn't appear to be a way to prevent this compiler from
18357 # explicitly linking system object files so we need to strip them
18358 # from the output so that they don't get included in the library
18359 # dependencies.
18360 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
18361 ;;
18362 *)
18363 if test "$GXX" = yes; then
18364 if test $with_gnu_ld = no; then
18365 case $host_cpu in
18366 hppa*64*)
18367 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18368 ;;
18369 ia64*)
18370 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18371 ;;
18372 *)
18373 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18374 ;;
18375 esac
18376 fi
18377 else
18378 # FIXME: insert proper C++ library support
18379 ld_shlibs_CXX=no
18380 fi
18381 ;;
18382 esac
18383 ;;
18384
18385 interix3*)
18386 hardcode_direct_CXX=no
18387 hardcode_shlibpath_var_CXX=no
18388 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18389 export_dynamic_flag_spec_CXX='${wl}-E'
18390 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18391 # Instead, shared libraries are loaded at an image base (0x10000000 by
18392 # default) and relocated if they conflict, which is a slow very memory
18393 # consuming and fragmenting process. To avoid this, we pick a random,
18394 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18395 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18396 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18397 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18398 ;;
18399 irix5* | irix6*)
18400 case $cc_basename in
18401 CC*)
18402 # SGI C++
18403 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18404
18405 # Archives containing C++ object files must be created using
18406 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18407 # necessary to make sure instantiated templates are included
18408 # in the archive.
18409 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18410 ;;
18411 *)
18412 if test "$GXX" = yes; then
18413 if test "$with_gnu_ld" = no; then
18414 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18415 else
18416 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
18417 fi
18418 fi
18419 link_all_deplibs_CXX=yes
18420 ;;
18421 esac
18422 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18423 hardcode_libdir_separator_CXX=:
18424 inherit_rpath_CXX=yes
18425 ;;
18426
18427 linux*)
18428 case $cc_basename in
18429 KCC*)
18430 # Kuck and Associates, Inc. (KAI) C++ Compiler
18431
18432 # KCC will only create a shared library if the output file
18433 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18434 # to its proper name (with version) after linking.
18435 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18436 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
18437 # Commands to make compiler produce verbose output that lists
18438 # what "hidden" libraries, object files and flags are used when
18439 # linking a shared library.
18440 #
18441 # There doesn't appear to be a way to prevent this compiler from
18442 # explicitly linking system object files so we need to strip them
18443 # from the output so that they don't get included in the library
18444 # dependencies.
18445 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
18446
18447 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18448 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18449
18450 # Archives containing C++ object files must be created using
18451 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18452 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18453 ;;
18454 icpc* | ecpc* )
18455 # Intel C++
18456 with_gnu_ld=yes
18457 # version 8.0 and above of icpc choke on multiply defined symbols
18458 # if we add $predep_objects and $postdep_objects, however 7.1 and
18459 # earlier do not add the objects themselves.
18460 case `$CC -V 2>&1` in
18461 *"Version 7."*)
18462 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18463 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18464 ;;
18465 *) # Version 8.0 or newer
18466 tmp_idyn=
18467 case $host_cpu in
18468 ia64*) tmp_idyn=' -i_dynamic';;
18469 esac
18470 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18471 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18472 ;;
18473 esac
18474 archive_cmds_need_lc_CXX=no
18475 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18476 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18477 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18478 ;;
18479 pgCC*)
18480 # Portland Group C++ compiler
18481 case `$CC -V` in
18482 *pgCC\ [1-5]*)
18483 prelink_cmds_CXX='tpldir=Template.dir~
18484 rm -rf $tpldir~
18485 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18486 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18487 old_archive_cmds_CXX='tpldir=Template.dir~
18488 rm -rf $tpldir~
18489 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18490 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18491 $RANLIB $oldlib'
18492 archive_cmds_CXX='tpldir=Template.dir~
18493 rm -rf $tpldir~
18494 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18495 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18496 archive_expsym_cmds_CXX='tpldir=Template.dir~
18497 rm -rf $tpldir~
18498 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18499 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
18500 ;;
18501 *) # Version 6 will use weak symbols
18502 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18503 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
18504 ;;
18505 esac
18506
18507 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18508 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18509 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18510 ;;
18511 cxx*)
18512 # Compaq C++
18513 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18514 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
18515
18516 runpath_var=LD_RUN_PATH
18517 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18518 hardcode_libdir_separator_CXX=:
18519
18520 # Commands to make compiler produce verbose output that lists
18521 # what "hidden" libraries, object files and flags are used when
18522 # linking a shared library.
18523 #
18524 # There doesn't appear to be a way to prevent this compiler from
18525 # explicitly linking system object files so we need to strip them
18526 # from the output so that they don't get included in the library
18527 # dependencies.
18528 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
18529 ;;
18530 esac
18531 ;;
18532
18533 lynxos*)
18534 # FIXME: insert proper C++ library support
18535 ld_shlibs_CXX=no
18536 ;;
18537
18538 m88k*)
18539 # FIXME: insert proper C++ library support
18540 ld_shlibs_CXX=no
18541 ;;
18542
18543 mvs*)
18544 case $cc_basename in
18545 cxx*)
18546 # FIXME: insert proper C++ library support
18547 ld_shlibs_CXX=no
18548 ;;
18549 *)
18550 # FIXME: insert proper C++ library support
18551 ld_shlibs_CXX=no
18552 ;;
18553 esac
18554 ;;
18555
18556 netbsd*)
18557 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18558 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18559 wlarc=
18560 hardcode_libdir_flag_spec_CXX='-R$libdir'
18561 hardcode_direct_CXX=yes
18562 hardcode_shlibpath_var_CXX=no
18563 fi
18564 # Workaround some broken pre-1.5 toolchains
18565 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18566 ;;
18567
18568 *nto* | *qnx*)
18569 ld_shlibs_CXX=yes
18570 ;;
18571
18572 openbsd2*)
18573 # C++ shared libraries are fairly broken
18574 ld_shlibs_CXX=no
18575 ;;
18576
18577 openbsd*)
18578 hardcode_direct_CXX=yes
18579 hardcode_shlibpath_var_CXX=no
18580 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18581 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18582 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18583 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18584 export_dynamic_flag_spec_CXX='${wl}-E'
18585 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18586 fi
18587 output_verbose_link_cmd=echo
18588 ;;
18589
18590 osf3* | osf4* | osf5*)
18591 case $cc_basename in
18592 KCC*)
18593 # Kuck and Associates, Inc. (KAI) C++ Compiler
18594
18595 # KCC will only create a shared library if the output file
18596 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18597 # to its proper name (with version) after linking.
18598 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18599
18600 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18601 hardcode_libdir_separator_CXX=:
18602
18603 # Archives containing C++ object files must be created using
18604 # the KAI C++ compiler.
18605 case $host in
18606 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18607 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18608 esac
18609 ;;
18610 RCC*)
18611 # Rational C++ 2.4.1
18612 # FIXME: insert proper C++ library support
18613 ld_shlibs_CXX=no
18614 ;;
18615 cxx*)
18616 case $host in
18617 osf3*)
18618 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18619 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18620 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18621 ;;
18622 *)
18623 allow_undefined_flag_CXX=' -expect_unresolved \*'
18624 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18625 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18626 echo "-hidden">> $lib.exp~
18627 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
18628 $RM $lib.exp'
18629 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18630 ;;
18631 esac
18632
18633 hardcode_libdir_separator_CXX=:
18634
18635 # Commands to make compiler produce verbose output that lists
18636 # what "hidden" libraries, object files and flags are used when
18637 # linking a shared library.
18638 #
18639 # There doesn't appear to be a way to prevent this compiler from
18640 # explicitly linking system object files so we need to strip them
18641 # from the output so that they don't get included in the library
18642 # dependencies.
18643 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
18644 ;;
18645 *)
18646 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18647 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18648 case $host in
18649 osf3*)
18650 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18651 ;;
18652 *)
18653 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18654 ;;
18655 esac
18656
18657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18658 hardcode_libdir_separator_CXX=:
18659
18660 # Commands to make compiler produce verbose output that lists
18661 # what "hidden" libraries, object files and flags are used when
18662 # linking a shared library.
18663 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18664
18665 else
18666 # FIXME: insert proper C++ library support
18667 ld_shlibs_CXX=no
18668 fi
18669 ;;
18670 esac
18671 ;;
18672
18673 psos*)
18674 # FIXME: insert proper C++ library support
18675 ld_shlibs_CXX=no
18676 ;;
18677
18678 sunos4*)
18679 case $cc_basename in
18680 CC*)
18681 # Sun C++ 4.x
18682 # FIXME: insert proper C++ library support
18683 ld_shlibs_CXX=no
18684 ;;
18685 lcc*)
18686 # Lucid
18687 # FIXME: insert proper C++ library support
18688 ld_shlibs_CXX=no
18689 ;;
18690 *)
18691 # FIXME: insert proper C++ library support
18692 ld_shlibs_CXX=no
18693 ;;
18694 esac
18695 ;;
18696
18697 solaris*)
18698 case $cc_basename in
18699 CC*)
18700 # Sun C++ 4.2, 5.x and Centerline C++
18701 archive_cmds_need_lc_CXX=yes
18702 no_undefined_flag_CXX=' -zdefs'
18703 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18704 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18705 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18706
18707 hardcode_libdir_flag_spec_CXX='-R$libdir'
18708 hardcode_shlibpath_var_CXX=no
18709 case $host_os in
18710 solaris2.[0-5] | solaris2.[0-5].*) ;;
18711 *)
18712 # The C++ compiler is used as linker so we must use $wl
18713 # flag to pass the commands to the underlying system
18714 # linker. We must also pass each convenience library through
18715 # to the system linker between allextract/defaultextract.
18716 # The C++ compiler will combine linker options so we
18717 # cannot just pass the convenience library names through
18718 # without $wl.
18719 # Supported since Solaris 2.6 (maybe 2.5.1?)
18720 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
18721 ;;
18722 esac
18723 link_all_deplibs_CXX=yes
18724
18725 output_verbose_link_cmd='echo'
18726
18727 # Archives containing C++ object files must be created using
18728 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18729 # necessary to make sure instantiated templates are included
18730 # in the archive.
18731 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18732 ;;
18733 gcx*)
18734 # Green Hills C++ Compiler
18735 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18736
18737 # The C++ compiler must be used to create the archive.
18738 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18739 ;;
18740 *)
18741 # GNU C++ compiler with Solaris linker
18742 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18743 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18744 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18745 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18746 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18747 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18748
18749 # Commands to make compiler produce verbose output that lists
18750 # what "hidden" libraries, object files and flags are used when
18751 # linking a shared library.
18752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18753 else
18754 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18755 # platform.
18756 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18757 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18758 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18759
18760 # Commands to make compiler produce verbose output that lists
18761 # what "hidden" libraries, object files and flags are used when
18762 # linking a shared library.
18763 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18764 fi
18765
18766 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18767 fi
18768 ;;
18769 esac
18770 ;;
18771
18772 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18773 no_undefined_flag_CXX='${wl}-z,text'
18774 archive_cmds_need_lc_CXX=no
18775 hardcode_shlibpath_var_CXX=no
18776 runpath_var='LD_RUN_PATH'
18777
18778 case $cc_basename in
18779 CC*)
18780 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18781 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18782 ;;
18783 *)
18784 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18785 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18786 ;;
18787 esac
18788 ;;
18789
18790 sysv5* | sco3.2v5* | sco5v6*)
18791 # Note: We can NOT use -z defs as we might desire, because we do not
18792 # link with -lc, and that would cause any symbols used from libc to
18793 # always be unresolved, which means just about no library would
18794 # ever link correctly. If we're not using GNU ld we use -z text
18795 # though, which does catch some bad symbols but isn't as heavy-handed
18796 # as -z defs.
18797 no_undefined_flag_CXX='${wl}-z,text'
18798 allow_undefined_flag_CXX='${wl}-z,nodefs'
18799 archive_cmds_need_lc_CXX=no
18800 hardcode_shlibpath_var_CXX=no
18801 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18802 hardcode_libdir_separator_CXX=':'
18803 link_all_deplibs_CXX=yes
18804 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18805 runpath_var='LD_RUN_PATH'
18806
18807 case $cc_basename in
18808 CC*)
18809 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18810 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18811 ;;
18812 *)
18813 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18814 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18815 ;;
18816 esac
18817 ;;
18818
18819 tandem*)
18820 case $cc_basename in
18821 NCC*)
18822 # NonStop-UX NCC 3.20
18823 # FIXME: insert proper C++ library support
18824 ld_shlibs_CXX=no
18825 ;;
18826 *)
18827 # FIXME: insert proper C++ library support
18828 ld_shlibs_CXX=no
18829 ;;
18830 esac
18831 ;;
18832
18833 vxworks*)
18834 # FIXME: insert proper C++ library support
18835 ld_shlibs_CXX=no
18836 ;;
18837
18838 *)
18839 # FIXME: insert proper C++ library support
18840 ld_shlibs_CXX=no
18841 ;;
18842 esac
18843
18844 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18845echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18846 test "$ld_shlibs_CXX" = no && can_build_shared=no
18847
18848 GCC_CXX="$GXX"
18849 LD_CXX="$LD"
18850
18851 ## CAVEAT EMPTOR:
18852 ## There is no encapsulation within the following macros, do not change
18853 ## the running order or otherwise move them around unless you know exactly
18854 ## what you are doing...
18855 # Dependencies to place before and after the object being linked:
18856predep_objects_CXX=
18857postdep_objects_CXX=
18858predeps_CXX=
18859postdeps_CXX=
18860compiler_lib_search_path_CXX=
18861
18862cat > conftest.$ac_ext <<_LT_EOF
18863class Foo
18864{
18865public:
18866 Foo (void) { a = 0; }
18867private:
18868 int a;
18869};
18870_LT_EOF
18871
18872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18873 (eval $ac_compile) 2>&5
18874 ac_status=$?
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; then
18877 # Parse the compiler output and extract the necessary
18878 # objects, libraries and library flags.
18879
18880 # Sentinel used to keep track of whether or not we are before
18881 # the conftest object file.
18882 pre_test_object_deps_done=no
18883
18884 # The `*' in the case matches for architectures that use `case' in
18885 # $output_verbose_cmd can trigger glob expansion during the loop
18886 # eval without this substitution.
18887 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18888
18889 for p in `eval $output_verbose_link_cmd`; do
18890 case $p in
18891
18892 -L* | -R* | -l*)
18893 # Some compilers place space between "-{L,R}" and the path.
18894 # Remove the space.
18895 if test $p = "-L" ||
18896 test $p = "-R"; then
18897 prev=$p
18898 continue
18899 else
18900 prev=
18901 fi
18902
18903 if test "$pre_test_object_deps_done" = no; then
18904 case $p in
18905 -L* | -R*)
18906 # Internal compiler library paths should come after those
18907 # provided the user. The postdeps already come after the
18908 # user supplied libs so there is no need to process them.
18909 if test -z "$compiler_lib_search_path_CXX"; then
18910 compiler_lib_search_path_CXX="${prev}${p}"
18911 else
18912 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18913 fi
18914 ;;
18915 # The "-l" case would never come before the object being
18916 # linked, so don't bother handling this case.
18917 esac
18918 else
18919 if test -z "$postdeps_CXX"; then
18920 postdeps_CXX="${prev}${p}"
18921 else
18922 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18923 fi
18924 fi
18925 ;;
18926
18927 *.$objext)
18928 # This assumes that the test object file only shows up
18929 # once in the compiler output.
18930 if test "$p" = "conftest.$objext"; then
18931 pre_test_object_deps_done=yes
18932 continue
18933 fi
18934
18935 if test "$pre_test_object_deps_done" = no; then
18936 if test -z "$predep_objects_CXX"; then
18937 predep_objects_CXX="$p"
18938 else
18939 predep_objects_CXX="$predep_objects_CXX $p"
18940 fi
18941 else
18942 if test -z "$postdep_objects_CXX"; then
18943 postdep_objects_CXX="$p"
18944 else
18945 postdep_objects_CXX="$postdep_objects_CXX $p"
18946 fi
18947 fi
18948 ;;
18949
18950 *) ;; # Ignore the rest.
18951
18952 esac
18953 done
18954
18955 # Clean up.
18956 rm -f a.out a.exe
18957else
18958 echo "libtool.m4: error: problem compiling CXX test program"
18959fi
18960
18961$RM -f confest.$objext
18962
18963# PORTME: override above test on systems where it is broken
18964case $host_os in
18965interix3*)
18966 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18967 # hack all around it, let's just trust "g++" to DTRT.
18968 predep_objects_CXX=
18969 postdep_objects_CXX=
18970 postdeps_CXX=
18971 ;;
18972
18973solaris*)
18974 case $cc_basename in
18975 CC*)
18976 # Adding this requires a known-good setup of shared libraries for
18977 # Sun compiler versions before 5.6, else PIC objects from an old
18978 # archive will be linked into the output, leading to subtle bugs.
18979 postdeps_CXX='-lCstd -lCrun'
18980 ;;
18981 esac
18982 ;;
18983esac
18984
18985
18986case " $postdeps_CXX " in
18987*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18988esac
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015 lt_prog_compiler_wl_CXX=
19016lt_prog_compiler_pic_CXX=
19017lt_prog_compiler_static_CXX=
19018
19019{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19020echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19021
19022 # C++ specific cases for pic, static, wl, etc.
19023 if test "$GXX" = yes; then
19024 lt_prog_compiler_wl_CXX='-Wl,'
19025 lt_prog_compiler_static_CXX='-static'
19026
19027 case $host_os in
19028 aix*)
19029 # All AIX code is PIC.
19030 if test "$host_cpu" = ia64; then
19031 # AIX 5 now supports IA64 processor
19032 lt_prog_compiler_static_CXX='-Bstatic'
19033 fi
19034 ;;
19035 amigaos*)
19036 if test "$host_cpu" = m68k; then
19037 # FIXME: we need at least 68020 code to build shared libraries, but
19038 # adding the `-m68020' flag to GCC prevents building anything better,
19039 # like `-m68040'.
19040 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19041 fi
19042 ;;
19043 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19044 # PIC is the default for these OSes.
19045 ;;
19046 mingw* | os2* | pw32*)
19047 # This hack is so that the source file can tell whether it is being
19048 # built for inclusion in a dll (and should export symbols for example).
19049 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19050 ;;
19051 darwin* | rhapsody*)
19052 # PIC is the default on this platform
19053 # Common symbols not allowed in MH_DYLIB files
19054 lt_prog_compiler_pic_CXX='-fno-common'
19055 ;;
19056 *djgpp*)
19057 # DJGPP does not support shared libraries at all
19058 lt_prog_compiler_pic_CXX=
19059 ;;
19060 interix3*)
19061 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19062 # Instead, we relocate shared libraries at runtime.
19063 ;;
19064 sysv4*MP*)
19065 if test -d /usr/nec; then
19066 lt_prog_compiler_pic_CXX=-Kconform_pic
19067 fi
19068 ;;
19069 hpux*)
19070 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19071 # not for PA HP-UX.
19072 case $host_cpu in
19073 hppa*64*|ia64*)
19074 ;;
19075 *)
19076 lt_prog_compiler_pic_CXX='-fPIC'
19077 ;;
19078 esac
19079 ;;
19080 *qnx* | *nto*)
19081 # QNX uses GNU C++, but need to define -shared option too, otherwise
19082 # it will coredump.
19083 lt_prog_compiler_pic_CXX='-fPIC -shared'
19084 ;;
19085 *)
19086 lt_prog_compiler_pic_CXX='-fPIC'
19087 ;;
19088 esac
19089 else
19090 case $host_os in
19091 aix4* | aix5*)
19092 # All AIX code is PIC.
19093 if test "$host_cpu" = ia64; then
19094 # AIX 5 now supports IA64 processor
19095 lt_prog_compiler_static_CXX='-Bstatic'
19096 else
19097 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19098 fi
19099 ;;
19100 chorus*)
19101 case $cc_basename in
19102 cxch68*)
19103 # Green Hills C++ Compiler
19104 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19105 ;;
19106 esac
19107 ;;
19108 darwin*)
19109 # PIC is the default on this platform
19110 # Common symbols not allowed in MH_DYLIB files
19111 case $cc_basename in
19112 xlc*)
19113 lt_prog_compiler_pic_CXX='-qnocommon'
19114 lt_prog_compiler_wl_CXX='-Wl,'
19115 ;;
19116 esac
19117 ;;
19118 dgux*)
19119 case $cc_basename in
19120 ec++*)
19121 lt_prog_compiler_pic_CXX='-KPIC'
19122 ;;
19123 ghcx*)
19124 # Green Hills C++ Compiler
19125 lt_prog_compiler_pic_CXX='-pic'
19126 ;;
19127 *)
19128 ;;
19129 esac
19130 ;;
19131 freebsd* | kfreebsd*-gnu | dragonfly*)
19132 # FreeBSD uses GNU C++
19133 ;;
19134 hpux9* | hpux10* | hpux11*)
19135 case $cc_basename in
19136 CC*)
19137 lt_prog_compiler_wl_CXX='-Wl,'
19138 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19139 if test "$host_cpu" != ia64; then
19140 lt_prog_compiler_pic_CXX='+Z'
19141 fi
19142 ;;
19143 aCC*)
19144 lt_prog_compiler_wl_CXX='-Wl,'
19145 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19146 case $host_cpu in
19147 hppa*64*|ia64*)
19148 # +Z the default
19149 ;;
19150 *)
19151 lt_prog_compiler_pic_CXX='+Z'
19152 ;;
19153 esac
19154 ;;
19155 *)
19156 ;;
19157 esac
19158 ;;
19159 interix*)
19160 # This is c89, which is MS Visual C++ (no shared libs)
19161 # Anyone wants to do a port?
19162 ;;
19163 irix5* | irix6* | nonstopux*)
19164 case $cc_basename in
19165 CC*)
19166 lt_prog_compiler_wl_CXX='-Wl,'
19167 lt_prog_compiler_static_CXX='-non_shared'
19168 # CC pic flag -KPIC is the default.
19169 ;;
19170 *)
19171 ;;
19172 esac
19173 ;;
19174 linux*)
19175 case $cc_basename in
19176 KCC*)
19177 # KAI C++ Compiler
19178 lt_prog_compiler_wl_CXX='--backend -Wl,'
19179 lt_prog_compiler_pic_CXX='-fPIC'
19180 ;;
19181 icpc* | ecpc* )
19182 # Intel C++
19183 lt_prog_compiler_wl_CXX='-Wl,'
19184 lt_prog_compiler_pic_CXX='-KPIC'
19185 lt_prog_compiler_static_CXX='-static'
19186 ;;
19187 pgCC*)
19188 # Portland Group C++ compiler
19189 lt_prog_compiler_wl_CXX='-Wl,'
19190 lt_prog_compiler_pic_CXX='-fpic'
19191 lt_prog_compiler_static_CXX='-Bstatic'
19192 ;;
19193 cxx*)
19194 # Compaq C++
19195 # Make sure the PIC flag is empty. It appears that all Alpha
19196 # Linux and Compaq Tru64 Unix objects are PIC.
19197 lt_prog_compiler_pic_CXX=
19198 lt_prog_compiler_static_CXX='-non_shared'
19199 ;;
19200 *)
19201 ;;
19202 esac
19203 ;;
19204 lynxos*)
19205 ;;
19206 m88k*)
19207 ;;
19208 mvs*)
19209 case $cc_basename in
19210 cxx*)
19211 lt_prog_compiler_pic_CXX='-W c,exportall'
19212 ;;
19213 *)
19214 ;;
19215 esac
19216 ;;
19217 netbsd*)
19218 ;;
19219 *qnx* | *nto*)
19220 # QNX uses GNU C++, but need to define -shared option too, otherwise
19221 # it will coredump.
19222 lt_prog_compiler_pic_CXX='-fPIC -shared'
19223 ;;
19224 osf3* | osf4* | osf5*)
19225 case $cc_basename in
19226 KCC*)
19227 lt_prog_compiler_wl_CXX='--backend -Wl,'
19228 ;;
19229 RCC*)
19230 # Rational C++ 2.4.1
19231 lt_prog_compiler_pic_CXX='-pic'
19232 ;;
19233 cxx*)
19234 # Digital/Compaq C++
19235 lt_prog_compiler_wl_CXX='-Wl,'
19236 # Make sure the PIC flag is empty. It appears that all Alpha
19237 # Linux and Compaq Tru64 Unix objects are PIC.
19238 lt_prog_compiler_pic_CXX=
19239 lt_prog_compiler_static_CXX='-non_shared'
19240 ;;
19241 *)
19242 ;;
19243 esac
19244 ;;
19245 psos*)
19246 ;;
19247 solaris*)
19248 case $cc_basename in
19249 CC*)
19250 # Sun C++ 4.2, 5.x and Centerline C++
19251 lt_prog_compiler_pic_CXX='-KPIC'
19252 lt_prog_compiler_static_CXX='-Bstatic'
19253 lt_prog_compiler_wl_CXX='-Qoption ld '
19254 ;;
19255 gcx*)
19256 # Green Hills C++ Compiler
19257 lt_prog_compiler_pic_CXX='-PIC'
19258 ;;
19259 *)
19260 ;;
19261 esac
19262 ;;
19263 sunos4*)
19264 case $cc_basename in
19265 CC*)
19266 # Sun C++ 4.x
19267 lt_prog_compiler_pic_CXX='-pic'
19268 lt_prog_compiler_static_CXX='-Bstatic'
19269 ;;
19270 lcc*)
19271 # Lucid
19272 lt_prog_compiler_pic_CXX='-pic'
19273 ;;
19274 *)
19275 ;;
19276 esac
19277 ;;
19278 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19279 case $cc_basename in
19280 CC*)
19281 lt_prog_compiler_wl_CXX='-Wl,'
19282 lt_prog_compiler_pic_CXX='-KPIC'
19283 lt_prog_compiler_static_CXX='-Bstatic'
19284 ;;
19285 esac
19286 ;;
19287 tandem*)
19288 case $cc_basename in
19289 NCC*)
19290 # NonStop-UX NCC 3.20
19291 lt_prog_compiler_pic_CXX='-KPIC'
19292 ;;
19293 *)
19294 ;;
19295 esac
19296 ;;
19297 vxworks*)
19298 ;;
19299 *)
19300 lt_prog_compiler_can_build_shared_CXX=no
19301 ;;
19302 esac
19303 fi
19304
19305case $host_os in
19306 # For platforms which do not support PIC, -DPIC is meaningless:
19307 *djgpp*)
19308 lt_prog_compiler_pic_CXX=
19309 ;;
19310 *)
19311 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19312 ;;
19313esac
19314{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19315echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19316
19317
19318
19319#
19320# Check to make sure the PIC flag actually works.
19321#
19322if test -n "$lt_prog_compiler_pic_CXX"; then
19323 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19324echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19325if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19327else
19328 lt_prog_compiler_pic_works_CXX=no
19329 ac_outfile=conftest.$ac_objext
19330 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19331 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19332 # Insert the option either (1) after the last *FLAGS variable, or
19333 # (2) before a word containing "conftest.", or (3) at the end.
19334 # Note that $ac_compile itself does not contain backslashes and begins
19335 # with a dollar sign (not a hyphen), so the echo should work correctly.
19336 # The option is referenced via a variable to avoid confusing sed.
19337 lt_compile=`echo "$ac_compile" | $SED \
19338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19340 -e 's:$: $lt_compiler_flag:'`
19341 (eval echo "\"\$as_me:19341: $lt_compile\"" >&5)
19342 (eval "$lt_compile" 2>conftest.err)
19343 ac_status=$?
19344 cat conftest.err >&5
19345 echo "$as_me:19345: \$? = $ac_status" >&5
19346 if (exit $ac_status) && test -s "$ac_outfile"; then
19347 # The compiler can only warn and ignore the option if not recognized
19348 # So say no if there are warnings other than the usual output.
19349 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19352 lt_prog_compiler_pic_works_CXX=yes
19353 fi
19354 fi
19355 $RM conftest*
19356
19357fi
19358{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19359echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19360
19361if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19362 case $lt_prog_compiler_pic_CXX in
19363 "" | " "*) ;;
19364 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19365 esac
19366else
19367 lt_prog_compiler_pic_CXX=
19368 lt_prog_compiler_can_build_shared_CXX=no
19369fi
19370
19371fi
19372
19373
19374
19375#
19376# Check to make sure the static flag actually works.
19377#
19378wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19379{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19380echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19381if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19383else
19384 lt_prog_compiler_static_works_CXX=no
19385 save_LDFLAGS="$LDFLAGS"
19386 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19387 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19388 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19389 # The linker can only warn and ignore the option if not recognized
19390 # So say no if there are warnings
19391 if test -s conftest.err; then
19392 # Append any errors to the config.log.
19393 cat conftest.err 1>&5
19394 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19396 if diff conftest.exp conftest.er2 >/dev/null; then
19397 lt_prog_compiler_static_works_CXX=yes
19398 fi
19399 else
19400 lt_prog_compiler_static_works_CXX=yes
19401 fi
19402 fi
19403 $RM conftest*
19404 LDFLAGS="$save_LDFLAGS"
19405
19406fi
19407{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19408echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19409
19410if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19411 :
19412else
19413 lt_prog_compiler_static_CXX=
19414fi
19415
19416
19417
19418
19419 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19420echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19421if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19423else
19424 lt_cv_prog_compiler_c_o_CXX=no
19425 $RM -r conftest 2>/dev/null
19426 mkdir conftest
19427 cd conftest
19428 mkdir out
19429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19430
19431 lt_compiler_flag="-o out/conftest2.$ac_objext"
19432 # Insert the option either (1) after the last *FLAGS variable, or
19433 # (2) before a word containing "conftest.", or (3) at the end.
19434 # Note that $ac_compile itself does not contain backslashes and begins
19435 # with a dollar sign (not a hyphen), so the echo should work correctly.
19436 lt_compile=`echo "$ac_compile" | $SED \
19437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19439 -e 's:$: $lt_compiler_flag:'`
19440 (eval echo "\"\$as_me:19440: $lt_compile\"" >&5)
19441 (eval "$lt_compile" 2>out/conftest.err)
19442 ac_status=$?
19443 cat out/conftest.err >&5
19444 echo "$as_me:19444: \$? = $ac_status" >&5
19445 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19446 then
19447 # The compiler can only warn and ignore the option if not recognized
19448 # So say no if there are warnings
19449 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19450 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19451 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19452 lt_cv_prog_compiler_c_o_CXX=yes
19453 fi
19454 fi
19455 chmod u+w . 2>&5
19456 $RM conftest*
19457 # SGI C++ compiler will create directory out/ii_files/ for
19458 # template instantiation
19459 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19460 $RM out/* && rmdir out
19461 cd ..
19462 $RM -r conftest
19463 $RM conftest*
19464
19465fi
19466{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19467echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19468
19469
19470
19471 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19472echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19473if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475else
19476 lt_cv_prog_compiler_c_o_CXX=no
19477 $RM -r conftest 2>/dev/null
19478 mkdir conftest
19479 cd conftest
19480 mkdir out
19481 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19482
19483 lt_compiler_flag="-o out/conftest2.$ac_objext"
19484 # Insert the option either (1) after the last *FLAGS variable, or
19485 # (2) before a word containing "conftest.", or (3) at the end.
19486 # Note that $ac_compile itself does not contain backslashes and begins
19487 # with a dollar sign (not a hyphen), so the echo should work correctly.
19488 lt_compile=`echo "$ac_compile" | $SED \
19489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19491 -e 's:$: $lt_compiler_flag:'`
19492 (eval echo "\"\$as_me:19492: $lt_compile\"" >&5)
19493 (eval "$lt_compile" 2>out/conftest.err)
19494 ac_status=$?
19495 cat out/conftest.err >&5
19496 echo "$as_me:19496: \$? = $ac_status" >&5
19497 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19498 then
19499 # The compiler can only warn and ignore the option if not recognized
19500 # So say no if there are warnings
19501 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19502 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19503 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19504 lt_cv_prog_compiler_c_o_CXX=yes
19505 fi
19506 fi
19507 chmod u+w . 2>&5
19508 $RM conftest*
19509 # SGI C++ compiler will create directory out/ii_files/ for
19510 # template instantiation
19511 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19512 $RM out/* && rmdir out
19513 cd ..
19514 $RM -r conftest
19515 $RM conftest*
19516
19517fi
19518{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19519echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19520
19521
19522
19523
19524hard_links="nottested"
19525if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19526 # do not overwrite the value of need_locks provided by the user
19527 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19528echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19529 hard_links=yes
19530 $RM conftest*
19531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19532 touch conftest.a
19533 ln conftest.a conftest.b 2>&5 || hard_links=no
19534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19535 { echo "$as_me:$LINENO: result: $hard_links" >&5
19536echo "${ECHO_T}$hard_links" >&6; }
19537 if test "$hard_links" = no; then
19538 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19539echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19540 need_locks=warn
19541 fi
19542else
19543 need_locks=no
19544fi
19545
19546
19547
19548 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19549echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19550
19551 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19552 case $host_os in
19553 aix4* | aix5*)
19554 # If we're using GNU nm, then we don't want the "-C" option.
19555 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19556 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19557 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19558 else
19559 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19560 fi
19561 ;;
19562 pw32*)
19563 export_symbols_cmds_CXX="$ltdll_cmds"
19564 ;;
19565 cygwin* | mingw*)
19566 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19567 ;;
19568 *)
19569 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19570 ;;
19571 esac
19572
19573{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19574echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19575test "$ld_shlibs_CXX" = no && can_build_shared=no
19576
19577with_gnu_ld_CXX=$with_gnu_ld
19578
19579
19580
19581
19582
19583
19584#
19585# Do we need to explicitly link libc?
19586#
19587case "x$archive_cmds_need_lc_CXX" in
19588x|xyes)
19589 # Assume -lc should be added
19590 archive_cmds_need_lc_CXX=yes
19591
19592 if test "$enable_shared" = yes && test "$GCC" = yes; then
19593 case $archive_cmds_CXX in
19594 *'~'*)
19595 # FIXME: we may have to deal with multi-command sequences.
19596 ;;
19597 '$CC '*)
19598 # Test whether the compiler implicitly links with -lc since on some
19599 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19600 # to ld, don't add -lc before -lgcc.
19601 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19602echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19603 $RM conftest*
19604 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19605
19606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19607 (eval $ac_compile) 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } 2>conftest.err; then
19611 soname=conftest
19612 lib=conftest
19613 libobjs=conftest.$ac_objext
19614 deplibs=
19615 wl=$lt_prog_compiler_wl_CXX
19616 pic_flag=$lt_prog_compiler_pic_CXX
19617 compiler_flags=-v
19618 linker_flags=-v
19619 verstring=
19620 output_objdir=.
19621 libname=conftest
19622 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19623 allow_undefined_flag_CXX=
19624 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
19625 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }
19629 then
19630 archive_cmds_need_lc_CXX=no
19631 else
19632 archive_cmds_need_lc_CXX=yes
19633 fi
19634 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19635 else
19636 cat conftest.err 1>&5
19637 fi
19638 $RM conftest*
19639 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19640echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19641 ;;
19642 esac
19643 fi
19644 ;;
19645esac
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19707echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19708withGCC=$GXX
19709library_names_spec=
19710libname_spec='lib$name'
19711soname_spec=
19712shrext_cmds=".so"
19713postinstall_cmds=
19714postuninstall_cmds=
19715finish_cmds=
19716finish_eval=
19717shlibpath_var=
19718shlibpath_overrides_runpath=unknown
19719version_type=none
19720dynamic_linker="$host_os ld.so"
19721sys_lib_dlsearch_path_spec="/lib /usr/lib"
19722if test "$withGCC" = yes; then
19723 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19724 if $ECHO "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then
19725 # if the path contains ";" then we assume it to be the separator
19726 # otherwise default to the standard path separator (i.e. ":") - it is
19727 # assumed that no part of a normal pathname contains ";" but that should
19728 # okay in the real world where ";" in dirpaths is itself problematic.
19729 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19730 else
19731 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19732 fi
19733else
19734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19735fi
19736need_lib_prefix=unknown
19737hardcode_into_libs=no
19738
19739# when you set need_version to no, make sure it does not cause -set_version
19740# flags to be left without arguments
19741need_version=unknown
19742
19743case $host_os in
19744aix3*)
19745 version_type=linux
19746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19747 shlibpath_var=LIBPATH
19748
19749 # AIX 3 has no versioning support, so we append a major version to the name.
19750 soname_spec='${libname}${release}${shared_ext}$major'
19751 ;;
19752
19753aix4* | aix5*)
19754 version_type=linux
19755 need_lib_prefix=no
19756 need_version=no
19757 hardcode_into_libs=yes
19758 if test "$host_cpu" = ia64; then
19759 # AIX 5 supports IA64
19760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19761 shlibpath_var=LD_LIBRARY_PATH
19762 else
19763 # With GCC up to 2.95.x, collect2 would create an import file
19764 # for dependence libraries. The import file would start with
19765 # the line `#! .'. This would cause the generated library to
19766 # depend on `.', always an invalid library. This was fixed in
19767 # development snapshots of GCC prior to 3.0.
19768 case $host_os in
19769 aix4 | aix4.[01] | aix4.[01].*)
19770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19771 echo ' yes '
19772 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19773 :
19774 else
19775 can_build_shared=no
19776 fi
19777 ;;
19778 esac
19779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19780 # soname into executable. Probably we can add versioning support to
19781 # collect2, so additional links can be useful in future.
19782 if test "$aix_use_runtimelinking" = yes; then
19783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19784 # instead of lib<name>.a to let people know that these are not
19785 # typical AIX shared libraries.
19786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19787 else
19788 # We preserve .a as extension for shared libraries through AIX4.2
19789 # and later when we are not doing run time linking.
19790 library_names_spec='${libname}${release}.a $libname.a'
19791 soname_spec='${libname}${release}${shared_ext}$major'
19792 fi
19793 shlibpath_var=LIBPATH
19794 fi
19795 ;;
19796
19797amigaos*)
19798 if test "$host_cpu" = m68k; then
19799 library_names_spec='$libname.ixlibrary $libname.a'
19800 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19801 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
19802 else
19803 dynamic_linker=no
19804 fi
19805 ;;
19806
19807beos*)
19808 library_names_spec='${libname}${shared_ext}'
19809 dynamic_linker="$host_os ld.so"
19810 shlibpath_var=LIBRARY_PATH
19811 ;;
19812
19813bsdi[45]*)
19814 version_type=linux
19815 need_version=no
19816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19817 soname_spec='${libname}${release}${shared_ext}$major'
19818 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19819 shlibpath_var=LD_LIBRARY_PATH
19820 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19821 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19822 # the default ld.so.conf also contains /usr/contrib/lib and
19823 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19824 # libtool to hard-code these into programs
19825 ;;
19826
19827cygwin* | mingw* | pw32*)
19828 version_type=windows
19829 shrext_cmds=".dll"
19830 need_version=no
19831 need_lib_prefix=no
19832
19833 case $withGCC,$host_os in
19834 yes,cygwin* | yes,mingw* | yes,pw32*)
19835 library_names_spec='$libname.dll.a'
19836 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19837 postinstall_cmds='base_file=`basename \${file}`~
19838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19839 dldir=$destdir/`dirname \$dlpath`~
19840 test -d \$dldir || mkdir -p \$dldir~
19841 $install_prog $dir/$dlname \$dldir/$dlname~
19842 chmod a+x \$dldir/$dlname~
19843 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19844 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19845 fi'
19846 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19847 dlpath=$dir/\$dldll~
19848 $RM \$dlpath'
19849 shlibpath_overrides_runpath=yes
19850
19851 case $host_os in
19852 cygwin*)
19853 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19854 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19855 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19856 ;;
19857 mingw*)
19858 # MinGW DLLs use traditional 'lib' prefix
19859 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19860 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19861 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19862 # It is most probably a Windows format PATH printed by
19863 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19864 # path with ; separators, and with drive letters. We can handle the
19865 # drive letters (cygwin fileutils understands them), so leave them,
19866 # especially as we might pass files found there to a mingw objdump,
19867 # which wouldn't understand a cygwinified path. Ahh.
19868 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19869 else
19870 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19871 fi
19872 ;;
19873 pw32*)
19874 # pw32 DLLs use 'pw' prefix rather than 'lib'
19875 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19876 ;;
19877 esac
19878 ;;
19879
19880 *)
19881 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19882 ;;
19883 esac
19884 dynamic_linker='Win32 ld.exe'
19885 # FIXME: first we should search . and the directory the executable is in
19886 shlibpath_var=PATH
19887 ;;
19888
19889darwin* | rhapsody*)
19890 dynamic_linker="$host_os dyld"
19891 version_type=darwin
19892 need_lib_prefix=no
19893 need_version=no
19894 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19895 soname_spec='${libname}${release}${major}$shared_ext'
19896 shlibpath_overrides_runpath=yes
19897 shlibpath_var=DYLD_LIBRARY_PATH
19898 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19899 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19900 if test "$withGCC" = yes; then
19901 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | $GREP "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19902 else
19903 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19904 fi
19905 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19906 ;;
19907
19908dgux*)
19909 version_type=linux
19910 need_lib_prefix=no
19911 need_version=no
19912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19913 soname_spec='${libname}${release}${shared_ext}$major'
19914 shlibpath_var=LD_LIBRARY_PATH
19915 ;;
19916
19917freebsd1*)
19918 dynamic_linker=no
19919 ;;
19920
19921kfreebsd*-gnu)
19922 version_type=linux
19923 need_lib_prefix=no
19924 need_version=no
19925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19926 soname_spec='${libname}${release}${shared_ext}$major'
19927 shlibpath_var=LD_LIBRARY_PATH
19928 shlibpath_overrides_runpath=no
19929 hardcode_into_libs=yes
19930 dynamic_linker='GNU ld.so'
19931 ;;
19932
19933freebsd* | dragonfly*)
19934 # DragonFly does not have aout. When/if they implement a new
19935 # versioning mechanism, adjust this.
19936 if test -x /usr/bin/objformat; then
19937 objformat=`/usr/bin/objformat`
19938 else
19939 case $host_os in
19940 freebsd[123]*) objformat=aout ;;
19941 *) objformat=elf ;;
19942 esac
19943 fi
19944 version_type=freebsd-$objformat
19945 case $version_type in
19946 freebsd-elf*)
19947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19948 need_version=no
19949 need_lib_prefix=no
19950 ;;
19951 freebsd-*)
19952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19953 need_version=yes
19954 ;;
19955 esac
19956 shlibpath_var=LD_LIBRARY_PATH
19957 case $host_os in
19958 freebsd2*)
19959 shlibpath_overrides_runpath=yes
19960 ;;
19961 freebsd3.[01]* | freebsdelf3.[01]*)
19962 shlibpath_overrides_runpath=yes
19963 hardcode_into_libs=yes
19964 ;;
19965 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19966 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19967 shlibpath_overrides_runpath=no
19968 hardcode_into_libs=yes
19969 ;;
19970 freebsd*) # from 4.6 on
19971 shlibpath_overrides_runpath=yes
19972 hardcode_into_libs=yes
19973 ;;
19974 esac
19975 ;;
19976
19977gnu*)
19978 version_type=linux
19979 need_lib_prefix=no
19980 need_version=no
19981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19982 soname_spec='${libname}${release}${shared_ext}$major'
19983 shlibpath_var=LD_LIBRARY_PATH
19984 hardcode_into_libs=yes
19985 ;;
19986
19987hpux9* | hpux10* | hpux11*)
19988 # Give a soname corresponding to the major version so that dld.sl refuses to
19989 # link against other versions.
19990 version_type=sunos
19991 need_lib_prefix=no
19992 need_version=no
19993 case $host_cpu in
19994 ia64*)
19995 shrext_cmds='.so'
19996 hardcode_into_libs=yes
19997 dynamic_linker="$host_os dld.so"
19998 shlibpath_var=LD_LIBRARY_PATH
19999 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20001 soname_spec='${libname}${release}${shared_ext}$major'
20002 if test "X$HPUX_IA64_MODE" = X32; then
20003 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20004 else
20005 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20006 fi
20007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20008 ;;
20009 hppa*64*)
20010 shrext_cmds='.sl'
20011 hardcode_into_libs=yes
20012 dynamic_linker="$host_os dld.sl"
20013 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20014 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20016 soname_spec='${libname}${release}${shared_ext}$major'
20017 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20019 ;;
20020 *)
20021 shrext_cmds='.sl'
20022 dynamic_linker="$host_os dld.sl"
20023 shlibpath_var=SHLIB_PATH
20024 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20026 soname_spec='${libname}${release}${shared_ext}$major'
20027 ;;
20028 esac
20029 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20030 postinstall_cmds='chmod 555 $lib'
20031 ;;
20032
20033interix3*)
20034 version_type=linux
20035 need_lib_prefix=no
20036 need_version=no
20037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20038 soname_spec='${libname}${release}${shared_ext}$major'
20039 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20040 shlibpath_var=LD_LIBRARY_PATH
20041 shlibpath_overrides_runpath=no
20042 hardcode_into_libs=yes
20043 ;;
20044
20045irix5* | irix6* | nonstopux*)
20046 case $host_os in
20047 nonstopux*) version_type=nonstopux ;;
20048 *)
20049 if test "$lt_cv_prog_gnu_ld" = yes; then
20050 version_type=linux
20051 else
20052 version_type=irix
20053 fi ;;
20054 esac
20055 need_lib_prefix=no
20056 need_version=no
20057 soname_spec='${libname}${release}${shared_ext}$major'
20058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20059 case $host_os in
20060 irix5* | nonstopux*)
20061 libsuff= shlibsuff=
20062 ;;
20063 *)
20064 case $LD in # libtool.m4 will add one of these switches to LD
20065 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20066 libsuff= shlibsuff= libmagic=32-bit;;
20067 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20068 libsuff=32 shlibsuff=N32 libmagic=N32;;
20069 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20070 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20071 *) libsuff= shlibsuff= libmagic=never-match;;
20072 esac
20073 ;;
20074 esac
20075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20076 shlibpath_overrides_runpath=no
20077 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20078 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20079 hardcode_into_libs=yes
20080 ;;
20081
20082# No shared lib support for Linux oldld, aout, or coff.
20083linux*oldld* | linux*aout* | linux*coff*)
20084 dynamic_linker=no
20085 ;;
20086
20087# This must be Linux ELF.
20088linux*)
20089 version_type=linux
20090 need_lib_prefix=no
20091 need_version=no
20092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20093 soname_spec='${libname}${release}${shared_ext}$major'
20094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20095 shlibpath_var=LD_LIBRARY_PATH
20096 shlibpath_overrides_runpath=no
20097 # This implies no fast_install, which is unacceptable.
20098 # Some rework will be needed to allow for fast_install
20099 # before this can be enabled.
20100 hardcode_into_libs=yes
20101
20102 # Append ld.so.conf contents to the search path
20103 if test -f /etc/ld.so.conf; then
20104 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20105 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20106 fi
20107
20108 # We used to test for /lib/ld.so.1 and disable shared libraries on
20109 # powerpc, because MkLinux only supported shared libraries with the
20110 # GNU dynamic linker. Since this was broken with cross compilers,
20111 # most powerpc-linux boxes support dynamic linking these days and
20112 # people can always --disable-shared, the test was removed, and we
20113 # assume the GNU/Linux dynamic linker is in use.
20114 dynamic_linker='GNU/Linux ld.so'
20115 ;;
20116
20117knetbsd*-gnu)
20118 version_type=linux
20119 need_lib_prefix=no
20120 need_version=no
20121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20122 soname_spec='${libname}${release}${shared_ext}$major'
20123 shlibpath_var=LD_LIBRARY_PATH
20124 shlibpath_overrides_runpath=no
20125 hardcode_into_libs=yes
20126 dynamic_linker='GNU ld.so'
20127 ;;
20128
20129netbsd*)
20130 version_type=sunos
20131 need_lib_prefix=no
20132 need_version=no
20133 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20136 dynamic_linker='NetBSD (a.out) ld.so'
20137 else
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20139 soname_spec='${libname}${release}${shared_ext}$major'
20140 dynamic_linker='NetBSD ld.elf_so'
20141 fi
20142 shlibpath_var=LD_LIBRARY_PATH
20143 shlibpath_overrides_runpath=yes
20144 hardcode_into_libs=yes
20145 ;;
20146
20147newsos6)
20148 version_type=linux
20149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20150 shlibpath_var=LD_LIBRARY_PATH
20151 shlibpath_overrides_runpath=yes
20152 ;;
20153
20154*nto* | *qnx*)
20155 version_type=qnx
20156 need_lib_prefix=no
20157 need_version=no
20158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20159 soname_spec='${libname}${release}${shared_ext}$major'
20160 shlibpath_var=LD_LIBRARY_PATH
20161 shlibpath_overrides_runpath=no
20162 hardcode_into_libs=yes
20163 dynamic_linker='ldqnx.so'
20164 ;;
20165
20166openbsd*)
20167 version_type=sunos
20168 sys_lib_dlsearch_path_spec="/usr/lib"
20169 need_lib_prefix=no
20170 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20171 case $host_os in
20172 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20173 *) need_version=no ;;
20174 esac
20175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20177 shlibpath_var=LD_LIBRARY_PATH
20178 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20179 case $host_os in
20180 openbsd2.[89] | openbsd2.[89].*)
20181 shlibpath_overrides_runpath=no
20182 ;;
20183 *)
20184 shlibpath_overrides_runpath=yes
20185 ;;
20186 esac
20187 else
20188 shlibpath_overrides_runpath=yes
20189 fi
20190 ;;
20191
20192os2*)
20193 libname_spec='$name'
20194 shrext_cmds=".dll"
20195 need_lib_prefix=no
20196 library_names_spec='$libname${shared_ext} $libname.a'
20197 dynamic_linker='OS/2 ld.exe'
20198 shlibpath_var=LIBPATH
20199 ;;
20200
20201osf3* | osf4* | osf5*)
20202 version_type=osf
20203 need_lib_prefix=no
20204 need_version=no
20205 soname_spec='${libname}${release}${shared_ext}$major'
20206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20207 shlibpath_var=LD_LIBRARY_PATH
20208 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20209 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20210 ;;
20211
20212rdos*)
20213 dynamic_linker=no
20214 ;;
20215
20216solaris*)
20217 version_type=linux
20218 need_lib_prefix=no
20219 need_version=no
20220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20221 soname_spec='${libname}${release}${shared_ext}$major'
20222 shlibpath_var=LD_LIBRARY_PATH
20223 shlibpath_overrides_runpath=yes
20224 hardcode_into_libs=yes
20225 # ldd complains unless libraries are executable
20226 postinstall_cmds='chmod +x $lib'
20227 ;;
20228
20229sunos4*)
20230 version_type=sunos
20231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20232 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20233 shlibpath_var=LD_LIBRARY_PATH
20234 shlibpath_overrides_runpath=yes
20235 if test "$with_gnu_ld" = yes; then
20236 need_lib_prefix=no
20237 fi
20238 need_version=yes
20239 ;;
20240
20241sysv4 | sysv4.3*)
20242 version_type=linux
20243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20244 soname_spec='${libname}${release}${shared_ext}$major'
20245 shlibpath_var=LD_LIBRARY_PATH
20246 case $host_vendor in
20247 sni)
20248 shlibpath_overrides_runpath=no
20249 need_lib_prefix=no
20250 runpath_var=LD_RUN_PATH
20251 ;;
20252 siemens)
20253 need_lib_prefix=no
20254 ;;
20255 motorola)
20256 need_lib_prefix=no
20257 need_version=no
20258 shlibpath_overrides_runpath=no
20259 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20260 ;;
20261 esac
20262 ;;
20263
20264sysv4*MP*)
20265 if test -d /usr/nec ;then
20266 version_type=linux
20267 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20268 soname_spec='$libname${shared_ext}.$major'
20269 shlibpath_var=LD_LIBRARY_PATH
20270 fi
20271 ;;
20272
20273sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20274 version_type=freebsd-elf
20275 need_lib_prefix=no
20276 need_version=no
20277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20278 soname_spec='${libname}${release}${shared_ext}$major'
20279 shlibpath_var=LD_LIBRARY_PATH
20280 shlibpath_overrides_runpath=yes
20281 hardcode_into_libs=yes
20282 if test "$with_gnu_ld" = yes; then
20283 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20284 else
20285 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20286 case $host_os in
20287 sco3.2v5*)
20288 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20289 ;;
20290 esac
20291 fi
20292 sys_lib_dlsearch_path_spec='/usr/lib'
20293 ;;
20294
20295tpf*)
20296 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20297 version_type=linux
20298 need_lib_prefix=no
20299 need_version=no
20300 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301 shlibpath_var=LD_LIBRARY_PATH
20302 shlibpath_overrides_runpath=no
20303 hardcode_into_libs=yes
20304 ;;
20305
20306uts4*)
20307 version_type=linux
20308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20309 soname_spec='${libname}${release}${shared_ext}$major'
20310 shlibpath_var=LD_LIBRARY_PATH
20311 ;;
20312
20313*)
20314 dynamic_linker=no
20315 ;;
20316esac
20317{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20318echo "${ECHO_T}$dynamic_linker" >&6; }
20319test "$dynamic_linker" = no && can_build_shared=no
20320
20321variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20322if test "$GCC" = yes; then
20323 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20324fi
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20362echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20363hardcode_action_CXX=
20364if test -n "$hardcode_libdir_flag_spec_CXX" ||
20365 test -n "$runpath_var_CXX" ||
20366 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20367
20368 # We can hardcode non-existent directories.
20369 if test "$hardcode_direct_CXX" != no &&
20370 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20371 # have to relink, otherwise we might link with an installed library
20372 # when we should be linking with a yet-to-be-installed one
20373 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20374 test "$hardcode_minus_L_CXX" != no; then
20375 # Linking always hardcodes the temporary library directory.
20376 hardcode_action_CXX=relink
20377 else
20378 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20379 hardcode_action_CXX=immediate
20380 fi
20381else
20382 # We cannot hardcode anything, or else we can only hardcode existing
20383 # directories.
20384 hardcode_action_CXX=unsupported
20385fi
20386{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20387echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20388
20389if test "$hardcode_action_CXX" = relink ||
20390 test "$inherit_rpath_CXX" = yes; then
20391 # Fast installation is not supported
20392 enable_fast_install=no
20393elif test "$shlibpath_overrides_runpath" = yes ||
20394 test "$enable_shared" = no; then
20395 # Fast installation is not necessary
20396 enable_fast_install=needless
20397fi
20398
20399
20400
20401
20402
20403
20404
20405 fi # test -n "$compiler"
20406
20407 CC=$lt_save_CC
20408 LDCXX=$LD
20409 LD=$lt_save_LD
20410 GCC=$lt_save_GCC
20411 with_gnu_ld=$lt_save_with_gnu_ld
20412 lt_cv_path_LDCXX=$lt_cv_path_LD
20413 lt_cv_path_LD=$lt_save_path_LD
20414 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20415 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20416fi # test "$_lt_caught_CXX_error" != yes
20417
20418ac_ext=c
20419ac_cpp='$CPP $CPPFLAGS'
20420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20422ac_compiler_gnu=$ac_cv_c_compiler_gnu
20423
20424
20425GLU_CFLAGS="${GL_CFLAGS}"
20426if test "X${with_apple_opengl_framework}" != "Xyes"; then
20427 { echo "$as_me:$LINENO: checking for OpenGL Utility library" >&5
20428echo $ECHO_N "checking for OpenGL Utility library... $ECHO_C" >&6; }
20429if test "${ax_cv_check_glu_libglu+set}" = set; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20431else
20432 ax_cv_check_glu_libglu="no"
20433 ax_save_CPPFLAGS="${CPPFLAGS}"
20434 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20435 ax_save_LIBS="${LIBS}"
20436 LIBS=""
20437 ax_check_libs="-lglu32 -lGLU"
20438 for ax_lib in ${ax_check_libs}; do
20439 if test X$ax_compiler_ms = Xyes; then
20440 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
20441 else
20442 ax_try_lib="${ax_lib}"
20443 fi
20444 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
20445 #
20446 # libGLU typically links with libstdc++ on POSIX platforms. However,
20447 # setting the language to C++ means that test program source is named
20448 # "conftest.cc"; and Microsoft cl doesn't know what to do with such a
20449 # file.
20450 #
20451 ac_ext=cpp
20452ac_cpp='$CXXCPP $CPPFLAGS'
20453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20456
20457 if test X$ax_compiler_ms = Xyes; then
20458 ac_ext=c
20459ac_cpp='$CPP $CPPFLAGS'
20460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20462ac_compiler_gnu=$ac_cv_c_compiler_gnu
20463
20464 fi
20465 cat >conftest.$ac_ext <<_ACEOF
20466/* confdefs.h. */
20467_ACEOF
20468cat confdefs.h >>conftest.$ac_ext
20469cat >>conftest.$ac_ext <<_ACEOF
20470/* end confdefs.h. */
20471
20472# if HAVE_WINDOWS_H && defined(_WIN32)
20473# include <windows.h>
20474# endif
20475# include <GL/glu.h>
20476int
20477main ()
20478{
20479gluBeginCurve(0)
20480 ;
20481 return 0;
20482}
20483_ACEOF
20484rm -f conftest.$ac_objext conftest$ac_exeext
20485if { (ac_try="$ac_link"
20486case "(($ac_try" in
20487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488 *) ac_try_echo=$ac_try;;
20489esac
20490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491 (eval "$ac_link") 2>conftest.er1
20492 ac_status=$?
20493 grep -v '^ *+' conftest.er1 >conftest.err
20494 rm -f conftest.er1
20495 cat conftest.err >&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } && {
20498 test -z "$ac_c_werror_flag" ||
20499 test ! -s conftest.err
20500 } && test -s conftest$ac_exeext &&
20501 $as_test_x conftest$ac_exeext; then
20502 ax_cv_check_glu_libglu="${ax_try_lib}"; break
20503else
20504 echo "$as_me: failed program was:" >&5
20505sed 's/^/| /' conftest.$ac_ext >&5
20506
20507
20508fi
20509
20510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20511 conftest$ac_exeext conftest.$ac_ext
20512 if test X$ax_compiler_ms = Xyes; then
20513 ac_ext=cpp
20514ac_cpp='$CXXCPP $CPPFLAGS'
20515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20518
20519 fi
20520 ac_ext=c
20521ac_cpp='$CPP $CPPFLAGS'
20522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20524ac_compiler_gnu=$ac_cv_c_compiler_gnu
20525
20526 done
20527 LIBS=${ax_save_LIBS}
20528 CPPFLAGS=${ax_save_CPPFLAGS}
20529fi
20530{ echo "$as_me:$LINENO: result: $ax_cv_check_glu_libglu" >&5
20531echo "${ECHO_T}$ax_cv_check_glu_libglu" >&6; }
20532 if test "X${ax_cv_check_glu_libglu}" = "Xno"; then
20533 no_glu="yes"
20534 GLU_CFLAGS=""
20535 GLU_LIBS=""
20536 else
20537 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
20538 fi
20539fi
20540
20541
20542
20543
20544if test "X$with_apple_opengl_framework" = "Xyes"; then
20545 GLUT_CFLAGS="${GLU_CFLAGS}"
20546 GLUT_LIBS="-framework GLUT -lobjc ${GL_LIBS}"
20547else
20548 GLUT_CFLAGS=${GLU_CFLAGS}
20549 GLUT_LIBS=${GLU_LIBS}
20550
20551 #
20552 # If X is present, assume GLUT depends on it.
20553 #
20554 if test "X${no_x}" != "Xyes"; then
20555 GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
20556 fi
20557
20558 ac_ext=c
20559ac_cpp='$CPP $CPPFLAGS'
20560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20562ac_compiler_gnu=$ac_cv_c_compiler_gnu
20563
20564
20565 ax_save_CPPFLAGS="${CPPFLAGS}"
20566 CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
20567
20568 { echo "$as_me:$LINENO: checking for GLUT library" >&5
20569echo $ECHO_N "checking for GLUT library... $ECHO_C" >&6; }
20570if test "${ax_cv_check_glut_libglut+set}" = set; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20572else
20573 ax_cv_check_glut_libglut="no"
20574 ax_save_LIBS="${LIBS}"
20575 LIBS=""
20576 ax_check_libs="-lglut32 -lglut"
20577 for ax_lib in ${ax_check_libs}; do
20578 if test X$ax_compiler_ms = Xyes; then
20579 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
20580 else
20581 ax_try_lib="${ax_lib}"
20582 fi
20583 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
20584 cat >conftest.$ac_ext <<_ACEOF
20585/* confdefs.h. */
20586_ACEOF
20587cat confdefs.h >>conftest.$ac_ext
20588cat >>conftest.$ac_ext <<_ACEOF
20589/* end confdefs.h. */
20590
20591# if HAVE_WINDOWS_H && defined(_WIN32)
20592# include <windows.h>
20593# endif
20594# include <GL/glut.h>
20595int
20596main ()
20597{
20598glutMainLoop()
20599 ;
20600 return 0;
20601}
20602_ACEOF
20603rm -f conftest.$ac_objext conftest$ac_exeext
20604if { (ac_try="$ac_link"
20605case "(($ac_try" in
20606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607 *) ac_try_echo=$ac_try;;
20608esac
20609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610 (eval "$ac_link") 2>conftest.er1
20611 ac_status=$?
20612 grep -v '^ *+' conftest.er1 >conftest.err
20613 rm -f conftest.er1
20614 cat conftest.err >&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && {
20617 test -z "$ac_c_werror_flag" ||
20618 test ! -s conftest.err
20619 } && test -s conftest$ac_exeext &&
20620 $as_test_x conftest$ac_exeext; then
20621 ax_cv_check_glut_libglut="${ax_try_lib}"; break
20622else
20623 echo "$as_me: failed program was:" >&5
20624sed 's/^/| /' conftest.$ac_ext >&5
20625
20626
20627fi
20628
20629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20630 conftest$ac_exeext conftest.$ac_ext
20631
20632 done
20633 LIBS=${ax_save_LIBS}
20634
20635fi
20636{ echo "$as_me:$LINENO: result: $ax_cv_check_glut_libglut" >&5
20637echo "${ECHO_T}$ax_cv_check_glut_libglut" >&6; }
20638 CPPFLAGS="${ax_save_CPPFLAGS}"
20639 ac_ext=c
20640ac_cpp='$CPP $CPPFLAGS'
20641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20643ac_compiler_gnu=$ac_cv_c_compiler_gnu
20644
20645
20646 if test "X${ax_cv_check_glut_libglut}" = "Xno"; then
20647 no_glut="yes"
20648 GLUT_CFLAGS=""
20649 GLUT_LIBS=""
20650 else
20651 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
20652 fi
20653fi
20654
20655
20656
20657
20658
20659if test "$no_x" != "yes" -a "$no_gl" != "yes" \
20660 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
20661 HAVE_OPENGL=yes
20662fi
20663
20664
20665
20666if test "$HAVE_OPENGL" = "yes"; then
20667 HAVE_OPENGL_TRUE=
20668 HAVE_OPENGL_FALSE='#'
20669else
20670 HAVE_OPENGL_TRUE='#'
20671 HAVE_OPENGL_FALSE=
20672fi
20673
20674
20675
20676
20677# Check whether --enable-strip-chopping was given.
20678if test "${enable_strip_chopping+set}" = set; then
20679 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval
20680else
20681 HAVE_STRIPCHOP=yes
20682fi
20683
20684
20685# Check whether --with-default-strip-size was given.
20686if test "${with_default_strip_size+set}" = set; then
20687 withval=$with_default_strip_size;
20688fi
20689
20690
20691if test "$HAVE_STRIPCHOP" = "yes" \
20692 -a "x$with_default_strip_size" != "xno"; then
20693
20694cat >>confdefs.h <<\_ACEOF
20695#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP
20696_ACEOF
20697
20698
20699 if test "x$with_default_strip_size" = "x" \
20700 -o "x$with_default_strip_size" = "xyes"; then
20701 with_default_strip_size="8192"
20702 fi
20703
20704
20705cat >>confdefs.h <<_ACEOF
20706#define STRIP_SIZE_DEFAULT $with_default_strip_size
20707_ACEOF
20708
20709
20710fi
20711
20712
20713cat >>confdefs.h <<\_ACEOF
20714#define SUBIFD_SUPPORT 1
20715_ACEOF
20716
20717
20718
20719# Check whether --enable-extrasample-as-alpha was given.
20720if test "${enable_extrasample_as_alpha+set}" = set; then
20721 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval
20722else
20723 HAVE_EXTRASAMPLE_AS_ALPHA=yes
20724fi
20725
20726
20727if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
20728
20729cat >>confdefs.h <<\_ACEOF
20730#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1
20731_ACEOF
20732
20733fi
20734
20735
20736# Check whether --enable-check-ycbcr-subsampling was given.
20737if test "${enable_check_ycbcr_subsampling+set}" = set; then
20738 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval
20739else
20740 CHECK_JPEG_YCBCR_SUBSAMPLING=yes
20741fi
20742
20743
20744if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
20745
20746cat >>confdefs.h <<\_ACEOF
20747#define CHECK_JPEG_YCBCR_SUBSAMPLING 1
20748_ACEOF
20749
20750fi
20751
20752
20753
20754
20755ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h"
20756
20757
20758ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/acorn/Makefile contrib/addtiffo/Makefile contrib/dbs/Makefile contrib/dbs/xtiff/Makefile contrib/iptcutil/Makefile contrib/mac-cw/Makefile contrib/mac-mpw/Makefile contrib/mfs/Makefile contrib/ojpeg/Makefile contrib/pds/Makefile contrib/ras/Makefile contrib/stream/Makefile contrib/tags/Makefile contrib/win_dib/Makefile html/Makefile html/images/Makefile html/man/Makefile libtiff/Makefile man/Makefile port/Makefile test/Makefile tools/Makefile"
20759
20760cat >confcache <<\_ACEOF
20761# This file is a shell script that caches the results of configure
20762# tests run on this system so they can be shared between configure
20763# scripts and configure runs, see configure's option --config-cache.
20764# It is not useful on other systems. If it contains results you don't
20765# want to keep, you may remove or edit it.
20766#
20767# config.status only pays attention to the cache file if you give it
20768# the --recheck option to rerun configure.
20769#
20770# `ac_cv_env_foo' variables (set or unset) will be overridden when
20771# loading this file, other *unset* `ac_cv_foo' will be assigned the
20772# following values.
20773
20774_ACEOF
20775
20776# The following way of writing the cache mishandles newlines in values,
20777# but we know of no workaround that is simple, portable, and efficient.
20778# So, we kill variables containing newlines.
20779# Ultrix sh set writes to stderr and can't be redirected directly,
20780# and sets the high bit in the cache file unless we assign to the vars.
20781(
20782 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20783 eval ac_val=\$$ac_var
20784 case $ac_val in #(
20785 *${as_nl}*)
20786 case $ac_var in #(
20787 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20788echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20789 esac
20790 case $ac_var in #(
20791 _ | IFS | as_nl) ;; #(
20792 *) $as_unset $ac_var ;;
20793 esac ;;
20794 esac
20795 done
20796
20797 (set) 2>&1 |
20798 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20799 *${as_nl}ac_space=\ *)
20800 # `set' does not quote correctly, so add quotes (double-quote
20801 # substitution turns \\\\ into \\, and sed turns \\ into \).
20802 sed -n \
20803 "s/'/'\\\\''/g;
20804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20805 ;; #(
20806 *)
20807 # `set' quotes correctly as required by POSIX, so do not add quotes.
20808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20809 ;;
20810 esac |
20811 sort
20812) |
20813 sed '
20814 /^ac_cv_env_/b end
20815 t clear
20816 :clear
20817 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20818 t end
20819 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20820 :end' >>confcache
20821if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20822 if test -w "$cache_file"; then
20823 test "x$cache_file" != "x/dev/null" &&
20824 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20825echo "$as_me: updating cache $cache_file" >&6;}
20826 cat confcache >$cache_file
20827 else
20828 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20829echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20830 fi
20831fi
20832rm -f confcache
20833
20834test "x$prefix" = xNONE && prefix=$ac_default_prefix
20835# Let make expand exec_prefix.
20836test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20837
20838DEFS=-DHAVE_CONFIG_H
20839
20840ac_libobjs=
20841ac_ltlibobjs=
20842for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20843 # 1. Remove the extension, and $U if already installed.
20844 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20845 ac_i=`echo "$ac_i" | sed "$ac_script"`
20846 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20847 # will be set to the directory where LIBOBJS objects are built.
20848 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20849 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20850done
20851LIBOBJS=$ac_libobjs
20852
20853LTLIBOBJS=$ac_ltlibobjs
20854
20855
20856if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20857 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20858Usually this means the macro was only invoked conditionally." >&5
20859echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20860Usually this means the macro was only invoked conditionally." >&2;}
20861 { (exit 1); exit 1; }; }
20862fi
20863if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20864 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20865Usually this means the macro was only invoked conditionally." >&5
20866echo "$as_me: error: conditional \"AMDEP\" was never defined.
20867Usually this means the macro was only invoked conditionally." >&2;}
20868 { (exit 1); exit 1; }; }
20869fi
20870if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20871 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20872Usually this means the macro was only invoked conditionally." >&5
20873echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20874Usually this means the macro was only invoked conditionally." >&2;}
20875 { (exit 1); exit 1; }; }
20876fi
20877if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then
20878 { { echo "$as_me:$LINENO: error: conditional \"HAVE_RPATH\" was never defined.
20879Usually this means the macro was only invoked conditionally." >&5
20880echo "$as_me: error: conditional \"HAVE_RPATH\" was never defined.
20881Usually this means the macro was only invoked conditionally." >&2;}
20882 { (exit 1); exit 1; }; }
20883fi
20884if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
20885 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CXX\" was never defined.
20886Usually this means the macro was only invoked conditionally." >&5
20887echo "$as_me: error: conditional \"HAVE_CXX\" was never defined.
20888Usually this means the macro was only invoked conditionally." >&2;}
20889 { (exit 1); exit 1; }; }
20890fi
20891if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20892 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20893Usually this means the macro was only invoked conditionally." >&5
20894echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20895Usually this means the macro was only invoked conditionally." >&2;}
20896 { (exit 1); exit 1; }; }
20897fi
20898if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20899 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20900Usually this means the macro was only invoked conditionally." >&5
20901echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20902Usually this means the macro was only invoked conditionally." >&2;}
20903 { (exit 1); exit 1; }; }
20904fi
20905if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
20906 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENGL\" was never defined.
20907Usually this means the macro was only invoked conditionally." >&5
20908echo "$as_me: error: conditional \"HAVE_OPENGL\" was never defined.
20909Usually this means the macro was only invoked conditionally." >&2;}
20910 { (exit 1); exit 1; }; }
20911fi
20912
20913: ${CONFIG_STATUS=./config.status}
20914ac_clean_files_save=$ac_clean_files
20915ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20916{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20917echo "$as_me: creating $CONFIG_STATUS" >&6;}
20918cat >$CONFIG_STATUS <<_ACEOF
20919#! $SHELL
20920# Generated by $as_me.
20921# Run this file to recreate the current configuration.
20922# Compiler output produced by configure, useful for debugging
20923# configure, is in config.log if it exists.
20924
20925debug=false
20926ac_cs_recheck=false
20927ac_cs_silent=false
20928SHELL=\${CONFIG_SHELL-$SHELL}
20929_ACEOF
20930
20931cat >>$CONFIG_STATUS <<\_ACEOF
20932## --------------------- ##
20933## M4sh Initialization. ##
20934## --------------------- ##
20935
20936# Be more Bourne compatible
20937DUALCASE=1; export DUALCASE # for MKS sh
20938if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20939 emulate sh
20940 NULLCMD=:
20941 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20942 # is contrary to our usage. Disable this feature.
20943 alias -g '${1+"$@"}'='"$@"'
20944 setopt NO_GLOB_SUBST
20945else
20946 case `(set -o) 2>/dev/null` in
20947 *posix*) set -o posix ;;
20948esac
20949
20950fi
20951
20952
20953
20954
20955# PATH needs CR
20956# Avoid depending upon Character Ranges.
20957as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20958as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20959as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20960as_cr_digits='0123456789'
20961as_cr_alnum=$as_cr_Letters$as_cr_digits
20962
20963# The user is always right.
20964if test "${PATH_SEPARATOR+set}" != set; then
20965 echo "#! /bin/sh" >conf$$.sh
20966 echo "exit 0" >>conf$$.sh
20967 chmod +x conf$$.sh
20968 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20969 PATH_SEPARATOR=';'
20970 else
20971 PATH_SEPARATOR=:
20972 fi
20973 rm -f conf$$.sh
20974fi
20975
20976# Support unset when possible.
20977if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20978 as_unset=unset
20979else
20980 as_unset=false
20981fi
20982
20983
20984# IFS
20985# We need space, tab and new line, in precisely that order. Quoting is
20986# there to prevent editors from complaining about space-tab.
20987# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20988# splitting by setting IFS to empty value.)
20989as_nl='
20990'
20991IFS=" "" $as_nl"
20992
20993# Find who we are. Look in the path if we contain no directory separator.
20994case $0 in
20995 *[\\/]* ) as_myself=$0 ;;
20996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20997for as_dir in $PATH
20998do
20999 IFS=$as_save_IFS
21000 test -z "$as_dir" && as_dir=.
21001 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21002done
21003IFS=$as_save_IFS
21004
21005 ;;
21006esac
21007# We did not find ourselves, most probably we were run as `sh COMMAND'
21008# in which case we are not to be found in the path.
21009if test "x$as_myself" = x; then
21010 as_myself=$0
21011fi
21012if test ! -f "$as_myself"; then
21013 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21014 { (exit 1); exit 1; }
21015fi
21016
21017# Work around bugs in pre-3.0 UWIN ksh.
21018for as_var in ENV MAIL MAILPATH
21019do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21020done
21021PS1='$ '
21022PS2='> '
21023PS4='+ '
21024
21025# NLS nuisances.
21026for as_var in \
21027 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21028 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21029 LC_TELEPHONE LC_TIME
21030do
21031 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21032 eval $as_var=C; export $as_var
21033 else
21034 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21035 fi
21036done
21037
21038# Required to use basename.
21039if expr a : '\(a\)' >/dev/null 2>&1 &&
21040 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21041 as_expr=expr
21042else
21043 as_expr=false
21044fi
21045
21046if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21047 as_basename=basename
21048else
21049 as_basename=false
21050fi
21051
21052
21053# Name of the executable.
21054as_me=`$as_basename -- "$0" ||
21055$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21056 X"$0" : 'X\(//\)$' \| \
21057 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21058echo X/"$0" |
21059 sed '/^.*\/\([^/][^/]*\)\/*$/{
21060 s//\1/
21061 q
21062 }
21063 /^X\/\(\/\/\)$/{
21064 s//\1/
21065 q
21066 }
21067 /^X\/\(\/\).*/{
21068 s//\1/
21069 q
21070 }
21071 s/.*/./; q'`
21072
21073# CDPATH.
21074$as_unset CDPATH
21075
21076
21077
21078 as_lineno_1=$LINENO
21079 as_lineno_2=$LINENO
21080 test "x$as_lineno_1" != "x$as_lineno_2" &&
21081 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21082
21083 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21084 # uniformly replaced by the line number. The first 'sed' inserts a
21085 # line-number line after each line using $LINENO; the second 'sed'
21086 # does the real work. The second script uses 'N' to pair each
21087 # line-number line with the line containing $LINENO, and appends
21088 # trailing '-' during substitution so that $LINENO is not a special
21089 # case at line end.
21090 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21091 # scripts with optimization help from Paolo Bonzini. Blame Lee
21092 # E. McMahon (1931-1989) for sed's syntax. :-)
21093 sed -n '
21094 p
21095 /[$]LINENO/=
21096 ' <$as_myself |
21097 sed '
21098 s/[$]LINENO.*/&-/
21099 t lineno
21100 b
21101 :lineno
21102 N
21103 :loop
21104 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21105 t loop
21106 s/-\n.*//
21107 ' >$as_me.lineno &&
21108 chmod +x "$as_me.lineno" ||
21109 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21110 { (exit 1); exit 1; }; }
21111
21112 # Don't try to exec as it changes $[0], causing all sort of problems
21113 # (the dirname of $[0] is not the place where we might find the
21114 # original and so on. Autoconf is especially sensitive to this).
21115 . "./$as_me.lineno"
21116 # Exit status is that of the last command.
21117 exit
21118}
21119
21120
21121if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21122 as_dirname=dirname
21123else
21124 as_dirname=false
21125fi
21126
21127ECHO_C= ECHO_N= ECHO_T=
21128case `echo -n x` in
21129-n*)
21130 case `echo 'x\c'` in
21131 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21132 *) ECHO_C='\c';;
21133 esac;;
21134*)
21135 ECHO_N='-n';;
21136esac
21137
21138if expr a : '\(a\)' >/dev/null 2>&1 &&
21139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21140 as_expr=expr
21141else
21142 as_expr=false
21143fi
21144
21145rm -f conf$$ conf$$.exe conf$$.file
21146if test -d conf$$.dir; then
21147 rm -f conf$$.dir/conf$$.file
21148else
21149 rm -f conf$$.dir
21150 mkdir conf$$.dir
21151fi
21152echo >conf$$.file
21153if ln -s conf$$.file conf$$ 2>/dev/null; then
21154 as_ln_s='ln -s'
21155 # ... but there are two gotchas:
21156 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21157 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21158 # In both cases, we have to default to `cp -p'.
21159 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21160 as_ln_s='cp -p'
21161elif ln conf$$.file conf$$ 2>/dev/null; then
21162 as_ln_s=ln
21163else
21164 as_ln_s='cp -p'
21165fi
21166rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21167rmdir conf$$.dir 2>/dev/null
21168
21169if mkdir -p . 2>/dev/null; then
21170 as_mkdir_p=:
21171else
21172 test -d ./-p && rmdir ./-p
21173 as_mkdir_p=false
21174fi
21175
21176if test -x / >/dev/null 2>&1; then
21177 as_test_x='test -x'
21178else
21179 if ls -dL / >/dev/null 2>&1; then
21180 as_ls_L_option=L
21181 else
21182 as_ls_L_option=
21183 fi
21184 as_test_x='
21185 eval sh -c '\''
21186 if test -d "$1"; then
21187 test -d "$1/.";
21188 else
21189 case $1 in
21190 -*)set "./$1";;
21191 esac;
21192 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21193 ???[sx]*):;;*)false;;esac;fi
21194 '\'' sh
21195 '
21196fi
21197as_executable_p=$as_test_x
21198
21199# Sed expression to map a string onto a valid CPP name.
21200as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21201
21202# Sed expression to map a string onto a valid variable name.
21203as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21204
21205
21206exec 6>&1
21207
21208# Save the log message, to keep $[0] and so on meaningful, and to
21209# report actual input values of CONFIG_FILES etc. instead of their
21210# values after options handling.
21211ac_log="
21212This file was extended by LibTIFF Software $as_me 3.8.2, which was
21213generated by GNU Autoconf 2.61. Invocation command line was
21214
21215 CONFIG_FILES = $CONFIG_FILES
21216 CONFIG_HEADERS = $CONFIG_HEADERS
21217 CONFIG_LINKS = $CONFIG_LINKS
21218 CONFIG_COMMANDS = $CONFIG_COMMANDS
21219 $ $0 $@
21220
21221on `(hostname || uname -n) 2>/dev/null | sed 1q`
21222"
21223
21224_ACEOF
21225
21226cat >>$CONFIG_STATUS <<_ACEOF
21227# Files that config.status was made for.
21228config_files="$ac_config_files"
21229config_headers="$ac_config_headers"
21230config_commands="$ac_config_commands"
21231
21232_ACEOF
21233
21234cat >>$CONFIG_STATUS <<\_ACEOF
21235ac_cs_usage="\
21236\`$as_me' instantiates files from templates according to the
21237current configuration.
21238
21239Usage: $0 [OPTIONS] [FILE]...
21240
21241 -h, --help print this help, then exit
21242 -V, --version print version number and configuration settings, then exit
21243 -q, --quiet do not print progress messages
21244 -d, --debug don't remove temporary files
21245 --recheck update $as_me by reconfiguring in the same conditions
21246 --file=FILE[:TEMPLATE]
21247 instantiate the configuration file FILE
21248 --header=FILE[:TEMPLATE]
21249 instantiate the configuration header FILE
21250
21251Configuration files:
21252$config_files
21253
21254Configuration headers:
21255$config_headers
21256
21257Configuration commands:
21258$config_commands
21259
21260Report bugs to <bug-autoconf@gnu.org>."
21261
21262_ACEOF
21263cat >>$CONFIG_STATUS <<_ACEOF
21264ac_cs_version="\\
21265LibTIFF Software config.status 3.8.2
21266configured by $0, generated by GNU Autoconf 2.61,
21267 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21268
21269Copyright (C) 2006 Free Software Foundation, Inc.
21270This config.status script is free software; the Free Software Foundation
21271gives unlimited permission to copy, distribute and modify it."
21272
21273ac_pwd='$ac_pwd'
21274srcdir='$srcdir'
21275INSTALL='$INSTALL'
21276_ACEOF
21277
21278cat >>$CONFIG_STATUS <<\_ACEOF
21279# If no file are specified by the user, then we need to provide default
21280# value. By we need to know if files were specified by the user.
21281ac_need_defaults=:
21282while test $# != 0
21283do
21284 case $1 in
21285 --*=*)
21286 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21287 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21288 ac_shift=:
21289 ;;
21290 *)
21291 ac_option=$1
21292 ac_optarg=$2
21293 ac_shift=shift
21294 ;;
21295 esac
21296
21297 case $ac_option in
21298 # Handling of the options.
21299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21300 ac_cs_recheck=: ;;
21301 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21302 echo "$ac_cs_version"; exit ;;
21303 --debug | --debu | --deb | --de | --d | -d )
21304 debug=: ;;
21305 --file | --fil | --fi | --f )
21306 $ac_shift
21307 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21308 ac_need_defaults=false;;
21309 --header | --heade | --head | --hea )
21310 $ac_shift
21311 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21312 ac_need_defaults=false;;
21313 --he | --h)
21314 # Conflict between --help and --header
21315 { echo "$as_me: error: ambiguous option: $1
21316Try \`$0 --help' for more information." >&2
21317 { (exit 1); exit 1; }; };;
21318 --help | --hel | -h )
21319 echo "$ac_cs_usage"; exit ;;
21320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21321 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21322 ac_cs_silent=: ;;
21323
21324 # This is an error.
21325 -*) { echo "$as_me: error: unrecognized option: $1
21326Try \`$0 --help' for more information." >&2
21327 { (exit 1); exit 1; }; } ;;
21328
21329 *) ac_config_targets="$ac_config_targets $1"
21330 ac_need_defaults=false ;;
21331
21332 esac
21333 shift
21334done
21335
21336ac_configure_extra_args=
21337
21338if $ac_cs_silent; then
21339 exec 6>/dev/null
21340 ac_configure_extra_args="$ac_configure_extra_args --silent"
21341fi
21342
21343_ACEOF
21344cat >>$CONFIG_STATUS <<_ACEOF
21345if \$ac_cs_recheck; then
21346 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21347 CONFIG_SHELL=$SHELL
21348 export CONFIG_SHELL
21349 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21350fi
21351
21352_ACEOF
21353cat >>$CONFIG_STATUS <<\_ACEOF
21354exec 5>>config.log
21355{
21356 echo
21357 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21358## Running $as_me. ##
21359_ASBOX
21360 echo "$ac_log"
21361} >&5
21362
21363_ACEOF
21364cat >>$CONFIG_STATUS <<_ACEOF
21365#
21366# INIT-COMMANDS
21367#
21368AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21369
21370
21371# The HP-UX ksh and POSIX shell print the target directory to stdout
21372# if CDPATH is set.
21373(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21374
21375sed_quote_subst='$sed_quote_subst'
21376double_quote_subst='$double_quote_subst'
21377delay_variable_subst='$delay_variable_subst'
21378macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21379macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21380enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21381enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21382pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21383enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21384host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21385host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21386host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21387build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21388build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21389build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21390SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21391Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21392GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21393EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21394FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21395LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21396NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21397LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21398max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21399ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21400exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21401reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21402reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21403deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21404file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21405AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21406AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21407STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21408RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21409old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21410old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21411old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21412CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21413CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21414compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21415GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21416lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21417lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21418lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
21419objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21420SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21421ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21422MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21423lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21424lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21425lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21426lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21427lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21428need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21429libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21430shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21431extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21432archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21433enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21434export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21435whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21436old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21437old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21438archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21439archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21440module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21441module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21442with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21443allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21444no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21445hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21446hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21447hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21448hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21449hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21450hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21451hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21452inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21453link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21454fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21455always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21456export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21457exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21458include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21459prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21460file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21461variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21462need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21463need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21464version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21465runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21466shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21467shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21468libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21469library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21470soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21471postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21472postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21473finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21474finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21475hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21476sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21477sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21478hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21479enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21480enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21481enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21482old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21483striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21484AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
21485DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21486OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21487predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21488postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21489predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
21490postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
21491compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
21492LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21493old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21494compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21495GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21496lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21497lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21498lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21499lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21500lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21501archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21502enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21503export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21504whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21505old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21506old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21507archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21508archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21509module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21510module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21511with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21512allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21513no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21514hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21515hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21516hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21517hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21518hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21519hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21520hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21521inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21522link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21523fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21524always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21525export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21526exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21527include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21528prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21529file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21530hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21531predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21532postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21533predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21534postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21535compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21536
21537LTCC='$LTCC'
21538LTCFLAGS='$LTCFLAGS'
21539compiler='$compiler_DEFAULT'
21540
21541# Quote evaled strings.
21542for var in SED \
21543GREP \
21544EGREP \
21545FGREP \
21546LD \
21547NM \
21548LN_S \
21549reload_flag \
21550deplibs_check_method \
21551file_magic_cmd \
21552AR \
21553AR_FLAGS \
21554STRIP \
21555RANLIB \
21556CC \
21557CFLAGS \
21558compiler \
21559lt_cv_sys_global_symbol_pipe \
21560lt_cv_sys_global_symbol_to_cdecl \
21561lt_cv_sys_global_symbol_to_c_name_address \
21562SHELL \
21563ECHO \
21564lt_prog_compiler_no_builtin_flag \
21565lt_prog_compiler_wl \
21566lt_prog_compiler_pic \
21567lt_prog_compiler_static \
21568lt_cv_prog_compiler_c_o \
21569need_locks \
21570shrext_cmds \
21571export_dynamic_flag_spec \
21572whole_archive_flag_spec \
21573with_gnu_ld \
21574allow_undefined_flag \
21575no_undefined_flag \
21576hardcode_libdir_flag_spec \
21577hardcode_libdir_flag_spec_ld \
21578hardcode_libdir_separator \
21579fix_srcfile_path \
21580exclude_expsyms \
21581include_expsyms \
21582file_list_spec \
21583variables_saved_for_relink \
21584libname_spec \
21585library_names_spec \
21586soname_spec \
21587finish_eval \
21588old_striplib \
21589striplib \
21590predep_objects \
21591postdep_objects \
21592predeps \
21593postdeps \
21594compiler_lib_search_path \
21595LD_CXX \
21596compiler_CXX \
21597lt_prog_compiler_no_builtin_flag_CXX \
21598lt_prog_compiler_wl_CXX \
21599lt_prog_compiler_pic_CXX \
21600lt_prog_compiler_static_CXX \
21601lt_cv_prog_compiler_c_o_CXX \
21602export_dynamic_flag_spec_CXX \
21603whole_archive_flag_spec_CXX \
21604with_gnu_ld_CXX \
21605allow_undefined_flag_CXX \
21606no_undefined_flag_CXX \
21607hardcode_libdir_flag_spec_CXX \
21608hardcode_libdir_flag_spec_ld_CXX \
21609hardcode_libdir_separator_CXX \
21610fix_srcfile_path_CXX \
21611exclude_expsyms_CXX \
21612include_expsyms_CXX \
21613file_list_spec_CXX \
21614predep_objects_CXX \
21615postdep_objects_CXX \
21616predeps_CXX \
21617postdeps_CXX \
21618compiler_lib_search_path_CXX; do
21619 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21620 *[\\\\\\\`\\"\\\$]*)
21621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21622 ;;
21623 *)
21624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21625 ;;
21626 esac
21627done
21628
21629# Double-quote double-evaled strings.
21630for var in reload_cmds \
21631old_postinstall_cmds \
21632old_postuninstall_cmds \
21633old_archive_cmds \
21634extract_expsyms_cmds \
21635old_archive_from_new_cmds \
21636old_archive_from_expsyms_cmds \
21637archive_cmds \
21638archive_expsym_cmds \
21639module_cmds \
21640module_expsym_cmds \
21641export_symbols_cmds \
21642prelink_cmds \
21643postinstall_cmds \
21644postuninstall_cmds \
21645finish_cmds \
21646sys_lib_search_path_spec \
21647sys_lib_dlsearch_path_spec \
21648old_archive_cmds_CXX \
21649old_archive_from_new_cmds_CXX \
21650old_archive_from_expsyms_cmds_CXX \
21651archive_cmds_CXX \
21652archive_expsym_cmds_CXX \
21653module_cmds_CXX \
21654module_expsym_cmds_CXX \
21655export_symbols_cmds_CXX \
21656prelink_cmds_CXX; do
21657 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21658 *[\\\\\\\`\\"\\\$]*)
21659 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21660 ;;
21661 *)
21662 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21663 ;;
21664 esac
21665done
21666
21667# Fix-up fallback echo if it was mangled by the above quoting rules.
21668case \$lt_ECHO in
21669*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21670 ;;
21671esac
21672
21673ac_aux_dir='$ac_aux_dir'
21674xsi_shell='$xsi_shell'
21675
21676# See if we are running on zsh, and set the options which allow our
21677# commands through without removal of \ escapes INIT.
21678if test -n "\${ZSH_VERSION+set}" ; then
21679 setopt NO_GLOB_SUBST
21680fi
21681
21682
21683 PACKAGE='$PACKAGE'
21684 VERSION='$VERSION'
21685 TIMESTAMP='$TIMESTAMP'
21686 RM='$RM'
21687 ofile='$ofile'
21688
21689
21690
21691
21692
21693
21694_ACEOF
21695
21696cat >>$CONFIG_STATUS <<\_ACEOF
21697
21698# Handling of arguments.
21699for ac_config_target in $ac_config_targets
21700do
21701 case $ac_config_target in
21702 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21703 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21704 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;;
21705 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;;
21706 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21707 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
21708 "contrib/acorn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/acorn/Makefile" ;;
21709 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;;
21710 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;;
21711 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;;
21712 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;;
21713 "contrib/mac-cw/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mac-cw/Makefile" ;;
21714 "contrib/mac-mpw/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mac-mpw/Makefile" ;;
21715 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;;
21716 "contrib/ojpeg/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ojpeg/Makefile" ;;
21717 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;;
21718 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;;
21719 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;;
21720 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;;
21721 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;;
21722 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
21723 "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;;
21724 "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;;
21725 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;;
21726 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21727 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
21728 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21729 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21730
21731 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21732echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21733 { (exit 1); exit 1; }; };;
21734 esac
21735done
21736
21737
21738# If the user did not use the arguments to specify the items to instantiate,
21739# then the envvar interface is used. Set only those that are not.
21740# We use the long form for the default assignment because of an extremely
21741# bizarre bug on SunOS 4.1.3.
21742if $ac_need_defaults; then
21743 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21744 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21745 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21746fi
21747
21748# Have a temporary directory for convenience. Make it in the build tree
21749# simply because there is no reason against having it here, and in addition,
21750# creating and moving files from /tmp can sometimes cause problems.
21751# Hook for its removal unless debugging.
21752# Note that there is a small window in which the directory will not be cleaned:
21753# after its creation but before its name has been assigned to `$tmp'.
21754$debug ||
21755{
21756 tmp=
21757 trap 'exit_status=$?
21758 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21759' 0
21760 trap '{ (exit 1); exit 1; }' 1 2 13 15
21761}
21762# Create a (secure) tmp directory for tmp files.
21763
21764{
21765 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21766 test -n "$tmp" && test -d "$tmp"
21767} ||
21768{
21769 tmp=./conf$$-$RANDOM
21770 (umask 077 && mkdir "$tmp")
21771} ||
21772{
21773 echo "$me: cannot create a temporary directory in ." >&2
21774 { (exit 1); exit 1; }
21775}
21776
21777#
21778# Set up the sed scripts for CONFIG_FILES section.
21779#
21780
21781# No need to generate the scripts if there are no CONFIG_FILES.
21782# This happens for instance when ./config.status config.h
21783if test -n "$CONFIG_FILES"; then
21784
21785_ACEOF
21786
21787
21788
21789ac_delim='%!_!# '
21790for ac_last_try in false false false false false :; do
21791 cat >conf$$subs.sed <<_ACEOF
21792SHELL!$SHELL$ac_delim
21793PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21794PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21795PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21796PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21797PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21798PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21799exec_prefix!$exec_prefix$ac_delim
21800prefix!$prefix$ac_delim
21801program_transform_name!$program_transform_name$ac_delim
21802bindir!$bindir$ac_delim
21803sbindir!$sbindir$ac_delim
21804libexecdir!$libexecdir$ac_delim
21805datarootdir!$datarootdir$ac_delim
21806datadir!$datadir$ac_delim
21807sysconfdir!$sysconfdir$ac_delim
21808sharedstatedir!$sharedstatedir$ac_delim
21809localstatedir!$localstatedir$ac_delim
21810includedir!$includedir$ac_delim
21811oldincludedir!$oldincludedir$ac_delim
21812docdir!$docdir$ac_delim
21813infodir!$infodir$ac_delim
21814htmldir!$htmldir$ac_delim
21815dvidir!$dvidir$ac_delim
21816pdfdir!$pdfdir$ac_delim
21817psdir!$psdir$ac_delim
21818libdir!$libdir$ac_delim
21819localedir!$localedir$ac_delim
21820mandir!$mandir$ac_delim
21821DEFS!$DEFS$ac_delim
21822ECHO_C!$ECHO_C$ac_delim
21823ECHO_N!$ECHO_N$ac_delim
21824ECHO_T!$ECHO_T$ac_delim
21825LIBS!$LIBS$ac_delim
21826build_alias!$build_alias$ac_delim
21827host_alias!$host_alias$ac_delim
21828target_alias!$target_alias$ac_delim
21829build!$build$ac_delim
21830build_cpu!$build_cpu$ac_delim
21831build_vendor!$build_vendor$ac_delim
21832build_os!$build_os$ac_delim
21833host!$host$ac_delim
21834host_cpu!$host_cpu$ac_delim
21835host_vendor!$host_vendor$ac_delim
21836host_os!$host_os$ac_delim
21837INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21838INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21839INSTALL_DATA!$INSTALL_DATA$ac_delim
21840CYGPATH_W!$CYGPATH_W$ac_delim
21841PACKAGE!$PACKAGE$ac_delim
21842VERSION!$VERSION$ac_delim
21843ACLOCAL!$ACLOCAL$ac_delim
21844AUTOCONF!$AUTOCONF$ac_delim
21845AUTOMAKE!$AUTOMAKE$ac_delim
21846AUTOHEADER!$AUTOHEADER$ac_delim
21847MAKEINFO!$MAKEINFO$ac_delim
21848install_sh!$install_sh$ac_delim
21849STRIP!$STRIP$ac_delim
21850INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21851mkdir_p!$mkdir_p$ac_delim
21852AWK!$AWK$ac_delim
21853SET_MAKE!$SET_MAKE$ac_delim
21854am__leading_dot!$am__leading_dot$ac_delim
21855AMTAR!$AMTAR$ac_delim
21856am__tar!$am__tar$ac_delim
21857am__untar!$am__untar$ac_delim
21858MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21859MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21860MAINT!$MAINT$ac_delim
21861LIBTIFF_MAJOR_VERSION!$LIBTIFF_MAJOR_VERSION$ac_delim
21862LIBTIFF_MINOR_VERSION!$LIBTIFF_MINOR_VERSION$ac_delim
21863LIBTIFF_MICRO_VERSION!$LIBTIFF_MICRO_VERSION$ac_delim
21864LIBTIFF_ALPHA_VERSION!$LIBTIFF_ALPHA_VERSION$ac_delim
21865LIBTIFF_VERSION!$LIBTIFF_VERSION$ac_delim
21866LIBTIFF_VERSION_INFO!$LIBTIFF_VERSION_INFO$ac_delim
21867LIBTIFF_RELEASE_DATE!$LIBTIFF_RELEASE_DATE$ac_delim
21868CC!$CC$ac_delim
21869CFLAGS!$CFLAGS$ac_delim
21870LDFLAGS!$LDFLAGS$ac_delim
21871CPPFLAGS!$CPPFLAGS$ac_delim
21872ac_ct_CC!$ac_ct_CC$ac_delim
21873EXEEXT!$EXEEXT$ac_delim
21874OBJEXT!$OBJEXT$ac_delim
21875DEPDIR!$DEPDIR$ac_delim
21876am__include!$am__include$ac_delim
21877am__quote!$am__quote$ac_delim
21878AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21879AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21880AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21881CCDEPMODE!$CCDEPMODE$ac_delim
21882am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21883am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21884LN_S!$LN_S$ac_delim
21885LIBTOOL!$LIBTOOL$ac_delim
21886SED!$SED$ac_delim
21887GREP!$GREP$ac_delim
21888EGREP!$EGREP$ac_delim
21889_ACEOF
21890
21891 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21892 break
21893 elif $ac_last_try; then
21894 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21895echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21896 { (exit 1); exit 1; }; }
21897 else
21898 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21899 fi
21900done
21901
21902ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21903if test -n "$ac_eof"; then
21904 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21905 ac_eof=`expr $ac_eof + 1`
21906fi
21907
21908cat >>$CONFIG_STATUS <<_ACEOF
21909cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21910/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21911_ACEOF
21912sed '
21913s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21914s/^/s,@/; s/!/@,|#_!!_#|/
21915:n
21916t n
21917s/'"$ac_delim"'$/,g/; t
21918s/$/\\/; p
21919N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21920' >>$CONFIG_STATUS <conf$$subs.sed
21921rm -f conf$$subs.sed
21922cat >>$CONFIG_STATUS <<_ACEOF
21923CEOF$ac_eof
21924_ACEOF
21925
21926
21927ac_delim='%!_!# '
21928for ac_last_try in false false false false false :; do
21929 cat >conf$$subs.sed <<_ACEOF
21930FGREP!$FGREP$ac_delim
21931LD!$LD$ac_delim
21932DUMPBIN!$DUMPBIN$ac_delim
21933ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
21934NM!$NM$ac_delim
21935AR!$AR$ac_delim
21936RANLIB!$RANLIB$ac_delim
21937lt_ECHO!$lt_ECHO$ac_delim
21938CPP!$CPP$ac_delim
21939AS!$AS$ac_delim
21940DLLTOOL!$DLLTOOL$ac_delim
21941OBJDUMP!$OBJDUMP$ac_delim
21942LIBOBJS!$LIBOBJS$ac_delim
21943HAVE_RPATH_TRUE!$HAVE_RPATH_TRUE$ac_delim
21944HAVE_RPATH_FALSE!$HAVE_RPATH_FALSE$ac_delim
21945LIBTIFF_DOCDIR!$LIBTIFF_DOCDIR$ac_delim
21946HAVE_CXX_TRUE!$HAVE_CXX_TRUE$ac_delim
21947HAVE_CXX_FALSE!$HAVE_CXX_FALSE$ac_delim
21948XMKMF!$XMKMF$ac_delim
21949X_CFLAGS!$X_CFLAGS$ac_delim
21950X_PRE_LIBS!$X_PRE_LIBS$ac_delim
21951X_LIBS!$X_LIBS$ac_delim
21952X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
21953acx_pthread_config!$acx_pthread_config$ac_delim
21954PTHREAD_CC!$PTHREAD_CC$ac_delim
21955PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
21956PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
21957GL_CFLAGS!$GL_CFLAGS$ac_delim
21958GL_LIBS!$GL_LIBS$ac_delim
21959CXX!$CXX$ac_delim
21960CXXFLAGS!$CXXFLAGS$ac_delim
21961ac_ct_CXX!$ac_ct_CXX$ac_delim
21962CXXDEPMODE!$CXXDEPMODE$ac_delim
21963am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21964am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21965CXXCPP!$CXXCPP$ac_delim
21966GLU_CFLAGS!$GLU_CFLAGS$ac_delim
21967GLU_LIBS!$GLU_LIBS$ac_delim
21968GLUT_CFLAGS!$GLUT_CFLAGS$ac_delim
21969GLUT_LIBS!$GLUT_LIBS$ac_delim
21970HAVE_OPENGL_TRUE!$HAVE_OPENGL_TRUE$ac_delim
21971HAVE_OPENGL_FALSE!$HAVE_OPENGL_FALSE$ac_delim
21972LIBDIR!$LIBDIR$ac_delim
21973LTLIBOBJS!$LTLIBOBJS$ac_delim
21974_ACEOF
21975
21976 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44; then
21977 break
21978 elif $ac_last_try; then
21979 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21980echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21981 { (exit 1); exit 1; }; }
21982 else
21983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21984 fi
21985done
21986
21987ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21988if test -n "$ac_eof"; then
21989 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21990 ac_eof=`expr $ac_eof + 1`
21991fi
21992
21993cat >>$CONFIG_STATUS <<_ACEOF
21994cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21995/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21996_ACEOF
21997sed '
21998s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21999s/^/s,@/; s/!/@,|#_!!_#|/
22000:n
22001t n
22002s/'"$ac_delim"'$/,g/; t
22003s/$/\\/; p
22004N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22005' >>$CONFIG_STATUS <conf$$subs.sed
22006rm -f conf$$subs.sed
22007cat >>$CONFIG_STATUS <<_ACEOF
22008:end
22009s/|#_!!_#|//g
22010CEOF$ac_eof
22011_ACEOF
22012
22013
22014# VPATH may cause trouble with some makes, so we remove $(srcdir),
22015# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22016# trailing colons and then remove the whole line if VPATH becomes empty
22017# (actually we leave an empty line to preserve line numbers).
22018if test "x$srcdir" = x.; then
22019 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22020s/:*\$(srcdir):*/:/
22021s/:*\${srcdir}:*/:/
22022s/:*@srcdir@:*/:/
22023s/^\([^=]*=[ ]*\):*/\1/
22024s/:*$//
22025s/^[^=]*=[ ]*$//
22026}'
22027fi
22028
22029cat >>$CONFIG_STATUS <<\_ACEOF
22030fi # test -n "$CONFIG_FILES"
22031
22032
22033for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22034do
22035 case $ac_tag in
22036 :[FHLC]) ac_mode=$ac_tag; continue;;
22037 esac
22038 case $ac_mode$ac_tag in
22039 :[FHL]*:*);;
22040 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22041echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22042 { (exit 1); exit 1; }; };;
22043 :[FH]-) ac_tag=-:-;;
22044 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22045 esac
22046 ac_save_IFS=$IFS
22047 IFS=:
22048 set x $ac_tag
22049 IFS=$ac_save_IFS
22050 shift
22051 ac_file=$1
22052 shift
22053
22054 case $ac_mode in
22055 :L) ac_source=$1;;
22056 :[FH])
22057 ac_file_inputs=
22058 for ac_f
22059 do
22060 case $ac_f in
22061 -) ac_f="$tmp/stdin";;
22062 *) # Look for the file first in the build tree, then in the source tree
22063 # (if the path is not absolute). The absolute path cannot be DOS-style,
22064 # because $ac_f cannot contain `:'.
22065 test -f "$ac_f" ||
22066 case $ac_f in
22067 [\\/$]*) false;;
22068 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22069 esac ||
22070 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22071echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22072 { (exit 1); exit 1; }; };;
22073 esac
22074 ac_file_inputs="$ac_file_inputs $ac_f"
22075 done
22076
22077 # Let's still pretend it is `configure' which instantiates (i.e., don't
22078 # use $as_me), people would be surprised to read:
22079 # /* config.h. Generated by config.status. */
22080 configure_input="Generated from "`IFS=:
22081 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22082 if test x"$ac_file" != x-; then
22083 configure_input="$ac_file. $configure_input"
22084 { echo "$as_me:$LINENO: creating $ac_file" >&5
22085echo "$as_me: creating $ac_file" >&6;}
22086 fi
22087
22088 case $ac_tag in
22089 *:-:* | *:-) cat >"$tmp/stdin";;
22090 esac
22091 ;;
22092 esac
22093
22094 ac_dir=`$as_dirname -- "$ac_file" ||
22095$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22096 X"$ac_file" : 'X\(//\)[^/]' \| \
22097 X"$ac_file" : 'X\(//\)$' \| \
22098 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22099echo X"$ac_file" |
22100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22101 s//\1/
22102 q
22103 }
22104 /^X\(\/\/\)[^/].*/{
22105 s//\1/
22106 q
22107 }
22108 /^X\(\/\/\)$/{
22109 s//\1/
22110 q
22111 }
22112 /^X\(\/\).*/{
22113 s//\1/
22114 q
22115 }
22116 s/.*/./; q'`
22117 { as_dir="$ac_dir"
22118 case $as_dir in #(
22119 -*) as_dir=./$as_dir;;
22120 esac
22121 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22122 as_dirs=
22123 while :; do
22124 case $as_dir in #(
22125 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22126 *) as_qdir=$as_dir;;
22127 esac
22128 as_dirs="'$as_qdir' $as_dirs"
22129 as_dir=`$as_dirname -- "$as_dir" ||
22130$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22131 X"$as_dir" : 'X\(//\)[^/]' \| \
22132 X"$as_dir" : 'X\(//\)$' \| \
22133 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22134echo X"$as_dir" |
22135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22136 s//\1/
22137 q
22138 }
22139 /^X\(\/\/\)[^/].*/{
22140 s//\1/
22141 q
22142 }
22143 /^X\(\/\/\)$/{
22144 s//\1/
22145 q
22146 }
22147 /^X\(\/\).*/{
22148 s//\1/
22149 q
22150 }
22151 s/.*/./; q'`
22152 test -d "$as_dir" && break
22153 done
22154 test -z "$as_dirs" || eval "mkdir $as_dirs"
22155 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22156echo "$as_me: error: cannot create directory $as_dir" >&2;}
22157 { (exit 1); exit 1; }; }; }
22158 ac_builddir=.
22159
22160case "$ac_dir" in
22161.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22162*)
22163 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22164 # A ".." for each directory in $ac_dir_suffix.
22165 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22166 case $ac_top_builddir_sub in
22167 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22168 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22169 esac ;;
22170esac
22171ac_abs_top_builddir=$ac_pwd
22172ac_abs_builddir=$ac_pwd$ac_dir_suffix
22173# for backward compatibility:
22174ac_top_builddir=$ac_top_build_prefix
22175
22176case $srcdir in
22177 .) # We are building in place.
22178 ac_srcdir=.
22179 ac_top_srcdir=$ac_top_builddir_sub
22180 ac_abs_top_srcdir=$ac_pwd ;;
22181 [\\/]* | ?:[\\/]* ) # Absolute name.
22182 ac_srcdir=$srcdir$ac_dir_suffix;
22183 ac_top_srcdir=$srcdir
22184 ac_abs_top_srcdir=$srcdir ;;
22185 *) # Relative name.
22186 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22187 ac_top_srcdir=$ac_top_build_prefix$srcdir
22188 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22189esac
22190ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22191
22192
22193 case $ac_mode in
22194 :F)
22195 #
22196 # CONFIG_FILE
22197 #
22198
22199 case $INSTALL in
22200 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22201 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22202 esac
22203_ACEOF
22204
22205cat >>$CONFIG_STATUS <<\_ACEOF
22206# If the template does not know about datarootdir, expand it.
22207# FIXME: This hack should be removed a few years after 2.60.
22208ac_datarootdir_hack=; ac_datarootdir_seen=
22209
22210case `sed -n '/datarootdir/ {
22211 p
22212 q
22213}
22214/@datadir@/p
22215/@docdir@/p
22216/@infodir@/p
22217/@localedir@/p
22218/@mandir@/p
22219' $ac_file_inputs` in
22220*datarootdir*) ac_datarootdir_seen=yes;;
22221*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22222 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22223echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22224_ACEOF
22225cat >>$CONFIG_STATUS <<_ACEOF
22226 ac_datarootdir_hack='
22227 s&@datadir@&$datadir&g
22228 s&@docdir@&$docdir&g
22229 s&@infodir@&$infodir&g
22230 s&@localedir@&$localedir&g
22231 s&@mandir@&$mandir&g
22232 s&\\\${datarootdir}&$datarootdir&g' ;;
22233esac
22234_ACEOF
22235
22236# Neutralize VPATH when `$srcdir' = `.'.
22237# Shell code in configure.ac might set extrasub.
22238# FIXME: do we really want to maintain this feature?
22239cat >>$CONFIG_STATUS <<_ACEOF
22240 sed "$ac_vpsub
22241$extrasub
22242_ACEOF
22243cat >>$CONFIG_STATUS <<\_ACEOF
22244:t
22245/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22246s&@configure_input@&$configure_input&;t t
22247s&@top_builddir@&$ac_top_builddir_sub&;t t
22248s&@srcdir@&$ac_srcdir&;t t
22249s&@abs_srcdir@&$ac_abs_srcdir&;t t
22250s&@top_srcdir@&$ac_top_srcdir&;t t
22251s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22252s&@builddir@&$ac_builddir&;t t
22253s&@abs_builddir@&$ac_abs_builddir&;t t
22254s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22255s&@INSTALL@&$ac_INSTALL&;t t
22256$ac_datarootdir_hack
22257" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22258
22259test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22260 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22261 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22262 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22263which seems to be undefined. Please make sure it is defined." >&5
22264echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22265which seems to be undefined. Please make sure it is defined." >&2;}
22266
22267 rm -f "$tmp/stdin"
22268 case $ac_file in
22269 -) cat "$tmp/out"; rm -f "$tmp/out";;
22270 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22271 esac
22272 ;;
22273 :H)
22274 #
22275 # CONFIG_HEADER
22276 #
22277_ACEOF
22278
22279# Transform confdefs.h into a sed script `conftest.defines', that
22280# substitutes the proper values into config.h.in to produce config.h.
22281rm -f conftest.defines conftest.tail
22282# First, append a space to every undef/define line, to ease matching.
22283echo 's/$/ /' >conftest.defines
22284# Then, protect against being on the right side of a sed subst, or in
22285# an unquoted here document, in config.status. If some macros were
22286# called several times there might be several #defines for the same
22287# symbol, which is useless. But do not sort them, since the last
22288# AC_DEFINE must be honored.
22289ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22290# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22291# NAME is the cpp macro being defined, VALUE is the value it is being given.
22292# PARAMS is the parameter list in the macro definition--in most cases, it's
22293# just an empty string.
22294ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22295ac_dB='\\)[ (].*,\\1define\\2'
22296ac_dC=' '
22297ac_dD=' ,'
22298
22299uniq confdefs.h |
22300 sed -n '
22301 t rset
22302 :rset
22303 s/^[ ]*#[ ]*define[ ][ ]*//
22304 t ok
22305 d
22306 :ok
22307 s/[\\&,]/\\&/g
22308 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22309 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22310 ' >>conftest.defines
22311
22312# Remove the space that was appended to ease matching.
22313# Then replace #undef with comments. This is necessary, for
22314# example, in the case of _POSIX_SOURCE, which is predefined and required
22315# on some systems where configure will not decide to define it.
22316# (The regexp can be short, since the line contains either #define or #undef.)
22317echo 's/ $//
22318s,^[ #]*u.*,/* & */,' >>conftest.defines
22319
22320# Break up conftest.defines:
22321ac_max_sed_lines=50
22322
22323# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22324# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22325# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22326# et cetera.
22327ac_in='$ac_file_inputs'
22328ac_out='"$tmp/out1"'
22329ac_nxt='"$tmp/out2"'
22330
22331while :
22332do
22333 # Write a here document:
22334 cat >>$CONFIG_STATUS <<_ACEOF
22335 # First, check the format of the line:
22336 cat >"\$tmp/defines.sed" <<\\CEOF
22337/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22338/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22339b
22340:def
22341_ACEOF
22342 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22343 echo 'CEOF
22344 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22345 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22346 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22347 grep . conftest.tail >/dev/null || break
22348 rm -f conftest.defines
22349 mv conftest.tail conftest.defines
22350done
22351rm -f conftest.defines conftest.tail
22352
22353echo "ac_result=$ac_in" >>$CONFIG_STATUS
22354cat >>$CONFIG_STATUS <<\_ACEOF
22355 if test x"$ac_file" != x-; then
22356 echo "/* $configure_input */" >"$tmp/config.h"
22357 cat "$ac_result" >>"$tmp/config.h"
22358 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22359 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22360echo "$as_me: $ac_file is unchanged" >&6;}
22361 else
22362 rm -f $ac_file
22363 mv "$tmp/config.h" $ac_file
22364 fi
22365 else
22366 echo "/* $configure_input */"
22367 cat "$ac_result"
22368 fi
22369 rm -f "$tmp/out12"
22370# Compute $ac_file's index in $config_headers.
22371_am_stamp_count=1
22372for _am_header in $config_headers :; do
22373 case $_am_header in
22374 $ac_file | $ac_file:* )
22375 break ;;
22376 * )
22377 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22378 esac
22379done
22380echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22381$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22382 X$ac_file : 'X\(//\)[^/]' \| \
22383 X$ac_file : 'X\(//\)$' \| \
22384 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22385echo X$ac_file |
22386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22387 s//\1/
22388 q
22389 }
22390 /^X\(\/\/\)[^/].*/{
22391 s//\1/
22392 q
22393 }
22394 /^X\(\/\/\)$/{
22395 s//\1/
22396 q
22397 }
22398 /^X\(\/\).*/{
22399 s//\1/
22400 q
22401 }
22402 s/.*/./; q'`/stamp-h$_am_stamp_count
22403 ;;
22404
22405 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22406echo "$as_me: executing $ac_file commands" >&6;}
22407 ;;
22408 esac
22409
22410
22411 case $ac_file$ac_mode in
22412 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22413 # Strip MF so we end up with the name of the file.
22414 mf=`echo "$mf" | sed -e 's/:.*$//'`
22415 # Check whether this is an Automake generated Makefile or not.
22416 # We used to match only the files named `Makefile.in', but
22417 # some people rename them; so instead we look at the file content.
22418 # Grep'ing the first line is not enough: some people post-process
22419 # each Makefile.in and add a new line on top of each file to say so.
22420 # So let's grep whole file.
22421 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22422 dirpart=`$as_dirname -- "$mf" ||
22423$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22424 X"$mf" : 'X\(//\)[^/]' \| \
22425 X"$mf" : 'X\(//\)$' \| \
22426 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22427echo X"$mf" |
22428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22429 s//\1/
22430 q
22431 }
22432 /^X\(\/\/\)[^/].*/{
22433 s//\1/
22434 q
22435 }
22436 /^X\(\/\/\)$/{
22437 s//\1/
22438 q
22439 }
22440 /^X\(\/\).*/{
22441 s//\1/
22442 q
22443 }
22444 s/.*/./; q'`
22445 else
22446 continue
22447 fi
22448 # Extract the definition of DEPDIR, am__include, and am__quote
22449 # from the Makefile without running `make'.
22450 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22451 test -z "$DEPDIR" && continue
22452 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22453 test -z "am__include" && continue
22454 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22455 # When using ansi2knr, U may be empty or an underscore; expand it
22456 U=`sed -n 's/^U = //p' < "$mf"`
22457 # Find all dependency output files, they are included files with
22458 # $(DEPDIR) in their names. We invoke sed twice because it is the
22459 # simplest approach to changing $(DEPDIR) to its actual value in the
22460 # expansion.
22461 for file in `sed -n "
22462 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22463 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22464 # Make sure the directory exists.
22465 test -f "$dirpart/$file" && continue
22466 fdir=`$as_dirname -- "$file" ||
22467$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22468 X"$file" : 'X\(//\)[^/]' \| \
22469 X"$file" : 'X\(//\)$' \| \
22470 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22471echo X"$file" |
22472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22473 s//\1/
22474 q
22475 }
22476 /^X\(\/\/\)[^/].*/{
22477 s//\1/
22478 q
22479 }
22480 /^X\(\/\/\)$/{
22481 s//\1/
22482 q
22483 }
22484 /^X\(\/\).*/{
22485 s//\1/
22486 q
22487 }
22488 s/.*/./; q'`
22489 { as_dir=$dirpart/$fdir
22490 case $as_dir in #(
22491 -*) as_dir=./$as_dir;;
22492 esac
22493 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22494 as_dirs=
22495 while :; do
22496 case $as_dir in #(
22497 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22498 *) as_qdir=$as_dir;;
22499 esac
22500 as_dirs="'$as_qdir' $as_dirs"
22501 as_dir=`$as_dirname -- "$as_dir" ||
22502$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22503 X"$as_dir" : 'X\(//\)[^/]' \| \
22504 X"$as_dir" : 'X\(//\)$' \| \
22505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22506echo X"$as_dir" |
22507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22508 s//\1/
22509 q
22510 }
22511 /^X\(\/\/\)[^/].*/{
22512 s//\1/
22513 q
22514 }
22515 /^X\(\/\/\)$/{
22516 s//\1/
22517 q
22518 }
22519 /^X\(\/\).*/{
22520 s//\1/
22521 q
22522 }
22523 s/.*/./; q'`
22524 test -d "$as_dir" && break
22525 done
22526 test -z "$as_dirs" || eval "mkdir $as_dirs"
22527 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22528echo "$as_me: error: cannot create directory $as_dir" >&2;}
22529 { (exit 1); exit 1; }; }; }
22530 # echo "creating $dirpart/$file"
22531 echo '# dummy' > "$dirpart/$file"
22532 done
22533done
22534 ;;
22535 "libtool":C)
22536
22537 # See if we are running on zsh, and set the options which allow our
22538 # commands through without removal of \ escapes.
22539 if test -n "${ZSH_VERSION+set}" ; then
22540 setopt NO_GLOB_SUBST
22541 fi
22542
22543 cfgfile="${ofile}T"
22544 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22545 $RM "$cfgfile"
22546
22547 cat <<_LT_EOF >> "$cfgfile"
22548#! $SHELL
22549
22550# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22551# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22552# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22553# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22554#
22555# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22556# 2006 Free Software Foundation, Inc.
22557#
22558# This file is part of GNU Libtool:
22559# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22560#
22561# This program is free software; you can redistribute it and/or modify
22562# it under the terms of the GNU General Public License as published by
22563# the Free Software Foundation; either version 2 of the License, or
22564# (at your option) any later version.
22565#
22566# This program is distributed in the hope that it will be useful, but
22567# WITHOUT ANY WARRANTY; without even the implied warranty of
22568# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22569# General Public License for more details.
22570#
22571# You should have received a copy of the GNU General Public License
22572# along with this program; if not, write to the Free Software
22573# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22574#
22575# As a special exception to the GNU General Public License, if you
22576# distribute this file as part of a program that contains a
22577# configuration script generated by Autoconf, you may include it under
22578# the same distribution terms that you use for the rest of that program.
22579
22580# TEST SUITE MARKER ## BEGIN SOURCABLE
22581
22582# The names of the tagged configurations supported by this script.
22583available_tags="CXX "
22584
22585# ### BEGIN LIBTOOL CONFIG
22586
22587# Which release of libtool.m4 was used?
22588macro_version=$macro_version
22589macro_revision=$macro_revision
22590
22591# Whether or not to build shared libraries.
22592build_libtool_libs=$enable_shared
22593
22594# Whether or not to build static libraries.
22595build_old_libs=$enable_static
22596
22597# What type of objects to build.
22598pic_mode=$pic_mode
22599
22600# Whether or not to optimize for fast installation.
22601fast_install=$enable_fast_install
22602
22603# The host system.
22604host_alias=$host_alias
22605host=$host
22606host_os=$host_os
22607
22608# The build system.
22609build_alias=$build_alias
22610build=$build
22611build_os=$build_os
22612
22613# A sed program that does not truncate output.
22614SED=$lt_SED
22615
22616# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22617Xsed="\$SED -e 1s/^X//"
22618
22619# A grep program that handles long lines.
22620GREP=$lt_GREP
22621
22622# An ERE matcher.
22623EGREP=$lt_EGREP
22624
22625# A literal string matcher.
22626FGREP=$lt_FGREP
22627
22628# A BSD- or MS-compatible name lister.
22629NM=$lt_NM
22630
22631# Whether we need soft or hard links.
22632LN_S=$lt_LN_S
22633
22634# What is the maximum length of a command?
22635max_cmd_len=$max_cmd_len
22636
22637# Object file suffix (normally "o").
22638objext=$ac_objext
22639
22640# Executable file suffix (normally "").
22641exeext=$exeext
22642
22643# How to create reloadable object files.
22644reload_flag=$lt_reload_flag
22645reload_cmds=$lt_reload_cmds
22646
22647# Method to check whether dependent libraries are shared objects.
22648deplibs_check_method=$lt_deplibs_check_method
22649
22650# Command to use when deplibs_check_method == "file_magic".
22651file_magic_cmd=$lt_file_magic_cmd
22652
22653# The archiver.
22654AR=$lt_AR
22655AR_FLAGS=$lt_AR_FLAGS
22656
22657# A symbol stripping program.
22658STRIP=$lt_STRIP
22659
22660# Commands used to install an old-style archive.
22661RANLIB=$lt_RANLIB
22662old_postinstall_cmds=$lt_old_postinstall_cmds
22663old_postuninstall_cmds=$lt_old_postuninstall_cmds
22664
22665# A C compiler.
22666LTCC=$lt_CC
22667
22668# LTCC compiler flags.
22669LTCFLAGS=$lt_CFLAGS
22670
22671# Take the output of nm and produce a listing of raw symbols and C names.
22672global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22673
22674# Transform the output of nm in a proper C declaration.
22675global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22676
22677# Transform the output of nm in a C name address pair.
22678global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22679
22680# The name of the directory that contains temporary libtool files.
22681objdir=$objdir
22682
22683# Shell to use when invoking shell scripts.
22684SHELL=$lt_SHELL
22685
22686# An echo program that does not interpret backslashes.
22687ECHO=$lt_ECHO
22688
22689# Used to examine libraries when file_magic_cmd begins with "file".
22690MAGIC_CMD=$MAGIC_CMD
22691
22692# Must we lock files when doing compilation?
22693need_locks=$lt_need_locks
22694
22695# Old archive suffix (normally "a").
22696libext=$libext
22697
22698# Shared library suffix (normally ".so").
22699shrext_cmds=$lt_shrext_cmds
22700
22701# The commands to extract the exported symbol list from a shared archive.
22702extract_expsyms_cmds=$lt_extract_expsyms_cmds
22703
22704# Variables whose values should be saved in libtool wrapper scripts and
22705# restored at link time.
22706variables_saved_for_relink=$lt_variables_saved_for_relink
22707
22708# Do we need the "lib" prefix for modules?
22709need_lib_prefix=$need_lib_prefix
22710
22711# Do we need a version for libraries?
22712need_version=$need_version
22713
22714# Library versioning type.
22715version_type=$version_type
22716
22717# Shared library runtime path variable.
22718runpath_var=$runpath_var
22719
22720# Shared library path variable.
22721shlibpath_var=$shlibpath_var
22722
22723# Is shlibpath searched before the hard-coded library search path?
22724shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22725
22726# Format of library name prefix.
22727libname_spec=$lt_libname_spec
22728
22729# List of archive names. First name is the real one, the rest are links.
22730# The last name is the one that the linker finds with -lNAME
22731library_names_spec=$lt_library_names_spec
22732
22733# The coded name of the library, if different from the real name.
22734soname_spec=$lt_soname_spec
22735
22736# Command to use after installation of a shared archive.
22737postinstall_cmds=$lt_postinstall_cmds
22738
22739# Command to use after uninstallation of a shared archive.
22740postuninstall_cmds=$lt_postuninstall_cmds
22741
22742# Commands used to finish a libtool library installation in a directory.
22743finish_cmds=$lt_finish_cmds
22744
22745# As "finish_cmds", except a single script fragment to be evaled but
22746# not shown.
22747finish_eval=$lt_finish_eval
22748
22749# Whether we should hardcode library paths into libraries.
22750hardcode_into_libs=$hardcode_into_libs
22751
22752# Compile-time system search path for libraries.
22753sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22754
22755# Run-time system search path for libraries.
22756sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22757
22758# Whether dlopen is supported.
22759dlopen_support=$enable_dlopen
22760
22761# Whether dlopen of programs is supported.
22762dlopen_self=$enable_dlopen_self
22763
22764# Whether dlopen of statically linked programs is supported.
22765dlopen_self_static=$enable_dlopen_self_static
22766
22767# Commands to strip libraries.
22768old_striplib=$lt_old_striplib
22769striplib=$lt_striplib
22770
22771# Assembler program.
22772AS=$AS
22773
22774# DLL creation program.
22775DLLTOOL=$DLLTOOL
22776
22777# Object dumper program.
22778OBJDUMP=$OBJDUMP
22779
22780
22781# The linker used to build libraries.
22782LD=$lt_LD
22783
22784# Commands used to build an old-style archive.
22785old_archive_cmds=$lt_old_archive_cmds
22786
22787# A language specific compiler.
22788CC=$lt_compiler
22789
22790# Is the compiler the GNU compiler?
22791with_gcc=$GCC
22792
22793# Compiler flag to turn off builtin functions.
22794no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22795
22796# How to pass a linker flag through the compiler.
22797wl=$lt_lt_prog_compiler_wl
22798
22799# Additional compiler flags for building library objects.
22800pic_flag=$lt_lt_prog_compiler_pic
22801
22802# Compiler flag to prevent dynamic linking.
22803link_static_flag=$lt_lt_prog_compiler_static
22804
22805# Does compiler simultaneously support -c and -o options?
22806compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22807
22808# Whether or not to add -lc for building shared libraries.
22809build_libtool_need_lc=$archive_cmds_need_lc
22810
22811# Whether or not to disallow shared libs when runtime libs are static.
22812allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22813
22814# Compiler flag to allow reflexive dlopens.
22815export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22816
22817# Compiler flag to generate shared objects directly from archives.
22818whole_archive_flag_spec=$lt_whole_archive_flag_spec
22819
22820# Create an old-style archive from a shared archive.
22821old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22822
22823# Create a temporary old-style archive to link instead of a shared archive.
22824old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22825
22826# Commands used to build a shared archive.
22827archive_cmds=$lt_archive_cmds
22828archive_expsym_cmds=$lt_archive_expsym_cmds
22829
22830# Commands used to build a loadable module if different from building
22831# a shared archive.
22832module_cmds=$lt_module_cmds
22833module_expsym_cmds=$lt_module_expsym_cmds
22834
22835# Whether we are building with GNU ld or not.
22836with_gnu_ld=$lt_with_gnu_ld
22837
22838# Flag that allows shared libraries with undefined symbols to be built.
22839allow_undefined_flag=$lt_allow_undefined_flag
22840
22841# Flag that enforces no undefined symbols.
22842no_undefined_flag=$lt_no_undefined_flag
22843
22844# Flag to hardcode \$libdir into a binary during linking.
22845# This must work even if \$libdir does not exist
22846hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22847
22848# If ld is used when linking, flag to hardcode \$libdir into a binary
22849# during linking. This must work even if \$libdir does not exist.
22850hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22851
22852# Whether we need a single "-rpath" flag with a separated argument.
22853hardcode_libdir_separator=$lt_hardcode_libdir_separator
22854
22855# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22856# DIR into the resulting binary.
22857hardcode_direct=$hardcode_direct
22858
22859# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22860# into the resulting binary.
22861hardcode_minus_L=$hardcode_minus_L
22862
22863# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22864# into the resulting binary.
22865hardcode_shlibpath_var=$hardcode_shlibpath_var
22866
22867# Set to "yes" if building a shared library automatically hardcodes DIR
22868# into the library and all subsequent libraries and executables linked
22869# against it.
22870hardcode_automatic=$hardcode_automatic
22871
22872# Set to yes if linker adds runtime paths of dependent libraries
22873# to runtime path list.
22874inherit_rpath=$inherit_rpath
22875
22876# Whether libtool must link a program against all its dependency libraries.
22877link_all_deplibs=$link_all_deplibs
22878
22879# Fix the shell variable \$srcfile for the compiler.
22880fix_srcfile_path=$lt_fix_srcfile_path
22881
22882# Set to "yes" if exported symbols are required.
22883always_export_symbols=$always_export_symbols
22884
22885# The commands to list exported symbols.
22886export_symbols_cmds=$lt_export_symbols_cmds
22887
22888# Symbols that should not be listed in the preloaded symbols.
22889exclude_expsyms=$lt_exclude_expsyms
22890
22891# Symbols that must always be exported.
22892include_expsyms=$lt_include_expsyms
22893
22894# Commands necessary for linking programs (against libraries) with templates.
22895prelink_cmds=$lt_prelink_cmds
22896
22897# Specify filename containing input files.
22898file_list_spec=$lt_file_list_spec
22899
22900# How to hardcode a shared library path into an executable.
22901hardcode_action=$hardcode_action
22902
22903# Dependencies to place before and after the objects being linked to
22904# create a shared library.
22905predep_objects=$lt_predep_objects
22906postdep_objects=$lt_postdep_objects
22907predeps=$lt_predeps
22908postdeps=$lt_postdeps
22909
22910# The library search path used internally by the compiler when linking
22911# a shared library.
22912compiler_lib_search_path=$lt_compiler_lib_search_path
22913
22914# ### END LIBTOOL CONFIG
22915
22916# The HP-UX ksh and POSIX shell print the target directory to stdout
22917# if CDPATH is set.
22918(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22919
22920_LT_EOF
22921
22922 case $host_os in
22923 aix3*)
22924 cat <<\_LT_EOF >> "$cfgfile"
22925# AIX sometimes has problems with the GCC collect2 program. For some
22926# reason, if we set the COLLECT_NAMES environment variable, the problems
22927# vanish in a puff of smoke.
22928if test "X${COLLECT_NAMES+set}" != Xset; then
22929 COLLECT_NAMES=
22930 export COLLECT_NAMES
22931fi
22932_LT_EOF
22933 ;;
22934 esac
22935
22936
22937ltmain="$ac_aux_dir/ltmain.sh"
22938
22939
22940 # We use sed instead of cat because bash on DJGPP gets confused if
22941 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22942 # text mode, it properly converts lines to CR/LF. This bash problem
22943 # is reportedly fixed, but why not run on old versions too?
22944 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22945 || (rm -f "$cfgfile"; exit 1)
22946
22947 case $xsi_shell in
22948 yes)
22949 cat << \_LT_EOF >> "$cfgfile"
22950# func_dirname file append nondir_replacement
22951# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22952# otherwise set result to NONDIR_REPLACEMENT.
22953func_dirname ()
22954{
22955 case ${1} in
22956 */*) func_dirname_result="${1%/*}${2}" ;;
22957 * ) func_dirname_result="${3}" ;;
22958 esac
22959}
22960
22961# func_basename file
22962func_basename ()
22963{
22964 func_basename_result="${1##*/}"
22965}
22966
22967# func_stripname prefix suffix name
22968# strip PREFIX and SUFFIX off of NAME.
22969# PREFIX and SUFFIX must not contain globbing or regex special
22970# characters, hashes, percent signs, but SUFFIX may contain a leading
22971# dot (in which case that matches only a dot).
22972func_stripname ()
22973{
22974 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22975 # positional parameters, so assign one to ordinary parameter first.
22976 func_stripname_result=${3}
22977 func_stripname_result=${func_stripname_result#"${1}"}
22978 func_stripname_result=${func_stripname_result%"${2}"}
22979}
22980_LT_EOF
22981 ;;
22982 *) # Bourne compatible functions.
22983 cat << \_LT_EOF >> "$cfgfile"
22984# func_dirname file append nondir_replacement
22985# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22986# otherwise set result to NONDIR_REPLACEMENT.
22987func_dirname ()
22988{
22989 # Extract subdirectory from the argument.
22990 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22991 if test "X$func_dirname_result" = "X${1}"; then
22992 func_dirname_result="${3}"
22993 else
22994 func_dirname_result="$func_dirname_result${2}"
22995 fi
22996}
22997
22998# func_basename file
22999func_basename ()
23000{
23001 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23002}
23003
23004# func_stripname prefix suffix name
23005# strip PREFIX and SUFFIX off of NAME.
23006# PREFIX and SUFFIX must not contain globbing or regex special
23007# characters, hashes, percent signs, but SUFFIX may contain a leading
23008# dot (in which case that matches only a dot).
23009# func_strip_suffix prefix name
23010func_stripname ()
23011{
23012 case ${2} in
23013 .*) func_stripname_result=`$ECHO "X${3}" \
23014 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23015 *) func_stripname_result=`$ECHO "X${3}" \
23016 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23017 esac
23018}
23019_LT_EOF
23020esac
23021
23022
23023 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23024 || (rm -f "$cfgfile"; exit 1)
23025
23026 mv -f "$cfgfile" "$ofile" ||
23027 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23028 chmod +x "$ofile"
23029
23030
23031 cat <<_LT_EOF >> "$ofile"
23032
23033# ### BEGIN LIBTOOL TAG CONFIG: CXX
23034
23035# The linker used to build libraries.
23036LD=$lt_LD_CXX
23037
23038# Commands used to build an old-style archive.
23039old_archive_cmds=$lt_old_archive_cmds_CXX
23040
23041# A language specific compiler.
23042CC=$lt_compiler_CXX
23043
23044# Is the compiler the GNU compiler?
23045with_gcc=$GCC_CXX
23046
23047# Compiler flag to turn off builtin functions.
23048no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23049
23050# How to pass a linker flag through the compiler.
23051wl=$lt_lt_prog_compiler_wl_CXX
23052
23053# Additional compiler flags for building library objects.
23054pic_flag=$lt_lt_prog_compiler_pic_CXX
23055
23056# Compiler flag to prevent dynamic linking.
23057link_static_flag=$lt_lt_prog_compiler_static_CXX
23058
23059# Does compiler simultaneously support -c and -o options?
23060compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23061
23062# Whether or not to add -lc for building shared libraries.
23063build_libtool_need_lc=$archive_cmds_need_lc_CXX
23064
23065# Whether or not to disallow shared libs when runtime libs are static.
23066allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23067
23068# Compiler flag to allow reflexive dlopens.
23069export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23070
23071# Compiler flag to generate shared objects directly from archives.
23072whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23073
23074# Create an old-style archive from a shared archive.
23075old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23076
23077# Create a temporary old-style archive to link instead of a shared archive.
23078old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23079
23080# Commands used to build a shared archive.
23081archive_cmds=$lt_archive_cmds_CXX
23082archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23083
23084# Commands used to build a loadable module if different from building
23085# a shared archive.
23086module_cmds=$lt_module_cmds_CXX
23087module_expsym_cmds=$lt_module_expsym_cmds_CXX
23088
23089# Whether we are building with GNU ld or not.
23090with_gnu_ld=$lt_with_gnu_ld_CXX
23091
23092# Flag that allows shared libraries with undefined symbols to be built.
23093allow_undefined_flag=$lt_allow_undefined_flag_CXX
23094
23095# Flag that enforces no undefined symbols.
23096no_undefined_flag=$lt_no_undefined_flag_CXX
23097
23098# Flag to hardcode \$libdir into a binary during linking.
23099# This must work even if \$libdir does not exist
23100hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23101
23102# If ld is used when linking, flag to hardcode \$libdir into a binary
23103# during linking. This must work even if \$libdir does not exist.
23104hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23105
23106# Whether we need a single "-rpath" flag with a separated argument.
23107hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23108
23109# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23110# DIR into the resulting binary.
23111hardcode_direct=$hardcode_direct_CXX
23112
23113# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23114# into the resulting binary.
23115hardcode_minus_L=$hardcode_minus_L_CXX
23116
23117# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23118# into the resulting binary.
23119hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23120
23121# Set to "yes" if building a shared library automatically hardcodes DIR
23122# into the library and all subsequent libraries and executables linked
23123# against it.
23124hardcode_automatic=$hardcode_automatic_CXX
23125
23126# Set to yes if linker adds runtime paths of dependent libraries
23127# to runtime path list.
23128inherit_rpath=$inherit_rpath_CXX
23129
23130# Whether libtool must link a program against all its dependency libraries.
23131link_all_deplibs=$link_all_deplibs_CXX
23132
23133# Fix the shell variable \$srcfile for the compiler.
23134fix_srcfile_path=$lt_fix_srcfile_path_CXX
23135
23136# Set to "yes" if exported symbols are required.
23137always_export_symbols=$always_export_symbols_CXX
23138
23139# The commands to list exported symbols.
23140export_symbols_cmds=$lt_export_symbols_cmds_CXX
23141
23142# Symbols that should not be listed in the preloaded symbols.
23143exclude_expsyms=$lt_exclude_expsyms_CXX
23144
23145# Symbols that must always be exported.
23146include_expsyms=$lt_include_expsyms_CXX
23147
23148# Commands necessary for linking programs (against libraries) with templates.
23149prelink_cmds=$lt_prelink_cmds_CXX
23150
23151# Specify filename containing input files.
23152file_list_spec=$lt_file_list_spec_CXX
23153
23154# How to hardcode a shared library path into an executable.
23155hardcode_action=$hardcode_action_CXX
23156
23157# Dependencies to place before and after the objects being linked to
23158# create a shared library.
23159predep_objects=$lt_predep_objects_CXX
23160postdep_objects=$lt_postdep_objects_CXX
23161predeps=$lt_predeps_CXX
23162postdeps=$lt_postdeps_CXX
23163
23164# The library search path used internally by the compiler when linking
23165# a shared library.
23166compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23167
23168# ### END LIBTOOL TAG CONFIG: CXX
23169_LT_EOF
23170
23171 ;;
23172
23173 esac
23174done # for ac_tag
23175
23176
23177{ (exit 0); exit 0; }
23178_ACEOF
23179chmod +x $CONFIG_STATUS
23180ac_clean_files=$ac_clean_files_save
23181
23182
23183# configure is writing to config.log, and then calls config.status.
23184# config.status does its own redirection, appending to config.log.
23185# Unfortunately, on DOS this fails, as config.log is still kept open
23186# by configure, so config.status won't be able to write to it; its
23187# output is simply discarded. So we exec the FD to /dev/null,
23188# effectively closing config.log, so it can be properly (re)opened and
23189# appended to by config.status. When coming back to configure, we
23190# need to make the FD available again.
23191if test "$no_create" != yes; then
23192 ac_cs_success=:
23193 ac_config_status_args=
23194 test "$silent" = yes &&
23195 ac_config_status_args="$ac_config_status_args --quiet"
23196 exec 5>/dev/null
23197 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23198 exec 5>>config.log
23199 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23200 # would make configure fail if this is the last instruction.
23201 $ac_cs_success || { (exit 1); exit 1; }
23202fi
23203
23204
23205
23206echo ""
23207echo "Libtiff is now configured for ${host}"
23208echo ""
23209echo " Installation directory: ${prefix}"
23210echo " Documentation directory: ${LIBTIFF_DOCDIR}"
23211echo " C compiler: ${CC} ${CFLAGS}"
23212echo " C++ compiler: ${CXX} ${CXXFLAGS}"
23213echo " Enable runtime linker paths: ${HAVE_RPATH}"
23214echo " Support Microsoft Document Imaging: ${HAVE_MDI}"
23215echo ""
23216echo " Support for internal codecs:"
23217echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}"
23218echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}"
23219echo " LZW algorithm: ${HAVE_LZW}"
23220echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}"
23221echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}"
23222echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}"
23223echo ""
23224echo " Support for external codecs:"
23225echo " ZLIB support: ${HAVE_ZLIB}"
23226echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}"
23227echo " JPEG support: ${HAVE_JPEG}"
23228echo " Old JPEG support: ${HAVE_OJPEG}"
23229echo ""
23230echo " C++ support: ${HAVE_CXX}"
23231echo ""
23232echo " OpenGL support: ${HAVE_OPENGL}"
23233echo ""
23234