]> git.saurik.com Git - wxWidgets.git/blame - src/tiff/configure
Better fix
[wxWidgets.git] / src / tiff / configure
CommitLineData
8414a40c
VZ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for LibTIFF Software 3.8.2.
4#
5# Report bugs to <tiff@lists.maptools.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$lt_ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257ECHO=${lt_ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $ECHO works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<_LT_EOF
276$*
277_LT_EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$lt_ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
291 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
292 then
293 break
294 fi
295 done
296 fi
297
298 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302 else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
311 IFS="$lt_save_ifs"
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 ECHO="$dir/echo"
317 break
318 fi
319 done
320 IFS="$lt_save_ifs"
321
322 if test "X$ECHO" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 ECHO='print -r'
329 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 ECHO='printf %s\n'
340 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 ECHO="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 ECHO="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 ECHO=echo
378 fi
379 fi
380 fi
381 fi
382 fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387lt_ECHO=$ECHO
388if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
394
395# Name of the host.
396# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
397# so uname gets run too.
398ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
399
400exec 6>&1
401
402#
403# Initializations.
404#
405ac_default_prefix=/usr/local
406ac_config_libobj_dir=.
407cross_compiling=no
408subdirs=
409MFLAGS=
410MAKEFLAGS=
411SHELL=${CONFIG_SHELL-/bin/sh}
412
413# Maximum number of lines to put in a shell here document.
414# This variable seems obsolete. It should probably be removed, and
415# only ac_max_sed_lines should be used.
416: ${ac_max_here_lines=38}
417
418# Identity of this package.
419PACKAGE_NAME='LibTIFF Software'
420PACKAGE_TARNAME='tiff'
421PACKAGE_VERSION='3.8.2'
422PACKAGE_STRING='LibTIFF Software 3.8.2'
423PACKAGE_BUGREPORT='tiff@lists.maptools.org'
424
425# Factoring default headers for most tests.
426ac_includes_default="\
427#include <stdio.h>
428#if HAVE_SYS_TYPES_H
429# include <sys/types.h>
430#endif
431#if HAVE_SYS_STAT_H
432# include <sys/stat.h>
433#endif
434#if STDC_HEADERS
435# include <stdlib.h>
436# include <stddef.h>
437#else
438# if HAVE_STDLIB_H
439# include <stdlib.h>
440# endif
441#endif
442#if HAVE_STRING_H
443# if !STDC_HEADERS && HAVE_MEMORY_H
444# include <memory.h>
445# endif
446# include <string.h>
447#endif
448#if HAVE_STRINGS_H
449# include <strings.h>
450#endif
451#if HAVE_INTTYPES_H
452# include <inttypes.h>
453#else
454# if HAVE_STDINT_H
455# include <stdint.h>
456# endif
457#endif
458#if HAVE_UNISTD_H
459# include <unistd.h>
460#endif"
461
462ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTIFF_MAJOR_VERSION LIBTIFF_MINOR_VERSION LIBTIFF_MICRO_VERSION LIBTIFF_ALPHA_VERSION LIBTIFF_VERSION LIBTIFF_VERSION_INFO LIBTIFF_RELEASE_DATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP AS ac_ct_AS DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBOBJS HAVE_RPATH_TRUE HAVE_RPATH_FALSE LIBTIFF_DOCDIR HAVE_CXX_TRUE HAVE_CXX_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS GL_CFLAGS GL_LIBS CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP GLU_CFLAGS GLU_LIBS GLUT_CFLAGS GLUT_LIBS HAVE_OPENGL_TRUE HAVE_OPENGL_FALSE LIBDIR LTLIBOBJS'
463ac_subst_files=''
464
465# Initialize some variables set by options.
466ac_init_help=
467ac_init_version=false
468# The variables have the same names as the options, with
469# dashes changed to underlines.
470cache_file=/dev/null
471exec_prefix=NONE
472no_create=
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
481verbose=
482x_includes=NONE
483x_libraries=NONE
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
503ac_prev=
504for ac_option
505do
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
517 case $ac_option in
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
523
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
544
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
553
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
586
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
735
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
748
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
775
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
779 ;;
780
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
791 *)
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
806fi
807
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
818
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822do
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829done
830
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
848
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
853
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
885 fi
886fi
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
923ac_env_CXX_set=${CXX+set}
924ac_env_CXX_value=$CXX
925ac_cv_env_CXX_set=${CXX+set}
926ac_cv_env_CXX_value=$CXX
927ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928ac_env_CXXFLAGS_value=$CXXFLAGS
929ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931ac_env_CXXCPP_set=${CXXCPP+set}
932ac_env_CXXCPP_value=$CXXCPP
933ac_cv_env_CXXCPP_set=${CXXCPP+set}
934ac_cv_env_CXXCPP_value=$CXXCPP
935
936#
937# Report the --help message.
938#
939if test "$ac_init_help" = "long"; then
940 # Omit some internal or obsolete options to make the list less imposing.
941 # This message is too long to be a string in the A/UX 3.1 sh.
942 cat <<_ACEOF
943\`configure' configures LibTIFF Software 3.8.2 to adapt to many kinds of systems.
944
945Usage: $0 [OPTION]... [VAR=VALUE]...
946
947To assign environment variables (e.g., CC, CFLAGS...), specify them as
948VAR=VALUE. See below for descriptions of some of the useful variables.
949
950Defaults for the options are specified in brackets.
951
952Configuration:
953 -h, --help display this help and exit
954 --help=short display options specific to this package
955 --help=recursive display the short help of all the included packages
956 -V, --version display version information and exit
957 -q, --quiet, --silent do not print \`checking...' messages
958 --cache-file=FILE cache test results in FILE [disabled]
959 -C, --config-cache alias for \`--cache-file=config.cache'
960 -n, --no-create do not create output files
961 --srcdir=DIR find the sources in DIR [configure dir or \`..']
962
963_ACEOF
964
965 cat <<_ACEOF
966Installation directories:
967 --prefix=PREFIX install architecture-independent files in PREFIX
968 [$ac_default_prefix]
969 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
970 [PREFIX]
971
972By default, \`make install' will install all the files in
973\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
974an installation prefix other than \`$ac_default_prefix' using \`--prefix',
975for instance \`--prefix=\$HOME'.
976
977For better control, use the options below.
978
979Fine tuning of the installation directories:
980 --bindir=DIR user executables [EPREFIX/bin]
981 --sbindir=DIR system admin executables [EPREFIX/sbin]
982 --libexecdir=DIR program executables [EPREFIX/libexec]
983 --datadir=DIR read-only architecture-independent data [PREFIX/share]
984 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
985 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
986 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
987 --libdir=DIR object code libraries [EPREFIX/lib]
988 --includedir=DIR C header files [PREFIX/include]
989 --oldincludedir=DIR C header files for non-gcc [/usr/include]
990 --infodir=DIR info documentation [PREFIX/info]
991 --mandir=DIR man documentation [PREFIX/man]
992_ACEOF
993
994 cat <<\_ACEOF
995
996Program names:
997 --program-prefix=PREFIX prepend PREFIX to installed program names
998 --program-suffix=SUFFIX append SUFFIX to installed program names
999 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1000
1001X features:
1002 --x-includes=DIR X include files are in DIR
1003 --x-libraries=DIR X library files are in DIR
1004
1005System types:
1006 --build=BUILD configure for building on BUILD [guessed]
1007 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1008 --target=TARGET configure for building compilers for TARGET [HOST]
1009_ACEOF
1010fi
1011
1012if test -n "$ac_init_help"; then
1013 case $ac_init_help in
1014 short | recursive ) echo "Configuration of LibTIFF Software 3.8.2:";;
1015 esac
1016 cat <<\_ACEOF
1017
1018Optional Features:
1019 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1020 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1021 --enable-maintainer-mode enable make rules and dependencies not useful
1022 (and sometimes confusing) to the casual installer
1023 --disable-dependency-tracking speeds up one-time build
1024 --enable-dependency-tracking do not reject slow dependency extractors
1025 --enable-shared[=PKGS]
1026 build shared libraries [default=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-fast-install[=PKGS]
1030 optimize for fast installation [default=yes]
1031 --disable-libtool-lock avoid locking (might break parallel builds)
1032 --enable-rpath Enable runtime linker paths (-R libtool option)
1033 --disable-largefile omit support for large files
1034 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms
1035 --disable-packbits disable support for Macintosh PackBits algorithm
1036 --disable-lzw disable support for LZW algorithm
1037 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm
1038 --disable-next disable support for NeXT 2-bit RLE algorithm
1039 --disable-logluv disable support for LogLuv high dynamic range
1040 encoding
1041 --disable-mdi disable support for Microsoft Document Imaging
1042 --disable-zlib disable Zlib usage (required for Deflate
1043 compression, enabled by default)
1044 --disable-pixarlog disable support for Pixar log-format algorithm
1045 (requires Zlib)
1046 --disable-jpeg disable IJG JPEG library usage (required for JPEG
1047 compression, enabled by default)
1048 --enable-old-jpeg enable support for Old JPEG compresson (read
1049 contrib/ojpeg/README first! Compilation fails with
1050 unpatched IJG JPEG library)
1051 --enable-cxx enable C++ stream API building (requires C++
1052 compiler)
1053 --disable-strip-chopping
1054 disable support for strip chopping (whether or not
1055 to convert single-strip uncompressed images to
1056 mutiple strips of specified size to reduce memory
1057 usage)
1058 --disable-extrasample-as-alpha
1059 the RGBA interface will treat a fourth sample with
1060 no EXTRASAMPLE_ value as being ASSOCALPHA. Many
1061 packages produce RGBA files but don't mark the alpha
1062 properly
1063 --disable-check-ycbcr-subsampling
1064 disable picking up YCbCr subsampling info from the
1065 JPEG data stream to support files lacking the tag
1066
1067Optional Packages:
1068 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1069 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1070 --with-pic try to use only PIC/non-PIC objects [default=use
1071 both]
1072 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1073 --with-docdir=DIR directory where documentation should be installed
1074 --with-zlib-include-dir=DIR
1075 location of Zlib headers
1076 --with-zlib-lib-dir=DIR location of Zlib library binary
1077 --with-jpeg-include-dir=DIR
1078 location of IJG JPEG library headers
1079 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary
1080 --with-x use the X Window System
1081 --with-apple-opengl-framework
1082 use Apple OpenGL framework (Mac OS X only)
1083 --with-default-strip-size=SIZE
1084 default size of the strip in bytes (when strip
1085 chopping enabled) [default=8192]
1086
1087Some influential environment variables:
1088 CC C compiler command
1089 CFLAGS C compiler flags
1090 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1091 nonstandard directory <lib dir>
1092 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1093 headers in a nonstandard directory <include dir>
1094 CPP C preprocessor
1095 CXX C++ compiler command
1096 CXXFLAGS C++ compiler flags
1097 CXXCPP C++ preprocessor
1098
1099Use these variables to override the choices made by `configure' or to help
1100it to find libraries and programs with nonstandard names/locations.
1101
1102Report bugs to <tiff@lists.maptools.org>.
1103_ACEOF
1104fi
1105
1106if test "$ac_init_help" = "recursive"; then
1107 # If there are subdirs, report their specific --help.
1108 ac_popdir=`pwd`
1109 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1110 test -d $ac_dir || continue
1111 ac_builddir=.
1112
1113if test "$ac_dir" != .; then
1114 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1115 # A "../" for each directory in $ac_dir_suffix.
1116 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1117else
1118 ac_dir_suffix= ac_top_builddir=
1119fi
1120
1121case $srcdir in
1122 .) # No --srcdir option. We are building in place.
1123 ac_srcdir=.
1124 if test -z "$ac_top_builddir"; then
1125 ac_top_srcdir=.
1126 else
1127 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1128 fi ;;
1129 [\\/]* | ?:[\\/]* ) # Absolute path.
1130 ac_srcdir=$srcdir$ac_dir_suffix;
1131 ac_top_srcdir=$srcdir ;;
1132 *) # Relative path.
1133 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1134 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1135esac
1136
1137# Do not use `cd foo && pwd` to compute absolute paths, because
1138# the directories may not exist.
1139case `pwd` in
1140.) ac_abs_builddir="$ac_dir";;
1141*)
1142 case "$ac_dir" in
1143 .) ac_abs_builddir=`pwd`;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1145 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1146 esac;;
1147esac
1148case $ac_abs_builddir in
1149.) ac_abs_top_builddir=${ac_top_builddir}.;;
1150*)
1151 case ${ac_top_builddir}. in
1152 .) ac_abs_top_builddir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1155 esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_srcdir=$ac_srcdir;;
1159*)
1160 case $ac_srcdir in
1161 .) ac_abs_srcdir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1163 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1164 esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_top_srcdir=$ac_top_srcdir;;
1168*)
1169 case $ac_top_srcdir in
1170 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1173 esac;;
1174esac
1175
1176 cd $ac_dir
1177 # Check for guested configure; otherwise get Cygnus style configure.
1178 if test -f $ac_srcdir/configure.gnu; then
1179 echo
1180 $SHELL $ac_srcdir/configure.gnu --help=recursive
1181 elif test -f $ac_srcdir/configure; then
1182 echo
1183 $SHELL $ac_srcdir/configure --help=recursive
1184 elif test -f $ac_srcdir/configure.ac ||
1185 test -f $ac_srcdir/configure.in; then
1186 echo
1187 $ac_configure --help
1188 else
1189 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1190 fi
1191 cd "$ac_popdir"
1192 done
1193fi
1194
1195test -n "$ac_init_help" && exit 0
1196if $ac_init_version; then
1197 cat <<\_ACEOF
1198LibTIFF Software configure 3.8.2
1199generated by GNU Autoconf 2.59
1200
1201Copyright (C) 2003 Free Software Foundation, Inc.
1202This configure script is free software; the Free Software Foundation
1203gives unlimited permission to copy, distribute and modify it.
1204_ACEOF
1205 exit 0
1206fi
1207exec 5>config.log
1208cat >&5 <<_ACEOF
1209This file contains any messages produced by compilers while
1210running configure, to aid debugging if configure makes a mistake.
1211
1212It was created by LibTIFF Software $as_me 3.8.2, which was
1213generated by GNU Autoconf 2.59. Invocation command line was
1214
1215 $ $0 $@
1216
1217_ACEOF
1218{
1219cat <<_ASUNAME
1220## --------- ##
1221## Platform. ##
1222## --------- ##
1223
1224hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1225uname -m = `(uname -m) 2>/dev/null || echo unknown`
1226uname -r = `(uname -r) 2>/dev/null || echo unknown`
1227uname -s = `(uname -s) 2>/dev/null || echo unknown`
1228uname -v = `(uname -v) 2>/dev/null || echo unknown`
1229
1230/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1231/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1232
1233/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1234/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1235/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1236hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1237/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1238/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1239/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1240
1241_ASUNAME
1242
1243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1244for as_dir in $PATH
1245do
1246 IFS=$as_save_IFS
1247 test -z "$as_dir" && as_dir=.
1248 echo "PATH: $as_dir"
1249done
1250
1251} >&5
1252
1253cat >&5 <<_ACEOF
1254
1255
1256## ----------- ##
1257## Core tests. ##
1258## ----------- ##
1259
1260_ACEOF
1261
1262
1263# Keep a trace of the command line.
1264# Strip out --no-create and --no-recursion so they do not pile up.
1265# Strip out --silent because we don't want to record it for future runs.
1266# Also quote any args containing shell meta-characters.
1267# Make two passes to allow for proper duplicate-argument suppression.
1268ac_configure_args=
1269ac_configure_args0=
1270ac_configure_args1=
1271ac_sep=
1272ac_must_keep_next=false
1273for ac_pass in 1 2
1274do
1275 for ac_arg
1276 do
1277 case $ac_arg in
1278 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1281 continue ;;
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 esac
1285 case $ac_pass in
1286 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1287 2)
1288 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1289 if test $ac_must_keep_next = true; then
1290 ac_must_keep_next=false # Got value, back to normal.
1291 else
1292 case $ac_arg in
1293 *=* | --config-cache | -C | -disable-* | --disable-* \
1294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1296 | -with-* | --with-* | -without-* | --without-* | --x)
1297 case "$ac_configure_args0 " in
1298 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1299 esac
1300 ;;
1301 -* ) ac_must_keep_next=true ;;
1302 esac
1303 fi
1304 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1305 # Get rid of the leading space.
1306 ac_sep=" "
1307 ;;
1308 esac
1309 done
1310done
1311$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1312$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1313
1314# When interrupted or exit'd, cleanup temporary files, and complete
1315# config.log. We remove comments because anyway the quotes in there
1316# would cause problems or look ugly.
1317# WARNING: Be sure not to use single quotes in there, as some shells,
1318# such as our DU 5.0 friend, will then `close' the trap.
1319trap 'exit_status=$?
1320 # Save into config.log some information that might help in debugging.
1321 {
1322 echo
1323
1324 cat <<\_ASBOX
1325## ---------------- ##
1326## Cache variables. ##
1327## ---------------- ##
1328_ASBOX
1329 echo
1330 # The following way of writing the cache mishandles newlines in values,
1331{
1332 (set) 2>&1 |
1333 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1334 *ac_space=\ *)
1335 sed -n \
1336 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1338 ;;
1339 *)
1340 sed -n \
1341 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1342 ;;
1343 esac;
1344}
1345 echo
1346
1347 cat <<\_ASBOX
1348## ----------------- ##
1349## Output variables. ##
1350## ----------------- ##
1351_ASBOX
1352 echo
1353 for ac_var in $ac_subst_vars
1354 do
1355 eval ac_val=$`echo $ac_var`
1356 echo "$ac_var='"'"'$ac_val'"'"'"
1357 done | sort
1358 echo
1359
1360 if test -n "$ac_subst_files"; then
1361 cat <<\_ASBOX
1362## ------------- ##
1363## Output files. ##
1364## ------------- ##
1365_ASBOX
1366 echo
1367 for ac_var in $ac_subst_files
1368 do
1369 eval ac_val=$`echo $ac_var`
1370 echo "$ac_var='"'"'$ac_val'"'"'"
1371 done | sort
1372 echo
1373 fi
1374
1375 if test -s confdefs.h; then
1376 cat <<\_ASBOX
1377## ----------- ##
1378## confdefs.h. ##
1379## ----------- ##
1380_ASBOX
1381 echo
1382 sed "/^$/d" confdefs.h | sort
1383 echo
1384 fi
1385 test "$ac_signal" != 0 &&
1386 echo "$as_me: caught signal $ac_signal"
1387 echo "$as_me: exit $exit_status"
1388 } >&5
1389 rm -f core *.core &&
1390 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1391 exit $exit_status
1392 ' 0
1393for ac_signal in 1 2 13 15; do
1394 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1395done
1396ac_signal=0
1397
1398# confdefs.h avoids OS command line length limits that DEFS can exceed.
1399rm -rf conftest* confdefs.h
1400# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1401echo >confdefs.h
1402
1403# Predefined preprocessor variables.
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_NAME "$PACKAGE_NAME"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_VERSION "$PACKAGE_VERSION"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_STRING "$PACKAGE_STRING"
1422_ACEOF
1423
1424
1425cat >>confdefs.h <<_ACEOF
1426#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1427_ACEOF
1428
1429
1430# Let the site file select an alternate cache file if it wants to.
1431# Prefer explicitly selected file to automatically selected ones.
1432if test -z "$CONFIG_SITE"; then
1433 if test "x$prefix" != xNONE; then
1434 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1435 else
1436 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1437 fi
1438fi
1439for ac_site_file in $CONFIG_SITE; do
1440 if test -r "$ac_site_file"; then
1441 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1442echo "$as_me: loading site script $ac_site_file" >&6;}
1443 sed 's/^/| /' "$ac_site_file" >&5
1444 . "$ac_site_file"
1445 fi
1446done
1447
1448if test -r "$cache_file"; then
1449 # Some versions of bash will fail to source /dev/null (special
1450 # files actually), so we avoid doing that.
1451 if test -f "$cache_file"; then
1452 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1453echo "$as_me: loading cache $cache_file" >&6;}
1454 case $cache_file in
1455 [\\/]* | ?:[\\/]* ) . $cache_file;;
1456 *) . ./$cache_file;;
1457 esac
1458 fi
1459else
1460 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1461echo "$as_me: creating cache $cache_file" >&6;}
1462 >$cache_file
1463fi
1464
1465# Check that the precious variables saved in the cache have kept the same
1466# value.
1467ac_cache_corrupted=false
1468for ac_var in `(set) 2>&1 |
1469 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1471 eval ac_new_set=\$ac_env_${ac_var}_set
1472 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1473 eval ac_new_val="\$ac_env_${ac_var}_value"
1474 case $ac_old_set,$ac_new_set in
1475 set,)
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1477echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1479 ,set)
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1481echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1482 ac_cache_corrupted=: ;;
1483 ,);;
1484 *)
1485 if test "x$ac_old_val" != "x$ac_new_val"; then
1486 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1487echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1488 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1489echo "$as_me: former value: $ac_old_val" >&2;}
1490 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1491echo "$as_me: current value: $ac_new_val" >&2;}
1492 ac_cache_corrupted=:
1493 fi;;
1494 esac
1495 # Pass precious variables to config.status.
1496 if test "$ac_new_set" = set; then
1497 case $ac_new_val in
1498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1499 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1500 *) ac_arg=$ac_var=$ac_new_val ;;
1501 esac
1502 case " $ac_configure_args " in
1503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1504 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1505 esac
1506 fi
1507done
1508if $ac_cache_corrupted; then
1509 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1510echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1511 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1512echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1513 { (exit 1); exit 1; }; }
1514fi
1515
1516ac_ext=c
1517ac_cpp='$CPP $CPPFLAGS'
1518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1520ac_compiler_gnu=$ac_cv_c_compiler_gnu
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548ac_aux_dir=
1549for ac_dir in config $srcdir/config; do
1550 if test -f $ac_dir/install-sh; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install-sh -c"
1553 break
1554 elif test -f $ac_dir/install.sh; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/install.sh -c"
1557 break
1558 elif test -f $ac_dir/shtool; then
1559 ac_aux_dir=$ac_dir
1560 ac_install_sh="$ac_aux_dir/shtool install -c"
1561 break
1562 fi
1563done
1564if test -z "$ac_aux_dir"; then
1565 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1566echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1567 { (exit 1); exit 1; }; }
1568fi
1569ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1570ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1571ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1572
1573case m4 in
1574 [\\/]* | ?:[\\/]* ) ac_macro_dir=m4 ;;
1575 *) ac_macro_dir=$srcdir/m4 ;;
1576esac
1577if test -d "$ac_macro_dir"; then :
1578else
1579 { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5
1580echo "$as_me: error: cannot find macro directory \`m4'" >&2;}
1581 { (exit 1); exit 1; }; }
1582fi
1583
1584ac_ext=c
1585ac_cpp='$CPP $CPPFLAGS'
1586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589
1590
1591# Make sure we can run config.sub.
1592$ac_config_sub sun4 >/dev/null 2>&1 ||
1593 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1594echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1595 { (exit 1); exit 1; }; }
1596
1597echo "$as_me:$LINENO: checking build system type" >&5
1598echo $ECHO_N "checking build system type... $ECHO_C" >&6
1599if test "${ac_cv_build+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 ac_cv_build_alias=$build_alias
1603test -z "$ac_cv_build_alias" &&
1604 ac_cv_build_alias=`$ac_config_guess`
1605test -z "$ac_cv_build_alias" &&
1606 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1607echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1608 { (exit 1); exit 1; }; }
1609ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1611echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614fi
1615echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1616echo "${ECHO_T}$ac_cv_build" >&6
1617build=$ac_cv_build
1618build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623echo "$as_me:$LINENO: checking host system type" >&5
1624echo $ECHO_N "checking host system type... $ECHO_C" >&6
1625if test "${ac_cv_host+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_host_alias=$host_alias
1629test -z "$ac_cv_host_alias" &&
1630 ac_cv_host_alias=$ac_cv_build_alias
1631ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1633echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636fi
1637echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1638echo "${ECHO_T}$ac_cv_host" >&6
1639host=$ac_cv_host
1640host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645echo "$as_me:$LINENO: checking target system type" >&5
1646echo $ECHO_N "checking target system type... $ECHO_C" >&6
1647if test "${ac_cv_target+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649else
1650 ac_cv_target_alias=$target_alias
1651test "x$ac_cv_target_alias" = "x" &&
1652 ac_cv_target_alias=$ac_cv_host_alias
1653ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1654 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1655echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1656 { (exit 1); exit 1; }; }
1657
1658fi
1659echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1660echo "${ECHO_T}$ac_cv_target" >&6
1661target=$ac_cv_target
1662target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1663target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1664target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1665
1666
1667# The aliases save the names the user supplied, while $host etc.
1668# will get canonicalized.
1669test -n "$target_alias" &&
1670 test "$program_prefix$program_suffix$program_transform_name" = \
1671 NONENONEs,x,x, &&
1672 program_prefix=${target_alias}-
1673
1674am__api_version="1.9"
1675# Find a good install program. We prefer a C program (faster),
1676# so one script is as good as another. But avoid the broken or
1677# incompatible versions:
1678# SysV /etc/install, /usr/sbin/install
1679# SunOS /usr/etc/install
1680# IRIX /sbin/install
1681# AIX /bin/install
1682# AmigaOS /C/install, which installs bootblocks on floppy discs
1683# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1684# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1685# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1686# OS/2's system install, which has a completely different semantic
1687# ./install, which can be erroneously created by make from ./install.sh.
1688echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1689echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1690if test -z "$INSTALL"; then
1691if test "${ac_cv_path_install+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695for as_dir in $PATH
1696do
1697 IFS=$as_save_IFS
1698 test -z "$as_dir" && as_dir=.
1699 # Account for people who put trailing slashes in PATH elements.
1700case $as_dir/ in
1701 ./ | .// | /cC/* | \
1702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1703 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1704 /usr/ucb/* ) ;;
1705 *)
1706 # OSF1 and SCO ODT 3.0 have their own names for install.
1707 # Don't use installbsd from OSF since it installs stuff as root
1708 # by default.
1709 for ac_prog in ginstall scoinst install; do
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1712 if test $ac_prog = install &&
1713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1714 # AIX install. It has an incompatible calling convention.
1715 :
1716 elif test $ac_prog = install &&
1717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1718 # program-specific install script used by HP pwplus--don't use.
1719 :
1720 else
1721 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1722 break 3
1723 fi
1724 fi
1725 done
1726 done
1727 ;;
1728esac
1729done
1730
1731
1732fi
1733 if test "${ac_cv_path_install+set}" = set; then
1734 INSTALL=$ac_cv_path_install
1735 else
1736 # As a last resort, use the slow shell script. We don't cache a
1737 # path for INSTALL within a source directory, because that will
1738 # break other packages using the cache if that directory is
1739 # removed, or if the path is relative.
1740 INSTALL=$ac_install_sh
1741 fi
1742fi
1743echo "$as_me:$LINENO: result: $INSTALL" >&5
1744echo "${ECHO_T}$INSTALL" >&6
1745
1746# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1747# It thinks the first close brace ends the variable substitution.
1748test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1749
1750test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1751
1752test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1753
1754echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1755echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1756# Just in case
1757sleep 1
1758echo timestamp > conftest.file
1759# Do `set' in a subshell so we don't clobber the current shell's
1760# arguments. Must try -L first in case configure is actually a
1761# symlink; some systems play weird games with the mod time of symlinks
1762# (eg FreeBSD returns the mod time of the symlink's containing
1763# directory).
1764if (
1765 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1766 if test "$*" = "X"; then
1767 # -L didn't work.
1768 set X `ls -t $srcdir/configure conftest.file`
1769 fi
1770 rm -f conftest.file
1771 if test "$*" != "X $srcdir/configure conftest.file" \
1772 && test "$*" != "X conftest.file $srcdir/configure"; then
1773
1774 # If neither matched, then we have a broken ls. This can happen
1775 # if, for instance, CONFIG_SHELL is bash and it inherits a
1776 # broken ls alias from the environment. This has actually
1777 # happened. Such a system could not be considered "sane".
1778 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1779alias in your environment" >&5
1780echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1781alias in your environment" >&2;}
1782 { (exit 1); exit 1; }; }
1783 fi
1784
1785 test "$2" = conftest.file
1786 )
1787then
1788 # Ok.
1789 :
1790else
1791 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1792Check your system clock" >&5
1793echo "$as_me: error: newly created file is older than distributed files!
1794Check your system clock" >&2;}
1795 { (exit 1); exit 1; }; }
1796fi
1797echo "$as_me:$LINENO: result: yes" >&5
1798echo "${ECHO_T}yes" >&6
1799test "$program_prefix" != NONE &&
1800 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1801# Use a double $ so make ignores it.
1802test "$program_suffix" != NONE &&
1803 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1804# Double any \ or $. echo might interpret backslashes.
1805# By default was `s,x,x', remove it if useless.
1806cat <<\_ACEOF >conftest.sed
1807s/[\\$]/&&/g;s/;s,x,x,$//
1808_ACEOF
1809program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1810rm conftest.sed
1811
1812# expand $ac_aux_dir to an absolute path
1813am_aux_dir=`cd $ac_aux_dir && pwd`
1814
1815test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1816# Use eval to expand $SHELL
1817if eval "$MISSING --run true"; then
1818 am_missing_run="$MISSING --run "
1819else
1820 am_missing_run=
1821 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1822echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1823fi
1824
1825if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1826 # We used to keeping the `.' as first argument, in order to
1827 # allow $(mkdir_p) to be used without argument. As in
1828 # $(mkdir_p) $(somedir)
1829 # where $(somedir) is conditionally defined. However this is wrong
1830 # for two reasons:
1831 # 1. if the package is installed by a user who cannot write `.'
1832 # make install will fail,
1833 # 2. the above comment should most certainly read
1834 # $(mkdir_p) $(DESTDIR)$(somedir)
1835 # so it does not work when $(somedir) is undefined and
1836 # $(DESTDIR) is not.
1837 # To support the latter case, we have to write
1838 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1839 # so the `.' trick is pointless.
1840 mkdir_p='mkdir -p --'
1841else
1842 # On NextStep and OpenStep, the `mkdir' command does not
1843 # recognize any option. It will interpret all options as
1844 # directories to create, and then abort because `.' already
1845 # exists.
1846 for d in ./-p ./--version;
1847 do
1848 test -d $d && rmdir $d
1849 done
1850 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1851 if test -f "$ac_aux_dir/mkinstalldirs"; then
1852 mkdir_p='$(mkinstalldirs)'
1853 else
1854 mkdir_p='$(install_sh) -d'
1855 fi
1856fi
1857
1858for ac_prog in gawk mawk nawk awk
1859do
1860 # Extract the first word of "$ac_prog", so it can be a program name with args.
1861set dummy $ac_prog; ac_word=$2
1862echo "$as_me:$LINENO: checking for $ac_word" >&5
1863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864if test "${ac_cv_prog_AWK+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866else
1867 if test -n "$AWK"; then
1868 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1869else
1870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871for as_dir in $PATH
1872do
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 ac_cv_prog_AWK="$ac_prog"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 break 2
1880 fi
1881done
1882done
1883
1884fi
1885fi
1886AWK=$ac_cv_prog_AWK
1887if test -n "$AWK"; then
1888 echo "$as_me:$LINENO: result: $AWK" >&5
1889echo "${ECHO_T}$AWK" >&6
1890else
1891 echo "$as_me:$LINENO: result: no" >&5
1892echo "${ECHO_T}no" >&6
1893fi
1894
1895 test -n "$AWK" && break
1896done
1897
1898echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1899echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1900set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1901if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903else
1904 cat >conftest.make <<\_ACEOF
1905all:
1906 @echo 'ac_maketemp="$(MAKE)"'
1907_ACEOF
1908# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1909eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1910if test -n "$ac_maketemp"; then
1911 eval ac_cv_prog_make_${ac_make}_set=yes
1912else
1913 eval ac_cv_prog_make_${ac_make}_set=no
1914fi
1915rm -f conftest.make
1916fi
1917if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1918 echo "$as_me:$LINENO: result: yes" >&5
1919echo "${ECHO_T}yes" >&6
1920 SET_MAKE=
1921else
1922 echo "$as_me:$LINENO: result: no" >&5
1923echo "${ECHO_T}no" >&6
1924 SET_MAKE="MAKE=${MAKE-make}"
1925fi
1926
1927rm -rf .tst 2>/dev/null
1928mkdir .tst 2>/dev/null
1929if test -d .tst; then
1930 am__leading_dot=.
1931else
1932 am__leading_dot=_
1933fi
1934rmdir .tst 2>/dev/null
1935
1936# test to see if srcdir already configured
1937if test "`cd $srcdir && pwd`" != "`pwd`" &&
1938 test -f $srcdir/config.status; then
1939 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1940echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1941 { (exit 1); exit 1; }; }
1942fi
1943
1944# test whether we have cygpath
1945if test -z "$CYGPATH_W"; then
1946 if (cygpath --version) >/dev/null 2>/dev/null; then
1947 CYGPATH_W='cygpath -w'
1948 else
1949 CYGPATH_W=echo
1950 fi
1951fi
1952
1953
1954# Define the identity of the package.
1955 PACKAGE='tiff'
1956 VERSION='3.8.2'
1957
1958
1959cat >>confdefs.h <<_ACEOF
1960#define PACKAGE "$PACKAGE"
1961_ACEOF
1962
1963
1964cat >>confdefs.h <<_ACEOF
1965#define VERSION "$VERSION"
1966_ACEOF
1967
1968# Some tools Automake needs.
1969
1970ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1971
1972
1973AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1974
1975
1976AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1977
1978
1979AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1980
1981
1982MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1983
1984install_sh=${install_sh-"$am_aux_dir/install-sh"}
1985
1986# Installed binaries are usually stripped using `strip' when the user
1987# run `make install-strip'. However `strip' might not be the right
1988# tool to use in cross-compilation environments, therefore Automake
1989# will honor the `STRIP' environment variable to overrule this program.
1990if test "$cross_compiling" != no; then
1991 if test -n "$ac_tool_prefix"; then
1992 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1993set dummy ${ac_tool_prefix}strip; ac_word=$2
1994echo "$as_me:$LINENO: checking for $ac_word" >&5
1995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996if test "${ac_cv_prog_STRIP+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999 if test -n "$STRIP"; then
2000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2001else
2002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003for as_dir in $PATH
2004do
2005 IFS=$as_save_IFS
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 break 2
2012 fi
2013done
2014done
2015
2016fi
2017fi
2018STRIP=$ac_cv_prog_STRIP
2019if test -n "$STRIP"; then
2020 echo "$as_me:$LINENO: result: $STRIP" >&5
2021echo "${ECHO_T}$STRIP" >&6
2022else
2023 echo "$as_me:$LINENO: result: no" >&5
2024echo "${ECHO_T}no" >&6
2025fi
2026
2027fi
2028if test -z "$ac_cv_prog_STRIP"; then
2029 ac_ct_STRIP=$STRIP
2030 # Extract the first word of "strip", so it can be a program name with args.
2031set dummy strip; ac_word=$2
2032echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037 if test -n "$ac_ct_STRIP"; then
2038 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2039else
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 ac_cv_prog_ac_ct_STRIP="strip"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2050 fi
2051done
2052done
2053
2054 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2055fi
2056fi
2057ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2058if test -n "$ac_ct_STRIP"; then
2059 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2060echo "${ECHO_T}$ac_ct_STRIP" >&6
2061else
2062 echo "$as_me:$LINENO: result: no" >&5
2063echo "${ECHO_T}no" >&6
2064fi
2065
2066 STRIP=$ac_ct_STRIP
2067else
2068 STRIP="$ac_cv_prog_STRIP"
2069fi
2070
2071fi
2072INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2073
2074# We need awk for the "check" target. The system "awk" is bad on
2075# some platforms.
2076# Always define AMTAR for backward compatibility.
2077
2078AMTAR=${AMTAR-"${am_missing_run}tar"}
2079
2080am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2081
2082
2083
2084
2085
2086echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2087echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2088 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2089if test "${enable_maintainer_mode+set}" = set; then
2090 enableval="$enable_maintainer_mode"
2091 USE_MAINTAINER_MODE=$enableval
2092else
2093 USE_MAINTAINER_MODE=no
2094fi;
2095 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2096echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2097
2098
2099if test $USE_MAINTAINER_MODE = yes; then
2100 MAINTAINER_MODE_TRUE=
2101 MAINTAINER_MODE_FALSE='#'
2102else
2103 MAINTAINER_MODE_TRUE='#'
2104 MAINTAINER_MODE_FALSE=
2105fi
2106
2107 MAINT=$MAINTAINER_MODE_TRUE
2108
2109
2110
2111LIBTIFF_MAJOR_VERSION=3
2112LIBTIFF_MINOR_VERSION=8
2113LIBTIFF_MICRO_VERSION=2
2114LIBTIFF_ALPHA_VERSION=
2115LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
2116LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"`
2117
2118# This is a special hack for OpenBSD and MirOS systems. The dynamic linker
2119# in OpenBSD uses some special semantics for shared libraries. Their soname
2120# contains only two numbers, major and minor.
2121# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details.
2122case "$target_os" in
2123 openbsd* | mirbsd*)
2124 LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION:0
2125 ;;
2126 *)
2127 LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
2128 ;;
2129esac
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139ac_ext=c
2140ac_cpp='$CPP $CPPFLAGS'
2141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2143ac_compiler_gnu=$ac_cv_c_compiler_gnu
2144if test -n "$ac_tool_prefix"; then
2145 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2146set dummy ${ac_tool_prefix}gcc; ac_word=$2
2147echo "$as_me:$LINENO: checking for $ac_word" >&5
2148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2149if test "${ac_cv_prog_CC+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test.
2154else
2155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156for as_dir in $PATH
2157do
2158 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2162 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 break 2
2165 fi
2166done
2167done
2168
2169fi
2170fi
2171CC=$ac_cv_prog_CC
2172if test -n "$CC"; then
2173 echo "$as_me:$LINENO: result: $CC" >&5
2174echo "${ECHO_T}$CC" >&6
2175else
2176 echo "$as_me:$LINENO: result: no" >&5
2177echo "${ECHO_T}no" >&6
2178fi
2179
2180fi
2181if test -z "$ac_cv_prog_CC"; then
2182 ac_ct_CC=$CC
2183 # Extract the first word of "gcc", so it can be a program name with args.
2184set dummy gcc; ac_word=$2
2185echo "$as_me:$LINENO: checking for $ac_word" >&5
2186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
2190 if test -n "$ac_ct_CC"; then
2191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2192else
2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194for as_dir in $PATH
2195do
2196 IFS=$as_save_IFS
2197 test -z "$as_dir" && as_dir=.
2198 for ac_exec_ext in '' $ac_executable_extensions; do
2199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2200 ac_cv_prog_ac_ct_CC="gcc"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 break 2
2203 fi
2204done
2205done
2206
2207fi
2208fi
2209ac_ct_CC=$ac_cv_prog_ac_ct_CC
2210if test -n "$ac_ct_CC"; then
2211 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2212echo "${ECHO_T}$ac_ct_CC" >&6
2213else
2214 echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6
2216fi
2217
2218 CC=$ac_ct_CC
2219else
2220 CC="$ac_cv_prog_CC"
2221fi
2222
2223if test -z "$CC"; then
2224 if test -n "$ac_tool_prefix"; then
2225 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2226set dummy ${ac_tool_prefix}cc; ac_word=$2
2227echo "$as_me:$LINENO: checking for $ac_word" >&5
2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2234else
2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242 ac_cv_prog_CC="${ac_tool_prefix}cc"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2245 fi
2246done
2247done
2248
2249fi
2250fi
2251CC=$ac_cv_prog_CC
2252if test -n "$CC"; then
2253 echo "$as_me:$LINENO: result: $CC" >&5
2254echo "${ECHO_T}$CC" >&6
2255else
2256 echo "$as_me:$LINENO: result: no" >&5
2257echo "${ECHO_T}no" >&6
2258fi
2259
2260fi
2261if test -z "$ac_cv_prog_CC"; then
2262 ac_ct_CC=$CC
2263 # Extract the first word of "cc", so it can be a program name with args.
2264set dummy cc; ac_word=$2
2265echo "$as_me:$LINENO: checking for $ac_word" >&5
2266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2267if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2269else
2270 if test -n "$ac_ct_CC"; then
2271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2272else
2273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH
2275do
2276 IFS=$as_save_IFS
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280 ac_cv_prog_ac_ct_CC="cc"
2281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2282 break 2
2283 fi
2284done
2285done
2286
2287fi
2288fi
2289ac_ct_CC=$ac_cv_prog_ac_ct_CC
2290if test -n "$ac_ct_CC"; then
2291 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2292echo "${ECHO_T}$ac_ct_CC" >&6
2293else
2294 echo "$as_me:$LINENO: result: no" >&5
2295echo "${ECHO_T}no" >&6
2296fi
2297
2298 CC=$ac_ct_CC
2299else
2300 CC="$ac_cv_prog_CC"
2301fi
2302
2303fi
2304if test -z "$CC"; then
2305 # Extract the first word of "cc", so it can be a program name with args.
2306set dummy cc; ac_word=$2
2307echo "$as_me:$LINENO: checking for $ac_word" >&5
2308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2309if test "${ac_cv_prog_CC+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312 if test -n "$CC"; then
2313 ac_cv_prog_CC="$CC" # Let the user override the test.
2314else
2315 ac_prog_rejected=no
2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317for as_dir in $PATH
2318do
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2324 ac_prog_rejected=yes
2325 continue
2326 fi
2327 ac_cv_prog_CC="cc"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 break 2
2330 fi
2331done
2332done
2333
2334if test $ac_prog_rejected = yes; then
2335 # We found a bogon in the path, so make sure we never use it.
2336 set dummy $ac_cv_prog_CC
2337 shift
2338 if test $# != 0; then
2339 # We chose a different compiler from the bogus one.
2340 # However, it has the same basename, so the bogon will be chosen
2341 # first if we set CC to just the basename; use the full file name.
2342 shift
2343 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2344 fi
2345fi
2346fi
2347fi
2348CC=$ac_cv_prog_CC
2349if test -n "$CC"; then
2350 echo "$as_me:$LINENO: result: $CC" >&5
2351echo "${ECHO_T}$CC" >&6
2352else
2353 echo "$as_me:$LINENO: result: no" >&5
2354echo "${ECHO_T}no" >&6
2355fi
2356
2357fi
2358if test -z "$CC"; then
2359 if test -n "$ac_tool_prefix"; then
2360 for ac_prog in cl
2361 do
2362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2363set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2364echo "$as_me:$LINENO: checking for $ac_word" >&5
2365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2366if test "${ac_cv_prog_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$CC" # Let the user override the test.
2371else
2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373for as_dir in $PATH
2374do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2382 fi
2383done
2384done
2385
2386fi
2387fi
2388CC=$ac_cv_prog_CC
2389if test -n "$CC"; then
2390 echo "$as_me:$LINENO: result: $CC" >&5
2391echo "${ECHO_T}$CC" >&6
2392else
2393 echo "$as_me:$LINENO: result: no" >&5
2394echo "${ECHO_T}no" >&6
2395fi
2396
2397 test -n "$CC" && break
2398 done
2399fi
2400if test -z "$CC"; then
2401 ac_ct_CC=$CC
2402 for ac_prog in cl
2403do
2404 # Extract the first word of "$ac_prog", so it can be a program name with args.
2405set dummy $ac_prog; ac_word=$2
2406echo "$as_me:$LINENO: checking for $ac_word" >&5
2407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2410else
2411 if test -n "$ac_ct_CC"; then
2412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2413else
2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH
2416do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421 ac_cv_prog_ac_ct_CC="$ac_prog"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 break 2
2424 fi
2425done
2426done
2427
2428fi
2429fi
2430ac_ct_CC=$ac_cv_prog_ac_ct_CC
2431if test -n "$ac_ct_CC"; then
2432 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2433echo "${ECHO_T}$ac_ct_CC" >&6
2434else
2435 echo "$as_me:$LINENO: result: no" >&5
2436echo "${ECHO_T}no" >&6
2437fi
2438
2439 test -n "$ac_ct_CC" && break
2440done
2441
2442 CC=$ac_ct_CC
2443fi
2444
2445fi
2446
2447
2448test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2449See \`config.log' for more details." >&5
2450echo "$as_me: error: no acceptable C compiler found in \$PATH
2451See \`config.log' for more details." >&2;}
2452 { (exit 1); exit 1; }; }
2453
2454# Provide some information about the compiler.
2455echo "$as_me:$LINENO:" \
2456 "checking for C compiler version" >&5
2457ac_compiler=`set X $ac_compile; echo $2`
2458{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2459 (eval $ac_compiler --version </dev/null >&5) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }
2463{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2464 (eval $ac_compiler -v </dev/null >&5) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }
2468{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2469 (eval $ac_compiler -V </dev/null >&5) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }
2473
2474cat >conftest.$ac_ext <<_ACEOF
2475/* confdefs.h. */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h. */
2480
2481int
2482main ()
2483{
2484
2485 ;
2486 return 0;
2487}
2488_ACEOF
2489ac_clean_files_save=$ac_clean_files
2490ac_clean_files="$ac_clean_files a.out a.exe b.out"
2491# Try to create an executable without -o first, disregard a.out.
2492# It will help us diagnose broken compilers, and finding out an intuition
2493# of exeext.
2494echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2495echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2496ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2497if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2498 (eval $ac_link_default) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; then
2502 # Find the output, starting from the most likely. This scheme is
2503# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2504# resort.
2505
2506# Be careful to initialize this variable, since it used to be cached.
2507# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2508ac_cv_exeext=
2509# b.out is created by i960 compilers.
2510for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2511do
2512 test -f "$ac_file" || continue
2513 case $ac_file in
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2515 ;;
2516 conftest.$ac_ext )
2517 # This is the source file.
2518 ;;
2519 [ab].out )
2520 # We found the default executable, but exeext='' is most
2521 # certainly right.
2522 break;;
2523 *.* )
2524 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2525 # FIXME: I believe we export ac_cv_exeext for Libtool,
2526 # but it would be cool to find out if it's true. Does anybody
2527 # maintain Libtool? --akim.
2528 export ac_cv_exeext
2529 break;;
2530 * )
2531 break;;
2532 esac
2533done
2534else
2535 echo "$as_me: failed program was:" >&5
2536sed 's/^/| /' conftest.$ac_ext >&5
2537
2538{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2539See \`config.log' for more details." >&5
2540echo "$as_me: error: C compiler cannot create executables
2541See \`config.log' for more details." >&2;}
2542 { (exit 77); exit 77; }; }
2543fi
2544
2545ac_exeext=$ac_cv_exeext
2546echo "$as_me:$LINENO: result: $ac_file" >&5
2547echo "${ECHO_T}$ac_file" >&6
2548
2549# Check the compiler produces executables we can run. If not, either
2550# the compiler is broken, or we cross compile.
2551echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2552echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2553# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2554# If not cross compiling, check that we can run a simple program.
2555if test "$cross_compiling" != yes; then
2556 if { ac_try='./$ac_file'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2562 cross_compiling=no
2563 else
2564 if test "$cross_compiling" = maybe; then
2565 cross_compiling=yes
2566 else
2567 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2568If you meant to cross compile, use \`--host'.
2569See \`config.log' for more details." >&5
2570echo "$as_me: error: cannot run C compiled programs.
2571If you meant to cross compile, use \`--host'.
2572See \`config.log' for more details." >&2;}
2573 { (exit 1); exit 1; }; }
2574 fi
2575 fi
2576fi
2577echo "$as_me:$LINENO: result: yes" >&5
2578echo "${ECHO_T}yes" >&6
2579
2580rm -f a.out a.exe conftest$ac_cv_exeext b.out
2581ac_clean_files=$ac_clean_files_save
2582# Check the compiler produces executables we can run. If not, either
2583# the compiler is broken, or we cross compile.
2584echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2585echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2586echo "$as_me:$LINENO: result: $cross_compiling" >&5
2587echo "${ECHO_T}$cross_compiling" >&6
2588
2589echo "$as_me:$LINENO: checking for suffix of executables" >&5
2590echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2592 (eval $ac_link) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; then
2596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2597# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2598# work properly (i.e., refer to `conftest.exe'), while it won't with
2599# `rm'.
2600for ac_file in conftest.exe conftest conftest.*; do
2601 test -f "$ac_file" || continue
2602 case $ac_file in
2603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2605 export ac_cv_exeext
2606 break;;
2607 * ) break;;
2608 esac
2609done
2610else
2611 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2612See \`config.log' for more details." >&5
2613echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2614See \`config.log' for more details." >&2;}
2615 { (exit 1); exit 1; }; }
2616fi
2617
2618rm -f conftest$ac_cv_exeext
2619echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2620echo "${ECHO_T}$ac_cv_exeext" >&6
2621
2622rm -f conftest.$ac_ext
2623EXEEXT=$ac_cv_exeext
2624ac_exeext=$EXEEXT
2625echo "$as_me:$LINENO: checking for suffix of object files" >&5
2626echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2627if test "${ac_cv_objext+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2629else
2630 cat >conftest.$ac_ext <<_ACEOF
2631/* confdefs.h. */
2632_ACEOF
2633cat confdefs.h >>conftest.$ac_ext
2634cat >>conftest.$ac_ext <<_ACEOF
2635/* end confdefs.h. */
2636
2637int
2638main ()
2639{
2640
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645rm -f conftest.o conftest.obj
2646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; then
2651 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2652 case $ac_file in
2653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2654 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2655 break;;
2656 esac
2657done
2658else
2659 echo "$as_me: failed program was:" >&5
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
2662{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2663See \`config.log' for more details." >&5
2664echo "$as_me: error: cannot compute suffix of object files: cannot compile
2665See \`config.log' for more details." >&2;}
2666 { (exit 1); exit 1; }; }
2667fi
2668
2669rm -f conftest.$ac_cv_objext conftest.$ac_ext
2670fi
2671echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2672echo "${ECHO_T}$ac_cv_objext" >&6
2673OBJEXT=$ac_cv_objext
2674ac_objext=$OBJEXT
2675echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2676echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2677if test "${ac_cv_c_compiler_gnu+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679else
2680 cat >conftest.$ac_ext <<_ACEOF
2681/* confdefs.h. */
2682_ACEOF
2683cat confdefs.h >>conftest.$ac_ext
2684cat >>conftest.$ac_ext <<_ACEOF
2685/* end confdefs.h. */
2686
2687int
2688main ()
2689{
2690#ifndef __GNUC__
2691 choke me
2692#endif
2693
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698rm -f conftest.$ac_objext
2699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>conftest.er1
2701 ac_status=$?
2702 grep -v '^ *+' conftest.er1 >conftest.err
2703 rm -f conftest.er1
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 ac_compiler_gnu=yes
2720else
2721 echo "$as_me: failed program was:" >&5
2722sed 's/^/| /' conftest.$ac_ext >&5
2723
2724ac_compiler_gnu=no
2725fi
2726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727ac_cv_c_compiler_gnu=$ac_compiler_gnu
2728
2729fi
2730echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2731echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2732GCC=`test $ac_compiler_gnu = yes && echo yes`
2733ac_test_CFLAGS=${CFLAGS+set}
2734ac_save_CFLAGS=$CFLAGS
2735CFLAGS="-g"
2736echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2737echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2738if test "${ac_cv_prog_cc_g+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740else
2741 cat >conftest.$ac_ext <<_ACEOF
2742/* confdefs.h. */
2743_ACEOF
2744cat confdefs.h >>conftest.$ac_ext
2745cat >>conftest.$ac_ext <<_ACEOF
2746/* end confdefs.h. */
2747
2748int
2749main ()
2750{
2751
2752 ;
2753 return 0;
2754}
2755_ACEOF
2756rm -f conftest.$ac_objext
2757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2759 ac_status=$?
2760 grep -v '^ *+' conftest.er1 >conftest.err
2761 rm -f conftest.er1
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; } &&
2771 { ac_try='test -s conftest.$ac_objext'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 ac_cv_prog_cc_g=yes
2778else
2779 echo "$as_me: failed program was:" >&5
2780sed 's/^/| /' conftest.$ac_ext >&5
2781
2782ac_cv_prog_cc_g=no
2783fi
2784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785fi
2786echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2787echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2788if test "$ac_test_CFLAGS" = set; then
2789 CFLAGS=$ac_save_CFLAGS
2790elif test $ac_cv_prog_cc_g = yes; then
2791 if test "$GCC" = yes; then
2792 CFLAGS="-g -O2"
2793 else
2794 CFLAGS="-g"
2795 fi
2796else
2797 if test "$GCC" = yes; then
2798 CFLAGS="-O2"
2799 else
2800 CFLAGS=
2801 fi
2802fi
2803echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2804echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2805if test "${ac_cv_prog_cc_stdc+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807else
2808 ac_cv_prog_cc_stdc=no
2809ac_save_CC=$CC
2810cat >conftest.$ac_ext <<_ACEOF
2811/* confdefs.h. */
2812_ACEOF
2813cat confdefs.h >>conftest.$ac_ext
2814cat >>conftest.$ac_ext <<_ACEOF
2815/* end confdefs.h. */
2816#include <stdarg.h>
2817#include <stdio.h>
2818#include <sys/types.h>
2819#include <sys/stat.h>
2820/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2821struct buf { int x; };
2822FILE * (*rcsopen) (struct buf *, struct stat *, int);
2823static char *e (p, i)
2824 char **p;
2825 int i;
2826{
2827 return p[i];
2828}
2829static char *f (char * (*g) (char **, int), char **p, ...)
2830{
2831 char *s;
2832 va_list v;
2833 va_start (v,p);
2834 s = g (p, va_arg (v,int));
2835 va_end (v);
2836 return s;
2837}
2838
2839/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2840 function prototypes and stuff, but not '\xHH' hex character constants.
2841 These don't provoke an error unfortunately, instead are silently treated
2842 as 'x'. The following induces an error, until -std1 is added to get
2843 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2844 array size at least. It's necessary to write '\x00'==0 to get something
2845 that's true only with -std1. */
2846int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2847
2848int test (int i, double x);
2849struct s1 {int (*f) (int a);};
2850struct s2 {int (*f) (double a);};
2851int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2852int argc;
2853char **argv;
2854int
2855main ()
2856{
2857return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2858 ;
2859 return 0;
2860}
2861_ACEOF
2862# Don't try gcc -ansi; that turns off useful extensions and
2863# breaks some systems' header files.
2864# AIX -qlanglvl=ansi
2865# Ultrix and OSF/1 -std1
2866# HP-UX 10.20 and later -Ae
2867# HP-UX older versions -Aa -D_HPUX_SOURCE
2868# SVR4 -Xc -D__EXTENSIONS__
2869for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2870do
2871 CC="$ac_save_CC $ac_arg"
2872 rm -f conftest.$ac_objext
2873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2875 ac_status=$?
2876 grep -v '^ *+' conftest.er1 >conftest.err
2877 rm -f conftest.er1
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; } &&
2887 { ac_try='test -s conftest.$ac_objext'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 (eval $ac_try) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2893 ac_cv_prog_cc_stdc=$ac_arg
2894break
2895else
2896 echo "$as_me: failed program was:" >&5
2897sed 's/^/| /' conftest.$ac_ext >&5
2898
2899fi
2900rm -f conftest.err conftest.$ac_objext
2901done
2902rm -f conftest.$ac_ext conftest.$ac_objext
2903CC=$ac_save_CC
2904
2905fi
2906
2907case "x$ac_cv_prog_cc_stdc" in
2908 x|xno)
2909 echo "$as_me:$LINENO: result: none needed" >&5
2910echo "${ECHO_T}none needed" >&6 ;;
2911 *)
2912 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2913echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2914 CC="$CC $ac_cv_prog_cc_stdc" ;;
2915esac
2916
2917# Some people use a C++ compiler to compile C. Since we use `exit',
2918# in C++ we need to declare it. In case someone uses the same compiler
2919# for both compiling C and C++ we need to have the C++ compiler decide
2920# the declaration of exit, since it's the most demanding environment.
2921cat >conftest.$ac_ext <<_ACEOF
2922#ifndef __cplusplus
2923 choke me
2924#endif
2925_ACEOF
2926rm -f conftest.$ac_objext
2927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 (eval $ac_try) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; } &&
2941 { ac_try='test -s conftest.$ac_objext'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 (eval $ac_try) 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
2947 for ac_declaration in \
2948 '' \
2949 'extern "C" void std::exit (int) throw (); using std::exit;' \
2950 'extern "C" void std::exit (int); using std::exit;' \
2951 'extern "C" void exit (int) throw ();' \
2952 'extern "C" void exit (int);' \
2953 'void exit (int);'
2954do
2955 cat >conftest.$ac_ext <<_ACEOF
2956/* confdefs.h. */
2957_ACEOF
2958cat confdefs.h >>conftest.$ac_ext
2959cat >>conftest.$ac_ext <<_ACEOF
2960/* end confdefs.h. */
2961$ac_declaration
2962#include <stdlib.h>
2963int
2964main ()
2965{
2966exit (42);
2967 ;
2968 return 0;
2969}
2970_ACEOF
2971rm -f conftest.$ac_objext
2972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973 (eval $ac_compile) 2>conftest.er1
2974 ac_status=$?
2975 grep -v '^ *+' conftest.er1 >conftest.err
2976 rm -f conftest.er1
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } &&
2980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982 (eval $ac_try) 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; } &&
2986 { ac_try='test -s conftest.$ac_objext'
2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988 (eval $ac_try) 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; }; then
2992 :
2993else
2994 echo "$as_me: failed program was:" >&5
2995sed 's/^/| /' conftest.$ac_ext >&5
2996
2997continue
2998fi
2999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3000 cat >conftest.$ac_ext <<_ACEOF
3001/* confdefs.h. */
3002_ACEOF
3003cat confdefs.h >>conftest.$ac_ext
3004cat >>conftest.$ac_ext <<_ACEOF
3005/* end confdefs.h. */
3006$ac_declaration
3007int
3008main ()
3009{
3010exit (42);
3011 ;
3012 return 0;
3013}
3014_ACEOF
3015rm -f conftest.$ac_objext
3016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3017 (eval $ac_compile) 2>conftest.er1
3018 ac_status=$?
3019 grep -v '^ *+' conftest.er1 >conftest.err
3020 rm -f conftest.er1
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; } &&
3030 { ac_try='test -s conftest.$ac_objext'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 (eval $ac_try) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 break
3037else
3038 echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041fi
3042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3043done
3044rm -f conftest*
3045if test -n "$ac_declaration"; then
3046 echo '#ifdef __cplusplus' >>confdefs.h
3047 echo $ac_declaration >>confdefs.h
3048 echo '#endif' >>confdefs.h
3049fi
3050
3051else
3052 echo "$as_me: failed program was:" >&5
3053sed 's/^/| /' conftest.$ac_ext >&5
3054
3055fi
3056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057ac_ext=c
3058ac_cpp='$CPP $CPPFLAGS'
3059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062DEPDIR="${am__leading_dot}deps"
3063
3064 ac_config_commands="$ac_config_commands depfiles"
3065
3066
3067am_make=${MAKE-make}
3068cat > confinc << 'END'
3069am__doit:
3070 @echo done
3071.PHONY: am__doit
3072END
3073# If we don't find an include directive, just comment out the code.
3074echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3075echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3076am__include="#"
3077am__quote=
3078_am_result=none
3079# First try GNU make style include.
3080echo "include confinc" > confmf
3081# We grep out `Entering directory' and `Leaving directory'
3082# messages which can occur if `w' ends up in MAKEFLAGS.
3083# In particular we don't look at `^make:' because GNU make might
3084# be invoked under some other name (usually "gmake"), in which
3085# case it prints its new name instead of `make'.
3086if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3087 am__include=include
3088 am__quote=
3089 _am_result=GNU
3090fi
3091# Now try BSD make style include.
3092if test "$am__include" = "#"; then
3093 echo '.include "confinc"' > confmf
3094 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3095 am__include=.include
3096 am__quote="\""
3097 _am_result=BSD
3098 fi
3099fi
3100
3101
3102echo "$as_me:$LINENO: result: $_am_result" >&5
3103echo "${ECHO_T}$_am_result" >&6
3104rm -f confinc confmf
3105
3106# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3107if test "${enable_dependency_tracking+set}" = set; then
3108 enableval="$enable_dependency_tracking"
3109
3110fi;
3111if test "x$enable_dependency_tracking" != xno; then
3112 am_depcomp="$ac_aux_dir/depcomp"
3113 AMDEPBACKSLASH='\'
3114fi
3115
3116
3117if test "x$enable_dependency_tracking" != xno; then
3118 AMDEP_TRUE=
3119 AMDEP_FALSE='#'
3120else
3121 AMDEP_TRUE='#'
3122 AMDEP_FALSE=
3123fi
3124
3125
3126
3127
3128depcc="$CC" am_compiler_list=
3129
3130echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3131echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3132if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134else
3135 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3136 # We make a subdir and do the tests there. Otherwise we can end up
3137 # making bogus files that we don't know about and never remove. For
3138 # instance it was reported that on HP-UX the gcc test will end up
3139 # making a dummy file named `D' -- because `-MD' means `put the output
3140 # in D'.
3141 mkdir conftest.dir
3142 # Copy depcomp to subdir because otherwise we won't find it if we're
3143 # using a relative directory.
3144 cp "$am_depcomp" conftest.dir
3145 cd conftest.dir
3146 # We will build objects and dependencies in a subdirectory because
3147 # it helps to detect inapplicable dependency modes. For instance
3148 # both Tru64's cc and ICC support -MD to output dependencies as a
3149 # side effect of compilation, but ICC will put the dependencies in
3150 # the current directory while Tru64 will put them in the object
3151 # directory.
3152 mkdir sub
3153
3154 am_cv_CC_dependencies_compiler_type=none
3155 if test "$am_compiler_list" = ""; then
3156 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3157 fi
3158 for depmode in $am_compiler_list; do
3159 # Setup a source with many dependencies, because some compilers
3160 # like to wrap large dependency lists on column 80 (with \), and
3161 # we should not choose a depcomp mode which is confused by this.
3162 #
3163 # We need to recreate these files for each test, as the compiler may
3164 # overwrite some of them when testing with obscure command lines.
3165 # This happens at least with the AIX C compiler.
3166 : > sub/conftest.c
3167 for i in 1 2 3 4 5 6; do
3168 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3169 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3170 # Solaris 8's {/usr,}/bin/sh.
3171 touch sub/conftst$i.h
3172 done
3173 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3174
3175 case $depmode in
3176 nosideeffect)
3177 # after this tag, mechanisms are not by side-effect, so they'll
3178 # only be used when explicitly requested
3179 if test "x$enable_dependency_tracking" = xyes; then
3180 continue
3181 else
3182 break
3183 fi
3184 ;;
3185 none) break ;;
3186 esac
3187 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3188 # mode. It turns out that the SunPro C++ compiler does not properly
3189 # handle `-M -o', and we need to detect this.
3190 if depmode=$depmode \
3191 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3192 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3193 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3194 >/dev/null 2>conftest.err &&
3195 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3196 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3197 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3198 # icc doesn't choke on unknown options, it will just issue warnings
3199 # or remarks (even with -Werror). So we grep stderr for any message
3200 # that says an option was ignored or not supported.
3201 # When given -MP, icc 7.0 and 7.1 complain thusly:
3202 # icc: Command line warning: ignoring option '-M'; no argument required
3203 # The diagnosis changed in icc 8.0:
3204 # icc: Command line remark: option '-MP' not supported
3205 if (grep 'ignoring option' conftest.err ||
3206 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3207 am_cv_CC_dependencies_compiler_type=$depmode
3208 break
3209 fi
3210 fi
3211 done
3212
3213 cd ..
3214 rm -rf conftest.dir
3215else
3216 am_cv_CC_dependencies_compiler_type=none
3217fi
3218
3219fi
3220echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3221echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3222CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3223
3224
3225
3226if
3227 test "x$enable_dependency_tracking" != xno \
3228 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3229 am__fastdepCC_TRUE=
3230 am__fastdepCC_FALSE='#'
3231else
3232 am__fastdepCC_TRUE='#'
3233 am__fastdepCC_FALSE=
3234fi
3235
3236
3237if test "x$CC" != xcc; then
3238 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3239echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3240else
3241 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3242echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3243fi
3244set dummy $CC; ac_cc=`echo $2 |
3245 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3246if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248else
3249 cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h. */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h. */
3255
3256int
3257main ()
3258{
3259
3260 ;
3261 return 0;
3262}
3263_ACEOF
3264# Make sure it works both with $CC and with simple cc.
3265# We do the test twice because some compilers refuse to overwrite an
3266# existing .o file with -o, though they will create one.
3267ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3268if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); };
3278then
3279 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3280 if test "x$CC" != xcc; then
3281 # Test first that cc exists at all.
3282 if { ac_try='cc -c conftest.$ac_ext >&5'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; }; then
3288 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3289 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } &&
3294 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); };
3299 then
3300 # cc works too.
3301 :
3302 else
3303 # cc exists but doesn't like -o.
3304 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3305 fi
3306 fi
3307 fi
3308else
3309 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3310fi
3311rm -f conftest*
3312
3313fi
3314if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3315 echo "$as_me:$LINENO: result: yes" >&5
3316echo "${ECHO_T}yes" >&6
3317else
3318 echo "$as_me:$LINENO: result: no" >&5
3319echo "${ECHO_T}no" >&6
3320
3321cat >>confdefs.h <<\_ACEOF
3322#define NO_MINUS_C_MINUS_O 1
3323_ACEOF
3324
3325fi
3326
3327# FIXME: we rely on the cache variable name because
3328# there is no other way.
3329set dummy $CC
3330ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3331if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3332 # Losing compiler, so override with the script.
3333 # FIXME: It is wrong to rewrite CC.
3334 # But if we don't then we get into trouble of one sort or another.
3335 # A longer-term fix would be to have automake use am__CC in this case,
3336 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3337 CC="$am_aux_dir/compile $CC"
3338fi
3339
3340
3341
3342 ansi=
3343 if test -z "$ansi"; then
3344 msg="for C compiler warning flags"
3345 else
3346 msg="for C compiler warning and ANSI conformance flags"
3347 fi
3348 echo "$as_me:$LINENO: checking $msg" >&5
3349echo $ECHO_N "checking $msg... $ECHO_C" >&6
3350if test "${vl_cv_prog_cc_warnings+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352else
3353
3354 if test -n "$CC"; then
3355 cat > conftest.c <<EOF
3356int main(int argc, char **argv) { return 0; }
3357EOF
3358
3359 if test "$GCC" = "yes"; then
3360 if test -z "$ansi"; then
3361 vl_cv_prog_cc_warnings="-Wall -W"
3362 else
3363 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic"
3364 fi
3365
3366
3367 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
3368 $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
3369 test -f conftest.o; then
3370 if test -z "$ansi"; then
3371 vl_cv_prog_cc_warnings="-v"
3372 else
3373 vl_cv_prog_cc_warnings="-v -Xc"
3374 fi
3375
3376 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
3377 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
3378 test -f conftest.o; then
3379 if test -z "$ansi"; then
3380 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
3381 else
3382 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
3383 fi
3384
3385 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
3386 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
3387 test -f conftest.o; then
3388 if test -z "$ansi"; then
3389 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
3390 else
3391 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
3392 fi
3393
3394 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
3395 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
3396 test -f conftest.o; then
3397 if test -z "$ansi"; then
3398 vl_cv_prog_cc_warnings="-fullwarn"
3399 else
3400 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
3401 fi
3402
3403 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
3404 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
3405 test -f conftest.o; then
3406 if test -z "$ansi"; then
3407 vl_cv_prog_cc_warnings="+w1"
3408 else
3409 vl_cv_prog_cc_warnings="+w1 -Aa"
3410 fi
3411
3412 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
3413 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
3414 test -f conftest.o; then
3415 if test -z "$ansi"; then
3416 vl_cv_prog_cc_warnings="-pvctl,fullmsg"
3417 else
3418 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
3419 fi
3420
3421 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
3422 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
3423 test -f conftest.o; then
3424 if test -z "$ansi"; then
3425 vl_cv_prog_cc_warnings="-h msglevel 2"
3426 else
3427 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
3428 fi
3429
3430 fi
3431 rm -f conftest.*
3432 fi
3433 if test -n "$vl_cv_prog_cc_warnings"; then
3434 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
3435 else
3436 vl_cv_prog_cc_warnings="unknown"
3437 fi
3438
3439fi
3440echo "$as_me:$LINENO: result: $vl_cv_prog_cc_warnings" >&5
3441echo "${ECHO_T}$vl_cv_prog_cc_warnings" >&6
3442
3443
3444# Find a good install program. We prefer a C program (faster),
3445# so one script is as good as another. But avoid the broken or
3446# incompatible versions:
3447# SysV /etc/install, /usr/sbin/install
3448# SunOS /usr/etc/install
3449# IRIX /sbin/install
3450# AIX /bin/install
3451# AmigaOS /C/install, which installs bootblocks on floppy discs
3452# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3453# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3454# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3455# OS/2's system install, which has a completely different semantic
3456# ./install, which can be erroneously created by make from ./install.sh.
3457echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3458echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3459if test -z "$INSTALL"; then
3460if test "${ac_cv_path_install+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH
3465do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 # Account for people who put trailing slashes in PATH elements.
3469case $as_dir/ in
3470 ./ | .// | /cC/* | \
3471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3472 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3473 /usr/ucb/* ) ;;
3474 *)
3475 # OSF1 and SCO ODT 3.0 have their own names for install.
3476 # Don't use installbsd from OSF since it installs stuff as root
3477 # by default.
3478 for ac_prog in ginstall scoinst install; do
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3481 if test $ac_prog = install &&
3482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3483 # AIX install. It has an incompatible calling convention.
3484 :
3485 elif test $ac_prog = install &&
3486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3487 # program-specific install script used by HP pwplus--don't use.
3488 :
3489 else
3490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3491 break 3
3492 fi
3493 fi
3494 done
3495 done
3496 ;;
3497esac
3498done
3499
3500
3501fi
3502 if test "${ac_cv_path_install+set}" = set; then
3503 INSTALL=$ac_cv_path_install
3504 else
3505 # As a last resort, use the slow shell script. We don't cache a
3506 # path for INSTALL within a source directory, because that will
3507 # break other packages using the cache if that directory is
3508 # removed, or if the path is relative.
3509 INSTALL=$ac_install_sh
3510 fi
3511fi
3512echo "$as_me:$LINENO: result: $INSTALL" >&5
3513echo "${ECHO_T}$INSTALL" >&6
3514
3515# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3516# It thinks the first close brace ends the variable substitution.
3517test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3518
3519test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3520
3521test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3522
3523echo "$as_me:$LINENO: checking whether ln -s works" >&5
3524echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3525LN_S=$as_ln_s
3526if test "$LN_S" = "ln -s"; then
3527 echo "$as_me:$LINENO: result: yes" >&5
3528echo "${ECHO_T}yes" >&6
3529else
3530 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3531echo "${ECHO_T}no, using $LN_S" >&6
3532fi
3533
3534
3535
3536macro_version='2.1a'
3537macro_revision='1.2248'
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550ltmain="$ac_aux_dir/ltmain.sh"
3551
3552# Set options
3553
3554enable_dlopen=no
3555
3556
3557enable_win32_dll=no
3558
3559
3560# Check whether --enable-shared or --disable-shared was given.
3561if test "${enable_shared+set}" = set; then
3562 enableval="$enable_shared"
3563 p=${PACKAGE-default}
3564 case $enableval in
3565 yes) enable_shared=yes ;;
3566 no) enable_shared=no ;;
3567 *)
3568 enable_shared=no
3569 # Look at the argument we got. We use all the common list separators.
3570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3571 for pkg in $enableval; do
3572 IFS="$lt_save_ifs"
3573 if test "X$pkg" = "X$p"; then
3574 enable_shared=yes
3575 fi
3576 done
3577 IFS="$lt_save_ifs"
3578 ;;
3579 esac
3580else
3581 enable_shared=yes
3582fi;
3583
3584
3585
3586
3587
3588
3589
3590
3591# Check whether --enable-static or --disable-static was given.
3592if test "${enable_static+set}" = set; then
3593 enableval="$enable_static"
3594 p=${PACKAGE-default}
3595 case $enableval in
3596 yes) enable_static=yes ;;
3597 no) enable_static=no ;;
3598 *)
3599 enable_static=no
3600 # Look at the argument we got. We use all the common list separators.
3601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3602 for pkg in $enableval; do
3603 IFS="$lt_save_ifs"
3604 if test "X$pkg" = "X$p"; then
3605 enable_static=yes
3606 fi
3607 done
3608 IFS="$lt_save_ifs"
3609 ;;
3610 esac
3611else
3612 enable_static=yes
3613fi;
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623# Check whether --with-pic or --without-pic was given.
3624if test "${with_pic+set}" = set; then
3625 withval="$with_pic"
3626 pic_mode="$withval"
3627else
3628 pic_mode=default
3629fi;
3630
3631test -z "$pic_mode" && pic_mode=default
3632
3633
3634
3635
3636
3637
3638
3639# Check whether --enable-fast-install or --disable-fast-install was given.
3640if test "${enable_fast_install+set}" = set; then
3641 enableval="$enable_fast_install"
3642 p=${PACKAGE-default}
3643 case $enableval in
3644 yes) enable_fast_install=yes ;;
3645 no) enable_fast_install=no ;;
3646 *)
3647 enable_fast_install=no
3648 # Look at the argument we got. We use all the common list separators.
3649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3650 for pkg in $enableval; do
3651 IFS="$lt_save_ifs"
3652 if test "X$pkg" = "X$p"; then
3653 enable_fast_install=yes
3654 fi
3655 done
3656 IFS="$lt_save_ifs"
3657 ;;
3658 esac
3659else
3660 enable_fast_install=yes
3661fi;
3662
3663
3664
3665
3666
3667
3668
3669
3670echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3671echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3672if test "${lt_cv_path_SED+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675 # Loop through the user's path and test for sed and gsed.
3676# Then use that list of sed's as ones to test for truncation.
3677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678for as_dir in $PATH
3679do
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for lt_ac_prog in sed gsed; do
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3685 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3686 fi
3687 done
3688 done
3689done
3690lt_ac_max=0
3691lt_ac_count=0
3692# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3693# along with /bin/sed that truncates output.
3694for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3695 test ! -f $lt_ac_sed && continue
3696 cat /dev/null > conftest.in
3697 lt_ac_count=0
3698 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3699 # Check for GNU sed and select it if it is found.
3700 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3701 lt_cv_path_SED=$lt_ac_sed
3702 break
3703 fi
3704 while true; do
3705 cat conftest.in conftest.in >conftest.tmp
3706 mv conftest.tmp conftest.in
3707 cp conftest.in conftest.nl
3708 echo >>conftest.nl
3709 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3710 cmp -s conftest.out conftest.nl || break
3711 # 10000 chars as input seems more than enough
3712 test $lt_ac_count -gt 10 && break
3713 lt_ac_count=`expr $lt_ac_count + 1`
3714 if test $lt_ac_count -gt $lt_ac_max; then
3715 lt_ac_max=$lt_ac_count
3716 lt_cv_path_SED=$lt_ac_sed
3717 fi
3718 done
3719done
3720
3721fi
3722
3723SED=$lt_cv_path_SED
3724
3725echo "$as_me:$LINENO: result: $SED" >&5
3726echo "${ECHO_T}$SED" >&6
3727
3728test -z "$SED" && SED=sed
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740echo "$as_me:$LINENO: checking for egrep" >&5
3741echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3742if test "${ac_cv_prog_egrep+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
3745 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3746 then ac_cv_prog_egrep='grep -E'
3747 else ac_cv_prog_egrep='egrep'
3748 fi
3749fi
3750echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3751echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3752 EGREP=$ac_cv_prog_egrep
3753
3754
3755echo "$as_me:$LINENO: checking for fgrep" >&5
3756echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3757if test "${ac_cv_prog_fgrep+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759else
3760 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3761 then ac_cv_prog_fgrep='grep -F'
3762 else ac_cv_prog_fgrep='fgrep'
3763 fi
3764fi
3765echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3766echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3767 FGREP=$ac_cv_prog_fgrep
3768
3769
3770test -z "$GREP" && GREP=grep
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790# Check whether --with-gnu-ld or --without-gnu-ld was given.
3791if test "${with_gnu_ld+set}" = set; then
3792 withval="$with_gnu_ld"
3793 test "$withval" = no || with_gnu_ld=yes
3794else
3795 with_gnu_ld=no
3796fi;
3797ac_prog=ld
3798if test "$GCC" = yes; then
3799 # Check if gcc -print-prog-name=ld gives a path.
3800 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3801echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3802 case $host in
3803 *-*-mingw*)
3804 # gcc leaves a trailing carriage return which upsets mingw
3805 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3806 *)
3807 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3808 esac
3809 case $ac_prog in
3810 # Accept absolute paths.
3811 [\\/]* | ?:[\\/]*)
3812 re_direlt='/[^/][^/]*/\.\./'
3813 # Canonicalize the pathname of ld
3814 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3815 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3816 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3817 done
3818 test -z "$LD" && LD="$ac_prog"
3819 ;;
3820 "")
3821 # If it fails, then pretend we aren't using GCC.
3822 ac_prog=ld
3823 ;;
3824 *)
3825 # If it is relative, then search for the first ld in PATH.
3826 with_gnu_ld=unknown
3827 ;;
3828 esac
3829elif test "$with_gnu_ld" = yes; then
3830 echo "$as_me:$LINENO: checking for GNU ld" >&5
3831echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3832else
3833 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3834echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3835fi
3836if test "${lt_cv_path_LD+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3838else
3839 if test -z "$LD"; then
3840 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3841 for ac_dir in $PATH; do
3842 IFS="$lt_save_ifs"
3843 test -z "$ac_dir" && ac_dir=.
3844 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3845 lt_cv_path_LD="$ac_dir/$ac_prog"
3846 # Check to see if the program is GNU ld. I'd rather use --version,
3847 # but apparently some variants of GNU ld only accept -v.
3848 # Break only if it was the GNU/non-GNU ld that we prefer.
3849 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3850 *GNU* | *'with BFD'*)
3851 test "$with_gnu_ld" != no && break
3852 ;;
3853 *)
3854 test "$with_gnu_ld" != yes && break
3855 ;;
3856 esac
3857 fi
3858 done
3859 IFS="$lt_save_ifs"
3860else
3861 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3862fi
3863fi
3864
3865LD="$lt_cv_path_LD"
3866if test -n "$LD"; then
3867 echo "$as_me:$LINENO: result: $LD" >&5
3868echo "${ECHO_T}$LD" >&6
3869else
3870 echo "$as_me:$LINENO: result: no" >&5
3871echo "${ECHO_T}no" >&6
3872fi
3873test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3874echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3875 { (exit 1); exit 1; }; }
3876echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3877echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3878if test "${lt_cv_prog_gnu_ld+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
3881 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3882case `$LD -v 2>&1 </dev/null` in
3883*GNU* | *'with BFD'*)
3884 lt_cv_prog_gnu_ld=yes
3885 ;;
3886*)
3887 lt_cv_prog_gnu_ld=no
3888 ;;
3889esac
3890fi
3891echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3892echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3893with_gnu_ld=$lt_cv_prog_gnu_ld
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3905echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3906if test "${lt_cv_path_NM+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909 if test -n "$NM"; then
3910 # Let the user override the test.
3911 lt_cv_path_NM="$NM"
3912else
3913 lt_nm_to_check="${ac_tool_prefix}nm"
3914 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3915 lt_nm_to_check="$lt_nm_to_check nm"
3916 fi
3917 for lt_tmp_nm in $lt_nm_to_check; do
3918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3919 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3920 IFS="$lt_save_ifs"
3921 test -z "$ac_dir" && ac_dir=.
3922 tmp_nm="$ac_dir/$lt_tmp_nm"
3923 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3924 # Check to see if the nm accepts a BSD-compat flag.
3925 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3926 # nm: unknown option "B" ignored
3927 # Tru64's nm complains that /dev/null is an invalid object file
3928 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3929 */dev/null* | *'Invalid file or object type'*)
3930 lt_cv_path_NM="$tmp_nm -B"
3931 break
3932 ;;
3933 *)
3934 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3935 */dev/null*)
3936 lt_cv_path_NM="$tmp_nm -p"
3937 break
3938 ;;
3939 *)
3940 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3941 continue # so that we can try to find one that supports BSD flags
3942 ;;
3943 esac
3944 ;;
3945 esac
3946 fi
3947 done
3948 IFS="$lt_save_ifs"
3949 done
3950 : ${lt_cv_path_NM=no}
3951fi
3952fi
3953echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3954echo "${ECHO_T}$lt_cv_path_NM" >&6
3955if test "$lt_cv_path_NM" != "no"; then
3956 NM="$lt_cv_path_NM"
3957else
3958 # Didn't find any BSD compatible name lister, look for dumpbin.
3959 if test -n "$ac_tool_prefix"; then
3960 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3961 do
3962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3963set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3964echo "$as_me:$LINENO: checking for $ac_word" >&5
3965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968else
3969 if test -n "$DUMPBIN"; then
3970 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983done
3984done
3985
3986fi
3987fi
3988DUMPBIN=$ac_cv_prog_DUMPBIN
3989if test -n "$DUMPBIN"; then
3990 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3991echo "${ECHO_T}$DUMPBIN" >&6
3992else
3993 echo "$as_me:$LINENO: result: no" >&5
3994echo "${ECHO_T}no" >&6
3995fi
3996
3997 test -n "$DUMPBIN" && break
3998 done
3999fi
4000if test -z "$DUMPBIN"; then
4001 ac_ct_DUMPBIN=$DUMPBIN
4002 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4003do
4004 # Extract the first word of "$ac_prog", so it can be a program name with args.
4005set dummy $ac_prog; ac_word=$2
4006echo "$as_me:$LINENO: checking for $ac_word" >&5
4007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
4011 if test -n "$ac_ct_DUMPBIN"; then
4012 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4013else
4014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4024 fi
4025done
4026done
4027
4028fi
4029fi
4030ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4031if test -n "$ac_ct_DUMPBIN"; then
4032 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4033echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4034else
4035 echo "$as_me:$LINENO: result: no" >&5
4036echo "${ECHO_T}no" >&6
4037fi
4038
4039 test -n "$ac_ct_DUMPBIN" && break
4040done
4041test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4042
4043 DUMPBIN=$ac_ct_DUMPBIN
4044fi
4045
4046
4047 if test "$DUMPBIN" != ":"; then
4048 NM="$DUMPBIN"
4049 fi
4050fi
4051test -z "$NM" && NM=nm
4052
4053
4054
4055
4056
4057
4058echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4059echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4060if test "${lt_cv_nm_interface+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062else
4063 lt_cv_nm_interface="BSD nm"
4064 echo "int some_variable = 0;" > conftest.$ac_ext
4065 (eval echo "\"\$as_me:4065: $ac_compile\"" >&5)
4066 (eval "$ac_compile" 2>conftest.err)
4067 cat conftest.err >&5
4068 (eval echo "\"\$as_me:4068: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4069 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4070 cat conftest.err >&5
4071 (eval echo "\"\$as_me:4071: output\"" >&5)
4072 cat conftest.out >&5
4073 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4074 lt_cv_nm_interface="MS dumpbin"
4075 fi
4076 rm -f conftest*
4077fi
4078echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4079echo "${ECHO_T}$lt_cv_nm_interface" >&6
4080
4081# find the maximum length of command line arguments
4082echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4083echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4084if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087 i=0
4088 teststring="ABCD"
4089
4090 case $build_os in
4091 msdosdjgpp*)
4092 # On DJGPP, this test can blow up pretty badly due to problems in libc
4093 # (any single argument exceeding 2000 bytes causes a buffer overrun
4094 # during glob expansion). Even if it were fixed, the result of this
4095 # check would be larger than it should be.
4096 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4097 ;;
4098
4099 gnu*)
4100 # Under GNU Hurd, this test is not required because there is
4101 # no limit to the length of command line arguments.
4102 # Libtool will interpret -1 as no limit whatsoever
4103 lt_cv_sys_max_cmd_len=-1;
4104 ;;
4105
4106 cygwin* | mingw*)
4107 # On Win9x/ME, this test blows up -- it succeeds, but takes
4108 # about 5 minutes as the teststring grows exponentially.
4109 # Worse, since 9x/ME are not pre-emptively multitasking,
4110 # you end up with a "frozen" computer, even though with patience
4111 # the test eventually succeeds (with a max line length of 256k).
4112 # Instead, let's just punt: use the minimum linelength reported by
4113 # all of the supported platforms: 8192 (on NT/2K/XP).
4114 lt_cv_sys_max_cmd_len=8192;
4115 ;;
4116
4117 amigaos*)
4118 # On AmigaOS with pdksh, this test takes hours, literally.
4119 # So we just punt and use a minimum line length of 8192.
4120 lt_cv_sys_max_cmd_len=8192;
4121 ;;
4122
4123 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4124 # This has been around since 386BSD, at least. Likely further.
4125 if test -x /sbin/sysctl; then
4126 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4127 elif test -x /usr/sbin/sysctl; then
4128 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4129 else
4130 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4131 fi
4132 # And add a safety zone
4133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4135 ;;
4136
4137 interix*)
4138 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4139 lt_cv_sys_max_cmd_len=196608
4140 ;;
4141
4142 osf*)
4143 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4144 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4145 # nice to cause kernel panics so lets avoid the loop below.
4146 # First set a reasonable default.
4147 lt_cv_sys_max_cmd_len=16384
4148 #
4149 if test -x /sbin/sysconfig; then
4150 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4151 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4152 esac
4153 fi
4154 ;;
4155 sco3.2v5*)
4156 lt_cv_sys_max_cmd_len=102400
4157 ;;
4158 sysv5* | sco5v6* | sysv4.2uw2*)
4159 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4160 if test -n "$kargmax"; then
4161 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4162 else
4163 lt_cv_sys_max_cmd_len=32768
4164 fi
4165 ;;
4166 *)
4167 # Make teststring a little bigger before we do anything with it.
4168 # a 1K string should be a reasonable start.
4169 for i in 1 2 3 4 5 6 7 8 ; do
4170 teststring=$teststring$teststring
4171 done
4172 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4173 # If test is not a shell built-in, we'll probably end up computing a
4174 # maximum length that is only half of the actual maximum length, but
4175 # we can't tell.
4176 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4177 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4178 test $i != 17 # 1/2 MB should be enough
4179 do
4180 i=`expr $i + 1`
4181 teststring=$teststring$teststring
4182 done
4183 # Only check the string length outside the loop.
4184 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4185 teststring=
4186 # Add a significant safety factor because C++ compilers can tack on massive
4187 # amounts of additional arguments before passing them to the linker.
4188 # It appears as though 1/2 is a usable value.
4189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4190 ;;
4191 esac
4192
4193fi
4194
4195if test -n $lt_cv_sys_max_cmd_len ; then
4196 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4197echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4198else
4199 echo "$as_me:$LINENO: result: none" >&5
4200echo "${ECHO_T}none" >&6
4201fi
4202max_cmd_len=$lt_cv_sys_max_cmd_len
4203
4204
4205
4206
4207
4208
4209
4210: ${CP="cp -f"}
4211: ${MV="mv -f"}
4212: ${RM="rm -f"}
4213
4214echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4215echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4216# Try some XSI features
4217xsi_shell=no
4218( _lt_dummy="a/b/c"
4219 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4220 = c,a/b,, ) >/dev/null 2>&1 \
4221 && xsi_shell=yes
4222echo "$as_me:$LINENO: result: $xsi_shell" >&5
4223echo "${ECHO_T}$xsi_shell" >&6
4224
4225
4226echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4227echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4228if test "${lt_cv_ld_reload_flag+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230else
4231 lt_cv_ld_reload_flag='-r'
4232fi
4233echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4234echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4235reload_flag=$lt_cv_ld_reload_flag
4236case $reload_flag in
4237"" | " "*) ;;
4238*) reload_flag=" $reload_flag" ;;
4239esac
4240reload_cmds='$LD$reload_flag -o $output$reload_objs'
4241case $host_os in
4242 darwin*)
4243 if test "$GCC" = yes; then
4244 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4245 else
4246 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4247 fi
4248 ;;
4249esac
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4261echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4262if test "${lt_cv_deplibs_check_method+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4264else
4265 lt_cv_file_magic_cmd='$MAGIC_CMD'
4266lt_cv_file_magic_test_file=
4267lt_cv_deplibs_check_method='unknown'
4268# Need to set the preceding variable on all platforms that support
4269# interlibrary dependencies.
4270# 'none' -- dependencies not supported.
4271# `unknown' -- same as none, but documents that we really don't know.
4272# 'pass_all' -- all dependencies passed with no checks.
4273# 'test_compile' -- check by making test program.
4274# 'file_magic [[regex]]' -- check by looking for files in library path
4275# which responds to the $file_magic_cmd with a given extended regex.
4276# If you have `file' or equivalent on your system and you're not sure
4277# whether `pass_all' will *always* work, you probably want this one.
4278
4279case $host_os in
4280aix4* | aix5*)
4281 lt_cv_deplibs_check_method=pass_all
4282 ;;
4283
4284beos*)
4285 lt_cv_deplibs_check_method=pass_all
4286 ;;
4287
4288bsdi[45]*)
4289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4290 lt_cv_file_magic_cmd='/usr/bin/file -L'
4291 lt_cv_file_magic_test_file=/shlib/libc.so
4292 ;;
4293
4294cygwin*)
4295 # func_win32_libid is a shell function defined in ltmain.sh
4296 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4297 lt_cv_file_magic_cmd='func_win32_libid'
4298 ;;
4299
4300 # Base MSYS/MinGW do not provide the 'file' command needed by
4301 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4302mingw* | pw32*)
4303 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4304 lt_cv_file_magic_cmd='$OBJDUMP -f'
4305 ;;
4306
4307darwin* | rhapsody*)
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310
4311freebsd* | kfreebsd*-gnu | dragonfly*)
4312 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4313 case $host_cpu in
4314 i*86 )
4315 # Not sure whether the presence of OpenBSD here was a mistake.
4316 # Let's accept both of them until this is cleared up.
4317 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4318 lt_cv_file_magic_cmd=/usr/bin/file
4319 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4320 ;;
4321 esac
4322 else
4323 lt_cv_deplibs_check_method=pass_all
4324 fi
4325 ;;
4326
4327gnu*)
4328 lt_cv_deplibs_check_method=pass_all
4329 ;;
4330
4331hpux10.20* | hpux11*)
4332 lt_cv_file_magic_cmd=/usr/bin/file
4333 case $host_cpu in
4334 ia64*)
4335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4336 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4337 ;;
4338 hppa*64*)
4339 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]'
4340 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4341 ;;
4342 *)
4343 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4344 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4345 ;;
4346 esac
4347 ;;
4348
4349interix3*)
4350 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4352 ;;
4353
4354irix5* | irix6* | nonstopux*)
4355 case $LD in
4356 *-32|*"-32 ") libmagic=32-bit;;
4357 *-n32|*"-n32 ") libmagic=N32;;
4358 *-64|*"-64 ") libmagic=64-bit;;
4359 *) libmagic=never-match;;
4360 esac
4361 lt_cv_deplibs_check_method=pass_all
4362 ;;
4363
4364# This must be Linux ELF.
4365linux*)
4366 lt_cv_deplibs_check_method=pass_all
4367 ;;
4368
4369netbsd* | knetbsd*-gnu)
4370 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4372 else
4373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4374 fi
4375 ;;
4376
4377newos6*)
4378 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4379 lt_cv_file_magic_cmd=/usr/bin/file
4380 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4381 ;;
4382
4383*nto* | *qnx*)
4384 lt_cv_deplibs_check_method=pass_all
4385 ;;
4386
4387openbsd*)
4388 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4390 else
4391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4392 fi
4393 ;;
4394
4395osf3* | osf4* | osf5*)
4396 lt_cv_deplibs_check_method=pass_all
4397 ;;
4398
4399rdos*)
4400 lt_cv_deplibs_check_method=pass_all
4401 ;;
4402
4403solaris*)
4404 lt_cv_deplibs_check_method=pass_all
4405 ;;
4406
4407sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4408 lt_cv_deplibs_check_method=pass_all
4409 ;;
4410
4411sysv4 | sysv4.3*)
4412 case $host_vendor in
4413 motorola)
4414 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]'
4415 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4416 ;;
4417 ncr)
4418 lt_cv_deplibs_check_method=pass_all
4419 ;;
4420 sequent)
4421 lt_cv_file_magic_cmd='/bin/file'
4422 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4423 ;;
4424 sni)
4425 lt_cv_file_magic_cmd='/bin/file'
4426 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4427 lt_cv_file_magic_test_file=/lib/libc.so
4428 ;;
4429 siemens)
4430 lt_cv_deplibs_check_method=pass_all
4431 ;;
4432 pc)
4433 lt_cv_deplibs_check_method=pass_all
4434 ;;
4435 esac
4436 ;;
4437
4438tpf*)
4439 lt_cv_deplibs_check_method=pass_all
4440 ;;
4441esac
4442
4443fi
4444echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4445echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4446file_magic_cmd=$lt_cv_file_magic_cmd
4447deplibs_check_method=$lt_cv_deplibs_check_method
4448test -z "$deplibs_check_method" && deplibs_check_method=unknown
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461if test -n "$ac_tool_prefix"; then
4462 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4463set dummy ${ac_tool_prefix}ar; ac_word=$2
4464echo "$as_me:$LINENO: checking for $ac_word" >&5
4465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4466if test "${ac_cv_prog_AR+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4468else
4469 if test -n "$AR"; then
4470 ac_cv_prog_AR="$AR" # Let the user override the test.
4471else
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4479 ac_cv_prog_AR="${ac_tool_prefix}ar"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483done
4484done
4485
4486fi
4487fi
4488AR=$ac_cv_prog_AR
4489if test -n "$AR"; then
4490 echo "$as_me:$LINENO: result: $AR" >&5
4491echo "${ECHO_T}$AR" >&6
4492else
4493 echo "$as_me:$LINENO: result: no" >&5
4494echo "${ECHO_T}no" >&6
4495fi
4496
4497fi
4498if test -z "$ac_cv_prog_AR"; then
4499 ac_ct_AR=$AR
4500 # Extract the first word of "ar", so it can be a program name with args.
4501set dummy ar; ac_word=$2
4502echo "$as_me:$LINENO: checking for $ac_word" >&5
4503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4504if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507 if test -n "$ac_ct_AR"; then
4508 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4509else
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_prog_ac_ct_AR="ar"
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4520 fi
4521done
4522done
4523
4524 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4525fi
4526fi
4527ac_ct_AR=$ac_cv_prog_ac_ct_AR
4528if test -n "$ac_ct_AR"; then
4529 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4530echo "${ECHO_T}$ac_ct_AR" >&6
4531else
4532 echo "$as_me:$LINENO: result: no" >&5
4533echo "${ECHO_T}no" >&6
4534fi
4535
4536 AR=$ac_ct_AR
4537else
4538 AR="$ac_cv_prog_AR"
4539fi
4540
4541test -z "$AR" && AR=ar
4542test -z "$AR_FLAGS" && AR_FLAGS=cru
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4556set dummy ${ac_tool_prefix}strip; ac_word=$2
4557echo "$as_me:$LINENO: checking for $ac_word" >&5
4558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4559if test "${ac_cv_prog_STRIP+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561else
4562 if test -n "$STRIP"; then
4563 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4564else
4565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566for as_dir in $PATH
4567do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4575 fi
4576done
4577done
4578
4579fi
4580fi
4581STRIP=$ac_cv_prog_STRIP
4582if test -n "$STRIP"; then
4583 echo "$as_me:$LINENO: result: $STRIP" >&5
4584echo "${ECHO_T}$STRIP" >&6
4585else
4586 echo "$as_me:$LINENO: result: no" >&5
4587echo "${ECHO_T}no" >&6
4588fi
4589
4590fi
4591if test -z "$ac_cv_prog_STRIP"; then
4592 ac_ct_STRIP=$STRIP
4593 # Extract the first word of "strip", so it can be a program name with args.
4594set dummy strip; ac_word=$2
4595echo "$as_me:$LINENO: checking for $ac_word" >&5
4596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4597if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599else
4600 if test -n "$ac_ct_STRIP"; then
4601 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4602else
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_ac_ct_STRIP="strip"
4611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614done
4615done
4616
4617 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4618fi
4619fi
4620ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4621if test -n "$ac_ct_STRIP"; then
4622 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4623echo "${ECHO_T}$ac_ct_STRIP" >&6
4624else
4625 echo "$as_me:$LINENO: result: no" >&5
4626echo "${ECHO_T}no" >&6
4627fi
4628
4629 STRIP=$ac_ct_STRIP
4630else
4631 STRIP="$ac_cv_prog_STRIP"
4632fi
4633
4634test -z "$STRIP" && STRIP=:
4635
4636
4637
4638
4639
4640
4641if test -n "$ac_tool_prefix"; then
4642 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4643set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4644echo "$as_me:$LINENO: checking for $ac_word" >&5
4645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4646if test "${ac_cv_prog_RANLIB+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
4649 if test -n "$RANLIB"; then
4650 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4651else
4652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH
4654do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663done
4664done
4665
4666fi
4667fi
4668RANLIB=$ac_cv_prog_RANLIB
4669if test -n "$RANLIB"; then
4670 echo "$as_me:$LINENO: result: $RANLIB" >&5
4671echo "${ECHO_T}$RANLIB" >&6
4672else
4673 echo "$as_me:$LINENO: result: no" >&5
4674echo "${ECHO_T}no" >&6
4675fi
4676
4677fi
4678if test -z "$ac_cv_prog_RANLIB"; then
4679 ac_ct_RANLIB=$RANLIB
4680 # Extract the first word of "ranlib", so it can be a program name with args.
4681set dummy ranlib; ac_word=$2
4682echo "$as_me:$LINENO: checking for $ac_word" >&5
4683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4684if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686else
4687 if test -n "$ac_ct_RANLIB"; then
4688 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4689else
4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697 ac_cv_prog_ac_ct_RANLIB="ranlib"
4698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4700 fi
4701done
4702done
4703
4704 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4705fi
4706fi
4707ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4708if test -n "$ac_ct_RANLIB"; then
4709 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4710echo "${ECHO_T}$ac_ct_RANLIB" >&6
4711else
4712 echo "$as_me:$LINENO: result: no" >&5
4713echo "${ECHO_T}no" >&6
4714fi
4715
4716 RANLIB=$ac_ct_RANLIB
4717else
4718 RANLIB="$ac_cv_prog_RANLIB"
4719fi
4720
4721test -z "$RANLIB" && RANLIB=:
4722
4723
4724
4725
4726
4727
4728# Determine commands to create old-style static archives.
4729old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4730old_postinstall_cmds='chmod 644 $oldlib'
4731old_postuninstall_cmds=
4732
4733if test -n "$RANLIB"; then
4734 case $host_os in
4735 openbsd*)
4736 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4737 ;;
4738 *)
4739 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4740 ;;
4741 esac
4742 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4743fi
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778# If no C compiler was specified, use CC.
4779LTCC=${LTCC-"$CC"}
4780
4781# If no C compiler flags were specified, use CFLAGS.
4782LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4783
4784# Allow CC to be a program name with arguments.
4785compiler=$CC
4786
4787
4788# Check for command to grab the raw symbol name followed by C symbol from nm.
4789echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4790echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4791if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793else
4794
4795# These are sane defaults that work on at least a few old systems.
4796# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4797
4798# Character class describing NM global symbol codes.
4799symcode='[BCDEGRST]'
4800
4801# Regexp to match symbols that can be accessed directly from C.
4802sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4803
4804# Define system-specific variables.
4805case $host_os in
4806aix*)
4807 symcode='[BCDT]'
4808 ;;
4809cygwin* | mingw* | pw32*)
4810 symcode='[ABCDGISTW]'
4811 ;;
4812hpux*)
4813 if test "$host_cpu" = ia64; then
4814 symcode='[ABCDEGRST]'
4815 fi
4816 ;;
4817irix* | nonstopux*)
4818 symcode='[BCDEGRST]'
4819 ;;
4820osf*)
4821 symcode='[BCDEGQRST]'
4822 ;;
4823solaris*)
4824 symcode='[BDRT]'
4825 ;;
4826sco3.2v5*)
4827 symcode='[DT]'
4828 ;;
4829sysv4.2uw2*)
4830 symcode='[DT]'
4831 ;;
4832sysv5* | sco5v6* | unixware* | OpenUNIX*)
4833 symcode='[ABDT]'
4834 ;;
4835sysv4)
4836 symcode='[DFNSTU]'
4837 ;;
4838esac
4839
4840# If we're using GNU nm, then use its standard symbol codes.
4841case `$NM -V 2>&1` in
4842*GNU* | *'with BFD'*)
4843 symcode='[ABCDGIRSTW]' ;;
4844esac
4845
4846# Transform an extracted symbol line into a proper C declaration.
4847# Some systems (esp. on ia64) link data and code symbols differently,
4848# so use this general approach.
4849lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4850
4851# Transform an extracted symbol line into symbol name and symbol address
4852lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4853
4854# Handle CRLF in mingw tool chain
4855opt_cr=
4856case $build_os in
4857mingw*)
4858 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4859 ;;
4860esac
4861
4862# Try without a prefix underscore, then with it.
4863for ac_symprfx in "" "_"; do
4864
4865 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4866 symxfrm="\\1 $ac_symprfx\\2 \\2"
4867
4868 # Write the raw and C identifiers.
4869 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4870 # Fake it for dumpbin and say T for any non-static function
4871 # and D for any global variable.
4872 # Also find C++ and __fastcall symbols from MSVC++,
4873 # which start with @ or ?.
4874 lt_cv_sys_global_symbol_pipe="$AWK '"\
4875" {last_section=section; section=\$ 3};"\
4876" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4877" \$ 0!~/External *\|/{next};"\
4878" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4879" {if(hide[section]) next};"\
4880" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4881" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4882" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4883" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4884" ' prfx=^$ac_symprfx"
4885 else
4886 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4887 fi
4888
4889 # Check to see that the pipe works correctly.
4890 pipe_works=no
4891
4892 rm -f conftest*
4893 cat > conftest.$ac_ext <<_LT_EOF
4894#ifdef __cplusplus
4895extern "C" {
4896#endif
4897char nm_test_var;
4898void nm_test_func(){}
4899#ifdef __cplusplus
4900}
4901#endif
4902int main(){nm_test_var='a';nm_test_func();return(0);}
4903_LT_EOF
4904
4905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906 (eval $ac_compile) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; then
4910 # Now try to grab the symbols.
4911 nlist=conftest.nm
4912 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4913 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && test -s "$nlist"; then
4917 # Try sorting and uniquifying the output.
4918 if sort "$nlist" | uniq > "$nlist"T; then
4919 mv -f "$nlist"T "$nlist"
4920 else
4921 rm -f "$nlist"T
4922 fi
4923
4924 # Make sure that we snagged all the symbols we need.
4925 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4926 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4927 cat <<_LT_EOF > conftest.$ac_ext
4928#ifdef __cplusplus
4929extern "C" {
4930#endif
4931
4932_LT_EOF
4933 # Now generate the symbol file.
4934 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4935
4936 cat <<_LT_EOF >> conftest.$ac_ext
4937
4938/* The mapping between symbol names and symbols. */
4939const struct {
4940 const char *name;
4941 void *address;
4942}
4943lt__PROGRAM__LTX_preloaded_symbols[] =
4944{
4945 { "@PROGRAM@", (void *) 0 },
4946_LT_EOF
4947 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4948 cat <<\_LT_EOF >> conftest.$ac_ext
4949 {0, (void *) 0}
4950};
4951
4952/* This works around a problem in FreeBSD linker */
4953#ifdef FREEBSD_WORKAROUND
4954static const void *lt_preloaded_setup() {
4955 return lt__PROGRAM__LTX_preloaded_symbols;
4956}
4957#endif
4958
4959#ifdef __cplusplus
4960}
4961#endif
4962_LT_EOF
4963 # Now try linking the two files.
4964 mv conftest.$ac_objext conftstm.$ac_objext
4965 lt_save_LIBS="$LIBS"
4966 lt_save_CFLAGS="$CFLAGS"
4967 LIBS="conftstm.$ac_objext"
4968 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970 (eval $ac_link) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4974 pipe_works=yes
4975 fi
4976 LIBS="$lt_save_LIBS"
4977 CFLAGS="$lt_save_CFLAGS"
4978 else
4979 echo "cannot find nm_test_func in $nlist" >&5
4980 fi
4981 else
4982 echo "cannot find nm_test_var in $nlist" >&5
4983 fi
4984 else
4985 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4986 fi
4987 else
4988 echo "$progname: failed program was:" >&5
4989 cat conftest.$ac_ext >&5
4990 fi
4991 rm -f conftest* conftst*
4992
4993 # Do not use the global_symbol_pipe unless it works.
4994 if test "$pipe_works" = yes; then
4995 break
4996 else
4997 lt_cv_sys_global_symbol_pipe=
4998 fi
4999done
5000
5001fi
5002
5003if test -z "$lt_cv_sys_global_symbol_pipe"; then
5004 lt_cv_sys_global_symbol_to_cdecl=
5005fi
5006if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5007 echo "$as_me:$LINENO: result: failed" >&5
5008echo "${ECHO_T}failed" >&6
5009else
5010 echo "$as_me:$LINENO: result: ok" >&5
5011echo "${ECHO_T}ok" >&6
5012fi
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5032if test "${enable_libtool_lock+set}" = set; then
5033 enableval="$enable_libtool_lock"
5034
5035fi;
5036test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5037
5038# Some flags need to be propagated to the compiler or linker for good
5039# libtool support.
5040case $host in
5041ia64-*-hpux*)
5042 # Find out which ABI we are using.
5043 echo 'int i;' > conftest.$ac_ext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045 (eval $ac_compile) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; then
5049 case `/usr/bin/file conftest.$ac_objext` in
5050 *ELF-32*)
5051 HPUX_IA64_MODE="32"
5052 ;;
5053 *ELF-64*)
5054 HPUX_IA64_MODE="64"
5055 ;;
5056 esac
5057 fi
5058 rm -rf conftest*
5059 ;;
5060*-*-irix6*)
5061 # Find out which ABI we are using.
5062 echo '#line 5062 "configure"' > conftest.$ac_ext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064 (eval $ac_compile) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; then
5068 if test "$lt_cv_prog_gnu_ld" = yes; then
5069 case `/usr/bin/file conftest.$ac_objext` in
5070 *32-bit*)
5071 LD="${LD-ld} -melf32bsmip"
5072 ;;
5073 *N32*)
5074 LD="${LD-ld} -melf32bmipn32"
5075 ;;
5076 *64-bit*)
5077 LD="${LD-ld} -melf64bmip"
5078 ;;
5079 esac
5080 else
5081 case `/usr/bin/file conftest.$ac_objext` in
5082 *32-bit*)
5083 LD="${LD-ld} -32"
5084 ;;
5085 *N32*)
5086 LD="${LD-ld} -n32"
5087 ;;
5088 *64-bit*)
5089 LD="${LD-ld} -64"
5090 ;;
5091 esac
5092 fi
5093 fi
5094 rm -rf conftest*
5095 ;;
5096
5097x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5098 # Find out which ABI we are using.
5099 echo 'int i;' > conftest.$ac_ext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101 (eval $ac_compile) 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; then
5105 case `/usr/bin/file conftest.o` in
5106 *32-bit*)
5107 case $host in
5108 x86_64-*linux*)
5109 LD="${LD-ld} -m elf_i386"
5110 ;;
5111 ppc64-*linux*|powerpc64-*linux*)
5112 LD="${LD-ld} -m elf32ppclinux"
5113 ;;
5114 s390x-*linux*)
5115 LD="${LD-ld} -m elf_s390"
5116 ;;
5117 sparc64-*linux*)
5118 LD="${LD-ld} -m elf32_sparc"
5119 ;;
5120 esac
5121 ;;
5122 *64-bit*)
5123 case $host in
5124 x86_64-*linux*)
5125 LD="${LD-ld} -m elf_x86_64"
5126 ;;
5127 ppc*-*linux*|powerpc*-*linux*)
5128 LD="${LD-ld} -m elf64ppc"
5129 ;;
5130 s390*-*linux*|s390*-*tpf*)
5131 LD="${LD-ld} -m elf64_s390"
5132 ;;
5133 sparc*-*linux*)
5134 LD="${LD-ld} -m elf64_sparc"
5135 ;;
5136 esac
5137 ;;
5138 esac
5139 fi
5140 rm -rf conftest*
5141 ;;
5142
5143*-*-sco3.2v5*)
5144 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5145 SAVE_CFLAGS="$CFLAGS"
5146 CFLAGS="$CFLAGS -belf"
5147 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5148echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5149if test "${lt_cv_cc_needs_belf+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5151else
5152 ac_ext=c
5153ac_cpp='$CPP $CPPFLAGS'
5154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156ac_compiler_gnu=$ac_cv_c_compiler_gnu
5157
5158 cat >conftest.$ac_ext <<_ACEOF
5159/* confdefs.h. */
5160_ACEOF
5161cat confdefs.h >>conftest.$ac_ext
5162cat >>conftest.$ac_ext <<_ACEOF
5163/* end confdefs.h. */
5164
5165int
5166main ()
5167{
5168
5169 ;
5170 return 0;
5171}
5172_ACEOF
5173rm -f conftest.$ac_objext conftest$ac_exeext
5174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175 (eval $ac_link) 2>conftest.er1
5176 ac_status=$?
5177 grep -v '^ *+' conftest.er1 >conftest.err
5178 rm -f conftest.er1
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } &&
5182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184 (eval $ac_try) 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; } &&
5188 { ac_try='test -s conftest$ac_exeext'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 (eval $ac_try) 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5194 lt_cv_cc_needs_belf=yes
5195else
5196 echo "$as_me: failed program was:" >&5
5197sed 's/^/| /' conftest.$ac_ext >&5
5198
5199lt_cv_cc_needs_belf=no
5200fi
5201rm -f conftest.err conftest.$ac_objext \
5202 conftest$ac_exeext conftest.$ac_ext
5203 ac_ext=c
5204ac_cpp='$CPP $CPPFLAGS'
5205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207ac_compiler_gnu=$ac_cv_c_compiler_gnu
5208
5209fi
5210echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5211echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5212 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5213 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5214 CFLAGS="$SAVE_CFLAGS"
5215 fi
5216 ;;
5217sparc*-*solaris*)
5218 # Find out which ABI we are using.
5219 echo 'int i;' > conftest.$ac_ext
5220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221 (eval $ac_compile) 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; then
5225 case `/usr/bin/file conftest.o` in
5226 *64-bit*)
5227 case $lt_cv_prog_gnu_ld in
5228 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5229 *) LD="${LD-ld} -64" ;;
5230 esac
5231 ;;
5232 esac
5233 fi
5234 rm -rf conftest*
5235 ;;
5236esac
5237
5238need_locks="$enable_libtool_lock"
5239
5240ac_ext=c
5241ac_cpp='$CPP $CPPFLAGS'
5242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244ac_compiler_gnu=$ac_cv_c_compiler_gnu
5245echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5246echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5247# On Suns, sometimes $CPP names a directory.
5248if test -n "$CPP" && test -d "$CPP"; then
5249 CPP=
5250fi
5251if test -z "$CPP"; then
5252 if test "${ac_cv_prog_CPP+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255 # Double quotes because CPP needs to be expanded
5256 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5257 do
5258 ac_preproc_ok=false
5259for ac_c_preproc_warn_flag in '' yes
5260do
5261 # Use a header file that comes with gcc, so configuring glibc
5262 # with a fresh cross-compiler works.
5263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5264 # <limits.h> exists even on freestanding compilers.
5265 # On the NeXT, cc -E runs the code through the compiler's parser,
5266 # not just through cpp. "Syntax error" is here to catch this case.
5267 cat >conftest.$ac_ext <<_ACEOF
5268/* confdefs.h. */
5269_ACEOF
5270cat confdefs.h >>conftest.$ac_ext
5271cat >>conftest.$ac_ext <<_ACEOF
5272/* end confdefs.h. */
5273#ifdef __STDC__
5274# include <limits.h>
5275#else
5276# include <assert.h>
5277#endif
5278 Syntax error
5279_ACEOF
5280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5282 ac_status=$?
5283 grep -v '^ *+' conftest.er1 >conftest.err
5284 rm -f conftest.er1
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } >/dev/null; then
5288 if test -s conftest.err; then
5289 ac_cpp_err=$ac_c_preproc_warn_flag
5290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5291 else
5292 ac_cpp_err=
5293 fi
5294else
5295 ac_cpp_err=yes
5296fi
5297if test -z "$ac_cpp_err"; then
5298 :
5299else
5300 echo "$as_me: failed program was:" >&5
5301sed 's/^/| /' conftest.$ac_ext >&5
5302
5303 # Broken: fails on valid input.
5304continue
5305fi
5306rm -f conftest.err conftest.$ac_ext
5307
5308 # OK, works on sane cases. Now check whether non-existent headers
5309 # can be detected and how.
5310 cat >conftest.$ac_ext <<_ACEOF
5311/* confdefs.h. */
5312_ACEOF
5313cat confdefs.h >>conftest.$ac_ext
5314cat >>conftest.$ac_ext <<_ACEOF
5315/* end confdefs.h. */
5316#include <ac_nonexistent.h>
5317_ACEOF
5318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } >/dev/null; then
5326 if test -s conftest.err; then
5327 ac_cpp_err=$ac_c_preproc_warn_flag
5328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5329 else
5330 ac_cpp_err=
5331 fi
5332else
5333 ac_cpp_err=yes
5334fi
5335if test -z "$ac_cpp_err"; then
5336 # Broken: success on invalid input.
5337continue
5338else
5339 echo "$as_me: failed program was:" >&5
5340sed 's/^/| /' conftest.$ac_ext >&5
5341
5342 # Passes both tests.
5343ac_preproc_ok=:
5344break
5345fi
5346rm -f conftest.err conftest.$ac_ext
5347
5348done
5349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5350rm -f conftest.err conftest.$ac_ext
5351if $ac_preproc_ok; then
5352 break
5353fi
5354
5355 done
5356 ac_cv_prog_CPP=$CPP
5357
5358fi
5359 CPP=$ac_cv_prog_CPP
5360else
5361 ac_cv_prog_CPP=$CPP
5362fi
5363echo "$as_me:$LINENO: result: $CPP" >&5
5364echo "${ECHO_T}$CPP" >&6
5365ac_preproc_ok=false
5366for ac_c_preproc_warn_flag in '' yes
5367do
5368 # Use a header file that comes with gcc, so configuring glibc
5369 # with a fresh cross-compiler works.
5370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5371 # <limits.h> exists even on freestanding compilers.
5372 # On the NeXT, cc -E runs the code through the compiler's parser,
5373 # not just through cpp. "Syntax error" is here to catch this case.
5374 cat >conftest.$ac_ext <<_ACEOF
5375/* confdefs.h. */
5376_ACEOF
5377cat confdefs.h >>conftest.$ac_ext
5378cat >>conftest.$ac_ext <<_ACEOF
5379/* end confdefs.h. */
5380#ifdef __STDC__
5381# include <limits.h>
5382#else
5383# include <assert.h>
5384#endif
5385 Syntax error
5386_ACEOF
5387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } >/dev/null; then
5395 if test -s conftest.err; then
5396 ac_cpp_err=$ac_c_preproc_warn_flag
5397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5398 else
5399 ac_cpp_err=
5400 fi
5401else
5402 ac_cpp_err=yes
5403fi
5404if test -z "$ac_cpp_err"; then
5405 :
5406else
5407 echo "$as_me: failed program was:" >&5
5408sed 's/^/| /' conftest.$ac_ext >&5
5409
5410 # Broken: fails on valid input.
5411continue
5412fi
5413rm -f conftest.err conftest.$ac_ext
5414
5415 # OK, works on sane cases. Now check whether non-existent headers
5416 # can be detected and how.
5417 cat >conftest.$ac_ext <<_ACEOF
5418/* confdefs.h. */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h. */
5423#include <ac_nonexistent.h>
5424_ACEOF
5425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5427 ac_status=$?
5428 grep -v '^ *+' conftest.er1 >conftest.err
5429 rm -f conftest.er1
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } >/dev/null; then
5433 if test -s conftest.err; then
5434 ac_cpp_err=$ac_c_preproc_warn_flag
5435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5436 else
5437 ac_cpp_err=
5438 fi
5439else
5440 ac_cpp_err=yes
5441fi
5442if test -z "$ac_cpp_err"; then
5443 # Broken: success on invalid input.
5444continue
5445else
5446 echo "$as_me: failed program was:" >&5
5447sed 's/^/| /' conftest.$ac_ext >&5
5448
5449 # Passes both tests.
5450ac_preproc_ok=:
5451break
5452fi
5453rm -f conftest.err conftest.$ac_ext
5454
5455done
5456# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5457rm -f conftest.err conftest.$ac_ext
5458if $ac_preproc_ok; then
5459 :
5460else
5461 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5462See \`config.log' for more details." >&5
5463echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5464See \`config.log' for more details." >&2;}
5465 { (exit 1); exit 1; }; }
5466fi
5467
5468ac_ext=c
5469ac_cpp='$CPP $CPPFLAGS'
5470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5472ac_compiler_gnu=$ac_cv_c_compiler_gnu
5473
5474
5475echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5476echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5477if test "${ac_cv_header_stdc+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479else
5480 cat >conftest.$ac_ext <<_ACEOF
5481/* confdefs.h. */
5482_ACEOF
5483cat confdefs.h >>conftest.$ac_ext
5484cat >>conftest.$ac_ext <<_ACEOF
5485/* end confdefs.h. */
5486#include <stdlib.h>
5487#include <stdarg.h>
5488#include <string.h>
5489#include <float.h>
5490
5491int
5492main ()
5493{
5494
5495 ;
5496 return 0;
5497}
5498_ACEOF
5499rm -f conftest.$ac_objext
5500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 (eval $ac_try) 2>&5
5511 ac_status=$?
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; } &&
5514 { ac_try='test -s conftest.$ac_objext'
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 (eval $ac_try) 2>&5
5517 ac_status=$?
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
5520 ac_cv_header_stdc=yes
5521else
5522 echo "$as_me: failed program was:" >&5
5523sed 's/^/| /' conftest.$ac_ext >&5
5524
5525ac_cv_header_stdc=no
5526fi
5527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5528
5529if test $ac_cv_header_stdc = yes; then
5530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5531 cat >conftest.$ac_ext <<_ACEOF
5532/* confdefs.h. */
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
5536/* end confdefs.h. */
5537#include <string.h>
5538
5539_ACEOF
5540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5541 $EGREP "memchr" >/dev/null 2>&1; then
5542 :
5543else
5544 ac_cv_header_stdc=no
5545fi
5546rm -f conftest*
5547
5548fi
5549
5550if test $ac_cv_header_stdc = yes; then
5551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5552 cat >conftest.$ac_ext <<_ACEOF
5553/* confdefs.h. */
5554_ACEOF
5555cat confdefs.h >>conftest.$ac_ext
5556cat >>conftest.$ac_ext <<_ACEOF
5557/* end confdefs.h. */
5558#include <stdlib.h>
5559
5560_ACEOF
5561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5562 $EGREP "free" >/dev/null 2>&1; then
5563 :
5564else
5565 ac_cv_header_stdc=no
5566fi
5567rm -f conftest*
5568
5569fi
5570
5571if test $ac_cv_header_stdc = yes; then
5572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5573 if test "$cross_compiling" = yes; then
5574 :
5575else
5576 cat >conftest.$ac_ext <<_ACEOF
5577/* confdefs.h. */
5578_ACEOF
5579cat confdefs.h >>conftest.$ac_ext
5580cat >>conftest.$ac_ext <<_ACEOF
5581/* end confdefs.h. */
5582#include <ctype.h>
5583#if ((' ' & 0x0FF) == 0x020)
5584# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5585# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5586#else
5587# define ISLOWER(c) \
5588 (('a' <= (c) && (c) <= 'i') \
5589 || ('j' <= (c) && (c) <= 'r') \
5590 || ('s' <= (c) && (c) <= 'z'))
5591# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5592#endif
5593
5594#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5595int
5596main ()
5597{
5598 int i;
5599 for (i = 0; i < 256; i++)
5600 if (XOR (islower (i), ISLOWER (i))
5601 || toupper (i) != TOUPPER (i))
5602 exit(2);
5603 exit (0);
5604}
5605_ACEOF
5606rm -f conftest$ac_exeext
5607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5608 (eval $ac_link) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 (eval $ac_try) 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 :
5618else
5619 echo "$as_me: program exited with status $ac_status" >&5
5620echo "$as_me: failed program was:" >&5
5621sed 's/^/| /' conftest.$ac_ext >&5
5622
5623( exit $ac_status )
5624ac_cv_header_stdc=no
5625fi
5626rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5627fi
5628fi
5629fi
5630echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5631echo "${ECHO_T}$ac_cv_header_stdc" >&6
5632if test $ac_cv_header_stdc = yes; then
5633
5634cat >>confdefs.h <<\_ACEOF
5635#define STDC_HEADERS 1
5636_ACEOF
5637
5638fi
5639
5640# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5651 inttypes.h stdint.h unistd.h
5652do
5653as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5654echo "$as_me:$LINENO: checking for $ac_header" >&5
5655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5656if eval "test \"\${$as_ac_Header+set}\" = set"; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658else
5659 cat >conftest.$ac_ext <<_ACEOF
5660/* confdefs.h. */
5661_ACEOF
5662cat confdefs.h >>conftest.$ac_ext
5663cat >>conftest.$ac_ext <<_ACEOF
5664/* end confdefs.h. */
5665$ac_includes_default
5666
5667#include <$ac_header>
5668_ACEOF
5669rm -f conftest.$ac_objext
5670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671 (eval $ac_compile) 2>conftest.er1
5672 ac_status=$?
5673 grep -v '^ *+' conftest.er1 >conftest.err
5674 rm -f conftest.er1
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; } &&
5684 { ac_try='test -s conftest.$ac_objext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 (eval $ac_try) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 eval "$as_ac_Header=yes"
5691else
5692 echo "$as_me: failed program was:" >&5
5693sed 's/^/| /' conftest.$ac_ext >&5
5694
5695eval "$as_ac_Header=no"
5696fi
5697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5698fi
5699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5701if test `eval echo '${'$as_ac_Header'}'` = yes; then
5702 cat >>confdefs.h <<_ACEOF
5703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5704_ACEOF
5705
5706fi
5707
5708done
5709
5710
5711
5712for ac_header in dlfcn.h
5713do
5714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5715echo "$as_me:$LINENO: checking for $ac_header" >&5
5716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5717if eval "test \"\${$as_ac_Header+set}\" = set"; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719else
5720 cat >conftest.$ac_ext <<_ACEOF
5721/* confdefs.h. */
5722_ACEOF
5723cat confdefs.h >>conftest.$ac_ext
5724cat >>conftest.$ac_ext <<_ACEOF
5725/* end confdefs.h. */
5726$ac_includes_default
5727
5728#include <$ac_header>
5729_ACEOF
5730rm -f conftest.$ac_objext
5731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>conftest.er1
5733 ac_status=$?
5734 grep -v '^ *+' conftest.er1 >conftest.err
5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 eval "$as_ac_Header=yes"
5752else
5753 echo "$as_me: failed program was:" >&5
5754sed 's/^/| /' conftest.$ac_ext >&5
5755
5756eval "$as_ac_Header=no"
5757fi
5758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5759fi
5760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5762if test `eval echo '${'$as_ac_Header'}'` = yes; then
5763 cat >>confdefs.h <<_ACEOF
5764#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5765_ACEOF
5766
5767fi
5768
5769done
5770
5771
5772
5773# This can be used to rebuild libtool when needed
5774LIBTOOL_DEPS="$ltmain"
5775
5776# Always use our own libtool.
5777LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803test -z "$LN_S" && LN_S="ln -s"
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818if test -n "${ZSH_VERSION+set}" ; then
5819 setopt NO_GLOB_SUBST
5820fi
5821
5822echo "$as_me:$LINENO: checking for objdir" >&5
5823echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5824if test "${lt_cv_objdir+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
5827 rm -f .libs 2>/dev/null
5828mkdir .libs 2>/dev/null
5829if test -d .libs; then
5830 lt_cv_objdir=.libs
5831else
5832 # MS-DOS does not allow filenames that begin with a dot.
5833 lt_cv_objdir=_libs
5834fi
5835rmdir .libs 2>/dev/null
5836fi
5837echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5838echo "${ECHO_T}$lt_cv_objdir" >&6
5839objdir=$lt_cv_objdir
5840
5841
5842
5843
5844
5845cat >>confdefs.h <<_ACEOF
5846#define LT_OBJDIR "$lt_cv_objdir/"
5847_ACEOF
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865case $host_os in
5866aix3*)
5867 # AIX sometimes has problems with the GCC collect2 program. For some
5868 # reason, if we set the COLLECT_NAMES environment variable, the problems
5869 # vanish in a puff of smoke.
5870 if test "X${COLLECT_NAMES+set}" != Xset; then
5871 COLLECT_NAMES=
5872 export COLLECT_NAMES
5873 fi
5874 ;;
5875esac
5876
5877# Sed substitution that helps us do robust quoting. It backslashifies
5878# metacharacters that are still active within double-quoted strings.
5879Xsed='sed -e 1s/^X//'
5880sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5881
5882# Same as above, but do not quote variable references.
5883double_quote_subst='s/\(["`\\]\)/\\\1/g'
5884
5885# Sed substitution to delay expansion of an escaped shell variable in a
5886# double_quote_subst'ed string.
5887delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5888
5889# Sed substitution to delay expansion of an escaped single quote.
5890delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5891
5892# Sed substitution to avoid accidental globbing in evaled expressions
5893no_glob_subst='s/\*/\\\*/g'
5894
5895# Global variables:
5896ofile=libtool
5897can_build_shared=yes
5898
5899# All known linkers require a `.a' archive for static linking (except MSVC,
5900# which needs '.lib').
5901libext=a
5902
5903with_gnu_ld="$lt_cv_prog_gnu_ld"
5904
5905old_CC="$CC"
5906old_CFLAGS="$CFLAGS"
5907
5908# Set sane defaults for various variables
5909test -z "$CC" && CC=cc
5910test -z "$LTCC" && LTCC=$CC
5911test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5912test -z "$LD" && LD=ld
5913test -z "$ac_objext" && ac_objext=o
5914
5915for cc_temp in $compiler""; do
5916 case $cc_temp in
5917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5919 \-*) ;;
5920 *) break;;
5921 esac
5922done
5923cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5924
5925
5926# Only perform the check for file, if the check method requires it
5927test -z "$MAGIC_CMD" && MAGIC_CMD=file
5928case $deplibs_check_method in
5929file_magic*)
5930 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5931 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5932echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5933if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935else
5936 case $MAGIC_CMD in
5937[\\/*] | ?:[\\/]*)
5938 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5939 ;;
5940*)
5941 lt_save_MAGIC_CMD="$MAGIC_CMD"
5942 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5943 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5944 for ac_dir in $ac_dummy; do
5945 IFS="$lt_save_ifs"
5946 test -z "$ac_dir" && ac_dir=.
5947 if test -f $ac_dir/${ac_tool_prefix}file; then
5948 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5949 if test -n "$file_magic_test_file"; then
5950 case $deplibs_check_method in
5951 "file_magic "*)
5952 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5954 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5955 $EGREP "$file_magic_regex" > /dev/null; then
5956 :
5957 else
5958 cat <<_LT_EOF 1>&2
5959
5960*** Warning: the command libtool uses to detect shared libraries,
5961*** $file_magic_cmd, produces output that libtool cannot recognize.
5962*** The result is that libtool may fail to recognize shared libraries
5963*** as such. This will affect the creation of libtool libraries that
5964*** depend on shared libraries, but programs linked with such libtool
5965*** libraries will work regardless of this problem. Nevertheless, you
5966*** may want to report the problem to your system manager and/or to
5967*** bug-libtool@gnu.org
5968
5969_LT_EOF
5970 fi ;;
5971 esac
5972 fi
5973 break
5974 fi
5975 done
5976 IFS="$lt_save_ifs"
5977 MAGIC_CMD="$lt_save_MAGIC_CMD"
5978 ;;
5979esac
5980fi
5981
5982MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5983if test -n "$MAGIC_CMD"; then
5984 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5985echo "${ECHO_T}$MAGIC_CMD" >&6
5986else
5987 echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6
5989fi
5990
5991
5992
5993
5994
5995if test -z "$lt_cv_path_MAGIC_CMD"; then
5996 if test -n "$ac_tool_prefix"; then
5997 echo "$as_me:$LINENO: checking for file" >&5
5998echo $ECHO_N "checking for file... $ECHO_C" >&6
5999if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002 case $MAGIC_CMD in
6003[\\/*] | ?:[\\/]*)
6004 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6005 ;;
6006*)
6007 lt_save_MAGIC_CMD="$MAGIC_CMD"
6008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6010 for ac_dir in $ac_dummy; do
6011 IFS="$lt_save_ifs"
6012 test -z "$ac_dir" && ac_dir=.
6013 if test -f $ac_dir/file; then
6014 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6015 if test -n "$file_magic_test_file"; then
6016 case $deplibs_check_method in
6017 "file_magic "*)
6018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6021 $EGREP "$file_magic_regex" > /dev/null; then
6022 :
6023 else
6024 cat <<_LT_EOF 1>&2
6025
6026*** Warning: the command libtool uses to detect shared libraries,
6027*** $file_magic_cmd, produces output that libtool cannot recognize.
6028*** The result is that libtool may fail to recognize shared libraries
6029*** as such. This will affect the creation of libtool libraries that
6030*** depend on shared libraries, but programs linked with such libtool
6031*** libraries will work regardless of this problem. Nevertheless, you
6032*** may want to report the problem to your system manager and/or to
6033*** bug-libtool@gnu.org
6034
6035_LT_EOF
6036 fi ;;
6037 esac
6038 fi
6039 break
6040 fi
6041 done
6042 IFS="$lt_save_ifs"
6043 MAGIC_CMD="$lt_save_MAGIC_CMD"
6044 ;;
6045esac
6046fi
6047
6048MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6049if test -n "$MAGIC_CMD"; then
6050 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6051echo "${ECHO_T}$MAGIC_CMD" >&6
6052else
6053 echo "$as_me:$LINENO: result: no" >&5
6054echo "${ECHO_T}no" >&6
6055fi
6056
6057
6058 else
6059 MAGIC_CMD=:
6060 fi
6061fi
6062
6063 fi
6064 ;;
6065esac
6066
6067# Use C for the default configuration in the libtool script
6068
6069lt_save_CC="$CC"
6070ac_ext=c
6071ac_cpp='$CPP $CPPFLAGS'
6072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075
6076
6077# Source file extension for C test sources.
6078ac_ext=c
6079
6080# Object file extension for compiled C test sources.
6081objext=o
6082objext=$objext
6083
6084# Code to be used in simple compile tests
6085lt_simple_compile_test_code="int some_variable = 0;\n"
6086
6087# Code to be used in simple link tests
6088lt_simple_link_test_code='int main(){return(0);}\n'
6089
6090
6091
6092
6093
6094
6095
6096# If no C compiler was specified, use CC.
6097LTCC=${LTCC-"$CC"}
6098
6099# If no C compiler flags were specified, use CFLAGS.
6100LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6101
6102# Allow CC to be a program name with arguments.
6103compiler=$CC
6104
6105# Save the default compiler, since it gets overwritten when the other
6106# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6107compiler_DEFAULT=$CC
6108
6109# save warnings/boilerplate of simple test code
6110ac_outfile=conftest.$ac_objext
6111printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6112eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6113_lt_compiler_boilerplate=`cat conftest.err`
6114$RM conftest*
6115
6116ac_outfile=conftest.$ac_objext
6117printf "$lt_simple_link_test_code" >conftest.$ac_ext
6118eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6119_lt_linker_boilerplate=`cat conftest.err`
6120$RM conftest*
6121
6122
6123## CAVEAT EMPTOR:
6124## There is no encapsulation within the following macros, do not change
6125## the running order or otherwise move them around unless you know exactly
6126## what you are doing...
6127if test -n "$compiler"; then
6128
6129lt_prog_compiler_no_builtin_flag=
6130
6131if test "$GCC" = yes; then
6132 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6133
6134 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6135echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6136if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138else
6139 lt_cv_prog_compiler_rtti_exceptions=no
6140 ac_outfile=conftest.$ac_objext
6141 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6142 lt_compiler_flag="-fno-rtti -fno-exceptions"
6143 # Insert the option either (1) after the last *FLAGS variable, or
6144 # (2) before a word containing "conftest.", or (3) at the end.
6145 # Note that $ac_compile itself does not contain backslashes and begins
6146 # with a dollar sign (not a hyphen), so the echo should work correctly.
6147 # The option is referenced via a variable to avoid confusing sed.
6148 lt_compile=`echo "$ac_compile" | $SED \
6149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6151 -e 's:$: $lt_compiler_flag:'`
6152 (eval echo "\"\$as_me:6152: $lt_compile\"" >&5)
6153 (eval "$lt_compile" 2>conftest.err)
6154 ac_status=$?
6155 cat conftest.err >&5
6156 echo "$as_me:6156: \$? = $ac_status" >&5
6157 if (exit $ac_status) && test -s "$ac_outfile"; then
6158 # The compiler can only warn and ignore the option if not recognized
6159 # So say no if there are warnings other than the usual output.
6160 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6162 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6163 lt_cv_prog_compiler_rtti_exceptions=yes
6164 fi
6165 fi
6166 $RM conftest*
6167
6168fi
6169echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6170echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6171
6172if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6173 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6174else
6175 :
6176fi
6177
6178fi
6179
6180
6181
6182
6183
6184
6185 lt_prog_compiler_wl=
6186lt_prog_compiler_pic=
6187lt_prog_compiler_static=
6188
6189echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6190echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6191
6192 if test "$GCC" = yes; then
6193 lt_prog_compiler_wl='-Wl,'
6194 lt_prog_compiler_static='-static'
6195
6196 case $host_os in
6197 aix*)
6198 # All AIX code is PIC.
6199 if test "$host_cpu" = ia64; then
6200 # AIX 5 now supports IA64 processor
6201 lt_prog_compiler_static='-Bstatic'
6202 fi
6203 ;;
6204
6205 amigaos*)
6206 if test "$host_cpu" = m68k; then
6207 # FIXME: we need at least 68020 code to build shared libraries, but
6208 # adding the `-m68020' flag to GCC prevents building anything better,
6209 # like `-m68040'.
6210 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6211 fi
6212 ;;
6213
6214 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6215 # PIC is the default for these OSes.
6216 ;;
6217
6218 mingw* | pw32* | os2*)
6219 # This hack is so that the source file can tell whether it is being
6220 # built for inclusion in a dll (and should export symbols for example).
6221 lt_prog_compiler_pic='-DDLL_EXPORT'
6222 ;;
6223
6224 darwin* | rhapsody*)
6225 # PIC is the default on this platform
6226 # Common symbols not allowed in MH_DYLIB files
6227 lt_prog_compiler_pic='-fno-common'
6228 ;;
6229
6230 hpux*)
6231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6232 # not for PA HP-UX.
6233 case $host_cpu in
6234 hppa*64*|ia64*)
6235 # +Z the default
6236 ;;
6237 *)
6238 lt_prog_compiler_pic='-fPIC'
6239 ;;
6240 esac
6241 ;;
6242
6243 interix3*)
6244 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6245 # Instead, we relocate shared libraries at runtime.
6246 ;;
6247
6248 msdosdjgpp*)
6249 # Just because we use GCC doesn't mean we suddenly get shared libraries
6250 # on systems that don't support them.
6251 lt_prog_compiler_can_build_shared=no
6252 enable_shared=no
6253 ;;
6254
6255 *nto* | *qnx*)
6256 # QNX uses GNU C++, but need to define -shared option too, otherwise
6257 # it will coredump.
6258 lt_prog_compiler_pic='-fPIC -shared'
6259 ;;
6260
6261 sysv4*MP*)
6262 if test -d /usr/nec; then
6263 lt_prog_compiler_pic=-Kconform_pic
6264 fi
6265 ;;
6266
6267 *)
6268 lt_prog_compiler_pic='-fPIC'
6269 ;;
6270 esac
6271 else
6272 # PORTME Check for flag to pass linker flags through the system compiler.
6273 case $host_os in
6274 aix*)
6275 lt_prog_compiler_wl='-Wl,'
6276 if test "$host_cpu" = ia64; then
6277 # AIX 5 now supports IA64 processor
6278 lt_prog_compiler_static='-Bstatic'
6279 else
6280 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6281 fi
6282 ;;
6283 darwin*)
6284 # PIC is the default on this platform
6285 # Common symbols not allowed in MH_DYLIB files
6286 case $cc_basename in
6287 xlc*)
6288 lt_prog_compiler_pic='-qnocommon'
6289 lt_prog_compiler_wl='-Wl,'
6290 ;;
6291 esac
6292 ;;
6293
6294 mingw* | pw32* | os2*)
6295 # This hack is so that the source file can tell whether it is being
6296 # built for inclusion in a dll (and should export symbols for example).
6297 lt_prog_compiler_pic='-DDLL_EXPORT'
6298 ;;
6299
6300 hpux9* | hpux10* | hpux11*)
6301 lt_prog_compiler_wl='-Wl,'
6302 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6303 # not for PA HP-UX.
6304 case $host_cpu in
6305 hppa*64*|ia64*)
6306 # +Z the default
6307 ;;
6308 *)
6309 lt_prog_compiler_pic='+Z'
6310 ;;
6311 esac
6312 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6313 lt_prog_compiler_static='${wl}-a ${wl}archive'
6314 ;;
6315
6316 irix5* | irix6* | nonstopux*)
6317 lt_prog_compiler_wl='-Wl,'
6318 # PIC (with -KPIC) is the default.
6319 lt_prog_compiler_static='-non_shared'
6320 ;;
6321
6322 linux*)
6323 case $cc_basename in
6324 icc* | ecc*)
6325 lt_prog_compiler_wl='-Wl,'
6326 lt_prog_compiler_pic='-KPIC'
6327 lt_prog_compiler_static='-static'
6328 ;;
6329 pgcc* | pgf77* | pgf90* | pgf95*)
6330 # Portland Group compilers (*not* the Pentium gcc compiler,
6331 # which looks to be a dead project)
6332 lt_prog_compiler_wl='-Wl,'
6333 lt_prog_compiler_pic='-fpic'
6334 lt_prog_compiler_static='-Bstatic'
6335 ;;
6336 ccc*)
6337 lt_prog_compiler_wl='-Wl,'
6338 # All Alpha code is PIC.
6339 lt_prog_compiler_static='-non_shared'
6340 ;;
6341 esac
6342 ;;
6343
6344 newsos6)
6345 lt_prog_compiler_pic='-KPIC'
6346 lt_prog_compiler_static='-Bstatic'
6347 ;;
6348
6349 *nto* | *qnx*)
6350 # QNX uses GNU C++, but need to define -shared option too, otherwise
6351 # it will coredump.
6352 lt_prog_compiler_pic='-fPIC -shared'
6353 ;;
6354
6355 osf3* | osf4* | osf5*)
6356 lt_prog_compiler_wl='-Wl,'
6357 # All OSF/1 code is PIC.
6358 lt_prog_compiler_static='-non_shared'
6359 ;;
6360
6361 rdos*)
6362 lt_prog_compiler_static='-non_shared'
6363 ;;
6364
6365 solaris*)
6366 lt_prog_compiler_pic='-KPIC'
6367 lt_prog_compiler_static='-Bstatic'
6368 case $cc_basename in
6369 f77* | f90* | f95*)
6370 lt_prog_compiler_wl='-Qoption ld ';;
6371 *)
6372 lt_prog_compiler_wl='-Wl,';;
6373 esac
6374 ;;
6375
6376 sunos4*)
6377 lt_prog_compiler_wl='-Qoption ld '
6378 lt_prog_compiler_pic='-PIC'
6379 lt_prog_compiler_static='-Bstatic'
6380 ;;
6381
6382 sysv4 | sysv4.2uw2* | sysv4.3*)
6383 lt_prog_compiler_wl='-Wl,'
6384 lt_prog_compiler_pic='-KPIC'
6385 lt_prog_compiler_static='-Bstatic'
6386 ;;
6387
6388 sysv4*MP*)
6389 if test -d /usr/nec ;then
6390 lt_prog_compiler_pic='-Kconform_pic'
6391 lt_prog_compiler_static='-Bstatic'
6392 fi
6393 ;;
6394
6395 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6396 lt_prog_compiler_wl='-Wl,'
6397 lt_prog_compiler_pic='-KPIC'
6398 lt_prog_compiler_static='-Bstatic'
6399 ;;
6400
6401 unicos*)
6402 lt_prog_compiler_wl='-Wl,'
6403 lt_prog_compiler_can_build_shared=no
6404 ;;
6405
6406 uts4*)
6407 lt_prog_compiler_pic='-pic'
6408 lt_prog_compiler_static='-Bstatic'
6409 ;;
6410
6411 *)
6412 lt_prog_compiler_can_build_shared=no
6413 ;;
6414 esac
6415 fi
6416
6417case $host_os in
6418 # For platforms which do not support PIC, -DPIC is meaningless:
6419 *djgpp*)
6420 lt_prog_compiler_pic=
6421 ;;
6422 *)
6423 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6424 ;;
6425esac
6426echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6427echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6428
6429
6430
6431
6432
6433
6434#
6435# Check to make sure the PIC flag actually works.
6436#
6437if test -n "$lt_prog_compiler_pic"; then
6438 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6439echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6440if test "${lt_prog_compiler_pic_works+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442else
6443 lt_prog_compiler_pic_works=no
6444 ac_outfile=conftest.$ac_objext
6445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6446 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6447 # Insert the option either (1) after the last *FLAGS variable, or
6448 # (2) before a word containing "conftest.", or (3) at the end.
6449 # Note that $ac_compile itself does not contain backslashes and begins
6450 # with a dollar sign (not a hyphen), so the echo should work correctly.
6451 # The option is referenced via a variable to avoid confusing sed.
6452 lt_compile=`echo "$ac_compile" | $SED \
6453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6455 -e 's:$: $lt_compiler_flag:'`
6456 (eval echo "\"\$as_me:6456: $lt_compile\"" >&5)
6457 (eval "$lt_compile" 2>conftest.err)
6458 ac_status=$?
6459 cat conftest.err >&5
6460 echo "$as_me:6460: \$? = $ac_status" >&5
6461 if (exit $ac_status) && test -s "$ac_outfile"; then
6462 # The compiler can only warn and ignore the option if not recognized
6463 # So say no if there are warnings other than the usual output.
6464 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6467 lt_prog_compiler_pic_works=yes
6468 fi
6469 fi
6470 $RM conftest*
6471
6472fi
6473echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6474echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6475
6476if test x"$lt_prog_compiler_pic_works" = xyes; then
6477 case $lt_prog_compiler_pic in
6478 "" | " "*) ;;
6479 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6480 esac
6481else
6482 lt_prog_compiler_pic=
6483 lt_prog_compiler_can_build_shared=no
6484fi
6485
6486fi
6487
6488
6489
6490
6491
6492
6493#
6494# Check to make sure the static flag actually works.
6495#
6496wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6497echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6498echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6499if test "${lt_prog_compiler_static_works+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501else
6502 lt_prog_compiler_static_works=no
6503 save_LDFLAGS="$LDFLAGS"
6504 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6505 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6506 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6507 # The linker can only warn and ignore the option if not recognized
6508 # So say no if there are warnings
6509 if test -s conftest.err; then
6510 # Append any errors to the config.log.
6511 cat conftest.err 1>&5
6512 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6514 if diff conftest.exp conftest.er2 >/dev/null; then
6515 lt_prog_compiler_static_works=yes
6516 fi
6517 else
6518 lt_prog_compiler_static_works=yes
6519 fi
6520 fi
6521 $RM conftest*
6522 LDFLAGS="$save_LDFLAGS"
6523
6524fi
6525echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6526echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6527
6528if test x"$lt_prog_compiler_static_works" = xyes; then
6529 :
6530else
6531 lt_prog_compiler_static=
6532fi
6533
6534
6535
6536
6537
6538
6539
6540 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6541echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6542if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545 lt_cv_prog_compiler_c_o=no
6546 $RM -r conftest 2>/dev/null
6547 mkdir conftest
6548 cd conftest
6549 mkdir out
6550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6551
6552 lt_compiler_flag="-o out/conftest2.$ac_objext"
6553 # Insert the option either (1) after the last *FLAGS variable, or
6554 # (2) before a word containing "conftest.", or (3) at the end.
6555 # Note that $ac_compile itself does not contain backslashes and begins
6556 # with a dollar sign (not a hyphen), so the echo should work correctly.
6557 lt_compile=`echo "$ac_compile" | $SED \
6558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6560 -e 's:$: $lt_compiler_flag:'`
6561 (eval echo "\"\$as_me:6561: $lt_compile\"" >&5)
6562 (eval "$lt_compile" 2>out/conftest.err)
6563 ac_status=$?
6564 cat out/conftest.err >&5
6565 echo "$as_me:6565: \$? = $ac_status" >&5
6566 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6567 then
6568 # The compiler can only warn and ignore the option if not recognized
6569 # So say no if there are warnings
6570 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6571 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6572 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6573 lt_cv_prog_compiler_c_o=yes
6574 fi
6575 fi
6576 chmod u+w . 2>&5
6577 $RM conftest*
6578 # SGI C++ compiler will create directory out/ii_files/ for
6579 # template instantiation
6580 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6581 $RM out/* && rmdir out
6582 cd ..
6583 $RM -r conftest
6584 $RM conftest*
6585
6586fi
6587echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6588echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6589
6590
6591
6592
6593
6594
6595 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6596echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6597if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599else
6600 lt_cv_prog_compiler_c_o=no
6601 $RM -r conftest 2>/dev/null
6602 mkdir conftest
6603 cd conftest
6604 mkdir out
6605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6606
6607 lt_compiler_flag="-o out/conftest2.$ac_objext"
6608 # Insert the option either (1) after the last *FLAGS variable, or
6609 # (2) before a word containing "conftest.", or (3) at the end.
6610 # Note that $ac_compile itself does not contain backslashes and begins
6611 # with a dollar sign (not a hyphen), so the echo should work correctly.
6612 lt_compile=`echo "$ac_compile" | $SED \
6613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6615 -e 's:$: $lt_compiler_flag:'`
6616 (eval echo "\"\$as_me:6616: $lt_compile\"" >&5)
6617 (eval "$lt_compile" 2>out/conftest.err)
6618 ac_status=$?
6619 cat out/conftest.err >&5
6620 echo "$as_me:6620: \$? = $ac_status" >&5
6621 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6622 then
6623 # The compiler can only warn and ignore the option if not recognized
6624 # So say no if there are warnings
6625 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6626 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6627 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6628 lt_cv_prog_compiler_c_o=yes
6629 fi
6630 fi
6631 chmod u+w . 2>&5
6632 $RM conftest*
6633 # SGI C++ compiler will create directory out/ii_files/ for
6634 # template instantiation
6635 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6636 $RM out/* && rmdir out
6637 cd ..
6638 $RM -r conftest
6639 $RM conftest*
6640
6641fi
6642echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6643echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6644
6645
6646
6647
6648hard_links="nottested"
6649if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6650 # do not overwrite the value of need_locks provided by the user
6651 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6652echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6653 hard_links=yes
6654 $RM conftest*
6655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6656 touch conftest.a
6657 ln conftest.a conftest.b 2>&5 || hard_links=no
6658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6659 echo "$as_me:$LINENO: result: $hard_links" >&5
6660echo "${ECHO_T}$hard_links" >&6
6661 if test "$hard_links" = no; then
6662 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6663echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6664 need_locks=warn
6665 fi
6666else
6667 need_locks=no
6668fi
6669
6670
6671
6672
6673
6674
6675 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6676echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6677
6678 runpath_var=
6679 allow_undefined_flag=
6680 always_export_symbols=no
6681 archive_cmds=
6682 archive_expsym_cmds=
6683 enable_shared_with_static_runtimes=no
6684 export_dynamic_flag_spec=
6685 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6686 hardcode_automatic=no
6687 hardcode_direct=no
6688 hardcode_libdir_flag_spec=
6689 hardcode_libdir_flag_spec_ld=
6690 hardcode_libdir_separator=
6691 hardcode_minus_L=no
6692 hardcode_shlibpath_var=unsupported
6693 inherit_rpath=no
6694 link_all_deplibs=unknown
6695 module_cmds=
6696 module_expsym_cmds=
6697 old_archive_from_new_cmds=
6698 old_archive_from_expsyms_cmds=
6699 thread_safe_flag_spec=
6700 whole_archive_flag_spec=
6701 # include_expsyms should be a list of space-separated symbols to be *always*
6702 # included in the symbol list
6703 include_expsyms=
6704 # exclude_expsyms can be an extended regexp of symbols to exclude
6705 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6706 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6707 # as well as any symbol that contains `d'.
6708 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6709 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6710 # platforms (ab)use it in PIC code, but their linkers get confused if
6711 # the symbol is explicitly referenced. Since portable code cannot
6712 # rely on this symbol name, it's probably fine to never include it in
6713 # preloaded symbol tables.
6714 extract_expsyms_cmds=
6715
6716 case $host_os in
6717 cygwin* | mingw* | pw32*)
6718 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6719 # When not using gcc, we currently assume that we are using
6720 # Microsoft Visual C++.
6721 if test "$GCC" != yes; then
6722 with_gnu_ld=no
6723 fi
6724 ;;
6725 interix*)
6726 # we just hope/assume this is gcc and not c89 (= MSVC++)
6727 with_gnu_ld=yes
6728 ;;
6729 openbsd*)
6730 with_gnu_ld=no
6731 ;;
6732 esac
6733
6734 ld_shlibs=yes
6735 if test "$with_gnu_ld" = yes; then
6736 # If archive_cmds runs LD, not CC, wlarc should be empty
6737 wlarc='${wl}'
6738
6739 # Set some defaults for GNU ld with shared library support. These
6740 # are reset later if shared libraries are not supported. Putting them
6741 # here allows them to be overridden if necessary.
6742 runpath_var=LD_RUN_PATH
6743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6744 export_dynamic_flag_spec='${wl}--export-dynamic'
6745 # ancient GNU ld didn't support --whole-archive et. al.
6746 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6747 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6748 else
6749 whole_archive_flag_spec=
6750 fi
6751 supports_anon_versioning=no
6752 case `$LD -v 2>&1` in
6753 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6754 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6755 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6756 *\ 2.11.*) ;; # other 2.11 versions
6757 *) supports_anon_versioning=yes ;;
6758 esac
6759
6760 # See if GNU ld supports shared libraries.
6761 case $host_os in
6762 aix3* | aix4* | aix5*)
6763 # On AIX/PPC, the GNU linker is very broken
6764 if test "$host_cpu" != ia64; then
6765 ld_shlibs=no
6766 cat <<_LT_EOF 1>&2
6767
6768*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6769*** to be unable to reliably create shared libraries on AIX.
6770*** Therefore, libtool is disabling shared libraries support. If you
6771*** really care for shared libraries, you may want to modify your PATH
6772*** so that a non-GNU linker is found, and then restart.
6773
6774_LT_EOF
6775 fi
6776 ;;
6777
6778 amigaos*)
6779 if test "$host_cpu" = m68k; then
6780 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)'
6781 hardcode_libdir_flag_spec='-L$libdir'
6782 hardcode_minus_L=yes
6783 fi
6784
6785 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6786 # that the semantics of dynamic libraries on AmigaOS, at least up
6787 # to version 4, is to share data among multiple programs linked
6788 # with the same dynamic library. Since this doesn't match the
6789 # behavior of shared libraries on other platforms, we can't use
6790 # them.
6791 ld_shlibs=no
6792 ;;
6793
6794 beos*)
6795 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6796 allow_undefined_flag=unsupported
6797 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6798 # support --undefined. This deserves some investigation. FIXME
6799 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6800 else
6801 ld_shlibs=no
6802 fi
6803 ;;
6804
6805 cygwin* | mingw* | pw32*)
6806 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6807 # as there is no search path for DLLs.
6808 hardcode_libdir_flag_spec='-L$libdir'
6809 allow_undefined_flag=unsupported
6810 always_export_symbols=no
6811 enable_shared_with_static_runtimes=yes
6812 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6813
6814 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6816 # If the export-symbols file already is a .def file (1st line
6817 # is EXPORTS), use it as is; otherwise, prepend...
6818 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6819 cp $export_symbols $output_objdir/$soname.def;
6820 else
6821 echo EXPORTS > $output_objdir/$soname.def;
6822 cat $export_symbols >> $output_objdir/$soname.def;
6823 fi~
6824 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6825 else
6826 ld_shlibs=no
6827 fi
6828 ;;
6829
6830 interix3*)
6831 hardcode_direct=no
6832 hardcode_shlibpath_var=no
6833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6834 export_dynamic_flag_spec='${wl}-E'
6835 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6836 # Instead, shared libraries are loaded at an image base (0x10000000 by
6837 # default) and relocated if they conflict, which is a slow very memory
6838 # consuming and fragmenting process. To avoid this, we pick a random,
6839 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6840 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6841 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6842 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'
6843 ;;
6844
6845 linux*|tpf*)
6846 tmp_diet=no
6847 if test "$host_os" = linux-dietlibc; then
6848 case $cc_basename in
6849 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6850 esac
6851 fi
6852 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6853 && test "$tmp_diet" = no
6854 then
6855 tmp_addflag=
6856 case $cc_basename,$host_cpu in
6857 pgcc*) # Portland Group C compiler
6858 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'
6859 tmp_addflag=' $pic_flag'
6860 ;;
6861 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6862 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'
6863 tmp_addflag=' $pic_flag -Mnomain' ;;
6864 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6865 tmp_addflag=' -i_dynamic' ;;
6866 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6867 tmp_addflag=' -i_dynamic -nofor_main' ;;
6868 ifc* | ifort*) # Intel Fortran compiler
6869 tmp_addflag=' -nofor_main' ;;
6870 esac
6871
6872 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6873
6874 if test "x$supports_anon_versioning" = xyes; then
6875 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'
6876 fi
6877 else
6878 ld_shlibs=no
6879 fi
6880 ;;
6881
6882 netbsd*)
6883 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6884 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6885 wlarc=
6886 else
6887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6888 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6889 fi
6890 ;;
6891
6892 solaris*)
6893 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6894 ld_shlibs=no
6895 cat <<_LT_EOF 1>&2
6896
6897*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6898*** create shared libraries on Solaris systems. Therefore, libtool
6899*** is disabling shared libraries support. We urge you to upgrade GNU
6900*** binutils to release 2.9.1 or newer. Another option is to modify
6901*** your PATH or compiler configuration so that the native linker is
6902*** used, and then restart.
6903
6904_LT_EOF
6905 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6907 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6908 else
6909 ld_shlibs=no
6910 fi
6911 ;;
6912
6913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6914 case `$LD -v 2>&1` in
6915 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6916 ld_shlibs=no
6917 cat <<_LT_EOF 1>&2
6918
6919*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6920*** reliably create shared libraries on SCO systems. Therefore, libtool
6921*** is disabling shared libraries support. We urge you to upgrade GNU
6922*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6923*** your PATH or compiler configuration so that the native linker is
6924*** used, and then restart.
6925
6926_LT_EOF
6927 ;;
6928 *)
6929 # For security reasons, it is highly recommended that you always
6930 # use absolute paths for naming shared libraries, and exclude the
6931 # DT_RUNPATH tag from executables and libraries. But doing so
6932 # requires that you compile everything twice, which is a pain.
6933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6936 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6937 else
6938 ld_shlibs=no
6939 fi
6940 ;;
6941 esac
6942 ;;
6943
6944 sunos4*)
6945 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6946 wlarc=
6947 hardcode_direct=yes
6948 hardcode_shlibpath_var=no
6949 ;;
6950
6951 *)
6952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6955 else
6956 ld_shlibs=no
6957 fi
6958 ;;
6959 esac
6960
6961 if test "$ld_shlibs" = no; then
6962 runpath_var=
6963 hardcode_libdir_flag_spec=
6964 export_dynamic_flag_spec=
6965 whole_archive_flag_spec=
6966 fi
6967 else
6968 # PORTME fill in a description of your system's linker (not GNU ld)
6969 case $host_os in
6970 aix3*)
6971 allow_undefined_flag=unsupported
6972 always_export_symbols=yes
6973 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'
6974 # Note: this linker hardcodes the directories in LIBPATH if there
6975 # are no directories specified by -L.
6976 hardcode_minus_L=yes
6977 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6978 # Neither direct hardcoding nor static linking is supported with a
6979 # broken collect2.
6980 hardcode_direct=unsupported
6981 fi
6982 ;;
6983
6984 aix4* | aix5*)
6985 if test "$host_cpu" = ia64; then
6986 # On IA64, the linker does run time linking by default, so we don't
6987 # have to do anything special.
6988 aix_use_runtimelinking=no
6989 exp_sym_flag='-Bexport'
6990 no_entry_flag=""
6991 else
6992 # If we're using GNU nm, then we don't want the "-C" option.
6993 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6994 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6995 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'
6996 else
6997 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'
6998 fi
6999 aix_use_runtimelinking=no
7000
7001 # Test if we are trying to use run time linking or normal
7002 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7003 # need to do runtime linking.
7004 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7005 for ld_flag in $LDFLAGS; do
7006 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7007 aix_use_runtimelinking=yes
7008 break
7009 fi
7010 done
7011 ;;
7012 esac
7013
7014 exp_sym_flag='-bexport'
7015 no_entry_flag='-bnoentry'
7016 fi
7017
7018 # When large executables or shared objects are built, AIX ld can
7019 # have problems creating the table of contents. If linking a library
7020 # or program results in "error TOC overflow" add -mminimal-toc to
7021 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7023
7024 archive_cmds=''
7025 hardcode_direct=yes
7026 hardcode_libdir_separator=':'
7027 link_all_deplibs=yes
7028 file_list_spec='${wl}-f,'
7029
7030 if test "$GCC" = yes; then
7031 case $host_os in aix4.[012]|aix4.[012].*)
7032 # We only want to do this on AIX 4.2 and lower, the check
7033 # below for broken collect2 doesn't work under 4.3+
7034 collect2name=`${CC} -print-prog-name=collect2`
7035 if test -f "$collect2name" &&
7036 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7037 then
7038 # We have reworked collect2
7039 hardcode_direct=yes
7040 else
7041 # We have old collect2
7042 hardcode_direct=unsupported
7043 # It fails to find uninstalled libraries when the uninstalled
7044 # path is not listed in the libpath. Setting hardcode_minus_L
7045 # to unsupported forces relinking
7046 hardcode_minus_L=yes
7047 hardcode_libdir_flag_spec='-L$libdir'
7048 hardcode_libdir_separator=
7049 fi
7050 ;;
7051 esac
7052 shared_flag='-shared'
7053 if test "$aix_use_runtimelinking" = yes; then
7054 shared_flag="$shared_flag "'${wl}-G'
7055 fi
7056 else
7057 # not using gcc
7058 if test "$host_cpu" = ia64; then
7059 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7060 # chokes on -Wl,-G. The following line is correct:
7061 shared_flag='-G'
7062 else
7063 if test "$aix_use_runtimelinking" = yes; then
7064 shared_flag='${wl}-G'
7065 else
7066 shared_flag='${wl}-bM:SRE'
7067 fi
7068 fi
7069 fi
7070
7071 # It seems that -bexpall does not export symbols beginning with
7072 # underscore (_), so it is better to generate a list of symbols to export.
7073 always_export_symbols=yes
7074 if test "$aix_use_runtimelinking" = yes; then
7075 # Warning - without using the other runtime loading flags (-brtl),
7076 # -berok will link without error, but may produce a broken library.
7077 allow_undefined_flag='-berok'
7078 # Determine the default libpath from the value encoded in an
7079 # empty executable.
7080 cat >conftest.$ac_ext <<_ACEOF
7081/* confdefs.h. */
7082_ACEOF
7083cat confdefs.h >>conftest.$ac_ext
7084cat >>conftest.$ac_ext <<_ACEOF
7085/* end confdefs.h. */
7086
7087int
7088main ()
7089{
7090
7091 ;
7092 return 0;
7093}
7094_ACEOF
7095rm -f conftest.$ac_objext conftest$ac_exeext
7096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7097 (eval $ac_link) 2>conftest.er1
7098 ac_status=$?
7099 grep -v '^ *+' conftest.er1 >conftest.err
7100 rm -f conftest.er1
7101 cat conftest.err >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } &&
7104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 (eval $ac_try) 2>&5
7107 ac_status=$?
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; } &&
7110 { ac_try='test -s conftest$ac_exeext'
7111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112 (eval $ac_try) 2>&5
7113 ac_status=$?
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); }; }; then
7116
7117lt_aix_libpath_sed='
7118 /Import File Strings/,/^$/ {
7119 /^0/ {
7120 s/^0 *\(.*\)$/\1/
7121 p
7122 }
7123 }'
7124aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7125# Check for a 64-bit object if we didn't find anything.
7126if test -z "$aix_libpath"; then
7127 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7128fi
7129else
7130 echo "$as_me: failed program was:" >&5
7131sed 's/^/| /' conftest.$ac_ext >&5
7132
7133fi
7134rm -f conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7137
7138 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7139 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"
7140 else
7141 if test "$host_cpu" = ia64; then
7142 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7143 allow_undefined_flag="-z nodefs"
7144 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"
7145 else
7146 # Determine the default libpath from the value encoded in an
7147 # empty executable.
7148 cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h. */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h. */
7154
7155int
7156main ()
7157{
7158
7159 ;
7160 return 0;
7161}
7162_ACEOF
7163rm -f conftest.$ac_objext conftest$ac_exeext
7164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7165 (eval $ac_link) 2>conftest.er1
7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } &&
7172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; } &&
7178 { ac_try='test -s conftest$ac_exeext'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 (eval $ac_try) 2>&5
7181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7184
7185lt_aix_libpath_sed='
7186 /Import File Strings/,/^$/ {
7187 /^0/ {
7188 s/^0 *\(.*\)$/\1/
7189 p
7190 }
7191 }'
7192aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7193# Check for a 64-bit object if we didn't find anything.
7194if test -z "$aix_libpath"; then
7195 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7196fi
7197else
7198 echo "$as_me: failed program was:" >&5
7199sed 's/^/| /' conftest.$ac_ext >&5
7200
7201fi
7202rm -f conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7205
7206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7207 # Warning - without using the other run time loading flags,
7208 # -berok will link without error, but may produce a broken library.
7209 no_undefined_flag=' ${wl}-bernotok'
7210 allow_undefined_flag=' ${wl}-berok'
7211 # Exported symbols can be pulled into shared objects from archives
7212 whole_archive_flag_spec='$convenience'
7213 archive_cmds_need_lc=yes
7214 # This is similar to how AIX traditionally builds its shared libraries.
7215 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'
7216 fi
7217 fi
7218 ;;
7219
7220 amigaos*)
7221 if test "$host_cpu" = m68k; then
7222 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)'
7223 hardcode_libdir_flag_spec='-L$libdir'
7224 hardcode_minus_L=yes
7225 fi
7226 # see comment about different semantics on the GNU ld section
7227 ld_shlibs=no
7228 ;;
7229
7230 bsdi[45]*)
7231 export_dynamic_flag_spec=-rdynamic
7232 ;;
7233
7234 cygwin* | mingw* | pw32*)
7235 # When not using gcc, we currently assume that we are using
7236 # Microsoft Visual C++.
7237 # hardcode_libdir_flag_spec is actually meaningless, as there is
7238 # no search path for DLLs.
7239 hardcode_libdir_flag_spec=' '
7240 allow_undefined_flag=unsupported
7241 # Tell ltmain to make .lib files, not .a files.
7242 libext=lib
7243 # Tell ltmain to make .dll files, not .so files.
7244 shrext_cmds=".dll"
7245 # FIXME: Setting linknames here is a bad hack.
7246 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7247 # The linker will automatically build a .lib file if we build a DLL.
7248 old_archive_from_new_cmds='true'
7249 # FIXME: Should let the user specify the lib program.
7250 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7251 fix_srcfile_path='`cygpath -w "$srcfile"`'
7252 enable_shared_with_static_runtimes=yes
7253 ;;
7254
7255 darwin* | rhapsody*)
7256 case $host_os in
7257 rhapsody* | darwin1.[012])
7258 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7259 ;;
7260 *) # Darwin 1.3 on
7261 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7262 10.[012])
7263 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7264 ;;
7265 10.*)
7266 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7267 ;;
7268 esac
7269 ;;
7270 esac
7271 archive_cmds_need_lc=no
7272 hardcode_direct=no
7273 hardcode_automatic=yes
7274 hardcode_shlibpath_var=unsupported
7275 whole_archive_flag_spec=''
7276 link_all_deplibs=yes
7277 if test "$GCC" = yes ; then
7278 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7280else
7281 lt_cv_apple_cc_single_mod=no
7282 if test -z "${LT_MULTI_MODULE}"; then
7283 # By default we will add the -single_module flag. You can override
7284 # by either setting the environment variable LT_MULTI_MODULE
7285 # non-empty at configure time, or by adding -multi-module to the
7286 # link flags.
7287 echo "int foo(void){return 1;}" > conftest.c
7288 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7289 -dynamiclib ${wl}-single_module conftest.c
7290 if test -f libconftest.dylib; then
7291 lt_cv_apple_cc_single_mod=yes
7292 rm libconftest.dylib
7293 fi
7294 rm conftest.$ac_ext
7295 fi
7296fi
7297
7298 output_verbose_link_cmd=echo
7299 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7300 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7301 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}'
7302 else
7303 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7304 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}'
7305 fi
7306 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7307 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}'
7308 else
7309 case $cc_basename in
7310 xlc*)
7311 output_verbose_link_cmd=echo
7312 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7313 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7314 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7315 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}'
7316 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}'
7317 ;;
7318 *)
7319 ld_shlibs=no
7320 ;;
7321 esac
7322 fi
7323 ;;
7324
7325 dgux*)
7326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7327 hardcode_libdir_flag_spec='-L$libdir'
7328 hardcode_shlibpath_var=no
7329 ;;
7330
7331 freebsd1*)
7332 ld_shlibs=no
7333 ;;
7334
7335 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7336 # support. Future versions do this automatically, but an explicit c++rt0.o
7337 # does not break anything, and helps significantly (at the cost of a little
7338 # extra space).
7339 freebsd2.2*)
7340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7341 hardcode_libdir_flag_spec='-R$libdir'
7342 hardcode_direct=yes
7343 hardcode_shlibpath_var=no
7344 ;;
7345
7346 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7347 freebsd2*)
7348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7349 hardcode_direct=yes
7350 hardcode_minus_L=yes
7351 hardcode_shlibpath_var=no
7352 ;;
7353
7354 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7355 freebsd* | kfreebsd*-gnu | dragonfly*)
7356 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7357 hardcode_libdir_flag_spec='-R$libdir'
7358 hardcode_direct=yes
7359 hardcode_shlibpath_var=no
7360 ;;
7361
7362 hpux9*)
7363 if test "$GCC" = yes; then
7364 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'
7365 else
7366 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'
7367 fi
7368 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7369 hardcode_libdir_separator=:
7370 hardcode_direct=yes
7371
7372 # hardcode_minus_L: Not really in the search PATH,
7373 # but as the default location of the library.
7374 hardcode_minus_L=yes
7375 export_dynamic_flag_spec='${wl}-E'
7376 ;;
7377
7378 hpux10*)
7379 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7380 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7381 else
7382 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7383 fi
7384 if test "$with_gnu_ld" = no; then
7385 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7386 hardcode_libdir_flag_spec_ld='+b $libdir'
7387 hardcode_libdir_separator=:
7388 hardcode_direct=yes
7389 export_dynamic_flag_spec='${wl}-E'
7390 # hardcode_minus_L: Not really in the search PATH,
7391 # but as the default location of the library.
7392 hardcode_minus_L=yes
7393 fi
7394 ;;
7395
7396 hpux11*)
7397 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7398 case $host_cpu in
7399 hppa*64*)
7400 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7401 ;;
7402 ia64*)
7403 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7404 ;;
7405 *)
7406 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7407 ;;
7408 esac
7409 else
7410 case $host_cpu in
7411 hppa*64*)
7412 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7413 ;;
7414 ia64*)
7415 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7416 ;;
7417 *)
7418 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7419 ;;
7420 esac
7421 fi
7422 if test "$with_gnu_ld" = no; then
7423 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7424 hardcode_libdir_separator=:
7425
7426 case $host_cpu in
7427 hppa*64*|ia64*)
7428 hardcode_direct=no
7429 hardcode_shlibpath_var=no
7430 ;;
7431 *)
7432 hardcode_direct=yes
7433 export_dynamic_flag_spec='${wl}-E'
7434
7435 # hardcode_minus_L: Not really in the search PATH,
7436 # but as the default location of the library.
7437 hardcode_minus_L=yes
7438 ;;
7439 esac
7440 fi
7441 ;;
7442
7443 irix5* | irix6* | nonstopux*)
7444 if test "$GCC" = yes; then
7445 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'
7446 # Try to use the -exported_symbol ld option, if it does not
7447 # work, assume that -exports_file does not work either and
7448 # implicitly export all symbols.
7449 save_LDFLAGS="$LDFLAGS"
7450 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7451 cat >conftest.$ac_ext <<_ACEOF
7452int foo(void) {}
7453_ACEOF
7454rm -f conftest.$ac_objext conftest$ac_exeext
7455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7456 (eval $ac_link) 2>conftest.er1
7457 ac_status=$?
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 (eval $ac_try) 2>&5
7466 ac_status=$?
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; } &&
7469 { ac_try='test -s conftest$ac_exeext'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 (eval $ac_try) 2>&5
7472 ac_status=$?
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; }; then
7475 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'
7476
7477else
7478 echo "$as_me: failed program was:" >&5
7479sed 's/^/| /' conftest.$ac_ext >&5
7480
7481fi
7482rm -f conftest.err conftest.$ac_objext \
7483 conftest$ac_exeext conftest.$ac_ext
7484 LDFLAGS="$save_LDFLAGS"
7485 else
7486 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'
7487 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'
7488 fi
7489 archive_cmds_need_lc='no'
7490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7491 hardcode_libdir_separator=:
7492 inherit_rpath=yes
7493 link_all_deplibs=yes
7494 ;;
7495
7496 netbsd*)
7497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7499 else
7500 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7501 fi
7502 hardcode_libdir_flag_spec='-R$libdir'
7503 hardcode_direct=yes
7504 hardcode_shlibpath_var=no
7505 ;;
7506
7507 newsos6)
7508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7509 hardcode_direct=yes
7510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7511 hardcode_libdir_separator=:
7512 hardcode_shlibpath_var=no
7513 ;;
7514
7515 *nto* | *qnx*)
7516 ;;
7517
7518 openbsd*)
7519 hardcode_direct=yes
7520 hardcode_shlibpath_var=no
7521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7523 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7524 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7525 export_dynamic_flag_spec='${wl}-E'
7526 else
7527 case $host_os in
7528 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7530 hardcode_libdir_flag_spec='-R$libdir'
7531 ;;
7532 *)
7533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7535 ;;
7536 esac
7537 fi
7538 ;;
7539
7540 os2*)
7541 hardcode_libdir_flag_spec='-L$libdir'
7542 hardcode_minus_L=yes
7543 allow_undefined_flag=unsupported
7544 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'
7545 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7546 ;;
7547
7548 osf3*)
7549 if test "$GCC" = yes; then
7550 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7551 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'
7552 else
7553 allow_undefined_flag=' -expect_unresolved \*'
7554 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'
7555 fi
7556 archive_cmds_need_lc='no'
7557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7558 hardcode_libdir_separator=:
7559 ;;
7560
7561 osf4* | osf5*) # as osf3* with the addition of -msym flag
7562 if test "$GCC" = yes; then
7563 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7564 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'
7565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7566 else
7567 allow_undefined_flag=' -expect_unresolved \*'
7568 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'
7569 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~
7570 $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'
7571
7572 # Both c and cxx compiler support -rpath directly
7573 hardcode_libdir_flag_spec='-rpath $libdir'
7574 fi
7575 archive_cmds_need_lc='no'
7576 hardcode_libdir_separator=:
7577 ;;
7578
7579 solaris*)
7580 no_undefined_flag=' -z defs'
7581 if test "$GCC" = yes; then
7582 wlarc='${wl}'
7583 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7584 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7585 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7586 else
7587 case `$CC -V 2>&1` in
7588 *"Compilers 5.0"*)
7589 wlarc=''
7590 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7591 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7592 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7593 ;;
7594 *)
7595 wlarc='${wl}'
7596 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7597 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7598 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7599 ;;
7600 esac
7601 fi
7602 hardcode_libdir_flag_spec='-R$libdir'
7603 hardcode_shlibpath_var=no
7604 case $host_os in
7605 solaris2.[0-5] | solaris2.[0-5].*) ;;
7606 *)
7607 # The compiler driver will combine linker options so we
7608 # cannot just pass the convenience library names through
7609 # without $wl, iff we do not link with $LD.
7610 # Luckily, gcc supports the same syntax we need for Sun Studio.
7611 # Supported since Solaris 2.6 (maybe 2.5.1?)
7612 case $wlarc in
7613 '')
7614 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7615 *)
7616 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' ;;
7617 esac ;;
7618 esac
7619 link_all_deplibs=yes
7620 ;;
7621
7622 sunos4*)
7623 if test "x$host_vendor" = xsequent; then
7624 # Use $CC to link under sequent, because it throws in some extra .o
7625 # files that make .init and .fini sections work.
7626 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7627 else
7628 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7629 fi
7630 hardcode_libdir_flag_spec='-L$libdir'
7631 hardcode_direct=yes
7632 hardcode_minus_L=yes
7633 hardcode_shlibpath_var=no
7634 ;;
7635
7636 sysv4)
7637 case $host_vendor in
7638 sni)
7639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7640 hardcode_direct=yes # is this really true???
7641 ;;
7642 siemens)
7643 ## LD is ld it makes a PLAMLIB
7644 ## CC just makes a GrossModule.
7645 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7646 reload_cmds='$CC -r -o $output$reload_objs'
7647 hardcode_direct=no
7648 ;;
7649 motorola)
7650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7651 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7652 ;;
7653 esac
7654 runpath_var='LD_RUN_PATH'
7655 hardcode_shlibpath_var=no
7656 ;;
7657
7658 sysv4.3*)
7659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7660 hardcode_shlibpath_var=no
7661 export_dynamic_flag_spec='-Bexport'
7662 ;;
7663
7664 sysv4*MP*)
7665 if test -d /usr/nec; then
7666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7667 hardcode_shlibpath_var=no
7668 runpath_var=LD_RUN_PATH
7669 hardcode_runpath_var=yes
7670 ld_shlibs=yes
7671 fi
7672 ;;
7673
7674 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7675 no_undefined_flag='${wl}-z,text'
7676 archive_cmds_need_lc=no
7677 hardcode_shlibpath_var=no
7678 runpath_var='LD_RUN_PATH'
7679
7680 if test "$GCC" = yes; then
7681 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7682 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7683 else
7684 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7685 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7686 fi
7687 ;;
7688
7689 sysv5* | sco3.2v5* | sco5v6*)
7690 # Note: We can NOT use -z defs as we might desire, because we do not
7691 # link with -lc, and that would cause any symbols used from libc to
7692 # always be unresolved, which means just about no library would
7693 # ever link correctly. If we're not using GNU ld we use -z text
7694 # though, which does catch some bad symbols but isn't as heavy-handed
7695 # as -z defs.
7696 no_undefined_flag='${wl}-z,text'
7697 allow_undefined_flag='${wl}-z,nodefs'
7698 archive_cmds_need_lc=no
7699 hardcode_shlibpath_var=no
7700 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7701 hardcode_libdir_separator=':'
7702 link_all_deplibs=yes
7703 export_dynamic_flag_spec='${wl}-Bexport'
7704 runpath_var='LD_RUN_PATH'
7705
7706 if test "$GCC" = yes; then
7707 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7708 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7709 else
7710 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7711 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7712 fi
7713 ;;
7714
7715 uts4*)
7716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7717 hardcode_libdir_flag_spec='-L$libdir'
7718 hardcode_shlibpath_var=no
7719 ;;
7720
7721 *)
7722 ld_shlibs=no
7723 ;;
7724 esac
7725
7726 if test x$host_vendor = xsni; then
7727 case $host in
7728 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7729 export_dynamic_flag_spec='${wl}-Blargedynsym'
7730 ;;
7731 esac
7732 fi
7733 fi
7734
7735echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7736echo "${ECHO_T}$ld_shlibs" >&6
7737test "$ld_shlibs" = no && can_build_shared=no
7738
7739with_gnu_ld=$with_gnu_ld
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755#
7756# Do we need to explicitly link libc?
7757#
7758case "x$archive_cmds_need_lc" in
7759x|xyes)
7760 # Assume -lc should be added
7761 archive_cmds_need_lc=yes
7762
7763 if test "$enable_shared" = yes && test "$GCC" = yes; then
7764 case $archive_cmds in
7765 *'~'*)
7766 # FIXME: we may have to deal with multi-command sequences.
7767 ;;
7768 '$CC '*)
7769 # Test whether the compiler implicitly links with -lc since on some
7770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7771 # to ld, don't add -lc before -lgcc.
7772 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7773echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7774 $RM conftest*
7775 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7776
7777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7778 (eval $ac_compile) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } 2>conftest.err; then
7782 soname=conftest
7783 lib=conftest
7784 libobjs=conftest.$ac_objext
7785 deplibs=
7786 wl=$lt_prog_compiler_wl
7787 pic_flag=$lt_prog_compiler_pic
7788 compiler_flags=-v
7789 linker_flags=-v
7790 verstring=
7791 output_objdir=.
7792 libname=conftest
7793 lt_save_allow_undefined_flag=$allow_undefined_flag
7794 allow_undefined_flag=
7795 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7796 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }
7800 then
7801 archive_cmds_need_lc=no
7802 else
7803 archive_cmds_need_lc=yes
7804 fi
7805 allow_undefined_flag=$lt_save_allow_undefined_flag
7806 else
7807 cat conftest.err 1>&5
7808 fi
7809 $RM conftest*
7810 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7811echo "${ECHO_T}$archive_cmds_need_lc" >&6
7812 ;;
7813 esac
7814 fi
7815 ;;
7816esac
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7965echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7966withGCC=$GCC
7967library_names_spec=
7968libname_spec='lib$name'
7969soname_spec=
7970shrext_cmds=".so"
7971postinstall_cmds=
7972postuninstall_cmds=
7973finish_cmds=
7974finish_eval=
7975shlibpath_var=
7976shlibpath_overrides_runpath=unknown
7977version_type=none
7978dynamic_linker="$host_os ld.so"
7979sys_lib_dlsearch_path_spec="/lib /usr/lib"
7980if test "$withGCC" = yes; then
7981 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7982 if $ECHO "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then
7983 # if the path contains ";" then we assume it to be the separator
7984 # otherwise default to the standard path separator (i.e. ":") - it is
7985 # assumed that no part of a normal pathname contains ";" but that should
7986 # okay in the real world where ";" in dirpaths is itself problematic.
7987 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7988 else
7989 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7990 fi
7991else
7992 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7993fi
7994need_lib_prefix=unknown
7995hardcode_into_libs=no
7996
7997# when you set need_version to no, make sure it does not cause -set_version
7998# flags to be left without arguments
7999need_version=unknown
8000
8001case $host_os in
8002aix3*)
8003 version_type=linux
8004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8005 shlibpath_var=LIBPATH
8006
8007 # AIX 3 has no versioning support, so we append a major version to the name.
8008 soname_spec='${libname}${release}${shared_ext}$major'
8009 ;;
8010
8011aix4* | aix5*)
8012 version_type=linux
8013 need_lib_prefix=no
8014 need_version=no
8015 hardcode_into_libs=yes
8016 if test "$host_cpu" = ia64; then
8017 # AIX 5 supports IA64
8018 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8019 shlibpath_var=LD_LIBRARY_PATH
8020 else
8021 # With GCC up to 2.95.x, collect2 would create an import file
8022 # for dependence libraries. The import file would start with
8023 # the line `#! .'. This would cause the generated library to
8024 # depend on `.', always an invalid library. This was fixed in
8025 # development snapshots of GCC prior to 3.0.
8026 case $host_os in
8027 aix4 | aix4.[01] | aix4.[01].*)
8028 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8029 echo ' yes '
8030 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8031 :
8032 else
8033 can_build_shared=no
8034 fi
8035 ;;
8036 esac
8037 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8038 # soname into executable. Probably we can add versioning support to
8039 # collect2, so additional links can be useful in future.
8040 if test "$aix_use_runtimelinking" = yes; then
8041 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8042 # instead of lib<name>.a to let people know that these are not
8043 # typical AIX shared libraries.
8044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8045 else
8046 # We preserve .a as extension for shared libraries through AIX4.2
8047 # and later when we are not doing run time linking.
8048 library_names_spec='${libname}${release}.a $libname.a'
8049 soname_spec='${libname}${release}${shared_ext}$major'
8050 fi
8051 shlibpath_var=LIBPATH
8052 fi
8053 ;;
8054
8055amigaos*)
8056 if test "$host_cpu" = m68k; then
8057 library_names_spec='$libname.ixlibrary $libname.a'
8058 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8059 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'
8060 else
8061 dynamic_linker=no
8062 fi
8063 ;;
8064
8065beos*)
8066 library_names_spec='${libname}${shared_ext}'
8067 dynamic_linker="$host_os ld.so"
8068 shlibpath_var=LIBRARY_PATH
8069 ;;
8070
8071bsdi[45]*)
8072 version_type=linux
8073 need_version=no
8074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8075 soname_spec='${libname}${release}${shared_ext}$major'
8076 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8077 shlibpath_var=LD_LIBRARY_PATH
8078 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8079 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8080 # the default ld.so.conf also contains /usr/contrib/lib and
8081 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8082 # libtool to hard-code these into programs
8083 ;;
8084
8085cygwin* | mingw* | pw32*)
8086 version_type=windows
8087 shrext_cmds=".dll"
8088 need_version=no
8089 need_lib_prefix=no
8090
8091 case $withGCC,$host_os in
8092 yes,cygwin* | yes,mingw* | yes,pw32*)
8093 library_names_spec='$libname.dll.a'
8094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8095 postinstall_cmds='base_file=`basename \${file}`~
8096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8097 dldir=$destdir/`dirname \$dlpath`~
8098 test -d \$dldir || mkdir -p \$dldir~
8099 $install_prog $dir/$dlname \$dldir/$dlname~
8100 chmod a+x \$dldir/$dlname~
8101 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8102 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8103 fi'
8104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8105 dlpath=$dir/\$dldll~
8106 $RM \$dlpath'
8107 shlibpath_overrides_runpath=yes
8108
8109 case $host_os in
8110 cygwin*)
8111 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8113 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8114 ;;
8115 mingw*)
8116 # MinGW DLLs use traditional 'lib' prefix
8117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8118 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8119 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8120 # It is most probably a Windows format PATH printed by
8121 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8122 # path with ; separators, and with drive letters. We can handle the
8123 # drive letters (cygwin fileutils understands them), so leave them,
8124 # especially as we might pass files found there to a mingw objdump,
8125 # which wouldn't understand a cygwinified path. Ahh.
8126 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8127 else
8128 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8129 fi
8130 ;;
8131 pw32*)
8132 # pw32 DLLs use 'pw' prefix rather than 'lib'
8133 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8134 ;;
8135 esac
8136 ;;
8137
8138 *)
8139 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8140 ;;
8141 esac
8142 dynamic_linker='Win32 ld.exe'
8143 # FIXME: first we should search . and the directory the executable is in
8144 shlibpath_var=PATH
8145 ;;
8146
8147darwin* | rhapsody*)
8148 dynamic_linker="$host_os dyld"
8149 version_type=darwin
8150 need_lib_prefix=no
8151 need_version=no
8152 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8153 soname_spec='${libname}${release}${major}$shared_ext'
8154 shlibpath_overrides_runpath=yes
8155 shlibpath_var=DYLD_LIBRARY_PATH
8156 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8157 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8158 if test "$withGCC" = yes; then
8159 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"`
8160 else
8161 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8162 fi
8163 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8164 ;;
8165
8166dgux*)
8167 version_type=linux
8168 need_lib_prefix=no
8169 need_version=no
8170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8171 soname_spec='${libname}${release}${shared_ext}$major'
8172 shlibpath_var=LD_LIBRARY_PATH
8173 ;;
8174
8175freebsd1*)
8176 dynamic_linker=no
8177 ;;
8178
8179kfreebsd*-gnu)
8180 version_type=linux
8181 need_lib_prefix=no
8182 need_version=no
8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8184 soname_spec='${libname}${release}${shared_ext}$major'
8185 shlibpath_var=LD_LIBRARY_PATH
8186 shlibpath_overrides_runpath=no
8187 hardcode_into_libs=yes
8188 dynamic_linker='GNU ld.so'
8189 ;;
8190
8191freebsd* | dragonfly*)
8192 # DragonFly does not have aout. When/if they implement a new
8193 # versioning mechanism, adjust this.
8194 if test -x /usr/bin/objformat; then
8195 objformat=`/usr/bin/objformat`
8196 else
8197 case $host_os in
8198 freebsd[123]*) objformat=aout ;;
8199 *) objformat=elf ;;
8200 esac
8201 fi
8202 version_type=freebsd-$objformat
8203 case $version_type in
8204 freebsd-elf*)
8205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8206 need_version=no
8207 need_lib_prefix=no
8208 ;;
8209 freebsd-*)
8210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8211 need_version=yes
8212 ;;
8213 esac
8214 shlibpath_var=LD_LIBRARY_PATH
8215 case $host_os in
8216 freebsd2*)
8217 shlibpath_overrides_runpath=yes
8218 ;;
8219 freebsd3.[01]* | freebsdelf3.[01]*)
8220 shlibpath_overrides_runpath=yes
8221 hardcode_into_libs=yes
8222 ;;
8223 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8224 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8225 shlibpath_overrides_runpath=no
8226 hardcode_into_libs=yes
8227 ;;
8228 freebsd*) # from 4.6 on
8229 shlibpath_overrides_runpath=yes
8230 hardcode_into_libs=yes
8231 ;;
8232 esac
8233 ;;
8234
8235gnu*)
8236 version_type=linux
8237 need_lib_prefix=no
8238 need_version=no
8239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8240 soname_spec='${libname}${release}${shared_ext}$major'
8241 shlibpath_var=LD_LIBRARY_PATH
8242 hardcode_into_libs=yes
8243 ;;
8244
8245hpux9* | hpux10* | hpux11*)
8246 # Give a soname corresponding to the major version so that dld.sl refuses to
8247 # link against other versions.
8248 version_type=sunos
8249 need_lib_prefix=no
8250 need_version=no
8251 case $host_cpu in
8252 ia64*)
8253 shrext_cmds='.so'
8254 hardcode_into_libs=yes
8255 dynamic_linker="$host_os dld.so"
8256 shlibpath_var=LD_LIBRARY_PATH
8257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8259 soname_spec='${libname}${release}${shared_ext}$major'
8260 if test "X$HPUX_IA64_MODE" = X32; then
8261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8262 else
8263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8264 fi
8265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8266 ;;
8267 hppa*64*)
8268 shrext_cmds='.sl'
8269 hardcode_into_libs=yes
8270 dynamic_linker="$host_os dld.sl"
8271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8274 soname_spec='${libname}${release}${shared_ext}$major'
8275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8277 ;;
8278 *)
8279 shrext_cmds='.sl'
8280 dynamic_linker="$host_os dld.sl"
8281 shlibpath_var=SHLIB_PATH
8282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8284 soname_spec='${libname}${release}${shared_ext}$major'
8285 ;;
8286 esac
8287 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8288 postinstall_cmds='chmod 555 $lib'
8289 ;;
8290
8291interix3*)
8292 version_type=linux
8293 need_lib_prefix=no
8294 need_version=no
8295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8296 soname_spec='${libname}${release}${shared_ext}$major'
8297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8298 shlibpath_var=LD_LIBRARY_PATH
8299 shlibpath_overrides_runpath=no
8300 hardcode_into_libs=yes
8301 ;;
8302
8303irix5* | irix6* | nonstopux*)
8304 case $host_os in
8305 nonstopux*) version_type=nonstopux ;;
8306 *)
8307 if test "$lt_cv_prog_gnu_ld" = yes; then
8308 version_type=linux
8309 else
8310 version_type=irix
8311 fi ;;
8312 esac
8313 need_lib_prefix=no
8314 need_version=no
8315 soname_spec='${libname}${release}${shared_ext}$major'
8316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8317 case $host_os in
8318 irix5* | nonstopux*)
8319 libsuff= shlibsuff=
8320 ;;
8321 *)
8322 case $LD in # libtool.m4 will add one of these switches to LD
8323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8324 libsuff= shlibsuff= libmagic=32-bit;;
8325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8326 libsuff=32 shlibsuff=N32 libmagic=N32;;
8327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8329 *) libsuff= shlibsuff= libmagic=never-match;;
8330 esac
8331 ;;
8332 esac
8333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8334 shlibpath_overrides_runpath=no
8335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8337 hardcode_into_libs=yes
8338 ;;
8339
8340# No shared lib support for Linux oldld, aout, or coff.
8341linux*oldld* | linux*aout* | linux*coff*)
8342 dynamic_linker=no
8343 ;;
8344
8345# This must be Linux ELF.
8346linux*)
8347 version_type=linux
8348 need_lib_prefix=no
8349 need_version=no
8350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351 soname_spec='${libname}${release}${shared_ext}$major'
8352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8353 shlibpath_var=LD_LIBRARY_PATH
8354 shlibpath_overrides_runpath=no
8355 # This implies no fast_install, which is unacceptable.
8356 # Some rework will be needed to allow for fast_install
8357 # before this can be enabled.
8358 hardcode_into_libs=yes
8359
8360 # Append ld.so.conf contents to the search path
8361 if test -f /etc/ld.so.conf; then
8362 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' ' '`
8363 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8364 fi
8365
8366 # We used to test for /lib/ld.so.1 and disable shared libraries on
8367 # powerpc, because MkLinux only supported shared libraries with the
8368 # GNU dynamic linker. Since this was broken with cross compilers,
8369 # most powerpc-linux boxes support dynamic linking these days and
8370 # people can always --disable-shared, the test was removed, and we
8371 # assume the GNU/Linux dynamic linker is in use.
8372 dynamic_linker='GNU/Linux ld.so'
8373 ;;
8374
8375knetbsd*-gnu)
8376 version_type=linux
8377 need_lib_prefix=no
8378 need_version=no
8379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8380 soname_spec='${libname}${release}${shared_ext}$major'
8381 shlibpath_var=LD_LIBRARY_PATH
8382 shlibpath_overrides_runpath=no
8383 hardcode_into_libs=yes
8384 dynamic_linker='GNU ld.so'
8385 ;;
8386
8387netbsd*)
8388 version_type=sunos
8389 need_lib_prefix=no
8390 need_version=no
8391 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8394 dynamic_linker='NetBSD (a.out) ld.so'
8395 else
8396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8397 soname_spec='${libname}${release}${shared_ext}$major'
8398 dynamic_linker='NetBSD ld.elf_so'
8399 fi
8400 shlibpath_var=LD_LIBRARY_PATH
8401 shlibpath_overrides_runpath=yes
8402 hardcode_into_libs=yes
8403 ;;
8404
8405newsos6)
8406 version_type=linux
8407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8408 shlibpath_var=LD_LIBRARY_PATH
8409 shlibpath_overrides_runpath=yes
8410 ;;
8411
8412*nto* | *qnx*)
8413 version_type=qnx
8414 need_lib_prefix=no
8415 need_version=no
8416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8417 soname_spec='${libname}${release}${shared_ext}$major'
8418 shlibpath_var=LD_LIBRARY_PATH
8419 shlibpath_overrides_runpath=no
8420 hardcode_into_libs=yes
8421 dynamic_linker='ldqnx.so'
8422 ;;
8423
8424openbsd*)
8425 version_type=sunos
8426 sys_lib_dlsearch_path_spec="/usr/lib"
8427 need_lib_prefix=no
8428 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8429 case $host_os in
8430 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8431 *) need_version=no ;;
8432 esac
8433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8435 shlibpath_var=LD_LIBRARY_PATH
8436 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8437 case $host_os in
8438 openbsd2.[89] | openbsd2.[89].*)
8439 shlibpath_overrides_runpath=no
8440 ;;
8441 *)
8442 shlibpath_overrides_runpath=yes
8443 ;;
8444 esac
8445 else
8446 shlibpath_overrides_runpath=yes
8447 fi
8448 ;;
8449
8450os2*)
8451 libname_spec='$name'
8452 shrext_cmds=".dll"
8453 need_lib_prefix=no
8454 library_names_spec='$libname${shared_ext} $libname.a'
8455 dynamic_linker='OS/2 ld.exe'
8456 shlibpath_var=LIBPATH
8457 ;;
8458
8459osf3* | osf4* | osf5*)
8460 version_type=osf
8461 need_lib_prefix=no
8462 need_version=no
8463 soname_spec='${libname}${release}${shared_ext}$major'
8464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8465 shlibpath_var=LD_LIBRARY_PATH
8466 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8467 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8468 ;;
8469
8470rdos*)
8471 dynamic_linker=no
8472 ;;
8473
8474solaris*)
8475 version_type=linux
8476 need_lib_prefix=no
8477 need_version=no
8478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8479 soname_spec='${libname}${release}${shared_ext}$major'
8480 shlibpath_var=LD_LIBRARY_PATH
8481 shlibpath_overrides_runpath=yes
8482 hardcode_into_libs=yes
8483 # ldd complains unless libraries are executable
8484 postinstall_cmds='chmod +x $lib'
8485 ;;
8486
8487sunos4*)
8488 version_type=sunos
8489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8490 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8491 shlibpath_var=LD_LIBRARY_PATH
8492 shlibpath_overrides_runpath=yes
8493 if test "$with_gnu_ld" = yes; then
8494 need_lib_prefix=no
8495 fi
8496 need_version=yes
8497 ;;
8498
8499sysv4 | sysv4.3*)
8500 version_type=linux
8501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8502 soname_spec='${libname}${release}${shared_ext}$major'
8503 shlibpath_var=LD_LIBRARY_PATH
8504 case $host_vendor in
8505 sni)
8506 shlibpath_overrides_runpath=no
8507 need_lib_prefix=no
8508 runpath_var=LD_RUN_PATH
8509 ;;
8510 siemens)
8511 need_lib_prefix=no
8512 ;;
8513 motorola)
8514 need_lib_prefix=no
8515 need_version=no
8516 shlibpath_overrides_runpath=no
8517 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8518 ;;
8519 esac
8520 ;;
8521
8522sysv4*MP*)
8523 if test -d /usr/nec ;then
8524 version_type=linux
8525 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8526 soname_spec='$libname${shared_ext}.$major'
8527 shlibpath_var=LD_LIBRARY_PATH
8528 fi
8529 ;;
8530
8531sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8532 version_type=freebsd-elf
8533 need_lib_prefix=no
8534 need_version=no
8535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8536 soname_spec='${libname}${release}${shared_ext}$major'
8537 shlibpath_var=LD_LIBRARY_PATH
8538 shlibpath_overrides_runpath=yes
8539 hardcode_into_libs=yes
8540 if test "$with_gnu_ld" = yes; then
8541 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8542 else
8543 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8544 case $host_os in
8545 sco3.2v5*)
8546 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8547 ;;
8548 esac
8549 fi
8550 sys_lib_dlsearch_path_spec='/usr/lib'
8551 ;;
8552
8553tpf*)
8554 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8555 version_type=linux
8556 need_lib_prefix=no
8557 need_version=no
8558 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8559 shlibpath_var=LD_LIBRARY_PATH
8560 shlibpath_overrides_runpath=no
8561 hardcode_into_libs=yes
8562 ;;
8563
8564uts4*)
8565 version_type=linux
8566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8567 soname_spec='${libname}${release}${shared_ext}$major'
8568 shlibpath_var=LD_LIBRARY_PATH
8569 ;;
8570
8571*)
8572 dynamic_linker=no
8573 ;;
8574esac
8575echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8576echo "${ECHO_T}$dynamic_linker" >&6
8577test "$dynamic_linker" = no && can_build_shared=no
8578
8579variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8580if test "$GCC" = yes; then
8581 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8582fi
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8671echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8672hardcode_action=
8673if test -n "$hardcode_libdir_flag_spec" ||
8674 test -n "$runpath_var" ||
8675 test "X$hardcode_automatic" = "Xyes" ; then
8676
8677 # We can hardcode non-existent directories.
8678 if test "$hardcode_direct" != no &&
8679 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8680 # have to relink, otherwise we might link with an installed library
8681 # when we should be linking with a yet-to-be-installed one
8682 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8683 test "$hardcode_minus_L" != no; then
8684 # Linking always hardcodes the temporary library directory.
8685 hardcode_action=relink
8686 else
8687 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8688 hardcode_action=immediate
8689 fi
8690else
8691 # We cannot hardcode anything, or else we can only hardcode existing
8692 # directories.
8693 hardcode_action=unsupported
8694fi
8695echo "$as_me:$LINENO: result: $hardcode_action" >&5
8696echo "${ECHO_T}$hardcode_action" >&6
8697
8698if test "$hardcode_action" = relink ||
8699 test "$inherit_rpath" = yes; then
8700 # Fast installation is not supported
8701 enable_fast_install=no
8702elif test "$shlibpath_overrides_runpath" = yes ||
8703 test "$enable_shared" = no; then
8704 # Fast installation is not necessary
8705 enable_fast_install=needless
8706fi
8707
8708
8709
8710
8711
8712
8713 if test "x$enable_dlopen" != xyes; then
8714 enable_dlopen=unknown
8715 enable_dlopen_self=unknown
8716 enable_dlopen_self_static=unknown
8717else
8718 lt_cv_dlopen=no
8719 lt_cv_dlopen_libs=
8720
8721 case $host_os in
8722 beos*)
8723 lt_cv_dlopen="load_add_on"
8724 lt_cv_dlopen_libs=
8725 lt_cv_dlopen_self=yes
8726 ;;
8727
8728 mingw* | pw32*)
8729 lt_cv_dlopen="LoadLibrary"
8730 lt_cv_dlopen_libs=
8731 ;;
8732
8733 cygwin*)
8734 lt_cv_dlopen="dlopen"
8735 lt_cv_dlopen_libs=
8736 ;;
8737
8738 darwin*)
8739 # if libdl is installed we need to link against it
8740 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8741echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8742if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744else
8745 ac_check_lib_save_LIBS=$LIBS
8746LIBS="-ldl $LIBS"
8747cat >conftest.$ac_ext <<_ACEOF
8748/* confdefs.h. */
8749_ACEOF
8750cat confdefs.h >>conftest.$ac_ext
8751cat >>conftest.$ac_ext <<_ACEOF
8752/* end confdefs.h. */
8753
8754/* Override any gcc2 internal prototype to avoid an error. */
8755#ifdef __cplusplus
8756extern "C"
8757#endif
8758/* We use char because int might match the return type of a gcc2
8759 builtin and then its argument prototype would still apply. */
8760char dlopen ();
8761int
8762main ()
8763{
8764dlopen ();
8765 ;
8766 return 0;
8767}
8768_ACEOF
8769rm -f conftest.$ac_objext conftest$ac_exeext
8770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8771 (eval $ac_link) 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } &&
8778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 (eval $ac_try) 2>&5
8781 ac_status=$?
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; } &&
8784 { ac_try='test -s conftest$ac_exeext'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 (eval $ac_try) 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8790 ac_cv_lib_dl_dlopen=yes
8791else
8792 echo "$as_me: failed program was:" >&5
8793sed 's/^/| /' conftest.$ac_ext >&5
8794
8795ac_cv_lib_dl_dlopen=no
8796fi
8797rm -f conftest.err conftest.$ac_objext \
8798 conftest$ac_exeext conftest.$ac_ext
8799LIBS=$ac_check_lib_save_LIBS
8800fi
8801echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8802echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8803if test $ac_cv_lib_dl_dlopen = yes; then
8804 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8805else
8806
8807 lt_cv_dlopen="dyld"
8808 lt_cv_dlopen_libs=
8809 lt_cv_dlopen_self=yes
8810
8811fi
8812
8813 ;;
8814
8815 *)
8816 echo "$as_me:$LINENO: checking for shl_load" >&5
8817echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8818if test "${ac_cv_func_shl_load+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820else
8821 cat >conftest.$ac_ext <<_ACEOF
8822/* confdefs.h. */
8823_ACEOF
8824cat confdefs.h >>conftest.$ac_ext
8825cat >>conftest.$ac_ext <<_ACEOF
8826/* end confdefs.h. */
8827/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8829#define shl_load innocuous_shl_load
8830
8831/* System header to define __stub macros and hopefully few prototypes,
8832 which can conflict with char shl_load (); below.
8833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8834 <limits.h> exists even on freestanding compilers. */
8835
8836#ifdef __STDC__
8837# include <limits.h>
8838#else
8839# include <assert.h>
8840#endif
8841
8842#undef shl_load
8843
8844/* Override any gcc2 internal prototype to avoid an error. */
8845#ifdef __cplusplus
8846extern "C"
8847{
8848#endif
8849/* We use char because int might match the return type of a gcc2
8850 builtin and then its argument prototype would still apply. */
8851char shl_load ();
8852/* The GNU C library defines this for functions which it implements
8853 to always fail with ENOSYS. Some functions are actually named
8854 something starting with __ and the normal name is an alias. */
8855#if defined (__stub_shl_load) || defined (__stub___shl_load)
8856choke me
8857#else
8858char (*f) () = shl_load;
8859#endif
8860#ifdef __cplusplus
8861}
8862#endif
8863
8864int
8865main ()
8866{
8867return f != shl_load;
8868 ;
8869 return 0;
8870}
8871_ACEOF
8872rm -f conftest.$ac_objext conftest$ac_exeext
8873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8874 (eval $ac_link) 2>conftest.er1
8875 ac_status=$?
8876 grep -v '^ *+' conftest.er1 >conftest.err
8877 rm -f conftest.er1
8878 cat conftest.err >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } &&
8881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 (eval $ac_try) 2>&5
8884 ac_status=$?
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; } &&
8887 { ac_try='test -s conftest$ac_exeext'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 (eval $ac_try) 2>&5
8890 ac_status=$?
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; }; then
8893 ac_cv_func_shl_load=yes
8894else
8895 echo "$as_me: failed program was:" >&5
8896sed 's/^/| /' conftest.$ac_ext >&5
8897
8898ac_cv_func_shl_load=no
8899fi
8900rm -f conftest.err conftest.$ac_objext \
8901 conftest$ac_exeext conftest.$ac_ext
8902fi
8903echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8904echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8905if test $ac_cv_func_shl_load = yes; then
8906 lt_cv_dlopen="shl_load"
8907else
8908 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8909echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8910if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8912else
8913 ac_check_lib_save_LIBS=$LIBS
8914LIBS="-ldld $LIBS"
8915cat >conftest.$ac_ext <<_ACEOF
8916/* confdefs.h. */
8917_ACEOF
8918cat confdefs.h >>conftest.$ac_ext
8919cat >>conftest.$ac_ext <<_ACEOF
8920/* end confdefs.h. */
8921
8922/* Override any gcc2 internal prototype to avoid an error. */
8923#ifdef __cplusplus
8924extern "C"
8925#endif
8926/* We use char because int might match the return type of a gcc2
8927 builtin and then its argument prototype would still apply. */
8928char shl_load ();
8929int
8930main ()
8931{
8932shl_load ();
8933 ;
8934 return 0;
8935}
8936_ACEOF
8937rm -f conftest.$ac_objext conftest$ac_exeext
8938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939 (eval $ac_link) 2>conftest.er1
8940 ac_status=$?
8941 grep -v '^ *+' conftest.er1 >conftest.err
8942 rm -f conftest.er1
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest$ac_exeext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 ac_cv_lib_dld_shl_load=yes
8959else
8960 echo "$as_me: failed program was:" >&5
8961sed 's/^/| /' conftest.$ac_ext >&5
8962
8963ac_cv_lib_dld_shl_load=no
8964fi
8965rm -f conftest.err conftest.$ac_objext \
8966 conftest$ac_exeext conftest.$ac_ext
8967LIBS=$ac_check_lib_save_LIBS
8968fi
8969echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8970echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8971if test $ac_cv_lib_dld_shl_load = yes; then
8972 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8973else
8974 echo "$as_me:$LINENO: checking for dlopen" >&5
8975echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8976if test "${ac_cv_func_dlopen+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978else
8979 cat >conftest.$ac_ext <<_ACEOF
8980/* confdefs.h. */
8981_ACEOF
8982cat confdefs.h >>conftest.$ac_ext
8983cat >>conftest.$ac_ext <<_ACEOF
8984/* end confdefs.h. */
8985/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8987#define dlopen innocuous_dlopen
8988
8989/* System header to define __stub macros and hopefully few prototypes,
8990 which can conflict with char dlopen (); below.
8991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8992 <limits.h> exists even on freestanding compilers. */
8993
8994#ifdef __STDC__
8995# include <limits.h>
8996#else
8997# include <assert.h>
8998#endif
8999
9000#undef dlopen
9001
9002/* Override any gcc2 internal prototype to avoid an error. */
9003#ifdef __cplusplus
9004extern "C"
9005{
9006#endif
9007/* We use char because int might match the return type of a gcc2
9008 builtin and then its argument prototype would still apply. */
9009char dlopen ();
9010/* The GNU C library defines this for functions which it implements
9011 to always fail with ENOSYS. Some functions are actually named
9012 something starting with __ and the normal name is an alias. */
9013#if defined (__stub_dlopen) || defined (__stub___dlopen)
9014choke me
9015#else
9016char (*f) () = dlopen;
9017#endif
9018#ifdef __cplusplus
9019}
9020#endif
9021
9022int
9023main ()
9024{
9025return f != dlopen;
9026 ;
9027 return 0;
9028}
9029_ACEOF
9030rm -f conftest.$ac_objext conftest$ac_exeext
9031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032 (eval $ac_link) 2>conftest.er1
9033 ac_status=$?
9034 grep -v '^ *+' conftest.er1 >conftest.err
9035 rm -f conftest.er1
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } &&
9039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 (eval $ac_try) 2>&5
9042 ac_status=$?
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; } &&
9045 { ac_try='test -s conftest$ac_exeext'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 (eval $ac_try) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9051 ac_cv_func_dlopen=yes
9052else
9053 echo "$as_me: failed program was:" >&5
9054sed 's/^/| /' conftest.$ac_ext >&5
9055
9056ac_cv_func_dlopen=no
9057fi
9058rm -f conftest.err conftest.$ac_objext \
9059 conftest$ac_exeext conftest.$ac_ext
9060fi
9061echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9062echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9063if test $ac_cv_func_dlopen = yes; then
9064 lt_cv_dlopen="dlopen"
9065else
9066 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9067echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9068if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9070else
9071 ac_check_lib_save_LIBS=$LIBS
9072LIBS="-ldl $LIBS"
9073cat >conftest.$ac_ext <<_ACEOF
9074/* confdefs.h. */
9075_ACEOF
9076cat confdefs.h >>conftest.$ac_ext
9077cat >>conftest.$ac_ext <<_ACEOF
9078/* end confdefs.h. */
9079
9080/* Override any gcc2 internal prototype to avoid an error. */
9081#ifdef __cplusplus
9082extern "C"
9083#endif
9084/* We use char because int might match the return type of a gcc2
9085 builtin and then its argument prototype would still apply. */
9086char dlopen ();
9087int
9088main ()
9089{
9090dlopen ();
9091 ;
9092 return 0;
9093}
9094_ACEOF
9095rm -f conftest.$ac_objext conftest$ac_exeext
9096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9097 (eval $ac_link) 2>conftest.er1
9098 ac_status=$?
9099 grep -v '^ *+' conftest.er1 >conftest.err
9100 rm -f conftest.er1
9101 cat conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } &&
9104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 (eval $ac_try) 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; } &&
9110 { ac_try='test -s conftest$ac_exeext'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 (eval $ac_try) 2>&5
9113 ac_status=$?
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; }; then
9116 ac_cv_lib_dl_dlopen=yes
9117else
9118 echo "$as_me: failed program was:" >&5
9119sed 's/^/| /' conftest.$ac_ext >&5
9120
9121ac_cv_lib_dl_dlopen=no
9122fi
9123rm -f conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
9125LIBS=$ac_check_lib_save_LIBS
9126fi
9127echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9128echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9129if test $ac_cv_lib_dl_dlopen = yes; then
9130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9131else
9132 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9133echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9134if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9136else
9137 ac_check_lib_save_LIBS=$LIBS
9138LIBS="-lsvld $LIBS"
9139cat >conftest.$ac_ext <<_ACEOF
9140/* confdefs.h. */
9141_ACEOF
9142cat confdefs.h >>conftest.$ac_ext
9143cat >>conftest.$ac_ext <<_ACEOF
9144/* end confdefs.h. */
9145
9146/* Override any gcc2 internal prototype to avoid an error. */
9147#ifdef __cplusplus
9148extern "C"
9149#endif
9150/* We use char because int might match the return type of a gcc2
9151 builtin and then its argument prototype would still apply. */
9152char dlopen ();
9153int
9154main ()
9155{
9156dlopen ();
9157 ;
9158 return 0;
9159}
9160_ACEOF
9161rm -f conftest.$ac_objext conftest$ac_exeext
9162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9163 (eval $ac_link) 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; } &&
9176 { ac_try='test -s conftest$ac_exeext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 ac_cv_lib_svld_dlopen=yes
9183else
9184 echo "$as_me: failed program was:" >&5
9185sed 's/^/| /' conftest.$ac_ext >&5
9186
9187ac_cv_lib_svld_dlopen=no
9188fi
9189rm -f conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191LIBS=$ac_check_lib_save_LIBS
9192fi
9193echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9194echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9195if test $ac_cv_lib_svld_dlopen = yes; then
9196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9197else
9198 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9199echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9200if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202else
9203 ac_check_lib_save_LIBS=$LIBS
9204LIBS="-ldld $LIBS"
9205cat >conftest.$ac_ext <<_ACEOF
9206/* confdefs.h. */
9207_ACEOF
9208cat confdefs.h >>conftest.$ac_ext
9209cat >>conftest.$ac_ext <<_ACEOF
9210/* end confdefs.h. */
9211
9212/* Override any gcc2 internal prototype to avoid an error. */
9213#ifdef __cplusplus
9214extern "C"
9215#endif
9216/* We use char because int might match the return type of a gcc2
9217 builtin and then its argument prototype would still apply. */
9218char dld_link ();
9219int
9220main ()
9221{
9222dld_link ();
9223 ;
9224 return 0;
9225}
9226_ACEOF
9227rm -f conftest.$ac_objext conftest$ac_exeext
9228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9229 (eval $ac_link) 2>conftest.er1
9230 ac_status=$?
9231 grep -v '^ *+' conftest.er1 >conftest.err
9232 rm -f conftest.er1
9233 cat conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 (eval $ac_try) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; } &&
9242 { ac_try='test -s conftest$ac_exeext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 (eval $ac_try) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 ac_cv_lib_dld_dld_link=yes
9249else
9250 echo "$as_me: failed program was:" >&5
9251sed 's/^/| /' conftest.$ac_ext >&5
9252
9253ac_cv_lib_dld_dld_link=no
9254fi
9255rm -f conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257LIBS=$ac_check_lib_save_LIBS
9258fi
9259echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9260echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9261if test $ac_cv_lib_dld_dld_link = yes; then
9262 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9263fi
9264
9265
9266fi
9267
9268
9269fi
9270
9271
9272fi
9273
9274
9275fi
9276
9277
9278fi
9279
9280 ;;
9281 esac
9282
9283 if test "x$lt_cv_dlopen" != xno; then
9284 enable_dlopen=yes
9285 else
9286 enable_dlopen=no
9287 fi
9288
9289 case $lt_cv_dlopen in
9290 dlopen)
9291 save_CPPFLAGS="$CPPFLAGS"
9292 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9293
9294 save_LDFLAGS="$LDFLAGS"
9295 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9296
9297 save_LIBS="$LIBS"
9298 LIBS="$lt_cv_dlopen_libs $LIBS"
9299
9300 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9301echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9302if test "${lt_cv_dlopen_self+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304else
9305 if test "$cross_compiling" = yes; then :
9306 lt_cv_dlopen_self=cross
9307else
9308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9309 lt_status=$lt_dlunknown
9310 cat > conftest.$ac_ext <<_LT_EOF
9311#line 9311 "configure"
9312#include "confdefs.h"
9313
9314#if HAVE_DLFCN_H
9315#include <dlfcn.h>
9316#endif
9317
9318#include <stdio.h>
9319
9320#ifdef RTLD_GLOBAL
9321# define LT_DLGLOBAL RTLD_GLOBAL
9322#else
9323# ifdef DL_GLOBAL
9324# define LT_DLGLOBAL DL_GLOBAL
9325# else
9326# define LT_DLGLOBAL 0
9327# endif
9328#endif
9329
9330/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9331 find out it does not work in some platform. */
9332#ifndef LT_DLLAZY_OR_NOW
9333# ifdef RTLD_LAZY
9334# define LT_DLLAZY_OR_NOW RTLD_LAZY
9335# else
9336# ifdef DL_LAZY
9337# define LT_DLLAZY_OR_NOW DL_LAZY
9338# else
9339# ifdef RTLD_NOW
9340# define LT_DLLAZY_OR_NOW RTLD_NOW
9341# else
9342# ifdef DL_NOW
9343# define LT_DLLAZY_OR_NOW DL_NOW
9344# else
9345# define LT_DLLAZY_OR_NOW 0
9346# endif
9347# endif
9348# endif
9349# endif
9350#endif
9351
9352#ifdef __cplusplus
9353extern "C" void exit (int);
9354#endif
9355
9356void fnord() { int i=42;}
9357int main ()
9358{
9359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9360 int status = $lt_dlunknown;
9361
9362 if (self)
9363 {
9364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9365 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9366 /* dlclose (self); */
9367 }
9368 else
9369 puts (dlerror ());
9370
9371 exit (status);
9372}
9373_LT_EOF
9374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9375 (eval $ac_link) 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9379 (./conftest; exit; ) >&5 2>/dev/null
9380 lt_status=$?
9381 case x$lt_status in
9382 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9383 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9384 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9385 esac
9386 else :
9387 # compilation failed
9388 lt_cv_dlopen_self=no
9389 fi
9390fi
9391rm -fr conftest*
9392
9393
9394fi
9395echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9396echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9397
9398 if test "x$lt_cv_dlopen_self" = xyes; then
9399 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9400 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9401echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9402if test "${lt_cv_dlopen_self_static+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404else
9405 if test "$cross_compiling" = yes; then :
9406 lt_cv_dlopen_self_static=cross
9407else
9408 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9409 lt_status=$lt_dlunknown
9410 cat > conftest.$ac_ext <<_LT_EOF
9411#line 9411 "configure"
9412#include "confdefs.h"
9413
9414#if HAVE_DLFCN_H
9415#include <dlfcn.h>
9416#endif
9417
9418#include <stdio.h>
9419
9420#ifdef RTLD_GLOBAL
9421# define LT_DLGLOBAL RTLD_GLOBAL
9422#else
9423# ifdef DL_GLOBAL
9424# define LT_DLGLOBAL DL_GLOBAL
9425# else
9426# define LT_DLGLOBAL 0
9427# endif
9428#endif
9429
9430/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9431 find out it does not work in some platform. */
9432#ifndef LT_DLLAZY_OR_NOW
9433# ifdef RTLD_LAZY
9434# define LT_DLLAZY_OR_NOW RTLD_LAZY
9435# else
9436# ifdef DL_LAZY
9437# define LT_DLLAZY_OR_NOW DL_LAZY
9438# else
9439# ifdef RTLD_NOW
9440# define LT_DLLAZY_OR_NOW RTLD_NOW
9441# else
9442# ifdef DL_NOW
9443# define LT_DLLAZY_OR_NOW DL_NOW
9444# else
9445# define LT_DLLAZY_OR_NOW 0
9446# endif
9447# endif
9448# endif
9449# endif
9450#endif
9451
9452#ifdef __cplusplus
9453extern "C" void exit (int);
9454#endif
9455
9456void fnord() { int i=42;}
9457int main ()
9458{
9459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9460 int status = $lt_dlunknown;
9461
9462 if (self)
9463 {
9464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9465 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9466 /* dlclose (self); */
9467 }
9468 else
9469 puts (dlerror ());
9470
9471 exit (status);
9472}
9473_LT_EOF
9474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9475 (eval $ac_link) 2>&5
9476 ac_status=$?
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9479 (./conftest; exit; ) >&5 2>/dev/null
9480 lt_status=$?
9481 case x$lt_status in
9482 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9483 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9484 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9485 esac
9486 else :
9487 # compilation failed
9488 lt_cv_dlopen_self_static=no
9489 fi
9490fi
9491rm -fr conftest*
9492
9493
9494fi
9495echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9496echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9497 fi
9498
9499 CPPFLAGS="$save_CPPFLAGS"
9500 LDFLAGS="$save_LDFLAGS"
9501 LIBS="$save_LIBS"
9502 ;;
9503 esac
9504
9505 case $lt_cv_dlopen_self in
9506 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9507 *) enable_dlopen_self=unknown ;;
9508 esac
9509
9510 case $lt_cv_dlopen_self_static in
9511 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9512 *) enable_dlopen_self_static=unknown ;;
9513 esac
9514fi
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532striplib=
9533old_striplib=
9534echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9535echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9536if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9537 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9538 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9539 echo "$as_me:$LINENO: result: yes" >&5
9540echo "${ECHO_T}yes" >&6
9541else
9542# FIXME - insert some real tests, host_os isn't really good enough
9543 case $host_os in
9544 darwin*)
9545 if test -n "$STRIP" ; then
9546 striplib="$STRIP -x"
9547 old_striplib="$STRIP -S"
9548 echo "$as_me:$LINENO: result: yes" >&5
9549echo "${ECHO_T}yes" >&6
9550 else
9551 echo "$as_me:$LINENO: result: no" >&5
9552echo "${ECHO_T}no" >&6
9553 fi
9554 ;;
9555 *)
9556 echo "$as_me:$LINENO: result: no" >&5
9557echo "${ECHO_T}no" >&6
9558 ;;
9559 esac
9560fi
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573 # Report which library types will actually be built
9574 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9575echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9576 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9577echo "${ECHO_T}$can_build_shared" >&6
9578
9579 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9580echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9581 test "$can_build_shared" = "no" && enable_shared=no
9582
9583 # On AIX, shared libraries and static libraries use the same namespace, and
9584 # are all built from PIC.
9585 case $host_os in
9586 aix3*)
9587 test "$enable_shared" = yes && enable_static=no
9588 if test -n "$RANLIB"; then
9589 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9590 postinstall_cmds='$RANLIB $lib'
9591 fi
9592 ;;
9593
9594 aix4* | aix5*)
9595 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9596 test "$enable_shared" = yes && enable_static=no
9597 fi
9598 ;;
9599 esac
9600 echo "$as_me:$LINENO: result: $enable_shared" >&5
9601echo "${ECHO_T}$enable_shared" >&6
9602
9603 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9604echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9605 # Make sure either enable_shared or enable_static is yes.
9606 test "$enable_shared" = yes || enable_static=yes
9607 echo "$as_me:$LINENO: result: $enable_static" >&5
9608echo "${ECHO_T}$enable_static" >&6
9609
9610
9611
9612
9613fi
9614ac_ext=c
9615ac_cpp='$CPP $CPPFLAGS'
9616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9618ac_compiler_gnu=$ac_cv_c_compiler_gnu
9619
9620CC="$lt_save_CC"
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634 ac_config_commands="$ac_config_commands libtool"
9635
9636
9637
9638
9639# Only expand once:
9640
9641
9642enable_win32_dll=yes
9643
9644case $host in
9645*-*-cygwin* | *-*-mingw* | *-*-pw32*)
9646 if test -n "$ac_tool_prefix"; then
9647 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9648set dummy ${ac_tool_prefix}as; ac_word=$2
9649echo "$as_me:$LINENO: checking for $ac_word" >&5
9650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9651if test "${ac_cv_prog_AS+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9653else
9654 if test -n "$AS"; then
9655 ac_cv_prog_AS="$AS" # Let the user override the test.
9656else
9657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658for as_dir in $PATH
9659do
9660 IFS=$as_save_IFS
9661 test -z "$as_dir" && as_dir=.
9662 for ac_exec_ext in '' $ac_executable_extensions; do
9663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9664 ac_cv_prog_AS="${ac_tool_prefix}as"
9665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 break 2
9667 fi
9668done
9669done
9670
9671fi
9672fi
9673AS=$ac_cv_prog_AS
9674if test -n "$AS"; then
9675 echo "$as_me:$LINENO: result: $AS" >&5
9676echo "${ECHO_T}$AS" >&6
9677else
9678 echo "$as_me:$LINENO: result: no" >&5
9679echo "${ECHO_T}no" >&6
9680fi
9681
9682fi
9683if test -z "$ac_cv_prog_AS"; then
9684 ac_ct_AS=$AS
9685 # Extract the first word of "as", so it can be a program name with args.
9686set dummy as; ac_word=$2
9687echo "$as_me:$LINENO: checking for $ac_word" >&5
9688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9689if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691else
9692 if test -n "$ac_ct_AS"; then
9693 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9694else
9695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696for as_dir in $PATH
9697do
9698 IFS=$as_save_IFS
9699 test -z "$as_dir" && as_dir=.
9700 for ac_exec_ext in '' $ac_executable_extensions; do
9701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9702 ac_cv_prog_ac_ct_AS="as"
9703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9704 break 2
9705 fi
9706done
9707done
9708
9709 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
9710fi
9711fi
9712ac_ct_AS=$ac_cv_prog_ac_ct_AS
9713if test -n "$ac_ct_AS"; then
9714 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
9715echo "${ECHO_T}$ac_ct_AS" >&6
9716else
9717 echo "$as_me:$LINENO: result: no" >&5
9718echo "${ECHO_T}no" >&6
9719fi
9720
9721 AS=$ac_ct_AS
9722else
9723 AS="$ac_cv_prog_AS"
9724fi
9725
9726 if test -n "$ac_tool_prefix"; then
9727 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9728set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9729echo "$as_me:$LINENO: checking for $ac_word" >&5
9730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9731if test "${ac_cv_prog_DLLTOOL+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9733else
9734 if test -n "$DLLTOOL"; then
9735 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9736else
9737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738for as_dir in $PATH
9739do
9740 IFS=$as_save_IFS
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9744 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 break 2
9747 fi
9748done
9749done
9750
9751fi
9752fi
9753DLLTOOL=$ac_cv_prog_DLLTOOL
9754if test -n "$DLLTOOL"; then
9755 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
9756echo "${ECHO_T}$DLLTOOL" >&6
9757else
9758 echo "$as_me:$LINENO: result: no" >&5
9759echo "${ECHO_T}no" >&6
9760fi
9761
9762fi
9763if test -z "$ac_cv_prog_DLLTOOL"; then
9764 ac_ct_DLLTOOL=$DLLTOOL
9765 # Extract the first word of "dlltool", so it can be a program name with args.
9766set dummy dlltool; ac_word=$2
9767echo "$as_me:$LINENO: checking for $ac_word" >&5
9768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9769if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771else
9772 if test -n "$ac_ct_DLLTOOL"; then
9773 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9774else
9775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776for as_dir in $PATH
9777do
9778 IFS=$as_save_IFS
9779 test -z "$as_dir" && as_dir=.
9780 for ac_exec_ext in '' $ac_executable_extensions; do
9781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9782 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9784 break 2
9785 fi
9786done
9787done
9788
9789 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
9790fi
9791fi
9792ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9793if test -n "$ac_ct_DLLTOOL"; then
9794 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9795echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9796else
9797 echo "$as_me:$LINENO: result: no" >&5
9798echo "${ECHO_T}no" >&6
9799fi
9800
9801 DLLTOOL=$ac_ct_DLLTOOL
9802else
9803 DLLTOOL="$ac_cv_prog_DLLTOOL"
9804fi
9805
9806 if test -n "$ac_tool_prefix"; then
9807 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9808set dummy ${ac_tool_prefix}objdump; ac_word=$2
9809echo "$as_me:$LINENO: checking for $ac_word" >&5
9810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9811if test "${ac_cv_prog_OBJDUMP+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813else
9814 if test -n "$OBJDUMP"; then
9815 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9816else
9817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818for as_dir in $PATH
9819do
9820 IFS=$as_save_IFS
9821 test -z "$as_dir" && as_dir=.
9822 for ac_exec_ext in '' $ac_executable_extensions; do
9823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9826 break 2
9827 fi
9828done
9829done
9830
9831fi
9832fi
9833OBJDUMP=$ac_cv_prog_OBJDUMP
9834if test -n "$OBJDUMP"; then
9835 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
9836echo "${ECHO_T}$OBJDUMP" >&6
9837else
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
9840fi
9841
9842fi
9843if test -z "$ac_cv_prog_OBJDUMP"; then
9844 ac_ct_OBJDUMP=$OBJDUMP
9845 # Extract the first word of "objdump", so it can be a program name with args.
9846set dummy objdump; ac_word=$2
9847echo "$as_me:$LINENO: checking for $ac_word" >&5
9848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9849if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9851else
9852 if test -n "$ac_ct_OBJDUMP"; then
9853 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9854else
9855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856for as_dir in $PATH
9857do
9858 IFS=$as_save_IFS
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9862 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 break 2
9865 fi
9866done
9867done
9868
9869 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
9870fi
9871fi
9872ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9873if test -n "$ac_ct_OBJDUMP"; then
9874 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
9875echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
9876else
9877 echo "$as_me:$LINENO: result: no" >&5
9878echo "${ECHO_T}no" >&6
9879fi
9880
9881 OBJDUMP=$ac_ct_OBJDUMP
9882else
9883 OBJDUMP="$ac_cv_prog_OBJDUMP"
9884fi
9885
9886 ;;
9887esac
9888
9889test -z "$AS" && AS=as
9890
9891
9892
9893
9894
9895test -z "$DLLTOOL" && DLLTOOL=dlltool
9896
9897
9898
9899
9900
9901test -z "$OBJDUMP" && OBJDUMP=objdump
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911echo "$as_me:$LINENO: checking for main in -lc" >&5
9912echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
9913if test "${ac_cv_lib_c_main+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9915else
9916 ac_check_lib_save_LIBS=$LIBS
9917LIBS="-lc $LIBS"
9918cat >conftest.$ac_ext <<_ACEOF
9919/* confdefs.h. */
9920_ACEOF
9921cat confdefs.h >>conftest.$ac_ext
9922cat >>conftest.$ac_ext <<_ACEOF
9923/* end confdefs.h. */
9924
9925
9926int
9927main ()
9928{
9929main ();
9930 ;
9931 return 0;
9932}
9933_ACEOF
9934rm -f conftest.$ac_objext conftest$ac_exeext
9935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936 (eval $ac_link) 2>conftest.er1
9937 ac_status=$?
9938 grep -v '^ *+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
9943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 (eval $ac_try) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; } &&
9949 { ac_try='test -s conftest$ac_exeext'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 (eval $ac_try) 2>&5
9952 ac_status=$?
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; }; then
9955 ac_cv_lib_c_main=yes
9956else
9957 echo "$as_me: failed program was:" >&5
9958sed 's/^/| /' conftest.$ac_ext >&5
9959
9960ac_cv_lib_c_main=no
9961fi
9962rm -f conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
9964LIBS=$ac_check_lib_save_LIBS
9965fi
9966echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
9967echo "${ECHO_T}$ac_cv_lib_c_main" >&6
9968if test $ac_cv_lib_c_main = yes; then
9969 cat >>confdefs.h <<_ACEOF
9970#define HAVE_LIBC 1
9971_ACEOF
9972
9973 LIBS="-lc $LIBS"
9974
9975fi
9976
9977
9978case "$target_os" in
9979 cygwin* | mingw32* | beos* | darwin*)
9980 ;;
9981 *)
9982
9983echo "$as_me:$LINENO: checking for main in -lm" >&5
9984echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9985if test "${ac_cv_lib_m_main+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987else
9988 ac_check_lib_save_LIBS=$LIBS
9989LIBS="-lm $LIBS"
9990cat >conftest.$ac_ext <<_ACEOF
9991/* confdefs.h. */
9992_ACEOF
9993cat confdefs.h >>conftest.$ac_ext
9994cat >>conftest.$ac_ext <<_ACEOF
9995/* end confdefs.h. */
9996
9997
9998int
9999main ()
10000{
10001main ();
10002 ;
10003 return 0;
10004}
10005_ACEOF
10006rm -f conftest.$ac_objext conftest$ac_exeext
10007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008 (eval $ac_link) 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } &&
10015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; } &&
10021 { ac_try='test -s conftest$ac_exeext'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; }; then
10027 ac_cv_lib_m_main=yes
10028else
10029 echo "$as_me: failed program was:" >&5
10030sed 's/^/| /' conftest.$ac_ext >&5
10031
10032ac_cv_lib_m_main=no
10033fi
10034rm -f conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10036LIBS=$ac_check_lib_save_LIBS
10037fi
10038echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10039echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10040if test $ac_cv_lib_m_main = yes; then
10041 cat >>confdefs.h <<_ACEOF
10042#define HAVE_LIBM 1
10043_ACEOF
10044
10045 LIBS="-lm $LIBS"
10046
10047fi
10048
10049 ;;
10050esac
10051
10052
10053
10054
10055
10056
10057
10058
10059for ac_header in assert.h fcntl.h limits.h malloc.h search.h sys/time.h unistd.h
10060do
10061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10062if eval "test \"\${$as_ac_Header+set}\" = set"; then
10063 echo "$as_me:$LINENO: checking for $ac_header" >&5
10064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10065if eval "test \"\${$as_ac_Header+set}\" = set"; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10067fi
10068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10070else
10071 # Is the header compilable?
10072echo "$as_me:$LINENO: checking $ac_header usability" >&5
10073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10074cat >conftest.$ac_ext <<_ACEOF
10075/* confdefs.h. */
10076_ACEOF
10077cat confdefs.h >>conftest.$ac_ext
10078cat >>conftest.$ac_ext <<_ACEOF
10079/* end confdefs.h. */
10080$ac_includes_default
10081#include <$ac_header>
10082_ACEOF
10083rm -f conftest.$ac_objext
10084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10085 (eval $ac_compile) 2>conftest.er1
10086 ac_status=$?
10087 grep -v '^ *+' conftest.er1 >conftest.err
10088 rm -f conftest.er1
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; } &&
10098 { ac_try='test -s conftest.$ac_objext'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 ac_header_compiler=yes
10105else
10106 echo "$as_me: failed program was:" >&5
10107sed 's/^/| /' conftest.$ac_ext >&5
10108
10109ac_header_compiler=no
10110fi
10111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10112echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10113echo "${ECHO_T}$ac_header_compiler" >&6
10114
10115# Is the header present?
10116echo "$as_me:$LINENO: checking $ac_header presence" >&5
10117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10118cat >conftest.$ac_ext <<_ACEOF
10119/* confdefs.h. */
10120_ACEOF
10121cat confdefs.h >>conftest.$ac_ext
10122cat >>conftest.$ac_ext <<_ACEOF
10123/* end confdefs.h. */
10124#include <$ac_header>
10125_ACEOF
10126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10128 ac_status=$?
10129 grep -v '^ *+' conftest.er1 >conftest.err
10130 rm -f conftest.er1
10131 cat conftest.err >&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } >/dev/null; then
10134 if test -s conftest.err; then
10135 ac_cpp_err=$ac_c_preproc_warn_flag
10136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10137 else
10138 ac_cpp_err=
10139 fi
10140else
10141 ac_cpp_err=yes
10142fi
10143if test -z "$ac_cpp_err"; then
10144 ac_header_preproc=yes
10145else
10146 echo "$as_me: failed program was:" >&5
10147sed 's/^/| /' conftest.$ac_ext >&5
10148
10149 ac_header_preproc=no
10150fi
10151rm -f conftest.err conftest.$ac_ext
10152echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10153echo "${ECHO_T}$ac_header_preproc" >&6
10154
10155# So? What about this header?
10156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10157 yes:no: )
10158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10161echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10162 ac_header_preproc=yes
10163 ;;
10164 no:yes:* )
10165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10166echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10168echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10170echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10172echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10174echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10176echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10177 (
10178 cat <<\_ASBOX
10179## -------------------------------------- ##
10180## Report this to tiff@lists.maptools.org ##
10181## -------------------------------------- ##
10182_ASBOX
10183 ) |
10184 sed "s/^/$as_me: WARNING: /" >&2
10185 ;;
10186esac
10187echo "$as_me:$LINENO: checking for $ac_header" >&5
10188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10189if eval "test \"\${$as_ac_Header+set}\" = set"; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191else
10192 eval "$as_ac_Header=\$ac_header_preproc"
10193fi
10194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10196
10197fi
10198if test `eval echo '${'$as_ac_Header'}'` = yes; then
10199 cat >>confdefs.h <<_ACEOF
10200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10201_ACEOF
10202
10203fi
10204
10205done
10206
10207
10208echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10209echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10210if test "${ac_cv_c_const+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10212else
10213 cat >conftest.$ac_ext <<_ACEOF
10214/* confdefs.h. */
10215_ACEOF
10216cat confdefs.h >>conftest.$ac_ext
10217cat >>conftest.$ac_ext <<_ACEOF
10218/* end confdefs.h. */
10219
10220int
10221main ()
10222{
10223/* FIXME: Include the comments suggested by Paul. */
10224#ifndef __cplusplus
10225 /* Ultrix mips cc rejects this. */
10226 typedef int charset[2];
10227 const charset x;
10228 /* SunOS 4.1.1 cc rejects this. */
10229 char const *const *ccp;
10230 char **p;
10231 /* NEC SVR4.0.2 mips cc rejects this. */
10232 struct point {int x, y;};
10233 static struct point const zero = {0,0};
10234 /* AIX XL C 1.02.0.0 rejects this.
10235 It does not let you subtract one const X* pointer from another in
10236 an arm of an if-expression whose if-part is not a constant
10237 expression */
10238 const char *g = "string";
10239 ccp = &g + (g ? g-g : 0);
10240 /* HPUX 7.0 cc rejects these. */
10241 ++ccp;
10242 p = (char**) ccp;
10243 ccp = (char const *const *) p;
10244 { /* SCO 3.2v4 cc rejects this. */
10245 char *t;
10246 char const *s = 0 ? (char *) 0 : (char const *) 0;
10247
10248 *t++ = 0;
10249 }
10250 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10251 int x[] = {25, 17};
10252 const int *foo = &x[0];
10253 ++foo;
10254 }
10255 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10256 typedef const int *iptr;
10257 iptr p = 0;
10258 ++p;
10259 }
10260 { /* AIX XL C 1.02.0.0 rejects this saying
10261 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10262 struct s { int j; const int *ap[3]; };
10263 struct s *b; b->j = 5;
10264 }
10265 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10266 const int foo = 10;
10267 }
10268#endif
10269
10270 ;
10271 return 0;
10272}
10273_ACEOF
10274rm -f conftest.$ac_objext
10275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; } &&
10289 { ac_try='test -s conftest.$ac_objext'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; }; then
10295 ac_cv_c_const=yes
10296else
10297 echo "$as_me: failed program was:" >&5
10298sed 's/^/| /' conftest.$ac_ext >&5
10299
10300ac_cv_c_const=no
10301fi
10302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10303fi
10304echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10305echo "${ECHO_T}$ac_cv_c_const" >&6
10306if test $ac_cv_c_const = no; then
10307
10308cat >>confdefs.h <<\_ACEOF
10309#define const
10310_ACEOF
10311
10312fi
10313
10314echo "$as_me:$LINENO: checking for inline" >&5
10315echo $ECHO_N "checking for inline... $ECHO_C" >&6
10316if test "${ac_cv_c_inline+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318else
10319 ac_cv_c_inline=no
10320for ac_kw in inline __inline__ __inline; do
10321 cat >conftest.$ac_ext <<_ACEOF
10322/* confdefs.h. */
10323_ACEOF
10324cat confdefs.h >>conftest.$ac_ext
10325cat >>conftest.$ac_ext <<_ACEOF
10326/* end confdefs.h. */
10327#ifndef __cplusplus
10328typedef int foo_t;
10329static $ac_kw foo_t static_foo () {return 0; }
10330$ac_kw foo_t foo () {return 0; }
10331#endif
10332
10333_ACEOF
10334rm -f conftest.$ac_objext
10335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10336 (eval $ac_compile) 2>conftest.er1
10337 ac_status=$?
10338 grep -v '^ *+' conftest.er1 >conftest.err
10339 rm -f conftest.er1
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } &&
10343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10346 ac_status=$?
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; } &&
10349 { ac_try='test -s conftest.$ac_objext'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10352 ac_status=$?
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; }; then
10355 ac_cv_c_inline=$ac_kw; break
10356else
10357 echo "$as_me: failed program was:" >&5
10358sed 's/^/| /' conftest.$ac_ext >&5
10359
10360fi
10361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10362done
10363
10364fi
10365echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10366echo "${ECHO_T}$ac_cv_c_inline" >&6
10367
10368
10369case $ac_cv_c_inline in
10370 inline | yes) ;;
10371 *)
10372 case $ac_cv_c_inline in
10373 no) ac_val=;;
10374 *) ac_val=$ac_cv_c_inline;;
10375 esac
10376 cat >>confdefs.h <<_ACEOF
10377#ifndef __cplusplus
10378#define inline $ac_val
10379#endif
10380_ACEOF
10381 ;;
10382esac
10383
10384echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10385echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10386if test "${ac_cv_c_bigendian+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10388else
10389 # See if sys/param.h defines the BYTE_ORDER macro.
10390cat >conftest.$ac_ext <<_ACEOF
10391/* confdefs.h. */
10392_ACEOF
10393cat confdefs.h >>conftest.$ac_ext
10394cat >>conftest.$ac_ext <<_ACEOF
10395/* end confdefs.h. */
10396#include <sys/types.h>
10397#include <sys/param.h>
10398
10399int
10400main ()
10401{
10402#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10403 bogus endian macros
10404#endif
10405
10406 ;
10407 return 0;
10408}
10409_ACEOF
10410rm -f conftest.$ac_objext
10411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10412 (eval $ac_compile) 2>conftest.er1
10413 ac_status=$?
10414 grep -v '^ *+' conftest.er1 >conftest.err
10415 rm -f conftest.er1
10416 cat conftest.err >&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } &&
10419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; } &&
10425 { ac_try='test -s conftest.$ac_objext'
10426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
10431 # It does; now see whether it defined to BIG_ENDIAN or not.
10432cat >conftest.$ac_ext <<_ACEOF
10433/* confdefs.h. */
10434_ACEOF
10435cat confdefs.h >>conftest.$ac_ext
10436cat >>conftest.$ac_ext <<_ACEOF
10437/* end confdefs.h. */
10438#include <sys/types.h>
10439#include <sys/param.h>
10440
10441int
10442main ()
10443{
10444#if BYTE_ORDER != BIG_ENDIAN
10445 not big endian
10446#endif
10447
10448 ;
10449 return 0;
10450}
10451_ACEOF
10452rm -f conftest.$ac_objext
10453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10454 (eval $ac_compile) 2>conftest.er1
10455 ac_status=$?
10456 grep -v '^ *+' conftest.er1 >conftest.err
10457 rm -f conftest.er1
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
10461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; } &&
10467 { ac_try='test -s conftest.$ac_objext'
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; }; then
10473 ac_cv_c_bigendian=yes
10474else
10475 echo "$as_me: failed program was:" >&5
10476sed 's/^/| /' conftest.$ac_ext >&5
10477
10478ac_cv_c_bigendian=no
10479fi
10480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10481else
10482 echo "$as_me: failed program was:" >&5
10483sed 's/^/| /' conftest.$ac_ext >&5
10484
10485# It does not; compile a test program.
10486if test "$cross_compiling" = yes; then
10487 # try to guess the endianness by grepping values into an object file
10488 ac_cv_c_bigendian=unknown
10489 cat >conftest.$ac_ext <<_ACEOF
10490/* confdefs.h. */
10491_ACEOF
10492cat confdefs.h >>conftest.$ac_ext
10493cat >>conftest.$ac_ext <<_ACEOF
10494/* end confdefs.h. */
10495short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10496short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10497void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10498short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10499short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10500void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10501int
10502main ()
10503{
10504 _ascii (); _ebcdic ();
10505 ;
10506 return 0;
10507}
10508_ACEOF
10509rm -f conftest.$ac_objext
10510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10511 (eval $ac_compile) 2>conftest.er1
10512 ac_status=$?
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
10518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10521 ac_status=$?
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; } &&
10524 { ac_try='test -s conftest.$ac_objext'
10525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526 (eval $ac_try) 2>&5
10527 ac_status=$?
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; }; then
10530 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10531 ac_cv_c_bigendian=yes
10532fi
10533if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10534 if test "$ac_cv_c_bigendian" = unknown; then
10535 ac_cv_c_bigendian=no
10536 else
10537 # finding both strings is unlikely to happen, but who knows?
10538 ac_cv_c_bigendian=unknown
10539 fi
10540fi
10541else
10542 echo "$as_me: failed program was:" >&5
10543sed 's/^/| /' conftest.$ac_ext >&5
10544
10545fi
10546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10547else
10548 cat >conftest.$ac_ext <<_ACEOF
10549/* confdefs.h. */
10550_ACEOF
10551cat confdefs.h >>conftest.$ac_ext
10552cat >>conftest.$ac_ext <<_ACEOF
10553/* end confdefs.h. */
10554int
10555main ()
10556{
10557 /* Are we little or big endian? From Harbison&Steele. */
10558 union
10559 {
10560 long l;
10561 char c[sizeof (long)];
10562 } u;
10563 u.l = 1;
10564 exit (u.c[sizeof (long) - 1] == 1);
10565}
10566_ACEOF
10567rm -f conftest$ac_exeext
10568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10569 (eval $ac_link) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10575 ac_status=$?
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; }; then
10578 ac_cv_c_bigendian=no
10579else
10580 echo "$as_me: program exited with status $ac_status" >&5
10581echo "$as_me: failed program was:" >&5
10582sed 's/^/| /' conftest.$ac_ext >&5
10583
10584( exit $ac_status )
10585ac_cv_c_bigendian=yes
10586fi
10587rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10588fi
10589fi
10590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10591fi
10592echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10593echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10594case $ac_cv_c_bigendian in
10595 yes)
10596
10597cat >>confdefs.h <<\_ACEOF
10598#define WORDS_BIGENDIAN 1
10599_ACEOF
10600 ;;
10601 no)
10602 ;;
10603 *)
10604 { { echo "$as_me:$LINENO: error: unknown endianness
10605presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10606echo "$as_me: error: unknown endianness
10607presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10608 { (exit 1); exit 1; }; } ;;
10609esac
10610
10611echo "$as_me:$LINENO: checking for off_t" >&5
10612echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10613if test "${ac_cv_type_off_t+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10615else
10616 cat >conftest.$ac_ext <<_ACEOF
10617/* confdefs.h. */
10618_ACEOF
10619cat confdefs.h >>conftest.$ac_ext
10620cat >>conftest.$ac_ext <<_ACEOF
10621/* end confdefs.h. */
10622$ac_includes_default
10623int
10624main ()
10625{
10626if ((off_t *) 0)
10627 return 0;
10628if (sizeof (off_t))
10629 return 0;
10630 ;
10631 return 0;
10632}
10633_ACEOF
10634rm -f conftest.$ac_objext
10635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10636 (eval $ac_compile) 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; } &&
10649 { ac_try='test -s conftest.$ac_objext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_cv_type_off_t=yes
10656else
10657 echo "$as_me: failed program was:" >&5
10658sed 's/^/| /' conftest.$ac_ext >&5
10659
10660ac_cv_type_off_t=no
10661fi
10662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10663fi
10664echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10665echo "${ECHO_T}$ac_cv_type_off_t" >&6
10666if test $ac_cv_type_off_t = yes; then
10667 :
10668else
10669
10670cat >>confdefs.h <<_ACEOF
10671#define off_t long
10672_ACEOF
10673
10674fi
10675
10676echo "$as_me:$LINENO: checking for size_t" >&5
10677echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10678if test "${ac_cv_type_size_t+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680else
10681 cat >conftest.$ac_ext <<_ACEOF
10682/* confdefs.h. */
10683_ACEOF
10684cat confdefs.h >>conftest.$ac_ext
10685cat >>conftest.$ac_ext <<_ACEOF
10686/* end confdefs.h. */
10687$ac_includes_default
10688int
10689main ()
10690{
10691if ((size_t *) 0)
10692 return 0;
10693if (sizeof (size_t))
10694 return 0;
10695 ;
10696 return 0;
10697}
10698_ACEOF
10699rm -f conftest.$ac_objext
10700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10701 (eval $ac_compile) 2>conftest.er1
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try='test -s conftest.$ac_objext'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_type_size_t=yes
10721else
10722 echo "$as_me: failed program was:" >&5
10723sed 's/^/| /' conftest.$ac_ext >&5
10724
10725ac_cv_type_size_t=no
10726fi
10727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10728fi
10729echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10730echo "${ECHO_T}$ac_cv_type_size_t" >&6
10731if test $ac_cv_type_size_t = yes; then
10732 :
10733else
10734
10735cat >>confdefs.h <<_ACEOF
10736#define size_t unsigned
10737_ACEOF
10738
10739fi
10740
10741echo "$as_me:$LINENO: checking for int" >&5
10742echo $ECHO_N "checking for int... $ECHO_C" >&6
10743if test "${ac_cv_type_int+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745else
10746 cat >conftest.$ac_ext <<_ACEOF
10747/* confdefs.h. */
10748_ACEOF
10749cat confdefs.h >>conftest.$ac_ext
10750cat >>conftest.$ac_ext <<_ACEOF
10751/* end confdefs.h. */
10752$ac_includes_default
10753int
10754main ()
10755{
10756if ((int *) 0)
10757 return 0;
10758if (sizeof (int))
10759 return 0;
10760 ;
10761 return 0;
10762}
10763_ACEOF
10764rm -f conftest.$ac_objext
10765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10766 (eval $ac_compile) 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; } &&
10779 { ac_try='test -s conftest.$ac_objext'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
10785 ac_cv_type_int=yes
10786else
10787 echo "$as_me: failed program was:" >&5
10788sed 's/^/| /' conftest.$ac_ext >&5
10789
10790ac_cv_type_int=no
10791fi
10792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10793fi
10794echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10795echo "${ECHO_T}$ac_cv_type_int" >&6
10796
10797echo "$as_me:$LINENO: checking size of int" >&5
10798echo $ECHO_N "checking size of int... $ECHO_C" >&6
10799if test "${ac_cv_sizeof_int+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801else
10802 if test "$ac_cv_type_int" = yes; then
10803 # The cast to unsigned long works around a bug in the HP C Compiler
10804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10806 # This bug is HP SR number 8606223364.
10807 if test "$cross_compiling" = yes; then
10808 # Depending upon the size, compute the lo and hi bounds.
10809cat >conftest.$ac_ext <<_ACEOF
10810/* confdefs.h. */
10811_ACEOF
10812cat confdefs.h >>conftest.$ac_ext
10813cat >>conftest.$ac_ext <<_ACEOF
10814/* end confdefs.h. */
10815$ac_includes_default
10816int
10817main ()
10818{
10819static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
10820test_array [0] = 0
10821
10822 ;
10823 return 0;
10824}
10825_ACEOF
10826rm -f conftest.$ac_objext
10827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10828 (eval $ac_compile) 2>conftest.er1
10829 ac_status=$?
10830 grep -v '^ *+' conftest.er1 >conftest.err
10831 rm -f conftest.er1
10832 cat conftest.err >&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } &&
10835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; } &&
10841 { ac_try='test -s conftest.$ac_objext'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 ac_lo=0 ac_mid=0
10848 while :; do
10849 cat >conftest.$ac_ext <<_ACEOF
10850/* confdefs.h. */
10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
10854/* end confdefs.h. */
10855$ac_includes_default
10856int
10857main ()
10858{
10859static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10860test_array [0] = 0
10861
10862 ;
10863 return 0;
10864}
10865_ACEOF
10866rm -f conftest.$ac_objext
10867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868 (eval $ac_compile) 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; } &&
10881 { ac_try='test -s conftest.$ac_objext'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 ac_hi=$ac_mid; break
10888else
10889 echo "$as_me: failed program was:" >&5
10890sed 's/^/| /' conftest.$ac_ext >&5
10891
10892ac_lo=`expr $ac_mid + 1`
10893 if test $ac_lo -le $ac_mid; then
10894 ac_lo= ac_hi=
10895 break
10896 fi
10897 ac_mid=`expr 2 '*' $ac_mid + 1`
10898fi
10899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10900 done
10901else
10902 echo "$as_me: failed program was:" >&5
10903sed 's/^/| /' conftest.$ac_ext >&5
10904
10905cat >conftest.$ac_ext <<_ACEOF
10906/* confdefs.h. */
10907_ACEOF
10908cat confdefs.h >>conftest.$ac_ext
10909cat >>conftest.$ac_ext <<_ACEOF
10910/* end confdefs.h. */
10911$ac_includes_default
10912int
10913main ()
10914{
10915static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
10916test_array [0] = 0
10917
10918 ;
10919 return 0;
10920}
10921_ACEOF
10922rm -f conftest.$ac_objext
10923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10924 (eval $ac_compile) 2>conftest.er1
10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; } &&
10937 { ac_try='test -s conftest.$ac_objext'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10943 ac_hi=-1 ac_mid=-1
10944 while :; do
10945 cat >conftest.$ac_ext <<_ACEOF
10946/* confdefs.h. */
10947_ACEOF
10948cat confdefs.h >>conftest.$ac_ext
10949cat >>conftest.$ac_ext <<_ACEOF
10950/* end confdefs.h. */
10951$ac_includes_default
10952int
10953main ()
10954{
10955static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
10956test_array [0] = 0
10957
10958 ;
10959 return 0;
10960}
10961_ACEOF
10962rm -f conftest.$ac_objext
10963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10964 (eval $ac_compile) 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } &&
10971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; } &&
10977 { ac_try='test -s conftest.$ac_objext'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; }; then
10983 ac_lo=$ac_mid; break
10984else
10985 echo "$as_me: failed program was:" >&5
10986sed 's/^/| /' conftest.$ac_ext >&5
10987
10988ac_hi=`expr '(' $ac_mid ')' - 1`
10989 if test $ac_mid -le $ac_hi; then
10990 ac_lo= ac_hi=
10991 break
10992 fi
10993 ac_mid=`expr 2 '*' $ac_mid`
10994fi
10995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10996 done
10997else
10998 echo "$as_me: failed program was:" >&5
10999sed 's/^/| /' conftest.$ac_ext >&5
11000
11001ac_lo= ac_hi=
11002fi
11003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11004fi
11005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11006# Binary search between lo and hi bounds.
11007while test "x$ac_lo" != "x$ac_hi"; do
11008 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11009 cat >conftest.$ac_ext <<_ACEOF
11010/* confdefs.h. */
11011_ACEOF
11012cat confdefs.h >>conftest.$ac_ext
11013cat >>conftest.$ac_ext <<_ACEOF
11014/* end confdefs.h. */
11015$ac_includes_default
11016int
11017main ()
11018{
11019static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11020test_array [0] = 0
11021
11022 ;
11023 return 0;
11024}
11025_ACEOF
11026rm -f conftest.$ac_objext
11027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11028 (eval $ac_compile) 2>conftest.er1
11029 ac_status=$?
11030 grep -v '^ *+' conftest.er1 >conftest.err
11031 rm -f conftest.er1
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11037 (eval $ac_try) 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; } &&
11041 { ac_try='test -s conftest.$ac_objext'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 ac_hi=$ac_mid
11048else
11049 echo "$as_me: failed program was:" >&5
11050sed 's/^/| /' conftest.$ac_ext >&5
11051
11052ac_lo=`expr '(' $ac_mid ')' + 1`
11053fi
11054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11055done
11056case $ac_lo in
11057?*) ac_cv_sizeof_int=$ac_lo;;
11058'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11059See \`config.log' for more details." >&5
11060echo "$as_me: error: cannot compute sizeof (int), 77
11061See \`config.log' for more details." >&2;}
11062 { (exit 1); exit 1; }; } ;;
11063esac
11064else
11065 if test "$cross_compiling" = yes; then
11066 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11067echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11068 { (exit 1); exit 1; }; }
11069else
11070 cat >conftest.$ac_ext <<_ACEOF
11071/* confdefs.h. */
11072_ACEOF
11073cat confdefs.h >>conftest.$ac_ext
11074cat >>conftest.$ac_ext <<_ACEOF
11075/* end confdefs.h. */
11076$ac_includes_default
11077long longval () { return (long) (sizeof (int)); }
11078unsigned long ulongval () { return (long) (sizeof (int)); }
11079#include <stdio.h>
11080#include <stdlib.h>
11081int
11082main ()
11083{
11084
11085 FILE *f = fopen ("conftest.val", "w");
11086 if (! f)
11087 exit (1);
11088 if (((long) (sizeof (int))) < 0)
11089 {
11090 long i = longval ();
11091 if (i != ((long) (sizeof (int))))
11092 exit (1);
11093 fprintf (f, "%ld\n", i);
11094 }
11095 else
11096 {
11097 unsigned long i = ulongval ();
11098 if (i != ((long) (sizeof (int))))
11099 exit (1);
11100 fprintf (f, "%lu\n", i);
11101 }
11102 exit (ferror (f) || fclose (f) != 0);
11103
11104 ;
11105 return 0;
11106}
11107_ACEOF
11108rm -f conftest$ac_exeext
11109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11110 (eval $ac_link) 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_cv_sizeof_int=`cat conftest.val`
11120else
11121 echo "$as_me: program exited with status $ac_status" >&5
11122echo "$as_me: failed program was:" >&5
11123sed 's/^/| /' conftest.$ac_ext >&5
11124
11125( exit $ac_status )
11126{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11127See \`config.log' for more details." >&5
11128echo "$as_me: error: cannot compute sizeof (int), 77
11129See \`config.log' for more details." >&2;}
11130 { (exit 1); exit 1; }; }
11131fi
11132rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11133fi
11134fi
11135rm -f conftest.val
11136else
11137 ac_cv_sizeof_int=0
11138fi
11139fi
11140echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11141echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11142cat >>confdefs.h <<_ACEOF
11143#define SIZEOF_INT $ac_cv_sizeof_int
11144_ACEOF
11145
11146
11147echo "$as_me:$LINENO: checking for long" >&5
11148echo $ECHO_N "checking for long... $ECHO_C" >&6
11149if test "${ac_cv_type_long+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151else
11152 cat >conftest.$ac_ext <<_ACEOF
11153/* confdefs.h. */
11154_ACEOF
11155cat confdefs.h >>conftest.$ac_ext
11156cat >>conftest.$ac_ext <<_ACEOF
11157/* end confdefs.h. */
11158$ac_includes_default
11159int
11160main ()
11161{
11162if ((long *) 0)
11163 return 0;
11164if (sizeof (long))
11165 return 0;
11166 ;
11167 return 0;
11168}
11169_ACEOF
11170rm -f conftest.$ac_objext
11171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11172 (eval $ac_compile) 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try='test -s conftest.$ac_objext'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_cv_type_long=yes
11192else
11193 echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
11196ac_cv_type_long=no
11197fi
11198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11199fi
11200echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11201echo "${ECHO_T}$ac_cv_type_long" >&6
11202
11203echo "$as_me:$LINENO: checking size of long" >&5
11204echo $ECHO_N "checking size of long... $ECHO_C" >&6
11205if test "${ac_cv_sizeof_long+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207else
11208 if test "$ac_cv_type_long" = yes; then
11209 # The cast to unsigned long works around a bug in the HP C Compiler
11210 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11211 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11212 # This bug is HP SR number 8606223364.
11213 if test "$cross_compiling" = yes; then
11214 # Depending upon the size, compute the lo and hi bounds.
11215cat >conftest.$ac_ext <<_ACEOF
11216/* confdefs.h. */
11217_ACEOF
11218cat confdefs.h >>conftest.$ac_ext
11219cat >>conftest.$ac_ext <<_ACEOF
11220/* end confdefs.h. */
11221$ac_includes_default
11222int
11223main ()
11224{
11225static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11226test_array [0] = 0
11227
11228 ;
11229 return 0;
11230}
11231_ACEOF
11232rm -f conftest.$ac_objext
11233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; } &&
11247 { ac_try='test -s conftest.$ac_objext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_lo=0 ac_mid=0
11254 while :; do
11255 cat >conftest.$ac_ext <<_ACEOF
11256/* confdefs.h. */
11257_ACEOF
11258cat confdefs.h >>conftest.$ac_ext
11259cat >>conftest.$ac_ext <<_ACEOF
11260/* end confdefs.h. */
11261$ac_includes_default
11262int
11263main ()
11264{
11265static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11266test_array [0] = 0
11267
11268 ;
11269 return 0;
11270}
11271_ACEOF
11272rm -f conftest.$ac_objext
11273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11274 (eval $ac_compile) 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; } &&
11287 { ac_try='test -s conftest.$ac_objext'
11288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289 (eval $ac_try) 2>&5
11290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; }; then
11293 ac_hi=$ac_mid; break
11294else
11295 echo "$as_me: failed program was:" >&5
11296sed 's/^/| /' conftest.$ac_ext >&5
11297
11298ac_lo=`expr $ac_mid + 1`
11299 if test $ac_lo -le $ac_mid; then
11300 ac_lo= ac_hi=
11301 break
11302 fi
11303 ac_mid=`expr 2 '*' $ac_mid + 1`
11304fi
11305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11306 done
11307else
11308 echo "$as_me: failed program was:" >&5
11309sed 's/^/| /' conftest.$ac_ext >&5
11310
11311cat >conftest.$ac_ext <<_ACEOF
11312/* confdefs.h. */
11313_ACEOF
11314cat confdefs.h >>conftest.$ac_ext
11315cat >>conftest.$ac_ext <<_ACEOF
11316/* end confdefs.h. */
11317$ac_includes_default
11318int
11319main ()
11320{
11321static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11322test_array [0] = 0
11323
11324 ;
11325 return 0;
11326}
11327_ACEOF
11328rm -f conftest.$ac_objext
11329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330 (eval $ac_compile) 2>conftest.er1
11331 ac_status=$?
11332 grep -v '^ *+' conftest.er1 >conftest.err
11333 rm -f conftest.er1
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11340 ac_status=$?
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; } &&
11343 { ac_try='test -s conftest.$ac_objext'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 ac_hi=-1 ac_mid=-1
11350 while :; do
11351 cat >conftest.$ac_ext <<_ACEOF
11352/* confdefs.h. */
11353_ACEOF
11354cat confdefs.h >>conftest.$ac_ext
11355cat >>conftest.$ac_ext <<_ACEOF
11356/* end confdefs.h. */
11357$ac_includes_default
11358int
11359main ()
11360{
11361static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11362test_array [0] = 0
11363
11364 ;
11365 return 0;
11366}
11367_ACEOF
11368rm -f conftest.$ac_objext
11369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370 (eval $ac_compile) 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
11377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; } &&
11383 { ac_try='test -s conftest.$ac_objext'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_lo=$ac_mid; break
11390else
11391 echo "$as_me: failed program was:" >&5
11392sed 's/^/| /' conftest.$ac_ext >&5
11393
11394ac_hi=`expr '(' $ac_mid ')' - 1`
11395 if test $ac_mid -le $ac_hi; then
11396 ac_lo= ac_hi=
11397 break
11398 fi
11399 ac_mid=`expr 2 '*' $ac_mid`
11400fi
11401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11402 done
11403else
11404 echo "$as_me: failed program was:" >&5
11405sed 's/^/| /' conftest.$ac_ext >&5
11406
11407ac_lo= ac_hi=
11408fi
11409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11410fi
11411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11412# Binary search between lo and hi bounds.
11413while test "x$ac_lo" != "x$ac_hi"; do
11414 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11415 cat >conftest.$ac_ext <<_ACEOF
11416/* confdefs.h. */
11417_ACEOF
11418cat confdefs.h >>conftest.$ac_ext
11419cat >>conftest.$ac_ext <<_ACEOF
11420/* end confdefs.h. */
11421$ac_includes_default
11422int
11423main ()
11424{
11425static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11426test_array [0] = 0
11427
11428 ;
11429 return 0;
11430}
11431_ACEOF
11432rm -f conftest.$ac_objext
11433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11434 (eval $ac_compile) 2>conftest.er1
11435 ac_status=$?
11436 grep -v '^ *+' conftest.er1 >conftest.err
11437 rm -f conftest.er1
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } &&
11441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; } &&
11447 { ac_try='test -s conftest.$ac_objext'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; }; then
11453 ac_hi=$ac_mid
11454else
11455 echo "$as_me: failed program was:" >&5
11456sed 's/^/| /' conftest.$ac_ext >&5
11457
11458ac_lo=`expr '(' $ac_mid ')' + 1`
11459fi
11460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11461done
11462case $ac_lo in
11463?*) ac_cv_sizeof_long=$ac_lo;;
11464'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11465See \`config.log' for more details." >&5
11466echo "$as_me: error: cannot compute sizeof (long), 77
11467See \`config.log' for more details." >&2;}
11468 { (exit 1); exit 1; }; } ;;
11469esac
11470else
11471 if test "$cross_compiling" = yes; then
11472 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11473echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11474 { (exit 1); exit 1; }; }
11475else
11476 cat >conftest.$ac_ext <<_ACEOF
11477/* confdefs.h. */
11478_ACEOF
11479cat confdefs.h >>conftest.$ac_ext
11480cat >>conftest.$ac_ext <<_ACEOF
11481/* end confdefs.h. */
11482$ac_includes_default
11483long longval () { return (long) (sizeof (long)); }
11484unsigned long ulongval () { return (long) (sizeof (long)); }
11485#include <stdio.h>
11486#include <stdlib.h>
11487int
11488main ()
11489{
11490
11491 FILE *f = fopen ("conftest.val", "w");
11492 if (! f)
11493 exit (1);
11494 if (((long) (sizeof (long))) < 0)
11495 {
11496 long i = longval ();
11497 if (i != ((long) (sizeof (long))))
11498 exit (1);
11499 fprintf (f, "%ld\n", i);
11500 }
11501 else
11502 {
11503 unsigned long i = ulongval ();
11504 if (i != ((long) (sizeof (long))))
11505 exit (1);
11506 fprintf (f, "%lu\n", i);
11507 }
11508 exit (ferror (f) || fclose (f) != 0);
11509
11510 ;
11511 return 0;
11512}
11513_ACEOF
11514rm -f conftest$ac_exeext
11515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11516 (eval $ac_link) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; }; then
11525 ac_cv_sizeof_long=`cat conftest.val`
11526else
11527 echo "$as_me: program exited with status $ac_status" >&5
11528echo "$as_me: failed program was:" >&5
11529sed 's/^/| /' conftest.$ac_ext >&5
11530
11531( exit $ac_status )
11532{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11533See \`config.log' for more details." >&5
11534echo "$as_me: error: cannot compute sizeof (long), 77
11535See \`config.log' for more details." >&2;}
11536 { (exit 1); exit 1; }; }
11537fi
11538rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11539fi
11540fi
11541rm -f conftest.val
11542else
11543 ac_cv_sizeof_long=0
11544fi
11545fi
11546echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
11547echo "${ECHO_T}$ac_cv_sizeof_long" >&6
11548cat >>confdefs.h <<_ACEOF
11549#define SIZEOF_LONG $ac_cv_sizeof_long
11550_ACEOF
11551
11552
11553echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11554echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11555if test "${ac_cv_header_time+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557else
11558 cat >conftest.$ac_ext <<_ACEOF
11559/* confdefs.h. */
11560_ACEOF
11561cat confdefs.h >>conftest.$ac_ext
11562cat >>conftest.$ac_ext <<_ACEOF
11563/* end confdefs.h. */
11564#include <sys/types.h>
11565#include <sys/time.h>
11566#include <time.h>
11567
11568int
11569main ()
11570{
11571if ((struct tm *) 0)
11572return 0;
11573 ;
11574 return 0;
11575}
11576_ACEOF
11577rm -f conftest.$ac_objext
11578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11579 (eval $ac_compile) 2>conftest.er1
11580 ac_status=$?
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try='test -s conftest.$ac_objext'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11595 ac_status=$?
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 ac_cv_header_time=yes
11599else
11600 echo "$as_me: failed program was:" >&5
11601sed 's/^/| /' conftest.$ac_ext >&5
11602
11603ac_cv_header_time=no
11604fi
11605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11606fi
11607echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11608echo "${ECHO_T}$ac_cv_header_time" >&6
11609if test $ac_cv_header_time = yes; then
11610
11611cat >>confdefs.h <<\_ACEOF
11612#define TIME_WITH_SYS_TIME 1
11613_ACEOF
11614
11615fi
11616
11617echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11618echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11619if test "${ac_cv_struct_tm+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11621else
11622 cat >conftest.$ac_ext <<_ACEOF
11623/* confdefs.h. */
11624_ACEOF
11625cat confdefs.h >>conftest.$ac_ext
11626cat >>conftest.$ac_ext <<_ACEOF
11627/* end confdefs.h. */
11628#include <sys/types.h>
11629#include <time.h>
11630
11631int
11632main ()
11633{
11634struct tm *tp; tp->tm_sec;
11635 ;
11636 return 0;
11637}
11638_ACEOF
11639rm -f conftest.$ac_objext
11640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11641 (eval $ac_compile) 2>conftest.er1
11642 ac_status=$?
11643 grep -v '^ *+' conftest.er1 >conftest.err
11644 rm -f conftest.er1
11645 cat conftest.err >&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } &&
11648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; } &&
11654 { ac_try='test -s conftest.$ac_objext'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 ac_cv_struct_tm=time.h
11661else
11662 echo "$as_me: failed program was:" >&5
11663sed 's/^/| /' conftest.$ac_ext >&5
11664
11665ac_cv_struct_tm=sys/time.h
11666fi
11667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11668fi
11669echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11670echo "${ECHO_T}$ac_cv_struct_tm" >&6
11671if test $ac_cv_struct_tm = sys/time.h; then
11672
11673cat >>confdefs.h <<\_ACEOF
11674#define TM_IN_SYS_TIME 1
11675_ACEOF
11676
11677fi
11678
11679echo "$as_me:$LINENO: checking for int8" >&5
11680echo $ECHO_N "checking for int8... $ECHO_C" >&6
11681if test "${ac_cv_type_int8+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683else
11684 cat >conftest.$ac_ext <<_ACEOF
11685/* confdefs.h. */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h. */
11690
11691#if HAVE_INTTYPES_H
11692# include <inttypes.h>
11693#endif
11694
11695
11696int
11697main ()
11698{
11699if ((int8 *) 0)
11700 return 0;
11701if (sizeof (int8))
11702 return 0;
11703 ;
11704 return 0;
11705}
11706_ACEOF
11707rm -f conftest.$ac_objext
11708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11709 (eval $ac_compile) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest.$ac_objext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_cv_type_int8=yes
11729else
11730 echo "$as_me: failed program was:" >&5
11731sed 's/^/| /' conftest.$ac_ext >&5
11732
11733ac_cv_type_int8=no
11734fi
11735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11736fi
11737echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
11738echo "${ECHO_T}$ac_cv_type_int8" >&6
11739if test $ac_cv_type_int8 = yes; then
11740
11741cat >>confdefs.h <<_ACEOF
11742#define HAVE_INT8 1
11743_ACEOF
11744
11745
11746fi
11747echo "$as_me:$LINENO: checking for int16" >&5
11748echo $ECHO_N "checking for int16... $ECHO_C" >&6
11749if test "${ac_cv_type_int16+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751else
11752 cat >conftest.$ac_ext <<_ACEOF
11753/* confdefs.h. */
11754_ACEOF
11755cat confdefs.h >>conftest.$ac_ext
11756cat >>conftest.$ac_ext <<_ACEOF
11757/* end confdefs.h. */
11758
11759#if HAVE_INTTYPES_H
11760# include <inttypes.h>
11761#endif
11762
11763
11764int
11765main ()
11766{
11767if ((int16 *) 0)
11768 return 0;
11769if (sizeof (int16))
11770 return 0;
11771 ;
11772 return 0;
11773}
11774_ACEOF
11775rm -f conftest.$ac_objext
11776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11777 (eval $ac_compile) 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; } &&
11790 { ac_try='test -s conftest.$ac_objext'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 ac_cv_type_int16=yes
11797else
11798 echo "$as_me: failed program was:" >&5
11799sed 's/^/| /' conftest.$ac_ext >&5
11800
11801ac_cv_type_int16=no
11802fi
11803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11804fi
11805echo "$as_me:$LINENO: result: $ac_cv_type_int16" >&5
11806echo "${ECHO_T}$ac_cv_type_int16" >&6
11807if test $ac_cv_type_int16 = yes; then
11808
11809cat >>confdefs.h <<_ACEOF
11810#define HAVE_INT16 1
11811_ACEOF
11812
11813
11814fi
11815echo "$as_me:$LINENO: checking for int32" >&5
11816echo $ECHO_N "checking for int32... $ECHO_C" >&6
11817if test "${ac_cv_type_int32+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819else
11820 cat >conftest.$ac_ext <<_ACEOF
11821/* confdefs.h. */
11822_ACEOF
11823cat confdefs.h >>conftest.$ac_ext
11824cat >>conftest.$ac_ext <<_ACEOF
11825/* end confdefs.h. */
11826
11827#if HAVE_INTTYPES_H
11828# include <inttypes.h>
11829#endif
11830
11831
11832int
11833main ()
11834{
11835if ((int32 *) 0)
11836 return 0;
11837if (sizeof (int32))
11838 return 0;
11839 ;
11840 return 0;
11841}
11842_ACEOF
11843rm -f conftest.$ac_objext
11844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11845 (eval $ac_compile) 2>conftest.er1
11846 ac_status=$?
11847 grep -v '^ *+' conftest.er1 >conftest.err
11848 rm -f conftest.er1
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } &&
11852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; } &&
11858 { ac_try='test -s conftest.$ac_objext'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; }; then
11864 ac_cv_type_int32=yes
11865else
11866 echo "$as_me: failed program was:" >&5
11867sed 's/^/| /' conftest.$ac_ext >&5
11868
11869ac_cv_type_int32=no
11870fi
11871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11872fi
11873echo "$as_me:$LINENO: result: $ac_cv_type_int32" >&5
11874echo "${ECHO_T}$ac_cv_type_int32" >&6
11875if test $ac_cv_type_int32 = yes; then
11876
11877cat >>confdefs.h <<_ACEOF
11878#define HAVE_INT32 1
11879_ACEOF
11880
11881
11882fi
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896for ac_func in floor isascii memmove memset mmap pow sqrt strchr strrchr strstr strtol
11897do
11898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11899echo "$as_me:$LINENO: checking for $ac_func" >&5
11900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11901if eval "test \"\${$as_ac_var+set}\" = set"; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903else
11904 cat >conftest.$ac_ext <<_ACEOF
11905/* confdefs.h. */
11906_ACEOF
11907cat confdefs.h >>conftest.$ac_ext
11908cat >>conftest.$ac_ext <<_ACEOF
11909/* end confdefs.h. */
11910/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11912#define $ac_func innocuous_$ac_func
11913
11914/* System header to define __stub macros and hopefully few prototypes,
11915 which can conflict with char $ac_func (); below.
11916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11917 <limits.h> exists even on freestanding compilers. */
11918
11919#ifdef __STDC__
11920# include <limits.h>
11921#else
11922# include <assert.h>
11923#endif
11924
11925#undef $ac_func
11926
11927/* Override any gcc2 internal prototype to avoid an error. */
11928#ifdef __cplusplus
11929extern "C"
11930{
11931#endif
11932/* We use char because int might match the return type of a gcc2
11933 builtin and then its argument prototype would still apply. */
11934char $ac_func ();
11935/* The GNU C library defines this for functions which it implements
11936 to always fail with ENOSYS. Some functions are actually named
11937 something starting with __ and the normal name is an alias. */
11938#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11939choke me
11940#else
11941char (*f) () = $ac_func;
11942#endif
11943#ifdef __cplusplus
11944}
11945#endif
11946
11947int
11948main ()
11949{
11950return f != $ac_func;
11951 ;
11952 return 0;
11953}
11954_ACEOF
11955rm -f conftest.$ac_objext conftest$ac_exeext
11956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; } &&
11970 { ac_try='test -s conftest$ac_exeext'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 eval "$as_ac_var=yes"
11977else
11978 echo "$as_me: failed program was:" >&5
11979sed 's/^/| /' conftest.$ac_ext >&5
11980
11981eval "$as_ac_var=no"
11982fi
11983rm -f conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985fi
11986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11987echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11988if test `eval echo '${'$as_ac_var'}'` = yes; then
11989 cat >>confdefs.h <<_ACEOF
11990#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11991_ACEOF
11992
11993fi
11994done
11995
11996
11997
11998for ac_func in getopt
11999do
12000as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12001echo "$as_me:$LINENO: checking for $ac_func" >&5
12002echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12003if eval "test \"\${$as_ac_var+set}\" = set"; then
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12005else
12006 cat >conftest.$ac_ext <<_ACEOF
12007/* confdefs.h. */
12008_ACEOF
12009cat confdefs.h >>conftest.$ac_ext
12010cat >>conftest.$ac_ext <<_ACEOF
12011/* end confdefs.h. */
12012/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12014#define $ac_func innocuous_$ac_func
12015
12016/* System header to define __stub macros and hopefully few prototypes,
12017 which can conflict with char $ac_func (); below.
12018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12019 <limits.h> exists even on freestanding compilers. */
12020
12021#ifdef __STDC__
12022# include <limits.h>
12023#else
12024# include <assert.h>
12025#endif
12026
12027#undef $ac_func
12028
12029/* Override any gcc2 internal prototype to avoid an error. */
12030#ifdef __cplusplus
12031extern "C"
12032{
12033#endif
12034/* We use char because int might match the return type of a gcc2
12035 builtin and then its argument prototype would still apply. */
12036char $ac_func ();
12037/* The GNU C library defines this for functions which it implements
12038 to always fail with ENOSYS. Some functions are actually named
12039 something starting with __ and the normal name is an alias. */
12040#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12041choke me
12042#else
12043char (*f) () = $ac_func;
12044#endif
12045#ifdef __cplusplus
12046}
12047#endif
12048
12049int
12050main ()
12051{
12052return f != $ac_func;
12053 ;
12054 return 0;
12055}
12056_ACEOF
12057rm -f conftest.$ac_objext conftest$ac_exeext
12058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12059 (eval $ac_link) 2>conftest.er1
12060 ac_status=$?
12061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
12066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest$ac_exeext'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 eval "$as_ac_var=yes"
12079else
12080 echo "$as_me: failed program was:" >&5
12081sed 's/^/| /' conftest.$ac_ext >&5
12082
12083eval "$as_ac_var=no"
12084fi
12085rm -f conftest.err conftest.$ac_objext \
12086 conftest$ac_exeext conftest.$ac_ext
12087fi
12088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12089echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12090if test `eval echo '${'$as_ac_var'}'` = yes; then
12091 cat >>confdefs.h <<_ACEOF
12092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12093_ACEOF
12094
12095else
12096 case $LIBOBJS in
12097 "$ac_func.$ac_objext" | \
12098 *" $ac_func.$ac_objext" | \
12099 "$ac_func.$ac_objext "* | \
12100 *" $ac_func.$ac_objext "* ) ;;
12101 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12102esac
12103
12104fi
12105done
12106
12107
12108
12109for ac_func in strcasecmp
12110do
12111as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12112echo "$as_me:$LINENO: checking for $ac_func" >&5
12113echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12114if eval "test \"\${$as_ac_var+set}\" = set"; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12116else
12117 cat >conftest.$ac_ext <<_ACEOF
12118/* confdefs.h. */
12119_ACEOF
12120cat confdefs.h >>conftest.$ac_ext
12121cat >>conftest.$ac_ext <<_ACEOF
12122/* end confdefs.h. */
12123/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12125#define $ac_func innocuous_$ac_func
12126
12127/* System header to define __stub macros and hopefully few prototypes,
12128 which can conflict with char $ac_func (); below.
12129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12130 <limits.h> exists even on freestanding compilers. */
12131
12132#ifdef __STDC__
12133# include <limits.h>
12134#else
12135# include <assert.h>
12136#endif
12137
12138#undef $ac_func
12139
12140/* Override any gcc2 internal prototype to avoid an error. */
12141#ifdef __cplusplus
12142extern "C"
12143{
12144#endif
12145/* We use char because int might match the return type of a gcc2
12146 builtin and then its argument prototype would still apply. */
12147char $ac_func ();
12148/* The GNU C library defines this for functions which it implements
12149 to always fail with ENOSYS. Some functions are actually named
12150 something starting with __ and the normal name is an alias. */
12151#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12152choke me
12153#else
12154char (*f) () = $ac_func;
12155#endif
12156#ifdef __cplusplus
12157}
12158#endif
12159
12160int
12161main ()
12162{
12163return f != $ac_func;
12164 ;
12165 return 0;
12166}
12167_ACEOF
12168rm -f conftest.$ac_objext conftest$ac_exeext
12169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12170 (eval $ac_link) 2>conftest.er1
12171 ac_status=$?
12172 grep -v '^ *+' conftest.er1 >conftest.err
12173 rm -f conftest.er1
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; } &&
12183 { ac_try='test -s conftest$ac_exeext'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 eval "$as_ac_var=yes"
12190else
12191 echo "$as_me: failed program was:" >&5
12192sed 's/^/| /' conftest.$ac_ext >&5
12193
12194eval "$as_ac_var=no"
12195fi
12196rm -f conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
12198fi
12199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12200echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12201if test `eval echo '${'$as_ac_var'}'` = yes; then
12202 cat >>confdefs.h <<_ACEOF
12203#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12204_ACEOF
12205
12206else
12207 case $LIBOBJS in
12208 "$ac_func.$ac_objext" | \
12209 *" $ac_func.$ac_objext" | \
12210 "$ac_func.$ac_objext "* | \
12211 *" $ac_func.$ac_objext "* ) ;;
12212 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12213esac
12214
12215fi
12216done
12217
12218
12219
12220for ac_func in strtoul
12221do
12222as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12223echo "$as_me:$LINENO: checking for $ac_func" >&5
12224echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12225if eval "test \"\${$as_ac_var+set}\" = set"; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12227else
12228 cat >conftest.$ac_ext <<_ACEOF
12229/* confdefs.h. */
12230_ACEOF
12231cat confdefs.h >>conftest.$ac_ext
12232cat >>conftest.$ac_ext <<_ACEOF
12233/* end confdefs.h. */
12234/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12236#define $ac_func innocuous_$ac_func
12237
12238/* System header to define __stub macros and hopefully few prototypes,
12239 which can conflict with char $ac_func (); below.
12240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12241 <limits.h> exists even on freestanding compilers. */
12242
12243#ifdef __STDC__
12244# include <limits.h>
12245#else
12246# include <assert.h>
12247#endif
12248
12249#undef $ac_func
12250
12251/* Override any gcc2 internal prototype to avoid an error. */
12252#ifdef __cplusplus
12253extern "C"
12254{
12255#endif
12256/* We use char because int might match the return type of a gcc2
12257 builtin and then its argument prototype would still apply. */
12258char $ac_func ();
12259/* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12263choke me
12264#else
12265char (*f) () = $ac_func;
12266#endif
12267#ifdef __cplusplus
12268}
12269#endif
12270
12271int
12272main ()
12273{
12274return f != $ac_func;
12275 ;
12276 return 0;
12277}
12278_ACEOF
12279rm -f conftest.$ac_objext conftest$ac_exeext
12280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281 (eval $ac_link) 2>conftest.er1
12282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest$ac_exeext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 eval "$as_ac_var=yes"
12301else
12302 echo "$as_me: failed program was:" >&5
12303sed 's/^/| /' conftest.$ac_ext >&5
12304
12305eval "$as_ac_var=no"
12306fi
12307rm -f conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12309fi
12310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12311echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12312if test `eval echo '${'$as_ac_var'}'` = yes; then
12313 cat >>confdefs.h <<_ACEOF
12314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12315_ACEOF
12316
12317else
12318 case $LIBOBJS in
12319 "$ac_func.$ac_objext" | \
12320 *" $ac_func.$ac_objext" | \
12321 "$ac_func.$ac_objext "* | \
12322 *" $ac_func.$ac_objext "* ) ;;
12323 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12324esac
12325
12326fi
12327done
12328
12329
12330
12331for ac_func in lfind
12332do
12333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12334echo "$as_me:$LINENO: checking for $ac_func" >&5
12335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12336if eval "test \"\${$as_ac_var+set}\" = set"; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338else
12339 cat >conftest.$ac_ext <<_ACEOF
12340/* confdefs.h. */
12341_ACEOF
12342cat confdefs.h >>conftest.$ac_ext
12343cat >>conftest.$ac_ext <<_ACEOF
12344/* end confdefs.h. */
12345/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12347#define $ac_func innocuous_$ac_func
12348
12349/* System header to define __stub macros and hopefully few prototypes,
12350 which can conflict with char $ac_func (); below.
12351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12352 <limits.h> exists even on freestanding compilers. */
12353
12354#ifdef __STDC__
12355# include <limits.h>
12356#else
12357# include <assert.h>
12358#endif
12359
12360#undef $ac_func
12361
12362/* Override any gcc2 internal prototype to avoid an error. */
12363#ifdef __cplusplus
12364extern "C"
12365{
12366#endif
12367/* We use char because int might match the return type of a gcc2
12368 builtin and then its argument prototype would still apply. */
12369char $ac_func ();
12370/* The GNU C library defines this for functions which it implements
12371 to always fail with ENOSYS. Some functions are actually named
12372 something starting with __ and the normal name is an alias. */
12373#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12374choke me
12375#else
12376char (*f) () = $ac_func;
12377#endif
12378#ifdef __cplusplus
12379}
12380#endif
12381
12382int
12383main ()
12384{
12385return f != $ac_func;
12386 ;
12387 return 0;
12388}
12389_ACEOF
12390rm -f conftest.$ac_objext conftest$ac_exeext
12391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12392 (eval $ac_link) 2>conftest.er1
12393 ac_status=$?
12394 grep -v '^ *+' conftest.er1 >conftest.err
12395 rm -f conftest.er1
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } &&
12399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest$ac_exeext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 eval "$as_ac_var=yes"
12412else
12413 echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
12416eval "$as_ac_var=no"
12417fi
12418rm -f conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
12420fi
12421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12422echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12423if test `eval echo '${'$as_ac_var'}'` = yes; then
12424 cat >>confdefs.h <<_ACEOF
12425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12426_ACEOF
12427
12428else
12429 case $LIBOBJS in
12430 "$ac_func.$ac_objext" | \
12431 *" $ac_func.$ac_objext" | \
12432 "$ac_func.$ac_objext "* | \
12433 *" $ac_func.$ac_objext "* ) ;;
12434 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12435esac
12436
12437fi
12438done
12439
12440
12441
12442echo "$as_me:$LINENO: checking native cpu bit order" >&5
12443echo $ECHO_N "checking native cpu bit order... $ECHO_C" >&6
12444case "$target_cpu" in
12445 i*86*)
12446 HOST_FILLORDER=FILLORDER_LSB2MSB
12447 echo "$as_me:$LINENO: result: lsb2msb" >&5
12448echo "${ECHO_T}lsb2msb" >&6
12449 ;;
12450 *)
12451 HOST_FILLORDER=FILLORDER_MSB2LSB
12452 echo "$as_me:$LINENO: result: msb2lsb" >&5
12453echo "${ECHO_T}msb2lsb" >&6
12454 ;;
12455esac
12456
12457cat >>confdefs.h <<_ACEOF
12458#define HOST_FILLORDER $HOST_FILLORDER
12459_ACEOF
12460
12461
12462if test "$ac_cv_c_bigendian" = yes ; then
12463 HOST_BIGENDIAN=1
12464else
12465 HOST_BIGENDIAN=0
12466fi
12467
12468cat >>confdefs.h <<_ACEOF
12469#define HOST_BIGENDIAN $HOST_BIGENDIAN
12470_ACEOF
12471
12472
12473#_POSIX_C_SOURCE=2
12474#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.])
12475
12476HAVE_IEEEFP=1
12477
12478cat >>confdefs.h <<_ACEOF
12479#define HAVE_IEEEFP $HAVE_IEEEFP
12480_ACEOF
12481
12482
12483
12484# Check whether --enable-rpath or --disable-rpath was given.
12485if test "${enable_rpath+set}" = set; then
12486 enableval="$enable_rpath"
12487 HAVE_RPATH=$enableval
12488else
12489 HAVE_RPATH=no
12490fi;
12491
12492
12493if test "$HAVE_RPATH" = "yes"; then
12494 HAVE_RPATH_TRUE=
12495 HAVE_RPATH_FALSE='#'
12496else
12497 HAVE_RPATH_TRUE='#'
12498 HAVE_RPATH_FALSE=
12499fi
12500
12501
12502
12503# Check whether --enable-largefile or --disable-largefile was given.
12504if test "${enable_largefile+set}" = set; then
12505 enableval="$enable_largefile"
12506
12507fi;
12508if test "$enable_largefile" != no; then
12509
12510 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
12511echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
12512if test "${ac_cv_sys_largefile_CC+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12514else
12515 ac_cv_sys_largefile_CC=no
12516 if test "$GCC" != yes; then
12517 ac_save_CC=$CC
12518 while :; do
12519 # IRIX 6.2 and later do not support large files by default,
12520 # so use the C compiler's -n32 option if that helps.
12521 cat >conftest.$ac_ext <<_ACEOF
12522/* confdefs.h. */
12523_ACEOF
12524cat confdefs.h >>conftest.$ac_ext
12525cat >>conftest.$ac_ext <<_ACEOF
12526/* end confdefs.h. */
12527#include <sys/types.h>
12528 /* Check that off_t can represent 2**63 - 1 correctly.
12529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12530 since some C++ compilers masquerading as C compilers
12531 incorrectly reject 9223372036854775807. */
12532#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12534 && LARGE_OFF_T % 2147483647 == 1)
12535 ? 1 : -1];
12536int
12537main ()
12538{
12539
12540 ;
12541 return 0;
12542}
12543_ACEOF
12544 rm -f conftest.$ac_objext
12545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12546 (eval $ac_compile) 2>conftest.er1
12547 ac_status=$?
12548 grep -v '^ *+' conftest.er1 >conftest.err
12549 rm -f conftest.er1
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } &&
12553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; } &&
12559 { ac_try='test -s conftest.$ac_objext'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 break
12566else
12567 echo "$as_me: failed program was:" >&5
12568sed 's/^/| /' conftest.$ac_ext >&5
12569
12570fi
12571rm -f conftest.err conftest.$ac_objext
12572 CC="$CC -n32"
12573 rm -f conftest.$ac_objext
12574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12575 (eval $ac_compile) 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
12582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; } &&
12588 { ac_try='test -s conftest.$ac_objext'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; }; then
12594 ac_cv_sys_largefile_CC=' -n32'; break
12595else
12596 echo "$as_me: failed program was:" >&5
12597sed 's/^/| /' conftest.$ac_ext >&5
12598
12599fi
12600rm -f conftest.err conftest.$ac_objext
12601 break
12602 done
12603 CC=$ac_save_CC
12604 rm -f conftest.$ac_ext
12605 fi
12606fi
12607echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
12608echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
12609 if test "$ac_cv_sys_largefile_CC" != no; then
12610 CC=$CC$ac_cv_sys_largefile_CC
12611 fi
12612
12613 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12614echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
12615if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617else
12618 while :; do
12619 ac_cv_sys_file_offset_bits=no
12620 cat >conftest.$ac_ext <<_ACEOF
12621/* confdefs.h. */
12622_ACEOF
12623cat confdefs.h >>conftest.$ac_ext
12624cat >>conftest.$ac_ext <<_ACEOF
12625/* end confdefs.h. */
12626#include <sys/types.h>
12627 /* Check that off_t can represent 2**63 - 1 correctly.
12628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12629 since some C++ compilers masquerading as C compilers
12630 incorrectly reject 9223372036854775807. */
12631#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12633 && LARGE_OFF_T % 2147483647 == 1)
12634 ? 1 : -1];
12635int
12636main ()
12637{
12638
12639 ;
12640 return 0;
12641}
12642_ACEOF
12643rm -f conftest.$ac_objext
12644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12645 (eval $ac_compile) 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; } &&
12658 { ac_try='test -s conftest.$ac_objext'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; }; then
12664 break
12665else
12666 echo "$as_me: failed program was:" >&5
12667sed 's/^/| /' conftest.$ac_ext >&5
12668
12669fi
12670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12671 cat >conftest.$ac_ext <<_ACEOF
12672/* confdefs.h. */
12673_ACEOF
12674cat confdefs.h >>conftest.$ac_ext
12675cat >>conftest.$ac_ext <<_ACEOF
12676/* end confdefs.h. */
12677#define _FILE_OFFSET_BITS 64
12678#include <sys/types.h>
12679 /* Check that off_t can represent 2**63 - 1 correctly.
12680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12681 since some C++ compilers masquerading as C compilers
12682 incorrectly reject 9223372036854775807. */
12683#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12685 && LARGE_OFF_T % 2147483647 == 1)
12686 ? 1 : -1];
12687int
12688main ()
12689{
12690
12691 ;
12692 return 0;
12693}
12694_ACEOF
12695rm -f conftest.$ac_objext
12696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12697 (eval $ac_compile) 2>conftest.er1
12698 ac_status=$?
12699 grep -v '^ *+' conftest.er1 >conftest.err
12700 rm -f conftest.er1
12701 cat conftest.err >&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
12704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; } &&
12710 { ac_try='test -s conftest.$ac_objext'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 ac_cv_sys_file_offset_bits=64; break
12717else
12718 echo "$as_me: failed program was:" >&5
12719sed 's/^/| /' conftest.$ac_ext >&5
12720
12721fi
12722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12723 break
12724done
12725fi
12726echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
12727echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
12728if test "$ac_cv_sys_file_offset_bits" != no; then
12729
12730cat >>confdefs.h <<_ACEOF
12731#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12732_ACEOF
12733
12734fi
12735rm -f conftest*
12736 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
12737echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
12738if test "${ac_cv_sys_large_files+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12740else
12741 while :; do
12742 ac_cv_sys_large_files=no
12743 cat >conftest.$ac_ext <<_ACEOF
12744/* confdefs.h. */
12745_ACEOF
12746cat confdefs.h >>conftest.$ac_ext
12747cat >>conftest.$ac_ext <<_ACEOF
12748/* end confdefs.h. */
12749#include <sys/types.h>
12750 /* Check that off_t can represent 2**63 - 1 correctly.
12751 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12752 since some C++ compilers masquerading as C compilers
12753 incorrectly reject 9223372036854775807. */
12754#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12755 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12756 && LARGE_OFF_T % 2147483647 == 1)
12757 ? 1 : -1];
12758int
12759main ()
12760{
12761
12762 ;
12763 return 0;
12764}
12765_ACEOF
12766rm -f conftest.$ac_objext
12767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12768 (eval $ac_compile) 2>conftest.er1
12769 ac_status=$?
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try='test -s conftest.$ac_objext'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 break
12788else
12789 echo "$as_me: failed program was:" >&5
12790sed 's/^/| /' conftest.$ac_ext >&5
12791
12792fi
12793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12794 cat >conftest.$ac_ext <<_ACEOF
12795/* confdefs.h. */
12796_ACEOF
12797cat confdefs.h >>conftest.$ac_ext
12798cat >>conftest.$ac_ext <<_ACEOF
12799/* end confdefs.h. */
12800#define _LARGE_FILES 1
12801#include <sys/types.h>
12802 /* Check that off_t can represent 2**63 - 1 correctly.
12803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12804 since some C++ compilers masquerading as C compilers
12805 incorrectly reject 9223372036854775807. */
12806#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12808 && LARGE_OFF_T % 2147483647 == 1)
12809 ? 1 : -1];
12810int
12811main ()
12812{
12813
12814 ;
12815 return 0;
12816}
12817_ACEOF
12818rm -f conftest.$ac_objext
12819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
12827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; } &&
12833 { ac_try='test -s conftest.$ac_objext'
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12836 ac_status=$?
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12839 ac_cv_sys_large_files=1; break
12840else
12841 echo "$as_me: failed program was:" >&5
12842sed 's/^/| /' conftest.$ac_ext >&5
12843
12844fi
12845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12846 break
12847done
12848fi
12849echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
12850echo "${ECHO_T}$ac_cv_sys_large_files" >&6
12851if test "$ac_cv_sys_large_files" != no; then
12852
12853cat >>confdefs.h <<_ACEOF
12854#define _LARGE_FILES $ac_cv_sys_large_files
12855_ACEOF
12856
12857fi
12858rm -f conftest*
12859fi
12860
12861
12862
12863LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
12864
12865
12866# Check whether --with-docdir or --without-docdir was given.
12867if test "${with_docdir+set}" = set; then
12868 withval="$with_docdir"
12869
12870fi;
12871if test "x$with_docdir" != "x" ; then
12872 LIBTIFF_DOCDIR=$with_docdir
12873fi
12874
12875
12876
12877
12878# Check whether --enable-ccitt or --disable-ccitt was given.
12879if test "${enable_ccitt+set}" = set; then
12880 enableval="$enable_ccitt"
12881 HAVE_CCITT=$enableval
12882else
12883 HAVE_CCITT=yes
12884fi;
12885
12886if test "$HAVE_CCITT" = "yes" ; then
12887
12888cat >>confdefs.h <<\_ACEOF
12889#define CCITT_SUPPORT 1
12890_ACEOF
12891
12892fi
12893
12894# Check whether --enable-packbits or --disable-packbits was given.
12895if test "${enable_packbits+set}" = set; then
12896 enableval="$enable_packbits"
12897 HAVE_PACKBITS=$enableval
12898else
12899 HAVE_PACKBITS=yes
12900fi;
12901
12902if test "$HAVE_PACKBITS" = "yes" ; then
12903
12904cat >>confdefs.h <<\_ACEOF
12905#define PACKBITS_SUPPORT 1
12906_ACEOF
12907
12908fi
12909
12910# Check whether --enable-lzw or --disable-lzw was given.
12911if test "${enable_lzw+set}" = set; then
12912 enableval="$enable_lzw"
12913 HAVE_LZW=$enableval
12914else
12915 HAVE_LZW=yes
12916fi;
12917
12918if test "$HAVE_LZW" = "yes" ; then
12919
12920cat >>confdefs.h <<\_ACEOF
12921#define LZW_SUPPORT 1
12922_ACEOF
12923
12924fi
12925
12926# Check whether --enable-thunder or --disable-thunder was given.
12927if test "${enable_thunder+set}" = set; then
12928 enableval="$enable_thunder"
12929 HAVE_THUNDER=$enableval
12930else
12931 HAVE_THUNDER=yes
12932fi;
12933
12934if test "$HAVE_THUNDER" = "yes" ; then
12935
12936cat >>confdefs.h <<\_ACEOF
12937#define THUNDER_SUPPORT 1
12938_ACEOF
12939
12940fi
12941
12942HAVE_NEXT=yes
12943
12944# Check whether --enable-next or --disable-next was given.
12945if test "${enable_next+set}" = set; then
12946 enableval="$enable_next"
12947 HAVE_NEXT=$enableval
12948else
12949 HAVE_NEXT=yes
12950fi;
12951
12952if test "$HAVE_NEXT" = "yes" ; then
12953
12954cat >>confdefs.h <<\_ACEOF
12955#define NEXT_SUPPORT 1
12956_ACEOF
12957
12958fi
12959
12960# Check whether --enable-logluv or --disable-logluv was given.
12961if test "${enable_logluv+set}" = set; then
12962 enableval="$enable_logluv"
12963 HAVE_LOGLUV=$enableval
12964else
12965 HAVE_LOGLUV=yes
12966fi;
12967
12968if test "$HAVE_LOGLUV" = "yes" ; then
12969
12970cat >>confdefs.h <<\_ACEOF
12971#define LOGLUV_SUPPORT 1
12972_ACEOF
12973
12974fi
12975
12976
12977# Check whether --enable-mdi or --disable-mdi was given.
12978if test "${enable_mdi+set}" = set; then
12979 enableval="$enable_mdi"
12980 HAVE_MDI=$enableval
12981else
12982 HAVE_MDI=yes
12983fi;
12984
12985if test "$HAVE_MDI" = "yes" ; then
12986
12987cat >>confdefs.h <<\_ACEOF
12988#define MDI_SUPPORT 1
12989_ACEOF
12990
12991fi
12992
12993
12994HAVE_ZLIB=no
12995
12996# Check whether --enable-zlib or --disable-zlib was given.
12997if test "${enable_zlib+set}" = set; then
12998 enableval="$enable_zlib"
12999
13000fi;
13001
13002# Check whether --with-zlib-include-dir or --without-zlib-include-dir was given.
13003if test "${with_zlib_include_dir+set}" = set; then
13004 withval="$with_zlib_include_dir"
13005
13006fi;
13007
13008# Check whether --with-zlib-lib-dir or --without-zlib-lib-dir was given.
13009if test "${with_zlib_lib_dir+set}" = set; then
13010 withval="$with_zlib_lib_dir"
13011
13012fi;
13013
13014if test "x$enable_zlib" != "xno" ; then
13015
13016 if test "x$with_zlib_lib_dir" != "x" ; then
13017 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
13018 fi
13019
13020 echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
13021echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
13022if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13024else
13025 ac_check_lib_save_LIBS=$LIBS
13026LIBS="-lz $LIBS"
13027cat >conftest.$ac_ext <<_ACEOF
13028/* confdefs.h. */
13029_ACEOF
13030cat confdefs.h >>conftest.$ac_ext
13031cat >>conftest.$ac_ext <<_ACEOF
13032/* end confdefs.h. */
13033
13034/* Override any gcc2 internal prototype to avoid an error. */
13035#ifdef __cplusplus
13036extern "C"
13037#endif
13038/* We use char because int might match the return type of a gcc2
13039 builtin and then its argument prototype would still apply. */
13040char inflateEnd ();
13041int
13042main ()
13043{
13044inflateEnd ();
13045 ;
13046 return 0;
13047}
13048_ACEOF
13049rm -f conftest.$ac_objext conftest$ac_exeext
13050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13051 (eval $ac_link) 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; } &&
13064 { ac_try='test -s conftest$ac_exeext'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13070 ac_cv_lib_z_inflateEnd=yes
13071else
13072 echo "$as_me: failed program was:" >&5
13073sed 's/^/| /' conftest.$ac_ext >&5
13074
13075ac_cv_lib_z_inflateEnd=no
13076fi
13077rm -f conftest.err conftest.$ac_objext \
13078 conftest$ac_exeext conftest.$ac_ext
13079LIBS=$ac_check_lib_save_LIBS
13080fi
13081echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
13082echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
13083if test $ac_cv_lib_z_inflateEnd = yes; then
13084 zlib_lib=yes
13085else
13086 zlib_lib=no
13087fi
13088
13089 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then
13090 { { echo "$as_me:$LINENO: error: Zlib library not found at $with_zlib_lib_dir" >&5
13091echo "$as_me: error: Zlib library not found at $with_zlib_lib_dir" >&2;}
13092 { (exit 1); exit 1; }; }
13093 fi
13094
13095 if test "x$with_zlib_include_dir" != "x" ; then
13096 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
13097 fi
13098 if test "${ac_cv_header_zlib_h+set}" = set; then
13099 echo "$as_me:$LINENO: checking for zlib.h" >&5
13100echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
13101if test "${ac_cv_header_zlib_h+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13103fi
13104echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13105echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
13106else
13107 # Is the header compilable?
13108echo "$as_me:$LINENO: checking zlib.h usability" >&5
13109echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
13110cat >conftest.$ac_ext <<_ACEOF
13111/* confdefs.h. */
13112_ACEOF
13113cat confdefs.h >>conftest.$ac_ext
13114cat >>conftest.$ac_ext <<_ACEOF
13115/* end confdefs.h. */
13116$ac_includes_default
13117#include <zlib.h>
13118_ACEOF
13119rm -f conftest.$ac_objext
13120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13121 (eval $ac_compile) 2>conftest.er1
13122 ac_status=$?
13123 grep -v '^ *+' conftest.er1 >conftest.err
13124 rm -f conftest.er1
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
13128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13131 ac_status=$?
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; } &&
13134 { ac_try='test -s conftest.$ac_objext'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13137 ac_status=$?
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
13140 ac_header_compiler=yes
13141else
13142 echo "$as_me: failed program was:" >&5
13143sed 's/^/| /' conftest.$ac_ext >&5
13144
13145ac_header_compiler=no
13146fi
13147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13148echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13149echo "${ECHO_T}$ac_header_compiler" >&6
13150
13151# Is the header present?
13152echo "$as_me:$LINENO: checking zlib.h presence" >&5
13153echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
13154cat >conftest.$ac_ext <<_ACEOF
13155/* confdefs.h. */
13156_ACEOF
13157cat confdefs.h >>conftest.$ac_ext
13158cat >>conftest.$ac_ext <<_ACEOF
13159/* end confdefs.h. */
13160#include <zlib.h>
13161_ACEOF
13162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13164 ac_status=$?
13165 grep -v '^ *+' conftest.er1 >conftest.err
13166 rm -f conftest.er1
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } >/dev/null; then
13170 if test -s conftest.err; then
13171 ac_cpp_err=$ac_c_preproc_warn_flag
13172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13173 else
13174 ac_cpp_err=
13175 fi
13176else
13177 ac_cpp_err=yes
13178fi
13179if test -z "$ac_cpp_err"; then
13180 ac_header_preproc=yes
13181else
13182 echo "$as_me: failed program was:" >&5
13183sed 's/^/| /' conftest.$ac_ext >&5
13184
13185 ac_header_preproc=no
13186fi
13187rm -f conftest.err conftest.$ac_ext
13188echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13189echo "${ECHO_T}$ac_header_preproc" >&6
13190
13191# So? What about this header?
13192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13193 yes:no: )
13194 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13195echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13196 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
13197echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
13198 ac_header_preproc=yes
13199 ;;
13200 no:yes:* )
13201 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
13202echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
13203 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
13204echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
13205 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
13206echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
13207 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
13208echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13209 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
13210echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
13211 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
13212echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
13213 (
13214 cat <<\_ASBOX
13215## -------------------------------------- ##
13216## Report this to tiff@lists.maptools.org ##
13217## -------------------------------------- ##
13218_ASBOX
13219 ) |
13220 sed "s/^/$as_me: WARNING: /" >&2
13221 ;;
13222esac
13223echo "$as_me:$LINENO: checking for zlib.h" >&5
13224echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
13225if test "${ac_cv_header_zlib_h+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13227else
13228 ac_cv_header_zlib_h=$ac_header_preproc
13229fi
13230echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13231echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
13232
13233fi
13234if test $ac_cv_header_zlib_h = yes; then
13235 zlib_h=yes
13236else
13237 zlib_h=no
13238fi
13239
13240
13241 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then
13242 { { echo "$as_me:$LINENO: error: Zlib headers not found at $with_zlib_include_dir" >&5
13243echo "$as_me: error: Zlib headers not found at $with_zlib_include_dir" >&2;}
13244 { (exit 1); exit 1; }; }
13245 fi
13246
13247 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
13248 HAVE_ZLIB=yes
13249 fi
13250
13251fi
13252
13253if test "$HAVE_ZLIB" = "yes" ; then
13254
13255cat >>confdefs.h <<\_ACEOF
13256#define ZIP_SUPPORT 1
13257_ACEOF
13258
13259 LIBS="-lz $LIBS"
13260
13261 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then
13262 LIBDIR="-R $with_zlib_lib_dir $LIBDIR"
13263 fi
13264
13265fi
13266
13267
13268# Check whether --enable-pixarlog or --disable-pixarlog was given.
13269if test "${enable_pixarlog+set}" = set; then
13270 enableval="$enable_pixarlog"
13271 HAVE_PIXARLOG=$enableval
13272else
13273 HAVE_PIXARLOG=yes
13274fi;
13275
13276if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
13277
13278cat >>confdefs.h <<\_ACEOF
13279#define PIXARLOG_SUPPORT 1
13280_ACEOF
13281
13282else
13283 HAVE_PIXARLOG=no
13284fi
13285
13286
13287HAVE_JPEG=no
13288
13289# Check whether --enable-jpeg or --disable-jpeg was given.
13290if test "${enable_jpeg+set}" = set; then
13291 enableval="$enable_jpeg"
13292
13293fi;
13294
13295# Check whether --with-jpeg-include-dir or --without-jpeg-include-dir was given.
13296if test "${with_jpeg_include_dir+set}" = set; then
13297 withval="$with_jpeg_include_dir"
13298
13299fi;
13300
13301# Check whether --with-jpeg-lib-dir or --without-jpeg-lib-dir was given.
13302if test "${with_jpeg_lib_dir+set}" = set; then
13303 withval="$with_jpeg_lib_dir"
13304
13305fi;
13306
13307if test "x$enable_jpeg" != "xno" ; then
13308
13309 if test "x$with_jpeg_lib_dir" != "x" ; then
13310 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
13311
13312 fi
13313
13314 echo "$as_me:$LINENO: checking for jpeg_read_scanlines in -ljpeg" >&5
13315echo $ECHO_N "checking for jpeg_read_scanlines in -ljpeg... $ECHO_C" >&6
13316if test "${ac_cv_lib_jpeg_jpeg_read_scanlines+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13318else
13319 ac_check_lib_save_LIBS=$LIBS
13320LIBS="-ljpeg $LIBS"
13321cat >conftest.$ac_ext <<_ACEOF
13322/* confdefs.h. */
13323_ACEOF
13324cat confdefs.h >>conftest.$ac_ext
13325cat >>conftest.$ac_ext <<_ACEOF
13326/* end confdefs.h. */
13327
13328/* Override any gcc2 internal prototype to avoid an error. */
13329#ifdef __cplusplus
13330extern "C"
13331#endif
13332/* We use char because int might match the return type of a gcc2
13333 builtin and then its argument prototype would still apply. */
13334char jpeg_read_scanlines ();
13335int
13336main ()
13337{
13338jpeg_read_scanlines ();
13339 ;
13340 return 0;
13341}
13342_ACEOF
13343rm -f conftest.$ac_objext conftest$ac_exeext
13344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13345 (eval $ac_link) 2>conftest.er1
13346 ac_status=$?
13347 grep -v '^ *+' conftest.er1 >conftest.err
13348 rm -f conftest.er1
13349 cat conftest.err >&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); } &&
13352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; } &&
13358 { ac_try='test -s conftest$ac_exeext'
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; }; then
13364 ac_cv_lib_jpeg_jpeg_read_scanlines=yes
13365else
13366 echo "$as_me: failed program was:" >&5
13367sed 's/^/| /' conftest.$ac_ext >&5
13368
13369ac_cv_lib_jpeg_jpeg_read_scanlines=no
13370fi
13371rm -f conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13373LIBS=$ac_check_lib_save_LIBS
13374fi
13375echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
13376echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6
13377if test $ac_cv_lib_jpeg_jpeg_read_scanlines = yes; then
13378 jpeg_lib=yes
13379else
13380 jpeg_lib=no
13381fi
13382
13383 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then
13384 { { echo "$as_me:$LINENO: error: IJG JPEG library not found at $with_jpeg_lib_dir" >&5
13385echo "$as_me: error: IJG JPEG library not found at $with_jpeg_lib_dir" >&2;}
13386 { (exit 1); exit 1; }; }
13387 fi
13388
13389 if test "x$with_jpeg_include_dir" != "x" ; then
13390 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
13391 fi
13392 if test "${ac_cv_header_jpeglib_h+set}" = set; then
13393 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
13394echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
13395if test "${ac_cv_header_jpeglib_h+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13397fi
13398echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
13399echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
13400else
13401 # Is the header compilable?
13402echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
13403echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
13404cat >conftest.$ac_ext <<_ACEOF
13405/* confdefs.h. */
13406_ACEOF
13407cat confdefs.h >>conftest.$ac_ext
13408cat >>conftest.$ac_ext <<_ACEOF
13409/* end confdefs.h. */
13410$ac_includes_default
13411#include <jpeglib.h>
13412_ACEOF
13413rm -f conftest.$ac_objext
13414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13415 (eval $ac_compile) 2>conftest.er1
13416 ac_status=$?
13417 grep -v '^ *+' conftest.er1 >conftest.err
13418 rm -f conftest.er1
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest.$ac_objext'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434 ac_header_compiler=yes
13435else
13436 echo "$as_me: failed program was:" >&5
13437sed 's/^/| /' conftest.$ac_ext >&5
13438
13439ac_header_compiler=no
13440fi
13441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13442echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13443echo "${ECHO_T}$ac_header_compiler" >&6
13444
13445# Is the header present?
13446echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
13447echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
13448cat >conftest.$ac_ext <<_ACEOF
13449/* confdefs.h. */
13450_ACEOF
13451cat confdefs.h >>conftest.$ac_ext
13452cat >>conftest.$ac_ext <<_ACEOF
13453/* end confdefs.h. */
13454#include <jpeglib.h>
13455_ACEOF
13456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13458 ac_status=$?
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } >/dev/null; then
13464 if test -s conftest.err; then
13465 ac_cpp_err=$ac_c_preproc_warn_flag
13466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13467 else
13468 ac_cpp_err=
13469 fi
13470else
13471 ac_cpp_err=yes
13472fi
13473if test -z "$ac_cpp_err"; then
13474 ac_header_preproc=yes
13475else
13476 echo "$as_me: failed program was:" >&5
13477sed 's/^/| /' conftest.$ac_ext >&5
13478
13479 ac_header_preproc=no
13480fi
13481rm -f conftest.err conftest.$ac_ext
13482echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13483echo "${ECHO_T}$ac_header_preproc" >&6
13484
13485# So? What about this header?
13486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13487 yes:no: )
13488 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13489echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13490 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
13491echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
13492 ac_header_preproc=yes
13493 ;;
13494 no:yes:* )
13495 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
13496echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
13498echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
13500echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
13502echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13503 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
13504echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
13505 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
13506echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
13507 (
13508 cat <<\_ASBOX
13509## -------------------------------------- ##
13510## Report this to tiff@lists.maptools.org ##
13511## -------------------------------------- ##
13512_ASBOX
13513 ) |
13514 sed "s/^/$as_me: WARNING: /" >&2
13515 ;;
13516esac
13517echo "$as_me:$LINENO: checking for jpeglib.h" >&5
13518echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
13519if test "${ac_cv_header_jpeglib_h+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13521else
13522 ac_cv_header_jpeglib_h=$ac_header_preproc
13523fi
13524echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
13525echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
13526
13527fi
13528if test $ac_cv_header_jpeglib_h = yes; then
13529 jpeg_h=yes
13530else
13531 jpeg_h=no
13532fi
13533
13534
13535 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then
13536 { { echo "$as_me:$LINENO: error: IJG JPEG library headers not found at $with_jpeg_include_dir" >&5
13537echo "$as_me: error: IJG JPEG library headers not found at $with_jpeg_include_dir" >&2;}
13538 { (exit 1); exit 1; }; }
13539 fi
13540
13541 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
13542 HAVE_JPEG=yes
13543 fi
13544
13545fi
13546
13547if test "$HAVE_JPEG" = "yes" ; then
13548
13549cat >>confdefs.h <<\_ACEOF
13550#define JPEG_SUPPORT 1
13551_ACEOF
13552
13553 LIBS="-ljpeg $LIBS"
13554
13555 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then
13556 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR"
13557 fi
13558
13559fi
13560
13561
13562# Check whether --enable-old-jpeg or --disable-old-jpeg was given.
13563if test "${enable_old_jpeg+set}" = set; then
13564 enableval="$enable_old_jpeg"
13565 HAVE_OJPEG=$enableval
13566else
13567 HAVE_OJPEG=no
13568fi;
13569
13570if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
13571
13572cat >>confdefs.h <<\_ACEOF
13573#define OJPEG_SUPPORT 1
13574_ACEOF
13575
13576else
13577 HAVE_OJPEG=no
13578fi
13579
13580
13581# Check whether --enable-cxx or --disable-cxx was given.
13582if test "${enable_cxx+set}" = set; then
13583 enableval="$enable_cxx"
13584 HAVE_CXX=$enableval
13585else
13586 HAVE_CXX=yes
13587fi;
13588
13589if test "$HAVE_CXX" = "yes" ; then
13590
13591cat >>confdefs.h <<\_ACEOF
13592#define CXX_SUPPORT 1
13593_ACEOF
13594
13595else
13596 HAVE_CXX=no
13597fi
13598
13599
13600
13601if test "$HAVE_CXX" = "yes"; then
13602 HAVE_CXX_TRUE=
13603 HAVE_CXX_FALSE='#'
13604else
13605 HAVE_CXX_TRUE='#'
13606 HAVE_CXX_FALSE=
13607fi
13608
13609
13610
13611HAVE_OPENGL=no
13612
13613
13614if test "x$ac_path_x_has_been_run" != xyes; then
13615 echo "$as_me:$LINENO: checking for X" >&5
13616echo $ECHO_N "checking for X... $ECHO_C" >&6
13617
13618ac_path_x_has_been_run=yes
13619
13620# Check whether --with-x or --without-x was given.
13621if test "${with_x+set}" = set; then
13622 withval="$with_x"
13623
13624fi;
13625# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13626if test "x$with_x" = xno; then
13627 # The user explicitly disabled X.
13628 have_x=disabled
13629else
13630 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13631 # Both variables are already set.
13632 have_x=yes
13633 else
13634 if test "${ac_cv_have_x+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636else
13637 # One or both of the vars are not set, and there is no cached value.
13638ac_x_includes=no ac_x_libraries=no
13639rm -fr conftest.dir
13640if mkdir conftest.dir; then
13641 cd conftest.dir
13642 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13643 cat >Imakefile <<'_ACEOF'
13644acfindx:
13645 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13646_ACEOF
13647 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13648 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13649 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13650 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13651 for ac_extension in a so sl; do
13652 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13653 test -f $ac_im_libdir/libX11.$ac_extension; then
13654 ac_im_usrlibdir=$ac_im_libdir; break
13655 fi
13656 done
13657 # Screen out bogus values from the imake configuration. They are
13658 # bogus both because they are the default anyway, and because
13659 # using them would break gcc on systems where it needs fixed includes.
13660 case $ac_im_incroot in
13661 /usr/include) ;;
13662 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13663 esac
13664 case $ac_im_usrlibdir in
13665 /usr/lib | /lib) ;;
13666 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13667 esac
13668 fi
13669 cd ..
13670 rm -fr conftest.dir
13671fi
13672
13673# Standard set of common directories for X headers.
13674# Check X11 before X11Rn because it is often a symlink to the current release.
13675ac_x_header_dirs='
13676/usr/X11/include
13677/usr/X11R6/include
13678/usr/X11R5/include
13679/usr/X11R4/include
13680
13681/usr/include/X11
13682/usr/include/X11R6
13683/usr/include/X11R5
13684/usr/include/X11R4
13685
13686/usr/local/X11/include
13687/usr/local/X11R6/include
13688/usr/local/X11R5/include
13689/usr/local/X11R4/include
13690
13691/usr/local/include/X11
13692/usr/local/include/X11R6
13693/usr/local/include/X11R5
13694/usr/local/include/X11R4
13695
13696/usr/X386/include
13697/usr/x386/include
13698/usr/XFree86/include/X11
13699
13700/usr/include
13701/usr/local/include
13702/usr/unsupported/include
13703/usr/athena/include
13704/usr/local/x11r5/include
13705/usr/lpp/Xamples/include
13706
13707/usr/openwin/include
13708/usr/openwin/share/include'
13709
13710if test "$ac_x_includes" = no; then
13711 # Guess where to find include files, by looking for a specified header file.
13712 # First, try using that file with no special directory specified.
13713 cat >conftest.$ac_ext <<_ACEOF
13714/* confdefs.h. */
13715_ACEOF
13716cat confdefs.h >>conftest.$ac_ext
13717cat >>conftest.$ac_ext <<_ACEOF
13718/* end confdefs.h. */
13719#include <X11/Xlib.h>
13720_ACEOF
13721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13723 ac_status=$?
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } >/dev/null; then
13729 if test -s conftest.err; then
13730 ac_cpp_err=$ac_c_preproc_warn_flag
13731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13732 else
13733 ac_cpp_err=
13734 fi
13735else
13736 ac_cpp_err=yes
13737fi
13738if test -z "$ac_cpp_err"; then
13739 # We can compile using X headers with no special include directory.
13740ac_x_includes=
13741else
13742 echo "$as_me: failed program was:" >&5
13743sed 's/^/| /' conftest.$ac_ext >&5
13744
13745 for ac_dir in $ac_x_header_dirs; do
13746 if test -r "$ac_dir/X11/Xlib.h"; then
13747 ac_x_includes=$ac_dir
13748 break
13749 fi
13750done
13751fi
13752rm -f conftest.err conftest.$ac_ext
13753fi # $ac_x_includes = no
13754
13755if test "$ac_x_libraries" = no; then
13756 # Check for the libraries.
13757 # See if we find them without any special options.
13758 # Don't add to $LIBS permanently.
13759 ac_save_LIBS=$LIBS
13760 LIBS="-lX11 $LIBS"
13761 cat >conftest.$ac_ext <<_ACEOF
13762/* confdefs.h. */
13763_ACEOF
13764cat confdefs.h >>conftest.$ac_ext
13765cat >>conftest.$ac_ext <<_ACEOF
13766/* end confdefs.h. */
13767#include <X11/Xlib.h>
13768int
13769main ()
13770{
13771XrmInitialize ()
13772 ;
13773 return 0;
13774}
13775_ACEOF
13776rm -f conftest.$ac_objext conftest$ac_exeext
13777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13778 (eval $ac_link) 2>conftest.er1
13779 ac_status=$?
13780 grep -v '^ *+' conftest.er1 >conftest.err
13781 rm -f conftest.er1
13782 cat conftest.err >&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13788 ac_status=$?
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; } &&
13791 { ac_try='test -s conftest$ac_exeext'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797 LIBS=$ac_save_LIBS
13798# We can link X programs with no special library path.
13799ac_x_libraries=
13800else
13801 echo "$as_me: failed program was:" >&5
13802sed 's/^/| /' conftest.$ac_ext >&5
13803
13804LIBS=$ac_save_LIBS
13805for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13806do
13807 # Don't even attempt the hair of trying to link an X program!
13808 for ac_extension in a so sl; do
13809 if test -r $ac_dir/libX11.$ac_extension; then
13810 ac_x_libraries=$ac_dir
13811 break 2
13812 fi
13813 done
13814done
13815fi
13816rm -f conftest.err conftest.$ac_objext \
13817 conftest$ac_exeext conftest.$ac_ext
13818fi # $ac_x_libraries = no
13819
13820if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
13821 # Didn't find X anywhere. Cache the known absence of X.
13822 ac_cv_have_x="have_x=no"
13823else
13824 # Record where we found X for the cache.
13825 ac_cv_have_x="have_x=yes \
13826 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13827fi
13828fi
13829
13830 fi
13831 eval "$ac_cv_have_x"
13832fi # $with_x != no
13833
13834if test "$have_x" != yes; then
13835 echo "$as_me:$LINENO: result: $have_x" >&5
13836echo "${ECHO_T}$have_x" >&6
13837 no_x=yes
13838else
13839 # If each of the values was on the command line, it overrides each guess.
13840 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13841 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13842 # Update the cache value to reflect the command line values.
13843 ac_cv_have_x="have_x=yes \
13844 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13845 # It might be that x_includes is empty (headers are found in the
13846 # standard search path. Then output the corresponding message
13847 ac_out_x_includes=$x_includes
13848 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
13849 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
13850echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
13851fi
13852
13853fi
13854if test "$no_x" = yes; then
13855 # Not all programs may use this symbol, but it does not hurt to define it.
13856
13857cat >>confdefs.h <<\_ACEOF
13858#define X_DISPLAY_MISSING 1
13859_ACEOF
13860
13861 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13862else
13863 if test -n "$x_includes"; then
13864 X_CFLAGS="$X_CFLAGS -I$x_includes"
13865 fi
13866
13867 # It would also be nice to do this for all -L options, not just this one.
13868 if test -n "$x_libraries"; then
13869 X_LIBS="$X_LIBS -L$x_libraries"
13870 # For Solaris; some versions of Sun CC require a space after -R and
13871 # others require no space. Words are not sufficient . . . .
13872 case `(uname -sr) 2>/dev/null` in
13873 "SunOS 5"*)
13874 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
13875echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
13876 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13877 cat >conftest.$ac_ext <<_ACEOF
13878/* confdefs.h. */
13879_ACEOF
13880cat confdefs.h >>conftest.$ac_ext
13881cat >>conftest.$ac_ext <<_ACEOF
13882/* end confdefs.h. */
13883
13884int
13885main ()
13886{
13887
13888 ;
13889 return 0;
13890}
13891_ACEOF
13892rm -f conftest.$ac_objext conftest$ac_exeext
13893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13894 (eval $ac_link) 2>conftest.er1
13895 ac_status=$?
13896 grep -v '^ *+' conftest.er1 >conftest.err
13897 rm -f conftest.er1
13898 cat conftest.err >&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; } &&
13907 { ac_try='test -s conftest$ac_exeext'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 ac_R_nospace=yes
13914else
13915 echo "$as_me: failed program was:" >&5
13916sed 's/^/| /' conftest.$ac_ext >&5
13917
13918ac_R_nospace=no
13919fi
13920rm -f conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13922 if test $ac_R_nospace = yes; then
13923 echo "$as_me:$LINENO: result: no" >&5
13924echo "${ECHO_T}no" >&6
13925 X_LIBS="$X_LIBS -R$x_libraries"
13926 else
13927 LIBS="$ac_xsave_LIBS -R $x_libraries"
13928 cat >conftest.$ac_ext <<_ACEOF
13929/* confdefs.h. */
13930_ACEOF
13931cat confdefs.h >>conftest.$ac_ext
13932cat >>conftest.$ac_ext <<_ACEOF
13933/* end confdefs.h. */
13934
13935int
13936main ()
13937{
13938
13939 ;
13940 return 0;
13941}
13942_ACEOF
13943rm -f conftest.$ac_objext conftest$ac_exeext
13944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13945 (eval $ac_link) 2>conftest.er1
13946 ac_status=$?
13947 grep -v '^ *+' conftest.er1 >conftest.err
13948 rm -f conftest.er1
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } &&
13952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest$ac_exeext'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_R_space=yes
13965else
13966 echo "$as_me: failed program was:" >&5
13967sed 's/^/| /' conftest.$ac_ext >&5
13968
13969ac_R_space=no
13970fi
13971rm -f conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
13973 if test $ac_R_space = yes; then
13974 echo "$as_me:$LINENO: result: yes" >&5
13975echo "${ECHO_T}yes" >&6
13976 X_LIBS="$X_LIBS -R $x_libraries"
13977 else
13978 echo "$as_me:$LINENO: result: neither works" >&5
13979echo "${ECHO_T}neither works" >&6
13980 fi
13981 fi
13982 LIBS=$ac_xsave_LIBS
13983 esac
13984 fi
13985
13986 # Check for system-dependent libraries X programs must link with.
13987 # Do this before checking for the system-independent R6 libraries
13988 # (-lICE), since we may need -lsocket or whatever for X linking.
13989
13990 if test "$ISC" = yes; then
13991 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13992 else
13993 # Martyn Johnson says this is needed for Ultrix, if the X
13994 # libraries were built with DECnet support. And Karl Berry says
13995 # the Alpha needs dnet_stub (dnet does not exist).
13996 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13997 cat >conftest.$ac_ext <<_ACEOF
13998/* confdefs.h. */
13999_ACEOF
14000cat confdefs.h >>conftest.$ac_ext
14001cat >>conftest.$ac_ext <<_ACEOF
14002/* end confdefs.h. */
14003
14004/* Override any gcc2 internal prototype to avoid an error. */
14005#ifdef __cplusplus
14006extern "C"
14007#endif
14008/* We use char because int might match the return type of a gcc2
14009 builtin and then its argument prototype would still apply. */
14010char XOpenDisplay ();
14011int
14012main ()
14013{
14014XOpenDisplay ();
14015 ;
14016 return 0;
14017}
14018_ACEOF
14019rm -f conftest.$ac_objext conftest$ac_exeext
14020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14021 (eval $ac_link) 2>conftest.er1
14022 ac_status=$?
14023 grep -v '^ *+' conftest.er1 >conftest.err
14024 rm -f conftest.er1
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14031 ac_status=$?
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; } &&
14034 { ac_try='test -s conftest$ac_exeext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 :
14041else
14042 echo "$as_me: failed program was:" >&5
14043sed 's/^/| /' conftest.$ac_ext >&5
14044
14045echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
14046echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
14047if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049else
14050 ac_check_lib_save_LIBS=$LIBS
14051LIBS="-ldnet $LIBS"
14052cat >conftest.$ac_ext <<_ACEOF
14053/* confdefs.h. */
14054_ACEOF
14055cat confdefs.h >>conftest.$ac_ext
14056cat >>conftest.$ac_ext <<_ACEOF
14057/* end confdefs.h. */
14058
14059/* Override any gcc2 internal prototype to avoid an error. */
14060#ifdef __cplusplus
14061extern "C"
14062#endif
14063/* We use char because int might match the return type of a gcc2
14064 builtin and then its argument prototype would still apply. */
14065char dnet_ntoa ();
14066int
14067main ()
14068{
14069dnet_ntoa ();
14070 ;
14071 return 0;
14072}
14073_ACEOF
14074rm -f conftest.$ac_objext conftest$ac_exeext
14075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14076 (eval $ac_link) 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; } &&
14089 { ac_try='test -s conftest$ac_exeext'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
14095 ac_cv_lib_dnet_dnet_ntoa=yes
14096else
14097 echo "$as_me: failed program was:" >&5
14098sed 's/^/| /' conftest.$ac_ext >&5
14099
14100ac_cv_lib_dnet_dnet_ntoa=no
14101fi
14102rm -f conftest.err conftest.$ac_objext \
14103 conftest$ac_exeext conftest.$ac_ext
14104LIBS=$ac_check_lib_save_LIBS
14105fi
14106echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
14107echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
14108if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
14109 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14110fi
14111
14112 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14113 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
14114echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
14115if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14117else
14118 ac_check_lib_save_LIBS=$LIBS
14119LIBS="-ldnet_stub $LIBS"
14120cat >conftest.$ac_ext <<_ACEOF
14121/* confdefs.h. */
14122_ACEOF
14123cat confdefs.h >>conftest.$ac_ext
14124cat >>conftest.$ac_ext <<_ACEOF
14125/* end confdefs.h. */
14126
14127/* Override any gcc2 internal prototype to avoid an error. */
14128#ifdef __cplusplus
14129extern "C"
14130#endif
14131/* We use char because int might match the return type of a gcc2
14132 builtin and then its argument prototype would still apply. */
14133char dnet_ntoa ();
14134int
14135main ()
14136{
14137dnet_ntoa ();
14138 ;
14139 return 0;
14140}
14141_ACEOF
14142rm -f conftest.$ac_objext conftest$ac_exeext
14143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14144 (eval $ac_link) 2>conftest.er1
14145 ac_status=$?
14146 grep -v '^ *+' conftest.er1 >conftest.err
14147 rm -f conftest.er1
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153 (eval $ac_try) 2>&5
14154 ac_status=$?
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; } &&
14157 { ac_try='test -s conftest$ac_exeext'
14158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159 (eval $ac_try) 2>&5
14160 ac_status=$?
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); }; }; then
14163 ac_cv_lib_dnet_stub_dnet_ntoa=yes
14164else
14165 echo "$as_me: failed program was:" >&5
14166sed 's/^/| /' conftest.$ac_ext >&5
14167
14168ac_cv_lib_dnet_stub_dnet_ntoa=no
14169fi
14170rm -f conftest.err conftest.$ac_objext \
14171 conftest$ac_exeext conftest.$ac_ext
14172LIBS=$ac_check_lib_save_LIBS
14173fi
14174echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
14175echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
14176if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
14177 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14178fi
14179
14180 fi
14181fi
14182rm -f conftest.err conftest.$ac_objext \
14183 conftest$ac_exeext conftest.$ac_ext
14184 LIBS="$ac_xsave_LIBS"
14185
14186 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14187 # to get the SysV transport functions.
14188 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
14189 # needs -lnsl.
14190 # The nsl library prevents programs from opening the X display
14191 # on Irix 5.2, according to T.E. Dickey.
14192 # The functions gethostbyname, getservbyname, and inet_addr are
14193 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
14194 echo "$as_me:$LINENO: checking for gethostbyname" >&5
14195echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
14196if test "${ac_cv_func_gethostbyname+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14198else
14199 cat >conftest.$ac_ext <<_ACEOF
14200/* confdefs.h. */
14201_ACEOF
14202cat confdefs.h >>conftest.$ac_ext
14203cat >>conftest.$ac_ext <<_ACEOF
14204/* end confdefs.h. */
14205/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
14206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14207#define gethostbyname innocuous_gethostbyname
14208
14209/* System header to define __stub macros and hopefully few prototypes,
14210 which can conflict with char gethostbyname (); below.
14211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14212 <limits.h> exists even on freestanding compilers. */
14213
14214#ifdef __STDC__
14215# include <limits.h>
14216#else
14217# include <assert.h>
14218#endif
14219
14220#undef gethostbyname
14221
14222/* Override any gcc2 internal prototype to avoid an error. */
14223#ifdef __cplusplus
14224extern "C"
14225{
14226#endif
14227/* We use char because int might match the return type of a gcc2
14228 builtin and then its argument prototype would still apply. */
14229char gethostbyname ();
14230/* The GNU C library defines this for functions which it implements
14231 to always fail with ENOSYS. Some functions are actually named
14232 something starting with __ and the normal name is an alias. */
14233#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14234choke me
14235#else
14236char (*f) () = gethostbyname;
14237#endif
14238#ifdef __cplusplus
14239}
14240#endif
14241
14242int
14243main ()
14244{
14245return f != gethostbyname;
14246 ;
14247 return 0;
14248}
14249_ACEOF
14250rm -f conftest.$ac_objext conftest$ac_exeext
14251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14252 (eval $ac_link) 2>conftest.er1
14253 ac_status=$?
14254 grep -v '^ *+' conftest.er1 >conftest.err
14255 rm -f conftest.er1
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
14259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14262 ac_status=$?
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; } &&
14265 { ac_try='test -s conftest$ac_exeext'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_cv_func_gethostbyname=yes
14272else
14273 echo "$as_me: failed program was:" >&5
14274sed 's/^/| /' conftest.$ac_ext >&5
14275
14276ac_cv_func_gethostbyname=no
14277fi
14278rm -f conftest.err conftest.$ac_objext \
14279 conftest$ac_exeext conftest.$ac_ext
14280fi
14281echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
14282echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
14283
14284 if test $ac_cv_func_gethostbyname = no; then
14285 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
14286echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
14287if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14289else
14290 ac_check_lib_save_LIBS=$LIBS
14291LIBS="-lnsl $LIBS"
14292cat >conftest.$ac_ext <<_ACEOF
14293/* confdefs.h. */
14294_ACEOF
14295cat confdefs.h >>conftest.$ac_ext
14296cat >>conftest.$ac_ext <<_ACEOF
14297/* end confdefs.h. */
14298
14299/* Override any gcc2 internal prototype to avoid an error. */
14300#ifdef __cplusplus
14301extern "C"
14302#endif
14303/* We use char because int might match the return type of a gcc2
14304 builtin and then its argument prototype would still apply. */
14305char gethostbyname ();
14306int
14307main ()
14308{
14309gethostbyname ();
14310 ;
14311 return 0;
14312}
14313_ACEOF
14314rm -f conftest.$ac_objext conftest$ac_exeext
14315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14316 (eval $ac_link) 2>conftest.er1
14317 ac_status=$?
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest$ac_exeext'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_cv_lib_nsl_gethostbyname=yes
14336else
14337 echo "$as_me: failed program was:" >&5
14338sed 's/^/| /' conftest.$ac_ext >&5
14339
14340ac_cv_lib_nsl_gethostbyname=no
14341fi
14342rm -f conftest.err conftest.$ac_objext \
14343 conftest$ac_exeext conftest.$ac_ext
14344LIBS=$ac_check_lib_save_LIBS
14345fi
14346echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
14347echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
14348if test $ac_cv_lib_nsl_gethostbyname = yes; then
14349 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14350fi
14351
14352 if test $ac_cv_lib_nsl_gethostbyname = no; then
14353 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
14354echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
14355if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14357else
14358 ac_check_lib_save_LIBS=$LIBS
14359LIBS="-lbsd $LIBS"
14360cat >conftest.$ac_ext <<_ACEOF
14361/* confdefs.h. */
14362_ACEOF
14363cat confdefs.h >>conftest.$ac_ext
14364cat >>conftest.$ac_ext <<_ACEOF
14365/* end confdefs.h. */
14366
14367/* Override any gcc2 internal prototype to avoid an error. */
14368#ifdef __cplusplus
14369extern "C"
14370#endif
14371/* We use char because int might match the return type of a gcc2
14372 builtin and then its argument prototype would still apply. */
14373char gethostbyname ();
14374int
14375main ()
14376{
14377gethostbyname ();
14378 ;
14379 return 0;
14380}
14381_ACEOF
14382rm -f conftest.$ac_objext conftest$ac_exeext
14383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14384 (eval $ac_link) 2>conftest.er1
14385 ac_status=$?
14386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; } &&
14397 { ac_try='test -s conftest$ac_exeext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_lib_bsd_gethostbyname=yes
14404else
14405 echo "$as_me: failed program was:" >&5
14406sed 's/^/| /' conftest.$ac_ext >&5
14407
14408ac_cv_lib_bsd_gethostbyname=no
14409fi
14410rm -f conftest.err conftest.$ac_objext \
14411 conftest$ac_exeext conftest.$ac_ext
14412LIBS=$ac_check_lib_save_LIBS
14413fi
14414echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
14415echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
14416if test $ac_cv_lib_bsd_gethostbyname = yes; then
14417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
14418fi
14419
14420 fi
14421 fi
14422
14423 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14424 # socket/setsockopt and other routines are undefined under SCO ODT
14425 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14426 # on later versions), says Simon Leinen: it contains gethostby*
14427 # variants that don't use the name server (or something). -lsocket
14428 # must be given before -lnsl if both are needed. We assume that
14429 # if connect needs -lnsl, so does gethostbyname.
14430 echo "$as_me:$LINENO: checking for connect" >&5
14431echo $ECHO_N "checking for connect... $ECHO_C" >&6
14432if test "${ac_cv_func_connect+set}" = set; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14434else
14435 cat >conftest.$ac_ext <<_ACEOF
14436/* confdefs.h. */
14437_ACEOF
14438cat confdefs.h >>conftest.$ac_ext
14439cat >>conftest.$ac_ext <<_ACEOF
14440/* end confdefs.h. */
14441/* Define connect to an innocuous variant, in case <limits.h> declares connect.
14442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14443#define connect innocuous_connect
14444
14445/* System header to define __stub macros and hopefully few prototypes,
14446 which can conflict with char connect (); below.
14447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14448 <limits.h> exists even on freestanding compilers. */
14449
14450#ifdef __STDC__
14451# include <limits.h>
14452#else
14453# include <assert.h>
14454#endif
14455
14456#undef connect
14457
14458/* Override any gcc2 internal prototype to avoid an error. */
14459#ifdef __cplusplus
14460extern "C"
14461{
14462#endif
14463/* We use char because int might match the return type of a gcc2
14464 builtin and then its argument prototype would still apply. */
14465char connect ();
14466/* The GNU C library defines this for functions which it implements
14467 to always fail with ENOSYS. Some functions are actually named
14468 something starting with __ and the normal name is an alias. */
14469#if defined (__stub_connect) || defined (__stub___connect)
14470choke me
14471#else
14472char (*f) () = connect;
14473#endif
14474#ifdef __cplusplus
14475}
14476#endif
14477
14478int
14479main ()
14480{
14481return f != connect;
14482 ;
14483 return 0;
14484}
14485_ACEOF
14486rm -f conftest.$ac_objext conftest$ac_exeext
14487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14488 (eval $ac_link) 2>conftest.er1
14489 ac_status=$?
14490 grep -v '^ *+' conftest.er1 >conftest.err
14491 rm -f conftest.er1
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } &&
14495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; } &&
14501 { ac_try='test -s conftest$ac_exeext'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
14507 ac_cv_func_connect=yes
14508else
14509 echo "$as_me: failed program was:" >&5
14510sed 's/^/| /' conftest.$ac_ext >&5
14511
14512ac_cv_func_connect=no
14513fi
14514rm -f conftest.err conftest.$ac_objext \
14515 conftest$ac_exeext conftest.$ac_ext
14516fi
14517echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
14518echo "${ECHO_T}$ac_cv_func_connect" >&6
14519
14520 if test $ac_cv_func_connect = no; then
14521 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
14522echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
14523if test "${ac_cv_lib_socket_connect+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525else
14526 ac_check_lib_save_LIBS=$LIBS
14527LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14528cat >conftest.$ac_ext <<_ACEOF
14529/* confdefs.h. */
14530_ACEOF
14531cat confdefs.h >>conftest.$ac_ext
14532cat >>conftest.$ac_ext <<_ACEOF
14533/* end confdefs.h. */
14534
14535/* Override any gcc2 internal prototype to avoid an error. */
14536#ifdef __cplusplus
14537extern "C"
14538#endif
14539/* We use char because int might match the return type of a gcc2
14540 builtin and then its argument prototype would still apply. */
14541char connect ();
14542int
14543main ()
14544{
14545connect ();
14546 ;
14547 return 0;
14548}
14549_ACEOF
14550rm -f conftest.$ac_objext conftest$ac_exeext
14551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14552 (eval $ac_link) 2>conftest.er1
14553 ac_status=$?
14554 grep -v '^ *+' conftest.er1 >conftest.err
14555 rm -f conftest.er1
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
14559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; } &&
14565 { ac_try='test -s conftest$ac_exeext'
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; }; then
14571 ac_cv_lib_socket_connect=yes
14572else
14573 echo "$as_me: failed program was:" >&5
14574sed 's/^/| /' conftest.$ac_ext >&5
14575
14576ac_cv_lib_socket_connect=no
14577fi
14578rm -f conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext conftest.$ac_ext
14580LIBS=$ac_check_lib_save_LIBS
14581fi
14582echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
14583echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
14584if test $ac_cv_lib_socket_connect = yes; then
14585 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14586fi
14587
14588 fi
14589
14590 # Guillermo Gomez says -lposix is necessary on A/UX.
14591 echo "$as_me:$LINENO: checking for remove" >&5
14592echo $ECHO_N "checking for remove... $ECHO_C" >&6
14593if test "${ac_cv_func_remove+set}" = set; then
14594 echo $ECHO_N "(cached) $ECHO_C" >&6
14595else
14596 cat >conftest.$ac_ext <<_ACEOF
14597/* confdefs.h. */
14598_ACEOF
14599cat confdefs.h >>conftest.$ac_ext
14600cat >>conftest.$ac_ext <<_ACEOF
14601/* end confdefs.h. */
14602/* Define remove to an innocuous variant, in case <limits.h> declares remove.
14603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14604#define remove innocuous_remove
14605
14606/* System header to define __stub macros and hopefully few prototypes,
14607 which can conflict with char remove (); below.
14608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14609 <limits.h> exists even on freestanding compilers. */
14610
14611#ifdef __STDC__
14612# include <limits.h>
14613#else
14614# include <assert.h>
14615#endif
14616
14617#undef remove
14618
14619/* Override any gcc2 internal prototype to avoid an error. */
14620#ifdef __cplusplus
14621extern "C"
14622{
14623#endif
14624/* We use char because int might match the return type of a gcc2
14625 builtin and then its argument prototype would still apply. */
14626char remove ();
14627/* The GNU C library defines this for functions which it implements
14628 to always fail with ENOSYS. Some functions are actually named
14629 something starting with __ and the normal name is an alias. */
14630#if defined (__stub_remove) || defined (__stub___remove)
14631choke me
14632#else
14633char (*f) () = remove;
14634#endif
14635#ifdef __cplusplus
14636}
14637#endif
14638
14639int
14640main ()
14641{
14642return f != remove;
14643 ;
14644 return 0;
14645}
14646_ACEOF
14647rm -f conftest.$ac_objext conftest$ac_exeext
14648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; } &&
14662 { ac_try='test -s conftest$ac_exeext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
14668 ac_cv_func_remove=yes
14669else
14670 echo "$as_me: failed program was:" >&5
14671sed 's/^/| /' conftest.$ac_ext >&5
14672
14673ac_cv_func_remove=no
14674fi
14675rm -f conftest.err conftest.$ac_objext \
14676 conftest$ac_exeext conftest.$ac_ext
14677fi
14678echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
14679echo "${ECHO_T}$ac_cv_func_remove" >&6
14680
14681 if test $ac_cv_func_remove = no; then
14682 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
14683echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
14684if test "${ac_cv_lib_posix_remove+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686else
14687 ac_check_lib_save_LIBS=$LIBS
14688LIBS="-lposix $LIBS"
14689cat >conftest.$ac_ext <<_ACEOF
14690/* confdefs.h. */
14691_ACEOF
14692cat confdefs.h >>conftest.$ac_ext
14693cat >>conftest.$ac_ext <<_ACEOF
14694/* end confdefs.h. */
14695
14696/* Override any gcc2 internal prototype to avoid an error. */
14697#ifdef __cplusplus
14698extern "C"
14699#endif
14700/* We use char because int might match the return type of a gcc2
14701 builtin and then its argument prototype would still apply. */
14702char remove ();
14703int
14704main ()
14705{
14706remove ();
14707 ;
14708 return 0;
14709}
14710_ACEOF
14711rm -f conftest.$ac_objext conftest$ac_exeext
14712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14713 (eval $ac_link) 2>conftest.er1
14714 ac_status=$?
14715 grep -v '^ *+' conftest.er1 >conftest.err
14716 rm -f conftest.er1
14717 cat conftest.err >&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } &&
14720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14723 ac_status=$?
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; } &&
14726 { ac_try='test -s conftest$ac_exeext'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }; then
14732 ac_cv_lib_posix_remove=yes
14733else
14734 echo "$as_me: failed program was:" >&5
14735sed 's/^/| /' conftest.$ac_ext >&5
14736
14737ac_cv_lib_posix_remove=no
14738fi
14739rm -f conftest.err conftest.$ac_objext \
14740 conftest$ac_exeext conftest.$ac_ext
14741LIBS=$ac_check_lib_save_LIBS
14742fi
14743echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
14744echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
14745if test $ac_cv_lib_posix_remove = yes; then
14746 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14747fi
14748
14749 fi
14750
14751 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14752 echo "$as_me:$LINENO: checking for shmat" >&5
14753echo $ECHO_N "checking for shmat... $ECHO_C" >&6
14754if test "${ac_cv_func_shmat+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14756else
14757 cat >conftest.$ac_ext <<_ACEOF
14758/* confdefs.h. */
14759_ACEOF
14760cat confdefs.h >>conftest.$ac_ext
14761cat >>conftest.$ac_ext <<_ACEOF
14762/* end confdefs.h. */
14763/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
14764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14765#define shmat innocuous_shmat
14766
14767/* System header to define __stub macros and hopefully few prototypes,
14768 which can conflict with char shmat (); below.
14769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14770 <limits.h> exists even on freestanding compilers. */
14771
14772#ifdef __STDC__
14773# include <limits.h>
14774#else
14775# include <assert.h>
14776#endif
14777
14778#undef shmat
14779
14780/* Override any gcc2 internal prototype to avoid an error. */
14781#ifdef __cplusplus
14782extern "C"
14783{
14784#endif
14785/* We use char because int might match the return type of a gcc2
14786 builtin and then its argument prototype would still apply. */
14787char shmat ();
14788/* The GNU C library defines this for functions which it implements
14789 to always fail with ENOSYS. Some functions are actually named
14790 something starting with __ and the normal name is an alias. */
14791#if defined (__stub_shmat) || defined (__stub___shmat)
14792choke me
14793#else
14794char (*f) () = shmat;
14795#endif
14796#ifdef __cplusplus
14797}
14798#endif
14799
14800int
14801main ()
14802{
14803return f != shmat;
14804 ;
14805 return 0;
14806}
14807_ACEOF
14808rm -f conftest.$ac_objext conftest$ac_exeext
14809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14810 (eval $ac_link) 2>conftest.er1
14811 ac_status=$?
14812 grep -v '^ *+' conftest.er1 >conftest.err
14813 rm -f conftest.er1
14814 cat conftest.err >&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } &&
14817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; } &&
14823 { ac_try='test -s conftest$ac_exeext'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14826 ac_status=$?
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; }; then
14829 ac_cv_func_shmat=yes
14830else
14831 echo "$as_me: failed program was:" >&5
14832sed 's/^/| /' conftest.$ac_ext >&5
14833
14834ac_cv_func_shmat=no
14835fi
14836rm -f conftest.err conftest.$ac_objext \
14837 conftest$ac_exeext conftest.$ac_ext
14838fi
14839echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
14840echo "${ECHO_T}$ac_cv_func_shmat" >&6
14841
14842 if test $ac_cv_func_shmat = no; then
14843 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
14844echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
14845if test "${ac_cv_lib_ipc_shmat+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14847else
14848 ac_check_lib_save_LIBS=$LIBS
14849LIBS="-lipc $LIBS"
14850cat >conftest.$ac_ext <<_ACEOF
14851/* confdefs.h. */
14852_ACEOF
14853cat confdefs.h >>conftest.$ac_ext
14854cat >>conftest.$ac_ext <<_ACEOF
14855/* end confdefs.h. */
14856
14857/* Override any gcc2 internal prototype to avoid an error. */
14858#ifdef __cplusplus
14859extern "C"
14860#endif
14861/* We use char because int might match the return type of a gcc2
14862 builtin and then its argument prototype would still apply. */
14863char shmat ();
14864int
14865main ()
14866{
14867shmat ();
14868 ;
14869 return 0;
14870}
14871_ACEOF
14872rm -f conftest.$ac_objext conftest$ac_exeext
14873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14874 (eval $ac_link) 2>conftest.er1
14875 ac_status=$?
14876 grep -v '^ *+' conftest.er1 >conftest.err
14877 rm -f conftest.er1
14878 cat conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest$ac_exeext'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }; then
14893 ac_cv_lib_ipc_shmat=yes
14894else
14895 echo "$as_me: failed program was:" >&5
14896sed 's/^/| /' conftest.$ac_ext >&5
14897
14898ac_cv_lib_ipc_shmat=no
14899fi
14900rm -f conftest.err conftest.$ac_objext \
14901 conftest$ac_exeext conftest.$ac_ext
14902LIBS=$ac_check_lib_save_LIBS
14903fi
14904echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
14905echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
14906if test $ac_cv_lib_ipc_shmat = yes; then
14907 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14908fi
14909
14910 fi
14911 fi
14912
14913 # Check for libraries that X11R6 Xt/Xaw programs need.
14914 ac_save_LDFLAGS=$LDFLAGS
14915 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14916 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14917 # check for ICE first), but we must link in the order -lSM -lICE or
14918 # we get undefined symbols. So assume we have SM if we have ICE.
14919 # These have to be linked with before -lX11, unlike the other
14920 # libraries we check for below, so use a different variable.
14921 # John Interrante, Karl Berry
14922 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
14923echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
14924if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14926else
14927 ac_check_lib_save_LIBS=$LIBS
14928LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14929cat >conftest.$ac_ext <<_ACEOF
14930/* confdefs.h. */
14931_ACEOF
14932cat confdefs.h >>conftest.$ac_ext
14933cat >>conftest.$ac_ext <<_ACEOF
14934/* end confdefs.h. */
14935
14936/* Override any gcc2 internal prototype to avoid an error. */
14937#ifdef __cplusplus
14938extern "C"
14939#endif
14940/* We use char because int might match the return type of a gcc2
14941 builtin and then its argument prototype would still apply. */
14942char IceConnectionNumber ();
14943int
14944main ()
14945{
14946IceConnectionNumber ();
14947 ;
14948 return 0;
14949}
14950_ACEOF
14951rm -f conftest.$ac_objext conftest$ac_exeext
14952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953 (eval $ac_link) 2>conftest.er1
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } &&
14960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; } &&
14966 { ac_try='test -s conftest$ac_exeext'
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14972 ac_cv_lib_ICE_IceConnectionNumber=yes
14973else
14974 echo "$as_me: failed program was:" >&5
14975sed 's/^/| /' conftest.$ac_ext >&5
14976
14977ac_cv_lib_ICE_IceConnectionNumber=no
14978fi
14979rm -f conftest.err conftest.$ac_objext \
14980 conftest$ac_exeext conftest.$ac_ext
14981LIBS=$ac_check_lib_save_LIBS
14982fi
14983echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14984echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
14985if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
14986 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14987fi
14988
14989 LDFLAGS=$ac_save_LDFLAGS
14990
14991fi
14992
14993
14994
14995
14996
14997
14998ac_ext=c
14999ac_cpp='$CPP $CPPFLAGS'
15000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15002ac_compiler_gnu=$ac_cv_c_compiler_gnu
15003
15004acx_pthread_ok=no
15005
15006# We used to check for pthread.h first, but this fails if pthread.h
15007# requires special compiler flags (e.g. on True64 or Sequent).
15008# It gets checked for in the link test anyway.
15009
15010# First of all, check if the user has set any of the PTHREAD_LIBS,
15011# etcetera environment variables, and if threads linking works using
15012# them:
15013if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15014 save_CFLAGS="$CFLAGS"
15015 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15016 save_LIBS="$LIBS"
15017 LIBS="$PTHREAD_LIBS $LIBS"
15018 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15019echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
15020 cat >conftest.$ac_ext <<_ACEOF
15021/* confdefs.h. */
15022_ACEOF
15023cat confdefs.h >>conftest.$ac_ext
15024cat >>conftest.$ac_ext <<_ACEOF
15025/* end confdefs.h. */
15026
15027/* Override any gcc2 internal prototype to avoid an error. */
15028#ifdef __cplusplus
15029extern "C"
15030#endif
15031/* We use char because int might match the return type of a gcc2
15032 builtin and then its argument prototype would still apply. */
15033char pthread_join ();
15034int
15035main ()
15036{
15037pthread_join ();
15038 ;
15039 return 0;
15040}
15041_ACEOF
15042rm -f conftest.$ac_objext conftest$ac_exeext
15043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15044 (eval $ac_link) 2>conftest.er1
15045 ac_status=$?
15046 grep -v '^ *+' conftest.er1 >conftest.err
15047 rm -f conftest.er1
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; } &&
15057 { ac_try='test -s conftest$ac_exeext'
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15060 ac_status=$?
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15063 acx_pthread_ok=yes
15064else
15065 echo "$as_me: failed program was:" >&5
15066sed 's/^/| /' conftest.$ac_ext >&5
15067
15068fi
15069rm -f conftest.err conftest.$ac_objext \
15070 conftest$ac_exeext conftest.$ac_ext
15071 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15072echo "${ECHO_T}$acx_pthread_ok" >&6
15073 if test x"$acx_pthread_ok" = xno; then
15074 PTHREAD_LIBS=""
15075 PTHREAD_CFLAGS=""
15076 fi
15077 LIBS="$save_LIBS"
15078 CFLAGS="$save_CFLAGS"
15079fi
15080
15081# We must check for the threads library under a number of different
15082# names; the ordering is very important because some systems
15083# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15084# libraries is broken (non-POSIX).
15085
15086# Create a list of thread flags to try. Items starting with a "-" are
15087# C compiler flags, and other items are library names, except for "none"
15088# which indicates that we try without any flags at all, and "pthread-config"
15089# which is a program returning the flags for the Pth emulation library.
15090
15091acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15092
15093# The ordering *is* (sometimes) important. Some notes on the
15094# individual items follow:
15095
15096# pthreads: AIX (must check this before -lpthread)
15097# none: in case threads are in libc; should be tried before -Kthread and
15098# other compiler flags to prevent continual compiler warnings
15099# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15100# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15101# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15102# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15103# -pthreads: Solaris/gcc
15104# -mthreads: Mingw32/gcc, Lynx/gcc
15105# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15106# doesn't hurt to check since this sometimes defines pthreads too;
15107# also defines -D_REENTRANT)
15108# pthread: Linux, etcetera
15109# --thread-safe: KAI C++
15110# pthread-config: use pthread-config program (for GNU Pth library)
15111
15112case "${host_cpu}-${host_os}" in
15113 *solaris*)
15114
15115 # On Solaris (at least, for some versions), libc contains stubbed
15116 # (non-functional) versions of the pthreads routines, so link-based
15117 # tests will erroneously succeed. (We need to link with -pthread or
15118 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15119 # a function called by this macro, so we could check for that, but
15120 # who knows whether they'll stub that too in a future libc.) So,
15121 # we'll just look for -pthreads and -lpthread first:
15122
15123 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
15124 ;;
15125esac
15126
15127if test x"$acx_pthread_ok" = xno; then
15128for flag in $acx_pthread_flags; do
15129
15130 case $flag in
15131 none)
15132 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
15133echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
15134 ;;
15135
15136 -*)
15137 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
15138echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
15139 PTHREAD_CFLAGS="$flag"
15140 ;;
15141
15142 pthread-config)
15143 # Extract the first word of "pthread-config", so it can be a program name with args.
15144set dummy pthread-config; ac_word=$2
15145echo "$as_me:$LINENO: checking for $ac_word" >&5
15146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15147if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15149else
15150 if test -n "$acx_pthread_config"; then
15151 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15152else
15153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15154for as_dir in $PATH
15155do
15156 IFS=$as_save_IFS
15157 test -z "$as_dir" && as_dir=.
15158 for ac_exec_ext in '' $ac_executable_extensions; do
15159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15160 ac_cv_prog_acx_pthread_config="yes"
15161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15162 break 2
15163 fi
15164done
15165done
15166
15167 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15168fi
15169fi
15170acx_pthread_config=$ac_cv_prog_acx_pthread_config
15171if test -n "$acx_pthread_config"; then
15172 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
15173echo "${ECHO_T}$acx_pthread_config" >&6
15174else
15175 echo "$as_me:$LINENO: result: no" >&5
15176echo "${ECHO_T}no" >&6
15177fi
15178
15179 if test x"$acx_pthread_config" = xno; then continue; fi
15180 PTHREAD_CFLAGS="`pthread-config --cflags`"
15181 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15182 ;;
15183
15184 *)
15185 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
15186echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
15187 PTHREAD_LIBS="-l$flag"
15188 ;;
15189 esac
15190
15191 save_LIBS="$LIBS"
15192 save_CFLAGS="$CFLAGS"
15193 LIBS="$PTHREAD_LIBS $LIBS"
15194 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15195
15196 # Check for various functions. We must include pthread.h,
15197 # since some functions may be macros. (On the Sequent, we
15198 # need a special flag -Kthread to make this header compile.)
15199 # We check for pthread_join because it is in -lpthread on IRIX
15200 # while pthread_create is in libc. We check for pthread_attr_init
15201 # due to DEC craziness with -lpthreads. We check for
15202 # pthread_cleanup_push because it is one of the few pthread
15203 # functions on Solaris that doesn't have a non-functional libc stub.
15204 # We try pthread_create on general principles.
15205 cat >conftest.$ac_ext <<_ACEOF
15206/* confdefs.h. */
15207_ACEOF
15208cat confdefs.h >>conftest.$ac_ext
15209cat >>conftest.$ac_ext <<_ACEOF
15210/* end confdefs.h. */
15211#include <pthread.h>
15212int
15213main ()
15214{
15215pthread_t th; pthread_join(th, 0);
15216 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15217 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15218 ;
15219 return 0;
15220}
15221_ACEOF
15222rm -f conftest.$ac_objext conftest$ac_exeext
15223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15224 (eval $ac_link) 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } &&
15237 { ac_try='test -s conftest$ac_exeext'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15240 ac_status=$?
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243 acx_pthread_ok=yes
15244else
15245 echo "$as_me: failed program was:" >&5
15246sed 's/^/| /' conftest.$ac_ext >&5
15247
15248fi
15249rm -f conftest.err conftest.$ac_objext \
15250 conftest$ac_exeext conftest.$ac_ext
15251
15252 LIBS="$save_LIBS"
15253 CFLAGS="$save_CFLAGS"
15254
15255 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15256echo "${ECHO_T}$acx_pthread_ok" >&6
15257 if test "x$acx_pthread_ok" = xyes; then
15258 break;
15259 fi
15260
15261 PTHREAD_LIBS=""
15262 PTHREAD_CFLAGS=""
15263done
15264fi
15265
15266# Various other checks:
15267if test "x$acx_pthread_ok" = xyes; then
15268 save_LIBS="$LIBS"
15269 LIBS="$PTHREAD_LIBS $LIBS"
15270 save_CFLAGS="$CFLAGS"
15271 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15272
15273 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15274 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
15275echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
15276 attr_name=unknown
15277 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15278 cat >conftest.$ac_ext <<_ACEOF
15279/* confdefs.h. */
15280_ACEOF
15281cat confdefs.h >>conftest.$ac_ext
15282cat >>conftest.$ac_ext <<_ACEOF
15283/* end confdefs.h. */
15284#include <pthread.h>
15285int
15286main ()
15287{
15288int attr=$attr;
15289 ;
15290 return 0;
15291}
15292_ACEOF
15293rm -f conftest.$ac_objext conftest$ac_exeext
15294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15295 (eval $ac_link) 2>conftest.er1
15296 ac_status=$?
15297 grep -v '^ *+' conftest.er1 >conftest.err
15298 rm -f conftest.er1
15299 cat conftest.err >&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } &&
15302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; } &&
15308 { ac_try='test -s conftest$ac_exeext'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }; then
15314 attr_name=$attr; break
15315else
15316 echo "$as_me: failed program was:" >&5
15317sed 's/^/| /' conftest.$ac_ext >&5
15318
15319fi
15320rm -f conftest.err conftest.$ac_objext \
15321 conftest$ac_exeext conftest.$ac_ext
15322 done
15323 echo "$as_me:$LINENO: result: $attr_name" >&5
15324echo "${ECHO_T}$attr_name" >&6
15325 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15326
15327cat >>confdefs.h <<_ACEOF
15328#define PTHREAD_CREATE_JOINABLE $attr_name
15329_ACEOF
15330
15331 fi
15332
15333 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
15334echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
15335 flag=no
15336 case "${host_cpu}-${host_os}" in
15337 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15338 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15339 esac
15340 echo "$as_me:$LINENO: result: ${flag}" >&5
15341echo "${ECHO_T}${flag}" >&6
15342 if test "x$flag" != xno; then
15343 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15344 fi
15345
15346 LIBS="$save_LIBS"
15347 CFLAGS="$save_CFLAGS"
15348
15349 # More AIX lossage: must compile with cc_r
15350 # Extract the first word of "cc_r", so it can be a program name with args.
15351set dummy cc_r; ac_word=$2
15352echo "$as_me:$LINENO: checking for $ac_word" >&5
15353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15354if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15356else
15357 if test -n "$PTHREAD_CC"; then
15358 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15359else
15360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15361for as_dir in $PATH
15362do
15363 IFS=$as_save_IFS
15364 test -z "$as_dir" && as_dir=.
15365 for ac_exec_ext in '' $ac_executable_extensions; do
15366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15367 ac_cv_prog_PTHREAD_CC="cc_r"
15368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15369 break 2
15370 fi
15371done
15372done
15373
15374 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
15375fi
15376fi
15377PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15378if test -n "$PTHREAD_CC"; then
15379 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
15380echo "${ECHO_T}$PTHREAD_CC" >&6
15381else
15382 echo "$as_me:$LINENO: result: no" >&5
15383echo "${ECHO_T}no" >&6
15384fi
15385
15386else
15387 PTHREAD_CC="$CC"
15388fi
15389
15390
15391
15392
15393
15394# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15395if test x"$acx_pthread_ok" = xyes; then
15396
15397cat >>confdefs.h <<\_ACEOF
15398#define HAVE_PTHREAD 1
15399_ACEOF
15400
15401 :
15402else
15403 acx_pthread_ok=no
15404
15405fi
15406ac_ext=c
15407ac_cpp='$CPP $CPPFLAGS'
15408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15410ac_compiler_gnu=$ac_cv_c_compiler_gnu
15411
15412
15413
15414#
15415# There isn't a reliable way to know we should use the Apple OpenGL framework
15416# without a configure option. A Mac OS X user may have installed an
15417# alternative GL implementation (e.g., Mesa), which may or may not depend on X.
15418#
15419
15420# Check whether --with-apple-opengl-framework or --without-apple-opengl-framework was given.
15421if test "${with_apple_opengl_framework+set}" = set; then
15422 withval="$with_apple_opengl_framework"
15423
15424fi;
15425if test "X$with_apple_opengl_framework" = "Xyes"; then
15426
15427cat >>confdefs.h <<\_ACEOF
15428#define HAVE_APPLE_OPENGL_FRAMEWORK 1
15429_ACEOF
15430
15431 GL_LIBS="-framework OpenGL"
15432else
15433 ac_ext=c
15434ac_cpp='$CPP $CPPFLAGS'
15435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15437ac_compiler_gnu=$ac_cv_c_compiler_gnu
15438
15439
15440 echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5
15441echo $ECHO_N "checking whether we are using the Microsoft C compiler... $ECHO_C" >&6
15442if test "${ax_cv_c_compiler_ms+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
15452int
15453main ()
15454{
15455#ifndef _MSC_VER
15456 choke me
15457#endif
15458
15459 ;
15460 return 0;
15461}
15462_ACEOF
15463rm -f conftest.$ac_objext
15464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15465 (eval $ac_compile) 2>conftest.er1
15466 ac_status=$?
15467 grep -v '^ *+' conftest.er1 >conftest.err
15468 rm -f conftest.er1
15469 cat conftest.err >&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); } &&
15472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; } &&
15478 { ac_try='test -s conftest.$ac_objext'
15479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15480 (eval $ac_try) 2>&5
15481 ac_status=$?
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); }; }; then
15484 ax_compiler_ms=yes
15485else
15486 echo "$as_me: failed program was:" >&5
15487sed 's/^/| /' conftest.$ac_ext >&5
15488
15489ax_compiler_ms=no
15490fi
15491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15492ax_cv_c_compiler_ms=$ax_compiler_ms
15493
15494fi
15495echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5
15496echo "${ECHO_T}$ax_cv_c_compiler_ms" >&6
15497 if test X$ax_compiler_ms = Xno; then
15498 GL_CFLAGS="${PTHREAD_CFLAGS}"
15499 GL_LIBS="${PTHREAD_LIBS} -lm"
15500 fi
15501
15502 #
15503 # Use x_includes and x_libraries if they have been set (presumably by
15504 # AC_PATH_X).
15505 #
15506 if test "X$no_x" != "Xyes"; then
15507 if test -n "$x_includes"; then
15508 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
15509 fi
15510 if test -n "$x_libraries"; then
15511 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
15512 fi
15513 fi
15514
15515
15516for ac_header in windows.h
15517do
15518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15519if eval "test \"\${$as_ac_Header+set}\" = set"; then
15520 echo "$as_me:$LINENO: checking for $ac_header" >&5
15521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15522if eval "test \"\${$as_ac_Header+set}\" = set"; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
15524fi
15525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15527else
15528 # Is the header compilable?
15529echo "$as_me:$LINENO: checking $ac_header usability" >&5
15530echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15531cat >conftest.$ac_ext <<_ACEOF
15532/* confdefs.h. */
15533_ACEOF
15534cat confdefs.h >>conftest.$ac_ext
15535cat >>conftest.$ac_ext <<_ACEOF
15536/* end confdefs.h. */
15537$ac_includes_default
15538#include <$ac_header>
15539_ACEOF
15540rm -f conftest.$ac_objext
15541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15542 (eval $ac_compile) 2>conftest.er1
15543 ac_status=$?
15544 grep -v '^ *+' conftest.er1 >conftest.err
15545 rm -f conftest.er1
15546 cat conftest.err >&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } &&
15549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; } &&
15555 { ac_try='test -s conftest.$ac_objext'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 ac_header_compiler=yes
15562else
15563 echo "$as_me: failed program was:" >&5
15564sed 's/^/| /' conftest.$ac_ext >&5
15565
15566ac_header_compiler=no
15567fi
15568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15569echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15570echo "${ECHO_T}$ac_header_compiler" >&6
15571
15572# Is the header present?
15573echo "$as_me:$LINENO: checking $ac_header presence" >&5
15574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15575cat >conftest.$ac_ext <<_ACEOF
15576/* confdefs.h. */
15577_ACEOF
15578cat confdefs.h >>conftest.$ac_ext
15579cat >>conftest.$ac_ext <<_ACEOF
15580/* end confdefs.h. */
15581#include <$ac_header>
15582_ACEOF
15583if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15585 ac_status=$?
15586 grep -v '^ *+' conftest.er1 >conftest.err
15587 rm -f conftest.er1
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } >/dev/null; then
15591 if test -s conftest.err; then
15592 ac_cpp_err=$ac_c_preproc_warn_flag
15593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15594 else
15595 ac_cpp_err=
15596 fi
15597else
15598 ac_cpp_err=yes
15599fi
15600if test -z "$ac_cpp_err"; then
15601 ac_header_preproc=yes
15602else
15603 echo "$as_me: failed program was:" >&5
15604sed 's/^/| /' conftest.$ac_ext >&5
15605
15606 ac_header_preproc=no
15607fi
15608rm -f conftest.err conftest.$ac_ext
15609echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15610echo "${ECHO_T}$ac_header_preproc" >&6
15611
15612# So? What about this header?
15613case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15614 yes:no: )
15615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15616echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15618echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15619 ac_header_preproc=yes
15620 ;;
15621 no:yes:* )
15622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15625echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15627echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15629echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15631echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15633echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15634 (
15635 cat <<\_ASBOX
15636## -------------------------------------- ##
15637## Report this to tiff@lists.maptools.org ##
15638## -------------------------------------- ##
15639_ASBOX
15640 ) |
15641 sed "s/^/$as_me: WARNING: /" >&2
15642 ;;
15643esac
15644echo "$as_me:$LINENO: checking for $ac_header" >&5
15645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15646if eval "test \"\${$as_ac_Header+set}\" = set"; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15648else
15649 eval "$as_ac_Header=\$ac_header_preproc"
15650fi
15651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15652echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15653
15654fi
15655if test `eval echo '${'$as_ac_Header'}'` = yes; then
15656 cat >>confdefs.h <<_ACEOF
15657#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15658_ACEOF
15659
15660fi
15661
15662done
15663
15664
15665 echo "$as_me:$LINENO: checking for OpenGL library" >&5
15666echo $ECHO_N "checking for OpenGL library... $ECHO_C" >&6
15667if test "${ax_cv_check_gl_libgl+set}" = set; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15669else
15670 ax_cv_check_gl_libgl="no"
15671 ax_save_CPPFLAGS="${CPPFLAGS}"
15672 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
15673 ax_save_LIBS="${LIBS}"
15674 LIBS=""
15675 ax_check_libs="-lopengl32 -lGL"
15676 for ax_lib in ${ax_check_libs}; do
15677 if test X$ax_compiler_ms = Xyes; then
15678 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
15679 else
15680 ax_try_lib="${ax_lib}"
15681 fi
15682 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
15683 cat >conftest.$ac_ext <<_ACEOF
15684/* confdefs.h. */
15685_ACEOF
15686cat confdefs.h >>conftest.$ac_ext
15687cat >>conftest.$ac_ext <<_ACEOF
15688/* end confdefs.h. */
15689
15690# if HAVE_WINDOWS_H && defined(_WIN32)
15691# include <windows.h>
15692# endif
15693# include <GL/gl.h>
15694int
15695main ()
15696{
15697glBegin(0)
15698 ;
15699 return 0;
15700}
15701_ACEOF
15702rm -f conftest.$ac_objext conftest$ac_exeext
15703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15704 (eval $ac_link) 2>conftest.er1
15705 ac_status=$?
15706 grep -v '^ *+' conftest.er1 >conftest.err
15707 rm -f conftest.er1
15708 cat conftest.err >&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } &&
15711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15714 ac_status=$?
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; } &&
15717 { ac_try='test -s conftest$ac_exeext'
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; }; then
15723 ax_cv_check_gl_libgl="${ax_try_lib}"; break
15724else
15725 echo "$as_me: failed program was:" >&5
15726sed 's/^/| /' conftest.$ac_ext >&5
15727
15728fi
15729rm -f conftest.err conftest.$ac_objext \
15730 conftest$ac_exeext conftest.$ac_ext
15731 done
15732 LIBS=${ax_save_LIBS}
15733 CPPFLAGS=${ax_save_CPPFLAGS}
15734fi
15735echo "$as_me:$LINENO: result: $ax_cv_check_gl_libgl" >&5
15736echo "${ECHO_T}$ax_cv_check_gl_libgl" >&6
15737
15738 if test "X${ax_cv_check_gl_libgl}" = "Xno"; then
15739 no_gl="yes"
15740 GL_CFLAGS=""
15741 GL_LIBS=""
15742 else
15743 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
15744 fi
15745 ac_ext=c
15746ac_cpp='$CPP $CPPFLAGS'
15747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15749ac_compiler_gnu=$ac_cv_c_compiler_gnu
15750
15751fi
15752
15753
15754
15755
15756
15757
15758ac_ext=cc
15759ac_cpp='$CXXCPP $CPPFLAGS'
15760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15763if test -n "$ac_tool_prefix"; then
15764 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15765 do
15766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15767set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15768echo "$as_me:$LINENO: checking for $ac_word" >&5
15769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15770if test "${ac_cv_prog_CXX+set}" = set; then
15771 echo $ECHO_N "(cached) $ECHO_C" >&6
15772else
15773 if test -n "$CXX"; then
15774 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15775else
15776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15777for as_dir in $PATH
15778do
15779 IFS=$as_save_IFS
15780 test -z "$as_dir" && as_dir=.
15781 for ac_exec_ext in '' $ac_executable_extensions; do
15782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15783 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15785 break 2
15786 fi
15787done
15788done
15789
15790fi
15791fi
15792CXX=$ac_cv_prog_CXX
15793if test -n "$CXX"; then
15794 echo "$as_me:$LINENO: result: $CXX" >&5
15795echo "${ECHO_T}$CXX" >&6
15796else
15797 echo "$as_me:$LINENO: result: no" >&5
15798echo "${ECHO_T}no" >&6
15799fi
15800
15801 test -n "$CXX" && break
15802 done
15803fi
15804if test -z "$CXX"; then
15805 ac_ct_CXX=$CXX
15806 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15807do
15808 # Extract the first word of "$ac_prog", so it can be a program name with args.
15809set dummy $ac_prog; ac_word=$2
15810echo "$as_me:$LINENO: checking for $ac_word" >&5
15811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15812if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15814else
15815 if test -n "$ac_ct_CXX"; then
15816 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15817else
15818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15819for as_dir in $PATH
15820do
15821 IFS=$as_save_IFS
15822 test -z "$as_dir" && as_dir=.
15823 for ac_exec_ext in '' $ac_executable_extensions; do
15824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15825 ac_cv_prog_ac_ct_CXX="$ac_prog"
15826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15827 break 2
15828 fi
15829done
15830done
15831
15832fi
15833fi
15834ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15835if test -n "$ac_ct_CXX"; then
15836 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15837echo "${ECHO_T}$ac_ct_CXX" >&6
15838else
15839 echo "$as_me:$LINENO: result: no" >&5
15840echo "${ECHO_T}no" >&6
15841fi
15842
15843 test -n "$ac_ct_CXX" && break
15844done
15845test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
15846
15847 CXX=$ac_ct_CXX
15848fi
15849
15850
15851# Provide some information about the compiler.
15852echo "$as_me:$LINENO:" \
15853 "checking for C++ compiler version" >&5
15854ac_compiler=`set X $ac_compile; echo $2`
15855{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15856 (eval $ac_compiler --version </dev/null >&5) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }
15860{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15861 (eval $ac_compiler -v </dev/null >&5) 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }
15865{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15866 (eval $ac_compiler -V </dev/null >&5) 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }
15870
15871echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15872echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
15873if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15875else
15876 cat >conftest.$ac_ext <<_ACEOF
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882
15883int
15884main ()
15885{
15886#ifndef __GNUC__
15887 choke me
15888#endif
15889
15890 ;
15891 return 0;
15892}
15893_ACEOF
15894rm -f conftest.$ac_objext
15895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15896 (eval $ac_compile) 2>conftest.er1
15897 ac_status=$?
15898 grep -v '^ *+' conftest.er1 >conftest.err
15899 rm -f conftest.er1
15900 cat conftest.err >&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } &&
15903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; } &&
15909 { ac_try='test -s conftest.$ac_objext'
15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15912 ac_status=$?
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15915 ac_compiler_gnu=yes
15916else
15917 echo "$as_me: failed program was:" >&5
15918sed 's/^/| /' conftest.$ac_ext >&5
15919
15920ac_compiler_gnu=no
15921fi
15922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15923ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15924
15925fi
15926echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15927echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
15928GXX=`test $ac_compiler_gnu = yes && echo yes`
15929ac_test_CXXFLAGS=${CXXFLAGS+set}
15930ac_save_CXXFLAGS=$CXXFLAGS
15931CXXFLAGS="-g"
15932echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15933echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
15934if test "${ac_cv_prog_cxx_g+set}" = set; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
15936else
15937 cat >conftest.$ac_ext <<_ACEOF
15938/* confdefs.h. */
15939_ACEOF
15940cat confdefs.h >>conftest.$ac_ext
15941cat >>conftest.$ac_ext <<_ACEOF
15942/* end confdefs.h. */
15943
15944int
15945main ()
15946{
15947
15948 ;
15949 return 0;
15950}
15951_ACEOF
15952rm -f conftest.$ac_objext
15953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15954 (eval $ac_compile) 2>conftest.er1
15955 ac_status=$?
15956 grep -v '^ *+' conftest.er1 >conftest.err
15957 rm -f conftest.er1
15958 cat conftest.err >&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); } &&
15961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; } &&
15967 { ac_try='test -s conftest.$ac_objext'
15968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969 (eval $ac_try) 2>&5
15970 ac_status=$?
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; }; then
15973 ac_cv_prog_cxx_g=yes
15974else
15975 echo "$as_me: failed program was:" >&5
15976sed 's/^/| /' conftest.$ac_ext >&5
15977
15978ac_cv_prog_cxx_g=no
15979fi
15980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15981fi
15982echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15983echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
15984if test "$ac_test_CXXFLAGS" = set; then
15985 CXXFLAGS=$ac_save_CXXFLAGS
15986elif test $ac_cv_prog_cxx_g = yes; then
15987 if test "$GXX" = yes; then
15988 CXXFLAGS="-g -O2"
15989 else
15990 CXXFLAGS="-g"
15991 fi
15992else
15993 if test "$GXX" = yes; then
15994 CXXFLAGS="-O2"
15995 else
15996 CXXFLAGS=
15997 fi
15998fi
15999for ac_declaration in \
16000 '' \
16001 'extern "C" void std::exit (int) throw (); using std::exit;' \
16002 'extern "C" void std::exit (int); using std::exit;' \
16003 'extern "C" void exit (int) throw ();' \
16004 'extern "C" void exit (int);' \
16005 'void exit (int);'
16006do
16007 cat >conftest.$ac_ext <<_ACEOF
16008/* confdefs.h. */
16009_ACEOF
16010cat confdefs.h >>conftest.$ac_ext
16011cat >>conftest.$ac_ext <<_ACEOF
16012/* end confdefs.h. */
16013$ac_declaration
16014#include <stdlib.h>
16015int
16016main ()
16017{
16018exit (42);
16019 ;
16020 return 0;
16021}
16022_ACEOF
16023rm -f conftest.$ac_objext
16024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16025 (eval $ac_compile) 2>conftest.er1
16026 ac_status=$?
16027 grep -v '^ *+' conftest.er1 >conftest.err
16028 rm -f conftest.er1
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } &&
16032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; } &&
16038 { ac_try='test -s conftest.$ac_objext'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 :
16045else
16046 echo "$as_me: failed program was:" >&5
16047sed 's/^/| /' conftest.$ac_ext >&5
16048
16049continue
16050fi
16051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16052 cat >conftest.$ac_ext <<_ACEOF
16053/* confdefs.h. */
16054_ACEOF
16055cat confdefs.h >>conftest.$ac_ext
16056cat >>conftest.$ac_ext <<_ACEOF
16057/* end confdefs.h. */
16058$ac_declaration
16059int
16060main ()
16061{
16062exit (42);
16063 ;
16064 return 0;
16065}
16066_ACEOF
16067rm -f conftest.$ac_objext
16068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16069 (eval $ac_compile) 2>conftest.er1
16070 ac_status=$?
16071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } &&
16076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest.$ac_objext'
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16088 break
16089else
16090 echo "$as_me: failed program was:" >&5
16091sed 's/^/| /' conftest.$ac_ext >&5
16092
16093fi
16094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16095done
16096rm -f conftest*
16097if test -n "$ac_declaration"; then
16098 echo '#ifdef __cplusplus' >>confdefs.h
16099 echo $ac_declaration >>confdefs.h
16100 echo '#endif' >>confdefs.h
16101fi
16102
16103ac_ext=c
16104ac_cpp='$CPP $CPPFLAGS'
16105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16107ac_compiler_gnu=$ac_cv_c_compiler_gnu
16108
16109depcc="$CXX" am_compiler_list=
16110
16111echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16112echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16113if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16115else
16116 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16117 # We make a subdir and do the tests there. Otherwise we can end up
16118 # making bogus files that we don't know about and never remove. For
16119 # instance it was reported that on HP-UX the gcc test will end up
16120 # making a dummy file named `D' -- because `-MD' means `put the output
16121 # in D'.
16122 mkdir conftest.dir
16123 # Copy depcomp to subdir because otherwise we won't find it if we're
16124 # using a relative directory.
16125 cp "$am_depcomp" conftest.dir
16126 cd conftest.dir
16127 # We will build objects and dependencies in a subdirectory because
16128 # it helps to detect inapplicable dependency modes. For instance
16129 # both Tru64's cc and ICC support -MD to output dependencies as a
16130 # side effect of compilation, but ICC will put the dependencies in
16131 # the current directory while Tru64 will put them in the object
16132 # directory.
16133 mkdir sub
16134
16135 am_cv_CXX_dependencies_compiler_type=none
16136 if test "$am_compiler_list" = ""; then
16137 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16138 fi
16139 for depmode in $am_compiler_list; do
16140 # Setup a source with many dependencies, because some compilers
16141 # like to wrap large dependency lists on column 80 (with \), and
16142 # we should not choose a depcomp mode which is confused by this.
16143 #
16144 # We need to recreate these files for each test, as the compiler may
16145 # overwrite some of them when testing with obscure command lines.
16146 # This happens at least with the AIX C compiler.
16147 : > sub/conftest.c
16148 for i in 1 2 3 4 5 6; do
16149 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16150 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16151 # Solaris 8's {/usr,}/bin/sh.
16152 touch sub/conftst$i.h
16153 done
16154 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16155
16156 case $depmode in
16157 nosideeffect)
16158 # after this tag, mechanisms are not by side-effect, so they'll
16159 # only be used when explicitly requested
16160 if test "x$enable_dependency_tracking" = xyes; then
16161 continue
16162 else
16163 break
16164 fi
16165 ;;
16166 none) break ;;
16167 esac
16168 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16169 # mode. It turns out that the SunPro C++ compiler does not properly
16170 # handle `-M -o', and we need to detect this.
16171 if depmode=$depmode \
16172 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16173 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16174 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16175 >/dev/null 2>conftest.err &&
16176 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16177 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16178 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16179 # icc doesn't choke on unknown options, it will just issue warnings
16180 # or remarks (even with -Werror). So we grep stderr for any message
16181 # that says an option was ignored or not supported.
16182 # When given -MP, icc 7.0 and 7.1 complain thusly:
16183 # icc: Command line warning: ignoring option '-M'; no argument required
16184 # The diagnosis changed in icc 8.0:
16185 # icc: Command line remark: option '-MP' not supported
16186 if (grep 'ignoring option' conftest.err ||
16187 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16188 am_cv_CXX_dependencies_compiler_type=$depmode
16189 break
16190 fi
16191 fi
16192 done
16193
16194 cd ..
16195 rm -rf conftest.dir
16196else
16197 am_cv_CXX_dependencies_compiler_type=none
16198fi
16199
16200fi
16201echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
16202echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
16203CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16204
16205
16206
16207if
16208 test "x$enable_dependency_tracking" != xno \
16209 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16210 am__fastdepCXX_TRUE=
16211 am__fastdepCXX_FALSE='#'
16212else
16213 am__fastdepCXX_TRUE='#'
16214 am__fastdepCXX_FALSE=
16215fi
16216
16217
16218if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16219 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16220 (test "X$CXX" != "Xg++"))) ; then
16221 ac_ext=cc
16222ac_cpp='$CXXCPP $CPPFLAGS'
16223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16226echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16227echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16228if test -z "$CXXCPP"; then
16229 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16231else
16232 # Double quotes because CXXCPP needs to be expanded
16233 for CXXCPP in "$CXX -E" "/lib/cpp"
16234 do
16235 ac_preproc_ok=false
16236for ac_cxx_preproc_warn_flag in '' yes
16237do
16238 # Use a header file that comes with gcc, so configuring glibc
16239 # with a fresh cross-compiler works.
16240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16241 # <limits.h> exists even on freestanding compilers.
16242 # On the NeXT, cc -E runs the code through the compiler's parser,
16243 # not just through cpp. "Syntax error" is here to catch this case.
16244 cat >conftest.$ac_ext <<_ACEOF
16245/* confdefs.h. */
16246_ACEOF
16247cat confdefs.h >>conftest.$ac_ext
16248cat >>conftest.$ac_ext <<_ACEOF
16249/* end confdefs.h. */
16250#ifdef __STDC__
16251# include <limits.h>
16252#else
16253# include <assert.h>
16254#endif
16255 Syntax error
16256_ACEOF
16257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16259 ac_status=$?
16260 grep -v '^ *+' conftest.er1 >conftest.err
16261 rm -f conftest.er1
16262 cat conftest.err >&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } >/dev/null; then
16265 if test -s conftest.err; then
16266 ac_cpp_err=$ac_cxx_preproc_warn_flag
16267 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16268 else
16269 ac_cpp_err=
16270 fi
16271else
16272 ac_cpp_err=yes
16273fi
16274if test -z "$ac_cpp_err"; then
16275 :
16276else
16277 echo "$as_me: failed program was:" >&5
16278sed 's/^/| /' conftest.$ac_ext >&5
16279
16280 # Broken: fails on valid input.
16281continue
16282fi
16283rm -f conftest.err conftest.$ac_ext
16284
16285 # OK, works on sane cases. Now check whether non-existent headers
16286 # can be detected and how.
16287 cat >conftest.$ac_ext <<_ACEOF
16288/* confdefs.h. */
16289_ACEOF
16290cat confdefs.h >>conftest.$ac_ext
16291cat >>conftest.$ac_ext <<_ACEOF
16292/* end confdefs.h. */
16293#include <ac_nonexistent.h>
16294_ACEOF
16295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16297 ac_status=$?
16298 grep -v '^ *+' conftest.er1 >conftest.err
16299 rm -f conftest.er1
16300 cat conftest.err >&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } >/dev/null; then
16303 if test -s conftest.err; then
16304 ac_cpp_err=$ac_cxx_preproc_warn_flag
16305 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16306 else
16307 ac_cpp_err=
16308 fi
16309else
16310 ac_cpp_err=yes
16311fi
16312if test -z "$ac_cpp_err"; then
16313 # Broken: success on invalid input.
16314continue
16315else
16316 echo "$as_me: failed program was:" >&5
16317sed 's/^/| /' conftest.$ac_ext >&5
16318
16319 # Passes both tests.
16320ac_preproc_ok=:
16321break
16322fi
16323rm -f conftest.err conftest.$ac_ext
16324
16325done
16326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16327rm -f conftest.err conftest.$ac_ext
16328if $ac_preproc_ok; then
16329 break
16330fi
16331
16332 done
16333 ac_cv_prog_CXXCPP=$CXXCPP
16334
16335fi
16336 CXXCPP=$ac_cv_prog_CXXCPP
16337else
16338 ac_cv_prog_CXXCPP=$CXXCPP
16339fi
16340echo "$as_me:$LINENO: result: $CXXCPP" >&5
16341echo "${ECHO_T}$CXXCPP" >&6
16342ac_preproc_ok=false
16343for ac_cxx_preproc_warn_flag in '' yes
16344do
16345 # Use a header file that comes with gcc, so configuring glibc
16346 # with a fresh cross-compiler works.
16347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16348 # <limits.h> exists even on freestanding compilers.
16349 # On the NeXT, cc -E runs the code through the compiler's parser,
16350 # not just through cpp. "Syntax error" is here to catch this case.
16351 cat >conftest.$ac_ext <<_ACEOF
16352/* confdefs.h. */
16353_ACEOF
16354cat confdefs.h >>conftest.$ac_ext
16355cat >>conftest.$ac_ext <<_ACEOF
16356/* end confdefs.h. */
16357#ifdef __STDC__
16358# include <limits.h>
16359#else
16360# include <assert.h>
16361#endif
16362 Syntax error
16363_ACEOF
16364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16366 ac_status=$?
16367 grep -v '^ *+' conftest.er1 >conftest.err
16368 rm -f conftest.er1
16369 cat conftest.err >&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } >/dev/null; then
16372 if test -s conftest.err; then
16373 ac_cpp_err=$ac_cxx_preproc_warn_flag
16374 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16375 else
16376 ac_cpp_err=
16377 fi
16378else
16379 ac_cpp_err=yes
16380fi
16381if test -z "$ac_cpp_err"; then
16382 :
16383else
16384 echo "$as_me: failed program was:" >&5
16385sed 's/^/| /' conftest.$ac_ext >&5
16386
16387 # Broken: fails on valid input.
16388continue
16389fi
16390rm -f conftest.err conftest.$ac_ext
16391
16392 # OK, works on sane cases. Now check whether non-existent headers
16393 # can be detected and how.
16394 cat >conftest.$ac_ext <<_ACEOF
16395/* confdefs.h. */
16396_ACEOF
16397cat confdefs.h >>conftest.$ac_ext
16398cat >>conftest.$ac_ext <<_ACEOF
16399/* end confdefs.h. */
16400#include <ac_nonexistent.h>
16401_ACEOF
16402if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16404 ac_status=$?
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } >/dev/null; then
16410 if test -s conftest.err; then
16411 ac_cpp_err=$ac_cxx_preproc_warn_flag
16412 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16413 else
16414 ac_cpp_err=
16415 fi
16416else
16417 ac_cpp_err=yes
16418fi
16419if test -z "$ac_cpp_err"; then
16420 # Broken: success on invalid input.
16421continue
16422else
16423 echo "$as_me: failed program was:" >&5
16424sed 's/^/| /' conftest.$ac_ext >&5
16425
16426 # Passes both tests.
16427ac_preproc_ok=:
16428break
16429fi
16430rm -f conftest.err conftest.$ac_ext
16431
16432done
16433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16434rm -f conftest.err conftest.$ac_ext
16435if $ac_preproc_ok; then
16436 :
16437else
16438 _lt_caught_CXX_error=yes
16439fi
16440
16441ac_ext=c
16442ac_cpp='$CPP $CPPFLAGS'
16443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16445ac_compiler_gnu=$ac_cv_c_compiler_gnu
16446
16447else
16448 _lt_caught_CXX_error=yes
16449fi
16450
16451
16452
16453ac_ext=cc
16454ac_cpp='$CXXCPP $CPPFLAGS'
16455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16458if test -n "$ac_tool_prefix"; then
16459 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
16460 do
16461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16462set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16463echo "$as_me:$LINENO: checking for $ac_word" >&5
16464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16465if test "${ac_cv_prog_CXX+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16467else
16468 if test -n "$CXX"; then
16469 ac_cv_prog_CXX="$CXX" # Let the user override the test.
16470else
16471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16472for as_dir in $PATH
16473do
16474 IFS=$as_save_IFS
16475 test -z "$as_dir" && as_dir=.
16476 for ac_exec_ext in '' $ac_executable_extensions; do
16477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16478 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16480 break 2
16481 fi
16482done
16483done
16484
16485fi
16486fi
16487CXX=$ac_cv_prog_CXX
16488if test -n "$CXX"; then
16489 echo "$as_me:$LINENO: result: $CXX" >&5
16490echo "${ECHO_T}$CXX" >&6
16491else
16492 echo "$as_me:$LINENO: result: no" >&5
16493echo "${ECHO_T}no" >&6
16494fi
16495
16496 test -n "$CXX" && break
16497 done
16498fi
16499if test -z "$CXX"; then
16500 ac_ct_CXX=$CXX
16501 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
16502do
16503 # Extract the first word of "$ac_prog", so it can be a program name with args.
16504set dummy $ac_prog; ac_word=$2
16505echo "$as_me:$LINENO: checking for $ac_word" >&5
16506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16507if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16509else
16510 if test -n "$ac_ct_CXX"; then
16511 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16512else
16513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16514for as_dir in $PATH
16515do
16516 IFS=$as_save_IFS
16517 test -z "$as_dir" && as_dir=.
16518 for ac_exec_ext in '' $ac_executable_extensions; do
16519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16520 ac_cv_prog_ac_ct_CXX="$ac_prog"
16521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16522 break 2
16523 fi
16524done
16525done
16526
16527fi
16528fi
16529ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16530if test -n "$ac_ct_CXX"; then
16531 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16532echo "${ECHO_T}$ac_ct_CXX" >&6
16533else
16534 echo "$as_me:$LINENO: result: no" >&5
16535echo "${ECHO_T}no" >&6
16536fi
16537
16538 test -n "$ac_ct_CXX" && break
16539done
16540test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
16541
16542 CXX=$ac_ct_CXX
16543fi
16544
16545
16546# Provide some information about the compiler.
16547echo "$as_me:$LINENO:" \
16548 "checking for C++ compiler version" >&5
16549ac_compiler=`set X $ac_compile; echo $2`
16550{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
16551 (eval $ac_compiler --version </dev/null >&5) 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }
16555{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
16556 (eval $ac_compiler -v </dev/null >&5) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }
16560{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
16561 (eval $ac_compiler -V </dev/null >&5) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }
16565
16566echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16567echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
16568if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16569 echo $ECHO_N "(cached) $ECHO_C" >&6
16570else
16571 cat >conftest.$ac_ext <<_ACEOF
16572/* confdefs.h. */
16573_ACEOF
16574cat confdefs.h >>conftest.$ac_ext
16575cat >>conftest.$ac_ext <<_ACEOF
16576/* end confdefs.h. */
16577
16578int
16579main ()
16580{
16581#ifndef __GNUC__
16582 choke me
16583#endif
16584
16585 ;
16586 return 0;
16587}
16588_ACEOF
16589rm -f conftest.$ac_objext
16590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16591 (eval $ac_compile) 2>conftest.er1
16592 ac_status=$?
16593 grep -v '^ *+' conftest.er1 >conftest.err
16594 rm -f conftest.er1
16595 cat conftest.err >&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } &&
16598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } &&
16604 { ac_try='test -s conftest.$ac_objext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_compiler_gnu=yes
16611else
16612 echo "$as_me: failed program was:" >&5
16613sed 's/^/| /' conftest.$ac_ext >&5
16614
16615ac_compiler_gnu=no
16616fi
16617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16618ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16619
16620fi
16621echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16622echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
16623GXX=`test $ac_compiler_gnu = yes && echo yes`
16624ac_test_CXXFLAGS=${CXXFLAGS+set}
16625ac_save_CXXFLAGS=$CXXFLAGS
16626CXXFLAGS="-g"
16627echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16628echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
16629if test "${ac_cv_prog_cxx_g+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16631else
16632 cat >conftest.$ac_ext <<_ACEOF
16633/* confdefs.h. */
16634_ACEOF
16635cat confdefs.h >>conftest.$ac_ext
16636cat >>conftest.$ac_ext <<_ACEOF
16637/* end confdefs.h. */
16638
16639int
16640main ()
16641{
16642
16643 ;
16644 return 0;
16645}
16646_ACEOF
16647rm -f conftest.$ac_objext
16648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16649 (eval $ac_compile) 2>conftest.er1
16650 ac_status=$?
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
16656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_cv_prog_cxx_g=yes
16669else
16670 echo "$as_me: failed program was:" >&5
16671sed 's/^/| /' conftest.$ac_ext >&5
16672
16673ac_cv_prog_cxx_g=no
16674fi
16675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16676fi
16677echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16678echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
16679if test "$ac_test_CXXFLAGS" = set; then
16680 CXXFLAGS=$ac_save_CXXFLAGS
16681elif test $ac_cv_prog_cxx_g = yes; then
16682 if test "$GXX" = yes; then
16683 CXXFLAGS="-g -O2"
16684 else
16685 CXXFLAGS="-g"
16686 fi
16687else
16688 if test "$GXX" = yes; then
16689 CXXFLAGS="-O2"
16690 else
16691 CXXFLAGS=
16692 fi
16693fi
16694for ac_declaration in \
16695 '' \
16696 'extern "C" void std::exit (int) throw (); using std::exit;' \
16697 'extern "C" void std::exit (int); using std::exit;' \
16698 'extern "C" void exit (int) throw ();' \
16699 'extern "C" void exit (int);' \
16700 'void exit (int);'
16701do
16702 cat >conftest.$ac_ext <<_ACEOF
16703/* confdefs.h. */
16704_ACEOF
16705cat confdefs.h >>conftest.$ac_ext
16706cat >>conftest.$ac_ext <<_ACEOF
16707/* end confdefs.h. */
16708$ac_declaration
16709#include <stdlib.h>
16710int
16711main ()
16712{
16713exit (42);
16714 ;
16715 return 0;
16716}
16717_ACEOF
16718rm -f conftest.$ac_objext
16719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16720 (eval $ac_compile) 2>conftest.er1
16721 ac_status=$?
16722 grep -v '^ *+' conftest.er1 >conftest.err
16723 rm -f conftest.er1
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
16727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; } &&
16733 { ac_try='test -s conftest.$ac_objext'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 :
16740else
16741 echo "$as_me: failed program was:" >&5
16742sed 's/^/| /' conftest.$ac_ext >&5
16743
16744continue
16745fi
16746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16747 cat >conftest.$ac_ext <<_ACEOF
16748/* confdefs.h. */
16749_ACEOF
16750cat confdefs.h >>conftest.$ac_ext
16751cat >>conftest.$ac_ext <<_ACEOF
16752/* end confdefs.h. */
16753$ac_declaration
16754int
16755main ()
16756{
16757exit (42);
16758 ;
16759 return 0;
16760}
16761_ACEOF
16762rm -f conftest.$ac_objext
16763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16764 (eval $ac_compile) 2>conftest.er1
16765 ac_status=$?
16766 grep -v '^ *+' conftest.er1 >conftest.err
16767 rm -f conftest.er1
16768 cat conftest.err >&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } &&
16771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest.$ac_objext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 break
16784else
16785 echo "$as_me: failed program was:" >&5
16786sed 's/^/| /' conftest.$ac_ext >&5
16787
16788fi
16789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16790done
16791rm -f conftest*
16792if test -n "$ac_declaration"; then
16793 echo '#ifdef __cplusplus' >>confdefs.h
16794 echo $ac_declaration >>confdefs.h
16795 echo '#endif' >>confdefs.h
16796fi
16797
16798ac_ext=c
16799ac_cpp='$CPP $CPPFLAGS'
16800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16802ac_compiler_gnu=$ac_cv_c_compiler_gnu
16803
16804depcc="$CXX" am_compiler_list=
16805
16806echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16807echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16808if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16810else
16811 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16812 # We make a subdir and do the tests there. Otherwise we can end up
16813 # making bogus files that we don't know about and never remove. For
16814 # instance it was reported that on HP-UX the gcc test will end up
16815 # making a dummy file named `D' -- because `-MD' means `put the output
16816 # in D'.
16817 mkdir conftest.dir
16818 # Copy depcomp to subdir because otherwise we won't find it if we're
16819 # using a relative directory.
16820 cp "$am_depcomp" conftest.dir
16821 cd conftest.dir
16822 # We will build objects and dependencies in a subdirectory because
16823 # it helps to detect inapplicable dependency modes. For instance
16824 # both Tru64's cc and ICC support -MD to output dependencies as a
16825 # side effect of compilation, but ICC will put the dependencies in
16826 # the current directory while Tru64 will put them in the object
16827 # directory.
16828 mkdir sub
16829
16830 am_cv_CXX_dependencies_compiler_type=none
16831 if test "$am_compiler_list" = ""; then
16832 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16833 fi
16834 for depmode in $am_compiler_list; do
16835 # Setup a source with many dependencies, because some compilers
16836 # like to wrap large dependency lists on column 80 (with \), and
16837 # we should not choose a depcomp mode which is confused by this.
16838 #
16839 # We need to recreate these files for each test, as the compiler may
16840 # overwrite some of them when testing with obscure command lines.
16841 # This happens at least with the AIX C compiler.
16842 : > sub/conftest.c
16843 for i in 1 2 3 4 5 6; do
16844 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16845 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16846 # Solaris 8's {/usr,}/bin/sh.
16847 touch sub/conftst$i.h
16848 done
16849 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16850
16851 case $depmode in
16852 nosideeffect)
16853 # after this tag, mechanisms are not by side-effect, so they'll
16854 # only be used when explicitly requested
16855 if test "x$enable_dependency_tracking" = xyes; then
16856 continue
16857 else
16858 break
16859 fi
16860 ;;
16861 none) break ;;
16862 esac
16863 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16864 # mode. It turns out that the SunPro C++ compiler does not properly
16865 # handle `-M -o', and we need to detect this.
16866 if depmode=$depmode \
16867 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16868 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16869 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16870 >/dev/null 2>conftest.err &&
16871 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16872 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16873 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16874 # icc doesn't choke on unknown options, it will just issue warnings
16875 # or remarks (even with -Werror). So we grep stderr for any message
16876 # that says an option was ignored or not supported.
16877 # When given -MP, icc 7.0 and 7.1 complain thusly:
16878 # icc: Command line warning: ignoring option '-M'; no argument required
16879 # The diagnosis changed in icc 8.0:
16880 # icc: Command line remark: option '-MP' not supported
16881 if (grep 'ignoring option' conftest.err ||
16882 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16883 am_cv_CXX_dependencies_compiler_type=$depmode
16884 break
16885 fi
16886 fi
16887 done
16888
16889 cd ..
16890 rm -rf conftest.dir
16891else
16892 am_cv_CXX_dependencies_compiler_type=none
16893fi
16894
16895fi
16896echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
16897echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
16898CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16899
16900
16901
16902if
16903 test "x$enable_dependency_tracking" != xno \
16904 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16905 am__fastdepCXX_TRUE=
16906 am__fastdepCXX_FALSE='#'
16907else
16908 am__fastdepCXX_TRUE='#'
16909 am__fastdepCXX_FALSE=
16910fi
16911
16912
16913ac_ext=cc
16914ac_cpp='$CXXCPP $CPPFLAGS'
16915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16918
16919archive_cmds_need_lc_CXX=no
16920allow_undefined_flag_CXX=
16921always_export_symbols_CXX=no
16922archive_expsym_cmds_CXX=
16923export_dynamic_flag_spec_CXX=
16924hardcode_direct_CXX=no
16925hardcode_libdir_flag_spec_CXX=
16926hardcode_libdir_flag_spec_ld_CXX=
16927hardcode_libdir_separator_CXX=
16928hardcode_minus_L_CXX=no
16929hardcode_shlibpath_var_CXX=unsupported
16930hardcode_automatic_CXX=no
16931inherit_rpath_CXX=no
16932module_cmds_CXX=
16933module_expsym_cmds_CXX=
16934link_all_deplibs_CXX=unknown
16935old_archive_cmds_CXX=$old_archive_cmds
16936no_undefined_flag_CXX=
16937whole_archive_flag_spec_CXX=
16938enable_shared_with_static_runtimes_CXX=no
16939
16940# Source file extension for C++ test sources.
16941ac_ext=cpp
16942
16943# Object file extension for compiled C++ test sources.
16944objext=o
16945objext_CXX=$objext
16946
16947# No sense in running all these tests if we already determined that
16948# the CXX compiler isn't working. Some variables (like enable_shared)
16949# are currently assumed to apply to all compilers on this platform,
16950# and will be corrupted by setting them based on a non-working compiler.
16951if test "$_lt_caught_CXX_error" != yes; then
16952 # Code to be used in simple compile tests
16953 lt_simple_compile_test_code="int some_variable = 0;\n"
16954
16955 # Code to be used in simple link tests
16956 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
16957
16958 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16959
16960
16961
16962
16963
16964
16965# If no C compiler was specified, use CC.
16966LTCC=${LTCC-"$CC"}
16967
16968# If no C compiler flags were specified, use CFLAGS.
16969LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16970
16971# Allow CC to be a program name with arguments.
16972compiler=$CC
16973
16974
16975 # save warnings/boilerplate of simple test code
16976 ac_outfile=conftest.$ac_objext
16977printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16978eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16979_lt_compiler_boilerplate=`cat conftest.err`
16980$RM conftest*
16981
16982 ac_outfile=conftest.$ac_objext
16983printf "$lt_simple_link_test_code" >conftest.$ac_ext
16984eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16985_lt_linker_boilerplate=`cat conftest.err`
16986$RM conftest*
16987
16988
16989 # Allow CC to be a program name with arguments.
16990 lt_save_CC=$CC
16991 lt_save_LD=$LD
16992 lt_save_GCC=$GCC
16993 GCC=$GXX
16994 lt_save_with_gnu_ld=$with_gnu_ld
16995 lt_save_path_LD=$lt_cv_path_LD
16996 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16997 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16998 else
16999 $as_unset lt_cv_prog_gnu_ld
17000 fi
17001 if test -n "${lt_cv_path_LDCXX+set}"; then
17002 lt_cv_path_LD=$lt_cv_path_LDCXX
17003 else
17004 $as_unset lt_cv_path_LD
17005 fi
17006 test -z "${LDCXX+set}" || LD=$LDCXX
17007 CC=${CXX-"c++"}
17008 compiler=$CC
17009 compiler_CXX=$CC
17010 for cc_temp in $compiler""; do
17011 case $cc_temp in
17012 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17013 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17014 \-*) ;;
17015 *) break;;
17016 esac
17017done
17018cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17019
17020
17021 if test -n "$compiler"; then
17022 # We don't want -fno-exception when compiling C++ code, so set the
17023 # no_builtin_flag separately
17024 if test "$GXX" = yes; then
17025 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17026 else
17027 lt_prog_compiler_no_builtin_flag_CXX=
17028 fi
17029
17030 if test "$GXX" = yes; then
17031 # Set up default GNU C++ configuration
17032
17033
17034
17035# Check whether --with-gnu-ld or --without-gnu-ld was given.
17036if test "${with_gnu_ld+set}" = set; then
17037 withval="$with_gnu_ld"
17038 test "$withval" = no || with_gnu_ld=yes
17039else
17040 with_gnu_ld=no
17041fi;
17042ac_prog=ld
17043if test "$GCC" = yes; then
17044 # Check if gcc -print-prog-name=ld gives a path.
17045 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17046echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17047 case $host in
17048 *-*-mingw*)
17049 # gcc leaves a trailing carriage return which upsets mingw
17050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17051 *)
17052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17053 esac
17054 case $ac_prog in
17055 # Accept absolute paths.
17056 [\\/]* | ?:[\\/]*)
17057 re_direlt='/[^/][^/]*/\.\./'
17058 # Canonicalize the pathname of ld
17059 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17060 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17061 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17062 done
17063 test -z "$LD" && LD="$ac_prog"
17064 ;;
17065 "")
17066 # If it fails, then pretend we aren't using GCC.
17067 ac_prog=ld
17068 ;;
17069 *)
17070 # If it is relative, then search for the first ld in PATH.
17071 with_gnu_ld=unknown
17072 ;;
17073 esac
17074elif test "$with_gnu_ld" = yes; then
17075 echo "$as_me:$LINENO: checking for GNU ld" >&5
17076echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17077else
17078 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17079echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17080fi
17081if test "${lt_cv_path_LD+set}" = set; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17083else
17084 if test -z "$LD"; then
17085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17086 for ac_dir in $PATH; do
17087 IFS="$lt_save_ifs"
17088 test -z "$ac_dir" && ac_dir=.
17089 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17090 lt_cv_path_LD="$ac_dir/$ac_prog"
17091 # Check to see if the program is GNU ld. I'd rather use --version,
17092 # but apparently some variants of GNU ld only accept -v.
17093 # Break only if it was the GNU/non-GNU ld that we prefer.
17094 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17095 *GNU* | *'with BFD'*)
17096 test "$with_gnu_ld" != no && break
17097 ;;
17098 *)
17099 test "$with_gnu_ld" != yes && break
17100 ;;
17101 esac
17102 fi
17103 done
17104 IFS="$lt_save_ifs"
17105else
17106 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17107fi
17108fi
17109
17110LD="$lt_cv_path_LD"
17111if test -n "$LD"; then
17112 echo "$as_me:$LINENO: result: $LD" >&5
17113echo "${ECHO_T}$LD" >&6
17114else
17115 echo "$as_me:$LINENO: result: no" >&5
17116echo "${ECHO_T}no" >&6
17117fi
17118test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17119echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17120 { (exit 1); exit 1; }; }
17121echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17122echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17123if test "${lt_cv_prog_gnu_ld+set}" = set; then
17124 echo $ECHO_N "(cached) $ECHO_C" >&6
17125else
17126 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17127case `$LD -v 2>&1 </dev/null` in
17128*GNU* | *'with BFD'*)
17129 lt_cv_prog_gnu_ld=yes
17130 ;;
17131*)
17132 lt_cv_prog_gnu_ld=no
17133 ;;
17134esac
17135fi
17136echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17137echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17138with_gnu_ld=$lt_cv_prog_gnu_ld
17139
17140
17141
17142
17143
17144
17145
17146 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17147 # archiving commands below assume that GNU ld is being used.
17148 if test "$with_gnu_ld" = yes; then
17149 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17150 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'
17151
17152 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17153 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17154
17155 # If archive_cmds runs LD, not CC, wlarc should be empty
17156 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17157 # investigate it a little bit more. (MM)
17158 wlarc='${wl}'
17159
17160 # ancient GNU ld didn't support --whole-archive et. al.
17161 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17162 $GREP 'no-whole-archive' > /dev/null; then
17163 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17164 else
17165 whole_archive_flag_spec_CXX=
17166 fi
17167 else
17168 with_gnu_ld=no
17169 wlarc=
17170
17171 # A generic and very simple default shared library creation
17172 # command for GNU C++ for the case where it uses the native
17173 # linker, instead of GNU ld. If possible, this setting should
17174 # overridden to take advantage of the native linker features on
17175 # the platform it is being used on.
17176 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17177 fi
17178
17179 # Commands to make compiler produce verbose output that lists
17180 # what "hidden" libraries, object files and flags are used when
17181 # linking a shared library.
17182 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17183
17184 else
17185 GXX=no
17186 with_gnu_ld=no
17187 wlarc=
17188 fi
17189
17190 # PORTME: fill in a description of your system's C++ link characteristics
17191 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17192echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17193 ld_shlibs_CXX=yes
17194 case $host_os in
17195 aix3*)
17196 # FIXME: insert proper C++ library support
17197 ld_shlibs_CXX=no
17198 ;;
17199 aix4* | aix5*)
17200 if test "$host_cpu" = ia64; then
17201 # On IA64, the linker does run time linking by default, so we don't
17202 # have to do anything special.
17203 aix_use_runtimelinking=no
17204 exp_sym_flag='-Bexport'
17205 no_entry_flag=""
17206 else
17207 aix_use_runtimelinking=no
17208
17209 # Test if we are trying to use run time linking or normal
17210 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17211 # need to do runtime linking.
17212 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17213 for ld_flag in $LDFLAGS; do
17214 case $ld_flag in
17215 *-brtl*)
17216 aix_use_runtimelinking=yes
17217 break
17218 ;;
17219 esac
17220 done
17221 ;;
17222 esac
17223
17224 exp_sym_flag='-bexport'
17225 no_entry_flag='-bnoentry'
17226 fi
17227
17228 # When large executables or shared objects are built, AIX ld can
17229 # have problems creating the table of contents. If linking a library
17230 # or program results in "error TOC overflow" add -mminimal-toc to
17231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17233
17234 archive_cmds_CXX=''
17235 hardcode_direct_CXX=yes
17236 hardcode_libdir_separator_CXX=':'
17237 link_all_deplibs_CXX=yes
17238 file_list_spec_CXX='${wl}-f,'
17239
17240 if test "$GXX" = yes; then
17241 case $host_os in aix4.[012]|aix4.[012].*)
17242 # We only want to do this on AIX 4.2 and lower, the check
17243 # below for broken collect2 doesn't work under 4.3+
17244 collect2name=`${CC} -print-prog-name=collect2`
17245 if test -f "$collect2name" &&
17246 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17247 then
17248 # We have reworked collect2
17249 hardcode_direct_CXX=yes
17250 else
17251 # We have old collect2
17252 hardcode_direct_CXX=unsupported
17253 # It fails to find uninstalled libraries when the uninstalled
17254 # path is not listed in the libpath. Setting hardcode_minus_L
17255 # to unsupported forces relinking
17256 hardcode_minus_L_CXX=yes
17257 hardcode_libdir_flag_spec_CXX='-L$libdir'
17258 hardcode_libdir_separator_CXX=
17259 fi
17260 esac
17261 shared_flag='-shared'
17262 if test "$aix_use_runtimelinking" = yes; then
17263 shared_flag="$shared_flag "'${wl}-G'
17264 fi
17265 else
17266 # not using gcc
17267 if test "$host_cpu" = ia64; then
17268 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17269 # chokes on -Wl,-G. The following line is correct:
17270 shared_flag='-G'
17271 else
17272 if test "$aix_use_runtimelinking" = yes; then
17273 shared_flag='${wl}-G'
17274 else
17275 shared_flag='${wl}-bM:SRE'
17276 fi
17277 fi
17278 fi
17279
17280 # It seems that -bexpall does not export symbols beginning with
17281 # underscore (_), so it is better to generate a list of symbols to
17282 # export.
17283 always_export_symbols_CXX=yes
17284 if test "$aix_use_runtimelinking" = yes; then
17285 # Warning - without using the other runtime loading flags (-brtl),
17286 # -berok will link without error, but may produce a broken library.
17287 allow_undefined_flag_CXX='-berok'
17288 # Determine the default libpath from the value encoded in an empty
17289 # executable.
17290 cat >conftest.$ac_ext <<_ACEOF
17291/* confdefs.h. */
17292_ACEOF
17293cat confdefs.h >>conftest.$ac_ext
17294cat >>conftest.$ac_ext <<_ACEOF
17295/* end confdefs.h. */
17296
17297int
17298main ()
17299{
17300
17301 ;
17302 return 0;
17303}
17304_ACEOF
17305rm -f conftest.$ac_objext conftest$ac_exeext
17306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17307 (eval $ac_link) 2>conftest.er1
17308 ac_status=$?
17309 grep -v '^ *+' conftest.er1 >conftest.err
17310 rm -f conftest.er1
17311 cat conftest.err >&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } &&
17314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; } &&
17320 { ac_try='test -s conftest$ac_exeext'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326
17327lt_aix_libpath_sed='
17328 /Import File Strings/,/^$/ {
17329 /^0/ {
17330 s/^0 *\(.*\)$/\1/
17331 p
17332 }
17333 }'
17334aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17335# Check for a 64-bit object if we didn't find anything.
17336if test -z "$aix_libpath"; then
17337 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17338fi
17339else
17340 echo "$as_me: failed program was:" >&5
17341sed 's/^/| /' conftest.$ac_ext >&5
17342
17343fi
17344rm -f conftest.err conftest.$ac_objext \
17345 conftest$ac_exeext conftest.$ac_ext
17346if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17347
17348 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17349
17350 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"
17351 else
17352 if test "$host_cpu" = ia64; then
17353 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17354 allow_undefined_flag_CXX="-z nodefs"
17355 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"
17356 else
17357 # Determine the default libpath from the value encoded in an
17358 # empty executable.
17359 cat >conftest.$ac_ext <<_ACEOF
17360/* confdefs.h. */
17361_ACEOF
17362cat confdefs.h >>conftest.$ac_ext
17363cat >>conftest.$ac_ext <<_ACEOF
17364/* end confdefs.h. */
17365
17366int
17367main ()
17368{
17369
17370 ;
17371 return 0;
17372}
17373_ACEOF
17374rm -f conftest.$ac_objext conftest$ac_exeext
17375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17376 (eval $ac_link) 2>conftest.er1
17377 ac_status=$?
17378 grep -v '^ *+' conftest.er1 >conftest.err
17379 rm -f conftest.er1
17380 cat conftest.err >&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } &&
17383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385 (eval $ac_try) 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest$ac_exeext'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395
17396lt_aix_libpath_sed='
17397 /Import File Strings/,/^$/ {
17398 /^0/ {
17399 s/^0 *\(.*\)$/\1/
17400 p
17401 }
17402 }'
17403aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17404# Check for a 64-bit object if we didn't find anything.
17405if test -z "$aix_libpath"; then
17406 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17407fi
17408else
17409 echo "$as_me: failed program was:" >&5
17410sed 's/^/| /' conftest.$ac_ext >&5
17411
17412fi
17413rm -f conftest.err conftest.$ac_objext \
17414 conftest$ac_exeext conftest.$ac_ext
17415if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17416
17417 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17418 # Warning - without using the other run time loading flags,
17419 # -berok will link without error, but may produce a broken library.
17420 no_undefined_flag_CXX=' ${wl}-bernotok'
17421 allow_undefined_flag_CXX=' ${wl}-berok'
17422 # Exported symbols can be pulled into shared objects from archives
17423 whole_archive_flag_spec_CXX='$convenience'
17424 archive_cmds_need_lc_CXX=yes
17425 # This is similar to how AIX traditionally builds its shared
17426 # libraries.
17427 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'
17428 fi
17429 fi
17430 ;;
17431
17432 beos*)
17433 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17434 allow_undefined_flag_CXX=unsupported
17435 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17436 # support --undefined. This deserves some investigation. FIXME
17437 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17438 else
17439 ld_shlibs_CXX=no
17440 fi
17441 ;;
17442
17443 chorus*)
17444 case $cc_basename in
17445 *)
17446 # FIXME: insert proper C++ library support
17447 ld_shlibs_CXX=no
17448 ;;
17449 esac
17450 ;;
17451
17452 cygwin* | mingw* | pw32*)
17453 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17454 # as there is no search path for DLLs.
17455 hardcode_libdir_flag_spec_CXX='-L$libdir'
17456 allow_undefined_flag_CXX=unsupported
17457 always_export_symbols_CXX=no
17458 enable_shared_with_static_runtimes_CXX=yes
17459
17460 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17461 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'
17462 # If the export-symbols file already is a .def file (1st line
17463 # is EXPORTS), use it as is; otherwise, prepend...
17464 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17465 cp $export_symbols $output_objdir/$soname.def;
17466 else
17467 echo EXPORTS > $output_objdir/$soname.def;
17468 cat $export_symbols >> $output_objdir/$soname.def;
17469 fi~
17470 $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'
17471 else
17472 ld_shlibs_CXX=no
17473 fi
17474 ;;
17475 darwin* | rhapsody*)
17476 case $host_os in
17477 rhapsody* | darwin1.[012])
17478 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17479 ;;
17480 *) # Darwin 1.3 on
17481 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17482 10.[012])
17483 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17484 ;;
17485 10.*)
17486 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17487 ;;
17488 esac
17489 ;;
17490 esac
17491 archive_cmds_need_lc_CXX=no
17492 hardcode_direct_CXX=no
17493 hardcode_automatic_CXX=yes
17494 hardcode_shlibpath_var_CXX=unsupported
17495 whole_archive_flag_spec_CXX=''
17496 link_all_deplibs_CXX=yes
17497
17498 if test "$GXX" = yes ; then
17499 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17501else
17502 lt_cv_apple_cc_single_mod=no
17503 if test -z "${LT_MULTI_MODULE}"; then
17504 # By default we will add the -single_module flag. You can override
17505 # by either setting the environment variable LT_MULTI_MODULE
17506 # non-empty at configure time, or by adding -multi-module to the
17507 # link flags.
17508 echo "int foo(void){return 1;}" > conftest.c
17509 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17510 -dynamiclib ${wl}-single_module conftest.c
17511 if test -f libconftest.dylib; then
17512 lt_cv_apple_cc_single_mod=yes
17513 rm libconftest.dylib
17514 fi
17515 rm conftest.$ac_ext
17516 fi
17517fi
17518
17519 output_verbose_link_cmd=echo
17520 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
17521 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17522 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}'
17523 else
17524 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'
17525 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}'
17526 fi
17527 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17528 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}'
17529 else
17530 case $cc_basename in
17531 xlc*)
17532 output_verbose_link_cmd=echo
17533 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'
17534 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17535 # Don't fix this by using the ld -exported_symbols_list flag,
17536 # it doesn't exist in older darwin lds
17537 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}'
17538 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}'
17539 ;;
17540 *)
17541 ld_shlibs_CXX=no
17542 ;;
17543 esac
17544 fi
17545 ;;
17546
17547 dgux*)
17548 case $cc_basename in
17549 ec++*)
17550 # FIXME: insert proper C++ library support
17551 ld_shlibs_CXX=no
17552 ;;
17553 ghcx*)
17554 # Green Hills C++ Compiler
17555 # FIXME: insert proper C++ library support
17556 ld_shlibs_CXX=no
17557 ;;
17558 *)
17559 # FIXME: insert proper C++ library support
17560 ld_shlibs_CXX=no
17561 ;;
17562 esac
17563 ;;
17564
17565 freebsd[12]*)
17566 # C++ shared libraries reported to be fairly broken before
17567 # switch to ELF
17568 ld_shlibs_CXX=no
17569 ;;
17570
17571 freebsd-elf*)
17572 archive_cmds_need_lc_CXX=no
17573 ;;
17574
17575 freebsd* | kfreebsd*-gnu | dragonfly*)
17576 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17577 # conventions
17578 ld_shlibs_CXX=yes
17579 ;;
17580
17581 gnu*)
17582 ;;
17583
17584 hpux9*)
17585 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17586 hardcode_libdir_separator_CXX=:
17587 export_dynamic_flag_spec_CXX='${wl}-E'
17588 hardcode_direct_CXX=yes
17589 hardcode_minus_L_CXX=yes # Not in the search PATH,
17590 # but as the default
17591 # location of the library.
17592
17593 case $cc_basename in
17594 CC*)
17595 # FIXME: insert proper C++ library support
17596 ld_shlibs_CXX=no
17597 ;;
17598 aCC*)
17599 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'
17600 # Commands to make compiler produce verbose output that lists
17601 # what "hidden" libraries, object files and flags are used when
17602 # linking a shared library.
17603 #
17604 # There doesn't appear to be a way to prevent this compiler from
17605 # explicitly linking system object files so we need to strip them
17606 # from the output so that they don't get included in the library
17607 # dependencies.
17608 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'
17609 ;;
17610 *)
17611 if test "$GXX" = yes; then
17612 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'
17613 else
17614 # FIXME: insert proper C++ library support
17615 ld_shlibs_CXX=no
17616 fi
17617 ;;
17618 esac
17619 ;;
17620
17621 hpux10*|hpux11*)
17622 if test $with_gnu_ld = no; then
17623 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17624 hardcode_libdir_separator_CXX=:
17625
17626 case $host_cpu in
17627 hppa*64*|ia64*)
17628 ;;
17629 *)
17630 export_dynamic_flag_spec_CXX='${wl}-E'
17631 ;;
17632 esac
17633 fi
17634 case $host_cpu in
17635 hppa*64*|ia64*)
17636 hardcode_direct_CXX=no
17637 hardcode_shlibpath_var_CXX=no
17638 ;;
17639 *)
17640 hardcode_direct_CXX=yes
17641 hardcode_minus_L_CXX=yes # Not in the search PATH,
17642 # but as the default
17643 # location of the library.
17644 ;;
17645 esac
17646
17647 case $cc_basename in
17648 CC*)
17649 # FIXME: insert proper C++ library support
17650 ld_shlibs_CXX=no
17651 ;;
17652 aCC*)
17653 case $host_cpu in
17654 hppa*64*)
17655 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17656 ;;
17657 ia64*)
17658 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17659 ;;
17660 *)
17661 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17662 ;;
17663 esac
17664 # Commands to make compiler produce verbose output that lists
17665 # what "hidden" libraries, object files and flags are used when
17666 # linking a shared library.
17667 #
17668 # There doesn't appear to be a way to prevent this compiler from
17669 # explicitly linking system object files so we need to strip them
17670 # from the output so that they don't get included in the library
17671 # dependencies.
17672 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'
17673 ;;
17674 *)
17675 if test "$GXX" = yes; then
17676 if test $with_gnu_ld = no; then
17677 case $host_cpu in
17678 hppa*64*)
17679 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17680 ;;
17681 ia64*)
17682 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17683 ;;
17684 *)
17685 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'
17686 ;;
17687 esac
17688 fi
17689 else
17690 # FIXME: insert proper C++ library support
17691 ld_shlibs_CXX=no
17692 fi
17693 ;;
17694 esac
17695 ;;
17696
17697 interix3*)
17698 hardcode_direct_CXX=no
17699 hardcode_shlibpath_var_CXX=no
17700 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17701 export_dynamic_flag_spec_CXX='${wl}-E'
17702 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17703 # Instead, shared libraries are loaded at an image base (0x10000000 by
17704 # default) and relocated if they conflict, which is a slow very memory
17705 # consuming and fragmenting process. To avoid this, we pick a random,
17706 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17707 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17708 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'
17709 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'
17710 ;;
17711 irix5* | irix6*)
17712 case $cc_basename in
17713 CC*)
17714 # SGI C++
17715 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'
17716
17717 # Archives containing C++ object files must be created using
17718 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17719 # necessary to make sure instantiated templates are included
17720 # in the archive.
17721 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17722 ;;
17723 *)
17724 if test "$GXX" = yes; then
17725 if test "$with_gnu_ld" = no; then
17726 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'
17727 else
17728 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'
17729 fi
17730 fi
17731 link_all_deplibs_CXX=yes
17732 ;;
17733 esac
17734 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17735 hardcode_libdir_separator_CXX=:
17736 inherit_rpath_CXX=yes
17737 ;;
17738
17739 linux*)
17740 case $cc_basename in
17741 KCC*)
17742 # Kuck and Associates, Inc. (KAI) C++ Compiler
17743
17744 # KCC will only create a shared library if the output file
17745 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17746 # to its proper name (with version) after linking.
17747 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'
17748 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'
17749 # Commands to make compiler produce verbose output that lists
17750 # what "hidden" libraries, object files and flags are used when
17751 # linking a shared library.
17752 #
17753 # There doesn't appear to be a way to prevent this compiler from
17754 # explicitly linking system object files so we need to strip them
17755 # from the output so that they don't get included in the library
17756 # dependencies.
17757 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'
17758
17759 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17760 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17761
17762 # Archives containing C++ object files must be created using
17763 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17764 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17765 ;;
17766 icpc* | ecpc* )
17767 # Intel C++
17768 with_gnu_ld=yes
17769 # version 8.0 and above of icpc choke on multiply defined symbols
17770 # if we add $predep_objects and $postdep_objects, however 7.1 and
17771 # earlier do not add the objects themselves.
17772 case `$CC -V 2>&1` in
17773 *"Version 7."*)
17774 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17775 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'
17776 ;;
17777 *) # Version 8.0 or newer
17778 tmp_idyn=
17779 case $host_cpu in
17780 ia64*) tmp_idyn=' -i_dynamic';;
17781 esac
17782 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17783 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'
17784 ;;
17785 esac
17786 archive_cmds_need_lc_CXX=no
17787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17788 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17789 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17790 ;;
17791 pgCC*)
17792 # Portland Group C++ compiler
17793 case `$CC -V` in
17794 *pgCC\ [1-5]*)
17795 prelink_cmds_CXX='tpldir=Template.dir~
17796 rm -rf $tpldir~
17797 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17798 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
17799 old_archive_cmds_CXX='tpldir=Template.dir~
17800 rm -rf $tpldir~
17801 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17802 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
17803 $RANLIB $oldlib'
17804 archive_cmds_CXX='tpldir=Template.dir~
17805 rm -rf $tpldir~
17806 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17807 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17808 archive_expsym_cmds_CXX='tpldir=Template.dir~
17809 rm -rf $tpldir~
17810 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17811 $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'
17812 ;;
17813 *) # Version 6 will use weak symbols
17814 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17815 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'
17816 ;;
17817 esac
17818
17819 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17820 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17821 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'
17822 ;;
17823 cxx*)
17824 # Compaq C++
17825 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17826 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'
17827
17828 runpath_var=LD_RUN_PATH
17829 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17830 hardcode_libdir_separator_CXX=:
17831
17832 # Commands to make compiler produce verbose output that lists
17833 # what "hidden" libraries, object files and flags are used when
17834 # linking a shared library.
17835 #
17836 # There doesn't appear to be a way to prevent this compiler from
17837 # explicitly linking system object files so we need to strip them
17838 # from the output so that they don't get included in the library
17839 # dependencies.
17840 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'
17841 ;;
17842 esac
17843 ;;
17844
17845 lynxos*)
17846 # FIXME: insert proper C++ library support
17847 ld_shlibs_CXX=no
17848 ;;
17849
17850 m88k*)
17851 # FIXME: insert proper C++ library support
17852 ld_shlibs_CXX=no
17853 ;;
17854
17855 mvs*)
17856 case $cc_basename in
17857 cxx*)
17858 # FIXME: insert proper C++ library support
17859 ld_shlibs_CXX=no
17860 ;;
17861 *)
17862 # FIXME: insert proper C++ library support
17863 ld_shlibs_CXX=no
17864 ;;
17865 esac
17866 ;;
17867
17868 netbsd*)
17869 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17870 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17871 wlarc=
17872 hardcode_libdir_flag_spec_CXX='-R$libdir'
17873 hardcode_direct_CXX=yes
17874 hardcode_shlibpath_var_CXX=no
17875 fi
17876 # Workaround some broken pre-1.5 toolchains
17877 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17878 ;;
17879
17880 *nto* | *qnx*)
17881 ld_shlibs_CXX=yes
17882 ;;
17883
17884 openbsd2*)
17885 # C++ shared libraries are fairly broken
17886 ld_shlibs_CXX=no
17887 ;;
17888
17889 openbsd*)
17890 hardcode_direct_CXX=yes
17891 hardcode_shlibpath_var_CXX=no
17892 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17893 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17894 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17895 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17896 export_dynamic_flag_spec_CXX='${wl}-E'
17897 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17898 fi
17899 output_verbose_link_cmd=echo
17900 ;;
17901
17902 osf3* | osf4* | osf5*)
17903 case $cc_basename in
17904 KCC*)
17905 # Kuck and Associates, Inc. (KAI) C++ Compiler
17906
17907 # KCC will only create a shared library if the output file
17908 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17909 # to its proper name (with version) after linking.
17910 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'
17911
17912 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17913 hardcode_libdir_separator_CXX=:
17914
17915 # Archives containing C++ object files must be created using
17916 # the KAI C++ compiler.
17917 case $host in
17918 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17919 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17920 esac
17921 ;;
17922 RCC*)
17923 # Rational C++ 2.4.1
17924 # FIXME: insert proper C++ library support
17925 ld_shlibs_CXX=no
17926 ;;
17927 cxx*)
17928 case $host in
17929 osf3*)
17930 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17931 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'
17932 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17933 ;;
17934 *)
17935 allow_undefined_flag_CXX=' -expect_unresolved \*'
17936 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'
17937 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17938 echo "-hidden">> $lib.exp~
17939 $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~
17940 $RM $lib.exp'
17941 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17942 ;;
17943 esac
17944
17945 hardcode_libdir_separator_CXX=:
17946
17947 # Commands to make compiler produce verbose output that lists
17948 # what "hidden" libraries, object files and flags are used when
17949 # linking a shared library.
17950 #
17951 # There doesn't appear to be a way to prevent this compiler from
17952 # explicitly linking system object files so we need to strip them
17953 # from the output so that they don't get included in the library
17954 # dependencies.
17955 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'
17956 ;;
17957 *)
17958 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17959 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17960 case $host in
17961 osf3*)
17962 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'
17963 ;;
17964 *)
17965 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'
17966 ;;
17967 esac
17968
17969 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17970 hardcode_libdir_separator_CXX=:
17971
17972 # Commands to make compiler produce verbose output that lists
17973 # what "hidden" libraries, object files and flags are used when
17974 # linking a shared library.
17975 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17976
17977 else
17978 # FIXME: insert proper C++ library support
17979 ld_shlibs_CXX=no
17980 fi
17981 ;;
17982 esac
17983 ;;
17984
17985 psos*)
17986 # FIXME: insert proper C++ library support
17987 ld_shlibs_CXX=no
17988 ;;
17989
17990 sunos4*)
17991 case $cc_basename in
17992 CC*)
17993 # Sun C++ 4.x
17994 # FIXME: insert proper C++ library support
17995 ld_shlibs_CXX=no
17996 ;;
17997 lcc*)
17998 # Lucid
17999 # FIXME: insert proper C++ library support
18000 ld_shlibs_CXX=no
18001 ;;
18002 *)
18003 # FIXME: insert proper C++ library support
18004 ld_shlibs_CXX=no
18005 ;;
18006 esac
18007 ;;
18008
18009 solaris*)
18010 case $cc_basename in
18011 CC*)
18012 # Sun C++ 4.2, 5.x and Centerline C++
18013 archive_cmds_need_lc_CXX=yes
18014 no_undefined_flag_CXX=' -zdefs'
18015 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18016 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18017 $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'
18018
18019 hardcode_libdir_flag_spec_CXX='-R$libdir'
18020 hardcode_shlibpath_var_CXX=no
18021 case $host_os in
18022 solaris2.[0-5] | solaris2.[0-5].*) ;;
18023 *)
18024 # The C++ compiler is used as linker so we must use $wl
18025 # flag to pass the commands to the underlying system
18026 # linker. We must also pass each convenience library through
18027 # to the system linker between allextract/defaultextract.
18028 # The C++ compiler will combine linker options so we
18029 # cannot just pass the convenience library names through
18030 # without $wl.
18031 # Supported since Solaris 2.6 (maybe 2.5.1?)
18032 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'
18033 ;;
18034 esac
18035 link_all_deplibs_CXX=yes
18036
18037 output_verbose_link_cmd='echo'
18038
18039 # Archives containing C++ object files must be created using
18040 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18041 # necessary to make sure instantiated templates are included
18042 # in the archive.
18043 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18044 ;;
18045 gcx*)
18046 # Green Hills C++ Compiler
18047 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18048
18049 # The C++ compiler must be used to create the archive.
18050 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18051 ;;
18052 *)
18053 # GNU C++ compiler with Solaris linker
18054 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18055 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18056 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18057 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18058 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18059 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18060
18061 # Commands to make compiler produce verbose output that lists
18062 # what "hidden" libraries, object files and flags are used when
18063 # linking a shared library.
18064 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18065 else
18066 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18067 # platform.
18068 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18069 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18070 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18071
18072 # Commands to make compiler produce verbose output that lists
18073 # what "hidden" libraries, object files and flags are used when
18074 # linking a shared library.
18075 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18076 fi
18077
18078 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18079 fi
18080 ;;
18081 esac
18082 ;;
18083
18084 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18085 no_undefined_flag_CXX='${wl}-z,text'
18086 archive_cmds_need_lc_CXX=no
18087 hardcode_shlibpath_var_CXX=no
18088 runpath_var='LD_RUN_PATH'
18089
18090 case $cc_basename in
18091 CC*)
18092 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18093 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18094 ;;
18095 *)
18096 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18097 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18098 ;;
18099 esac
18100 ;;
18101
18102 sysv5* | sco3.2v5* | sco5v6*)
18103 # Note: We can NOT use -z defs as we might desire, because we do not
18104 # link with -lc, and that would cause any symbols used from libc to
18105 # always be unresolved, which means just about no library would
18106 # ever link correctly. If we're not using GNU ld we use -z text
18107 # though, which does catch some bad symbols but isn't as heavy-handed
18108 # as -z defs.
18109 no_undefined_flag_CXX='${wl}-z,text'
18110 allow_undefined_flag_CXX='${wl}-z,nodefs'
18111 archive_cmds_need_lc_CXX=no
18112 hardcode_shlibpath_var_CXX=no
18113 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18114 hardcode_libdir_separator_CXX=':'
18115 link_all_deplibs_CXX=yes
18116 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18117 runpath_var='LD_RUN_PATH'
18118
18119 case $cc_basename in
18120 CC*)
18121 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18122 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18123 ;;
18124 *)
18125 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18126 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18127 ;;
18128 esac
18129 ;;
18130
18131 tandem*)
18132 case $cc_basename in
18133 NCC*)
18134 # NonStop-UX NCC 3.20
18135 # FIXME: insert proper C++ library support
18136 ld_shlibs_CXX=no
18137 ;;
18138 *)
18139 # FIXME: insert proper C++ library support
18140 ld_shlibs_CXX=no
18141 ;;
18142 esac
18143 ;;
18144
18145 vxworks*)
18146 # FIXME: insert proper C++ library support
18147 ld_shlibs_CXX=no
18148 ;;
18149
18150 *)
18151 # FIXME: insert proper C++ library support
18152 ld_shlibs_CXX=no
18153 ;;
18154 esac
18155
18156 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18157echo "${ECHO_T}$ld_shlibs_CXX" >&6
18158 test "$ld_shlibs_CXX" = no && can_build_shared=no
18159
18160 GCC_CXX="$GXX"
18161 LD_CXX="$LD"
18162
18163 ## CAVEAT EMPTOR:
18164 ## There is no encapsulation within the following macros, do not change
18165 ## the running order or otherwise move them around unless you know exactly
18166 ## what you are doing...
18167 # Dependencies to place before and after the object being linked:
18168predep_objects_CXX=
18169postdep_objects_CXX=
18170predeps_CXX=
18171postdeps_CXX=
18172compiler_lib_search_path_CXX=
18173
18174cat > conftest.$ac_ext <<_LT_EOF
18175class Foo
18176{
18177public:
18178 Foo (void) { a = 0; }
18179private:
18180 int a;
18181};
18182_LT_EOF
18183
18184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18185 (eval $ac_compile) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; then
18189 # Parse the compiler output and extract the necessary
18190 # objects, libraries and library flags.
18191
18192 # Sentinel used to keep track of whether or not we are before
18193 # the conftest object file.
18194 pre_test_object_deps_done=no
18195
18196 # The `*' in the case matches for architectures that use `case' in
18197 # $output_verbose_cmd can trigger glob expansion during the loop
18198 # eval without this substitution.
18199 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18200
18201 for p in `eval $output_verbose_link_cmd`; do
18202 case $p in
18203
18204 -L* | -R* | -l*)
18205 # Some compilers place space between "-{L,R}" and the path.
18206 # Remove the space.
18207 if test $p = "-L" ||
18208 test $p = "-R"; then
18209 prev=$p
18210 continue
18211 else
18212 prev=
18213 fi
18214
18215 if test "$pre_test_object_deps_done" = no; then
18216 case $p in
18217 -L* | -R*)
18218 # Internal compiler library paths should come after those
18219 # provided the user. The postdeps already come after the
18220 # user supplied libs so there is no need to process them.
18221 if test -z "$compiler_lib_search_path_CXX"; then
18222 compiler_lib_search_path_CXX="${prev}${p}"
18223 else
18224 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18225 fi
18226 ;;
18227 # The "-l" case would never come before the object being
18228 # linked, so don't bother handling this case.
18229 esac
18230 else
18231 if test -z "$postdeps_CXX"; then
18232 postdeps_CXX="${prev}${p}"
18233 else
18234 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18235 fi
18236 fi
18237 ;;
18238
18239 *.$objext)
18240 # This assumes that the test object file only shows up
18241 # once in the compiler output.
18242 if test "$p" = "conftest.$objext"; then
18243 pre_test_object_deps_done=yes
18244 continue
18245 fi
18246
18247 if test "$pre_test_object_deps_done" = no; then
18248 if test -z "$predep_objects_CXX"; then
18249 predep_objects_CXX="$p"
18250 else
18251 predep_objects_CXX="$predep_objects_CXX $p"
18252 fi
18253 else
18254 if test -z "$postdep_objects_CXX"; then
18255 postdep_objects_CXX="$p"
18256 else
18257 postdep_objects_CXX="$postdep_objects_CXX $p"
18258 fi
18259 fi
18260 ;;
18261
18262 *) ;; # Ignore the rest.
18263
18264 esac
18265 done
18266
18267 # Clean up.
18268 rm -f a.out a.exe
18269else
18270 echo "libtool.m4: error: problem compiling CXX test program"
18271fi
18272
18273$RM -f confest.$objext
18274
18275# PORTME: override above test on systems where it is broken
18276case $host_os in
18277interix3*)
18278 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18279 # hack all around it, let's just trust "g++" to DTRT.
18280 predep_objects_CXX=
18281 postdep_objects_CXX=
18282 postdeps_CXX=
18283 ;;
18284
18285solaris*)
18286 case $cc_basename in
18287 CC*)
18288 # Adding this requires a known-good setup of shared libraries for
18289 # Sun compiler versions before 5.6, else PIC objects from an old
18290 # archive will be linked into the output, leading to subtle bugs.
18291 postdeps_CXX='-lCstd -lCrun'
18292 ;;
18293 esac
18294 ;;
18295esac
18296
18297
18298case " $postdeps_CXX " in
18299*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18300esac
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327 lt_prog_compiler_wl_CXX=
18328lt_prog_compiler_pic_CXX=
18329lt_prog_compiler_static_CXX=
18330
18331echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18332echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18333
18334 # C++ specific cases for pic, static, wl, etc.
18335 if test "$GXX" = yes; then
18336 lt_prog_compiler_wl_CXX='-Wl,'
18337 lt_prog_compiler_static_CXX='-static'
18338
18339 case $host_os in
18340 aix*)
18341 # All AIX code is PIC.
18342 if test "$host_cpu" = ia64; then
18343 # AIX 5 now supports IA64 processor
18344 lt_prog_compiler_static_CXX='-Bstatic'
18345 fi
18346 ;;
18347 amigaos*)
18348 if test "$host_cpu" = m68k; then
18349 # FIXME: we need at least 68020 code to build shared libraries, but
18350 # adding the `-m68020' flag to GCC prevents building anything better,
18351 # like `-m68040'.
18352 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18353 fi
18354 ;;
18355 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18356 # PIC is the default for these OSes.
18357 ;;
18358 mingw* | os2* | pw32*)
18359 # This hack is so that the source file can tell whether it is being
18360 # built for inclusion in a dll (and should export symbols for example).
18361 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18362 ;;
18363 darwin* | rhapsody*)
18364 # PIC is the default on this platform
18365 # Common symbols not allowed in MH_DYLIB files
18366 lt_prog_compiler_pic_CXX='-fno-common'
18367 ;;
18368 *djgpp*)
18369 # DJGPP does not support shared libraries at all
18370 lt_prog_compiler_pic_CXX=
18371 ;;
18372 interix3*)
18373 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18374 # Instead, we relocate shared libraries at runtime.
18375 ;;
18376 sysv4*MP*)
18377 if test -d /usr/nec; then
18378 lt_prog_compiler_pic_CXX=-Kconform_pic
18379 fi
18380 ;;
18381 hpux*)
18382 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18383 # not for PA HP-UX.
18384 case $host_cpu in
18385 hppa*64*|ia64*)
18386 ;;
18387 *)
18388 lt_prog_compiler_pic_CXX='-fPIC'
18389 ;;
18390 esac
18391 ;;
18392 *qnx* | *nto*)
18393 # QNX uses GNU C++, but need to define -shared option too, otherwise
18394 # it will coredump.
18395 lt_prog_compiler_pic_CXX='-fPIC -shared'
18396 ;;
18397 *)
18398 lt_prog_compiler_pic_CXX='-fPIC'
18399 ;;
18400 esac
18401 else
18402 case $host_os in
18403 aix4* | aix5*)
18404 # All AIX code is PIC.
18405 if test "$host_cpu" = ia64; then
18406 # AIX 5 now supports IA64 processor
18407 lt_prog_compiler_static_CXX='-Bstatic'
18408 else
18409 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18410 fi
18411 ;;
18412 chorus*)
18413 case $cc_basename in
18414 cxch68*)
18415 # Green Hills C++ Compiler
18416 # _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"
18417 ;;
18418 esac
18419 ;;
18420 darwin*)
18421 # PIC is the default on this platform
18422 # Common symbols not allowed in MH_DYLIB files
18423 case $cc_basename in
18424 xlc*)
18425 lt_prog_compiler_pic_CXX='-qnocommon'
18426 lt_prog_compiler_wl_CXX='-Wl,'
18427 ;;
18428 esac
18429 ;;
18430 dgux*)
18431 case $cc_basename in
18432 ec++*)
18433 lt_prog_compiler_pic_CXX='-KPIC'
18434 ;;
18435 ghcx*)
18436 # Green Hills C++ Compiler
18437 lt_prog_compiler_pic_CXX='-pic'
18438 ;;
18439 *)
18440 ;;
18441 esac
18442 ;;
18443 freebsd* | kfreebsd*-gnu | dragonfly*)
18444 # FreeBSD uses GNU C++
18445 ;;
18446 hpux9* | hpux10* | hpux11*)
18447 case $cc_basename in
18448 CC*)
18449 lt_prog_compiler_wl_CXX='-Wl,'
18450 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18451 if test "$host_cpu" != ia64; then
18452 lt_prog_compiler_pic_CXX='+Z'
18453 fi
18454 ;;
18455 aCC*)
18456 lt_prog_compiler_wl_CXX='-Wl,'
18457 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18458 case $host_cpu in
18459 hppa*64*|ia64*)
18460 # +Z the default
18461 ;;
18462 *)
18463 lt_prog_compiler_pic_CXX='+Z'
18464 ;;
18465 esac
18466 ;;
18467 *)
18468 ;;
18469 esac
18470 ;;
18471 interix*)
18472 # This is c89, which is MS Visual C++ (no shared libs)
18473 # Anyone wants to do a port?
18474 ;;
18475 irix5* | irix6* | nonstopux*)
18476 case $cc_basename in
18477 CC*)
18478 lt_prog_compiler_wl_CXX='-Wl,'
18479 lt_prog_compiler_static_CXX='-non_shared'
18480 # CC pic flag -KPIC is the default.
18481 ;;
18482 *)
18483 ;;
18484 esac
18485 ;;
18486 linux*)
18487 case $cc_basename in
18488 KCC*)
18489 # KAI C++ Compiler
18490 lt_prog_compiler_wl_CXX='--backend -Wl,'
18491 lt_prog_compiler_pic_CXX='-fPIC'
18492 ;;
18493 icpc* | ecpc* )
18494 # Intel C++
18495 lt_prog_compiler_wl_CXX='-Wl,'
18496 lt_prog_compiler_pic_CXX='-KPIC'
18497 lt_prog_compiler_static_CXX='-static'
18498 ;;
18499 pgCC*)
18500 # Portland Group C++ compiler
18501 lt_prog_compiler_wl_CXX='-Wl,'
18502 lt_prog_compiler_pic_CXX='-fpic'
18503 lt_prog_compiler_static_CXX='-Bstatic'
18504 ;;
18505 cxx*)
18506 # Compaq C++
18507 # Make sure the PIC flag is empty. It appears that all Alpha
18508 # Linux and Compaq Tru64 Unix objects are PIC.
18509 lt_prog_compiler_pic_CXX=
18510 lt_prog_compiler_static_CXX='-non_shared'
18511 ;;
18512 *)
18513 ;;
18514 esac
18515 ;;
18516 lynxos*)
18517 ;;
18518 m88k*)
18519 ;;
18520 mvs*)
18521 case $cc_basename in
18522 cxx*)
18523 lt_prog_compiler_pic_CXX='-W c,exportall'
18524 ;;
18525 *)
18526 ;;
18527 esac
18528 ;;
18529 netbsd*)
18530 ;;
18531 *qnx* | *nto*)
18532 # QNX uses GNU C++, but need to define -shared option too, otherwise
18533 # it will coredump.
18534 lt_prog_compiler_pic_CXX='-fPIC -shared'
18535 ;;
18536 osf3* | osf4* | osf5*)
18537 case $cc_basename in
18538 KCC*)
18539 lt_prog_compiler_wl_CXX='--backend -Wl,'
18540 ;;
18541 RCC*)
18542 # Rational C++ 2.4.1
18543 lt_prog_compiler_pic_CXX='-pic'
18544 ;;
18545 cxx*)
18546 # Digital/Compaq C++
18547 lt_prog_compiler_wl_CXX='-Wl,'
18548 # Make sure the PIC flag is empty. It appears that all Alpha
18549 # Linux and Compaq Tru64 Unix objects are PIC.
18550 lt_prog_compiler_pic_CXX=
18551 lt_prog_compiler_static_CXX='-non_shared'
18552 ;;
18553 *)
18554 ;;
18555 esac
18556 ;;
18557 psos*)
18558 ;;
18559 solaris*)
18560 case $cc_basename in
18561 CC*)
18562 # Sun C++ 4.2, 5.x and Centerline C++
18563 lt_prog_compiler_pic_CXX='-KPIC'
18564 lt_prog_compiler_static_CXX='-Bstatic'
18565 lt_prog_compiler_wl_CXX='-Qoption ld '
18566 ;;
18567 gcx*)
18568 # Green Hills C++ Compiler
18569 lt_prog_compiler_pic_CXX='-PIC'
18570 ;;
18571 *)
18572 ;;
18573 esac
18574 ;;
18575 sunos4*)
18576 case $cc_basename in
18577 CC*)
18578 # Sun C++ 4.x
18579 lt_prog_compiler_pic_CXX='-pic'
18580 lt_prog_compiler_static_CXX='-Bstatic'
18581 ;;
18582 lcc*)
18583 # Lucid
18584 lt_prog_compiler_pic_CXX='-pic'
18585 ;;
18586 *)
18587 ;;
18588 esac
18589 ;;
18590 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18591 case $cc_basename in
18592 CC*)
18593 lt_prog_compiler_wl_CXX='-Wl,'
18594 lt_prog_compiler_pic_CXX='-KPIC'
18595 lt_prog_compiler_static_CXX='-Bstatic'
18596 ;;
18597 esac
18598 ;;
18599 tandem*)
18600 case $cc_basename in
18601 NCC*)
18602 # NonStop-UX NCC 3.20
18603 lt_prog_compiler_pic_CXX='-KPIC'
18604 ;;
18605 *)
18606 ;;
18607 esac
18608 ;;
18609 vxworks*)
18610 ;;
18611 *)
18612 lt_prog_compiler_can_build_shared_CXX=no
18613 ;;
18614 esac
18615 fi
18616
18617case $host_os in
18618 # For platforms which do not support PIC, -DPIC is meaningless:
18619 *djgpp*)
18620 lt_prog_compiler_pic_CXX=
18621 ;;
18622 *)
18623 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18624 ;;
18625esac
18626echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18627echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
18628
18629
18630
18631#
18632# Check to make sure the PIC flag actually works.
18633#
18634if test -n "$lt_prog_compiler_pic_CXX"; then
18635 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18636echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
18637if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
18639else
18640 lt_prog_compiler_pic_works_CXX=no
18641 ac_outfile=conftest.$ac_objext
18642 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18643 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18644 # Insert the option either (1) after the last *FLAGS variable, or
18645 # (2) before a word containing "conftest.", or (3) at the end.
18646 # Note that $ac_compile itself does not contain backslashes and begins
18647 # with a dollar sign (not a hyphen), so the echo should work correctly.
18648 # The option is referenced via a variable to avoid confusing sed.
18649 lt_compile=`echo "$ac_compile" | $SED \
18650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18652 -e 's:$: $lt_compiler_flag:'`
18653 (eval echo "\"\$as_me:18653: $lt_compile\"" >&5)
18654 (eval "$lt_compile" 2>conftest.err)
18655 ac_status=$?
18656 cat conftest.err >&5
18657 echo "$as_me:18657: \$? = $ac_status" >&5
18658 if (exit $ac_status) && test -s "$ac_outfile"; then
18659 # The compiler can only warn and ignore the option if not recognized
18660 # So say no if there are warnings other than the usual output.
18661 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18664 lt_prog_compiler_pic_works_CXX=yes
18665 fi
18666 fi
18667 $RM conftest*
18668
18669fi
18670echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18671echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
18672
18673if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18674 case $lt_prog_compiler_pic_CXX in
18675 "" | " "*) ;;
18676 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18677 esac
18678else
18679 lt_prog_compiler_pic_CXX=
18680 lt_prog_compiler_can_build_shared_CXX=no
18681fi
18682
18683fi
18684
18685
18686
18687#
18688# Check to make sure the static flag actually works.
18689#
18690wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18691echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18692echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18693if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18695else
18696 lt_prog_compiler_static_works_CXX=no
18697 save_LDFLAGS="$LDFLAGS"
18698 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18699 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18700 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18701 # The linker can only warn and ignore the option if not recognized
18702 # So say no if there are warnings
18703 if test -s conftest.err; then
18704 # Append any errors to the config.log.
18705 cat conftest.err 1>&5
18706 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18708 if diff conftest.exp conftest.er2 >/dev/null; then
18709 lt_prog_compiler_static_works_CXX=yes
18710 fi
18711 else
18712 lt_prog_compiler_static_works_CXX=yes
18713 fi
18714 fi
18715 $RM conftest*
18716 LDFLAGS="$save_LDFLAGS"
18717
18718fi
18719echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18720echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
18721
18722if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18723 :
18724else
18725 lt_prog_compiler_static_CXX=
18726fi
18727
18728
18729
18730
18731 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18732echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18733if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18735else
18736 lt_cv_prog_compiler_c_o_CXX=no
18737 $RM -r conftest 2>/dev/null
18738 mkdir conftest
18739 cd conftest
18740 mkdir out
18741 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18742
18743 lt_compiler_flag="-o out/conftest2.$ac_objext"
18744 # Insert the option either (1) after the last *FLAGS variable, or
18745 # (2) before a word containing "conftest.", or (3) at the end.
18746 # Note that $ac_compile itself does not contain backslashes and begins
18747 # with a dollar sign (not a hyphen), so the echo should work correctly.
18748 lt_compile=`echo "$ac_compile" | $SED \
18749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18751 -e 's:$: $lt_compiler_flag:'`
18752 (eval echo "\"\$as_me:18752: $lt_compile\"" >&5)
18753 (eval "$lt_compile" 2>out/conftest.err)
18754 ac_status=$?
18755 cat out/conftest.err >&5
18756 echo "$as_me:18756: \$? = $ac_status" >&5
18757 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18758 then
18759 # The compiler can only warn and ignore the option if not recognized
18760 # So say no if there are warnings
18761 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18762 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18763 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18764 lt_cv_prog_compiler_c_o_CXX=yes
18765 fi
18766 fi
18767 chmod u+w . 2>&5
18768 $RM conftest*
18769 # SGI C++ compiler will create directory out/ii_files/ for
18770 # template instantiation
18771 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18772 $RM out/* && rmdir out
18773 cd ..
18774 $RM -r conftest
18775 $RM conftest*
18776
18777fi
18778echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18779echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
18780
18781
18782
18783 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18784echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18785if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18786 echo $ECHO_N "(cached) $ECHO_C" >&6
18787else
18788 lt_cv_prog_compiler_c_o_CXX=no
18789 $RM -r conftest 2>/dev/null
18790 mkdir conftest
18791 cd conftest
18792 mkdir out
18793 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18794
18795 lt_compiler_flag="-o out/conftest2.$ac_objext"
18796 # Insert the option either (1) after the last *FLAGS variable, or
18797 # (2) before a word containing "conftest.", or (3) at the end.
18798 # Note that $ac_compile itself does not contain backslashes and begins
18799 # with a dollar sign (not a hyphen), so the echo should work correctly.
18800 lt_compile=`echo "$ac_compile" | $SED \
18801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18803 -e 's:$: $lt_compiler_flag:'`
18804 (eval echo "\"\$as_me:18804: $lt_compile\"" >&5)
18805 (eval "$lt_compile" 2>out/conftest.err)
18806 ac_status=$?
18807 cat out/conftest.err >&5
18808 echo "$as_me:18808: \$? = $ac_status" >&5
18809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18810 then
18811 # The compiler can only warn and ignore the option if not recognized
18812 # So say no if there are warnings
18813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18816 lt_cv_prog_compiler_c_o_CXX=yes
18817 fi
18818 fi
18819 chmod u+w . 2>&5
18820 $RM conftest*
18821 # SGI C++ compiler will create directory out/ii_files/ for
18822 # template instantiation
18823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18824 $RM out/* && rmdir out
18825 cd ..
18826 $RM -r conftest
18827 $RM conftest*
18828
18829fi
18830echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18831echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
18832
18833
18834
18835
18836hard_links="nottested"
18837if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18838 # do not overwrite the value of need_locks provided by the user
18839 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18840echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18841 hard_links=yes
18842 $RM conftest*
18843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18844 touch conftest.a
18845 ln conftest.a conftest.b 2>&5 || hard_links=no
18846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18847 echo "$as_me:$LINENO: result: $hard_links" >&5
18848echo "${ECHO_T}$hard_links" >&6
18849 if test "$hard_links" = no; then
18850 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18851echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18852 need_locks=warn
18853 fi
18854else
18855 need_locks=no
18856fi
18857
18858
18859
18860 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18861echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18862
18863 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18864 case $host_os in
18865 aix4* | aix5*)
18866 # If we're using GNU nm, then we don't want the "-C" option.
18867 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18868 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18869 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'
18870 else
18871 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'
18872 fi
18873 ;;
18874 pw32*)
18875 export_symbols_cmds_CXX="$ltdll_cmds"
18876 ;;
18877 cygwin* | mingw*)
18878 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'
18879 ;;
18880 *)
18881 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18882 ;;
18883 esac
18884
18885echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18886echo "${ECHO_T}$ld_shlibs_CXX" >&6
18887test "$ld_shlibs_CXX" = no && can_build_shared=no
18888
18889with_gnu_ld_CXX=$with_gnu_ld
18890
18891
18892
18893
18894
18895
18896#
18897# Do we need to explicitly link libc?
18898#
18899case "x$archive_cmds_need_lc_CXX" in
18900x|xyes)
18901 # Assume -lc should be added
18902 archive_cmds_need_lc_CXX=yes
18903
18904 if test "$enable_shared" = yes && test "$GCC" = yes; then
18905 case $archive_cmds_CXX in
18906 *'~'*)
18907 # FIXME: we may have to deal with multi-command sequences.
18908 ;;
18909 '$CC '*)
18910 # Test whether the compiler implicitly links with -lc since on some
18911 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18912 # to ld, don't add -lc before -lgcc.
18913 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18914echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18915 $RM conftest*
18916 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18917
18918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18919 (eval $ac_compile) 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } 2>conftest.err; then
18923 soname=conftest
18924 lib=conftest
18925 libobjs=conftest.$ac_objext
18926 deplibs=
18927 wl=$lt_prog_compiler_wl_CXX
18928 pic_flag=$lt_prog_compiler_pic_CXX
18929 compiler_flags=-v
18930 linker_flags=-v
18931 verstring=
18932 output_objdir=.
18933 libname=conftest
18934 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18935 allow_undefined_flag_CXX=
18936 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18937 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }
18941 then
18942 archive_cmds_need_lc_CXX=no
18943 else
18944 archive_cmds_need_lc_CXX=yes
18945 fi
18946 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18947 else
18948 cat conftest.err 1>&5
18949 fi
18950 $RM conftest*
18951 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18952echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
18953 ;;
18954 esac
18955 fi
18956 ;;
18957esac
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
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
19016
19017
19018 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19019echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19020withGCC=$GXX
19021library_names_spec=
19022libname_spec='lib$name'
19023soname_spec=
19024shrext_cmds=".so"
19025postinstall_cmds=
19026postuninstall_cmds=
19027finish_cmds=
19028finish_eval=
19029shlibpath_var=
19030shlibpath_overrides_runpath=unknown
19031version_type=none
19032dynamic_linker="$host_os ld.so"
19033sys_lib_dlsearch_path_spec="/lib /usr/lib"
19034if test "$withGCC" = yes; then
19035 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19036 if $ECHO "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then
19037 # if the path contains ";" then we assume it to be the separator
19038 # otherwise default to the standard path separator (i.e. ":") - it is
19039 # assumed that no part of a normal pathname contains ";" but that should
19040 # okay in the real world where ";" in dirpaths is itself problematic.
19041 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19042 else
19043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19044 fi
19045else
19046 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19047fi
19048need_lib_prefix=unknown
19049hardcode_into_libs=no
19050
19051# when you set need_version to no, make sure it does not cause -set_version
19052# flags to be left without arguments
19053need_version=unknown
19054
19055case $host_os in
19056aix3*)
19057 version_type=linux
19058 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19059 shlibpath_var=LIBPATH
19060
19061 # AIX 3 has no versioning support, so we append a major version to the name.
19062 soname_spec='${libname}${release}${shared_ext}$major'
19063 ;;
19064
19065aix4* | aix5*)
19066 version_type=linux
19067 need_lib_prefix=no
19068 need_version=no
19069 hardcode_into_libs=yes
19070 if test "$host_cpu" = ia64; then
19071 # AIX 5 supports IA64
19072 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19073 shlibpath_var=LD_LIBRARY_PATH
19074 else
19075 # With GCC up to 2.95.x, collect2 would create an import file
19076 # for dependence libraries. The import file would start with
19077 # the line `#! .'. This would cause the generated library to
19078 # depend on `.', always an invalid library. This was fixed in
19079 # development snapshots of GCC prior to 3.0.
19080 case $host_os in
19081 aix4 | aix4.[01] | aix4.[01].*)
19082 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19083 echo ' yes '
19084 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19085 :
19086 else
19087 can_build_shared=no
19088 fi
19089 ;;
19090 esac
19091 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19092 # soname into executable. Probably we can add versioning support to
19093 # collect2, so additional links can be useful in future.
19094 if test "$aix_use_runtimelinking" = yes; then
19095 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19096 # instead of lib<name>.a to let people know that these are not
19097 # typical AIX shared libraries.
19098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19099 else
19100 # We preserve .a as extension for shared libraries through AIX4.2
19101 # and later when we are not doing run time linking.
19102 library_names_spec='${libname}${release}.a $libname.a'
19103 soname_spec='${libname}${release}${shared_ext}$major'
19104 fi
19105 shlibpath_var=LIBPATH
19106 fi
19107 ;;
19108
19109amigaos*)
19110 if test "$host_cpu" = m68k; then
19111 library_names_spec='$libname.ixlibrary $libname.a'
19112 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19113 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'
19114 else
19115 dynamic_linker=no
19116 fi
19117 ;;
19118
19119beos*)
19120 library_names_spec='${libname}${shared_ext}'
19121 dynamic_linker="$host_os ld.so"
19122 shlibpath_var=LIBRARY_PATH
19123 ;;
19124
19125bsdi[45]*)
19126 version_type=linux
19127 need_version=no
19128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19129 soname_spec='${libname}${release}${shared_ext}$major'
19130 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19131 shlibpath_var=LD_LIBRARY_PATH
19132 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19133 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19134 # the default ld.so.conf also contains /usr/contrib/lib and
19135 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19136 # libtool to hard-code these into programs
19137 ;;
19138
19139cygwin* | mingw* | pw32*)
19140 version_type=windows
19141 shrext_cmds=".dll"
19142 need_version=no
19143 need_lib_prefix=no
19144
19145 case $withGCC,$host_os in
19146 yes,cygwin* | yes,mingw* | yes,pw32*)
19147 library_names_spec='$libname.dll.a'
19148 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19149 postinstall_cmds='base_file=`basename \${file}`~
19150 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19151 dldir=$destdir/`dirname \$dlpath`~
19152 test -d \$dldir || mkdir -p \$dldir~
19153 $install_prog $dir/$dlname \$dldir/$dlname~
19154 chmod a+x \$dldir/$dlname~
19155 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19156 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19157 fi'
19158 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19159 dlpath=$dir/\$dldll~
19160 $RM \$dlpath'
19161 shlibpath_overrides_runpath=yes
19162
19163 case $host_os in
19164 cygwin*)
19165 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19166 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19167 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19168 ;;
19169 mingw*)
19170 # MinGW DLLs use traditional 'lib' prefix
19171 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19172 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19173 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19174 # It is most probably a Windows format PATH printed by
19175 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19176 # path with ; separators, and with drive letters. We can handle the
19177 # drive letters (cygwin fileutils understands them), so leave them,
19178 # especially as we might pass files found there to a mingw objdump,
19179 # which wouldn't understand a cygwinified path. Ahh.
19180 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19181 else
19182 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19183 fi
19184 ;;
19185 pw32*)
19186 # pw32 DLLs use 'pw' prefix rather than 'lib'
19187 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19188 ;;
19189 esac
19190 ;;
19191
19192 *)
19193 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19194 ;;
19195 esac
19196 dynamic_linker='Win32 ld.exe'
19197 # FIXME: first we should search . and the directory the executable is in
19198 shlibpath_var=PATH
19199 ;;
19200
19201darwin* | rhapsody*)
19202 dynamic_linker="$host_os dyld"
19203 version_type=darwin
19204 need_lib_prefix=no
19205 need_version=no
19206 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19207 soname_spec='${libname}${release}${major}$shared_ext'
19208 shlibpath_overrides_runpath=yes
19209 shlibpath_var=DYLD_LIBRARY_PATH
19210 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19211 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19212 if test "$withGCC" = yes; then
19213 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"`
19214 else
19215 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19216 fi
19217 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19218 ;;
19219
19220dgux*)
19221 version_type=linux
19222 need_lib_prefix=no
19223 need_version=no
19224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19225 soname_spec='${libname}${release}${shared_ext}$major'
19226 shlibpath_var=LD_LIBRARY_PATH
19227 ;;
19228
19229freebsd1*)
19230 dynamic_linker=no
19231 ;;
19232
19233kfreebsd*-gnu)
19234 version_type=linux
19235 need_lib_prefix=no
19236 need_version=no
19237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19238 soname_spec='${libname}${release}${shared_ext}$major'
19239 shlibpath_var=LD_LIBRARY_PATH
19240 shlibpath_overrides_runpath=no
19241 hardcode_into_libs=yes
19242 dynamic_linker='GNU ld.so'
19243 ;;
19244
19245freebsd* | dragonfly*)
19246 # DragonFly does not have aout. When/if they implement a new
19247 # versioning mechanism, adjust this.
19248 if test -x /usr/bin/objformat; then
19249 objformat=`/usr/bin/objformat`
19250 else
19251 case $host_os in
19252 freebsd[123]*) objformat=aout ;;
19253 *) objformat=elf ;;
19254 esac
19255 fi
19256 version_type=freebsd-$objformat
19257 case $version_type in
19258 freebsd-elf*)
19259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19260 need_version=no
19261 need_lib_prefix=no
19262 ;;
19263 freebsd-*)
19264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19265 need_version=yes
19266 ;;
19267 esac
19268 shlibpath_var=LD_LIBRARY_PATH
19269 case $host_os in
19270 freebsd2*)
19271 shlibpath_overrides_runpath=yes
19272 ;;
19273 freebsd3.[01]* | freebsdelf3.[01]*)
19274 shlibpath_overrides_runpath=yes
19275 hardcode_into_libs=yes
19276 ;;
19277 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19278 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19279 shlibpath_overrides_runpath=no
19280 hardcode_into_libs=yes
19281 ;;
19282 freebsd*) # from 4.6 on
19283 shlibpath_overrides_runpath=yes
19284 hardcode_into_libs=yes
19285 ;;
19286 esac
19287 ;;
19288
19289gnu*)
19290 version_type=linux
19291 need_lib_prefix=no
19292 need_version=no
19293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19294 soname_spec='${libname}${release}${shared_ext}$major'
19295 shlibpath_var=LD_LIBRARY_PATH
19296 hardcode_into_libs=yes
19297 ;;
19298
19299hpux9* | hpux10* | hpux11*)
19300 # Give a soname corresponding to the major version so that dld.sl refuses to
19301 # link against other versions.
19302 version_type=sunos
19303 need_lib_prefix=no
19304 need_version=no
19305 case $host_cpu in
19306 ia64*)
19307 shrext_cmds='.so'
19308 hardcode_into_libs=yes
19309 dynamic_linker="$host_os dld.so"
19310 shlibpath_var=LD_LIBRARY_PATH
19311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19313 soname_spec='${libname}${release}${shared_ext}$major'
19314 if test "X$HPUX_IA64_MODE" = X32; then
19315 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19316 else
19317 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19318 fi
19319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19320 ;;
19321 hppa*64*)
19322 shrext_cmds='.sl'
19323 hardcode_into_libs=yes
19324 dynamic_linker="$host_os dld.sl"
19325 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19328 soname_spec='${libname}${release}${shared_ext}$major'
19329 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19331 ;;
19332 *)
19333 shrext_cmds='.sl'
19334 dynamic_linker="$host_os dld.sl"
19335 shlibpath_var=SHLIB_PATH
19336 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19338 soname_spec='${libname}${release}${shared_ext}$major'
19339 ;;
19340 esac
19341 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19342 postinstall_cmds='chmod 555 $lib'
19343 ;;
19344
19345interix3*)
19346 version_type=linux
19347 need_lib_prefix=no
19348 need_version=no
19349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19350 soname_spec='${libname}${release}${shared_ext}$major'
19351 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19352 shlibpath_var=LD_LIBRARY_PATH
19353 shlibpath_overrides_runpath=no
19354 hardcode_into_libs=yes
19355 ;;
19356
19357irix5* | irix6* | nonstopux*)
19358 case $host_os in
19359 nonstopux*) version_type=nonstopux ;;
19360 *)
19361 if test "$lt_cv_prog_gnu_ld" = yes; then
19362 version_type=linux
19363 else
19364 version_type=irix
19365 fi ;;
19366 esac
19367 need_lib_prefix=no
19368 need_version=no
19369 soname_spec='${libname}${release}${shared_ext}$major'
19370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19371 case $host_os in
19372 irix5* | nonstopux*)
19373 libsuff= shlibsuff=
19374 ;;
19375 *)
19376 case $LD in # libtool.m4 will add one of these switches to LD
19377 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19378 libsuff= shlibsuff= libmagic=32-bit;;
19379 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19380 libsuff=32 shlibsuff=N32 libmagic=N32;;
19381 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19382 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19383 *) libsuff= shlibsuff= libmagic=never-match;;
19384 esac
19385 ;;
19386 esac
19387 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19388 shlibpath_overrides_runpath=no
19389 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19390 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19391 hardcode_into_libs=yes
19392 ;;
19393
19394# No shared lib support for Linux oldld, aout, or coff.
19395linux*oldld* | linux*aout* | linux*coff*)
19396 dynamic_linker=no
19397 ;;
19398
19399# This must be Linux ELF.
19400linux*)
19401 version_type=linux
19402 need_lib_prefix=no
19403 need_version=no
19404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19405 soname_spec='${libname}${release}${shared_ext}$major'
19406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19407 shlibpath_var=LD_LIBRARY_PATH
19408 shlibpath_overrides_runpath=no
19409 # This implies no fast_install, which is unacceptable.
19410 # Some rework will be needed to allow for fast_install
19411 # before this can be enabled.
19412 hardcode_into_libs=yes
19413
19414 # Append ld.so.conf contents to the search path
19415 if test -f /etc/ld.so.conf; then
19416 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' ' '`
19417 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19418 fi
19419
19420 # We used to test for /lib/ld.so.1 and disable shared libraries on
19421 # powerpc, because MkLinux only supported shared libraries with the
19422 # GNU dynamic linker. Since this was broken with cross compilers,
19423 # most powerpc-linux boxes support dynamic linking these days and
19424 # people can always --disable-shared, the test was removed, and we
19425 # assume the GNU/Linux dynamic linker is in use.
19426 dynamic_linker='GNU/Linux ld.so'
19427 ;;
19428
19429knetbsd*-gnu)
19430 version_type=linux
19431 need_lib_prefix=no
19432 need_version=no
19433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19434 soname_spec='${libname}${release}${shared_ext}$major'
19435 shlibpath_var=LD_LIBRARY_PATH
19436 shlibpath_overrides_runpath=no
19437 hardcode_into_libs=yes
19438 dynamic_linker='GNU ld.so'
19439 ;;
19440
19441netbsd*)
19442 version_type=sunos
19443 need_lib_prefix=no
19444 need_version=no
19445 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19448 dynamic_linker='NetBSD (a.out) ld.so'
19449 else
19450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19451 soname_spec='${libname}${release}${shared_ext}$major'
19452 dynamic_linker='NetBSD ld.elf_so'
19453 fi
19454 shlibpath_var=LD_LIBRARY_PATH
19455 shlibpath_overrides_runpath=yes
19456 hardcode_into_libs=yes
19457 ;;
19458
19459newsos6)
19460 version_type=linux
19461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19462 shlibpath_var=LD_LIBRARY_PATH
19463 shlibpath_overrides_runpath=yes
19464 ;;
19465
19466*nto* | *qnx*)
19467 version_type=qnx
19468 need_lib_prefix=no
19469 need_version=no
19470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19471 soname_spec='${libname}${release}${shared_ext}$major'
19472 shlibpath_var=LD_LIBRARY_PATH
19473 shlibpath_overrides_runpath=no
19474 hardcode_into_libs=yes
19475 dynamic_linker='ldqnx.so'
19476 ;;
19477
19478openbsd*)
19479 version_type=sunos
19480 sys_lib_dlsearch_path_spec="/usr/lib"
19481 need_lib_prefix=no
19482 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19483 case $host_os in
19484 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19485 *) need_version=no ;;
19486 esac
19487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19489 shlibpath_var=LD_LIBRARY_PATH
19490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19491 case $host_os in
19492 openbsd2.[89] | openbsd2.[89].*)
19493 shlibpath_overrides_runpath=no
19494 ;;
19495 *)
19496 shlibpath_overrides_runpath=yes
19497 ;;
19498 esac
19499 else
19500 shlibpath_overrides_runpath=yes
19501 fi
19502 ;;
19503
19504os2*)
19505 libname_spec='$name'
19506 shrext_cmds=".dll"
19507 need_lib_prefix=no
19508 library_names_spec='$libname${shared_ext} $libname.a'
19509 dynamic_linker='OS/2 ld.exe'
19510 shlibpath_var=LIBPATH
19511 ;;
19512
19513osf3* | osf4* | osf5*)
19514 version_type=osf
19515 need_lib_prefix=no
19516 need_version=no
19517 soname_spec='${libname}${release}${shared_ext}$major'
19518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19519 shlibpath_var=LD_LIBRARY_PATH
19520 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19521 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19522 ;;
19523
19524rdos*)
19525 dynamic_linker=no
19526 ;;
19527
19528solaris*)
19529 version_type=linux
19530 need_lib_prefix=no
19531 need_version=no
19532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19533 soname_spec='${libname}${release}${shared_ext}$major'
19534 shlibpath_var=LD_LIBRARY_PATH
19535 shlibpath_overrides_runpath=yes
19536 hardcode_into_libs=yes
19537 # ldd complains unless libraries are executable
19538 postinstall_cmds='chmod +x $lib'
19539 ;;
19540
19541sunos4*)
19542 version_type=sunos
19543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19544 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19545 shlibpath_var=LD_LIBRARY_PATH
19546 shlibpath_overrides_runpath=yes
19547 if test "$with_gnu_ld" = yes; then
19548 need_lib_prefix=no
19549 fi
19550 need_version=yes
19551 ;;
19552
19553sysv4 | sysv4.3*)
19554 version_type=linux
19555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19556 soname_spec='${libname}${release}${shared_ext}$major'
19557 shlibpath_var=LD_LIBRARY_PATH
19558 case $host_vendor in
19559 sni)
19560 shlibpath_overrides_runpath=no
19561 need_lib_prefix=no
19562 runpath_var=LD_RUN_PATH
19563 ;;
19564 siemens)
19565 need_lib_prefix=no
19566 ;;
19567 motorola)
19568 need_lib_prefix=no
19569 need_version=no
19570 shlibpath_overrides_runpath=no
19571 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19572 ;;
19573 esac
19574 ;;
19575
19576sysv4*MP*)
19577 if test -d /usr/nec ;then
19578 version_type=linux
19579 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19580 soname_spec='$libname${shared_ext}.$major'
19581 shlibpath_var=LD_LIBRARY_PATH
19582 fi
19583 ;;
19584
19585sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19586 version_type=freebsd-elf
19587 need_lib_prefix=no
19588 need_version=no
19589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19590 soname_spec='${libname}${release}${shared_ext}$major'
19591 shlibpath_var=LD_LIBRARY_PATH
19592 shlibpath_overrides_runpath=yes
19593 hardcode_into_libs=yes
19594 if test "$with_gnu_ld" = yes; then
19595 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19596 else
19597 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19598 case $host_os in
19599 sco3.2v5*)
19600 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19601 ;;
19602 esac
19603 fi
19604 sys_lib_dlsearch_path_spec='/usr/lib'
19605 ;;
19606
19607tpf*)
19608 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19609 version_type=linux
19610 need_lib_prefix=no
19611 need_version=no
19612 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19613 shlibpath_var=LD_LIBRARY_PATH
19614 shlibpath_overrides_runpath=no
19615 hardcode_into_libs=yes
19616 ;;
19617
19618uts4*)
19619 version_type=linux
19620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19621 soname_spec='${libname}${release}${shared_ext}$major'
19622 shlibpath_var=LD_LIBRARY_PATH
19623 ;;
19624
19625*)
19626 dynamic_linker=no
19627 ;;
19628esac
19629echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19630echo "${ECHO_T}$dynamic_linker" >&6
19631test "$dynamic_linker" = no && can_build_shared=no
19632
19633variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19634if test "$GCC" = yes; then
19635 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19636fi
19637
19638
19639
19640
19641
19642
19643
19644
19645
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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19674echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19675hardcode_action_CXX=
19676if test -n "$hardcode_libdir_flag_spec_CXX" ||
19677 test -n "$runpath_var_CXX" ||
19678 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19679
19680 # We can hardcode non-existent directories.
19681 if test "$hardcode_direct_CXX" != no &&
19682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19683 # have to relink, otherwise we might link with an installed library
19684 # when we should be linking with a yet-to-be-installed one
19685 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19686 test "$hardcode_minus_L_CXX" != no; then
19687 # Linking always hardcodes the temporary library directory.
19688 hardcode_action_CXX=relink
19689 else
19690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19691 hardcode_action_CXX=immediate
19692 fi
19693else
19694 # We cannot hardcode anything, or else we can only hardcode existing
19695 # directories.
19696 hardcode_action_CXX=unsupported
19697fi
19698echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19699echo "${ECHO_T}$hardcode_action_CXX" >&6
19700
19701if test "$hardcode_action_CXX" = relink ||
19702 test "$inherit_rpath_CXX" = yes; then
19703 # Fast installation is not supported
19704 enable_fast_install=no
19705elif test "$shlibpath_overrides_runpath" = yes ||
19706 test "$enable_shared" = no; then
19707 # Fast installation is not necessary
19708 enable_fast_install=needless
19709fi
19710
19711
19712
19713
19714
19715
19716
19717 fi # test -n "$compiler"
19718
19719 CC=$lt_save_CC
19720 LDCXX=$LD
19721 LD=$lt_save_LD
19722 GCC=$lt_save_GCC
19723 with_gnu_ld=$lt_save_with_gnu_ld
19724 lt_cv_path_LDCXX=$lt_cv_path_LD
19725 lt_cv_path_LD=$lt_save_path_LD
19726 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19727 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19728fi # test "$_lt_caught_CXX_error" != yes
19729
19730ac_ext=c
19731ac_cpp='$CPP $CPPFLAGS'
19732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19734ac_compiler_gnu=$ac_cv_c_compiler_gnu
19735
19736
19737GLU_CFLAGS="${GL_CFLAGS}"
19738if test "X${with_apple_opengl_framework}" != "Xyes"; then
19739 echo "$as_me:$LINENO: checking for OpenGL Utility library" >&5
19740echo $ECHO_N "checking for OpenGL Utility library... $ECHO_C" >&6
19741if test "${ax_cv_check_glu_libglu+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19743else
19744 ax_cv_check_glu_libglu="no"
19745 ax_save_CPPFLAGS="${CPPFLAGS}"
19746 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19747 ax_save_LIBS="${LIBS}"
19748 LIBS=""
19749 ax_check_libs="-lglu32 -lGLU"
19750 for ax_lib in ${ax_check_libs}; do
19751 if test X$ax_compiler_ms = Xyes; then
19752 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19753 else
19754 ax_try_lib="${ax_lib}"
19755 fi
19756 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
19757 #
19758 # libGLU typically links with libstdc++ on POSIX platforms. However,
19759 # setting the language to C++ means that test program source is named
19760 # "conftest.cc"; and Microsoft cl doesn't know what to do with such a
19761 # file.
19762 #
19763 ac_ext=cc
19764ac_cpp='$CXXCPP $CPPFLAGS'
19765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19768
19769 if test X$ax_compiler_ms = Xyes; then
19770 ac_ext=c
19771ac_cpp='$CPP $CPPFLAGS'
19772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19774ac_compiler_gnu=$ac_cv_c_compiler_gnu
19775
19776 fi
19777 cat >conftest.$ac_ext <<_ACEOF
19778/* confdefs.h. */
19779_ACEOF
19780cat confdefs.h >>conftest.$ac_ext
19781cat >>conftest.$ac_ext <<_ACEOF
19782/* end confdefs.h. */
19783
19784# if HAVE_WINDOWS_H && defined(_WIN32)
19785# include <windows.h>
19786# endif
19787# include <GL/glu.h>
19788int
19789main ()
19790{
19791gluBeginCurve(0)
19792 ;
19793 return 0;
19794}
19795_ACEOF
19796rm -f conftest.$ac_objext conftest$ac_exeext
19797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19798 (eval $ac_link) 2>conftest.er1
19799 ac_status=$?
19800 grep -v '^ *+' conftest.er1 >conftest.err
19801 rm -f conftest.er1
19802 cat conftest.err >&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } &&
19805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; } &&
19811 { ac_try='test -s conftest$ac_exeext'
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19814 ac_status=$?
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; }; then
19817 ax_cv_check_glu_libglu="${ax_try_lib}"; break
19818else
19819 echo "$as_me: failed program was:" >&5
19820sed 's/^/| /' conftest.$ac_ext >&5
19821
19822fi
19823rm -f conftest.err conftest.$ac_objext \
19824 conftest$ac_exeext conftest.$ac_ext
19825 if test X$ax_compiler_ms = Xyes; then
19826 ac_ext=cc
19827ac_cpp='$CXXCPP $CPPFLAGS'
19828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19831
19832 fi
19833 ac_ext=c
19834ac_cpp='$CPP $CPPFLAGS'
19835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837ac_compiler_gnu=$ac_cv_c_compiler_gnu
19838
19839 done
19840 LIBS=${ax_save_LIBS}
19841 CPPFLAGS=${ax_save_CPPFLAGS}
19842fi
19843echo "$as_me:$LINENO: result: $ax_cv_check_glu_libglu" >&5
19844echo "${ECHO_T}$ax_cv_check_glu_libglu" >&6
19845 if test "X${ax_cv_check_glu_libglu}" = "Xno"; then
19846 no_glu="yes"
19847 GLU_CFLAGS=""
19848 GLU_LIBS=""
19849 else
19850 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
19851 fi
19852fi
19853
19854
19855
19856
19857if test "X$with_apple_opengl_framework" = "Xyes"; then
19858 GLUT_CFLAGS="${GLU_CFLAGS}"
19859 GLUT_LIBS="-framework GLUT -lobjc ${GL_LIBS}"
19860else
19861 GLUT_CFLAGS=${GLU_CFLAGS}
19862 GLUT_LIBS=${GLU_LIBS}
19863
19864 #
19865 # If X is present, assume GLUT depends on it.
19866 #
19867 if test "X${no_x}" != "Xyes"; then
19868 GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
19869 fi
19870
19871 ac_ext=c
19872ac_cpp='$CPP $CPPFLAGS'
19873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19875ac_compiler_gnu=$ac_cv_c_compiler_gnu
19876
19877
19878 ax_save_CPPFLAGS="${CPPFLAGS}"
19879 CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
19880
19881 echo "$as_me:$LINENO: checking for GLUT library" >&5
19882echo $ECHO_N "checking for GLUT library... $ECHO_C" >&6
19883if test "${ax_cv_check_glut_libglut+set}" = set; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19885else
19886 ax_cv_check_glut_libglut="no"
19887 ax_save_LIBS="${LIBS}"
19888 LIBS=""
19889 ax_check_libs="-lglut32 -lglut"
19890 for ax_lib in ${ax_check_libs}; do
19891 if test X$ax_compiler_ms = Xyes; then
19892 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19893 else
19894 ax_try_lib="${ax_lib}"
19895 fi
19896 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
19897 cat >conftest.$ac_ext <<_ACEOF
19898/* confdefs.h. */
19899_ACEOF
19900cat confdefs.h >>conftest.$ac_ext
19901cat >>conftest.$ac_ext <<_ACEOF
19902/* end confdefs.h. */
19903
19904# if HAVE_WINDOWS_H && defined(_WIN32)
19905# include <windows.h>
19906# endif
19907# include <GL/glut.h>
19908int
19909main ()
19910{
19911glutMainLoop()
19912 ;
19913 return 0;
19914}
19915_ACEOF
19916rm -f conftest.$ac_objext conftest$ac_exeext
19917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19918 (eval $ac_link) 2>conftest.er1
19919 ac_status=$?
19920 grep -v '^ *+' conftest.er1 >conftest.err
19921 rm -f conftest.er1
19922 cat conftest.err >&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } &&
19925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest$ac_exeext'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19934 ac_status=$?
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; }; then
19937 ax_cv_check_glut_libglut="${ax_try_lib}"; break
19938else
19939 echo "$as_me: failed program was:" >&5
19940sed 's/^/| /' conftest.$ac_ext >&5
19941
19942fi
19943rm -f conftest.err conftest.$ac_objext \
19944 conftest$ac_exeext conftest.$ac_ext
19945
19946 done
19947 LIBS=${ax_save_LIBS}
19948
19949fi
19950echo "$as_me:$LINENO: result: $ax_cv_check_glut_libglut" >&5
19951echo "${ECHO_T}$ax_cv_check_glut_libglut" >&6
19952 CPPFLAGS="${ax_save_CPPFLAGS}"
19953 ac_ext=c
19954ac_cpp='$CPP $CPPFLAGS'
19955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19957ac_compiler_gnu=$ac_cv_c_compiler_gnu
19958
19959
19960 if test "X${ax_cv_check_glut_libglut}" = "Xno"; then
19961 no_glut="yes"
19962 GLUT_CFLAGS=""
19963 GLUT_LIBS=""
19964 else
19965 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
19966 fi
19967fi
19968
19969
19970
19971
19972
19973if test "$no_x" != "yes" -a "$no_gl" != "yes" \
19974 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
19975 HAVE_OPENGL=yes
19976fi
19977
19978
19979
19980if test "$HAVE_OPENGL" = "yes"; then
19981 HAVE_OPENGL_TRUE=
19982 HAVE_OPENGL_FALSE='#'
19983else
19984 HAVE_OPENGL_TRUE='#'
19985 HAVE_OPENGL_FALSE=
19986fi
19987
19988
19989
19990
19991# Check whether --enable-strip-chopping or --disable-strip-chopping was given.
19992if test "${enable_strip_chopping+set}" = set; then
19993 enableval="$enable_strip_chopping"
19994 HAVE_STRIPCHOP=$enableval
19995else
19996 HAVE_STRIPCHOP=yes
19997fi;
19998
19999# Check whether --with-default-strip-size or --without-default-strip-size was given.
20000if test "${with_default_strip_size+set}" = set; then
20001 withval="$with_default_strip_size"
20002
20003fi;
20004
20005if test "$HAVE_STRIPCHOP" = "yes" \
20006 -a "x$with_default_strip_size" != "xno"; then
20007
20008cat >>confdefs.h <<\_ACEOF
20009#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP
20010_ACEOF
20011
20012
20013 if test "x$with_default_strip_size" = "x" \
20014 -o "x$with_default_strip_size" = "xyes"; then
20015 with_default_strip_size="8192"
20016 fi
20017
20018
20019cat >>confdefs.h <<_ACEOF
20020#define STRIP_SIZE_DEFAULT $with_default_strip_size
20021_ACEOF
20022
20023
20024fi
20025
20026
20027cat >>confdefs.h <<\_ACEOF
20028#define SUBIFD_SUPPORT 1
20029_ACEOF
20030
20031
20032
20033# Check whether --enable-extrasample-as-alpha or --disable-extrasample-as-alpha was given.
20034if test "${enable_extrasample_as_alpha+set}" = set; then
20035 enableval="$enable_extrasample_as_alpha"
20036 HAVE_EXTRASAMPLE_AS_ALPHA=$enableval
20037else
20038 HAVE_EXTRASAMPLE_AS_ALPHA=yes
20039fi;
20040
20041if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
20042
20043cat >>confdefs.h <<\_ACEOF
20044#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1
20045_ACEOF
20046
20047fi
20048
20049
20050# Check whether --enable-check-ycbcr-subsampling or --disable-check-ycbcr-subsampling was given.
20051if test "${enable_check_ycbcr_subsampling+set}" = set; then
20052 enableval="$enable_check_ycbcr_subsampling"
20053 CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval
20054else
20055 CHECK_JPEG_YCBCR_SUBSAMPLING=yes
20056fi;
20057
20058if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
20059
20060cat >>confdefs.h <<\_ACEOF
20061#define CHECK_JPEG_YCBCR_SUBSAMPLING 1
20062_ACEOF
20063
20064fi
20065
20066
20067
20068
20069 ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h"
20070
20071
20072 ac_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"
20073
20074cat >confcache <<\_ACEOF
20075# This file is a shell script that caches the results of configure
20076# tests run on this system so they can be shared between configure
20077# scripts and configure runs, see configure's option --config-cache.
20078# It is not useful on other systems. If it contains results you don't
20079# want to keep, you may remove or edit it.
20080#
20081# config.status only pays attention to the cache file if you give it
20082# the --recheck option to rerun configure.
20083#
20084# `ac_cv_env_foo' variables (set or unset) will be overridden when
20085# loading this file, other *unset* `ac_cv_foo' will be assigned the
20086# following values.
20087
20088_ACEOF
20089
20090# The following way of writing the cache mishandles newlines in values,
20091# but we know of no workaround that is simple, portable, and efficient.
20092# So, don't put newlines in cache variables' values.
20093# Ultrix sh set writes to stderr and can't be redirected directly,
20094# and sets the high bit in the cache file unless we assign to the vars.
20095{
20096 (set) 2>&1 |
20097 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20098 *ac_space=\ *)
20099 # `set' does not quote correctly, so add quotes (double-quote
20100 # substitution turns \\\\ into \\, and sed turns \\ into \).
20101 sed -n \
20102 "s/'/'\\\\''/g;
20103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20104 ;;
20105 *)
20106 # `set' quotes correctly as required by POSIX, so do not add quotes.
20107 sed -n \
20108 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20109 ;;
20110 esac;
20111} |
20112 sed '
20113 t clear
20114 : clear
20115 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20116 t end
20117 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20118 : end' >>confcache
20119if diff $cache_file confcache >/dev/null 2>&1; then :; else
20120 if test -w $cache_file; then
20121 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20122 cat confcache >$cache_file
20123 else
20124 echo "not updating unwritable cache $cache_file"
20125 fi
20126fi
20127rm -f confcache
20128
20129test "x$prefix" = xNONE && prefix=$ac_default_prefix
20130# Let make expand exec_prefix.
20131test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20132
20133# VPATH may cause trouble with some makes, so we remove $(srcdir),
20134# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20135# trailing colons and then remove the whole line if VPATH becomes empty
20136# (actually we leave an empty line to preserve line numbers).
20137if test "x$srcdir" = x.; then
20138 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20139s/:*\$(srcdir):*/:/;
20140s/:*\${srcdir}:*/:/;
20141s/:*@srcdir@:*/:/;
20142s/^\([^=]*=[ ]*\):*/\1/;
20143s/:*$//;
20144s/^[^=]*=[ ]*$//;
20145}'
20146fi
20147
20148DEFS=-DHAVE_CONFIG_H
20149
20150ac_libobjs=
20151ac_ltlibobjs=
20152for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20153 # 1. Remove the extension, and $U if already installed.
20154 ac_i=`echo "$ac_i" |
20155 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20156 # 2. Add them.
20157 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20158 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20159done
20160LIBOBJS=$ac_libobjs
20161
20162LTLIBOBJS=$ac_ltlibobjs
20163
20164
20165if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20166 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20167Usually this means the macro was only invoked conditionally." >&5
20168echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20169Usually this means the macro was only invoked conditionally." >&2;}
20170 { (exit 1); exit 1; }; }
20171fi
20172if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20173 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20174Usually this means the macro was only invoked conditionally." >&5
20175echo "$as_me: error: conditional \"AMDEP\" was never defined.
20176Usually this means the macro was only invoked conditionally." >&2;}
20177 { (exit 1); exit 1; }; }
20178fi
20179if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20180 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20181Usually this means the macro was only invoked conditionally." >&5
20182echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20183Usually this means the macro was only invoked conditionally." >&2;}
20184 { (exit 1); exit 1; }; }
20185fi
20186if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then
20187 { { echo "$as_me:$LINENO: error: conditional \"HAVE_RPATH\" was never defined.
20188Usually this means the macro was only invoked conditionally." >&5
20189echo "$as_me: error: conditional \"HAVE_RPATH\" was never defined.
20190Usually this means the macro was only invoked conditionally." >&2;}
20191 { (exit 1); exit 1; }; }
20192fi
20193if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
20194 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CXX\" was never defined.
20195Usually this means the macro was only invoked conditionally." >&5
20196echo "$as_me: error: conditional \"HAVE_CXX\" was never defined.
20197Usually this means the macro was only invoked conditionally." >&2;}
20198 { (exit 1); exit 1; }; }
20199fi
20200if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20201 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20202Usually this means the macro was only invoked conditionally." >&5
20203echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20204Usually this means the macro was only invoked conditionally." >&2;}
20205 { (exit 1); exit 1; }; }
20206fi
20207if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20208 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20209Usually this means the macro was only invoked conditionally." >&5
20210echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20211Usually this means the macro was only invoked conditionally." >&2;}
20212 { (exit 1); exit 1; }; }
20213fi
20214if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
20215 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENGL\" was never defined.
20216Usually this means the macro was only invoked conditionally." >&5
20217echo "$as_me: error: conditional \"HAVE_OPENGL\" was never defined.
20218Usually this means the macro was only invoked conditionally." >&2;}
20219 { (exit 1); exit 1; }; }
20220fi
20221
20222: ${CONFIG_STATUS=./config.status}
20223ac_clean_files_save=$ac_clean_files
20224ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20225{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20226echo "$as_me: creating $CONFIG_STATUS" >&6;}
20227cat >$CONFIG_STATUS <<_ACEOF
20228#! $SHELL
20229# Generated by $as_me.
20230# Run this file to recreate the current configuration.
20231# Compiler output produced by configure, useful for debugging
20232# configure, is in config.log if it exists.
20233
20234debug=false
20235ac_cs_recheck=false
20236ac_cs_silent=false
20237SHELL=\${CONFIG_SHELL-$SHELL}
20238_ACEOF
20239
20240cat >>$CONFIG_STATUS <<\_ACEOF
20241## --------------------- ##
20242## M4sh Initialization. ##
20243## --------------------- ##
20244
20245# Be Bourne compatible
20246if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20247 emulate sh
20248 NULLCMD=:
20249 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20250 # is contrary to our usage. Disable this feature.
20251 alias -g '${1+"$@"}'='"$@"'
20252elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20253 set -o posix
20254fi
20255DUALCASE=1; export DUALCASE # for MKS sh
20256
20257# Support unset when possible.
20258if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20259 as_unset=unset
20260else
20261 as_unset=false
20262fi
20263
20264
20265# Work around bugs in pre-3.0 UWIN ksh.
20266$as_unset ENV MAIL MAILPATH
20267PS1='$ '
20268PS2='> '
20269PS4='+ '
20270
20271# NLS nuisances.
20272for as_var in \
20273 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20274 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20275 LC_TELEPHONE LC_TIME
20276do
20277 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20278 eval $as_var=C; export $as_var
20279 else
20280 $as_unset $as_var
20281 fi
20282done
20283
20284# Required to use basename.
20285if expr a : '\(a\)' >/dev/null 2>&1; then
20286 as_expr=expr
20287else
20288 as_expr=false
20289fi
20290
20291if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20292 as_basename=basename
20293else
20294 as_basename=false
20295fi
20296
20297
20298# Name of the executable.
20299as_me=`$as_basename "$0" ||
20300$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20301 X"$0" : 'X\(//\)$' \| \
20302 X"$0" : 'X\(/\)$' \| \
20303 . : '\(.\)' 2>/dev/null ||
20304echo X/"$0" |
20305 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20306 /^X\/\(\/\/\)$/{ s//\1/; q; }
20307 /^X\/\(\/\).*/{ s//\1/; q; }
20308 s/.*/./; q'`
20309
20310
20311# PATH needs CR, and LINENO needs CR and PATH.
20312# Avoid depending upon Character Ranges.
20313as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20314as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20315as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20316as_cr_digits='0123456789'
20317as_cr_alnum=$as_cr_Letters$as_cr_digits
20318
20319# The user is always right.
20320if test "${PATH_SEPARATOR+set}" != set; then
20321 echo "#! /bin/sh" >conf$$.sh
20322 echo "exit 0" >>conf$$.sh
20323 chmod +x conf$$.sh
20324 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20325 PATH_SEPARATOR=';'
20326 else
20327 PATH_SEPARATOR=:
20328 fi
20329 rm -f conf$$.sh
20330fi
20331
20332
20333 as_lineno_1=$LINENO
20334 as_lineno_2=$LINENO
20335 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20336 test "x$as_lineno_1" != "x$as_lineno_2" &&
20337 test "x$as_lineno_3" = "x$as_lineno_2" || {
20338 # Find who we are. Look in the path if we contain no path at all
20339 # relative or not.
20340 case $0 in
20341 *[\\/]* ) as_myself=$0 ;;
20342 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20343for as_dir in $PATH
20344do
20345 IFS=$as_save_IFS
20346 test -z "$as_dir" && as_dir=.
20347 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20348done
20349
20350 ;;
20351 esac
20352 # We did not find ourselves, most probably we were run as `sh COMMAND'
20353 # in which case we are not to be found in the path.
20354 if test "x$as_myself" = x; then
20355 as_myself=$0
20356 fi
20357 if test ! -f "$as_myself"; then
20358 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20359echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20360 { (exit 1); exit 1; }; }
20361 fi
20362 case $CONFIG_SHELL in
20363 '')
20364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20365for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20366do
20367 IFS=$as_save_IFS
20368 test -z "$as_dir" && as_dir=.
20369 for as_base in sh bash ksh sh5; do
20370 case $as_dir in
20371 /*)
20372 if ("$as_dir/$as_base" -c '
20373 as_lineno_1=$LINENO
20374 as_lineno_2=$LINENO
20375 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20376 test "x$as_lineno_1" != "x$as_lineno_2" &&
20377 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20378 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20379 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20380 CONFIG_SHELL=$as_dir/$as_base
20381 export CONFIG_SHELL
20382 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20383 fi;;
20384 esac
20385 done
20386done
20387;;
20388 esac
20389
20390 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20391 # uniformly replaced by the line number. The first 'sed' inserts a
20392 # line-number line before each line; the second 'sed' does the real
20393 # work. The second script uses 'N' to pair each line-number line
20394 # with the numbered line, and appends trailing '-' during
20395 # substitution so that $LINENO is not a special case at line end.
20396 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20397 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20398 sed '=' <$as_myself |
20399 sed '
20400 N
20401 s,$,-,
20402 : loop
20403 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20404 t loop
20405 s,-$,,
20406 s,^['$as_cr_digits']*\n,,
20407 ' >$as_me.lineno &&
20408 chmod +x $as_me.lineno ||
20409 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20410echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20411 { (exit 1); exit 1; }; }
20412
20413 # Don't try to exec as it changes $[0], causing all sort of problems
20414 # (the dirname of $[0] is not the place where we might find the
20415 # original and so on. Autoconf is especially sensible to this).
20416 . ./$as_me.lineno
20417 # Exit status is that of the last command.
20418 exit
20419}
20420
20421
20422case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20423 *c*,-n*) ECHO_N= ECHO_C='
20424' ECHO_T=' ' ;;
20425 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20426 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20427esac
20428
20429if expr a : '\(a\)' >/dev/null 2>&1; then
20430 as_expr=expr
20431else
20432 as_expr=false
20433fi
20434
20435rm -f conf$$ conf$$.exe conf$$.file
20436echo >conf$$.file
20437if ln -s conf$$.file conf$$ 2>/dev/null; then
20438 # We could just check for DJGPP; but this test a) works b) is more generic
20439 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20440 if test -f conf$$.exe; then
20441 # Don't use ln at all; we don't have any links
20442 as_ln_s='cp -p'
20443 else
20444 as_ln_s='ln -s'
20445 fi
20446elif ln conf$$.file conf$$ 2>/dev/null; then
20447 as_ln_s=ln
20448else
20449 as_ln_s='cp -p'
20450fi
20451rm -f conf$$ conf$$.exe conf$$.file
20452
20453if mkdir -p . 2>/dev/null; then
20454 as_mkdir_p=:
20455else
20456 test -d ./-p && rmdir ./-p
20457 as_mkdir_p=false
20458fi
20459
20460as_executable_p="test -f"
20461
20462# Sed expression to map a string onto a valid CPP name.
20463as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20464
20465# Sed expression to map a string onto a valid variable name.
20466as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20467
20468
20469# IFS
20470# We need space, tab and new line, in precisely that order.
20471as_nl='
20472'
20473IFS=" $as_nl"
20474
20475# CDPATH.
20476$as_unset CDPATH
20477
20478exec 6>&1
20479
20480# Open the log real soon, to keep \$[0] and so on meaningful, and to
20481# report actual input values of CONFIG_FILES etc. instead of their
20482# values after options handling. Logging --version etc. is OK.
20483exec 5>>config.log
20484{
20485 echo
20486 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20487## Running $as_me. ##
20488_ASBOX
20489} >&5
20490cat >&5 <<_CSEOF
20491
20492This file was extended by LibTIFF Software $as_me 3.8.2, which was
20493generated by GNU Autoconf 2.59. Invocation command line was
20494
20495 CONFIG_FILES = $CONFIG_FILES
20496 CONFIG_HEADERS = $CONFIG_HEADERS
20497 CONFIG_LINKS = $CONFIG_LINKS
20498 CONFIG_COMMANDS = $CONFIG_COMMANDS
20499 $ $0 $@
20500
20501_CSEOF
20502echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20503echo >&5
20504_ACEOF
20505
20506# Files that config.status was made for.
20507if test -n "$ac_config_files"; then
20508 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20509fi
20510
20511if test -n "$ac_config_headers"; then
20512 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20513fi
20514
20515if test -n "$ac_config_links"; then
20516 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20517fi
20518
20519if test -n "$ac_config_commands"; then
20520 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20521fi
20522
20523cat >>$CONFIG_STATUS <<\_ACEOF
20524
20525ac_cs_usage="\
20526\`$as_me' instantiates files from templates according to the
20527current configuration.
20528
20529Usage: $0 [OPTIONS] [FILE]...
20530
20531 -h, --help print this help, then exit
20532 -V, --version print version number, then exit
20533 -q, --quiet do not print progress messages
20534 -d, --debug don't remove temporary files
20535 --recheck update $as_me by reconfiguring in the same conditions
20536 --file=FILE[:TEMPLATE]
20537 instantiate the configuration file FILE
20538 --header=FILE[:TEMPLATE]
20539 instantiate the configuration header FILE
20540
20541Configuration files:
20542$config_files
20543
20544Configuration headers:
20545$config_headers
20546
20547Configuration commands:
20548$config_commands
20549
20550Report bugs to <bug-autoconf@gnu.org>."
20551_ACEOF
20552
20553cat >>$CONFIG_STATUS <<_ACEOF
20554ac_cs_version="\\
20555LibTIFF Software config.status 3.8.2
20556configured by $0, generated by GNU Autoconf 2.59,
20557 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20558
20559Copyright (C) 2003 Free Software Foundation, Inc.
20560This config.status script is free software; the Free Software Foundation
20561gives unlimited permission to copy, distribute and modify it."
20562srcdir=$srcdir
20563INSTALL="$INSTALL"
20564_ACEOF
20565
20566cat >>$CONFIG_STATUS <<\_ACEOF
20567# If no file are specified by the user, then we need to provide default
20568# value. By we need to know if files were specified by the user.
20569ac_need_defaults=:
20570while test $# != 0
20571do
20572 case $1 in
20573 --*=*)
20574 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20575 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20576 ac_shift=:
20577 ;;
20578 -*)
20579 ac_option=$1
20580 ac_optarg=$2
20581 ac_shift=shift
20582 ;;
20583 *) # This is not an option, so the user has probably given explicit
20584 # arguments.
20585 ac_option=$1
20586 ac_need_defaults=false;;
20587 esac
20588
20589 case $ac_option in
20590 # Handling of the options.
20591_ACEOF
20592cat >>$CONFIG_STATUS <<\_ACEOF
20593 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20594 ac_cs_recheck=: ;;
20595 --version | --vers* | -V )
20596 echo "$ac_cs_version"; exit 0 ;;
20597 --he | --h)
20598 # Conflict between --help and --header
20599 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20600Try \`$0 --help' for more information." >&5
20601echo "$as_me: error: ambiguous option: $1
20602Try \`$0 --help' for more information." >&2;}
20603 { (exit 1); exit 1; }; };;
20604 --help | --hel | -h )
20605 echo "$ac_cs_usage"; exit 0 ;;
20606 --debug | --d* | -d )
20607 debug=: ;;
20608 --file | --fil | --fi | --f )
20609 $ac_shift
20610 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20611 ac_need_defaults=false;;
20612 --header | --heade | --head | --hea )
20613 $ac_shift
20614 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20615 ac_need_defaults=false;;
20616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20617 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20618 ac_cs_silent=: ;;
20619
20620 # This is an error.
20621 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20622Try \`$0 --help' for more information." >&5
20623echo "$as_me: error: unrecognized option: $1
20624Try \`$0 --help' for more information." >&2;}
20625 { (exit 1); exit 1; }; } ;;
20626
20627 *) ac_config_targets="$ac_config_targets $1" ;;
20628
20629 esac
20630 shift
20631done
20632
20633ac_configure_extra_args=
20634
20635if $ac_cs_silent; then
20636 exec 6>/dev/null
20637 ac_configure_extra_args="$ac_configure_extra_args --silent"
20638fi
20639
20640_ACEOF
20641cat >>$CONFIG_STATUS <<_ACEOF
20642if \$ac_cs_recheck; then
20643 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20644 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20645fi
20646
20647_ACEOF
20648
20649cat >>$CONFIG_STATUS <<_ACEOF
20650#
20651# INIT-COMMANDS section.
20652#
20653
20654AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20655
20656
20657# The HP-UX ksh and POSIX shell print the target directory to stdout
20658# if CDPATH is set.
20659(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20660
20661sed_quote_subst='$sed_quote_subst'
20662double_quote_subst='$double_quote_subst'
20663delay_variable_subst='$delay_variable_subst'
20664macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20665macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20666enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20667enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20668pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20669enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20670host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20671host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20672host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20673build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20674build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20675build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20676SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20677Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20678GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20679EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20680FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20681LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20682NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20683LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20684max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20685ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20686exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20687reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20688reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20689deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20690file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20691AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20692AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20693STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20694RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20695old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20696old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20697old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20698CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20699CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20700compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20701GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20702lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20703lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20704lt_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"`'
20705objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20706SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20707ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20708MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20709lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20710lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20711lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20712lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20713lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20714need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20715libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20716shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20717extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20718archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20719enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20720export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20721whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20722old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20723old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20724archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20725archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20726module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20727module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20728with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20729allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20730no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20731hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20732hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20733hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20734hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20735hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20736hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20737hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20738inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20739link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20740fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20741always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20742export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20743exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20744include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20745prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20746file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20747variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20748need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20749need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20750version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20751runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20752shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20753shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20754libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20755library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20756soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20757postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20758postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20759finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20760finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20761hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20762sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20763sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20764hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20765enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20766enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20767enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20768old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20769striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20770AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
20771DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20772OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20773predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20774postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20775predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20776postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20777compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20778LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20779old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20780compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20781GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20782lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20783lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20784lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20785lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20786lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20787archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20788enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20789export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20790whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20791old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20792old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20793archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20794archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20795module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20796module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20797with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20798allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20799no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20800hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20801hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20802hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20803hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20804hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20805hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20806hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20807inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20808link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20809fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20810always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20811export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20812exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20813include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20814prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20815file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20816hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20817predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20818postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20819predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20820postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20821compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20822
20823LTCC='$LTCC'
20824LTCFLAGS='$LTCFLAGS'
20825compiler='$compiler_DEFAULT'
20826
20827# Quote evaled strings.
20828for var in SED \
20829GREP \
20830EGREP \
20831FGREP \
20832LD \
20833NM \
20834LN_S \
20835reload_flag \
20836deplibs_check_method \
20837file_magic_cmd \
20838AR \
20839AR_FLAGS \
20840STRIP \
20841RANLIB \
20842CC \
20843CFLAGS \
20844compiler \
20845lt_cv_sys_global_symbol_pipe \
20846lt_cv_sys_global_symbol_to_cdecl \
20847lt_cv_sys_global_symbol_to_c_name_address \
20848SHELL \
20849ECHO \
20850lt_prog_compiler_no_builtin_flag \
20851lt_prog_compiler_wl \
20852lt_prog_compiler_pic \
20853lt_prog_compiler_static \
20854lt_cv_prog_compiler_c_o \
20855need_locks \
20856shrext_cmds \
20857export_dynamic_flag_spec \
20858whole_archive_flag_spec \
20859with_gnu_ld \
20860allow_undefined_flag \
20861no_undefined_flag \
20862hardcode_libdir_flag_spec \
20863hardcode_libdir_flag_spec_ld \
20864hardcode_libdir_separator \
20865fix_srcfile_path \
20866exclude_expsyms \
20867include_expsyms \
20868file_list_spec \
20869variables_saved_for_relink \
20870libname_spec \
20871library_names_spec \
20872soname_spec \
20873finish_eval \
20874old_striplib \
20875striplib \
20876predep_objects \
20877postdep_objects \
20878predeps \
20879postdeps \
20880compiler_lib_search_path \
20881LD_CXX \
20882compiler_CXX \
20883lt_prog_compiler_no_builtin_flag_CXX \
20884lt_prog_compiler_wl_CXX \
20885lt_prog_compiler_pic_CXX \
20886lt_prog_compiler_static_CXX \
20887lt_cv_prog_compiler_c_o_CXX \
20888export_dynamic_flag_spec_CXX \
20889whole_archive_flag_spec_CXX \
20890with_gnu_ld_CXX \
20891allow_undefined_flag_CXX \
20892no_undefined_flag_CXX \
20893hardcode_libdir_flag_spec_CXX \
20894hardcode_libdir_flag_spec_ld_CXX \
20895hardcode_libdir_separator_CXX \
20896fix_srcfile_path_CXX \
20897exclude_expsyms_CXX \
20898include_expsyms_CXX \
20899file_list_spec_CXX \
20900predep_objects_CXX \
20901postdep_objects_CXX \
20902predeps_CXX \
20903postdeps_CXX \
20904compiler_lib_search_path_CXX; do
20905 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20906 *[\\\\\\\`\\"\\\$]*)
20907 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20908 ;;
20909 *)
20910 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20911 ;;
20912 esac
20913done
20914
20915# Double-quote double-evaled strings.
20916for var in reload_cmds \
20917old_postinstall_cmds \
20918old_postuninstall_cmds \
20919old_archive_cmds \
20920extract_expsyms_cmds \
20921old_archive_from_new_cmds \
20922old_archive_from_expsyms_cmds \
20923archive_cmds \
20924archive_expsym_cmds \
20925module_cmds \
20926module_expsym_cmds \
20927export_symbols_cmds \
20928prelink_cmds \
20929postinstall_cmds \
20930postuninstall_cmds \
20931finish_cmds \
20932sys_lib_search_path_spec \
20933sys_lib_dlsearch_path_spec \
20934old_archive_cmds_CXX \
20935old_archive_from_new_cmds_CXX \
20936old_archive_from_expsyms_cmds_CXX \
20937archive_cmds_CXX \
20938archive_expsym_cmds_CXX \
20939module_cmds_CXX \
20940module_expsym_cmds_CXX \
20941export_symbols_cmds_CXX \
20942prelink_cmds_CXX; do
20943 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20944 *[\\\\\\\`\\"\\\$]*)
20945 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20946 ;;
20947 *)
20948 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20949 ;;
20950 esac
20951done
20952
20953# Fix-up fallback echo if it was mangled by the above quoting rules.
20954case \$lt_ECHO in
20955*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20956 ;;
20957esac
20958
20959ac_aux_dir='$ac_aux_dir'
20960xsi_shell='$xsi_shell'
20961
20962# See if we are running on zsh, and set the options which allow our
20963# commands through without removal of \ escapes INIT.
20964if test -n "\${ZSH_VERSION+set}" ; then
20965 setopt NO_GLOB_SUBST
20966fi
20967
20968
20969 PACKAGE='$PACKAGE'
20970 VERSION='$VERSION'
20971 TIMESTAMP='$TIMESTAMP'
20972 RM='$RM'
20973 ofile='$ofile'
20974
20975
20976
20977
20978
20979
20980_ACEOF
20981
20982
20983
20984cat >>$CONFIG_STATUS <<\_ACEOF
20985for ac_config_target in $ac_config_targets
20986do
20987 case "$ac_config_target" in
20988 # Handling of arguments.
20989 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20990 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
20991 "contrib/acorn/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/acorn/Makefile" ;;
20992 "contrib/addtiffo/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;;
20993 "contrib/dbs/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;;
20994 "contrib/dbs/xtiff/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;;
20995 "contrib/iptcutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;;
20996 "contrib/mac-cw/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/mac-cw/Makefile" ;;
20997 "contrib/mac-mpw/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/mac-mpw/Makefile" ;;
20998 "contrib/mfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;;
20999 "contrib/ojpeg/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/ojpeg/Makefile" ;;
21000 "contrib/pds/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;;
21001 "contrib/ras/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;;
21002 "contrib/stream/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;;
21003 "contrib/tags/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;;
21004 "contrib/win_dib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;;
21005 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
21006 "html/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;;
21007 "html/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;;
21008 "libtiff/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;;
21009 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21010 "port/Makefile" ) CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
21011 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21012 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21013 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21014 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21015 "libtiff/tif_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;;
21016 "libtiff/tiffconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;;
21017 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21018echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21019 { (exit 1); exit 1; }; };;
21020 esac
21021done
21022
21023# If the user did not use the arguments to specify the items to instantiate,
21024# then the envvar interface is used. Set only those that are not.
21025# We use the long form for the default assignment because of an extremely
21026# bizarre bug on SunOS 4.1.3.
21027if $ac_need_defaults; then
21028 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21029 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21030 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21031fi
21032
21033# Have a temporary directory for convenience. Make it in the build tree
21034# simply because there is no reason to put it here, and in addition,
21035# creating and moving files from /tmp can sometimes cause problems.
21036# Create a temporary directory, and hook for its removal unless debugging.
21037$debug ||
21038{
21039 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21040 trap '{ (exit 1); exit 1; }' 1 2 13 15
21041}
21042
21043# Create a (secure) tmp directory for tmp files.
21044
21045{
21046 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21047 test -n "$tmp" && test -d "$tmp"
21048} ||
21049{
21050 tmp=./confstat$$-$RANDOM
21051 (umask 077 && mkdir $tmp)
21052} ||
21053{
21054 echo "$me: cannot create a temporary directory in ." >&2
21055 { (exit 1); exit 1; }
21056}
21057
21058_ACEOF
21059
21060cat >>$CONFIG_STATUS <<_ACEOF
21061
21062#
21063# CONFIG_FILES section.
21064#
21065
21066# No need to generate the scripts if there are no CONFIG_FILES.
21067# This happens for instance when ./config.status config.h
21068if test -n "\$CONFIG_FILES"; then
21069 # Protect against being on the right side of a sed subst in config.status.
21070 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21071 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21072s,@SHELL@,$SHELL,;t t
21073s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21074s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21075s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21076s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21077s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21078s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21079s,@exec_prefix@,$exec_prefix,;t t
21080s,@prefix@,$prefix,;t t
21081s,@program_transform_name@,$program_transform_name,;t t
21082s,@bindir@,$bindir,;t t
21083s,@sbindir@,$sbindir,;t t
21084s,@libexecdir@,$libexecdir,;t t
21085s,@datadir@,$datadir,;t t
21086s,@sysconfdir@,$sysconfdir,;t t
21087s,@sharedstatedir@,$sharedstatedir,;t t
21088s,@localstatedir@,$localstatedir,;t t
21089s,@libdir@,$libdir,;t t
21090s,@includedir@,$includedir,;t t
21091s,@oldincludedir@,$oldincludedir,;t t
21092s,@infodir@,$infodir,;t t
21093s,@mandir@,$mandir,;t t
21094s,@build_alias@,$build_alias,;t t
21095s,@host_alias@,$host_alias,;t t
21096s,@target_alias@,$target_alias,;t t
21097s,@DEFS@,$DEFS,;t t
21098s,@ECHO_C@,$ECHO_C,;t t
21099s,@ECHO_N@,$ECHO_N,;t t
21100s,@ECHO_T@,$ECHO_T,;t t
21101s,@LIBS@,$LIBS,;t t
21102s,@build@,$build,;t t
21103s,@build_cpu@,$build_cpu,;t t
21104s,@build_vendor@,$build_vendor,;t t
21105s,@build_os@,$build_os,;t t
21106s,@host@,$host,;t t
21107s,@host_cpu@,$host_cpu,;t t
21108s,@host_vendor@,$host_vendor,;t t
21109s,@host_os@,$host_os,;t t
21110s,@target@,$target,;t t
21111s,@target_cpu@,$target_cpu,;t t
21112s,@target_vendor@,$target_vendor,;t t
21113s,@target_os@,$target_os,;t t
21114s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21115s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21116s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21117s,@CYGPATH_W@,$CYGPATH_W,;t t
21118s,@PACKAGE@,$PACKAGE,;t t
21119s,@VERSION@,$VERSION,;t t
21120s,@ACLOCAL@,$ACLOCAL,;t t
21121s,@AUTOCONF@,$AUTOCONF,;t t
21122s,@AUTOMAKE@,$AUTOMAKE,;t t
21123s,@AUTOHEADER@,$AUTOHEADER,;t t
21124s,@MAKEINFO@,$MAKEINFO,;t t
21125s,@install_sh@,$install_sh,;t t
21126s,@STRIP@,$STRIP,;t t
21127s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21128s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21129s,@mkdir_p@,$mkdir_p,;t t
21130s,@AWK@,$AWK,;t t
21131s,@SET_MAKE@,$SET_MAKE,;t t
21132s,@am__leading_dot@,$am__leading_dot,;t t
21133s,@AMTAR@,$AMTAR,;t t
21134s,@am__tar@,$am__tar,;t t
21135s,@am__untar@,$am__untar,;t t
21136s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21137s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21138s,@MAINT@,$MAINT,;t t
21139s,@LIBTIFF_MAJOR_VERSION@,$LIBTIFF_MAJOR_VERSION,;t t
21140s,@LIBTIFF_MINOR_VERSION@,$LIBTIFF_MINOR_VERSION,;t t
21141s,@LIBTIFF_MICRO_VERSION@,$LIBTIFF_MICRO_VERSION,;t t
21142s,@LIBTIFF_ALPHA_VERSION@,$LIBTIFF_ALPHA_VERSION,;t t
21143s,@LIBTIFF_VERSION@,$LIBTIFF_VERSION,;t t
21144s,@LIBTIFF_VERSION_INFO@,$LIBTIFF_VERSION_INFO,;t t
21145s,@LIBTIFF_RELEASE_DATE@,$LIBTIFF_RELEASE_DATE,;t t
21146s,@CC@,$CC,;t t
21147s,@CFLAGS@,$CFLAGS,;t t
21148s,@LDFLAGS@,$LDFLAGS,;t t
21149s,@CPPFLAGS@,$CPPFLAGS,;t t
21150s,@ac_ct_CC@,$ac_ct_CC,;t t
21151s,@EXEEXT@,$EXEEXT,;t t
21152s,@OBJEXT@,$OBJEXT,;t t
21153s,@DEPDIR@,$DEPDIR,;t t
21154s,@am__include@,$am__include,;t t
21155s,@am__quote@,$am__quote,;t t
21156s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21157s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21158s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21159s,@CCDEPMODE@,$CCDEPMODE,;t t
21160s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21161s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21162s,@LN_S@,$LN_S,;t t
21163s,@LIBTOOL@,$LIBTOOL,;t t
21164s,@SED@,$SED,;t t
21165s,@EGREP@,$EGREP,;t t
21166s,@FGREP@,$FGREP,;t t
21167s,@GREP@,$GREP,;t t
21168s,@LD@,$LD,;t t
21169s,@DUMPBIN@,$DUMPBIN,;t t
21170s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21171s,@NM@,$NM,;t t
21172s,@AR@,$AR,;t t
21173s,@ac_ct_AR@,$ac_ct_AR,;t t
21174s,@RANLIB@,$RANLIB,;t t
21175s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21176s,@lt_ECHO@,$lt_ECHO,;t t
21177s,@CPP@,$CPP,;t t
21178s,@AS@,$AS,;t t
21179s,@ac_ct_AS@,$ac_ct_AS,;t t
21180s,@DLLTOOL@,$DLLTOOL,;t t
21181s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21182s,@OBJDUMP@,$OBJDUMP,;t t
21183s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21184s,@LIBOBJS@,$LIBOBJS,;t t
21185s,@HAVE_RPATH_TRUE@,$HAVE_RPATH_TRUE,;t t
21186s,@HAVE_RPATH_FALSE@,$HAVE_RPATH_FALSE,;t t
21187s,@LIBTIFF_DOCDIR@,$LIBTIFF_DOCDIR,;t t
21188s,@HAVE_CXX_TRUE@,$HAVE_CXX_TRUE,;t t
21189s,@HAVE_CXX_FALSE@,$HAVE_CXX_FALSE,;t t
21190s,@X_CFLAGS@,$X_CFLAGS,;t t
21191s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21192s,@X_LIBS@,$X_LIBS,;t t
21193s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21194s,@acx_pthread_config@,$acx_pthread_config,;t t
21195s,@PTHREAD_CC@,$PTHREAD_CC,;t t
21196s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
21197s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
21198s,@GL_CFLAGS@,$GL_CFLAGS,;t t
21199s,@GL_LIBS@,$GL_LIBS,;t t
21200s,@CXX@,$CXX,;t t
21201s,@CXXFLAGS@,$CXXFLAGS,;t t
21202s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21203s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21204s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21205s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21206s,@CXXCPP@,$CXXCPP,;t t
21207s,@GLU_CFLAGS@,$GLU_CFLAGS,;t t
21208s,@GLU_LIBS@,$GLU_LIBS,;t t
21209s,@GLUT_CFLAGS@,$GLUT_CFLAGS,;t t
21210s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21211s,@HAVE_OPENGL_TRUE@,$HAVE_OPENGL_TRUE,;t t
21212s,@HAVE_OPENGL_FALSE@,$HAVE_OPENGL_FALSE,;t t
21213s,@LIBDIR@,$LIBDIR,;t t
21214s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21215CEOF
21216
21217_ACEOF
21218
21219 cat >>$CONFIG_STATUS <<\_ACEOF
21220 # Split the substitutions into bite-sized pieces for seds with
21221 # small command number limits, like on Digital OSF/1 and HP-UX.
21222 ac_max_sed_lines=48
21223 ac_sed_frag=1 # Number of current file.
21224 ac_beg=1 # First line for current file.
21225 ac_end=$ac_max_sed_lines # Line after last line for current file.
21226 ac_more_lines=:
21227 ac_sed_cmds=
21228 while $ac_more_lines; do
21229 if test $ac_beg -gt 1; then
21230 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21231 else
21232 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21233 fi
21234 if test ! -s $tmp/subs.frag; then
21235 ac_more_lines=false
21236 else
21237 # The purpose of the label and of the branching condition is to
21238 # speed up the sed processing (if there are no `@' at all, there
21239 # is no need to browse any of the substitutions).
21240 # These are the two extra sed commands mentioned above.
21241 (echo ':t
21242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21243 if test -z "$ac_sed_cmds"; then
21244 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21245 else
21246 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21247 fi
21248 ac_sed_frag=`expr $ac_sed_frag + 1`
21249 ac_beg=$ac_end
21250 ac_end=`expr $ac_end + $ac_max_sed_lines`
21251 fi
21252 done
21253 if test -z "$ac_sed_cmds"; then
21254 ac_sed_cmds=cat
21255 fi
21256fi # test -n "$CONFIG_FILES"
21257
21258_ACEOF
21259cat >>$CONFIG_STATUS <<\_ACEOF
21260for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21261 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21262 case $ac_file in
21263 - | *:- | *:-:* ) # input from stdin
21264 cat >$tmp/stdin
21265 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21266 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21267 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21268 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21269 * ) ac_file_in=$ac_file.in ;;
21270 esac
21271
21272 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21273 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21274$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21275 X"$ac_file" : 'X\(//\)[^/]' \| \
21276 X"$ac_file" : 'X\(//\)$' \| \
21277 X"$ac_file" : 'X\(/\)' \| \
21278 . : '\(.\)' 2>/dev/null ||
21279echo X"$ac_file" |
21280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21281 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21282 /^X\(\/\/\)$/{ s//\1/; q; }
21283 /^X\(\/\).*/{ s//\1/; q; }
21284 s/.*/./; q'`
21285 { if $as_mkdir_p; then
21286 mkdir -p "$ac_dir"
21287 else
21288 as_dir="$ac_dir"
21289 as_dirs=
21290 while test ! -d "$as_dir"; do
21291 as_dirs="$as_dir $as_dirs"
21292 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21293$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21294 X"$as_dir" : 'X\(//\)[^/]' \| \
21295 X"$as_dir" : 'X\(//\)$' \| \
21296 X"$as_dir" : 'X\(/\)' \| \
21297 . : '\(.\)' 2>/dev/null ||
21298echo X"$as_dir" |
21299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21300 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21301 /^X\(\/\/\)$/{ s//\1/; q; }
21302 /^X\(\/\).*/{ s//\1/; q; }
21303 s/.*/./; q'`
21304 done
21305 test ! -n "$as_dirs" || mkdir $as_dirs
21306 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21307echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21308 { (exit 1); exit 1; }; }; }
21309
21310 ac_builddir=.
21311
21312if test "$ac_dir" != .; then
21313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21314 # A "../" for each directory in $ac_dir_suffix.
21315 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21316else
21317 ac_dir_suffix= ac_top_builddir=
21318fi
21319
21320case $srcdir in
21321 .) # No --srcdir option. We are building in place.
21322 ac_srcdir=.
21323 if test -z "$ac_top_builddir"; then
21324 ac_top_srcdir=.
21325 else
21326 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21327 fi ;;
21328 [\\/]* | ?:[\\/]* ) # Absolute path.
21329 ac_srcdir=$srcdir$ac_dir_suffix;
21330 ac_top_srcdir=$srcdir ;;
21331 *) # Relative path.
21332 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21333 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21334esac
21335
21336# Do not use `cd foo && pwd` to compute absolute paths, because
21337# the directories may not exist.
21338case `pwd` in
21339.) ac_abs_builddir="$ac_dir";;
21340*)
21341 case "$ac_dir" in
21342 .) ac_abs_builddir=`pwd`;;
21343 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21344 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21345 esac;;
21346esac
21347case $ac_abs_builddir in
21348.) ac_abs_top_builddir=${ac_top_builddir}.;;
21349*)
21350 case ${ac_top_builddir}. in
21351 .) ac_abs_top_builddir=$ac_abs_builddir;;
21352 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21353 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21354 esac;;
21355esac
21356case $ac_abs_builddir in
21357.) ac_abs_srcdir=$ac_srcdir;;
21358*)
21359 case $ac_srcdir in
21360 .) ac_abs_srcdir=$ac_abs_builddir;;
21361 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21362 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21363 esac;;
21364esac
21365case $ac_abs_builddir in
21366.) ac_abs_top_srcdir=$ac_top_srcdir;;
21367*)
21368 case $ac_top_srcdir in
21369 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21370 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21371 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21372 esac;;
21373esac
21374
21375
21376 case $INSTALL in
21377 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21378 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21379 esac
21380
21381 # Let's still pretend it is `configure' which instantiates (i.e., don't
21382 # use $as_me), people would be surprised to read:
21383 # /* config.h. Generated by config.status. */
21384 if test x"$ac_file" = x-; then
21385 configure_input=
21386 else
21387 configure_input="$ac_file. "
21388 fi
21389 configure_input=$configure_input"Generated from `echo $ac_file_in |
21390 sed 's,.*/,,'` by configure."
21391
21392 # First look for the input files in the build tree, otherwise in the
21393 # src tree.
21394 ac_file_inputs=`IFS=:
21395 for f in $ac_file_in; do
21396 case $f in
21397 -) echo $tmp/stdin ;;
21398 [\\/$]*)
21399 # Absolute (can't be DOS-style, as IFS=:)
21400 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21401echo "$as_me: error: cannot find input file: $f" >&2;}
21402 { (exit 1); exit 1; }; }
21403 echo "$f";;
21404 *) # Relative
21405 if test -f "$f"; then
21406 # Build tree
21407 echo "$f"
21408 elif test -f "$srcdir/$f"; then
21409 # Source tree
21410 echo "$srcdir/$f"
21411 else
21412 # /dev/null tree
21413 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21414echo "$as_me: error: cannot find input file: $f" >&2;}
21415 { (exit 1); exit 1; }; }
21416 fi;;
21417 esac
21418 done` || { (exit 1); exit 1; }
21419
21420 if test x"$ac_file" != x-; then
21421 { echo "$as_me:$LINENO: creating $ac_file" >&5
21422echo "$as_me: creating $ac_file" >&6;}
21423 rm -f "$ac_file"
21424 fi
21425_ACEOF
21426cat >>$CONFIG_STATUS <<_ACEOF
21427 sed "$ac_vpsub
21428$extrasub
21429_ACEOF
21430cat >>$CONFIG_STATUS <<\_ACEOF
21431:t
21432/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21433s,@configure_input@,$configure_input,;t t
21434s,@srcdir@,$ac_srcdir,;t t
21435s,@abs_srcdir@,$ac_abs_srcdir,;t t
21436s,@top_srcdir@,$ac_top_srcdir,;t t
21437s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21438s,@builddir@,$ac_builddir,;t t
21439s,@abs_builddir@,$ac_abs_builddir,;t t
21440s,@top_builddir@,$ac_top_builddir,;t t
21441s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21442s,@INSTALL@,$ac_INSTALL,;t t
21443" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21444 rm -f $tmp/stdin
21445 if test x"$ac_file" != x-; then
21446 mv $tmp/out $ac_file
21447 else
21448 cat $tmp/out
21449 rm -f $tmp/out
21450 fi
21451
21452done
21453_ACEOF
21454cat >>$CONFIG_STATUS <<\_ACEOF
21455
21456#
21457# CONFIG_HEADER section.
21458#
21459
21460# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21461# NAME is the cpp macro being defined and VALUE is the value it is being given.
21462#
21463# ac_d sets the value in "#define NAME VALUE" lines.
21464ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21465ac_dB='[ ].*$,\1#\2'
21466ac_dC=' '
21467ac_dD=',;t'
21468# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21469ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21470ac_uB='$,\1#\2define\3'
21471ac_uC=' '
21472ac_uD=',;t'
21473
21474for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21475 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21476 case $ac_file in
21477 - | *:- | *:-:* ) # input from stdin
21478 cat >$tmp/stdin
21479 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21480 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21481 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21482 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21483 * ) ac_file_in=$ac_file.in ;;
21484 esac
21485
21486 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21487echo "$as_me: creating $ac_file" >&6;}
21488
21489 # First look for the input files in the build tree, otherwise in the
21490 # src tree.
21491 ac_file_inputs=`IFS=:
21492 for f in $ac_file_in; do
21493 case $f in
21494 -) echo $tmp/stdin ;;
21495 [\\/$]*)
21496 # Absolute (can't be DOS-style, as IFS=:)
21497 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21498echo "$as_me: error: cannot find input file: $f" >&2;}
21499 { (exit 1); exit 1; }; }
21500 # Do quote $f, to prevent DOS paths from being IFS'd.
21501 echo "$f";;
21502 *) # Relative
21503 if test -f "$f"; then
21504 # Build tree
21505 echo "$f"
21506 elif test -f "$srcdir/$f"; then
21507 # Source tree
21508 echo "$srcdir/$f"
21509 else
21510 # /dev/null tree
21511 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21512echo "$as_me: error: cannot find input file: $f" >&2;}
21513 { (exit 1); exit 1; }; }
21514 fi;;
21515 esac
21516 done` || { (exit 1); exit 1; }
21517 # Remove the trailing spaces.
21518 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21519
21520_ACEOF
21521
21522# Transform confdefs.h into two sed scripts, `conftest.defines' and
21523# `conftest.undefs', that substitutes the proper values into
21524# config.h.in to produce config.h. The first handles `#define'
21525# templates, and the second `#undef' templates.
21526# And first: Protect against being on the right side of a sed subst in
21527# config.status. Protect against being in an unquoted here document
21528# in config.status.
21529rm -f conftest.defines conftest.undefs
21530# Using a here document instead of a string reduces the quoting nightmare.
21531# Putting comments in sed scripts is not portable.
21532#
21533# `end' is used to avoid that the second main sed command (meant for
21534# 0-ary CPP macros) applies to n-ary macro definitions.
21535# See the Autoconf documentation for `clear'.
21536cat >confdef2sed.sed <<\_ACEOF
21537s/[\\&,]/\\&/g
21538s,[\\$`],\\&,g
21539t clear
21540: clear
21541s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21542t end
21543s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21544: end
21545_ACEOF
21546# If some macros were called several times there might be several times
21547# the same #defines, which is useless. Nevertheless, we may not want to
21548# sort them, since we want the *last* AC-DEFINE to be honored.
21549uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21550sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21551rm -f confdef2sed.sed
21552
21553# This sed command replaces #undef with comments. This is necessary, for
21554# example, in the case of _POSIX_SOURCE, which is predefined and required
21555# on some systems where configure will not decide to define it.
21556cat >>conftest.undefs <<\_ACEOF
21557s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21558_ACEOF
21559
21560# Break up conftest.defines because some shells have a limit on the size
21561# of here documents, and old seds have small limits too (100 cmds).
21562echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21563echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21564echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21565echo ' :' >>$CONFIG_STATUS
21566rm -f conftest.tail
21567while grep . conftest.defines >/dev/null
21568do
21569 # Write a limited-size here document to $tmp/defines.sed.
21570 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21571 # Speed up: don't consider the non `#define' lines.
21572 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21573 # Work around the forget-to-reset-the-flag bug.
21574 echo 't clr' >>$CONFIG_STATUS
21575 echo ': clr' >>$CONFIG_STATUS
21576 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21577 echo 'CEOF
21578 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21579 rm -f $tmp/in
21580 mv $tmp/out $tmp/in
21581' >>$CONFIG_STATUS
21582 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21583 rm -f conftest.defines
21584 mv conftest.tail conftest.defines
21585done
21586rm -f conftest.defines
21587echo ' fi # grep' >>$CONFIG_STATUS
21588echo >>$CONFIG_STATUS
21589
21590# Break up conftest.undefs because some shells have a limit on the size
21591# of here documents, and old seds have small limits too (100 cmds).
21592echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21593rm -f conftest.tail
21594while grep . conftest.undefs >/dev/null
21595do
21596 # Write a limited-size here document to $tmp/undefs.sed.
21597 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21598 # Speed up: don't consider the non `#undef'
21599 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21600 # Work around the forget-to-reset-the-flag bug.
21601 echo 't clr' >>$CONFIG_STATUS
21602 echo ': clr' >>$CONFIG_STATUS
21603 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21604 echo 'CEOF
21605 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21606 rm -f $tmp/in
21607 mv $tmp/out $tmp/in
21608' >>$CONFIG_STATUS
21609 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21610 rm -f conftest.undefs
21611 mv conftest.tail conftest.undefs
21612done
21613rm -f conftest.undefs
21614
21615cat >>$CONFIG_STATUS <<\_ACEOF
21616 # Let's still pretend it is `configure' which instantiates (i.e., don't
21617 # use $as_me), people would be surprised to read:
21618 # /* config.h. Generated by config.status. */
21619 if test x"$ac_file" = x-; then
21620 echo "/* Generated by configure. */" >$tmp/config.h
21621 else
21622 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21623 fi
21624 cat $tmp/in >>$tmp/config.h
21625 rm -f $tmp/in
21626 if test x"$ac_file" != x-; then
21627 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21628 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21629echo "$as_me: $ac_file is unchanged" >&6;}
21630 else
21631 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21632$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21633 X"$ac_file" : 'X\(//\)[^/]' \| \
21634 X"$ac_file" : 'X\(//\)$' \| \
21635 X"$ac_file" : 'X\(/\)' \| \
21636 . : '\(.\)' 2>/dev/null ||
21637echo X"$ac_file" |
21638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21640 /^X\(\/\/\)$/{ s//\1/; q; }
21641 /^X\(\/\).*/{ s//\1/; q; }
21642 s/.*/./; q'`
21643 { if $as_mkdir_p; then
21644 mkdir -p "$ac_dir"
21645 else
21646 as_dir="$ac_dir"
21647 as_dirs=
21648 while test ! -d "$as_dir"; do
21649 as_dirs="$as_dir $as_dirs"
21650 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21651$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21652 X"$as_dir" : 'X\(//\)[^/]' \| \
21653 X"$as_dir" : 'X\(//\)$' \| \
21654 X"$as_dir" : 'X\(/\)' \| \
21655 . : '\(.\)' 2>/dev/null ||
21656echo X"$as_dir" |
21657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21659 /^X\(\/\/\)$/{ s//\1/; q; }
21660 /^X\(\/\).*/{ s//\1/; q; }
21661 s/.*/./; q'`
21662 done
21663 test ! -n "$as_dirs" || mkdir $as_dirs
21664 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21665echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21666 { (exit 1); exit 1; }; }; }
21667
21668 rm -f $ac_file
21669 mv $tmp/config.h $ac_file
21670 fi
21671 else
21672 cat $tmp/config.h
21673 rm -f $tmp/config.h
21674 fi
21675# Compute $ac_file's index in $config_headers.
21676_am_stamp_count=1
21677for _am_header in $config_headers :; do
21678 case $_am_header in
21679 $ac_file | $ac_file:* )
21680 break ;;
21681 * )
21682 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21683 esac
21684done
21685echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21686$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21687 X$ac_file : 'X\(//\)[^/]' \| \
21688 X$ac_file : 'X\(//\)$' \| \
21689 X$ac_file : 'X\(/\)' \| \
21690 . : '\(.\)' 2>/dev/null ||
21691echo X$ac_file |
21692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21694 /^X\(\/\/\)$/{ s//\1/; q; }
21695 /^X\(\/\).*/{ s//\1/; q; }
21696 s/.*/./; q'`/stamp-h$_am_stamp_count
21697done
21698_ACEOF
21699cat >>$CONFIG_STATUS <<\_ACEOF
21700
21701#
21702# CONFIG_COMMANDS section.
21703#
21704for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21705 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21706 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21707 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21708$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21709 X"$ac_dest" : 'X\(//\)[^/]' \| \
21710 X"$ac_dest" : 'X\(//\)$' \| \
21711 X"$ac_dest" : 'X\(/\)' \| \
21712 . : '\(.\)' 2>/dev/null ||
21713echo X"$ac_dest" |
21714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21716 /^X\(\/\/\)$/{ s//\1/; q; }
21717 /^X\(\/\).*/{ s//\1/; q; }
21718 s/.*/./; q'`
21719 { if $as_mkdir_p; then
21720 mkdir -p "$ac_dir"
21721 else
21722 as_dir="$ac_dir"
21723 as_dirs=
21724 while test ! -d "$as_dir"; do
21725 as_dirs="$as_dir $as_dirs"
21726 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21727$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21728 X"$as_dir" : 'X\(//\)[^/]' \| \
21729 X"$as_dir" : 'X\(//\)$' \| \
21730 X"$as_dir" : 'X\(/\)' \| \
21731 . : '\(.\)' 2>/dev/null ||
21732echo X"$as_dir" |
21733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21735 /^X\(\/\/\)$/{ s//\1/; q; }
21736 /^X\(\/\).*/{ s//\1/; q; }
21737 s/.*/./; q'`
21738 done
21739 test ! -n "$as_dirs" || mkdir $as_dirs
21740 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21741echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21742 { (exit 1); exit 1; }; }; }
21743
21744 ac_builddir=.
21745
21746if test "$ac_dir" != .; then
21747 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21748 # A "../" for each directory in $ac_dir_suffix.
21749 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21750else
21751 ac_dir_suffix= ac_top_builddir=
21752fi
21753
21754case $srcdir in
21755 .) # No --srcdir option. We are building in place.
21756 ac_srcdir=.
21757 if test -z "$ac_top_builddir"; then
21758 ac_top_srcdir=.
21759 else
21760 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21761 fi ;;
21762 [\\/]* | ?:[\\/]* ) # Absolute path.
21763 ac_srcdir=$srcdir$ac_dir_suffix;
21764 ac_top_srcdir=$srcdir ;;
21765 *) # Relative path.
21766 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21767 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21768esac
21769
21770# Do not use `cd foo && pwd` to compute absolute paths, because
21771# the directories may not exist.
21772case `pwd` in
21773.) ac_abs_builddir="$ac_dir";;
21774*)
21775 case "$ac_dir" in
21776 .) ac_abs_builddir=`pwd`;;
21777 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21778 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21779 esac;;
21780esac
21781case $ac_abs_builddir in
21782.) ac_abs_top_builddir=${ac_top_builddir}.;;
21783*)
21784 case ${ac_top_builddir}. in
21785 .) ac_abs_top_builddir=$ac_abs_builddir;;
21786 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21787 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21788 esac;;
21789esac
21790case $ac_abs_builddir in
21791.) ac_abs_srcdir=$ac_srcdir;;
21792*)
21793 case $ac_srcdir in
21794 .) ac_abs_srcdir=$ac_abs_builddir;;
21795 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21796 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21797 esac;;
21798esac
21799case $ac_abs_builddir in
21800.) ac_abs_top_srcdir=$ac_top_srcdir;;
21801*)
21802 case $ac_top_srcdir in
21803 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21804 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21805 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21806 esac;;
21807esac
21808
21809
21810 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21811echo "$as_me: executing $ac_dest commands" >&6;}
21812 case $ac_dest in
21813 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21814 # Strip MF so we end up with the name of the file.
21815 mf=`echo "$mf" | sed -e 's/:.*$//'`
21816 # Check whether this is an Automake generated Makefile or not.
21817 # We used to match only the files named `Makefile.in', but
21818 # some people rename them; so instead we look at the file content.
21819 # Grep'ing the first line is not enough: some people post-process
21820 # each Makefile.in and add a new line on top of each file to say so.
21821 # So let's grep whole file.
21822 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21823 dirpart=`(dirname "$mf") 2>/dev/null ||
21824$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21825 X"$mf" : 'X\(//\)[^/]' \| \
21826 X"$mf" : 'X\(//\)$' \| \
21827 X"$mf" : 'X\(/\)' \| \
21828 . : '\(.\)' 2>/dev/null ||
21829echo X"$mf" |
21830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21831 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21832 /^X\(\/\/\)$/{ s//\1/; q; }
21833 /^X\(\/\).*/{ s//\1/; q; }
21834 s/.*/./; q'`
21835 else
21836 continue
21837 fi
21838 # Extract the definition of DEPDIR, am__include, and am__quote
21839 # from the Makefile without running `make'.
21840 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21841 test -z "$DEPDIR" && continue
21842 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21843 test -z "am__include" && continue
21844 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21845 # When using ansi2knr, U may be empty or an underscore; expand it
21846 U=`sed -n 's/^U = //p' < "$mf"`
21847 # Find all dependency output files, they are included files with
21848 # $(DEPDIR) in their names. We invoke sed twice because it is the
21849 # simplest approach to changing $(DEPDIR) to its actual value in the
21850 # expansion.
21851 for file in `sed -n "
21852 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21853 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21854 # Make sure the directory exists.
21855 test -f "$dirpart/$file" && continue
21856 fdir=`(dirname "$file") 2>/dev/null ||
21857$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21858 X"$file" : 'X\(//\)[^/]' \| \
21859 X"$file" : 'X\(//\)$' \| \
21860 X"$file" : 'X\(/\)' \| \
21861 . : '\(.\)' 2>/dev/null ||
21862echo X"$file" |
21863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21865 /^X\(\/\/\)$/{ s//\1/; q; }
21866 /^X\(\/\).*/{ s//\1/; q; }
21867 s/.*/./; q'`
21868 { if $as_mkdir_p; then
21869 mkdir -p $dirpart/$fdir
21870 else
21871 as_dir=$dirpart/$fdir
21872 as_dirs=
21873 while test ! -d "$as_dir"; do
21874 as_dirs="$as_dir $as_dirs"
21875 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21876$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21877 X"$as_dir" : 'X\(//\)[^/]' \| \
21878 X"$as_dir" : 'X\(//\)$' \| \
21879 X"$as_dir" : 'X\(/\)' \| \
21880 . : '\(.\)' 2>/dev/null ||
21881echo X"$as_dir" |
21882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21884 /^X\(\/\/\)$/{ s//\1/; q; }
21885 /^X\(\/\).*/{ s//\1/; q; }
21886 s/.*/./; q'`
21887 done
21888 test ! -n "$as_dirs" || mkdir $as_dirs
21889 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21890echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21891 { (exit 1); exit 1; }; }; }
21892
21893 # echo "creating $dirpart/$file"
21894 echo '# dummy' > "$dirpart/$file"
21895 done
21896done
21897 ;;
21898 libtool )
21899
21900 # See if we are running on zsh, and set the options which allow our
21901 # commands through without removal of \ escapes.
21902 if test -n "${ZSH_VERSION+set}" ; then
21903 setopt NO_GLOB_SUBST
21904 fi
21905
21906 cfgfile="${ofile}T"
21907 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21908 $RM "$cfgfile"
21909
21910 cat <<_LT_EOF >> "$cfgfile"
21911#! $SHELL
21912
21913# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21914# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21915# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21916# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21917#
21918# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21919# 2006 Free Software Foundation, Inc.
21920#
21921# This file is part of GNU Libtool:
21922# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21923#
21924# This program is free software; you can redistribute it and/or modify
21925# it under the terms of the GNU General Public License as published by
21926# the Free Software Foundation; either version 2 of the License, or
21927# (at your option) any later version.
21928#
21929# This program is distributed in the hope that it will be useful, but
21930# WITHOUT ANY WARRANTY; without even the implied warranty of
21931# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21932# General Public License for more details.
21933#
21934# You should have received a copy of the GNU General Public License
21935# along with this program; if not, write to the Free Software
21936# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21937#
21938# As a special exception to the GNU General Public License, if you
21939# distribute this file as part of a program that contains a
21940# configuration script generated by Autoconf, you may include it under
21941# the same distribution terms that you use for the rest of that program.
21942
21943# TEST SUITE MARKER ## BEGIN SOURCABLE
21944
21945# The names of the tagged configurations supported by this script.
21946available_tags="CXX "
21947
21948# ### BEGIN LIBTOOL CONFIG
21949
21950# Which release of libtool.m4 was used?
21951macro_version=$macro_version
21952macro_revision=$macro_revision
21953
21954# Whether or not to build shared libraries.
21955build_libtool_libs=$enable_shared
21956
21957# Whether or not to build static libraries.
21958build_old_libs=$enable_static
21959
21960# What type of objects to build.
21961pic_mode=$pic_mode
21962
21963# Whether or not to optimize for fast installation.
21964fast_install=$enable_fast_install
21965
21966# The host system.
21967host_alias=$host_alias
21968host=$host
21969host_os=$host_os
21970
21971# The build system.
21972build_alias=$build_alias
21973build=$build
21974build_os=$build_os
21975
21976# A sed program that does not truncate output.
21977SED=$lt_SED
21978
21979# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21980Xsed="\$SED -e 1s/^X//"
21981
21982# A grep program that handles long lines.
21983GREP=$lt_GREP
21984
21985# An ERE matcher.
21986EGREP=$lt_EGREP
21987
21988# A literal string matcher.
21989FGREP=$lt_FGREP
21990
21991# A BSD- or MS-compatible name lister.
21992NM=$lt_NM
21993
21994# Whether we need soft or hard links.
21995LN_S=$lt_LN_S
21996
21997# What is the maximum length of a command?
21998max_cmd_len=$max_cmd_len
21999
22000# Object file suffix (normally "o").
22001objext=$ac_objext
22002
22003# Executable file suffix (normally "").
22004exeext=$exeext
22005
22006# How to create reloadable object files.
22007reload_flag=$lt_reload_flag
22008reload_cmds=$lt_reload_cmds
22009
22010# Method to check whether dependent libraries are shared objects.
22011deplibs_check_method=$lt_deplibs_check_method
22012
22013# Command to use when deplibs_check_method == "file_magic".
22014file_magic_cmd=$lt_file_magic_cmd
22015
22016# The archiver.
22017AR=$lt_AR
22018AR_FLAGS=$lt_AR_FLAGS
22019
22020# A symbol stripping program.
22021STRIP=$lt_STRIP
22022
22023# Commands used to install an old-style archive.
22024RANLIB=$lt_RANLIB
22025old_postinstall_cmds=$lt_old_postinstall_cmds
22026old_postuninstall_cmds=$lt_old_postuninstall_cmds
22027
22028# A C compiler.
22029LTCC=$lt_CC
22030
22031# LTCC compiler flags.
22032LTCFLAGS=$lt_CFLAGS
22033
22034# Take the output of nm and produce a listing of raw symbols and C names.
22035global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22036
22037# Transform the output of nm in a proper C declaration.
22038global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22039
22040# Transform the output of nm in a C name address pair.
22041global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22042
22043# The name of the directory that contains temporary libtool files.
22044objdir=$objdir
22045
22046# Shell to use when invoking shell scripts.
22047SHELL=$lt_SHELL
22048
22049# An echo program that does not interpret backslashes.
22050ECHO=$lt_ECHO
22051
22052# Used to examine libraries when file_magic_cmd begins with "file".
22053MAGIC_CMD=$MAGIC_CMD
22054
22055# Must we lock files when doing compilation?
22056need_locks=$lt_need_locks
22057
22058# Old archive suffix (normally "a").
22059libext=$libext
22060
22061# Shared library suffix (normally ".so").
22062shrext_cmds=$lt_shrext_cmds
22063
22064# The commands to extract the exported symbol list from a shared archive.
22065extract_expsyms_cmds=$lt_extract_expsyms_cmds
22066
22067# Variables whose values should be saved in libtool wrapper scripts and
22068# restored at link time.
22069variables_saved_for_relink=$lt_variables_saved_for_relink
22070
22071# Do we need the "lib" prefix for modules?
22072need_lib_prefix=$need_lib_prefix
22073
22074# Do we need a version for libraries?
22075need_version=$need_version
22076
22077# Library versioning type.
22078version_type=$version_type
22079
22080# Shared library runtime path variable.
22081runpath_var=$runpath_var
22082
22083# Shared library path variable.
22084shlibpath_var=$shlibpath_var
22085
22086# Is shlibpath searched before the hard-coded library search path?
22087shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22088
22089# Format of library name prefix.
22090libname_spec=$lt_libname_spec
22091
22092# List of archive names. First name is the real one, the rest are links.
22093# The last name is the one that the linker finds with -lNAME
22094library_names_spec=$lt_library_names_spec
22095
22096# The coded name of the library, if different from the real name.
22097soname_spec=$lt_soname_spec
22098
22099# Command to use after installation of a shared archive.
22100postinstall_cmds=$lt_postinstall_cmds
22101
22102# Command to use after uninstallation of a shared archive.
22103postuninstall_cmds=$lt_postuninstall_cmds
22104
22105# Commands used to finish a libtool library installation in a directory.
22106finish_cmds=$lt_finish_cmds
22107
22108# As "finish_cmds", except a single script fragment to be evaled but
22109# not shown.
22110finish_eval=$lt_finish_eval
22111
22112# Whether we should hardcode library paths into libraries.
22113hardcode_into_libs=$hardcode_into_libs
22114
22115# Compile-time system search path for libraries.
22116sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22117
22118# Run-time system search path for libraries.
22119sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22120
22121# Whether dlopen is supported.
22122dlopen_support=$enable_dlopen
22123
22124# Whether dlopen of programs is supported.
22125dlopen_self=$enable_dlopen_self
22126
22127# Whether dlopen of statically linked programs is supported.
22128dlopen_self_static=$enable_dlopen_self_static
22129
22130# Commands to strip libraries.
22131old_striplib=$lt_old_striplib
22132striplib=$lt_striplib
22133
22134# Assembler program.
22135AS=$AS
22136
22137# DLL creation program.
22138DLLTOOL=$DLLTOOL
22139
22140# Object dumper program.
22141OBJDUMP=$OBJDUMP
22142
22143
22144# The linker used to build libraries.
22145LD=$lt_LD
22146
22147# Commands used to build an old-style archive.
22148old_archive_cmds=$lt_old_archive_cmds
22149
22150# A language specific compiler.
22151CC=$lt_compiler
22152
22153# Is the compiler the GNU compiler?
22154with_gcc=$GCC
22155
22156# Compiler flag to turn off builtin functions.
22157no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22158
22159# How to pass a linker flag through the compiler.
22160wl=$lt_lt_prog_compiler_wl
22161
22162# Additional compiler flags for building library objects.
22163pic_flag=$lt_lt_prog_compiler_pic
22164
22165# Compiler flag to prevent dynamic linking.
22166link_static_flag=$lt_lt_prog_compiler_static
22167
22168# Does compiler simultaneously support -c and -o options?
22169compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22170
22171# Whether or not to add -lc for building shared libraries.
22172build_libtool_need_lc=$archive_cmds_need_lc
22173
22174# Whether or not to disallow shared libs when runtime libs are static.
22175allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22176
22177# Compiler flag to allow reflexive dlopens.
22178export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22179
22180# Compiler flag to generate shared objects directly from archives.
22181whole_archive_flag_spec=$lt_whole_archive_flag_spec
22182
22183# Create an old-style archive from a shared archive.
22184old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22185
22186# Create a temporary old-style archive to link instead of a shared archive.
22187old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22188
22189# Commands used to build a shared archive.
22190archive_cmds=$lt_archive_cmds
22191archive_expsym_cmds=$lt_archive_expsym_cmds
22192
22193# Commands used to build a loadable module if different from building
22194# a shared archive.
22195module_cmds=$lt_module_cmds
22196module_expsym_cmds=$lt_module_expsym_cmds
22197
22198# Whether we are building with GNU ld or not.
22199with_gnu_ld=$lt_with_gnu_ld
22200
22201# Flag that allows shared libraries with undefined symbols to be built.
22202allow_undefined_flag=$lt_allow_undefined_flag
22203
22204# Flag that enforces no undefined symbols.
22205no_undefined_flag=$lt_no_undefined_flag
22206
22207# Flag to hardcode \$libdir into a binary during linking.
22208# This must work even if \$libdir does not exist
22209hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22210
22211# If ld is used when linking, flag to hardcode \$libdir into a binary
22212# during linking. This must work even if \$libdir does not exist.
22213hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22214
22215# Whether we need a single "-rpath" flag with a separated argument.
22216hardcode_libdir_separator=$lt_hardcode_libdir_separator
22217
22218# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22219# DIR into the resulting binary.
22220hardcode_direct=$hardcode_direct
22221
22222# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22223# into the resulting binary.
22224hardcode_minus_L=$hardcode_minus_L
22225
22226# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22227# into the resulting binary.
22228hardcode_shlibpath_var=$hardcode_shlibpath_var
22229
22230# Set to "yes" if building a shared library automatically hardcodes DIR
22231# into the library and all subsequent libraries and executables linked
22232# against it.
22233hardcode_automatic=$hardcode_automatic
22234
22235# Set to yes if linker adds runtime paths of dependent libraries
22236# to runtime path list.
22237inherit_rpath=$inherit_rpath
22238
22239# Whether libtool must link a program against all its dependency libraries.
22240link_all_deplibs=$link_all_deplibs
22241
22242# Fix the shell variable \$srcfile for the compiler.
22243fix_srcfile_path=$lt_fix_srcfile_path
22244
22245# Set to "yes" if exported symbols are required.
22246always_export_symbols=$always_export_symbols
22247
22248# The commands to list exported symbols.
22249export_symbols_cmds=$lt_export_symbols_cmds
22250
22251# Symbols that should not be listed in the preloaded symbols.
22252exclude_expsyms=$lt_exclude_expsyms
22253
22254# Symbols that must always be exported.
22255include_expsyms=$lt_include_expsyms
22256
22257# Commands necessary for linking programs (against libraries) with templates.
22258prelink_cmds=$lt_prelink_cmds
22259
22260# Specify filename containing input files.
22261file_list_spec=$lt_file_list_spec
22262
22263# How to hardcode a shared library path into an executable.
22264hardcode_action=$hardcode_action
22265
22266# Dependencies to place before and after the objects being linked to
22267# create a shared library.
22268predep_objects=$lt_predep_objects
22269postdep_objects=$lt_postdep_objects
22270predeps=$lt_predeps
22271postdeps=$lt_postdeps
22272
22273# The library search path used internally by the compiler when linking
22274# a shared library.
22275compiler_lib_search_path=$lt_compiler_lib_search_path
22276
22277# ### END LIBTOOL CONFIG
22278
22279# The HP-UX ksh and POSIX shell print the target directory to stdout
22280# if CDPATH is set.
22281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22282
22283_LT_EOF
22284
22285 case $host_os in
22286 aix3*)
22287 cat <<\_LT_EOF >> "$cfgfile"
22288# AIX sometimes has problems with the GCC collect2 program. For some
22289# reason, if we set the COLLECT_NAMES environment variable, the problems
22290# vanish in a puff of smoke.
22291if test "X${COLLECT_NAMES+set}" != Xset; then
22292 COLLECT_NAMES=
22293 export COLLECT_NAMES
22294fi
22295_LT_EOF
22296 ;;
22297 esac
22298
22299
22300ltmain="$ac_aux_dir/ltmain.sh"
22301
22302
22303 # We use sed instead of cat because bash on DJGPP gets confused if
22304 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22305 # text mode, it properly converts lines to CR/LF. This bash problem
22306 # is reportedly fixed, but why not run on old versions too?
22307 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22308 || (rm -f "$cfgfile"; exit 1)
22309
22310 case $xsi_shell in
22311 yes)
22312 cat << \_LT_EOF >> "$cfgfile"
22313# func_dirname file append nondir_replacement
22314# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22315# otherwise set result to NONDIR_REPLACEMENT.
22316func_dirname ()
22317{
22318 case ${1} in
22319 */*) func_dirname_result="${1%/*}${2}" ;;
22320 * ) func_dirname_result="${3}" ;;
22321 esac
22322}
22323
22324# func_basename file
22325func_basename ()
22326{
22327 func_basename_result="${1##*/}"
22328}
22329
22330# func_stripname prefix suffix name
22331# strip PREFIX and SUFFIX off of NAME.
22332# PREFIX and SUFFIX must not contain globbing or regex special
22333# characters, hashes, percent signs, but SUFFIX may contain a leading
22334# dot (in which case that matches only a dot).
22335func_stripname ()
22336{
22337 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22338 # positional parameters, so assign one to ordinary parameter first.
22339 func_stripname_result=${3}
22340 func_stripname_result=${func_stripname_result#"${1}"}
22341 func_stripname_result=${func_stripname_result%"${2}"}
22342}
22343_LT_EOF
22344 ;;
22345 *) # Bourne compatible functions.
22346 cat << \_LT_EOF >> "$cfgfile"
22347# func_dirname file append nondir_replacement
22348# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22349# otherwise set result to NONDIR_REPLACEMENT.
22350func_dirname ()
22351{
22352 # Extract subdirectory from the argument.
22353 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22354 if test "X$func_dirname_result" = "X${1}"; then
22355 func_dirname_result="${3}"
22356 else
22357 func_dirname_result="$func_dirname_result${2}"
22358 fi
22359}
22360
22361# func_basename file
22362func_basename ()
22363{
22364 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22365}
22366
22367# func_stripname prefix suffix name
22368# strip PREFIX and SUFFIX off of NAME.
22369# PREFIX and SUFFIX must not contain globbing or regex special
22370# characters, hashes, percent signs, but SUFFIX may contain a leading
22371# dot (in which case that matches only a dot).
22372# func_strip_suffix prefix name
22373func_stripname ()
22374{
22375 case ${2} in
22376 .*) func_stripname_result=`$ECHO "X${3}" \
22377 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22378 *) func_stripname_result=`$ECHO "X${3}" \
22379 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22380 esac
22381}
22382_LT_EOF
22383esac
22384
22385
22386 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22387 || (rm -f "$cfgfile"; exit 1)
22388
22389 mv -f "$cfgfile" "$ofile" ||
22390 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22391 chmod +x "$ofile"
22392
22393
22394 cat <<_LT_EOF >> "$ofile"
22395
22396# ### BEGIN LIBTOOL TAG CONFIG: CXX
22397
22398# The linker used to build libraries.
22399LD=$lt_LD_CXX
22400
22401# Commands used to build an old-style archive.
22402old_archive_cmds=$lt_old_archive_cmds_CXX
22403
22404# A language specific compiler.
22405CC=$lt_compiler_CXX
22406
22407# Is the compiler the GNU compiler?
22408with_gcc=$GCC_CXX
22409
22410# Compiler flag to turn off builtin functions.
22411no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22412
22413# How to pass a linker flag through the compiler.
22414wl=$lt_lt_prog_compiler_wl_CXX
22415
22416# Additional compiler flags for building library objects.
22417pic_flag=$lt_lt_prog_compiler_pic_CXX
22418
22419# Compiler flag to prevent dynamic linking.
22420link_static_flag=$lt_lt_prog_compiler_static_CXX
22421
22422# Does compiler simultaneously support -c and -o options?
22423compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22424
22425# Whether or not to add -lc for building shared libraries.
22426build_libtool_need_lc=$archive_cmds_need_lc_CXX
22427
22428# Whether or not to disallow shared libs when runtime libs are static.
22429allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22430
22431# Compiler flag to allow reflexive dlopens.
22432export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22433
22434# Compiler flag to generate shared objects directly from archives.
22435whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22436
22437# Create an old-style archive from a shared archive.
22438old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22439
22440# Create a temporary old-style archive to link instead of a shared archive.
22441old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22442
22443# Commands used to build a shared archive.
22444archive_cmds=$lt_archive_cmds_CXX
22445archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22446
22447# Commands used to build a loadable module if different from building
22448# a shared archive.
22449module_cmds=$lt_module_cmds_CXX
22450module_expsym_cmds=$lt_module_expsym_cmds_CXX
22451
22452# Whether we are building with GNU ld or not.
22453with_gnu_ld=$lt_with_gnu_ld_CXX
22454
22455# Flag that allows shared libraries with undefined symbols to be built.
22456allow_undefined_flag=$lt_allow_undefined_flag_CXX
22457
22458# Flag that enforces no undefined symbols.
22459no_undefined_flag=$lt_no_undefined_flag_CXX
22460
22461# Flag to hardcode \$libdir into a binary during linking.
22462# This must work even if \$libdir does not exist
22463hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22464
22465# If ld is used when linking, flag to hardcode \$libdir into a binary
22466# during linking. This must work even if \$libdir does not exist.
22467hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22468
22469# Whether we need a single "-rpath" flag with a separated argument.
22470hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22471
22472# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22473# DIR into the resulting binary.
22474hardcode_direct=$hardcode_direct_CXX
22475
22476# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22477# into the resulting binary.
22478hardcode_minus_L=$hardcode_minus_L_CXX
22479
22480# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22481# into the resulting binary.
22482hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22483
22484# Set to "yes" if building a shared library automatically hardcodes DIR
22485# into the library and all subsequent libraries and executables linked
22486# against it.
22487hardcode_automatic=$hardcode_automatic_CXX
22488
22489# Set to yes if linker adds runtime paths of dependent libraries
22490# to runtime path list.
22491inherit_rpath=$inherit_rpath_CXX
22492
22493# Whether libtool must link a program against all its dependency libraries.
22494link_all_deplibs=$link_all_deplibs_CXX
22495
22496# Fix the shell variable \$srcfile for the compiler.
22497fix_srcfile_path=$lt_fix_srcfile_path_CXX
22498
22499# Set to "yes" if exported symbols are required.
22500always_export_symbols=$always_export_symbols_CXX
22501
22502# The commands to list exported symbols.
22503export_symbols_cmds=$lt_export_symbols_cmds_CXX
22504
22505# Symbols that should not be listed in the preloaded symbols.
22506exclude_expsyms=$lt_exclude_expsyms_CXX
22507
22508# Symbols that must always be exported.
22509include_expsyms=$lt_include_expsyms_CXX
22510
22511# Commands necessary for linking programs (against libraries) with templates.
22512prelink_cmds=$lt_prelink_cmds_CXX
22513
22514# Specify filename containing input files.
22515file_list_spec=$lt_file_list_spec_CXX
22516
22517# How to hardcode a shared library path into an executable.
22518hardcode_action=$hardcode_action_CXX
22519
22520# Dependencies to place before and after the objects being linked to
22521# create a shared library.
22522predep_objects=$lt_predep_objects_CXX
22523postdep_objects=$lt_postdep_objects_CXX
22524predeps=$lt_predeps_CXX
22525postdeps=$lt_postdeps_CXX
22526
22527# The library search path used internally by the compiler when linking
22528# a shared library.
22529compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22530
22531# ### END LIBTOOL TAG CONFIG: CXX
22532_LT_EOF
22533
22534 ;;
22535 esac
22536done
22537_ACEOF
22538
22539cat >>$CONFIG_STATUS <<\_ACEOF
22540
22541{ (exit 0); exit 0; }
22542_ACEOF
22543chmod +x $CONFIG_STATUS
22544ac_clean_files=$ac_clean_files_save
22545
22546
22547# configure is writing to config.log, and then calls config.status.
22548# config.status does its own redirection, appending to config.log.
22549# Unfortunately, on DOS this fails, as config.log is still kept open
22550# by configure, so config.status won't be able to write to it; its
22551# output is simply discarded. So we exec the FD to /dev/null,
22552# effectively closing config.log, so it can be properly (re)opened and
22553# appended to by config.status. When coming back to configure, we
22554# need to make the FD available again.
22555if test "$no_create" != yes; then
22556 ac_cs_success=:
22557 ac_config_status_args=
22558 test "$silent" = yes &&
22559 ac_config_status_args="$ac_config_status_args --quiet"
22560 exec 5>/dev/null
22561 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22562 exec 5>>config.log
22563 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22564 # would make configure fail if this is the last instruction.
22565 $ac_cs_success || { (exit 1); exit 1; }
22566fi
22567
22568
22569
22570echo ""
22571echo "Libtiff is now configured for ${host}"
22572echo ""
22573echo " Installation directory: ${prefix}"
22574echo " Documentation directory: ${LIBTIFF_DOCDIR}"
22575echo " C compiler: ${CC} ${CFLAGS}"
22576echo " C++ compiler: ${CXX} ${CXXFLAGS}"
22577echo " Enable runtime linker paths: ${HAVE_RPATH}"
22578echo " Support Microsoft Document Imaging: ${HAVE_MDI}"
22579echo ""
22580echo " Support for internal codecs:"
22581echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}"
22582echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}"
22583echo " LZW algorithm: ${HAVE_LZW}"
22584echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}"
22585echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}"
22586echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}"
22587echo ""
22588echo " Support for external codecs:"
22589echo " ZLIB support: ${HAVE_ZLIB}"
22590echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}"
22591echo " JPEG support: ${HAVE_JPEG}"
22592echo " Old JPEG support: ${HAVE_OJPEG}"
22593echo ""
22594echo " C++ support: ${HAVE_CXX}"
22595echo ""
22596echo " OpenGL support: ${HAVE_OPENGL}"
22597echo ""
22598