]> git.saurik.com Git - wxWidgets.git/blob - src/tiff/configure
avoid duplicating wxWindow::HandleCommand() in wxFrame, only handle the commands...
[wxWidgets.git] / src / tiff / configure
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
15 if 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+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for 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
45 do
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
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo 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.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if 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
99 fi
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
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
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
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
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
154 done
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
189 case `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= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if 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
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_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.
233 as_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.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$lt_ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255 esac
256
257 ECHO=${lt_ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $ECHO works!
266 :
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if 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
279 fi
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
285 if 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
383 fi
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.
387 lt_ECHO=$ECHO
388 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
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.
398 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
399
400 exec 6>&1
401
402 #
403 # Initializations.
404 #
405 ac_default_prefix=/usr/local
406 ac_config_libobj_dir=.
407 cross_compiling=no
408 subdirs=
409 MFLAGS=
410 MAKEFLAGS=
411 SHELL=${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.
419 PACKAGE_NAME='LibTIFF Software'
420 PACKAGE_TARNAME='tiff'
421 PACKAGE_VERSION='3.8.2'
422 PACKAGE_STRING='LibTIFF Software 3.8.2'
423 PACKAGE_BUGREPORT='tiff@lists.maptools.org'
424
425 # Factoring default headers for most tests.
426 ac_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
462 ac_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'
463 ac_subst_files=''
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_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.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
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
777 Try \`$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
800 done
801
802 if 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; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
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
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822 do
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
829 done
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.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if 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
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if 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 ||
865 echo 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
875 else
876 ac_srcdir_defaulted=no
877 fi
878 if 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
886 fi
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; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923 ac_env_CXX_set=${CXX+set}
924 ac_env_CXX_value=$CXX
925 ac_cv_env_CXX_set=${CXX+set}
926 ac_cv_env_CXX_value=$CXX
927 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928 ac_env_CXXFLAGS_value=$CXXFLAGS
929 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931 ac_env_CXXCPP_set=${CXXCPP+set}
932 ac_env_CXXCPP_value=$CXXCPP
933 ac_cv_env_CXXCPP_set=${CXXCPP+set}
934 ac_cv_env_CXXCPP_value=$CXXCPP
935
936 #
937 # Report the --help message.
938 #
939 if 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
945 Usage: $0 [OPTION]... [VAR=VALUE]...
946
947 To assign environment variables (e.g., CC, CFLAGS...), specify them as
948 VAR=VALUE. See below for descriptions of some of the useful variables.
949
950 Defaults for the options are specified in brackets.
951
952 Configuration:
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
966 Installation 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
972 By default, \`make install' will install all the files in
973 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
974 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
975 for instance \`--prefix=\$HOME'.
976
977 For better control, use the options below.
978
979 Fine 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
996 Program 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
1001 X features:
1002 --x-includes=DIR X include files are in DIR
1003 --x-libraries=DIR X library files are in DIR
1004
1005 System 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
1010 fi
1011
1012 if 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
1018 Optional 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
1067 Optional 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
1087 Some 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
1099 Use these variables to override the choices made by `configure' or to help
1100 it to find libraries and programs with nonstandard names/locations.
1101
1102 Report bugs to <tiff@lists.maptools.org>.
1103 _ACEOF
1104 fi
1105
1106 if 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
1113 if 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'`
1117 else
1118 ac_dir_suffix= ac_top_builddir=
1119 fi
1120
1121 case $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 ;;
1135 esac
1136
1137 # Do not use `cd foo && pwd` to compute absolute paths, because
1138 # the directories may not exist.
1139 case `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;;
1147 esac
1148 case $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;;
1156 esac
1157 case $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;;
1165 esac
1166 case $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;;
1174 esac
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
1193 fi
1194
1195 test -n "$ac_init_help" && exit 0
1196 if $ac_init_version; then
1197 cat <<\_ACEOF
1198 LibTIFF Software configure 3.8.2
1199 generated by GNU Autoconf 2.59
1200
1201 Copyright (C) 2003 Free Software Foundation, Inc.
1202 This configure script is free software; the Free Software Foundation
1203 gives unlimited permission to copy, distribute and modify it.
1204 _ACEOF
1205 exit 0
1206 fi
1207 exec 5>config.log
1208 cat >&5 <<_ACEOF
1209 This file contains any messages produced by compilers while
1210 running configure, to aid debugging if configure makes a mistake.
1211
1212 It was created by LibTIFF Software $as_me 3.8.2, which was
1213 generated by GNU Autoconf 2.59. Invocation command line was
1214
1215 $ $0 $@
1216
1217 _ACEOF
1218 {
1219 cat <<_ASUNAME
1220 ## --------- ##
1221 ## Platform. ##
1222 ## --------- ##
1223
1224 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1225 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1226 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1227 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1228 uname -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`
1236 hostinfo = `(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
1243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1244 for as_dir in $PATH
1245 do
1246 IFS=$as_save_IFS
1247 test -z "$as_dir" && as_dir=.
1248 echo "PATH: $as_dir"
1249 done
1250
1251 } >&5
1252
1253 cat >&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.
1268 ac_configure_args=
1269 ac_configure_args0=
1270 ac_configure_args1=
1271 ac_sep=
1272 ac_must_keep_next=false
1273 for ac_pass in 1 2
1274 do
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
1310 done
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.
1319 trap '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
1393 for ac_signal in 1 2 13 15; do
1394 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1395 done
1396 ac_signal=0
1397
1398 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1399 rm -rf conftest* confdefs.h
1400 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1401 echo >confdefs.h
1402
1403 # Predefined preprocessor variables.
1404
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_NAME "$PACKAGE_NAME"
1407 _ACEOF
1408
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1412 _ACEOF
1413
1414
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1417 _ACEOF
1418
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_STRING "$PACKAGE_STRING"
1422 _ACEOF
1423
1424
1425 cat >>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.
1432 if 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
1438 fi
1439 for 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
1442 echo "$as_me: loading site script $ac_site_file" >&6;}
1443 sed 's/^/| /' "$ac_site_file" >&5
1444 . "$ac_site_file"
1445 fi
1446 done
1447
1448 if 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
1453 echo "$as_me: loading cache $cache_file" >&6;}
1454 case $cache_file in
1455 [\\/]* | ?:[\\/]* ) . $cache_file;;
1456 *) . ./$cache_file;;
1457 esac
1458 fi
1459 else
1460 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1461 echo "$as_me: creating cache $cache_file" >&6;}
1462 >$cache_file
1463 fi
1464
1465 # Check that the precious variables saved in the cache have kept the same
1466 # value.
1467 ac_cache_corrupted=false
1468 for 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
1477 echo "$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
1481 echo "$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
1487 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1488 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1489 echo "$as_me: former value: $ac_old_val" >&2;}
1490 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1491 echo "$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
1507 done
1508 if $ac_cache_corrupted; then
1509 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1510 echo "$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
1512 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1513 { (exit 1); exit 1; }; }
1514 fi
1515
1516 ac_ext=c
1517 ac_cpp='$CPP $CPPFLAGS'
1518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1520 ac_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
1548 ac_aux_dir=
1549 for 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
1563 done
1564 if test -z "$ac_aux_dir"; then
1565 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1566 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1567 { (exit 1); exit 1; }; }
1568 fi
1569 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1570 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1571 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1572
1573 case m4 in
1574 [\\/]* | ?:[\\/]* ) ac_macro_dir=m4 ;;
1575 *) ac_macro_dir=$srcdir/m4 ;;
1576 esac
1577 if test -d "$ac_macro_dir"; then :
1578 else
1579 { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5
1580 echo "$as_me: error: cannot find macro directory \`m4'" >&2;}
1581 { (exit 1); exit 1; }; }
1582 fi
1583
1584 ac_ext=c
1585 ac_cpp='$CPP $CPPFLAGS'
1586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588 ac_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
1594 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1595 { (exit 1); exit 1; }; }
1596
1597 echo "$as_me:$LINENO: checking build system type" >&5
1598 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1599 if test "${ac_cv_build+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 ac_cv_build_alias=$build_alias
1603 test -z "$ac_cv_build_alias" &&
1604 ac_cv_build_alias=`$ac_config_guess`
1605 test -z "$ac_cv_build_alias" &&
1606 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1607 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1608 { (exit 1); exit 1; }; }
1609 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614 fi
1615 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1616 echo "${ECHO_T}$ac_cv_build" >&6
1617 build=$ac_cv_build
1618 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623 echo "$as_me:$LINENO: checking host system type" >&5
1624 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1625 if test "${ac_cv_host+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 ac_cv_host_alias=$host_alias
1629 test -z "$ac_cv_host_alias" &&
1630 ac_cv_host_alias=$ac_cv_build_alias
1631 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1633 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636 fi
1637 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1638 echo "${ECHO_T}$ac_cv_host" >&6
1639 host=$ac_cv_host
1640 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645 echo "$as_me:$LINENO: checking target system type" >&5
1646 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1647 if test "${ac_cv_target+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650 ac_cv_target_alias=$target_alias
1651 test "x$ac_cv_target_alias" = "x" &&
1652 ac_cv_target_alias=$ac_cv_host_alias
1653 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1654 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1655 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1656 { (exit 1); exit 1; }; }
1657
1658 fi
1659 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1660 echo "${ECHO_T}$ac_cv_target" >&6
1661 target=$ac_cv_target
1662 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1663 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1664 target_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.
1669 test -n "$target_alias" &&
1670 test "$program_prefix$program_suffix$program_transform_name" = \
1671 NONENONEs,x,x, &&
1672 program_prefix=${target_alias}-
1673
1674 am__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.
1688 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1689 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1690 if test -z "$INSTALL"; then
1691 if test "${ac_cv_path_install+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1696 do
1697 IFS=$as_save_IFS
1698 test -z "$as_dir" && as_dir=.
1699 # Account for people who put trailing slashes in PATH elements.
1700 case $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 ;;
1728 esac
1729 done
1730
1731
1732 fi
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
1742 fi
1743 echo "$as_me:$LINENO: result: $INSTALL" >&5
1744 echo "${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.
1748 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1749
1750 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1751
1752 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1753
1754 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1755 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1756 # Just in case
1757 sleep 1
1758 echo 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).
1764 if (
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
1779 alias in your environment" >&5
1780 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1781 alias in your environment" >&2;}
1782 { (exit 1); exit 1; }; }
1783 fi
1784
1785 test "$2" = conftest.file
1786 )
1787 then
1788 # Ok.
1789 :
1790 else
1791 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1792 Check your system clock" >&5
1793 echo "$as_me: error: newly created file is older than distributed files!
1794 Check your system clock" >&2;}
1795 { (exit 1); exit 1; }; }
1796 fi
1797 echo "$as_me:$LINENO: result: yes" >&5
1798 echo "${ECHO_T}yes" >&6
1799 test "$program_prefix" != NONE &&
1800 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1801 # Use a double $ so make ignores it.
1802 test "$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.
1806 cat <<\_ACEOF >conftest.sed
1807 s/[\\$]/&&/g;s/;s,x,x,$//
1808 _ACEOF
1809 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1810 rm conftest.sed
1811
1812 # expand $ac_aux_dir to an absolute path
1813 am_aux_dir=`cd $ac_aux_dir && pwd`
1814
1815 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1816 # Use eval to expand $SHELL
1817 if eval "$MISSING --run true"; then
1818 am_missing_run="$MISSING --run "
1819 else
1820 am_missing_run=
1821 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1822 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1823 fi
1824
1825 if 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 --'
1841 else
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
1856 fi
1857
1858 for ac_prog in gawk mawk nawk awk
1859 do
1860 # Extract the first word of "$ac_prog", so it can be a program name with args.
1861 set dummy $ac_prog; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_AWK+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867 if test -n "$AWK"; then
1868 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1869 else
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1872 do
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
1881 done
1882 done
1883
1884 fi
1885 fi
1886 AWK=$ac_cv_prog_AWK
1887 if test -n "$AWK"; then
1888 echo "$as_me:$LINENO: result: $AWK" >&5
1889 echo "${ECHO_T}$AWK" >&6
1890 else
1891 echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1893 fi
1894
1895 test -n "$AWK" && break
1896 done
1897
1898 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1899 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1900 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1901 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904 cat >conftest.make <<\_ACEOF
1905 all:
1906 @echo 'ac_maketemp="$(MAKE)"'
1907 _ACEOF
1908 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1909 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1910 if test -n "$ac_maketemp"; then
1911 eval ac_cv_prog_make_${ac_make}_set=yes
1912 else
1913 eval ac_cv_prog_make_${ac_make}_set=no
1914 fi
1915 rm -f conftest.make
1916 fi
1917 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1918 echo "$as_me:$LINENO: result: yes" >&5
1919 echo "${ECHO_T}yes" >&6
1920 SET_MAKE=
1921 else
1922 echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6
1924 SET_MAKE="MAKE=${MAKE-make}"
1925 fi
1926
1927 rm -rf .tst 2>/dev/null
1928 mkdir .tst 2>/dev/null
1929 if test -d .tst; then
1930 am__leading_dot=.
1931 else
1932 am__leading_dot=_
1933 fi
1934 rmdir .tst 2>/dev/null
1935
1936 # test to see if srcdir already configured
1937 if 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
1940 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1941 { (exit 1); exit 1; }; }
1942 fi
1943
1944 # test whether we have cygpath
1945 if 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
1951 fi
1952
1953
1954 # Define the identity of the package.
1955 PACKAGE='tiff'
1956 VERSION='3.8.2'
1957
1958
1959 cat >>confdefs.h <<_ACEOF
1960 #define PACKAGE "$PACKAGE"
1961 _ACEOF
1962
1963
1964 cat >>confdefs.h <<_ACEOF
1965 #define VERSION "$VERSION"
1966 _ACEOF
1967
1968 # Some tools Automake needs.
1969
1970 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1971
1972
1973 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1974
1975
1976 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1977
1978
1979 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1980
1981
1982 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1983
1984 install_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.
1990 if 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.
1993 set dummy ${ac_tool_prefix}strip; ac_word=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_STRIP+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 if test -n "$STRIP"; then
2000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
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
2013 done
2014 done
2015
2016 fi
2017 fi
2018 STRIP=$ac_cv_prog_STRIP
2019 if test -n "$STRIP"; then
2020 echo "$as_me:$LINENO: result: $STRIP" >&5
2021 echo "${ECHO_T}$STRIP" >&6
2022 else
2023 echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2025 fi
2026
2027 fi
2028 if 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.
2031 set dummy strip; ac_word=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037 if test -n "$ac_ct_STRIP"; then
2038 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2042 do
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
2051 done
2052 done
2053
2054 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2055 fi
2056 fi
2057 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2058 if test -n "$ac_ct_STRIP"; then
2059 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2060 echo "${ECHO_T}$ac_ct_STRIP" >&6
2061 else
2062 echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2064 fi
2065
2066 STRIP=$ac_ct_STRIP
2067 else
2068 STRIP="$ac_cv_prog_STRIP"
2069 fi
2070
2071 fi
2072 INSTALL_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
2078 AMTAR=${AMTAR-"${am_missing_run}tar"}
2079
2080 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2081
2082
2083
2084
2085
2086 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2087 echo $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.
2089 if test "${enable_maintainer_mode+set}" = set; then
2090 enableval="$enable_maintainer_mode"
2091 USE_MAINTAINER_MODE=$enableval
2092 else
2093 USE_MAINTAINER_MODE=no
2094 fi;
2095 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2096 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2097
2098
2099 if test $USE_MAINTAINER_MODE = yes; then
2100 MAINTAINER_MODE_TRUE=
2101 MAINTAINER_MODE_FALSE='#'
2102 else
2103 MAINTAINER_MODE_TRUE='#'
2104 MAINTAINER_MODE_FALSE=
2105 fi
2106
2107 MAINT=$MAINTAINER_MODE_TRUE
2108
2109
2110
2111 LIBTIFF_MAJOR_VERSION=3
2112 LIBTIFF_MINOR_VERSION=8
2113 LIBTIFF_MICRO_VERSION=2
2114 LIBTIFF_ALPHA_VERSION=
2115 LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
2116 LIBTIFF_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.
2122 case "$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 ;;
2129 esac
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139 ac_ext=c
2140 ac_cpp='$CPP $CPPFLAGS'
2141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2144 if 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.
2146 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2147 echo "$as_me:$LINENO: checking for $ac_word" >&5
2148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2149 if test "${ac_cv_prog_CC+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test.
2154 else
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2157 do
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
2166 done
2167 done
2168
2169 fi
2170 fi
2171 CC=$ac_cv_prog_CC
2172 if test -n "$CC"; then
2173 echo "$as_me:$LINENO: result: $CC" >&5
2174 echo "${ECHO_T}$CC" >&6
2175 else
2176 echo "$as_me:$LINENO: result: no" >&5
2177 echo "${ECHO_T}no" >&6
2178 fi
2179
2180 fi
2181 if 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.
2184 set dummy gcc; ac_word=$2
2185 echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190 if test -n "$ac_ct_CC"; then
2191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2192 else
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2195 do
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
2204 done
2205 done
2206
2207 fi
2208 fi
2209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2210 if test -n "$ac_ct_CC"; then
2211 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2212 echo "${ECHO_T}$ac_ct_CC" >&6
2213 else
2214 echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6
2216 fi
2217
2218 CC=$ac_ct_CC
2219 else
2220 CC="$ac_cv_prog_CC"
2221 fi
2222
2223 if 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.
2226 set dummy ${ac_tool_prefix}cc; ac_word=$2
2227 echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229 if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
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
2246 done
2247 done
2248
2249 fi
2250 fi
2251 CC=$ac_cv_prog_CC
2252 if test -n "$CC"; then
2253 echo "$as_me:$LINENO: result: $CC" >&5
2254 echo "${ECHO_T}$CC" >&6
2255 else
2256 echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6
2258 fi
2259
2260 fi
2261 if 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.
2264 set dummy cc; ac_word=$2
2265 echo "$as_me:$LINENO: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2267 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270 if test -n "$ac_ct_CC"; then
2271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2272 else
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2275 do
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
2284 done
2285 done
2286
2287 fi
2288 fi
2289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2290 if test -n "$ac_ct_CC"; then
2291 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2292 echo "${ECHO_T}$ac_ct_CC" >&6
2293 else
2294 echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6
2296 fi
2297
2298 CC=$ac_ct_CC
2299 else
2300 CC="$ac_cv_prog_CC"
2301 fi
2302
2303 fi
2304 if test -z "$CC"; then
2305 # Extract the first word of "cc", so it can be a program name with args.
2306 set dummy cc; ac_word=$2
2307 echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2309 if test "${ac_cv_prog_CC+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312 if test -n "$CC"; then
2313 ac_cv_prog_CC="$CC" # Let the user override the test.
2314 else
2315 ac_prog_rejected=no
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2318 do
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
2331 done
2332 done
2333
2334 if 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
2345 fi
2346 fi
2347 fi
2348 CC=$ac_cv_prog_CC
2349 if test -n "$CC"; then
2350 echo "$as_me:$LINENO: result: $CC" >&5
2351 echo "${ECHO_T}$CC" >&6
2352 else
2353 echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6
2355 fi
2356
2357 fi
2358 if 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.
2363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2364 echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2366 if test "${ac_cv_prog_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$CC" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
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
2383 done
2384 done
2385
2386 fi
2387 fi
2388 CC=$ac_cv_prog_CC
2389 if test -n "$CC"; then
2390 echo "$as_me:$LINENO: result: $CC" >&5
2391 echo "${ECHO_T}$CC" >&6
2392 else
2393 echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6
2395 fi
2396
2397 test -n "$CC" && break
2398 done
2399 fi
2400 if test -z "$CC"; then
2401 ac_ct_CC=$CC
2402 for ac_prog in cl
2403 do
2404 # Extract the first word of "$ac_prog", so it can be a program name with args.
2405 set dummy $ac_prog; ac_word=$2
2406 echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411 if test -n "$ac_ct_CC"; then
2412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
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
2425 done
2426 done
2427
2428 fi
2429 fi
2430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2431 if test -n "$ac_ct_CC"; then
2432 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2433 echo "${ECHO_T}$ac_ct_CC" >&6
2434 else
2435 echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6
2437 fi
2438
2439 test -n "$ac_ct_CC" && break
2440 done
2441
2442 CC=$ac_ct_CC
2443 fi
2444
2445 fi
2446
2447
2448 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2449 See \`config.log' for more details." >&5
2450 echo "$as_me: error: no acceptable C compiler found in \$PATH
2451 See \`config.log' for more details." >&2;}
2452 { (exit 1); exit 1; }; }
2453
2454 # Provide some information about the compiler.
2455 echo "$as_me:$LINENO:" \
2456 "checking for C compiler version" >&5
2457 ac_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
2474 cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h. */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2480
2481 int
2482 main ()
2483 {
2484
2485 ;
2486 return 0;
2487 }
2488 _ACEOF
2489 ac_clean_files_save=$ac_clean_files
2490 ac_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.
2494 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2495 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2496 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2497 if { (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.
2508 ac_cv_exeext=
2509 # b.out is created by i960 compilers.
2510 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2511 do
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
2533 done
2534 else
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2539 See \`config.log' for more details." >&5
2540 echo "$as_me: error: C compiler cannot create executables
2541 See \`config.log' for more details." >&2;}
2542 { (exit 77); exit 77; }; }
2543 fi
2544
2545 ac_exeext=$ac_cv_exeext
2546 echo "$as_me:$LINENO: result: $ac_file" >&5
2547 echo "${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.
2551 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2552 echo $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.
2555 if 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.
2568 If you meant to cross compile, use \`--host'.
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot run C compiled programs.
2571 If you meant to cross compile, use \`--host'.
2572 See \`config.log' for more details." >&2;}
2573 { (exit 1); exit 1; }; }
2574 fi
2575 fi
2576 fi
2577 echo "$as_me:$LINENO: result: yes" >&5
2578 echo "${ECHO_T}yes" >&6
2579
2580 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2581 ac_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.
2584 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2585 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2586 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2587 echo "${ECHO_T}$cross_compiling" >&6
2588
2589 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2590 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2591 if { (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'.
2600 for 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
2609 done
2610 else
2611 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2612 See \`config.log' for more details." >&5
2613 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2614 See \`config.log' for more details." >&2;}
2615 { (exit 1); exit 1; }; }
2616 fi
2617
2618 rm -f conftest$ac_cv_exeext
2619 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2620 echo "${ECHO_T}$ac_cv_exeext" >&6
2621
2622 rm -f conftest.$ac_ext
2623 EXEEXT=$ac_cv_exeext
2624 ac_exeext=$EXEEXT
2625 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2626 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2627 if test "${ac_cv_objext+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630 cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h. */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2636
2637 int
2638 main ()
2639 {
2640
2641 ;
2642 return 0;
2643 }
2644 _ACEOF
2645 rm -f conftest.o conftest.obj
2646 if { (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
2657 done
2658 else
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2663 See \`config.log' for more details." >&5
2664 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2665 See \`config.log' for more details." >&2;}
2666 { (exit 1); exit 1; }; }
2667 fi
2668
2669 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2670 fi
2671 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2672 echo "${ECHO_T}$ac_cv_objext" >&6
2673 OBJEXT=$ac_cv_objext
2674 ac_objext=$OBJEXT
2675 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2676 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2677 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680 cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h. */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2686
2687 int
2688 main ()
2689 {
2690 #ifndef __GNUC__
2691 choke me
2692 #endif
2693
2694 ;
2695 return 0;
2696 }
2697 _ACEOF
2698 rm -f conftest.$ac_objext
2699 if { (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
2720 else
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724 ac_compiler_gnu=no
2725 fi
2726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2728
2729 fi
2730 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2731 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2732 GCC=`test $ac_compiler_gnu = yes && echo yes`
2733 ac_test_CFLAGS=${CFLAGS+set}
2734 ac_save_CFLAGS=$CFLAGS
2735 CFLAGS="-g"
2736 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2737 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2738 if test "${ac_cv_prog_cc_g+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741 cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h. */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2747
2748 int
2749 main ()
2750 {
2751
2752 ;
2753 return 0;
2754 }
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (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
2778 else
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 ac_cv_prog_cc_g=no
2783 fi
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785 fi
2786 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2788 if test "$ac_test_CFLAGS" = set; then
2789 CFLAGS=$ac_save_CFLAGS
2790 elif 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
2796 else
2797 if test "$GCC" = yes; then
2798 CFLAGS="-O2"
2799 else
2800 CFLAGS=
2801 fi
2802 fi
2803 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2804 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2805 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808 ac_cv_prog_cc_stdc=no
2809 ac_save_CC=$CC
2810 cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h. */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>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. */
2821 struct buf { int x; };
2822 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2823 static char *e (p, i)
2824 char **p;
2825 int i;
2826 {
2827 return p[i];
2828 }
2829 static 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. */
2846 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2847
2848 int test (int i, double x);
2849 struct s1 {int (*f) (int a);};
2850 struct s2 {int (*f) (double a);};
2851 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2852 int argc;
2853 char **argv;
2854 int
2855 main ()
2856 {
2857 return 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__
2869 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2870 do
2871 CC="$ac_save_CC $ac_arg"
2872 rm -f conftest.$ac_objext
2873 if { (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
2894 break
2895 else
2896 echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2898
2899 fi
2900 rm -f conftest.err conftest.$ac_objext
2901 done
2902 rm -f conftest.$ac_ext conftest.$ac_objext
2903 CC=$ac_save_CC
2904
2905 fi
2906
2907 case "x$ac_cv_prog_cc_stdc" in
2908 x|xno)
2909 echo "$as_me:$LINENO: result: none needed" >&5
2910 echo "${ECHO_T}none needed" >&6 ;;
2911 *)
2912 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2913 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2914 CC="$CC $ac_cv_prog_cc_stdc" ;;
2915 esac
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.
2921 cat >conftest.$ac_ext <<_ACEOF
2922 #ifndef __cplusplus
2923 choke me
2924 #endif
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (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);'
2954 do
2955 cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h. */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2961 $ac_declaration
2962 #include <stdlib.h>
2963 int
2964 main ()
2965 {
2966 exit (42);
2967 ;
2968 return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (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 :
2993 else
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997 continue
2998 fi
2999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3000 cat >conftest.$ac_ext <<_ACEOF
3001 /* confdefs.h. */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3006 $ac_declaration
3007 int
3008 main ()
3009 {
3010 exit (42);
3011 ;
3012 return 0;
3013 }
3014 _ACEOF
3015 rm -f conftest.$ac_objext
3016 if { (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
3037 else
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3040
3041 fi
3042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3043 done
3044 rm -f conftest*
3045 if test -n "$ac_declaration"; then
3046 echo '#ifdef __cplusplus' >>confdefs.h
3047 echo $ac_declaration >>confdefs.h
3048 echo '#endif' >>confdefs.h
3049 fi
3050
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 fi
3056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057 ac_ext=c
3058 ac_cpp='$CPP $CPPFLAGS'
3059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062 DEPDIR="${am__leading_dot}deps"
3063
3064 ac_config_commands="$ac_config_commands depfiles"
3065
3066
3067 am_make=${MAKE-make}
3068 cat > confinc << 'END'
3069 am__doit:
3070 @echo done
3071 .PHONY: am__doit
3072 END
3073 # If we don't find an include directive, just comment out the code.
3074 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3075 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3076 am__include="#"
3077 am__quote=
3078 _am_result=none
3079 # First try GNU make style include.
3080 echo "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'.
3086 if 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
3090 fi
3091 # Now try BSD make style include.
3092 if 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
3099 fi
3100
3101
3102 echo "$as_me:$LINENO: result: $_am_result" >&5
3103 echo "${ECHO_T}$_am_result" >&6
3104 rm -f confinc confmf
3105
3106 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3107 if test "${enable_dependency_tracking+set}" = set; then
3108 enableval="$enable_dependency_tracking"
3109
3110 fi;
3111 if test "x$enable_dependency_tracking" != xno; then
3112 am_depcomp="$ac_aux_dir/depcomp"
3113 AMDEPBACKSLASH='\'
3114 fi
3115
3116
3117 if test "x$enable_dependency_tracking" != xno; then
3118 AMDEP_TRUE=
3119 AMDEP_FALSE='#'
3120 else
3121 AMDEP_TRUE='#'
3122 AMDEP_FALSE=
3123 fi
3124
3125
3126
3127
3128 depcc="$CC" am_compiler_list=
3129
3130 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3131 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3132 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
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
3215 else
3216 am_cv_CC_dependencies_compiler_type=none
3217 fi
3218
3219 fi
3220 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3221 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3222 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3223
3224
3225
3226 if
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='#'
3231 else
3232 am__fastdepCC_TRUE='#'
3233 am__fastdepCC_FALSE=
3234 fi
3235
3236
3237 if test "x$CC" != xcc; then
3238 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3239 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3240 else
3241 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3242 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3243 fi
3244 set dummy $CC; ac_cc=`echo $2 |
3245 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3246 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3255
3256 int
3257 main ()
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.
3267 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3268 if { (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); };
3278 then
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
3308 else
3309 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3310 fi
3311 rm -f conftest*
3312
3313 fi
3314 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3315 echo "$as_me:$LINENO: result: yes" >&5
3316 echo "${ECHO_T}yes" >&6
3317 else
3318 echo "$as_me:$LINENO: result: no" >&5
3319 echo "${ECHO_T}no" >&6
3320
3321 cat >>confdefs.h <<\_ACEOF
3322 #define NO_MINUS_C_MINUS_O 1
3323 _ACEOF
3324
3325 fi
3326
3327 # FIXME: we rely on the cache variable name because
3328 # there is no other way.
3329 set dummy $CC
3330 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3331 if 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"
3338 fi
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
3349 echo $ECHO_N "checking $msg... $ECHO_C" >&6
3350 if test "${vl_cv_prog_cc_warnings+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353
3354 if test -n "$CC"; then
3355 cat > conftest.c <<EOF
3356 int main(int argc, char **argv) { return 0; }
3357 EOF
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
3439 fi
3440 echo "$as_me:$LINENO: result: $vl_cv_prog_cc_warnings" >&5
3441 echo "${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.
3457 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3458 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3459 if test -z "$INSTALL"; then
3460 if test "${ac_cv_path_install+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3465 do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 # Account for people who put trailing slashes in PATH elements.
3469 case $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 ;;
3497 esac
3498 done
3499
3500
3501 fi
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
3511 fi
3512 echo "$as_me:$LINENO: result: $INSTALL" >&5
3513 echo "${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.
3517 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3518
3519 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3520
3521 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3522
3523 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3524 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3525 LN_S=$as_ln_s
3526 if test "$LN_S" = "ln -s"; then
3527 echo "$as_me:$LINENO: result: yes" >&5
3528 echo "${ECHO_T}yes" >&6
3529 else
3530 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3531 echo "${ECHO_T}no, using $LN_S" >&6
3532 fi
3533
3534
3535
3536 macro_version='2.1a'
3537 macro_revision='1.2248'
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550 ltmain="$ac_aux_dir/ltmain.sh"
3551
3552 # Set options
3553
3554 enable_dlopen=no
3555
3556
3557 enable_win32_dll=no
3558
3559
3560 # Check whether --enable-shared or --disable-shared was given.
3561 if 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
3580 else
3581 enable_shared=yes
3582 fi;
3583
3584
3585
3586
3587
3588
3589
3590
3591 # Check whether --enable-static or --disable-static was given.
3592 if 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
3611 else
3612 enable_static=yes
3613 fi;
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623 # Check whether --with-pic or --without-pic was given.
3624 if test "${with_pic+set}" = set; then
3625 withval="$with_pic"
3626 pic_mode="$withval"
3627 else
3628 pic_mode=default
3629 fi;
3630
3631 test -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.
3640 if 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
3659 else
3660 enable_fast_install=yes
3661 fi;
3662
3663
3664
3665
3666
3667
3668
3669
3670 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3671 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3672 if test "${lt_cv_path_SED+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
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.
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
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
3689 done
3690 lt_ac_max=0
3691 lt_ac_count=0
3692 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3693 # along with /bin/sed that truncates output.
3694 for 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
3719 done
3720
3721 fi
3722
3723 SED=$lt_cv_path_SED
3724
3725 echo "$as_me:$LINENO: result: $SED" >&5
3726 echo "${ECHO_T}$SED" >&6
3727
3728 test -z "$SED" && SED=sed
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740 echo "$as_me:$LINENO: checking for egrep" >&5
3741 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3742 if test "${ac_cv_prog_egrep+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
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
3749 fi
3750 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3751 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3752 EGREP=$ac_cv_prog_egrep
3753
3754
3755 echo "$as_me:$LINENO: checking for fgrep" >&5
3756 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3757 if test "${ac_cv_prog_fgrep+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
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
3764 fi
3765 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3766 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3767 FGREP=$ac_cv_prog_fgrep
3768
3769
3770 test -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.
3791 if test "${with_gnu_ld+set}" = set; then
3792 withval="$with_gnu_ld"
3793 test "$withval" = no || with_gnu_ld=yes
3794 else
3795 with_gnu_ld=no
3796 fi;
3797 ac_prog=ld
3798 if 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
3801 echo $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
3829 elif test "$with_gnu_ld" = yes; then
3830 echo "$as_me:$LINENO: checking for GNU ld" >&5
3831 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3832 else
3833 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3834 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3835 fi
3836 if test "${lt_cv_path_LD+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
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"
3860 else
3861 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3862 fi
3863 fi
3864
3865 LD="$lt_cv_path_LD"
3866 if test -n "$LD"; then
3867 echo "$as_me:$LINENO: result: $LD" >&5
3868 echo "${ECHO_T}$LD" >&6
3869 else
3870 echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3872 fi
3873 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3874 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3875 { (exit 1); exit 1; }; }
3876 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3877 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3878 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3882 case `$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 ;;
3889 esac
3890 fi
3891 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3892 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3893 with_gnu_ld=$lt_cv_prog_gnu_ld
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3905 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3906 if test "${lt_cv_path_NM+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909 if test -n "$NM"; then
3910 # Let the user override the test.
3911 lt_cv_path_NM="$NM"
3912 else
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}
3951 fi
3952 fi
3953 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3954 echo "${ECHO_T}$lt_cv_path_NM" >&6
3955 if test "$lt_cv_path_NM" != "no"; then
3956 NM="$lt_cv_path_NM"
3957 else
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.
3963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3964 echo "$as_me:$LINENO: checking for $ac_word" >&5
3965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969 if test -n "$DUMPBIN"; then
3970 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
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
3983 done
3984 done
3985
3986 fi
3987 fi
3988 DUMPBIN=$ac_cv_prog_DUMPBIN
3989 if test -n "$DUMPBIN"; then
3990 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3991 echo "${ECHO_T}$DUMPBIN" >&6
3992 else
3993 echo "$as_me:$LINENO: result: no" >&5
3994 echo "${ECHO_T}no" >&6
3995 fi
3996
3997 test -n "$DUMPBIN" && break
3998 done
3999 fi
4000 if test -z "$DUMPBIN"; then
4001 ac_ct_DUMPBIN=$DUMPBIN
4002 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4003 do
4004 # Extract the first word of "$ac_prog", so it can be a program name with args.
4005 set dummy $ac_prog; ac_word=$2
4006 echo "$as_me:$LINENO: checking for $ac_word" >&5
4007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 if test -n "$ac_ct_DUMPBIN"; then
4012 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
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
4025 done
4026 done
4027
4028 fi
4029 fi
4030 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4031 if test -n "$ac_ct_DUMPBIN"; then
4032 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4033 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4034 else
4035 echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4037 fi
4038
4039 test -n "$ac_ct_DUMPBIN" && break
4040 done
4041 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4042
4043 DUMPBIN=$ac_ct_DUMPBIN
4044 fi
4045
4046
4047 if test "$DUMPBIN" != ":"; then
4048 NM="$DUMPBIN"
4049 fi
4050 fi
4051 test -z "$NM" && NM=nm
4052
4053
4054
4055
4056
4057
4058 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4059 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4060 if test "${lt_cv_nm_interface+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
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*
4077 fi
4078 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4079 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4080
4081 # find the maximum length of command line arguments
4082 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4083 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4084 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
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
4193 fi
4194
4195 if test -n $lt_cv_sys_max_cmd_len ; then
4196 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4197 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4198 else
4199 echo "$as_me:$LINENO: result: none" >&5
4200 echo "${ECHO_T}none" >&6
4201 fi
4202 max_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
4214 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4215 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4216 # Try some XSI features
4217 xsi_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
4222 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4223 echo "${ECHO_T}$xsi_shell" >&6
4224
4225
4226 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4227 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4228 if test "${lt_cv_ld_reload_flag+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231 lt_cv_ld_reload_flag='-r'
4232 fi
4233 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4234 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4235 reload_flag=$lt_cv_ld_reload_flag
4236 case $reload_flag in
4237 "" | " "*) ;;
4238 *) reload_flag=" $reload_flag" ;;
4239 esac
4240 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4241 case $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 ;;
4249 esac
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4261 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4262 if test "${lt_cv_deplibs_check_method+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265 lt_cv_file_magic_cmd='$MAGIC_CMD'
4266 lt_cv_file_magic_test_file=
4267 lt_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
4279 case $host_os in
4280 aix4* | aix5*)
4281 lt_cv_deplibs_check_method=pass_all
4282 ;;
4283
4284 beos*)
4285 lt_cv_deplibs_check_method=pass_all
4286 ;;
4287
4288 bsdi[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
4294 cygwin*)
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'.
4302 mingw* | 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
4307 darwin* | rhapsody*)
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310
4311 freebsd* | 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
4327 gnu*)
4328 lt_cv_deplibs_check_method=pass_all
4329 ;;
4330
4331 hpux10.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
4349 interix3*)
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
4354 irix5* | 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.
4365 linux*)
4366 lt_cv_deplibs_check_method=pass_all
4367 ;;
4368
4369 netbsd* | 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
4377 newos6*)
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
4387 openbsd*)
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
4395 osf3* | osf4* | osf5*)
4396 lt_cv_deplibs_check_method=pass_all
4397 ;;
4398
4399 rdos*)
4400 lt_cv_deplibs_check_method=pass_all
4401 ;;
4402
4403 solaris*)
4404 lt_cv_deplibs_check_method=pass_all
4405 ;;
4406
4407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4408 lt_cv_deplibs_check_method=pass_all
4409 ;;
4410
4411 sysv4 | 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
4438 tpf*)
4439 lt_cv_deplibs_check_method=pass_all
4440 ;;
4441 esac
4442
4443 fi
4444 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4445 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4446 file_magic_cmd=$lt_cv_file_magic_cmd
4447 deplibs_check_method=$lt_cv_deplibs_check_method
4448 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461 if 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.
4463 set dummy ${ac_tool_prefix}ar; ac_word=$2
4464 echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4466 if test "${ac_cv_prog_AR+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469 if test -n "$AR"; then
4470 ac_cv_prog_AR="$AR" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
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
4483 done
4484 done
4485
4486 fi
4487 fi
4488 AR=$ac_cv_prog_AR
4489 if test -n "$AR"; then
4490 echo "$as_me:$LINENO: result: $AR" >&5
4491 echo "${ECHO_T}$AR" >&6
4492 else
4493 echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6
4495 fi
4496
4497 fi
4498 if 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.
4501 set dummy ar; ac_word=$2
4502 echo "$as_me:$LINENO: checking for $ac_word" >&5
4503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4504 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507 if test -n "$ac_ct_AR"; then
4508 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
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
4521 done
4522 done
4523
4524 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4525 fi
4526 fi
4527 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4528 if test -n "$ac_ct_AR"; then
4529 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4530 echo "${ECHO_T}$ac_ct_AR" >&6
4531 else
4532 echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4534 fi
4535
4536 AR=$ac_ct_AR
4537 else
4538 AR="$ac_cv_prog_AR"
4539 fi
4540
4541 test -z "$AR" && AR=ar
4542 test -z "$AR_FLAGS" && AR_FLAGS=cru
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554 if 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.
4556 set dummy ${ac_tool_prefix}strip; ac_word=$2
4557 echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4559 if test "${ac_cv_prog_STRIP+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 if test -n "$STRIP"; then
4563 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
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
4576 done
4577 done
4578
4579 fi
4580 fi
4581 STRIP=$ac_cv_prog_STRIP
4582 if test -n "$STRIP"; then
4583 echo "$as_me:$LINENO: result: $STRIP" >&5
4584 echo "${ECHO_T}$STRIP" >&6
4585 else
4586 echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6
4588 fi
4589
4590 fi
4591 if 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.
4594 set dummy strip; ac_word=$2
4595 echo "$as_me:$LINENO: checking for $ac_word" >&5
4596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4597 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600 if test -n "$ac_ct_STRIP"; then
4601 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
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
4614 done
4615 done
4616
4617 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4618 fi
4619 fi
4620 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4621 if test -n "$ac_ct_STRIP"; then
4622 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4623 echo "${ECHO_T}$ac_ct_STRIP" >&6
4624 else
4625 echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6
4627 fi
4628
4629 STRIP=$ac_ct_STRIP
4630 else
4631 STRIP="$ac_cv_prog_STRIP"
4632 fi
4633
4634 test -z "$STRIP" && STRIP=:
4635
4636
4637
4638
4639
4640
4641 if 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.
4643 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4644 echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4646 if test "${ac_cv_prog_RANLIB+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649 if test -n "$RANLIB"; then
4650 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
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
4663 done
4664 done
4665
4666 fi
4667 fi
4668 RANLIB=$ac_cv_prog_RANLIB
4669 if test -n "$RANLIB"; then
4670 echo "$as_me:$LINENO: result: $RANLIB" >&5
4671 echo "${ECHO_T}$RANLIB" >&6
4672 else
4673 echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6
4675 fi
4676
4677 fi
4678 if 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.
4681 set dummy ranlib; ac_word=$2
4682 echo "$as_me:$LINENO: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4684 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687 if test -n "$ac_ct_RANLIB"; then
4688 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
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
4701 done
4702 done
4703
4704 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4705 fi
4706 fi
4707 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4708 if test -n "$ac_ct_RANLIB"; then
4709 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4710 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4711 else
4712 echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6
4714 fi
4715
4716 RANLIB=$ac_ct_RANLIB
4717 else
4718 RANLIB="$ac_cv_prog_RANLIB"
4719 fi
4720
4721 test -z "$RANLIB" && RANLIB=:
4722
4723
4724
4725
4726
4727
4728 # Determine commands to create old-style static archives.
4729 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4730 old_postinstall_cmds='chmod 644 $oldlib'
4731 old_postuninstall_cmds=
4732
4733 if 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"
4743 fi
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.
4779 LTCC=${LTCC-"$CC"}
4780
4781 # If no C compiler flags were specified, use CFLAGS.
4782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4783
4784 # Allow CC to be a program name with arguments.
4785 compiler=$CC
4786
4787
4788 # Check for command to grab the raw symbol name followed by C symbol from nm.
4789 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4790 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4791 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
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.
4799 symcode='[BCDEGRST]'
4800
4801 # Regexp to match symbols that can be accessed directly from C.
4802 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4803
4804 # Define system-specific variables.
4805 case $host_os in
4806 aix*)
4807 symcode='[BCDT]'
4808 ;;
4809 cygwin* | mingw* | pw32*)
4810 symcode='[ABCDGISTW]'
4811 ;;
4812 hpux*)
4813 if test "$host_cpu" = ia64; then
4814 symcode='[ABCDEGRST]'
4815 fi
4816 ;;
4817 irix* | nonstopux*)
4818 symcode='[BCDEGRST]'
4819 ;;
4820 osf*)
4821 symcode='[BCDEGQRST]'
4822 ;;
4823 solaris*)
4824 symcode='[BDRT]'
4825 ;;
4826 sco3.2v5*)
4827 symcode='[DT]'
4828 ;;
4829 sysv4.2uw2*)
4830 symcode='[DT]'
4831 ;;
4832 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4833 symcode='[ABDT]'
4834 ;;
4835 sysv4)
4836 symcode='[DFNSTU]'
4837 ;;
4838 esac
4839
4840 # If we're using GNU nm, then use its standard symbol codes.
4841 case `$NM -V 2>&1` in
4842 *GNU* | *'with BFD'*)
4843 symcode='[ABCDGIRSTW]' ;;
4844 esac
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.
4849 lt_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
4852 lt_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
4855 opt_cr=
4856 case $build_os in
4857 mingw*)
4858 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4859 ;;
4860 esac
4861
4862 # Try without a prefix underscore, then with it.
4863 for 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
4895 extern "C" {
4896 #endif
4897 char nm_test_var;
4898 void nm_test_func(){}
4899 #ifdef __cplusplus
4900 }
4901 #endif
4902 int 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
4929 extern "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. */
4939 const struct {
4940 const char *name;
4941 void *address;
4942 }
4943 lt__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
4954 static 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
4999 done
5000
5001 fi
5002
5003 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5004 lt_cv_sys_global_symbol_to_cdecl=
5005 fi
5006 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5007 echo "$as_me:$LINENO: result: failed" >&5
5008 echo "${ECHO_T}failed" >&6
5009 else
5010 echo "$as_me:$LINENO: result: ok" >&5
5011 echo "${ECHO_T}ok" >&6
5012 fi
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.
5032 if test "${enable_libtool_lock+set}" = set; then
5033 enableval="$enable_libtool_lock"
5034
5035 fi;
5036 test "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.
5040 case $host in
5041 ia64-*-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
5097 x86_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
5148 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5149 if test "${lt_cv_cc_needs_belf+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152 ac_ext=c
5153 ac_cpp='$CPP $CPPFLAGS'
5154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5157
5158 cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h. */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5164
5165 int
5166 main ()
5167 {
5168
5169 ;
5170 return 0;
5171 }
5172 _ACEOF
5173 rm -f conftest.$ac_objext conftest$ac_exeext
5174 if { (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
5195 else
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 lt_cv_cc_needs_belf=no
5200 fi
5201 rm -f conftest.err conftest.$ac_objext \
5202 conftest$ac_exeext conftest.$ac_ext
5203 ac_ext=c
5204 ac_cpp='$CPP $CPPFLAGS'
5205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5208
5209 fi
5210 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5211 echo "${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 ;;
5217 sparc*-*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 ;;
5236 esac
5237
5238 need_locks="$enable_libtool_lock"
5239
5240 ac_ext=c
5241 ac_cpp='$CPP $CPPFLAGS'
5242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5245 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5246 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5247 # On Suns, sometimes $CPP names a directory.
5248 if test -n "$CPP" && test -d "$CPP"; then
5249 CPP=
5250 fi
5251 if test -z "$CPP"; then
5252 if test "${ac_cv_prog_CPP+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
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
5259 for ac_c_preproc_warn_flag in '' yes
5260 do
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
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>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
5280 if { (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
5294 else
5295 ac_cpp_err=yes
5296 fi
5297 if test -z "$ac_cpp_err"; then
5298 :
5299 else
5300 echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5302
5303 # Broken: fails on valid input.
5304 continue
5305 fi
5306 rm -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
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 #include <ac_nonexistent.h>
5317 _ACEOF
5318 if { (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
5332 else
5333 ac_cpp_err=yes
5334 fi
5335 if test -z "$ac_cpp_err"; then
5336 # Broken: success on invalid input.
5337 continue
5338 else
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342 # Passes both tests.
5343 ac_preproc_ok=:
5344 break
5345 fi
5346 rm -f conftest.err conftest.$ac_ext
5347
5348 done
5349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5350 rm -f conftest.err conftest.$ac_ext
5351 if $ac_preproc_ok; then
5352 break
5353 fi
5354
5355 done
5356 ac_cv_prog_CPP=$CPP
5357
5358 fi
5359 CPP=$ac_cv_prog_CPP
5360 else
5361 ac_cv_prog_CPP=$CPP
5362 fi
5363 echo "$as_me:$LINENO: result: $CPP" >&5
5364 echo "${ECHO_T}$CPP" >&6
5365 ac_preproc_ok=false
5366 for ac_c_preproc_warn_flag in '' yes
5367 do
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
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>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
5387 if { (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
5401 else
5402 ac_cpp_err=yes
5403 fi
5404 if test -z "$ac_cpp_err"; then
5405 :
5406 else
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5409
5410 # Broken: fails on valid input.
5411 continue
5412 fi
5413 rm -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
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 #include <ac_nonexistent.h>
5424 _ACEOF
5425 if { (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
5439 else
5440 ac_cpp_err=yes
5441 fi
5442 if test -z "$ac_cpp_err"; then
5443 # Broken: success on invalid input.
5444 continue
5445 else
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5448
5449 # Passes both tests.
5450 ac_preproc_ok=:
5451 break
5452 fi
5453 rm -f conftest.err conftest.$ac_ext
5454
5455 done
5456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5457 rm -f conftest.err conftest.$ac_ext
5458 if $ac_preproc_ok; then
5459 :
5460 else
5461 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5462 See \`config.log' for more details." >&5
5463 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5464 See \`config.log' for more details." >&2;}
5465 { (exit 1); exit 1; }; }
5466 fi
5467
5468 ac_ext=c
5469 ac_cpp='$CPP $CPPFLAGS'
5470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5473
5474
5475 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5476 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5477 if test "${ac_cv_header_stdc+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h. */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>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
5491 int
5492 main ()
5493 {
5494
5495 ;
5496 return 0;
5497 }
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (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
5521 else
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5524
5525 ac_cv_header_stdc=no
5526 fi
5527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5528
5529 if 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
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5537 #include <string.h>
5538
5539 _ACEOF
5540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5541 $EGREP "memchr" >/dev/null 2>&1; then
5542 :
5543 else
5544 ac_cv_header_stdc=no
5545 fi
5546 rm -f conftest*
5547
5548 fi
5549
5550 if 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
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 #include <stdlib.h>
5559
5560 _ACEOF
5561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5562 $EGREP "free" >/dev/null 2>&1; then
5563 :
5564 else
5565 ac_cv_header_stdc=no
5566 fi
5567 rm -f conftest*
5568
5569 fi
5570
5571 if 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 :
5575 else
5576 cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h. */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>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)))
5595 int
5596 main ()
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
5606 rm -f conftest$ac_exeext
5607 if { (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 :
5618 else
5619 echo "$as_me: program exited with status $ac_status" >&5
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623 ( exit $ac_status )
5624 ac_cv_header_stdc=no
5625 fi
5626 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5627 fi
5628 fi
5629 fi
5630 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5631 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5632 if test $ac_cv_header_stdc = yes; then
5633
5634 cat >>confdefs.h <<\_ACEOF
5635 #define STDC_HEADERS 1
5636 _ACEOF
5637
5638 fi
5639
5640 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5651 inttypes.h stdint.h unistd.h
5652 do
5653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5654 echo "$as_me:$LINENO: checking for $ac_header" >&5
5655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h. */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 $ac_includes_default
5666
5667 #include <$ac_header>
5668 _ACEOF
5669 rm -f conftest.$ac_objext
5670 if { (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"
5691 else
5692 echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.$ac_ext >&5
5694
5695 eval "$as_ac_Header=no"
5696 fi
5697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5698 fi
5699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5701 if 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
5706 fi
5707
5708 done
5709
5710
5711
5712 for ac_header in dlfcn.h
5713 do
5714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5715 echo "$as_me:$LINENO: checking for $ac_header" >&5
5716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 $ac_includes_default
5727
5728 #include <$ac_header>
5729 _ACEOF
5730 rm -f conftest.$ac_objext
5731 if { (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"
5752 else
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756 eval "$as_ac_Header=no"
5757 fi
5758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5759 fi
5760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5762 if 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
5767 fi
5768
5769 done
5770
5771
5772
5773 # This can be used to rebuild libtool when needed
5774 LIBTOOL_DEPS="$ltmain"
5775
5776 # Always use our own libtool.
5777 LIBTOOL='$(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
5803 test -z "$LN_S" && LN_S="ln -s"
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818 if test -n "${ZSH_VERSION+set}" ; then
5819 setopt NO_GLOB_SUBST
5820 fi
5821
5822 echo "$as_me:$LINENO: checking for objdir" >&5
5823 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5824 if test "${lt_cv_objdir+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827 rm -f .libs 2>/dev/null
5828 mkdir .libs 2>/dev/null
5829 if test -d .libs; then
5830 lt_cv_objdir=.libs
5831 else
5832 # MS-DOS does not allow filenames that begin with a dot.
5833 lt_cv_objdir=_libs
5834 fi
5835 rmdir .libs 2>/dev/null
5836 fi
5837 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5838 echo "${ECHO_T}$lt_cv_objdir" >&6
5839 objdir=$lt_cv_objdir
5840
5841
5842
5843
5844
5845 cat >>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
5865 case $host_os in
5866 aix3*)
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 ;;
5875 esac
5876
5877 # Sed substitution that helps us do robust quoting. It backslashifies
5878 # metacharacters that are still active within double-quoted strings.
5879 Xsed='sed -e 1s/^X//'
5880 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5881
5882 # Same as above, but do not quote variable references.
5883 double_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.
5887 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5888
5889 # Sed substitution to delay expansion of an escaped single quote.
5890 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5891
5892 # Sed substitution to avoid accidental globbing in evaled expressions
5893 no_glob_subst='s/\*/\\\*/g'
5894
5895 # Global variables:
5896 ofile=libtool
5897 can_build_shared=yes
5898
5899 # All known linkers require a `.a' archive for static linking (except MSVC,
5900 # which needs '.lib').
5901 libext=a
5902
5903 with_gnu_ld="$lt_cv_prog_gnu_ld"
5904
5905 old_CC="$CC"
5906 old_CFLAGS="$CFLAGS"
5907
5908 # Set sane defaults for various variables
5909 test -z "$CC" && CC=cc
5910 test -z "$LTCC" && LTCC=$CC
5911 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5912 test -z "$LD" && LD=ld
5913 test -z "$ac_objext" && ac_objext=o
5914
5915 for 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
5922 done
5923 cc_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
5927 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5928 case $deplibs_check_method in
5929 file_magic*)
5930 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5931 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5932 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5933 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
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 ;;
5979 esac
5980 fi
5981
5982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5983 if test -n "$MAGIC_CMD"; then
5984 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5985 echo "${ECHO_T}$MAGIC_CMD" >&6
5986 else
5987 echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6
5989 fi
5990
5991
5992
5993
5994
5995 if 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
5998 echo $ECHO_N "checking for file... $ECHO_C" >&6
5999 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
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 ;;
6045 esac
6046 fi
6047
6048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6049 if test -n "$MAGIC_CMD"; then
6050 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6051 echo "${ECHO_T}$MAGIC_CMD" >&6
6052 else
6053 echo "$as_me:$LINENO: result: no" >&5
6054 echo "${ECHO_T}no" >&6
6055 fi
6056
6057
6058 else
6059 MAGIC_CMD=:
6060 fi
6061 fi
6062
6063 fi
6064 ;;
6065 esac
6066
6067 # Use C for the default configuration in the libtool script
6068
6069 lt_save_CC="$CC"
6070 ac_ext=c
6071 ac_cpp='$CPP $CPPFLAGS'
6072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075
6076
6077 # Source file extension for C test sources.
6078 ac_ext=c
6079
6080 # Object file extension for compiled C test sources.
6081 objext=o
6082 objext=$objext
6083
6084 # Code to be used in simple compile tests
6085 lt_simple_compile_test_code="int some_variable = 0;\n"
6086
6087 # Code to be used in simple link tests
6088 lt_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.
6097 LTCC=${LTCC-"$CC"}
6098
6099 # If no C compiler flags were specified, use CFLAGS.
6100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6101
6102 # Allow CC to be a program name with arguments.
6103 compiler=$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.
6107 compiler_DEFAULT=$CC
6108
6109 # save warnings/boilerplate of simple test code
6110 ac_outfile=conftest.$ac_objext
6111 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6112 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6113 _lt_compiler_boilerplate=`cat conftest.err`
6114 $RM conftest*
6115
6116 ac_outfile=conftest.$ac_objext
6117 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6118 eval "$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...
6127 if test -n "$compiler"; then
6128
6129 lt_prog_compiler_no_builtin_flag=
6130
6131 if 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
6135 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6136 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
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
6168 fi
6169 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6170 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6171
6172 if 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"
6174 else
6175 :
6176 fi
6177
6178 fi
6179
6180
6181
6182
6183
6184
6185 lt_prog_compiler_wl=
6186 lt_prog_compiler_pic=
6187 lt_prog_compiler_static=
6188
6189 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6190 echo $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
6417 case $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 ;;
6425 esac
6426 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6427 echo "${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 #
6437 if test -n "$lt_prog_compiler_pic"; then
6438 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6439 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6440 if test "${lt_prog_compiler_pic_works+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
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
6472 fi
6473 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6474 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6475
6476 if 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
6481 else
6482 lt_prog_compiler_pic=
6483 lt_prog_compiler_can_build_shared=no
6484 fi
6485
6486 fi
6487
6488
6489
6490
6491
6492
6493 #
6494 # Check to make sure the static flag actually works.
6495 #
6496 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6497 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6498 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6499 if test "${lt_prog_compiler_static_works+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 else
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
6524 fi
6525 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6526 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6527
6528 if test x"$lt_prog_compiler_static_works" = xyes; then
6529 :
6530 else
6531 lt_prog_compiler_static=
6532 fi
6533
6534
6535
6536
6537
6538
6539
6540 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6541 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6542 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
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
6586 fi
6587 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6588 echo "${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
6596 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6597 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
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
6641 fi
6642 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6643 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6644
6645
6646
6647
6648 hard_links="nottested"
6649 if 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
6652 echo $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
6660 echo "${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
6663 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6664 need_locks=warn
6665 fi
6666 else
6667 need_locks=no
6668 fi
6669
6670
6671
6672
6673
6674
6675 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6676 echo $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
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7086
7087 int
7088 main ()
7089 {
7090
7091 ;
7092 return 0;
7093 }
7094 _ACEOF
7095 rm -f conftest.$ac_objext conftest$ac_exeext
7096 if { (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
7117 lt_aix_libpath_sed='
7118 /Import File Strings/,/^$/ {
7119 /^0/ {
7120 s/^0 *\(.*\)$/\1/
7121 p
7122 }
7123 }'
7124 aix_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.
7126 if test -z "$aix_libpath"; then
7127 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7128 fi
7129 else
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 fi
7134 rm -f conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7136 if 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
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154
7155 int
7156 main ()
7157 {
7158
7159 ;
7160 return 0;
7161 }
7162 _ACEOF
7163 rm -f conftest.$ac_objext conftest$ac_exeext
7164 if { (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
7185 lt_aix_libpath_sed='
7186 /Import File Strings/,/^$/ {
7187 /^0/ {
7188 s/^0 *\(.*\)$/\1/
7189 p
7190 }
7191 }'
7192 aix_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.
7194 if test -z "$aix_libpath"; then
7195 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7196 fi
7197 else
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7200
7201 fi
7202 rm -f conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204 if 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
7280 else
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
7296 fi
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
7452 int foo(void) {}
7453 _ACEOF
7454 rm -f conftest.$ac_objext conftest$ac_exeext
7455 if { (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
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481 fi
7482 rm -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
7735 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7736 echo "${ECHO_T}$ld_shlibs" >&6
7737 test "$ld_shlibs" = no && can_build_shared=no
7738
7739 with_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 #
7758 case "x$archive_cmds_need_lc" in
7759 x|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
7773 echo $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
7811 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7812 ;;
7813 esac
7814 fi
7815 ;;
7816 esac
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
7965 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7966 withGCC=$GCC
7967 library_names_spec=
7968 libname_spec='lib$name'
7969 soname_spec=
7970 shrext_cmds=".so"
7971 postinstall_cmds=
7972 postuninstall_cmds=
7973 finish_cmds=
7974 finish_eval=
7975 shlibpath_var=
7976 shlibpath_overrides_runpath=unknown
7977 version_type=none
7978 dynamic_linker="$host_os ld.so"
7979 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7980 if 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
7991 else
7992 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7993 fi
7994 need_lib_prefix=unknown
7995 hardcode_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
7999 need_version=unknown
8000
8001 case $host_os in
8002 aix3*)
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
8011 aix4* | 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
8055 amigaos*)
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
8065 beos*)
8066 library_names_spec='${libname}${shared_ext}'
8067 dynamic_linker="$host_os ld.so"
8068 shlibpath_var=LIBRARY_PATH
8069 ;;
8070
8071 bsdi[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
8085 cygwin* | 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
8147 darwin* | 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
8166 dgux*)
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
8175 freebsd1*)
8176 dynamic_linker=no
8177 ;;
8178
8179 kfreebsd*-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
8191 freebsd* | 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
8235 gnu*)
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
8245 hpux9* | 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
8291 interix3*)
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
8303 irix5* | 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.
8341 linux*oldld* | linux*aout* | linux*coff*)
8342 dynamic_linker=no
8343 ;;
8344
8345 # This must be Linux ELF.
8346 linux*)
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
8375 knetbsd*-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
8387 netbsd*)
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
8405 newsos6)
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
8424 openbsd*)
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
8450 os2*)
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
8459 osf3* | 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
8470 rdos*)
8471 dynamic_linker=no
8472 ;;
8473
8474 solaris*)
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
8487 sunos4*)
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
8499 sysv4 | 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
8522 sysv4*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
8531 sysv5* | 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
8553 tpf*)
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
8564 uts4*)
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 ;;
8574 esac
8575 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8576 echo "${ECHO_T}$dynamic_linker" >&6
8577 test "$dynamic_linker" = no && can_build_shared=no
8578
8579 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8580 if test "$GCC" = yes; then
8581 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8582 fi
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
8671 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8672 hardcode_action=
8673 if 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
8690 else
8691 # We cannot hardcode anything, or else we can only hardcode existing
8692 # directories.
8693 hardcode_action=unsupported
8694 fi
8695 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8696 echo "${ECHO_T}$hardcode_action" >&6
8697
8698 if test "$hardcode_action" = relink ||
8699 test "$inherit_rpath" = yes; then
8700 # Fast installation is not supported
8701 enable_fast_install=no
8702 elif test "$shlibpath_overrides_runpath" = yes ||
8703 test "$enable_shared" = no; then
8704 # Fast installation is not necessary
8705 enable_fast_install=needless
8706 fi
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
8717 else
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
8741 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8742 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745 ac_check_lib_save_LIBS=$LIBS
8746 LIBS="-ldl $LIBS"
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h. */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753
8754 /* Override any gcc2 internal prototype to avoid an error. */
8755 #ifdef __cplusplus
8756 extern "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. */
8760 char dlopen ();
8761 int
8762 main ()
8763 {
8764 dlopen ();
8765 ;
8766 return 0;
8767 }
8768 _ACEOF
8769 rm -f conftest.$ac_objext conftest$ac_exeext
8770 if { (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
8791 else
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795 ac_cv_lib_dl_dlopen=no
8796 fi
8797 rm -f conftest.err conftest.$ac_objext \
8798 conftest$ac_exeext conftest.$ac_ext
8799 LIBS=$ac_check_lib_save_LIBS
8800 fi
8801 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8802 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8803 if test $ac_cv_lib_dl_dlopen = yes; then
8804 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8805 else
8806
8807 lt_cv_dlopen="dyld"
8808 lt_cv_dlopen_libs=
8809 lt_cv_dlopen_self=yes
8810
8811 fi
8812
8813 ;;
8814
8815 *)
8816 echo "$as_me:$LINENO: checking for shl_load" >&5
8817 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8818 if test "${ac_cv_func_shl_load+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821 cat >conftest.$ac_ext <<_ACEOF
8822 /* confdefs.h. */
8823 _ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>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
8846 extern "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. */
8851 char 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)
8856 choke me
8857 #else
8858 char (*f) () = shl_load;
8859 #endif
8860 #ifdef __cplusplus
8861 }
8862 #endif
8863
8864 int
8865 main ()
8866 {
8867 return f != shl_load;
8868 ;
8869 return 0;
8870 }
8871 _ACEOF
8872 rm -f conftest.$ac_objext conftest$ac_exeext
8873 if { (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
8894 else
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8897
8898 ac_cv_func_shl_load=no
8899 fi
8900 rm -f conftest.err conftest.$ac_objext \
8901 conftest$ac_exeext conftest.$ac_ext
8902 fi
8903 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8904 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8905 if test $ac_cv_func_shl_load = yes; then
8906 lt_cv_dlopen="shl_load"
8907 else
8908 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8909 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8910 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 else
8913 ac_check_lib_save_LIBS=$LIBS
8914 LIBS="-ldld $LIBS"
8915 cat >conftest.$ac_ext <<_ACEOF
8916 /* confdefs.h. */
8917 _ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8921
8922 /* Override any gcc2 internal prototype to avoid an error. */
8923 #ifdef __cplusplus
8924 extern "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. */
8928 char shl_load ();
8929 int
8930 main ()
8931 {
8932 shl_load ();
8933 ;
8934 return 0;
8935 }
8936 _ACEOF
8937 rm -f conftest.$ac_objext conftest$ac_exeext
8938 if { (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
8959 else
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963 ac_cv_lib_dld_shl_load=no
8964 fi
8965 rm -f conftest.err conftest.$ac_objext \
8966 conftest$ac_exeext conftest.$ac_ext
8967 LIBS=$ac_check_lib_save_LIBS
8968 fi
8969 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8970 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8971 if test $ac_cv_lib_dld_shl_load = yes; then
8972 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8973 else
8974 echo "$as_me:$LINENO: checking for dlopen" >&5
8975 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8976 if test "${ac_cv_func_dlopen+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979 cat >conftest.$ac_ext <<_ACEOF
8980 /* confdefs.h. */
8981 _ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>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
9004 extern "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. */
9009 char 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)
9014 choke me
9015 #else
9016 char (*f) () = dlopen;
9017 #endif
9018 #ifdef __cplusplus
9019 }
9020 #endif
9021
9022 int
9023 main ()
9024 {
9025 return f != dlopen;
9026 ;
9027 return 0;
9028 }
9029 _ACEOF
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (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
9052 else
9053 echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9055
9056 ac_cv_func_dlopen=no
9057 fi
9058 rm -f conftest.err conftest.$ac_objext \
9059 conftest$ac_exeext conftest.$ac_ext
9060 fi
9061 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9062 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9063 if test $ac_cv_func_dlopen = yes; then
9064 lt_cv_dlopen="dlopen"
9065 else
9066 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9067 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9068 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 else
9071 ac_check_lib_save_LIBS=$LIBS
9072 LIBS="-ldl $LIBS"
9073 cat >conftest.$ac_ext <<_ACEOF
9074 /* confdefs.h. */
9075 _ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h. */
9079
9080 /* Override any gcc2 internal prototype to avoid an error. */
9081 #ifdef __cplusplus
9082 extern "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. */
9086 char dlopen ();
9087 int
9088 main ()
9089 {
9090 dlopen ();
9091 ;
9092 return 0;
9093 }
9094 _ACEOF
9095 rm -f conftest.$ac_objext conftest$ac_exeext
9096 if { (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
9117 else
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9120
9121 ac_cv_lib_dl_dlopen=no
9122 fi
9123 rm -f conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
9125 LIBS=$ac_check_lib_save_LIBS
9126 fi
9127 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9128 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9129 if test $ac_cv_lib_dl_dlopen = yes; then
9130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9131 else
9132 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9133 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9134 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 else
9137 ac_check_lib_save_LIBS=$LIBS
9138 LIBS="-lsvld $LIBS"
9139 cat >conftest.$ac_ext <<_ACEOF
9140 /* confdefs.h. */
9141 _ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9145
9146 /* Override any gcc2 internal prototype to avoid an error. */
9147 #ifdef __cplusplus
9148 extern "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. */
9152 char dlopen ();
9153 int
9154 main ()
9155 {
9156 dlopen ();
9157 ;
9158 return 0;
9159 }
9160 _ACEOF
9161 rm -f conftest.$ac_objext conftest$ac_exeext
9162 if { (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
9183 else
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9186
9187 ac_cv_lib_svld_dlopen=no
9188 fi
9189 rm -f conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191 LIBS=$ac_check_lib_save_LIBS
9192 fi
9193 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9194 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9195 if test $ac_cv_lib_svld_dlopen = yes; then
9196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9197 else
9198 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9199 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9200 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203 ac_check_lib_save_LIBS=$LIBS
9204 LIBS="-ldld $LIBS"
9205 cat >conftest.$ac_ext <<_ACEOF
9206 /* confdefs.h. */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211
9212 /* Override any gcc2 internal prototype to avoid an error. */
9213 #ifdef __cplusplus
9214 extern "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. */
9218 char dld_link ();
9219 int
9220 main ()
9221 {
9222 dld_link ();
9223 ;
9224 return 0;
9225 }
9226 _ACEOF
9227 rm -f conftest.$ac_objext conftest$ac_exeext
9228 if { (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
9249 else
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9252
9253 ac_cv_lib_dld_dld_link=no
9254 fi
9255 rm -f conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_lib_save_LIBS
9258 fi
9259 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9260 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9261 if test $ac_cv_lib_dld_dld_link = yes; then
9262 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9263 fi
9264
9265
9266 fi
9267
9268
9269 fi
9270
9271
9272 fi
9273
9274
9275 fi
9276
9277
9278 fi
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
9301 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9302 if test "${lt_cv_dlopen_self+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 else
9305 if test "$cross_compiling" = yes; then :
9306 lt_cv_dlopen_self=cross
9307 else
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
9353 extern "C" void exit (int);
9354 #endif
9355
9356 void fnord() { int i=42;}
9357 int 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
9390 fi
9391 rm -fr conftest*
9392
9393
9394 fi
9395 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9396 echo "${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
9401 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9402 if test "${lt_cv_dlopen_self_static+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405 if test "$cross_compiling" = yes; then :
9406 lt_cv_dlopen_self_static=cross
9407 else
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
9453 extern "C" void exit (int);
9454 #endif
9455
9456 void fnord() { int i=42;}
9457 int 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
9490 fi
9491 rm -fr conftest*
9492
9493
9494 fi
9495 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9496 echo "${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
9514 fi
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532 striplib=
9533 old_striplib=
9534 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9535 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9536 if 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
9540 echo "${ECHO_T}yes" >&6
9541 else
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
9549 echo "${ECHO_T}yes" >&6
9550 else
9551 echo "$as_me:$LINENO: result: no" >&5
9552 echo "${ECHO_T}no" >&6
9553 fi
9554 ;;
9555 *)
9556 echo "$as_me:$LINENO: result: no" >&5
9557 echo "${ECHO_T}no" >&6
9558 ;;
9559 esac
9560 fi
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
9575 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9576 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9577 echo "${ECHO_T}$can_build_shared" >&6
9578
9579 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9580 echo $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
9601 echo "${ECHO_T}$enable_shared" >&6
9602
9603 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9604 echo $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
9608 echo "${ECHO_T}$enable_static" >&6
9609
9610
9611
9612
9613 fi
9614 ac_ext=c
9615 ac_cpp='$CPP $CPPFLAGS'
9616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9619
9620 CC="$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
9642 enable_win32_dll=yes
9643
9644 case $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.
9648 set dummy ${ac_tool_prefix}as; ac_word=$2
9649 echo "$as_me:$LINENO: checking for $ac_word" >&5
9650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9651 if test "${ac_cv_prog_AS+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 else
9654 if test -n "$AS"; then
9655 ac_cv_prog_AS="$AS" # Let the user override the test.
9656 else
9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 for as_dir in $PATH
9659 do
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
9668 done
9669 done
9670
9671 fi
9672 fi
9673 AS=$ac_cv_prog_AS
9674 if test -n "$AS"; then
9675 echo "$as_me:$LINENO: result: $AS" >&5
9676 echo "${ECHO_T}$AS" >&6
9677 else
9678 echo "$as_me:$LINENO: result: no" >&5
9679 echo "${ECHO_T}no" >&6
9680 fi
9681
9682 fi
9683 if 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.
9686 set dummy as; ac_word=$2
9687 echo "$as_me:$LINENO: checking for $ac_word" >&5
9688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9689 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692 if test -n "$ac_ct_AS"; then
9693 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9694 else
9695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696 for as_dir in $PATH
9697 do
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
9706 done
9707 done
9708
9709 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
9710 fi
9711 fi
9712 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9713 if test -n "$ac_ct_AS"; then
9714 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
9715 echo "${ECHO_T}$ac_ct_AS" >&6
9716 else
9717 echo "$as_me:$LINENO: result: no" >&5
9718 echo "${ECHO_T}no" >&6
9719 fi
9720
9721 AS=$ac_ct_AS
9722 else
9723 AS="$ac_cv_prog_AS"
9724 fi
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.
9728 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9729 echo "$as_me:$LINENO: checking for $ac_word" >&5
9730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9731 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734 if test -n "$DLLTOOL"; then
9735 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9736 else
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738 for as_dir in $PATH
9739 do
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
9748 done
9749 done
9750
9751 fi
9752 fi
9753 DLLTOOL=$ac_cv_prog_DLLTOOL
9754 if test -n "$DLLTOOL"; then
9755 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
9756 echo "${ECHO_T}$DLLTOOL" >&6
9757 else
9758 echo "$as_me:$LINENO: result: no" >&5
9759 echo "${ECHO_T}no" >&6
9760 fi
9761
9762 fi
9763 if 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.
9766 set dummy dlltool; ac_word=$2
9767 echo "$as_me:$LINENO: checking for $ac_word" >&5
9768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9769 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772 if test -n "$ac_ct_DLLTOOL"; then
9773 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9774 else
9775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776 for as_dir in $PATH
9777 do
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
9786 done
9787 done
9788
9789 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
9790 fi
9791 fi
9792 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9793 if test -n "$ac_ct_DLLTOOL"; then
9794 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9795 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9796 else
9797 echo "$as_me:$LINENO: result: no" >&5
9798 echo "${ECHO_T}no" >&6
9799 fi
9800
9801 DLLTOOL=$ac_ct_DLLTOOL
9802 else
9803 DLLTOOL="$ac_cv_prog_DLLTOOL"
9804 fi
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.
9808 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9809 echo "$as_me:$LINENO: checking for $ac_word" >&5
9810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9811 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814 if test -n "$OBJDUMP"; then
9815 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9816 else
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818 for as_dir in $PATH
9819 do
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
9828 done
9829 done
9830
9831 fi
9832 fi
9833 OBJDUMP=$ac_cv_prog_OBJDUMP
9834 if test -n "$OBJDUMP"; then
9835 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
9836 echo "${ECHO_T}$OBJDUMP" >&6
9837 else
9838 echo "$as_me:$LINENO: result: no" >&5
9839 echo "${ECHO_T}no" >&6
9840 fi
9841
9842 fi
9843 if 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.
9846 set dummy objdump; ac_word=$2
9847 echo "$as_me:$LINENO: checking for $ac_word" >&5
9848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9849 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852 if test -n "$ac_ct_OBJDUMP"; then
9853 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9854 else
9855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856 for as_dir in $PATH
9857 do
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
9866 done
9867 done
9868
9869 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
9870 fi
9871 fi
9872 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9873 if test -n "$ac_ct_OBJDUMP"; then
9874 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
9875 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
9876 else
9877 echo "$as_me:$LINENO: result: no" >&5
9878 echo "${ECHO_T}no" >&6
9879 fi
9880
9881 OBJDUMP=$ac_ct_OBJDUMP
9882 else
9883 OBJDUMP="$ac_cv_prog_OBJDUMP"
9884 fi
9885
9886 ;;
9887 esac
9888
9889 test -z "$AS" && AS=as
9890
9891
9892
9893
9894
9895 test -z "$DLLTOOL" && DLLTOOL=dlltool
9896
9897
9898
9899
9900
9901 test -z "$OBJDUMP" && OBJDUMP=objdump
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911 echo "$as_me:$LINENO: checking for main in -lc" >&5
9912 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
9913 if test "${ac_cv_lib_c_main+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9915 else
9916 ac_check_lib_save_LIBS=$LIBS
9917 LIBS="-lc $LIBS"
9918 cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h. */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9924
9925
9926 int
9927 main ()
9928 {
9929 main ();
9930 ;
9931 return 0;
9932 }
9933 _ACEOF
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (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
9956 else
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9959
9960 ac_cv_lib_c_main=no
9961 fi
9962 rm -f conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
9964 LIBS=$ac_check_lib_save_LIBS
9965 fi
9966 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
9967 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
9968 if 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
9975 fi
9976
9977
9978 case "$target_os" in
9979 cygwin* | mingw32* | beos* | darwin*)
9980 ;;
9981 *)
9982
9983 echo "$as_me:$LINENO: checking for main in -lm" >&5
9984 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9985 if test "${ac_cv_lib_m_main+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988 ac_check_lib_save_LIBS=$LIBS
9989 LIBS="-lm $LIBS"
9990 cat >conftest.$ac_ext <<_ACEOF
9991 /* confdefs.h. */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9996
9997
9998 int
9999 main ()
10000 {
10001 main ();
10002 ;
10003 return 0;
10004 }
10005 _ACEOF
10006 rm -f conftest.$ac_objext conftest$ac_exeext
10007 if { (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
10028 else
10029 echo "$as_me: failed program was:" >&5
10030 sed 's/^/| /' conftest.$ac_ext >&5
10031
10032 ac_cv_lib_m_main=no
10033 fi
10034 rm -f conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10036 LIBS=$ac_check_lib_save_LIBS
10037 fi
10038 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10039 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10040 if 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
10047 fi
10048
10049 ;;
10050 esac
10051
10052
10053
10054
10055
10056
10057
10058
10059 for ac_header in assert.h fcntl.h limits.h malloc.h search.h sys/time.h unistd.h
10060 do
10061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10063 echo "$as_me:$LINENO: checking for $ac_header" >&5
10064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 fi
10068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10070 else
10071 # Is the header compilable?
10072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 $ac_includes_default
10081 #include <$ac_header>
10082 _ACEOF
10083 rm -f conftest.$ac_objext
10084 if { (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
10105 else
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 ac_header_compiler=no
10110 fi
10111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10113 echo "${ECHO_T}$ac_header_compiler" >&6
10114
10115 # Is the header present?
10116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10118 cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h. */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 #include <$ac_header>
10125 _ACEOF
10126 if { (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
10140 else
10141 ac_cpp_err=yes
10142 fi
10143 if test -z "$ac_cpp_err"; then
10144 ac_header_preproc=yes
10145 else
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10148
10149 ac_header_preproc=no
10150 fi
10151 rm -f conftest.err conftest.$ac_ext
10152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10153 echo "${ECHO_T}$ac_header_preproc" >&6
10154
10155 # So? What about this header?
10156 case $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
10159 echo "$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
10161 echo "$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
10166 echo "$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
10168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10170 echo "$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
10172 echo "$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
10174 echo "$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
10176 echo "$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 ;;
10186 esac
10187 echo "$as_me:$LINENO: checking for $ac_header" >&5
10188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192 eval "$as_ac_Header=\$ac_header_preproc"
10193 fi
10194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10196
10197 fi
10198 if 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
10203 fi
10204
10205 done
10206
10207
10208 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10209 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10210 if test "${ac_cv_c_const+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213 cat >conftest.$ac_ext <<_ACEOF
10214 /* confdefs.h. */
10215 _ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10219
10220 int
10221 main ()
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
10274 rm -f conftest.$ac_objext
10275 if { (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
10296 else
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10299
10300 ac_cv_c_const=no
10301 fi
10302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10303 fi
10304 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10305 echo "${ECHO_T}$ac_cv_c_const" >&6
10306 if test $ac_cv_c_const = no; then
10307
10308 cat >>confdefs.h <<\_ACEOF
10309 #define const
10310 _ACEOF
10311
10312 fi
10313
10314 echo "$as_me:$LINENO: checking for inline" >&5
10315 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10316 if test "${ac_cv_c_inline+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319 ac_cv_c_inline=no
10320 for ac_kw in inline __inline__ __inline; do
10321 cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h. */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 #ifndef __cplusplus
10328 typedef int foo_t;
10329 static $ac_kw foo_t static_foo () {return 0; }
10330 $ac_kw foo_t foo () {return 0; }
10331 #endif
10332
10333 _ACEOF
10334 rm -f conftest.$ac_objext
10335 if { (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
10356 else
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10359
10360 fi
10361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10362 done
10363
10364 fi
10365 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10366 echo "${ECHO_T}$ac_cv_c_inline" >&6
10367
10368
10369 case $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 ;;
10382 esac
10383
10384 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10385 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10386 if test "${ac_cv_c_bigendian+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 else
10389 # See if sys/param.h defines the BYTE_ORDER macro.
10390 cat >conftest.$ac_ext <<_ACEOF
10391 /* confdefs.h. */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10396 #include <sys/types.h>
10397 #include <sys/param.h>
10398
10399 int
10400 main ()
10401 {
10402 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10403 bogus endian macros
10404 #endif
10405
10406 ;
10407 return 0;
10408 }
10409 _ACEOF
10410 rm -f conftest.$ac_objext
10411 if { (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.
10432 cat >conftest.$ac_ext <<_ACEOF
10433 /* confdefs.h. */
10434 _ACEOF
10435 cat confdefs.h >>conftest.$ac_ext
10436 cat >>conftest.$ac_ext <<_ACEOF
10437 /* end confdefs.h. */
10438 #include <sys/types.h>
10439 #include <sys/param.h>
10440
10441 int
10442 main ()
10443 {
10444 #if BYTE_ORDER != BIG_ENDIAN
10445 not big endian
10446 #endif
10447
10448 ;
10449 return 0;
10450 }
10451 _ACEOF
10452 rm -f conftest.$ac_objext
10453 if { (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
10474 else
10475 echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10477
10478 ac_cv_c_bigendian=no
10479 fi
10480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10481 else
10482 echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10484
10485 # It does not; compile a test program.
10486 if 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
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10495 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10496 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10497 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10498 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10499 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10500 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10501 int
10502 main ()
10503 {
10504 _ascii (); _ebcdic ();
10505 ;
10506 return 0;
10507 }
10508 _ACEOF
10509 rm -f conftest.$ac_objext
10510 if { (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
10532 fi
10533 if 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
10540 fi
10541 else
10542 echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10544
10545 fi
10546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10547 else
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h. */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 int
10555 main ()
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
10567 rm -f conftest$ac_exeext
10568 if { (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
10579 else
10580 echo "$as_me: program exited with status $ac_status" >&5
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10583
10584 ( exit $ac_status )
10585 ac_cv_c_bigendian=yes
10586 fi
10587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10588 fi
10589 fi
10590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10591 fi
10592 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10593 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10594 case $ac_cv_c_bigendian in
10595 yes)
10596
10597 cat >>confdefs.h <<\_ACEOF
10598 #define WORDS_BIGENDIAN 1
10599 _ACEOF
10600 ;;
10601 no)
10602 ;;
10603 *)
10604 { { echo "$as_me:$LINENO: error: unknown endianness
10605 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10606 echo "$as_me: error: unknown endianness
10607 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10608 { (exit 1); exit 1; }; } ;;
10609 esac
10610
10611 echo "$as_me:$LINENO: checking for off_t" >&5
10612 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10613 if test "${ac_cv_type_off_t+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 else
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h. */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 $ac_includes_default
10623 int
10624 main ()
10625 {
10626 if ((off_t *) 0)
10627 return 0;
10628 if (sizeof (off_t))
10629 return 0;
10630 ;
10631 return 0;
10632 }
10633 _ACEOF
10634 rm -f conftest.$ac_objext
10635 if { (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
10656 else
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10659
10660 ac_cv_type_off_t=no
10661 fi
10662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10663 fi
10664 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10665 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10666 if test $ac_cv_type_off_t = yes; then
10667 :
10668 else
10669
10670 cat >>confdefs.h <<_ACEOF
10671 #define off_t long
10672 _ACEOF
10673
10674 fi
10675
10676 echo "$as_me:$LINENO: checking for size_t" >&5
10677 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10678 if test "${ac_cv_type_size_t+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681 cat >conftest.$ac_ext <<_ACEOF
10682 /* confdefs.h. */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687 $ac_includes_default
10688 int
10689 main ()
10690 {
10691 if ((size_t *) 0)
10692 return 0;
10693 if (sizeof (size_t))
10694 return 0;
10695 ;
10696 return 0;
10697 }
10698 _ACEOF
10699 rm -f conftest.$ac_objext
10700 if { (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
10721 else
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725 ac_cv_type_size_t=no
10726 fi
10727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10728 fi
10729 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10730 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10731 if test $ac_cv_type_size_t = yes; then
10732 :
10733 else
10734
10735 cat >>confdefs.h <<_ACEOF
10736 #define size_t unsigned
10737 _ACEOF
10738
10739 fi
10740
10741 echo "$as_me:$LINENO: checking for int" >&5
10742 echo $ECHO_N "checking for int... $ECHO_C" >&6
10743 if test "${ac_cv_type_int+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746 cat >conftest.$ac_ext <<_ACEOF
10747 /* confdefs.h. */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10752 $ac_includes_default
10753 int
10754 main ()
10755 {
10756 if ((int *) 0)
10757 return 0;
10758 if (sizeof (int))
10759 return 0;
10760 ;
10761 return 0;
10762 }
10763 _ACEOF
10764 rm -f conftest.$ac_objext
10765 if { (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
10786 else
10787 echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10789
10790 ac_cv_type_int=no
10791 fi
10792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10793 fi
10794 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10795 echo "${ECHO_T}$ac_cv_type_int" >&6
10796
10797 echo "$as_me:$LINENO: checking size of int" >&5
10798 echo $ECHO_N "checking size of int... $ECHO_C" >&6
10799 if test "${ac_cv_sizeof_int+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
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.
10809 cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h. */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 $ac_includes_default
10816 int
10817 main ()
10818 {
10819 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
10820 test_array [0] = 0
10821
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 rm -f conftest.$ac_objext
10827 if { (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
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 $ac_includes_default
10856 int
10857 main ()
10858 {
10859 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10860 test_array [0] = 0
10861
10862 ;
10863 return 0;
10864 }
10865 _ACEOF
10866 rm -f conftest.$ac_objext
10867 if { (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
10888 else
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892 ac_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`
10898 fi
10899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10900 done
10901 else
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905 cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h. */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10911 $ac_includes_default
10912 int
10913 main ()
10914 {
10915 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
10916 test_array [0] = 0
10917
10918 ;
10919 return 0;
10920 }
10921 _ACEOF
10922 rm -f conftest.$ac_objext
10923 if { (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
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10951 $ac_includes_default
10952 int
10953 main ()
10954 {
10955 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
10956 test_array [0] = 0
10957
10958 ;
10959 return 0;
10960 }
10961 _ACEOF
10962 rm -f conftest.$ac_objext
10963 if { (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
10984 else
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10987
10988 ac_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`
10994 fi
10995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10996 done
10997 else
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001 ac_lo= ac_hi=
11002 fi
11003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11004 fi
11005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11006 # Binary search between lo and hi bounds.
11007 while 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
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h. */
11015 $ac_includes_default
11016 int
11017 main ()
11018 {
11019 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11020 test_array [0] = 0
11021
11022 ;
11023 return 0;
11024 }
11025 _ACEOF
11026 rm -f conftest.$ac_objext
11027 if { (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
11048 else
11049 echo "$as_me: failed program was:" >&5
11050 sed 's/^/| /' conftest.$ac_ext >&5
11051
11052 ac_lo=`expr '(' $ac_mid ')' + 1`
11053 fi
11054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11055 done
11056 case $ac_lo in
11057 ?*) ac_cv_sizeof_int=$ac_lo;;
11058 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11059 See \`config.log' for more details." >&5
11060 echo "$as_me: error: cannot compute sizeof (int), 77
11061 See \`config.log' for more details." >&2;}
11062 { (exit 1); exit 1; }; } ;;
11063 esac
11064 else
11065 if test "$cross_compiling" = yes; then
11066 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11067 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11068 { (exit 1); exit 1; }; }
11069 else
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h. */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 $ac_includes_default
11077 long longval () { return (long) (sizeof (int)); }
11078 unsigned long ulongval () { return (long) (sizeof (int)); }
11079 #include <stdio.h>
11080 #include <stdlib.h>
11081 int
11082 main ()
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
11108 rm -f conftest$ac_exeext
11109 if { (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`
11120 else
11121 echo "$as_me: program exited with status $ac_status" >&5
11122 echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11124
11125 ( exit $ac_status )
11126 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11127 See \`config.log' for more details." >&5
11128 echo "$as_me: error: cannot compute sizeof (int), 77
11129 See \`config.log' for more details." >&2;}
11130 { (exit 1); exit 1; }; }
11131 fi
11132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11133 fi
11134 fi
11135 rm -f conftest.val
11136 else
11137 ac_cv_sizeof_int=0
11138 fi
11139 fi
11140 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11141 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11142 cat >>confdefs.h <<_ACEOF
11143 #define SIZEOF_INT $ac_cv_sizeof_int
11144 _ACEOF
11145
11146
11147 echo "$as_me:$LINENO: checking for long" >&5
11148 echo $ECHO_N "checking for long... $ECHO_C" >&6
11149 if test "${ac_cv_type_long+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152 cat >conftest.$ac_ext <<_ACEOF
11153 /* confdefs.h. */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11158 $ac_includes_default
11159 int
11160 main ()
11161 {
11162 if ((long *) 0)
11163 return 0;
11164 if (sizeof (long))
11165 return 0;
11166 ;
11167 return 0;
11168 }
11169 _ACEOF
11170 rm -f conftest.$ac_objext
11171 if { (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
11192 else
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11195
11196 ac_cv_type_long=no
11197 fi
11198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11199 fi
11200 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11201 echo "${ECHO_T}$ac_cv_type_long" >&6
11202
11203 echo "$as_me:$LINENO: checking size of long" >&5
11204 echo $ECHO_N "checking size of long... $ECHO_C" >&6
11205 if test "${ac_cv_sizeof_long+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
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.
11215 cat >conftest.$ac_ext <<_ACEOF
11216 /* confdefs.h. */
11217 _ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 $ac_includes_default
11222 int
11223 main ()
11224 {
11225 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11226 test_array [0] = 0
11227
11228 ;
11229 return 0;
11230 }
11231 _ACEOF
11232 rm -f conftest.$ac_objext
11233 if { (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
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h. */
11261 $ac_includes_default
11262 int
11263 main ()
11264 {
11265 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11266 test_array [0] = 0
11267
11268 ;
11269 return 0;
11270 }
11271 _ACEOF
11272 rm -f conftest.$ac_objext
11273 if { (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
11294 else
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11297
11298 ac_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`
11304 fi
11305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11306 done
11307 else
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11310
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h. */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 $ac_includes_default
11318 int
11319 main ()
11320 {
11321 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11322 test_array [0] = 0
11323
11324 ;
11325 return 0;
11326 }
11327 _ACEOF
11328 rm -f conftest.$ac_objext
11329 if { (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
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 $ac_includes_default
11358 int
11359 main ()
11360 {
11361 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11362 test_array [0] = 0
11363
11364 ;
11365 return 0;
11366 }
11367 _ACEOF
11368 rm -f conftest.$ac_objext
11369 if { (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
11390 else
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11393
11394 ac_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`
11400 fi
11401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11402 done
11403 else
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407 ac_lo= ac_hi=
11408 fi
11409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11410 fi
11411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11412 # Binary search between lo and hi bounds.
11413 while 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
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 $ac_includes_default
11422 int
11423 main ()
11424 {
11425 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11426 test_array [0] = 0
11427
11428 ;
11429 return 0;
11430 }
11431 _ACEOF
11432 rm -f conftest.$ac_objext
11433 if { (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
11454 else
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11457
11458 ac_lo=`expr '(' $ac_mid ')' + 1`
11459 fi
11460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11461 done
11462 case $ac_lo in
11463 ?*) ac_cv_sizeof_long=$ac_lo;;
11464 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11465 See \`config.log' for more details." >&5
11466 echo "$as_me: error: cannot compute sizeof (long), 77
11467 See \`config.log' for more details." >&2;}
11468 { (exit 1); exit 1; }; } ;;
11469 esac
11470 else
11471 if test "$cross_compiling" = yes; then
11472 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11473 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11474 { (exit 1); exit 1; }; }
11475 else
11476 cat >conftest.$ac_ext <<_ACEOF
11477 /* confdefs.h. */
11478 _ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h. */
11482 $ac_includes_default
11483 long longval () { return (long) (sizeof (long)); }
11484 unsigned long ulongval () { return (long) (sizeof (long)); }
11485 #include <stdio.h>
11486 #include <stdlib.h>
11487 int
11488 main ()
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
11514 rm -f conftest$ac_exeext
11515 if { (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`
11526 else
11527 echo "$as_me: program exited with status $ac_status" >&5
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11530
11531 ( exit $ac_status )
11532 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11533 See \`config.log' for more details." >&5
11534 echo "$as_me: error: cannot compute sizeof (long), 77
11535 See \`config.log' for more details." >&2;}
11536 { (exit 1); exit 1; }; }
11537 fi
11538 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11539 fi
11540 fi
11541 rm -f conftest.val
11542 else
11543 ac_cv_sizeof_long=0
11544 fi
11545 fi
11546 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
11547 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
11548 cat >>confdefs.h <<_ACEOF
11549 #define SIZEOF_LONG $ac_cv_sizeof_long
11550 _ACEOF
11551
11552
11553 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11554 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11555 if test "${ac_cv_header_time+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558 cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h. */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 #include <sys/types.h>
11565 #include <sys/time.h>
11566 #include <time.h>
11567
11568 int
11569 main ()
11570 {
11571 if ((struct tm *) 0)
11572 return 0;
11573 ;
11574 return 0;
11575 }
11576 _ACEOF
11577 rm -f conftest.$ac_objext
11578 if { (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
11599 else
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11602
11603 ac_cv_header_time=no
11604 fi
11605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11606 fi
11607 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11608 echo "${ECHO_T}$ac_cv_header_time" >&6
11609 if test $ac_cv_header_time = yes; then
11610
11611 cat >>confdefs.h <<\_ACEOF
11612 #define TIME_WITH_SYS_TIME 1
11613 _ACEOF
11614
11615 fi
11616
11617 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11618 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11619 if test "${ac_cv_struct_tm+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 else
11622 cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h. */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11628 #include <sys/types.h>
11629 #include <time.h>
11630
11631 int
11632 main ()
11633 {
11634 struct tm *tp; tp->tm_sec;
11635 ;
11636 return 0;
11637 }
11638 _ACEOF
11639 rm -f conftest.$ac_objext
11640 if { (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
11661 else
11662 echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11664
11665 ac_cv_struct_tm=sys/time.h
11666 fi
11667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11668 fi
11669 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11670 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11671 if test $ac_cv_struct_tm = sys/time.h; then
11672
11673 cat >>confdefs.h <<\_ACEOF
11674 #define TM_IN_SYS_TIME 1
11675 _ACEOF
11676
11677 fi
11678
11679 echo "$as_me:$LINENO: checking for int8" >&5
11680 echo $ECHO_N "checking for int8... $ECHO_C" >&6
11681 if test "${ac_cv_type_int8+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684 cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h. */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690
11691 #if HAVE_INTTYPES_H
11692 # include <inttypes.h>
11693 #endif
11694
11695
11696 int
11697 main ()
11698 {
11699 if ((int8 *) 0)
11700 return 0;
11701 if (sizeof (int8))
11702 return 0;
11703 ;
11704 return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext
11708 if { (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
11729 else
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11732
11733 ac_cv_type_int8=no
11734 fi
11735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11736 fi
11737 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
11738 echo "${ECHO_T}$ac_cv_type_int8" >&6
11739 if test $ac_cv_type_int8 = yes; then
11740
11741 cat >>confdefs.h <<_ACEOF
11742 #define HAVE_INT8 1
11743 _ACEOF
11744
11745
11746 fi
11747 echo "$as_me:$LINENO: checking for int16" >&5
11748 echo $ECHO_N "checking for int16... $ECHO_C" >&6
11749 if test "${ac_cv_type_int16+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752 cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h. */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758
11759 #if HAVE_INTTYPES_H
11760 # include <inttypes.h>
11761 #endif
11762
11763
11764 int
11765 main ()
11766 {
11767 if ((int16 *) 0)
11768 return 0;
11769 if (sizeof (int16))
11770 return 0;
11771 ;
11772 return 0;
11773 }
11774 _ACEOF
11775 rm -f conftest.$ac_objext
11776 if { (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
11797 else
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801 ac_cv_type_int16=no
11802 fi
11803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11804 fi
11805 echo "$as_me:$LINENO: result: $ac_cv_type_int16" >&5
11806 echo "${ECHO_T}$ac_cv_type_int16" >&6
11807 if test $ac_cv_type_int16 = yes; then
11808
11809 cat >>confdefs.h <<_ACEOF
11810 #define HAVE_INT16 1
11811 _ACEOF
11812
11813
11814 fi
11815 echo "$as_me:$LINENO: checking for int32" >&5
11816 echo $ECHO_N "checking for int32... $ECHO_C" >&6
11817 if test "${ac_cv_type_int32+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 else
11820 cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h. */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826
11827 #if HAVE_INTTYPES_H
11828 # include <inttypes.h>
11829 #endif
11830
11831
11832 int
11833 main ()
11834 {
11835 if ((int32 *) 0)
11836 return 0;
11837 if (sizeof (int32))
11838 return 0;
11839 ;
11840 return 0;
11841 }
11842 _ACEOF
11843 rm -f conftest.$ac_objext
11844 if { (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
11865 else
11866 echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11868
11869 ac_cv_type_int32=no
11870 fi
11871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11872 fi
11873 echo "$as_me:$LINENO: result: $ac_cv_type_int32" >&5
11874 echo "${ECHO_T}$ac_cv_type_int32" >&6
11875 if test $ac_cv_type_int32 = yes; then
11876
11877 cat >>confdefs.h <<_ACEOF
11878 #define HAVE_INT32 1
11879 _ACEOF
11880
11881
11882 fi
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896 for ac_func in floor isascii memmove memset mmap pow sqrt strchr strrchr strstr strtol
11897 do
11898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11899 echo "$as_me:$LINENO: checking for $ac_func" >&5
11900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11901 if eval "test \"\${$as_ac_var+set}\" = set"; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904 cat >conftest.$ac_ext <<_ACEOF
11905 /* confdefs.h. */
11906 _ACEOF
11907 cat confdefs.h >>conftest.$ac_ext
11908 cat >>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
11929 extern "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. */
11934 char $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)
11939 choke me
11940 #else
11941 char (*f) () = $ac_func;
11942 #endif
11943 #ifdef __cplusplus
11944 }
11945 #endif
11946
11947 int
11948 main ()
11949 {
11950 return f != $ac_func;
11951 ;
11952 return 0;
11953 }
11954 _ACEOF
11955 rm -f conftest.$ac_objext conftest$ac_exeext
11956 if { (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"
11977 else
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981 eval "$as_ac_var=no"
11982 fi
11983 rm -f conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985 fi
11986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11988 if 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
11993 fi
11994 done
11995
11996
11997
11998 for ac_func in getopt
11999 do
12000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12001 echo "$as_me:$LINENO: checking for $ac_func" >&5
12002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12003 if eval "test \"\${$as_ac_var+set}\" = set"; then
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 else
12006 cat >conftest.$ac_ext <<_ACEOF
12007 /* confdefs.h. */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>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
12031 extern "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. */
12036 char $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)
12041 choke me
12042 #else
12043 char (*f) () = $ac_func;
12044 #endif
12045 #ifdef __cplusplus
12046 }
12047 #endif
12048
12049 int
12050 main ()
12051 {
12052 return f != $ac_func;
12053 ;
12054 return 0;
12055 }
12056 _ACEOF
12057 rm -f conftest.$ac_objext conftest$ac_exeext
12058 if { (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"
12079 else
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12082
12083 eval "$as_ac_var=no"
12084 fi
12085 rm -f conftest.err conftest.$ac_objext \
12086 conftest$ac_exeext conftest.$ac_ext
12087 fi
12088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12090 if 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
12095 else
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" ;;
12102 esac
12103
12104 fi
12105 done
12106
12107
12108
12109 for ac_func in strcasecmp
12110 do
12111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12112 echo "$as_me:$LINENO: checking for $ac_func" >&5
12113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12114 if eval "test \"\${$as_ac_var+set}\" = set"; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117 cat >conftest.$ac_ext <<_ACEOF
12118 /* confdefs.h. */
12119 _ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>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
12142 extern "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. */
12147 char $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)
12152 choke me
12153 #else
12154 char (*f) () = $ac_func;
12155 #endif
12156 #ifdef __cplusplus
12157 }
12158 #endif
12159
12160 int
12161 main ()
12162 {
12163 return f != $ac_func;
12164 ;
12165 return 0;
12166 }
12167 _ACEOF
12168 rm -f conftest.$ac_objext conftest$ac_exeext
12169 if { (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"
12190 else
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12193
12194 eval "$as_ac_var=no"
12195 fi
12196 rm -f conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
12198 fi
12199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12201 if 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
12206 else
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" ;;
12213 esac
12214
12215 fi
12216 done
12217
12218
12219
12220 for ac_func in strtoul
12221 do
12222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12223 echo "$as_me:$LINENO: checking for $ac_func" >&5
12224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12225 if eval "test \"\${$as_ac_var+set}\" = set"; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228 cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h. */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>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
12253 extern "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. */
12258 char $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)
12263 choke me
12264 #else
12265 char (*f) () = $ac_func;
12266 #endif
12267 #ifdef __cplusplus
12268 }
12269 #endif
12270
12271 int
12272 main ()
12273 {
12274 return f != $ac_func;
12275 ;
12276 return 0;
12277 }
12278 _ACEOF
12279 rm -f conftest.$ac_objext conftest$ac_exeext
12280 if { (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"
12301 else
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305 eval "$as_ac_var=no"
12306 fi
12307 rm -f conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12309 fi
12310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12312 if 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
12317 else
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" ;;
12324 esac
12325
12326 fi
12327 done
12328
12329
12330
12331 for ac_func in lfind
12332 do
12333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12334 echo "$as_me:$LINENO: checking for $ac_func" >&5
12335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12336 if eval "test \"\${$as_ac_var+set}\" = set"; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339 cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h. */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>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
12364 extern "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. */
12369 char $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)
12374 choke me
12375 #else
12376 char (*f) () = $ac_func;
12377 #endif
12378 #ifdef __cplusplus
12379 }
12380 #endif
12381
12382 int
12383 main ()
12384 {
12385 return f != $ac_func;
12386 ;
12387 return 0;
12388 }
12389 _ACEOF
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (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"
12412 else
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 eval "$as_ac_var=no"
12417 fi
12418 rm -f conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
12420 fi
12421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12423 if 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
12428 else
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" ;;
12435 esac
12436
12437 fi
12438 done
12439
12440
12441
12442 echo "$as_me:$LINENO: checking native cpu bit order" >&5
12443 echo $ECHO_N "checking native cpu bit order... $ECHO_C" >&6
12444 case "$target_cpu" in
12445 i*86*)
12446 HOST_FILLORDER=FILLORDER_LSB2MSB
12447 echo "$as_me:$LINENO: result: lsb2msb" >&5
12448 echo "${ECHO_T}lsb2msb" >&6
12449 ;;
12450 *)
12451 HOST_FILLORDER=FILLORDER_MSB2LSB
12452 echo "$as_me:$LINENO: result: msb2lsb" >&5
12453 echo "${ECHO_T}msb2lsb" >&6
12454 ;;
12455 esac
12456
12457 cat >>confdefs.h <<_ACEOF
12458 #define HOST_FILLORDER $HOST_FILLORDER
12459 _ACEOF
12460
12461
12462 if test "$ac_cv_c_bigendian" = yes ; then
12463 HOST_BIGENDIAN=1
12464 else
12465 HOST_BIGENDIAN=0
12466 fi
12467
12468 cat >>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
12476 HAVE_IEEEFP=1
12477
12478 cat >>confdefs.h <<_ACEOF
12479 #define HAVE_IEEEFP $HAVE_IEEEFP
12480 _ACEOF
12481
12482
12483
12484 # Check whether --enable-rpath or --disable-rpath was given.
12485 if test "${enable_rpath+set}" = set; then
12486 enableval="$enable_rpath"
12487 HAVE_RPATH=$enableval
12488 else
12489 HAVE_RPATH=no
12490 fi;
12491
12492
12493 if test "$HAVE_RPATH" = "yes"; then
12494 HAVE_RPATH_TRUE=
12495 HAVE_RPATH_FALSE='#'
12496 else
12497 HAVE_RPATH_TRUE='#'
12498 HAVE_RPATH_FALSE=
12499 fi
12500
12501
12502
12503 # Check whether --enable-largefile or --disable-largefile was given.
12504 if test "${enable_largefile+set}" = set; then
12505 enableval="$enable_largefile"
12506
12507 fi;
12508 if test "$enable_largefile" != no; then
12509
12510 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
12511 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
12512 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 else
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
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>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];
12536 int
12537 main ()
12538 {
12539
12540 ;
12541 return 0;
12542 }
12543 _ACEOF
12544 rm -f conftest.$ac_objext
12545 if { (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
12566 else
12567 echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12569
12570 fi
12571 rm -f conftest.err conftest.$ac_objext
12572 CC="$CC -n32"
12573 rm -f conftest.$ac_objext
12574 if { (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
12595 else
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12598
12599 fi
12600 rm -f conftest.err conftest.$ac_objext
12601 break
12602 done
12603 CC=$ac_save_CC
12604 rm -f conftest.$ac_ext
12605 fi
12606 fi
12607 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
12608 echo "${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
12614 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
12615 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12618 while :; do
12619 ac_cv_sys_file_offset_bits=no
12620 cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h. */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>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];
12635 int
12636 main ()
12637 {
12638
12639 ;
12640 return 0;
12641 }
12642 _ACEOF
12643 rm -f conftest.$ac_objext
12644 if { (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
12665 else
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12668
12669 fi
12670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12671 cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h. */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>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];
12687 int
12688 main ()
12689 {
12690
12691 ;
12692 return 0;
12693 }
12694 _ACEOF
12695 rm -f conftest.$ac_objext
12696 if { (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
12717 else
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721 fi
12722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12723 break
12724 done
12725 fi
12726 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
12727 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
12728 if test "$ac_cv_sys_file_offset_bits" != no; then
12729
12730 cat >>confdefs.h <<_ACEOF
12731 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12732 _ACEOF
12733
12734 fi
12735 rm -f conftest*
12736 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
12737 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
12738 if test "${ac_cv_sys_large_files+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 else
12741 while :; do
12742 ac_cv_sys_large_files=no
12743 cat >conftest.$ac_ext <<_ACEOF
12744 /* confdefs.h. */
12745 _ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>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];
12758 int
12759 main ()
12760 {
12761
12762 ;
12763 return 0;
12764 }
12765 _ACEOF
12766 rm -f conftest.$ac_objext
12767 if { (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
12788 else
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12791
12792 fi
12793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h. */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>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];
12810 int
12811 main ()
12812 {
12813
12814 ;
12815 return 0;
12816 }
12817 _ACEOF
12818 rm -f conftest.$ac_objext
12819 if { (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
12840 else
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12843
12844 fi
12845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12846 break
12847 done
12848 fi
12849 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
12850 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
12851 if test "$ac_cv_sys_large_files" != no; then
12852
12853 cat >>confdefs.h <<_ACEOF
12854 #define _LARGE_FILES $ac_cv_sys_large_files
12855 _ACEOF
12856
12857 fi
12858 rm -f conftest*
12859 fi
12860
12861
12862
12863 LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
12864
12865
12866 # Check whether --with-docdir or --without-docdir was given.
12867 if test "${with_docdir+set}" = set; then
12868 withval="$with_docdir"
12869
12870 fi;
12871 if test "x$with_docdir" != "x" ; then
12872 LIBTIFF_DOCDIR=$with_docdir
12873 fi
12874
12875
12876
12877
12878 # Check whether --enable-ccitt or --disable-ccitt was given.
12879 if test "${enable_ccitt+set}" = set; then
12880 enableval="$enable_ccitt"
12881 HAVE_CCITT=$enableval
12882 else
12883 HAVE_CCITT=yes
12884 fi;
12885
12886 if test "$HAVE_CCITT" = "yes" ; then
12887
12888 cat >>confdefs.h <<\_ACEOF
12889 #define CCITT_SUPPORT 1
12890 _ACEOF
12891
12892 fi
12893
12894 # Check whether --enable-packbits or --disable-packbits was given.
12895 if test "${enable_packbits+set}" = set; then
12896 enableval="$enable_packbits"
12897 HAVE_PACKBITS=$enableval
12898 else
12899 HAVE_PACKBITS=yes
12900 fi;
12901
12902 if test "$HAVE_PACKBITS" = "yes" ; then
12903
12904 cat >>confdefs.h <<\_ACEOF
12905 #define PACKBITS_SUPPORT 1
12906 _ACEOF
12907
12908 fi
12909
12910 # Check whether --enable-lzw or --disable-lzw was given.
12911 if test "${enable_lzw+set}" = set; then
12912 enableval="$enable_lzw"
12913 HAVE_LZW=$enableval
12914 else
12915 HAVE_LZW=yes
12916 fi;
12917
12918 if test "$HAVE_LZW" = "yes" ; then
12919
12920 cat >>confdefs.h <<\_ACEOF
12921 #define LZW_SUPPORT 1
12922 _ACEOF
12923
12924 fi
12925
12926 # Check whether --enable-thunder or --disable-thunder was given.
12927 if test "${enable_thunder+set}" = set; then
12928 enableval="$enable_thunder"
12929 HAVE_THUNDER=$enableval
12930 else
12931 HAVE_THUNDER=yes
12932 fi;
12933
12934 if test "$HAVE_THUNDER" = "yes" ; then
12935
12936 cat >>confdefs.h <<\_ACEOF
12937 #define THUNDER_SUPPORT 1
12938 _ACEOF
12939
12940 fi
12941
12942 HAVE_NEXT=yes
12943
12944 # Check whether --enable-next or --disable-next was given.
12945 if test "${enable_next+set}" = set; then
12946 enableval="$enable_next"
12947 HAVE_NEXT=$enableval
12948 else
12949 HAVE_NEXT=yes
12950 fi;
12951
12952 if test "$HAVE_NEXT" = "yes" ; then
12953
12954 cat >>confdefs.h <<\_ACEOF
12955 #define NEXT_SUPPORT 1
12956 _ACEOF
12957
12958 fi
12959
12960 # Check whether --enable-logluv or --disable-logluv was given.
12961 if test "${enable_logluv+set}" = set; then
12962 enableval="$enable_logluv"
12963 HAVE_LOGLUV=$enableval
12964 else
12965 HAVE_LOGLUV=yes
12966 fi;
12967
12968 if test "$HAVE_LOGLUV" = "yes" ; then
12969
12970 cat >>confdefs.h <<\_ACEOF
12971 #define LOGLUV_SUPPORT 1
12972 _ACEOF
12973
12974 fi
12975
12976
12977 # Check whether --enable-mdi or --disable-mdi was given.
12978 if test "${enable_mdi+set}" = set; then
12979 enableval="$enable_mdi"
12980 HAVE_MDI=$enableval
12981 else
12982 HAVE_MDI=yes
12983 fi;
12984
12985 if test "$HAVE_MDI" = "yes" ; then
12986
12987 cat >>confdefs.h <<\_ACEOF
12988 #define MDI_SUPPORT 1
12989 _ACEOF
12990
12991 fi
12992
12993
12994 HAVE_ZLIB=no
12995
12996 # Check whether --enable-zlib or --disable-zlib was given.
12997 if test "${enable_zlib+set}" = set; then
12998 enableval="$enable_zlib"
12999
13000 fi;
13001
13002 # Check whether --with-zlib-include-dir or --without-zlib-include-dir was given.
13003 if test "${with_zlib_include_dir+set}" = set; then
13004 withval="$with_zlib_include_dir"
13005
13006 fi;
13007
13008 # Check whether --with-zlib-lib-dir or --without-zlib-lib-dir was given.
13009 if test "${with_zlib_lib_dir+set}" = set; then
13010 withval="$with_zlib_lib_dir"
13011
13012 fi;
13013
13014 if 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
13021 echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
13022 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 else
13025 ac_check_lib_save_LIBS=$LIBS
13026 LIBS="-lz $LIBS"
13027 cat >conftest.$ac_ext <<_ACEOF
13028 /* confdefs.h. */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033
13034 /* Override any gcc2 internal prototype to avoid an error. */
13035 #ifdef __cplusplus
13036 extern "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. */
13040 char inflateEnd ();
13041 int
13042 main ()
13043 {
13044 inflateEnd ();
13045 ;
13046 return 0;
13047 }
13048 _ACEOF
13049 rm -f conftest.$ac_objext conftest$ac_exeext
13050 if { (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
13071 else
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13074
13075 ac_cv_lib_z_inflateEnd=no
13076 fi
13077 rm -f conftest.err conftest.$ac_objext \
13078 conftest$ac_exeext conftest.$ac_ext
13079 LIBS=$ac_check_lib_save_LIBS
13080 fi
13081 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
13082 echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
13083 if test $ac_cv_lib_z_inflateEnd = yes; then
13084 zlib_lib=yes
13085 else
13086 zlib_lib=no
13087 fi
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
13091 echo "$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
13100 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
13101 if test "${ac_cv_header_zlib_h+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 fi
13104 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13105 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
13106 else
13107 # Is the header compilable?
13108 echo "$as_me:$LINENO: checking zlib.h usability" >&5
13109 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
13110 cat >conftest.$ac_ext <<_ACEOF
13111 /* confdefs.h. */
13112 _ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h. */
13116 $ac_includes_default
13117 #include <zlib.h>
13118 _ACEOF
13119 rm -f conftest.$ac_objext
13120 if { (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
13141 else
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13144
13145 ac_header_compiler=no
13146 fi
13147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13149 echo "${ECHO_T}$ac_header_compiler" >&6
13150
13151 # Is the header present?
13152 echo "$as_me:$LINENO: checking zlib.h presence" >&5
13153 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
13154 cat >conftest.$ac_ext <<_ACEOF
13155 /* confdefs.h. */
13156 _ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13160 #include <zlib.h>
13161 _ACEOF
13162 if { (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
13176 else
13177 ac_cpp_err=yes
13178 fi
13179 if test -z "$ac_cpp_err"; then
13180 ac_header_preproc=yes
13181 else
13182 echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13184
13185 ac_header_preproc=no
13186 fi
13187 rm -f conftest.err conftest.$ac_ext
13188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13189 echo "${ECHO_T}$ac_header_preproc" >&6
13190
13191 # So? What about this header?
13192 case $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
13195 echo "$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
13197 echo "$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
13202 echo "$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
13204 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
13205 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
13206 echo "$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
13208 echo "$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
13210 echo "$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
13212 echo "$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 ;;
13222 esac
13223 echo "$as_me:$LINENO: checking for zlib.h" >&5
13224 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
13225 if test "${ac_cv_header_zlib_h+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228 ac_cv_header_zlib_h=$ac_header_preproc
13229 fi
13230 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13231 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
13232
13233 fi
13234 if test $ac_cv_header_zlib_h = yes; then
13235 zlib_h=yes
13236 else
13237 zlib_h=no
13238 fi
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
13243 echo "$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
13251 fi
13252
13253 if test "$HAVE_ZLIB" = "yes" ; then
13254
13255 cat >>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
13265 fi
13266
13267
13268 # Check whether --enable-pixarlog or --disable-pixarlog was given.
13269 if test "${enable_pixarlog+set}" = set; then
13270 enableval="$enable_pixarlog"
13271 HAVE_PIXARLOG=$enableval
13272 else
13273 HAVE_PIXARLOG=yes
13274 fi;
13275
13276 if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
13277
13278 cat >>confdefs.h <<\_ACEOF
13279 #define PIXARLOG_SUPPORT 1
13280 _ACEOF
13281
13282 else
13283 HAVE_PIXARLOG=no
13284 fi
13285
13286
13287 HAVE_JPEG=no
13288
13289 # Check whether --enable-jpeg or --disable-jpeg was given.
13290 if test "${enable_jpeg+set}" = set; then
13291 enableval="$enable_jpeg"
13292
13293 fi;
13294
13295 # Check whether --with-jpeg-include-dir or --without-jpeg-include-dir was given.
13296 if test "${with_jpeg_include_dir+set}" = set; then
13297 withval="$with_jpeg_include_dir"
13298
13299 fi;
13300
13301 # Check whether --with-jpeg-lib-dir or --without-jpeg-lib-dir was given.
13302 if test "${with_jpeg_lib_dir+set}" = set; then
13303 withval="$with_jpeg_lib_dir"
13304
13305 fi;
13306
13307 if 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
13315 echo $ECHO_N "checking for jpeg_read_scanlines in -ljpeg... $ECHO_C" >&6
13316 if test "${ac_cv_lib_jpeg_jpeg_read_scanlines+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 else
13319 ac_check_lib_save_LIBS=$LIBS
13320 LIBS="-ljpeg $LIBS"
13321 cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h. */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327
13328 /* Override any gcc2 internal prototype to avoid an error. */
13329 #ifdef __cplusplus
13330 extern "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. */
13334 char jpeg_read_scanlines ();
13335 int
13336 main ()
13337 {
13338 jpeg_read_scanlines ();
13339 ;
13340 return 0;
13341 }
13342 _ACEOF
13343 rm -f conftest.$ac_objext conftest$ac_exeext
13344 if { (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
13365 else
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13368
13369 ac_cv_lib_jpeg_jpeg_read_scanlines=no
13370 fi
13371 rm -f conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13373 LIBS=$ac_check_lib_save_LIBS
13374 fi
13375 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
13376 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6
13377 if test $ac_cv_lib_jpeg_jpeg_read_scanlines = yes; then
13378 jpeg_lib=yes
13379 else
13380 jpeg_lib=no
13381 fi
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
13385 echo "$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
13394 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
13395 if test "${ac_cv_header_jpeglib_h+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13397 fi
13398 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
13399 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
13400 else
13401 # Is the header compilable?
13402 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
13403 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
13404 cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h. */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 $ac_includes_default
13411 #include <jpeglib.h>
13412 _ACEOF
13413 rm -f conftest.$ac_objext
13414 if { (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
13435 else
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13438
13439 ac_header_compiler=no
13440 fi
13441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13443 echo "${ECHO_T}$ac_header_compiler" >&6
13444
13445 # Is the header present?
13446 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
13447 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
13448 cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h. */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13454 #include <jpeglib.h>
13455 _ACEOF
13456 if { (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
13470 else
13471 ac_cpp_err=yes
13472 fi
13473 if test -z "$ac_cpp_err"; then
13474 ac_header_preproc=yes
13475 else
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13478
13479 ac_header_preproc=no
13480 fi
13481 rm -f conftest.err conftest.$ac_ext
13482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13483 echo "${ECHO_T}$ac_header_preproc" >&6
13484
13485 # So? What about this header?
13486 case $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
13489 echo "$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
13491 echo "$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
13496 echo "$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
13498 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
13500 echo "$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
13502 echo "$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
13504 echo "$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
13506 echo "$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 ;;
13516 esac
13517 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
13518 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
13519 if test "${ac_cv_header_jpeglib_h+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13521 else
13522 ac_cv_header_jpeglib_h=$ac_header_preproc
13523 fi
13524 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
13525 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
13526
13527 fi
13528 if test $ac_cv_header_jpeglib_h = yes; then
13529 jpeg_h=yes
13530 else
13531 jpeg_h=no
13532 fi
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
13537 echo "$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
13545 fi
13546
13547 if test "$HAVE_JPEG" = "yes" ; then
13548
13549 cat >>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
13559 fi
13560
13561
13562 # Check whether --enable-old-jpeg or --disable-old-jpeg was given.
13563 if test "${enable_old_jpeg+set}" = set; then
13564 enableval="$enable_old_jpeg"
13565 HAVE_OJPEG=$enableval
13566 else
13567 HAVE_OJPEG=no
13568 fi;
13569
13570 if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
13571
13572 cat >>confdefs.h <<\_ACEOF
13573 #define OJPEG_SUPPORT 1
13574 _ACEOF
13575
13576 else
13577 HAVE_OJPEG=no
13578 fi
13579
13580
13581 # Check whether --enable-cxx or --disable-cxx was given.
13582 if test "${enable_cxx+set}" = set; then
13583 enableval="$enable_cxx"
13584 HAVE_CXX=$enableval
13585 else
13586 HAVE_CXX=yes
13587 fi;
13588
13589 if test "$HAVE_CXX" = "yes" ; then
13590
13591 cat >>confdefs.h <<\_ACEOF
13592 #define CXX_SUPPORT 1
13593 _ACEOF
13594
13595 else
13596 HAVE_CXX=no
13597 fi
13598
13599
13600
13601 if test "$HAVE_CXX" = "yes"; then
13602 HAVE_CXX_TRUE=
13603 HAVE_CXX_FALSE='#'
13604 else
13605 HAVE_CXX_TRUE='#'
13606 HAVE_CXX_FALSE=
13607 fi
13608
13609
13610
13611 HAVE_OPENGL=no
13612
13613
13614 if test "x$ac_path_x_has_been_run" != xyes; then
13615 echo "$as_me:$LINENO: checking for X" >&5
13616 echo $ECHO_N "checking for X... $ECHO_C" >&6
13617
13618 ac_path_x_has_been_run=yes
13619
13620 # Check whether --with-x or --without-x was given.
13621 if test "${with_x+set}" = set; then
13622 withval="$with_x"
13623
13624 fi;
13625 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13626 if test "x$with_x" = xno; then
13627 # The user explicitly disabled X.
13628 have_x=disabled
13629 else
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
13636 else
13637 # One or both of the vars are not set, and there is no cached value.
13638 ac_x_includes=no ac_x_libraries=no
13639 rm -fr conftest.dir
13640 if 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'
13644 acfindx:
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
13671 fi
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.
13675 ac_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
13710 if 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
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719 #include <X11/Xlib.h>
13720 _ACEOF
13721 if { (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
13735 else
13736 ac_cpp_err=yes
13737 fi
13738 if test -z "$ac_cpp_err"; then
13739 # We can compile using X headers with no special include directory.
13740 ac_x_includes=
13741 else
13742 echo "$as_me: failed program was:" >&5
13743 sed '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
13750 done
13751 fi
13752 rm -f conftest.err conftest.$ac_ext
13753 fi # $ac_x_includes = no
13754
13755 if 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
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767 #include <X11/Xlib.h>
13768 int
13769 main ()
13770 {
13771 XrmInitialize ()
13772 ;
13773 return 0;
13774 }
13775 _ACEOF
13776 rm -f conftest.$ac_objext conftest$ac_exeext
13777 if { (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.
13799 ac_x_libraries=
13800 else
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13803
13804 LIBS=$ac_save_LIBS
13805 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13806 do
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
13814 done
13815 fi
13816 rm -f conftest.err conftest.$ac_objext \
13817 conftest$ac_exeext conftest.$ac_ext
13818 fi # $ac_x_libraries = no
13819
13820 if 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"
13823 else
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"
13827 fi
13828 fi
13829
13830 fi
13831 eval "$ac_cv_have_x"
13832 fi # $with_x != no
13833
13834 if test "$have_x" != yes; then
13835 echo "$as_me:$LINENO: result: $have_x" >&5
13836 echo "${ECHO_T}$have_x" >&6
13837 no_x=yes
13838 else
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
13850 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
13851 fi
13852
13853 fi
13854 if test "$no_x" = yes; then
13855 # Not all programs may use this symbol, but it does not hurt to define it.
13856
13857 cat >>confdefs.h <<\_ACEOF
13858 #define X_DISPLAY_MISSING 1
13859 _ACEOF
13860
13861 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13862 else
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
13875 echo $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
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883
13884 int
13885 main ()
13886 {
13887
13888 ;
13889 return 0;
13890 }
13891 _ACEOF
13892 rm -f conftest.$ac_objext conftest$ac_exeext
13893 if { (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
13914 else
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918 ac_R_nospace=no
13919 fi
13920 rm -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
13924 echo "${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
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934
13935 int
13936 main ()
13937 {
13938
13939 ;
13940 return 0;
13941 }
13942 _ACEOF
13943 rm -f conftest.$ac_objext conftest$ac_exeext
13944 if { (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
13965 else
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13968
13969 ac_R_space=no
13970 fi
13971 rm -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
13975 echo "${ECHO_T}yes" >&6
13976 X_LIBS="$X_LIBS -R $x_libraries"
13977 else
13978 echo "$as_me:$LINENO: result: neither works" >&5
13979 echo "${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
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14003
14004 /* Override any gcc2 internal prototype to avoid an error. */
14005 #ifdef __cplusplus
14006 extern "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. */
14010 char XOpenDisplay ();
14011 int
14012 main ()
14013 {
14014 XOpenDisplay ();
14015 ;
14016 return 0;
14017 }
14018 _ACEOF
14019 rm -f conftest.$ac_objext conftest$ac_exeext
14020 if { (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 :
14041 else
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
14046 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
14047 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050 ac_check_lib_save_LIBS=$LIBS
14051 LIBS="-ldnet $LIBS"
14052 cat >conftest.$ac_ext <<_ACEOF
14053 /* confdefs.h. */
14054 _ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14058
14059 /* Override any gcc2 internal prototype to avoid an error. */
14060 #ifdef __cplusplus
14061 extern "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. */
14065 char dnet_ntoa ();
14066 int
14067 main ()
14068 {
14069 dnet_ntoa ();
14070 ;
14071 return 0;
14072 }
14073 _ACEOF
14074 rm -f conftest.$ac_objext conftest$ac_exeext
14075 if { (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
14096 else
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100 ac_cv_lib_dnet_dnet_ntoa=no
14101 fi
14102 rm -f conftest.err conftest.$ac_objext \
14103 conftest$ac_exeext conftest.$ac_ext
14104 LIBS=$ac_check_lib_save_LIBS
14105 fi
14106 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
14107 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
14108 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
14109 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14110 fi
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
14114 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
14115 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118 ac_check_lib_save_LIBS=$LIBS
14119 LIBS="-ldnet_stub $LIBS"
14120 cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h. */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126
14127 /* Override any gcc2 internal prototype to avoid an error. */
14128 #ifdef __cplusplus
14129 extern "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. */
14133 char dnet_ntoa ();
14134 int
14135 main ()
14136 {
14137 dnet_ntoa ();
14138 ;
14139 return 0;
14140 }
14141 _ACEOF
14142 rm -f conftest.$ac_objext conftest$ac_exeext
14143 if { (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
14164 else
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14167
14168 ac_cv_lib_dnet_stub_dnet_ntoa=no
14169 fi
14170 rm -f conftest.err conftest.$ac_objext \
14171 conftest$ac_exeext conftest.$ac_ext
14172 LIBS=$ac_check_lib_save_LIBS
14173 fi
14174 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
14175 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
14176 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
14177 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14178 fi
14179
14180 fi
14181 fi
14182 rm -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
14195 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
14196 if test "${ac_cv_func_gethostbyname+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 else
14199 cat >conftest.$ac_ext <<_ACEOF
14200 /* confdefs.h. */
14201 _ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>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
14224 extern "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. */
14229 char 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)
14234 choke me
14235 #else
14236 char (*f) () = gethostbyname;
14237 #endif
14238 #ifdef __cplusplus
14239 }
14240 #endif
14241
14242 int
14243 main ()
14244 {
14245 return f != gethostbyname;
14246 ;
14247 return 0;
14248 }
14249 _ACEOF
14250 rm -f conftest.$ac_objext conftest$ac_exeext
14251 if { (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
14272 else
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14275
14276 ac_cv_func_gethostbyname=no
14277 fi
14278 rm -f conftest.err conftest.$ac_objext \
14279 conftest$ac_exeext conftest.$ac_ext
14280 fi
14281 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
14282 echo "${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
14286 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
14287 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 else
14290 ac_check_lib_save_LIBS=$LIBS
14291 LIBS="-lnsl $LIBS"
14292 cat >conftest.$ac_ext <<_ACEOF
14293 /* confdefs.h. */
14294 _ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h. */
14298
14299 /* Override any gcc2 internal prototype to avoid an error. */
14300 #ifdef __cplusplus
14301 extern "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. */
14305 char gethostbyname ();
14306 int
14307 main ()
14308 {
14309 gethostbyname ();
14310 ;
14311 return 0;
14312 }
14313 _ACEOF
14314 rm -f conftest.$ac_objext conftest$ac_exeext
14315 if { (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
14336 else
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14339
14340 ac_cv_lib_nsl_gethostbyname=no
14341 fi
14342 rm -f conftest.err conftest.$ac_objext \
14343 conftest$ac_exeext conftest.$ac_ext
14344 LIBS=$ac_check_lib_save_LIBS
14345 fi
14346 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
14347 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
14348 if test $ac_cv_lib_nsl_gethostbyname = yes; then
14349 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14350 fi
14351
14352 if test $ac_cv_lib_nsl_gethostbyname = no; then
14353 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
14354 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
14355 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358 ac_check_lib_save_LIBS=$LIBS
14359 LIBS="-lbsd $LIBS"
14360 cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h. */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14366
14367 /* Override any gcc2 internal prototype to avoid an error. */
14368 #ifdef __cplusplus
14369 extern "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. */
14373 char gethostbyname ();
14374 int
14375 main ()
14376 {
14377 gethostbyname ();
14378 ;
14379 return 0;
14380 }
14381 _ACEOF
14382 rm -f conftest.$ac_objext conftest$ac_exeext
14383 if { (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
14404 else
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14407
14408 ac_cv_lib_bsd_gethostbyname=no
14409 fi
14410 rm -f conftest.err conftest.$ac_objext \
14411 conftest$ac_exeext conftest.$ac_ext
14412 LIBS=$ac_check_lib_save_LIBS
14413 fi
14414 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
14415 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
14416 if test $ac_cv_lib_bsd_gethostbyname = yes; then
14417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
14418 fi
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
14431 echo $ECHO_N "checking for connect... $ECHO_C" >&6
14432 if test "${ac_cv_func_connect+set}" = set; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 else
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h. */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>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
14460 extern "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. */
14465 char 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)
14470 choke me
14471 #else
14472 char (*f) () = connect;
14473 #endif
14474 #ifdef __cplusplus
14475 }
14476 #endif
14477
14478 int
14479 main ()
14480 {
14481 return f != connect;
14482 ;
14483 return 0;
14484 }
14485 _ACEOF
14486 rm -f conftest.$ac_objext conftest$ac_exeext
14487 if { (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
14508 else
14509 echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14511
14512 ac_cv_func_connect=no
14513 fi
14514 rm -f conftest.err conftest.$ac_objext \
14515 conftest$ac_exeext conftest.$ac_ext
14516 fi
14517 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
14518 echo "${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
14522 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
14523 if test "${ac_cv_lib_socket_connect+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526 ac_check_lib_save_LIBS=$LIBS
14527 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14528 cat >conftest.$ac_ext <<_ACEOF
14529 /* confdefs.h. */
14530 _ACEOF
14531 cat confdefs.h >>conftest.$ac_ext
14532 cat >>conftest.$ac_ext <<_ACEOF
14533 /* end confdefs.h. */
14534
14535 /* Override any gcc2 internal prototype to avoid an error. */
14536 #ifdef __cplusplus
14537 extern "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. */
14541 char connect ();
14542 int
14543 main ()
14544 {
14545 connect ();
14546 ;
14547 return 0;
14548 }
14549 _ACEOF
14550 rm -f conftest.$ac_objext conftest$ac_exeext
14551 if { (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
14572 else
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14575
14576 ac_cv_lib_socket_connect=no
14577 fi
14578 rm -f conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext conftest.$ac_ext
14580 LIBS=$ac_check_lib_save_LIBS
14581 fi
14582 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
14583 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
14584 if test $ac_cv_lib_socket_connect = yes; then
14585 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14586 fi
14587
14588 fi
14589
14590 # Guillermo Gomez says -lposix is necessary on A/UX.
14591 echo "$as_me:$LINENO: checking for remove" >&5
14592 echo $ECHO_N "checking for remove... $ECHO_C" >&6
14593 if test "${ac_cv_func_remove+set}" = set; then
14594 echo $ECHO_N "(cached) $ECHO_C" >&6
14595 else
14596 cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h. */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>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
14621 extern "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. */
14626 char 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)
14631 choke me
14632 #else
14633 char (*f) () = remove;
14634 #endif
14635 #ifdef __cplusplus
14636 }
14637 #endif
14638
14639 int
14640 main ()
14641 {
14642 return f != remove;
14643 ;
14644 return 0;
14645 }
14646 _ACEOF
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (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
14669 else
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14672
14673 ac_cv_func_remove=no
14674 fi
14675 rm -f conftest.err conftest.$ac_objext \
14676 conftest$ac_exeext conftest.$ac_ext
14677 fi
14678 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
14679 echo "${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
14683 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
14684 if test "${ac_cv_lib_posix_remove+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687 ac_check_lib_save_LIBS=$LIBS
14688 LIBS="-lposix $LIBS"
14689 cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h. */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695
14696 /* Override any gcc2 internal prototype to avoid an error. */
14697 #ifdef __cplusplus
14698 extern "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. */
14702 char remove ();
14703 int
14704 main ()
14705 {
14706 remove ();
14707 ;
14708 return 0;
14709 }
14710 _ACEOF
14711 rm -f conftest.$ac_objext conftest$ac_exeext
14712 if { (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
14733 else
14734 echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14736
14737 ac_cv_lib_posix_remove=no
14738 fi
14739 rm -f conftest.err conftest.$ac_objext \
14740 conftest$ac_exeext conftest.$ac_ext
14741 LIBS=$ac_check_lib_save_LIBS
14742 fi
14743 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
14744 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
14745 if test $ac_cv_lib_posix_remove = yes; then
14746 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14747 fi
14748
14749 fi
14750
14751 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14752 echo "$as_me:$LINENO: checking for shmat" >&5
14753 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
14754 if test "${ac_cv_func_shmat+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 else
14757 cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h. */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>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
14782 extern "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. */
14787 char 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)
14792 choke me
14793 #else
14794 char (*f) () = shmat;
14795 #endif
14796 #ifdef __cplusplus
14797 }
14798 #endif
14799
14800 int
14801 main ()
14802 {
14803 return f != shmat;
14804 ;
14805 return 0;
14806 }
14807 _ACEOF
14808 rm -f conftest.$ac_objext conftest$ac_exeext
14809 if { (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
14830 else
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14833
14834 ac_cv_func_shmat=no
14835 fi
14836 rm -f conftest.err conftest.$ac_objext \
14837 conftest$ac_exeext conftest.$ac_ext
14838 fi
14839 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
14840 echo "${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
14844 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
14845 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848 ac_check_lib_save_LIBS=$LIBS
14849 LIBS="-lipc $LIBS"
14850 cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h. */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14856
14857 /* Override any gcc2 internal prototype to avoid an error. */
14858 #ifdef __cplusplus
14859 extern "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. */
14863 char shmat ();
14864 int
14865 main ()
14866 {
14867 shmat ();
14868 ;
14869 return 0;
14870 }
14871 _ACEOF
14872 rm -f conftest.$ac_objext conftest$ac_exeext
14873 if { (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
14894 else
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14897
14898 ac_cv_lib_ipc_shmat=no
14899 fi
14900 rm -f conftest.err conftest.$ac_objext \
14901 conftest$ac_exeext conftest.$ac_ext
14902 LIBS=$ac_check_lib_save_LIBS
14903 fi
14904 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
14905 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
14906 if test $ac_cv_lib_ipc_shmat = yes; then
14907 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14908 fi
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
14923 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
14924 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 else
14927 ac_check_lib_save_LIBS=$LIBS
14928 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14929 cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h. */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935
14936 /* Override any gcc2 internal prototype to avoid an error. */
14937 #ifdef __cplusplus
14938 extern "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. */
14942 char IceConnectionNumber ();
14943 int
14944 main ()
14945 {
14946 IceConnectionNumber ();
14947 ;
14948 return 0;
14949 }
14950 _ACEOF
14951 rm -f conftest.$ac_objext conftest$ac_exeext
14952 if { (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
14973 else
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14976
14977 ac_cv_lib_ICE_IceConnectionNumber=no
14978 fi
14979 rm -f conftest.err conftest.$ac_objext \
14980 conftest$ac_exeext conftest.$ac_ext
14981 LIBS=$ac_check_lib_save_LIBS
14982 fi
14983 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14984 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
14985 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
14986 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14987 fi
14988
14989 LDFLAGS=$ac_save_LDFLAGS
14990
14991 fi
14992
14993
14994
14995
14996
14997
14998 ac_ext=c
14999 ac_cpp='$CPP $CPPFLAGS'
15000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15003
15004 acx_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:
15013 if 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
15019 echo $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
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026
15027 /* Override any gcc2 internal prototype to avoid an error. */
15028 #ifdef __cplusplus
15029 extern "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. */
15033 char pthread_join ();
15034 int
15035 main ()
15036 {
15037 pthread_join ();
15038 ;
15039 return 0;
15040 }
15041 _ACEOF
15042 rm -f conftest.$ac_objext conftest$ac_exeext
15043 if { (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
15064 else
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15067
15068 fi
15069 rm -f conftest.err conftest.$ac_objext \
15070 conftest$ac_exeext conftest.$ac_ext
15071 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15072 echo "${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"
15079 fi
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
15091 acx_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
15112 case "${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 ;;
15125 esac
15126
15127 if test x"$acx_pthread_ok" = xno; then
15128 for 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
15133 echo $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
15138 echo $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.
15144 set dummy pthread-config; ac_word=$2
15145 echo "$as_me:$LINENO: checking for $ac_word" >&5
15146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15147 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 else
15150 if test -n "$acx_pthread_config"; then
15151 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15152 else
15153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15154 for as_dir in $PATH
15155 do
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
15164 done
15165 done
15166
15167 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15168 fi
15169 fi
15170 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15171 if test -n "$acx_pthread_config"; then
15172 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
15173 echo "${ECHO_T}$acx_pthread_config" >&6
15174 else
15175 echo "$as_me:$LINENO: result: no" >&5
15176 echo "${ECHO_T}no" >&6
15177 fi
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
15186 echo $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
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15211 #include <pthread.h>
15212 int
15213 main ()
15214 {
15215 pthread_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
15222 rm -f conftest.$ac_objext conftest$ac_exeext
15223 if { (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
15244 else
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15247
15248 fi
15249 rm -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
15256 echo "${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=""
15263 done
15264 fi
15265
15266 # Various other checks:
15267 if 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
15275 echo $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
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15284 #include <pthread.h>
15285 int
15286 main ()
15287 {
15288 int attr=$attr;
15289 ;
15290 return 0;
15291 }
15292 _ACEOF
15293 rm -f conftest.$ac_objext conftest$ac_exeext
15294 if { (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
15315 else
15316 echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15318
15319 fi
15320 rm -f conftest.err conftest.$ac_objext \
15321 conftest$ac_exeext conftest.$ac_ext
15322 done
15323 echo "$as_me:$LINENO: result: $attr_name" >&5
15324 echo "${ECHO_T}$attr_name" >&6
15325 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15326
15327 cat >>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
15334 echo $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
15341 echo "${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.
15351 set dummy cc_r; ac_word=$2
15352 echo "$as_me:$LINENO: checking for $ac_word" >&5
15353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15354 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15356 else
15357 if test -n "$PTHREAD_CC"; then
15358 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15359 else
15360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15361 for as_dir in $PATH
15362 do
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
15371 done
15372 done
15373
15374 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
15375 fi
15376 fi
15377 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15378 if test -n "$PTHREAD_CC"; then
15379 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
15380 echo "${ECHO_T}$PTHREAD_CC" >&6
15381 else
15382 echo "$as_me:$LINENO: result: no" >&5
15383 echo "${ECHO_T}no" >&6
15384 fi
15385
15386 else
15387 PTHREAD_CC="$CC"
15388 fi
15389
15390
15391
15392
15393
15394 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15395 if test x"$acx_pthread_ok" = xyes; then
15396
15397 cat >>confdefs.h <<\_ACEOF
15398 #define HAVE_PTHREAD 1
15399 _ACEOF
15400
15401 :
15402 else
15403 acx_pthread_ok=no
15404
15405 fi
15406 ac_ext=c
15407 ac_cpp='$CPP $CPPFLAGS'
15408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15410 ac_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.
15421 if test "${with_apple_opengl_framework+set}" = set; then
15422 withval="$with_apple_opengl_framework"
15423
15424 fi;
15425 if test "X$with_apple_opengl_framework" = "Xyes"; then
15426
15427 cat >>confdefs.h <<\_ACEOF
15428 #define HAVE_APPLE_OPENGL_FRAMEWORK 1
15429 _ACEOF
15430
15431 GL_LIBS="-framework OpenGL"
15432 else
15433 ac_ext=c
15434 ac_cpp='$CPP $CPPFLAGS'
15435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15438
15439
15440 echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5
15441 echo $ECHO_N "checking whether we are using the Microsoft C compiler... $ECHO_C" >&6
15442 if test "${ax_cv_c_compiler_ms+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15444 else
15445 cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h. */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451
15452 int
15453 main ()
15454 {
15455 #ifndef _MSC_VER
15456 choke me
15457 #endif
15458
15459 ;
15460 return 0;
15461 }
15462 _ACEOF
15463 rm -f conftest.$ac_objext
15464 if { (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
15485 else
15486 echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15488
15489 ax_compiler_ms=no
15490 fi
15491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15492 ax_cv_c_compiler_ms=$ax_compiler_ms
15493
15494 fi
15495 echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5
15496 echo "${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
15516 for ac_header in windows.h
15517 do
15518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15520 echo "$as_me:$LINENO: checking for $ac_header" >&5
15521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
15524 fi
15525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15527 else
15528 # Is the header compilable?
15529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h. */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 $ac_includes_default
15538 #include <$ac_header>
15539 _ACEOF
15540 rm -f conftest.$ac_objext
15541 if { (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
15562 else
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15565
15566 ac_header_compiler=no
15567 fi
15568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15570 echo "${ECHO_T}$ac_header_compiler" >&6
15571
15572 # Is the header present?
15573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15575 cat >conftest.$ac_ext <<_ACEOF
15576 /* confdefs.h. */
15577 _ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15581 #include <$ac_header>
15582 _ACEOF
15583 if { (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
15597 else
15598 ac_cpp_err=yes
15599 fi
15600 if test -z "$ac_cpp_err"; then
15601 ac_header_preproc=yes
15602 else
15603 echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15605
15606 ac_header_preproc=no
15607 fi
15608 rm -f conftest.err conftest.$ac_ext
15609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15610 echo "${ECHO_T}$ac_header_preproc" >&6
15611
15612 # So? What about this header?
15613 case $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
15616 echo "$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
15618 echo "$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
15623 echo "$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
15625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15627 echo "$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
15629 echo "$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
15631 echo "$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
15633 echo "$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 ;;
15643 esac
15644 echo "$as_me:$LINENO: checking for $ac_header" >&5
15645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 else
15649 eval "$as_ac_Header=\$ac_header_preproc"
15650 fi
15651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15653
15654 fi
15655 if 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
15660 fi
15661
15662 done
15663
15664
15665 echo "$as_me:$LINENO: checking for OpenGL library" >&5
15666 echo $ECHO_N "checking for OpenGL library... $ECHO_C" >&6
15667 if test "${ax_cv_check_gl_libgl+set}" = set; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 else
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
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>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>
15694 int
15695 main ()
15696 {
15697 glBegin(0)
15698 ;
15699 return 0;
15700 }
15701 _ACEOF
15702 rm -f conftest.$ac_objext conftest$ac_exeext
15703 if { (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
15724 else
15725 echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15727
15728 fi
15729 rm -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}
15734 fi
15735 echo "$as_me:$LINENO: result: $ax_cv_check_gl_libgl" >&5
15736 echo "${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
15746 ac_cpp='$CPP $CPPFLAGS'
15747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15750
15751 fi
15752
15753
15754
15755
15756
15757
15758 ac_ext=cc
15759 ac_cpp='$CXXCPP $CPPFLAGS'
15760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15763 if 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.
15767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15768 echo "$as_me:$LINENO: checking for $ac_word" >&5
15769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15770 if test "${ac_cv_prog_CXX+set}" = set; then
15771 echo $ECHO_N "(cached) $ECHO_C" >&6
15772 else
15773 if test -n "$CXX"; then
15774 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15775 else
15776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15777 for as_dir in $PATH
15778 do
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
15787 done
15788 done
15789
15790 fi
15791 fi
15792 CXX=$ac_cv_prog_CXX
15793 if test -n "$CXX"; then
15794 echo "$as_me:$LINENO: result: $CXX" >&5
15795 echo "${ECHO_T}$CXX" >&6
15796 else
15797 echo "$as_me:$LINENO: result: no" >&5
15798 echo "${ECHO_T}no" >&6
15799 fi
15800
15801 test -n "$CXX" && break
15802 done
15803 fi
15804 if 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
15807 do
15808 # Extract the first word of "$ac_prog", so it can be a program name with args.
15809 set dummy $ac_prog; ac_word=$2
15810 echo "$as_me:$LINENO: checking for $ac_word" >&5
15811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15812 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15814 else
15815 if test -n "$ac_ct_CXX"; then
15816 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15817 else
15818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15819 for as_dir in $PATH
15820 do
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
15829 done
15830 done
15831
15832 fi
15833 fi
15834 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15835 if test -n "$ac_ct_CXX"; then
15836 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15837 echo "${ECHO_T}$ac_ct_CXX" >&6
15838 else
15839 echo "$as_me:$LINENO: result: no" >&5
15840 echo "${ECHO_T}no" >&6
15841 fi
15842
15843 test -n "$ac_ct_CXX" && break
15844 done
15845 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
15846
15847 CXX=$ac_ct_CXX
15848 fi
15849
15850
15851 # Provide some information about the compiler.
15852 echo "$as_me:$LINENO:" \
15853 "checking for C++ compiler version" >&5
15854 ac_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
15871 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15872 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
15873 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15875 else
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h. */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882
15883 int
15884 main ()
15885 {
15886 #ifndef __GNUC__
15887 choke me
15888 #endif
15889
15890 ;
15891 return 0;
15892 }
15893 _ACEOF
15894 rm -f conftest.$ac_objext
15895 if { (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
15916 else
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920 ac_compiler_gnu=no
15921 fi
15922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15923 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15924
15925 fi
15926 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15927 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
15928 GXX=`test $ac_compiler_gnu = yes && echo yes`
15929 ac_test_CXXFLAGS=${CXXFLAGS+set}
15930 ac_save_CXXFLAGS=$CXXFLAGS
15931 CXXFLAGS="-g"
15932 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15933 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
15934 if test "${ac_cv_prog_cxx_g+set}" = set; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 else
15937 cat >conftest.$ac_ext <<_ACEOF
15938 /* confdefs.h. */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15943
15944 int
15945 main ()
15946 {
15947
15948 ;
15949 return 0;
15950 }
15951 _ACEOF
15952 rm -f conftest.$ac_objext
15953 if { (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
15974 else
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15977
15978 ac_cv_prog_cxx_g=no
15979 fi
15980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15981 fi
15982 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15983 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
15984 if test "$ac_test_CXXFLAGS" = set; then
15985 CXXFLAGS=$ac_save_CXXFLAGS
15986 elif 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
15992 else
15993 if test "$GXX" = yes; then
15994 CXXFLAGS="-O2"
15995 else
15996 CXXFLAGS=
15997 fi
15998 fi
15999 for 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);'
16006 do
16007 cat >conftest.$ac_ext <<_ACEOF
16008 /* confdefs.h. */
16009 _ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h. */
16013 $ac_declaration
16014 #include <stdlib.h>
16015 int
16016 main ()
16017 {
16018 exit (42);
16019 ;
16020 return 0;
16021 }
16022 _ACEOF
16023 rm -f conftest.$ac_objext
16024 if { (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 :
16045 else
16046 echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16048
16049 continue
16050 fi
16051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16052 cat >conftest.$ac_ext <<_ACEOF
16053 /* confdefs.h. */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16058 $ac_declaration
16059 int
16060 main ()
16061 {
16062 exit (42);
16063 ;
16064 return 0;
16065 }
16066 _ACEOF
16067 rm -f conftest.$ac_objext
16068 if { (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
16089 else
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16092
16093 fi
16094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16095 done
16096 rm -f conftest*
16097 if test -n "$ac_declaration"; then
16098 echo '#ifdef __cplusplus' >>confdefs.h
16099 echo $ac_declaration >>confdefs.h
16100 echo '#endif' >>confdefs.h
16101 fi
16102
16103 ac_ext=c
16104 ac_cpp='$CPP $CPPFLAGS'
16105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16108
16109 depcc="$CXX" am_compiler_list=
16110
16111 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16112 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16113 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 else
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
16196 else
16197 am_cv_CXX_dependencies_compiler_type=none
16198 fi
16199
16200 fi
16201 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
16202 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
16203 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16204
16205
16206
16207 if
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='#'
16212 else
16213 am__fastdepCXX_TRUE='#'
16214 am__fastdepCXX_FALSE=
16215 fi
16216
16217
16218 if 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
16222 ac_cpp='$CXXCPP $CPPFLAGS'
16223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16226 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16227 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16228 if test -z "$CXXCPP"; then
16229 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16231 else
16232 # Double quotes because CXXCPP needs to be expanded
16233 for CXXCPP in "$CXX -E" "/lib/cpp"
16234 do
16235 ac_preproc_ok=false
16236 for ac_cxx_preproc_warn_flag in '' yes
16237 do
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
16247 cat confdefs.h >>conftest.$ac_ext
16248 cat >>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
16257 if { (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
16271 else
16272 ac_cpp_err=yes
16273 fi
16274 if test -z "$ac_cpp_err"; then
16275 :
16276 else
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16279
16280 # Broken: fails on valid input.
16281 continue
16282 fi
16283 rm -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
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 #include <ac_nonexistent.h>
16294 _ACEOF
16295 if { (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
16309 else
16310 ac_cpp_err=yes
16311 fi
16312 if test -z "$ac_cpp_err"; then
16313 # Broken: success on invalid input.
16314 continue
16315 else
16316 echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16318
16319 # Passes both tests.
16320 ac_preproc_ok=:
16321 break
16322 fi
16323 rm -f conftest.err conftest.$ac_ext
16324
16325 done
16326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16327 rm -f conftest.err conftest.$ac_ext
16328 if $ac_preproc_ok; then
16329 break
16330 fi
16331
16332 done
16333 ac_cv_prog_CXXCPP=$CXXCPP
16334
16335 fi
16336 CXXCPP=$ac_cv_prog_CXXCPP
16337 else
16338 ac_cv_prog_CXXCPP=$CXXCPP
16339 fi
16340 echo "$as_me:$LINENO: result: $CXXCPP" >&5
16341 echo "${ECHO_T}$CXXCPP" >&6
16342 ac_preproc_ok=false
16343 for ac_cxx_preproc_warn_flag in '' yes
16344 do
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
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>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
16364 if { (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
16378 else
16379 ac_cpp_err=yes
16380 fi
16381 if test -z "$ac_cpp_err"; then
16382 :
16383 else
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16386
16387 # Broken: fails on valid input.
16388 continue
16389 fi
16390 rm -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
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 #include <ac_nonexistent.h>
16401 _ACEOF
16402 if { (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
16416 else
16417 ac_cpp_err=yes
16418 fi
16419 if test -z "$ac_cpp_err"; then
16420 # Broken: success on invalid input.
16421 continue
16422 else
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16425
16426 # Passes both tests.
16427 ac_preproc_ok=:
16428 break
16429 fi
16430 rm -f conftest.err conftest.$ac_ext
16431
16432 done
16433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16434 rm -f conftest.err conftest.$ac_ext
16435 if $ac_preproc_ok; then
16436 :
16437 else
16438 _lt_caught_CXX_error=yes
16439 fi
16440
16441 ac_ext=c
16442 ac_cpp='$CPP $CPPFLAGS'
16443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16446
16447 else
16448 _lt_caught_CXX_error=yes
16449 fi
16450
16451
16452
16453 ac_ext=cc
16454 ac_cpp='$CXXCPP $CPPFLAGS'
16455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16458 if 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.
16462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16463 echo "$as_me:$LINENO: checking for $ac_word" >&5
16464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16465 if test "${ac_cv_prog_CXX+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468 if test -n "$CXX"; then
16469 ac_cv_prog_CXX="$CXX" # Let the user override the test.
16470 else
16471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16472 for as_dir in $PATH
16473 do
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
16482 done
16483 done
16484
16485 fi
16486 fi
16487 CXX=$ac_cv_prog_CXX
16488 if test -n "$CXX"; then
16489 echo "$as_me:$LINENO: result: $CXX" >&5
16490 echo "${ECHO_T}$CXX" >&6
16491 else
16492 echo "$as_me:$LINENO: result: no" >&5
16493 echo "${ECHO_T}no" >&6
16494 fi
16495
16496 test -n "$CXX" && break
16497 done
16498 fi
16499 if 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
16502 do
16503 # Extract the first word of "$ac_prog", so it can be a program name with args.
16504 set dummy $ac_prog; ac_word=$2
16505 echo "$as_me:$LINENO: checking for $ac_word" >&5
16506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16507 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16509 else
16510 if test -n "$ac_ct_CXX"; then
16511 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16512 else
16513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16514 for as_dir in $PATH
16515 do
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
16524 done
16525 done
16526
16527 fi
16528 fi
16529 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16530 if test -n "$ac_ct_CXX"; then
16531 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16532 echo "${ECHO_T}$ac_ct_CXX" >&6
16533 else
16534 echo "$as_me:$LINENO: result: no" >&5
16535 echo "${ECHO_T}no" >&6
16536 fi
16537
16538 test -n "$ac_ct_CXX" && break
16539 done
16540 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
16541
16542 CXX=$ac_ct_CXX
16543 fi
16544
16545
16546 # Provide some information about the compiler.
16547 echo "$as_me:$LINENO:" \
16548 "checking for C++ compiler version" >&5
16549 ac_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
16566 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16567 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
16568 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16569 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 else
16571 cat >conftest.$ac_ext <<_ACEOF
16572 /* confdefs.h. */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16577
16578 int
16579 main ()
16580 {
16581 #ifndef __GNUC__
16582 choke me
16583 #endif
16584
16585 ;
16586 return 0;
16587 }
16588 _ACEOF
16589 rm -f conftest.$ac_objext
16590 if { (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
16611 else
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615 ac_compiler_gnu=no
16616 fi
16617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16618 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16619
16620 fi
16621 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16622 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
16623 GXX=`test $ac_compiler_gnu = yes && echo yes`
16624 ac_test_CXXFLAGS=${CXXFLAGS+set}
16625 ac_save_CXXFLAGS=$CXXFLAGS
16626 CXXFLAGS="-g"
16627 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16628 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
16629 if test "${ac_cv_prog_cxx_g+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 else
16632 cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h. */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16638
16639 int
16640 main ()
16641 {
16642
16643 ;
16644 return 0;
16645 }
16646 _ACEOF
16647 rm -f conftest.$ac_objext
16648 if { (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
16669 else
16670 echo "$as_me: failed program was:" >&5
16671 sed 's/^/| /' conftest.$ac_ext >&5
16672
16673 ac_cv_prog_cxx_g=no
16674 fi
16675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16676 fi
16677 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16678 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
16679 if test "$ac_test_CXXFLAGS" = set; then
16680 CXXFLAGS=$ac_save_CXXFLAGS
16681 elif 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
16687 else
16688 if test "$GXX" = yes; then
16689 CXXFLAGS="-O2"
16690 else
16691 CXXFLAGS=
16692 fi
16693 fi
16694 for 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);'
16701 do
16702 cat >conftest.$ac_ext <<_ACEOF
16703 /* confdefs.h. */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16708 $ac_declaration
16709 #include <stdlib.h>
16710 int
16711 main ()
16712 {
16713 exit (42);
16714 ;
16715 return 0;
16716 }
16717 _ACEOF
16718 rm -f conftest.$ac_objext
16719 if { (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 :
16740 else
16741 echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16743
16744 continue
16745 fi
16746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16747 cat >conftest.$ac_ext <<_ACEOF
16748 /* confdefs.h. */
16749 _ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h. */
16753 $ac_declaration
16754 int
16755 main ()
16756 {
16757 exit (42);
16758 ;
16759 return 0;
16760 }
16761 _ACEOF
16762 rm -f conftest.$ac_objext
16763 if { (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
16784 else
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16787
16788 fi
16789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16790 done
16791 rm -f conftest*
16792 if test -n "$ac_declaration"; then
16793 echo '#ifdef __cplusplus' >>confdefs.h
16794 echo $ac_declaration >>confdefs.h
16795 echo '#endif' >>confdefs.h
16796 fi
16797
16798 ac_ext=c
16799 ac_cpp='$CPP $CPPFLAGS'
16800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16803
16804 depcc="$CXX" am_compiler_list=
16805
16806 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16807 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16808 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16810 else
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
16891 else
16892 am_cv_CXX_dependencies_compiler_type=none
16893 fi
16894
16895 fi
16896 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
16897 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
16898 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16899
16900
16901
16902 if
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='#'
16907 else
16908 am__fastdepCXX_TRUE='#'
16909 am__fastdepCXX_FALSE=
16910 fi
16911
16912
16913 ac_ext=cc
16914 ac_cpp='$CXXCPP $CPPFLAGS'
16915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16918
16919 archive_cmds_need_lc_CXX=no
16920 allow_undefined_flag_CXX=
16921 always_export_symbols_CXX=no
16922 archive_expsym_cmds_CXX=
16923 export_dynamic_flag_spec_CXX=
16924 hardcode_direct_CXX=no
16925 hardcode_libdir_flag_spec_CXX=
16926 hardcode_libdir_flag_spec_ld_CXX=
16927 hardcode_libdir_separator_CXX=
16928 hardcode_minus_L_CXX=no
16929 hardcode_shlibpath_var_CXX=unsupported
16930 hardcode_automatic_CXX=no
16931 inherit_rpath_CXX=no
16932 module_cmds_CXX=
16933 module_expsym_cmds_CXX=
16934 link_all_deplibs_CXX=unknown
16935 old_archive_cmds_CXX=$old_archive_cmds
16936 no_undefined_flag_CXX=
16937 whole_archive_flag_spec_CXX=
16938 enable_shared_with_static_runtimes_CXX=no
16939
16940 # Source file extension for C++ test sources.
16941 ac_ext=cpp
16942
16943 # Object file extension for compiled C++ test sources.
16944 objext=o
16945 objext_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.
16951 if 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.
16966 LTCC=${LTCC-"$CC"}
16967
16968 # If no C compiler flags were specified, use CFLAGS.
16969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16970
16971 # Allow CC to be a program name with arguments.
16972 compiler=$CC
16973
16974
16975 # save warnings/boilerplate of simple test code
16976 ac_outfile=conftest.$ac_objext
16977 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16978 eval "$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
16983 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16984 eval "$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
17017 done
17018 cc_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.
17036 if test "${with_gnu_ld+set}" = set; then
17037 withval="$with_gnu_ld"
17038 test "$withval" = no || with_gnu_ld=yes
17039 else
17040 with_gnu_ld=no
17041 fi;
17042 ac_prog=ld
17043 if 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
17046 echo $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
17074 elif test "$with_gnu_ld" = yes; then
17075 echo "$as_me:$LINENO: checking for GNU ld" >&5
17076 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17077 else
17078 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17079 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17080 fi
17081 if test "${lt_cv_path_LD+set}" = set; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17083 else
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"
17105 else
17106 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17107 fi
17108 fi
17109
17110 LD="$lt_cv_path_LD"
17111 if test -n "$LD"; then
17112 echo "$as_me:$LINENO: result: $LD" >&5
17113 echo "${ECHO_T}$LD" >&6
17114 else
17115 echo "$as_me:$LINENO: result: no" >&5
17116 echo "${ECHO_T}no" >&6
17117 fi
17118 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17119 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17120 { (exit 1); exit 1; }; }
17121 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17122 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17123 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17124 echo $ECHO_N "(cached) $ECHO_C" >&6
17125 else
17126 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17127 case `$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 ;;
17134 esac
17135 fi
17136 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17137 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17138 with_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
17192 echo $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
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h. */
17296
17297 int
17298 main ()
17299 {
17300
17301 ;
17302 return 0;
17303 }
17304 _ACEOF
17305 rm -f conftest.$ac_objext conftest$ac_exeext
17306 if { (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
17327 lt_aix_libpath_sed='
17328 /Import File Strings/,/^$/ {
17329 /^0/ {
17330 s/^0 *\(.*\)$/\1/
17331 p
17332 }
17333 }'
17334 aix_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.
17336 if test -z "$aix_libpath"; then
17337 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17338 fi
17339 else
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343 fi
17344 rm -f conftest.err conftest.$ac_objext \
17345 conftest$ac_exeext conftest.$ac_ext
17346 if 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
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365
17366 int
17367 main ()
17368 {
17369
17370 ;
17371 return 0;
17372 }
17373 _ACEOF
17374 rm -f conftest.$ac_objext conftest$ac_exeext
17375 if { (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
17396 lt_aix_libpath_sed='
17397 /Import File Strings/,/^$/ {
17398 /^0/ {
17399 s/^0 *\(.*\)$/\1/
17400 p
17401 }
17402 }'
17403 aix_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.
17405 if test -z "$aix_libpath"; then
17406 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17407 fi
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17411
17412 fi
17413 rm -f conftest.err conftest.$ac_objext \
17414 conftest$ac_exeext conftest.$ac_ext
17415 if 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
17501 else
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
17517 fi
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
18157 echo "${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:
18168 predep_objects_CXX=
18169 postdep_objects_CXX=
18170 predeps_CXX=
18171 postdeps_CXX=
18172 compiler_lib_search_path_CXX=
18173
18174 cat > conftest.$ac_ext <<_LT_EOF
18175 class Foo
18176 {
18177 public:
18178 Foo (void) { a = 0; }
18179 private:
18180 int a;
18181 };
18182 _LT_EOF
18183
18184 if { (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
18269 else
18270 echo "libtool.m4: error: problem compiling CXX test program"
18271 fi
18272
18273 $RM -f confest.$objext
18274
18275 # PORTME: override above test on systems where it is broken
18276 case $host_os in
18277 interix3*)
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
18285 solaris*)
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 ;;
18295 esac
18296
18297
18298 case " $postdeps_CXX " in
18299 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18300 esac
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=
18328 lt_prog_compiler_pic_CXX=
18329 lt_prog_compiler_static_CXX=
18330
18331 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18332 echo $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
18617 case $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 ;;
18625 esac
18626 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18627 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
18628
18629
18630
18631 #
18632 # Check to make sure the PIC flag actually works.
18633 #
18634 if 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
18636 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
18637 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
18639 else
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
18669 fi
18670 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18671 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
18672
18673 if 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
18678 else
18679 lt_prog_compiler_pic_CXX=
18680 lt_prog_compiler_can_build_shared_CXX=no
18681 fi
18682
18683 fi
18684
18685
18686
18687 #
18688 # Check to make sure the static flag actually works.
18689 #
18690 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18691 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18692 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18693 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18695 else
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
18718 fi
18719 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18720 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
18721
18722 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18723 :
18724 else
18725 lt_prog_compiler_static_CXX=
18726 fi
18727
18728
18729
18730
18731 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18732 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18733 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18735 else
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
18777 fi
18778 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18779 echo "${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
18784 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18785 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18786 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 else
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
18829 fi
18830 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18831 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
18832
18833
18834
18835
18836 hard_links="nottested"
18837 if 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
18840 echo $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
18848 echo "${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
18851 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18852 need_locks=warn
18853 fi
18854 else
18855 need_locks=no
18856 fi
18857
18858
18859
18860 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18861 echo $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
18885 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18886 echo "${ECHO_T}$ld_shlibs_CXX" >&6
18887 test "$ld_shlibs_CXX" = no && can_build_shared=no
18888
18889 with_gnu_ld_CXX=$with_gnu_ld
18890
18891
18892
18893
18894
18895
18896 #
18897 # Do we need to explicitly link libc?
18898 #
18899 case "x$archive_cmds_need_lc_CXX" in
18900 x|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
18914 echo $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
18952 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
18953 ;;
18954 esac
18955 fi
18956 ;;
18957 esac
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
19019 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19020 withGCC=$GXX
19021 library_names_spec=
19022 libname_spec='lib$name'
19023 soname_spec=
19024 shrext_cmds=".so"
19025 postinstall_cmds=
19026 postuninstall_cmds=
19027 finish_cmds=
19028 finish_eval=
19029 shlibpath_var=
19030 shlibpath_overrides_runpath=unknown
19031 version_type=none
19032 dynamic_linker="$host_os ld.so"
19033 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19034 if 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
19045 else
19046 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19047 fi
19048 need_lib_prefix=unknown
19049 hardcode_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
19053 need_version=unknown
19054
19055 case $host_os in
19056 aix3*)
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
19065 aix4* | 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
19109 amigaos*)
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
19119 beos*)
19120 library_names_spec='${libname}${shared_ext}'
19121 dynamic_linker="$host_os ld.so"
19122 shlibpath_var=LIBRARY_PATH
19123 ;;
19124
19125 bsdi[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
19139 cygwin* | 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
19201 darwin* | 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
19220 dgux*)
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
19229 freebsd1*)
19230 dynamic_linker=no
19231 ;;
19232
19233 kfreebsd*-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
19245 freebsd* | 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
19289 gnu*)
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
19299 hpux9* | 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
19345 interix3*)
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
19357 irix5* | 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.
19395 linux*oldld* | linux*aout* | linux*coff*)
19396 dynamic_linker=no
19397 ;;
19398
19399 # This must be Linux ELF.
19400 linux*)
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
19429 knetbsd*-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
19441 netbsd*)
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
19459 newsos6)
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
19478 openbsd*)
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
19504 os2*)
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
19513 osf3* | 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
19524 rdos*)
19525 dynamic_linker=no
19526 ;;
19527
19528 solaris*)
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
19541 sunos4*)
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
19553 sysv4 | 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
19576 sysv4*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
19585 sysv5* | 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
19607 tpf*)
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
19618 uts4*)
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 ;;
19628 esac
19629 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19630 echo "${ECHO_T}$dynamic_linker" >&6
19631 test "$dynamic_linker" = no && can_build_shared=no
19632
19633 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19634 if test "$GCC" = yes; then
19635 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19636 fi
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
19674 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19675 hardcode_action_CXX=
19676 if 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
19693 else
19694 # We cannot hardcode anything, or else we can only hardcode existing
19695 # directories.
19696 hardcode_action_CXX=unsupported
19697 fi
19698 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19699 echo "${ECHO_T}$hardcode_action_CXX" >&6
19700
19701 if test "$hardcode_action_CXX" = relink ||
19702 test "$inherit_rpath_CXX" = yes; then
19703 # Fast installation is not supported
19704 enable_fast_install=no
19705 elif test "$shlibpath_overrides_runpath" = yes ||
19706 test "$enable_shared" = no; then
19707 # Fast installation is not necessary
19708 enable_fast_install=needless
19709 fi
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
19728 fi # test "$_lt_caught_CXX_error" != yes
19729
19730 ac_ext=c
19731 ac_cpp='$CPP $CPPFLAGS'
19732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19735
19736
19737 GLU_CFLAGS="${GL_CFLAGS}"
19738 if test "X${with_apple_opengl_framework}" != "Xyes"; then
19739 echo "$as_me:$LINENO: checking for OpenGL Utility library" >&5
19740 echo $ECHO_N "checking for OpenGL Utility library... $ECHO_C" >&6
19741 if test "${ax_cv_check_glu_libglu+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 else
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
19764 ac_cpp='$CXXCPP $CPPFLAGS'
19765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19768
19769 if test X$ax_compiler_ms = Xyes; then
19770 ac_ext=c
19771 ac_cpp='$CPP $CPPFLAGS'
19772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19775
19776 fi
19777 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h. */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>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>
19788 int
19789 main ()
19790 {
19791 gluBeginCurve(0)
19792 ;
19793 return 0;
19794 }
19795 _ACEOF
19796 rm -f conftest.$ac_objext conftest$ac_exeext
19797 if { (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
19818 else
19819 echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19821
19822 fi
19823 rm -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
19827 ac_cpp='$CXXCPP $CPPFLAGS'
19828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19831
19832 fi
19833 ac_ext=c
19834 ac_cpp='$CPP $CPPFLAGS'
19835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19838
19839 done
19840 LIBS=${ax_save_LIBS}
19841 CPPFLAGS=${ax_save_CPPFLAGS}
19842 fi
19843 echo "$as_me:$LINENO: result: $ax_cv_check_glu_libglu" >&5
19844 echo "${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
19852 fi
19853
19854
19855
19856
19857 if test "X$with_apple_opengl_framework" = "Xyes"; then
19858 GLUT_CFLAGS="${GLU_CFLAGS}"
19859 GLUT_LIBS="-framework GLUT -lobjc ${GL_LIBS}"
19860 else
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
19872 ac_cpp='$CPP $CPPFLAGS'
19873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19875 ac_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
19882 echo $ECHO_N "checking for GLUT library... $ECHO_C" >&6
19883 if test "${ax_cv_check_glut_libglut+set}" = set; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19885 else
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
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>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>
19908 int
19909 main ()
19910 {
19911 glutMainLoop()
19912 ;
19913 return 0;
19914 }
19915 _ACEOF
19916 rm -f conftest.$ac_objext conftest$ac_exeext
19917 if { (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
19938 else
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19941
19942 fi
19943 rm -f conftest.err conftest.$ac_objext \
19944 conftest$ac_exeext conftest.$ac_ext
19945
19946 done
19947 LIBS=${ax_save_LIBS}
19948
19949 fi
19950 echo "$as_me:$LINENO: result: $ax_cv_check_glut_libglut" >&5
19951 echo "${ECHO_T}$ax_cv_check_glut_libglut" >&6
19952 CPPFLAGS="${ax_save_CPPFLAGS}"
19953 ac_ext=c
19954 ac_cpp='$CPP $CPPFLAGS'
19955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19957 ac_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
19967 fi
19968
19969
19970
19971
19972
19973 if test "$no_x" != "yes" -a "$no_gl" != "yes" \
19974 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
19975 HAVE_OPENGL=yes
19976 fi
19977
19978
19979
19980 if test "$HAVE_OPENGL" = "yes"; then
19981 HAVE_OPENGL_TRUE=
19982 HAVE_OPENGL_FALSE='#'
19983 else
19984 HAVE_OPENGL_TRUE='#'
19985 HAVE_OPENGL_FALSE=
19986 fi
19987
19988
19989
19990
19991 # Check whether --enable-strip-chopping or --disable-strip-chopping was given.
19992 if test "${enable_strip_chopping+set}" = set; then
19993 enableval="$enable_strip_chopping"
19994 HAVE_STRIPCHOP=$enableval
19995 else
19996 HAVE_STRIPCHOP=yes
19997 fi;
19998
19999 # Check whether --with-default-strip-size or --without-default-strip-size was given.
20000 if test "${with_default_strip_size+set}" = set; then
20001 withval="$with_default_strip_size"
20002
20003 fi;
20004
20005 if test "$HAVE_STRIPCHOP" = "yes" \
20006 -a "x$with_default_strip_size" != "xno"; then
20007
20008 cat >>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
20019 cat >>confdefs.h <<_ACEOF
20020 #define STRIP_SIZE_DEFAULT $with_default_strip_size
20021 _ACEOF
20022
20023
20024 fi
20025
20026
20027 cat >>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.
20034 if test "${enable_extrasample_as_alpha+set}" = set; then
20035 enableval="$enable_extrasample_as_alpha"
20036 HAVE_EXTRASAMPLE_AS_ALPHA=$enableval
20037 else
20038 HAVE_EXTRASAMPLE_AS_ALPHA=yes
20039 fi;
20040
20041 if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
20042
20043 cat >>confdefs.h <<\_ACEOF
20044 #define DEFAULT_EXTRASAMPLE_AS_ALPHA 1
20045 _ACEOF
20046
20047 fi
20048
20049
20050 # Check whether --enable-check-ycbcr-subsampling or --disable-check-ycbcr-subsampling was given.
20051 if test "${enable_check_ycbcr_subsampling+set}" = set; then
20052 enableval="$enable_check_ycbcr_subsampling"
20053 CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval
20054 else
20055 CHECK_JPEG_YCBCR_SUBSAMPLING=yes
20056 fi;
20057
20058 if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
20059
20060 cat >>confdefs.h <<\_ACEOF
20061 #define CHECK_JPEG_YCBCR_SUBSAMPLING 1
20062 _ACEOF
20063
20064 fi
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
20074 cat >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
20119 if 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
20126 fi
20127 rm -f confcache
20128
20129 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20130 # Let make expand exec_prefix.
20131 test "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).
20137 if test "x$srcdir" = x.; then
20138 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20139 s/:*\$(srcdir):*/:/;
20140 s/:*\${srcdir}:*/:/;
20141 s/:*@srcdir@:*/:/;
20142 s/^\([^=]*=[ ]*\):*/\1/;
20143 s/:*$//;
20144 s/^[^=]*=[ ]*$//;
20145 }'
20146 fi
20147
20148 DEFS=-DHAVE_CONFIG_H
20149
20150 ac_libobjs=
20151 ac_ltlibobjs=
20152 for 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'
20159 done
20160 LIBOBJS=$ac_libobjs
20161
20162 LTLIBOBJS=$ac_ltlibobjs
20163
20164
20165 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20166 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20167 Usually this means the macro was only invoked conditionally." >&5
20168 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20169 Usually this means the macro was only invoked conditionally." >&2;}
20170 { (exit 1); exit 1; }; }
20171 fi
20172 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20173 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20174 Usually this means the macro was only invoked conditionally." >&5
20175 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20176 Usually this means the macro was only invoked conditionally." >&2;}
20177 { (exit 1); exit 1; }; }
20178 fi
20179 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20180 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20181 Usually this means the macro was only invoked conditionally." >&5
20182 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20183 Usually this means the macro was only invoked conditionally." >&2;}
20184 { (exit 1); exit 1; }; }
20185 fi
20186 if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then
20187 { { echo "$as_me:$LINENO: error: conditional \"HAVE_RPATH\" was never defined.
20188 Usually this means the macro was only invoked conditionally." >&5
20189 echo "$as_me: error: conditional \"HAVE_RPATH\" was never defined.
20190 Usually this means the macro was only invoked conditionally." >&2;}
20191 { (exit 1); exit 1; }; }
20192 fi
20193 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
20194 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CXX\" was never defined.
20195 Usually this means the macro was only invoked conditionally." >&5
20196 echo "$as_me: error: conditional \"HAVE_CXX\" was never defined.
20197 Usually this means the macro was only invoked conditionally." >&2;}
20198 { (exit 1); exit 1; }; }
20199 fi
20200 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20201 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20202 Usually this means the macro was only invoked conditionally." >&5
20203 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20204 Usually this means the macro was only invoked conditionally." >&2;}
20205 { (exit 1); exit 1; }; }
20206 fi
20207 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20208 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20209 Usually this means the macro was only invoked conditionally." >&5
20210 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20211 Usually this means the macro was only invoked conditionally." >&2;}
20212 { (exit 1); exit 1; }; }
20213 fi
20214 if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
20215 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENGL\" was never defined.
20216 Usually this means the macro was only invoked conditionally." >&5
20217 echo "$as_me: error: conditional \"HAVE_OPENGL\" was never defined.
20218 Usually this means the macro was only invoked conditionally." >&2;}
20219 { (exit 1); exit 1; }; }
20220 fi
20221
20222 : ${CONFIG_STATUS=./config.status}
20223 ac_clean_files_save=$ac_clean_files
20224 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20225 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20226 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20227 cat >$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
20234 debug=false
20235 ac_cs_recheck=false
20236 ac_cs_silent=false
20237 SHELL=\${CONFIG_SHELL-$SHELL}
20238 _ACEOF
20239
20240 cat >>$CONFIG_STATUS <<\_ACEOF
20241 ## --------------------- ##
20242 ## M4sh Initialization. ##
20243 ## --------------------- ##
20244
20245 # Be Bourne compatible
20246 if 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+"$@"}'='"$@"'
20252 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20253 set -o posix
20254 fi
20255 DUALCASE=1; export DUALCASE # for MKS sh
20256
20257 # Support unset when possible.
20258 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20259 as_unset=unset
20260 else
20261 as_unset=false
20262 fi
20263
20264
20265 # Work around bugs in pre-3.0 UWIN ksh.
20266 $as_unset ENV MAIL MAILPATH
20267 PS1='$ '
20268 PS2='> '
20269 PS4='+ '
20270
20271 # NLS nuisances.
20272 for 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
20276 do
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
20282 done
20283
20284 # Required to use basename.
20285 if expr a : '\(a\)' >/dev/null 2>&1; then
20286 as_expr=expr
20287 else
20288 as_expr=false
20289 fi
20290
20291 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20292 as_basename=basename
20293 else
20294 as_basename=false
20295 fi
20296
20297
20298 # Name of the executable.
20299 as_me=`$as_basename "$0" ||
20300 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20301 X"$0" : 'X\(//\)$' \| \
20302 X"$0" : 'X\(/\)$' \| \
20303 . : '\(.\)' 2>/dev/null ||
20304 echo 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.
20313 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20314 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20315 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20316 as_cr_digits='0123456789'
20317 as_cr_alnum=$as_cr_Letters$as_cr_digits
20318
20319 # The user is always right.
20320 if 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
20330 fi
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
20343 for as_dir in $PATH
20344 do
20345 IFS=$as_save_IFS
20346 test -z "$as_dir" && as_dir=.
20347 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20348 done
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
20359 echo "$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
20365 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20366 do
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
20386 done
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
20410 echo "$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
20422 case `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= ;;
20427 esac
20428
20429 if expr a : '\(a\)' >/dev/null 2>&1; then
20430 as_expr=expr
20431 else
20432 as_expr=false
20433 fi
20434
20435 rm -f conf$$ conf$$.exe conf$$.file
20436 echo >conf$$.file
20437 if 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
20446 elif ln conf$$.file conf$$ 2>/dev/null; then
20447 as_ln_s=ln
20448 else
20449 as_ln_s='cp -p'
20450 fi
20451 rm -f conf$$ conf$$.exe conf$$.file
20452
20453 if mkdir -p . 2>/dev/null; then
20454 as_mkdir_p=:
20455 else
20456 test -d ./-p && rmdir ./-p
20457 as_mkdir_p=false
20458 fi
20459
20460 as_executable_p="test -f"
20461
20462 # Sed expression to map a string onto a valid CPP name.
20463 as_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.
20466 as_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.
20471 as_nl='
20472 '
20473 IFS=" $as_nl"
20474
20475 # CDPATH.
20476 $as_unset CDPATH
20477
20478 exec 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.
20483 exec 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
20490 cat >&5 <<_CSEOF
20491
20492 This file was extended by LibTIFF Software $as_me 3.8.2, which was
20493 generated 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
20502 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20503 echo >&5
20504 _ACEOF
20505
20506 # Files that config.status was made for.
20507 if test -n "$ac_config_files"; then
20508 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20509 fi
20510
20511 if test -n "$ac_config_headers"; then
20512 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20513 fi
20514
20515 if test -n "$ac_config_links"; then
20516 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20517 fi
20518
20519 if test -n "$ac_config_commands"; then
20520 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20521 fi
20522
20523 cat >>$CONFIG_STATUS <<\_ACEOF
20524
20525 ac_cs_usage="\
20526 \`$as_me' instantiates files from templates according to the
20527 current configuration.
20528
20529 Usage: $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
20541 Configuration files:
20542 $config_files
20543
20544 Configuration headers:
20545 $config_headers
20546
20547 Configuration commands:
20548 $config_commands
20549
20550 Report bugs to <bug-autoconf@gnu.org>."
20551 _ACEOF
20552
20553 cat >>$CONFIG_STATUS <<_ACEOF
20554 ac_cs_version="\\
20555 LibTIFF Software config.status 3.8.2
20556 configured by $0, generated by GNU Autoconf 2.59,
20557 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20558
20559 Copyright (C) 2003 Free Software Foundation, Inc.
20560 This config.status script is free software; the Free Software Foundation
20561 gives unlimited permission to copy, distribute and modify it."
20562 srcdir=$srcdir
20563 INSTALL="$INSTALL"
20564 _ACEOF
20565
20566 cat >>$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.
20569 ac_need_defaults=:
20570 while test $# != 0
20571 do
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
20592 cat >>$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
20600 Try \`$0 --help' for more information." >&5
20601 echo "$as_me: error: ambiguous option: $1
20602 Try \`$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
20622 Try \`$0 --help' for more information." >&5
20623 echo "$as_me: error: unrecognized option: $1
20624 Try \`$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
20631 done
20632
20633 ac_configure_extra_args=
20634
20635 if $ac_cs_silent; then
20636 exec 6>/dev/null
20637 ac_configure_extra_args="$ac_configure_extra_args --silent"
20638 fi
20639
20640 _ACEOF
20641 cat >>$CONFIG_STATUS <<_ACEOF
20642 if \$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
20645 fi
20646
20647 _ACEOF
20648
20649 cat >>$CONFIG_STATUS <<_ACEOF
20650 #
20651 # INIT-COMMANDS section.
20652 #
20653
20654 AMDEP_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
20661 sed_quote_subst='$sed_quote_subst'
20662 double_quote_subst='$double_quote_subst'
20663 delay_variable_subst='$delay_variable_subst'
20664 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20665 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20666 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20667 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20668 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20669 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20670 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20671 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20672 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20673 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20674 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20675 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20676 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20677 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20678 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20679 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20680 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20681 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20682 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20683 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20684 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20685 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20686 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20687 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20688 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20689 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20690 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20691 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20692 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20693 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20694 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20695 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20696 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20697 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20698 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20699 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20700 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20701 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20702 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20703 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20704 lt_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"`'
20705 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20706 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20707 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20708 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20709 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20710 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20711 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20712 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20713 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20714 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20715 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20716 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20717 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20718 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20719 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20720 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20721 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20722 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20723 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20724 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20725 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20726 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20727 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20728 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20729 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20730 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20731 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20732 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20733 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20734 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20735 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20736 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20737 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20738 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20739 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20740 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20741 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20742 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20743 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20744 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20745 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20746 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20747 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20748 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20749 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20750 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20751 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20752 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20753 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20754 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20755 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20756 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20757 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20758 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20759 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20760 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20761 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20762 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20763 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20764 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20765 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20766 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20767 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20768 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20769 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20770 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
20771 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20772 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20773 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20774 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20775 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20776 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20777 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20778 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20779 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20780 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20781 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20782 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20783 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20784 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20785 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20786 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20787 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20788 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20789 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20790 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20791 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20792 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20793 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20794 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20795 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20796 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20797 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20798 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20799 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20800 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20801 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20802 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20803 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20804 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20805 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20806 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20807 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20808 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20809 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20810 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20811 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20812 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20813 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20814 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20815 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20816 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20817 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20818 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20819 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20820 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20821 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20822
20823 LTCC='$LTCC'
20824 LTCFLAGS='$LTCFLAGS'
20825 compiler='$compiler_DEFAULT'
20826
20827 # Quote evaled strings.
20828 for var in SED \
20829 GREP \
20830 EGREP \
20831 FGREP \
20832 LD \
20833 NM \
20834 LN_S \
20835 reload_flag \
20836 deplibs_check_method \
20837 file_magic_cmd \
20838 AR \
20839 AR_FLAGS \
20840 STRIP \
20841 RANLIB \
20842 CC \
20843 CFLAGS \
20844 compiler \
20845 lt_cv_sys_global_symbol_pipe \
20846 lt_cv_sys_global_symbol_to_cdecl \
20847 lt_cv_sys_global_symbol_to_c_name_address \
20848 SHELL \
20849 ECHO \
20850 lt_prog_compiler_no_builtin_flag \
20851 lt_prog_compiler_wl \
20852 lt_prog_compiler_pic \
20853 lt_prog_compiler_static \
20854 lt_cv_prog_compiler_c_o \
20855 need_locks \
20856 shrext_cmds \
20857 export_dynamic_flag_spec \
20858 whole_archive_flag_spec \
20859 with_gnu_ld \
20860 allow_undefined_flag \
20861 no_undefined_flag \
20862 hardcode_libdir_flag_spec \
20863 hardcode_libdir_flag_spec_ld \
20864 hardcode_libdir_separator \
20865 fix_srcfile_path \
20866 exclude_expsyms \
20867 include_expsyms \
20868 file_list_spec \
20869 variables_saved_for_relink \
20870 libname_spec \
20871 library_names_spec \
20872 soname_spec \
20873 finish_eval \
20874 old_striplib \
20875 striplib \
20876 predep_objects \
20877 postdep_objects \
20878 predeps \
20879 postdeps \
20880 compiler_lib_search_path \
20881 LD_CXX \
20882 compiler_CXX \
20883 lt_prog_compiler_no_builtin_flag_CXX \
20884 lt_prog_compiler_wl_CXX \
20885 lt_prog_compiler_pic_CXX \
20886 lt_prog_compiler_static_CXX \
20887 lt_cv_prog_compiler_c_o_CXX \
20888 export_dynamic_flag_spec_CXX \
20889 whole_archive_flag_spec_CXX \
20890 with_gnu_ld_CXX \
20891 allow_undefined_flag_CXX \
20892 no_undefined_flag_CXX \
20893 hardcode_libdir_flag_spec_CXX \
20894 hardcode_libdir_flag_spec_ld_CXX \
20895 hardcode_libdir_separator_CXX \
20896 fix_srcfile_path_CXX \
20897 exclude_expsyms_CXX \
20898 include_expsyms_CXX \
20899 file_list_spec_CXX \
20900 predep_objects_CXX \
20901 postdep_objects_CXX \
20902 predeps_CXX \
20903 postdeps_CXX \
20904 compiler_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
20913 done
20914
20915 # Double-quote double-evaled strings.
20916 for var in reload_cmds \
20917 old_postinstall_cmds \
20918 old_postuninstall_cmds \
20919 old_archive_cmds \
20920 extract_expsyms_cmds \
20921 old_archive_from_new_cmds \
20922 old_archive_from_expsyms_cmds \
20923 archive_cmds \
20924 archive_expsym_cmds \
20925 module_cmds \
20926 module_expsym_cmds \
20927 export_symbols_cmds \
20928 prelink_cmds \
20929 postinstall_cmds \
20930 postuninstall_cmds \
20931 finish_cmds \
20932 sys_lib_search_path_spec \
20933 sys_lib_dlsearch_path_spec \
20934 old_archive_cmds_CXX \
20935 old_archive_from_new_cmds_CXX \
20936 old_archive_from_expsyms_cmds_CXX \
20937 archive_cmds_CXX \
20938 archive_expsym_cmds_CXX \
20939 module_cmds_CXX \
20940 module_expsym_cmds_CXX \
20941 export_symbols_cmds_CXX \
20942 prelink_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
20951 done
20952
20953 # Fix-up fallback echo if it was mangled by the above quoting rules.
20954 case \$lt_ECHO in
20955 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20956 ;;
20957 esac
20958
20959 ac_aux_dir='$ac_aux_dir'
20960 xsi_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.
20964 if test -n "\${ZSH_VERSION+set}" ; then
20965 setopt NO_GLOB_SUBST
20966 fi
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
20984 cat >>$CONFIG_STATUS <<\_ACEOF
20985 for ac_config_target in $ac_config_targets
20986 do
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
21018 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21019 { (exit 1); exit 1; }; };;
21020 esac
21021 done
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.
21027 if $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
21031 fi
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
21060 cat >>$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
21068 if 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
21072 s,@SHELL@,$SHELL,;t t
21073 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21074 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21075 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21076 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21077 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21078 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21079 s,@exec_prefix@,$exec_prefix,;t t
21080 s,@prefix@,$prefix,;t t
21081 s,@program_transform_name@,$program_transform_name,;t t
21082 s,@bindir@,$bindir,;t t
21083 s,@sbindir@,$sbindir,;t t
21084 s,@libexecdir@,$libexecdir,;t t
21085 s,@datadir@,$datadir,;t t
21086 s,@sysconfdir@,$sysconfdir,;t t
21087 s,@sharedstatedir@,$sharedstatedir,;t t
21088 s,@localstatedir@,$localstatedir,;t t
21089 s,@libdir@,$libdir,;t t
21090 s,@includedir@,$includedir,;t t
21091 s,@oldincludedir@,$oldincludedir,;t t
21092 s,@infodir@,$infodir,;t t
21093 s,@mandir@,$mandir,;t t
21094 s,@build_alias@,$build_alias,;t t
21095 s,@host_alias@,$host_alias,;t t
21096 s,@target_alias@,$target_alias,;t t
21097 s,@DEFS@,$DEFS,;t t
21098 s,@ECHO_C@,$ECHO_C,;t t
21099 s,@ECHO_N@,$ECHO_N,;t t
21100 s,@ECHO_T@,$ECHO_T,;t t
21101 s,@LIBS@,$LIBS,;t t
21102 s,@build@,$build,;t t
21103 s,@build_cpu@,$build_cpu,;t t
21104 s,@build_vendor@,$build_vendor,;t t
21105 s,@build_os@,$build_os,;t t
21106 s,@host@,$host,;t t
21107 s,@host_cpu@,$host_cpu,;t t
21108 s,@host_vendor@,$host_vendor,;t t
21109 s,@host_os@,$host_os,;t t
21110 s,@target@,$target,;t t
21111 s,@target_cpu@,$target_cpu,;t t
21112 s,@target_vendor@,$target_vendor,;t t
21113 s,@target_os@,$target_os,;t t
21114 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21115 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21116 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21117 s,@CYGPATH_W@,$CYGPATH_W,;t t
21118 s,@PACKAGE@,$PACKAGE,;t t
21119 s,@VERSION@,$VERSION,;t t
21120 s,@ACLOCAL@,$ACLOCAL,;t t
21121 s,@AUTOCONF@,$AUTOCONF,;t t
21122 s,@AUTOMAKE@,$AUTOMAKE,;t t
21123 s,@AUTOHEADER@,$AUTOHEADER,;t t
21124 s,@MAKEINFO@,$MAKEINFO,;t t
21125 s,@install_sh@,$install_sh,;t t
21126 s,@STRIP@,$STRIP,;t t
21127 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21128 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21129 s,@mkdir_p@,$mkdir_p,;t t
21130 s,@AWK@,$AWK,;t t
21131 s,@SET_MAKE@,$SET_MAKE,;t t
21132 s,@am__leading_dot@,$am__leading_dot,;t t
21133 s,@AMTAR@,$AMTAR,;t t
21134 s,@am__tar@,$am__tar,;t t
21135 s,@am__untar@,$am__untar,;t t
21136 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21137 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21138 s,@MAINT@,$MAINT,;t t
21139 s,@LIBTIFF_MAJOR_VERSION@,$LIBTIFF_MAJOR_VERSION,;t t
21140 s,@LIBTIFF_MINOR_VERSION@,$LIBTIFF_MINOR_VERSION,;t t
21141 s,@LIBTIFF_MICRO_VERSION@,$LIBTIFF_MICRO_VERSION,;t t
21142 s,@LIBTIFF_ALPHA_VERSION@,$LIBTIFF_ALPHA_VERSION,;t t
21143 s,@LIBTIFF_VERSION@,$LIBTIFF_VERSION,;t t
21144 s,@LIBTIFF_VERSION_INFO@,$LIBTIFF_VERSION_INFO,;t t
21145 s,@LIBTIFF_RELEASE_DATE@,$LIBTIFF_RELEASE_DATE,;t t
21146 s,@CC@,$CC,;t t
21147 s,@CFLAGS@,$CFLAGS,;t t
21148 s,@LDFLAGS@,$LDFLAGS,;t t
21149 s,@CPPFLAGS@,$CPPFLAGS,;t t
21150 s,@ac_ct_CC@,$ac_ct_CC,;t t
21151 s,@EXEEXT@,$EXEEXT,;t t
21152 s,@OBJEXT@,$OBJEXT,;t t
21153 s,@DEPDIR@,$DEPDIR,;t t
21154 s,@am__include@,$am__include,;t t
21155 s,@am__quote@,$am__quote,;t t
21156 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21157 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21158 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21159 s,@CCDEPMODE@,$CCDEPMODE,;t t
21160 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21161 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21162 s,@LN_S@,$LN_S,;t t
21163 s,@LIBTOOL@,$LIBTOOL,;t t
21164 s,@SED@,$SED,;t t
21165 s,@EGREP@,$EGREP,;t t
21166 s,@FGREP@,$FGREP,;t t
21167 s,@GREP@,$GREP,;t t
21168 s,@LD@,$LD,;t t
21169 s,@DUMPBIN@,$DUMPBIN,;t t
21170 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21171 s,@NM@,$NM,;t t
21172 s,@AR@,$AR,;t t
21173 s,@ac_ct_AR@,$ac_ct_AR,;t t
21174 s,@RANLIB@,$RANLIB,;t t
21175 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21176 s,@lt_ECHO@,$lt_ECHO,;t t
21177 s,@CPP@,$CPP,;t t
21178 s,@AS@,$AS,;t t
21179 s,@ac_ct_AS@,$ac_ct_AS,;t t
21180 s,@DLLTOOL@,$DLLTOOL,;t t
21181 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21182 s,@OBJDUMP@,$OBJDUMP,;t t
21183 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21184 s,@LIBOBJS@,$LIBOBJS,;t t
21185 s,@HAVE_RPATH_TRUE@,$HAVE_RPATH_TRUE,;t t
21186 s,@HAVE_RPATH_FALSE@,$HAVE_RPATH_FALSE,;t t
21187 s,@LIBTIFF_DOCDIR@,$LIBTIFF_DOCDIR,;t t
21188 s,@HAVE_CXX_TRUE@,$HAVE_CXX_TRUE,;t t
21189 s,@HAVE_CXX_FALSE@,$HAVE_CXX_FALSE,;t t
21190 s,@X_CFLAGS@,$X_CFLAGS,;t t
21191 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21192 s,@X_LIBS@,$X_LIBS,;t t
21193 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21194 s,@acx_pthread_config@,$acx_pthread_config,;t t
21195 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
21196 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
21197 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
21198 s,@GL_CFLAGS@,$GL_CFLAGS,;t t
21199 s,@GL_LIBS@,$GL_LIBS,;t t
21200 s,@CXX@,$CXX,;t t
21201 s,@CXXFLAGS@,$CXXFLAGS,;t t
21202 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21203 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21204 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21205 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21206 s,@CXXCPP@,$CXXCPP,;t t
21207 s,@GLU_CFLAGS@,$GLU_CFLAGS,;t t
21208 s,@GLU_LIBS@,$GLU_LIBS,;t t
21209 s,@GLUT_CFLAGS@,$GLUT_CFLAGS,;t t
21210 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21211 s,@HAVE_OPENGL_TRUE@,$HAVE_OPENGL_TRUE,;t t
21212 s,@HAVE_OPENGL_FALSE@,$HAVE_OPENGL_FALSE,;t t
21213 s,@LIBDIR@,$LIBDIR,;t t
21214 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21215 CEOF
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
21256 fi # test -n "$CONFIG_FILES"
21257
21258 _ACEOF
21259 cat >>$CONFIG_STATUS <<\_ACEOF
21260 for 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 ||
21279 echo 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 ||
21298 echo 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
21307 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21308 { (exit 1); exit 1; }; }; }
21309
21310 ac_builddir=.
21311
21312 if 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'`
21316 else
21317 ac_dir_suffix= ac_top_builddir=
21318 fi
21319
21320 case $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 ;;
21334 esac
21335
21336 # Do not use `cd foo && pwd` to compute absolute paths, because
21337 # the directories may not exist.
21338 case `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;;
21346 esac
21347 case $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;;
21355 esac
21356 case $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;;
21364 esac
21365 case $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;;
21373 esac
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
21401 echo "$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
21414 echo "$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
21422 echo "$as_me: creating $ac_file" >&6;}
21423 rm -f "$ac_file"
21424 fi
21425 _ACEOF
21426 cat >>$CONFIG_STATUS <<_ACEOF
21427 sed "$ac_vpsub
21428 $extrasub
21429 _ACEOF
21430 cat >>$CONFIG_STATUS <<\_ACEOF
21431 :t
21432 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21433 s,@configure_input@,$configure_input,;t t
21434 s,@srcdir@,$ac_srcdir,;t t
21435 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21436 s,@top_srcdir@,$ac_top_srcdir,;t t
21437 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21438 s,@builddir@,$ac_builddir,;t t
21439 s,@abs_builddir@,$ac_abs_builddir,;t t
21440 s,@top_builddir@,$ac_top_builddir,;t t
21441 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21442 s,@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
21452 done
21453 _ACEOF
21454 cat >>$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.
21464 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21465 ac_dB='[ ].*$,\1#\2'
21466 ac_dC=' '
21467 ac_dD=',;t'
21468 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21469 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21470 ac_uB='$,\1#\2define\3'
21471 ac_uC=' '
21472 ac_uD=',;t'
21473
21474 for 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
21487 echo "$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
21498 echo "$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
21512 echo "$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.
21529 rm -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'.
21536 cat >confdef2sed.sed <<\_ACEOF
21537 s/[\\&,]/\\&/g
21538 s,[\\$`],\\&,g
21539 t clear
21540 : clear
21541 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21542 t end
21543 s,^[ ]*#[ ]*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.
21549 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21550 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21551 rm -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.
21556 cat >>conftest.undefs <<\_ACEOF
21557 s,^[ ]*#[ ]*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).
21562 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21563 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21564 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21565 echo ' :' >>$CONFIG_STATUS
21566 rm -f conftest.tail
21567 while grep . conftest.defines >/dev/null
21568 do
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
21585 done
21586 rm -f conftest.defines
21587 echo ' fi # grep' >>$CONFIG_STATUS
21588 echo >>$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).
21592 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21593 rm -f conftest.tail
21594 while grep . conftest.undefs >/dev/null
21595 do
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
21612 done
21613 rm -f conftest.undefs
21614
21615 cat >>$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
21629 echo "$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 ||
21637 echo 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 ||
21656 echo 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
21665 echo "$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
21677 for _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
21684 done
21685 echo "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 ||
21691 echo 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
21697 done
21698 _ACEOF
21699 cat >>$CONFIG_STATUS <<\_ACEOF
21700
21701 #
21702 # CONFIG_COMMANDS section.
21703 #
21704 for 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 ||
21713 echo 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 ||
21732 echo 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
21741 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21742 { (exit 1); exit 1; }; }; }
21743
21744 ac_builddir=.
21745
21746 if 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'`
21750 else
21751 ac_dir_suffix= ac_top_builddir=
21752 fi
21753
21754 case $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 ;;
21768 esac
21769
21770 # Do not use `cd foo && pwd` to compute absolute paths, because
21771 # the directories may not exist.
21772 case `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;;
21780 esac
21781 case $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;;
21789 esac
21790 case $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;;
21798 esac
21799 case $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;;
21807 esac
21808
21809
21810 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21811 echo "$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 ||
21829 echo 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 ||
21862 echo 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 ||
21881 echo 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
21890 echo "$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
21896 done
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.
21946 available_tags="CXX "
21947
21948 # ### BEGIN LIBTOOL CONFIG
21949
21950 # Which release of libtool.m4 was used?
21951 macro_version=$macro_version
21952 macro_revision=$macro_revision
21953
21954 # Whether or not to build shared libraries.
21955 build_libtool_libs=$enable_shared
21956
21957 # Whether or not to build static libraries.
21958 build_old_libs=$enable_static
21959
21960 # What type of objects to build.
21961 pic_mode=$pic_mode
21962
21963 # Whether or not to optimize for fast installation.
21964 fast_install=$enable_fast_install
21965
21966 # The host system.
21967 host_alias=$host_alias
21968 host=$host
21969 host_os=$host_os
21970
21971 # The build system.
21972 build_alias=$build_alias
21973 build=$build
21974 build_os=$build_os
21975
21976 # A sed program that does not truncate output.
21977 SED=$lt_SED
21978
21979 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21980 Xsed="\$SED -e 1s/^X//"
21981
21982 # A grep program that handles long lines.
21983 GREP=$lt_GREP
21984
21985 # An ERE matcher.
21986 EGREP=$lt_EGREP
21987
21988 # A literal string matcher.
21989 FGREP=$lt_FGREP
21990
21991 # A BSD- or MS-compatible name lister.
21992 NM=$lt_NM
21993
21994 # Whether we need soft or hard links.
21995 LN_S=$lt_LN_S
21996
21997 # What is the maximum length of a command?
21998 max_cmd_len=$max_cmd_len
21999
22000 # Object file suffix (normally "o").
22001 objext=$ac_objext
22002
22003 # Executable file suffix (normally "").
22004 exeext=$exeext
22005
22006 # How to create reloadable object files.
22007 reload_flag=$lt_reload_flag
22008 reload_cmds=$lt_reload_cmds
22009
22010 # Method to check whether dependent libraries are shared objects.
22011 deplibs_check_method=$lt_deplibs_check_method
22012
22013 # Command to use when deplibs_check_method == "file_magic".
22014 file_magic_cmd=$lt_file_magic_cmd
22015
22016 # The archiver.
22017 AR=$lt_AR
22018 AR_FLAGS=$lt_AR_FLAGS
22019
22020 # A symbol stripping program.
22021 STRIP=$lt_STRIP
22022
22023 # Commands used to install an old-style archive.
22024 RANLIB=$lt_RANLIB
22025 old_postinstall_cmds=$lt_old_postinstall_cmds
22026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22027
22028 # A C compiler.
22029 LTCC=$lt_CC
22030
22031 # LTCC compiler flags.
22032 LTCFLAGS=$lt_CFLAGS
22033
22034 # Take the output of nm and produce a listing of raw symbols and C names.
22035 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22036
22037 # Transform the output of nm in a proper C declaration.
22038 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22039
22040 # Transform the output of nm in a C name address pair.
22041 global_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.
22044 objdir=$objdir
22045
22046 # Shell to use when invoking shell scripts.
22047 SHELL=$lt_SHELL
22048
22049 # An echo program that does not interpret backslashes.
22050 ECHO=$lt_ECHO
22051
22052 # Used to examine libraries when file_magic_cmd begins with "file".
22053 MAGIC_CMD=$MAGIC_CMD
22054
22055 # Must we lock files when doing compilation?
22056 need_locks=$lt_need_locks
22057
22058 # Old archive suffix (normally "a").
22059 libext=$libext
22060
22061 # Shared library suffix (normally ".so").
22062 shrext_cmds=$lt_shrext_cmds
22063
22064 # The commands to extract the exported symbol list from a shared archive.
22065 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22066
22067 # Variables whose values should be saved in libtool wrapper scripts and
22068 # restored at link time.
22069 variables_saved_for_relink=$lt_variables_saved_for_relink
22070
22071 # Do we need the "lib" prefix for modules?
22072 need_lib_prefix=$need_lib_prefix
22073
22074 # Do we need a version for libraries?
22075 need_version=$need_version
22076
22077 # Library versioning type.
22078 version_type=$version_type
22079
22080 # Shared library runtime path variable.
22081 runpath_var=$runpath_var
22082
22083 # Shared library path variable.
22084 shlibpath_var=$shlibpath_var
22085
22086 # Is shlibpath searched before the hard-coded library search path?
22087 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22088
22089 # Format of library name prefix.
22090 libname_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
22094 library_names_spec=$lt_library_names_spec
22095
22096 # The coded name of the library, if different from the real name.
22097 soname_spec=$lt_soname_spec
22098
22099 # Command to use after installation of a shared archive.
22100 postinstall_cmds=$lt_postinstall_cmds
22101
22102 # Command to use after uninstallation of a shared archive.
22103 postuninstall_cmds=$lt_postuninstall_cmds
22104
22105 # Commands used to finish a libtool library installation in a directory.
22106 finish_cmds=$lt_finish_cmds
22107
22108 # As "finish_cmds", except a single script fragment to be evaled but
22109 # not shown.
22110 finish_eval=$lt_finish_eval
22111
22112 # Whether we should hardcode library paths into libraries.
22113 hardcode_into_libs=$hardcode_into_libs
22114
22115 # Compile-time system search path for libraries.
22116 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22117
22118 # Run-time system search path for libraries.
22119 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22120
22121 # Whether dlopen is supported.
22122 dlopen_support=$enable_dlopen
22123
22124 # Whether dlopen of programs is supported.
22125 dlopen_self=$enable_dlopen_self
22126
22127 # Whether dlopen of statically linked programs is supported.
22128 dlopen_self_static=$enable_dlopen_self_static
22129
22130 # Commands to strip libraries.
22131 old_striplib=$lt_old_striplib
22132 striplib=$lt_striplib
22133
22134 # Assembler program.
22135 AS=$AS
22136
22137 # DLL creation program.
22138 DLLTOOL=$DLLTOOL
22139
22140 # Object dumper program.
22141 OBJDUMP=$OBJDUMP
22142
22143
22144 # The linker used to build libraries.
22145 LD=$lt_LD
22146
22147 # Commands used to build an old-style archive.
22148 old_archive_cmds=$lt_old_archive_cmds
22149
22150 # A language specific compiler.
22151 CC=$lt_compiler
22152
22153 # Is the compiler the GNU compiler?
22154 with_gcc=$GCC
22155
22156 # Compiler flag to turn off builtin functions.
22157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22158
22159 # How to pass a linker flag through the compiler.
22160 wl=$lt_lt_prog_compiler_wl
22161
22162 # Additional compiler flags for building library objects.
22163 pic_flag=$lt_lt_prog_compiler_pic
22164
22165 # Compiler flag to prevent dynamic linking.
22166 link_static_flag=$lt_lt_prog_compiler_static
22167
22168 # Does compiler simultaneously support -c and -o options?
22169 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22170
22171 # Whether or not to add -lc for building shared libraries.
22172 build_libtool_need_lc=$archive_cmds_need_lc
22173
22174 # Whether or not to disallow shared libs when runtime libs are static.
22175 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22176
22177 # Compiler flag to allow reflexive dlopens.
22178 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22179
22180 # Compiler flag to generate shared objects directly from archives.
22181 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22182
22183 # Create an old-style archive from a shared archive.
22184 old_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.
22187 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22188
22189 # Commands used to build a shared archive.
22190 archive_cmds=$lt_archive_cmds
22191 archive_expsym_cmds=$lt_archive_expsym_cmds
22192
22193 # Commands used to build a loadable module if different from building
22194 # a shared archive.
22195 module_cmds=$lt_module_cmds
22196 module_expsym_cmds=$lt_module_expsym_cmds
22197
22198 # Whether we are building with GNU ld or not.
22199 with_gnu_ld=$lt_with_gnu_ld
22200
22201 # Flag that allows shared libraries with undefined symbols to be built.
22202 allow_undefined_flag=$lt_allow_undefined_flag
22203
22204 # Flag that enforces no undefined symbols.
22205 no_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
22209 hardcode_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.
22213 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22214
22215 # Whether we need a single "-rpath" flag with a separated argument.
22216 hardcode_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.
22220 hardcode_direct=$hardcode_direct
22221
22222 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22223 # into the resulting binary.
22224 hardcode_minus_L=$hardcode_minus_L
22225
22226 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22227 # into the resulting binary.
22228 hardcode_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.
22233 hardcode_automatic=$hardcode_automatic
22234
22235 # Set to yes if linker adds runtime paths of dependent libraries
22236 # to runtime path list.
22237 inherit_rpath=$inherit_rpath
22238
22239 # Whether libtool must link a program against all its dependency libraries.
22240 link_all_deplibs=$link_all_deplibs
22241
22242 # Fix the shell variable \$srcfile for the compiler.
22243 fix_srcfile_path=$lt_fix_srcfile_path
22244
22245 # Set to "yes" if exported symbols are required.
22246 always_export_symbols=$always_export_symbols
22247
22248 # The commands to list exported symbols.
22249 export_symbols_cmds=$lt_export_symbols_cmds
22250
22251 # Symbols that should not be listed in the preloaded symbols.
22252 exclude_expsyms=$lt_exclude_expsyms
22253
22254 # Symbols that must always be exported.
22255 include_expsyms=$lt_include_expsyms
22256
22257 # Commands necessary for linking programs (against libraries) with templates.
22258 prelink_cmds=$lt_prelink_cmds
22259
22260 # Specify filename containing input files.
22261 file_list_spec=$lt_file_list_spec
22262
22263 # How to hardcode a shared library path into an executable.
22264 hardcode_action=$hardcode_action
22265
22266 # Dependencies to place before and after the objects being linked to
22267 # create a shared library.
22268 predep_objects=$lt_predep_objects
22269 postdep_objects=$lt_postdep_objects
22270 predeps=$lt_predeps
22271 postdeps=$lt_postdeps
22272
22273 # The library search path used internally by the compiler when linking
22274 # a shared library.
22275 compiler_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.
22291 if test "X${COLLECT_NAMES+set}" != Xset; then
22292 COLLECT_NAMES=
22293 export COLLECT_NAMES
22294 fi
22295 _LT_EOF
22296 ;;
22297 esac
22298
22299
22300 ltmain="$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.
22316 func_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
22325 func_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).
22335 func_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.
22350 func_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
22362 func_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
22373 func_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
22383 esac
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.
22399 LD=$lt_LD_CXX
22400
22401 # Commands used to build an old-style archive.
22402 old_archive_cmds=$lt_old_archive_cmds_CXX
22403
22404 # A language specific compiler.
22405 CC=$lt_compiler_CXX
22406
22407 # Is the compiler the GNU compiler?
22408 with_gcc=$GCC_CXX
22409
22410 # Compiler flag to turn off builtin functions.
22411 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22412
22413 # How to pass a linker flag through the compiler.
22414 wl=$lt_lt_prog_compiler_wl_CXX
22415
22416 # Additional compiler flags for building library objects.
22417 pic_flag=$lt_lt_prog_compiler_pic_CXX
22418
22419 # Compiler flag to prevent dynamic linking.
22420 link_static_flag=$lt_lt_prog_compiler_static_CXX
22421
22422 # Does compiler simultaneously support -c and -o options?
22423 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22424
22425 # Whether or not to add -lc for building shared libraries.
22426 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22427
22428 # Whether or not to disallow shared libs when runtime libs are static.
22429 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22430
22431 # Compiler flag to allow reflexive dlopens.
22432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22433
22434 # Compiler flag to generate shared objects directly from archives.
22435 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22436
22437 # Create an old-style archive from a shared archive.
22438 old_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.
22441 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22442
22443 # Commands used to build a shared archive.
22444 archive_cmds=$lt_archive_cmds_CXX
22445 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22446
22447 # Commands used to build a loadable module if different from building
22448 # a shared archive.
22449 module_cmds=$lt_module_cmds_CXX
22450 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22451
22452 # Whether we are building with GNU ld or not.
22453 with_gnu_ld=$lt_with_gnu_ld_CXX
22454
22455 # Flag that allows shared libraries with undefined symbols to be built.
22456 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22457
22458 # Flag that enforces no undefined symbols.
22459 no_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
22463 hardcode_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.
22467 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22468
22469 # Whether we need a single "-rpath" flag with a separated argument.
22470 hardcode_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.
22474 hardcode_direct=$hardcode_direct_CXX
22475
22476 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22477 # into the resulting binary.
22478 hardcode_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.
22482 hardcode_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.
22487 hardcode_automatic=$hardcode_automatic_CXX
22488
22489 # Set to yes if linker adds runtime paths of dependent libraries
22490 # to runtime path list.
22491 inherit_rpath=$inherit_rpath_CXX
22492
22493 # Whether libtool must link a program against all its dependency libraries.
22494 link_all_deplibs=$link_all_deplibs_CXX
22495
22496 # Fix the shell variable \$srcfile for the compiler.
22497 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22498
22499 # Set to "yes" if exported symbols are required.
22500 always_export_symbols=$always_export_symbols_CXX
22501
22502 # The commands to list exported symbols.
22503 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22504
22505 # Symbols that should not be listed in the preloaded symbols.
22506 exclude_expsyms=$lt_exclude_expsyms_CXX
22507
22508 # Symbols that must always be exported.
22509 include_expsyms=$lt_include_expsyms_CXX
22510
22511 # Commands necessary for linking programs (against libraries) with templates.
22512 prelink_cmds=$lt_prelink_cmds_CXX
22513
22514 # Specify filename containing input files.
22515 file_list_spec=$lt_file_list_spec_CXX
22516
22517 # How to hardcode a shared library path into an executable.
22518 hardcode_action=$hardcode_action_CXX
22519
22520 # Dependencies to place before and after the objects being linked to
22521 # create a shared library.
22522 predep_objects=$lt_predep_objects_CXX
22523 postdep_objects=$lt_postdep_objects_CXX
22524 predeps=$lt_predeps_CXX
22525 postdeps=$lt_postdeps_CXX
22526
22527 # The library search path used internally by the compiler when linking
22528 # a shared library.
22529 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22530
22531 # ### END LIBTOOL TAG CONFIG: CXX
22532 _LT_EOF
22533
22534 ;;
22535 esac
22536 done
22537 _ACEOF
22538
22539 cat >>$CONFIG_STATUS <<\_ACEOF
22540
22541 { (exit 0); exit 0; }
22542 _ACEOF
22543 chmod +x $CONFIG_STATUS
22544 ac_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.
22555 if 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; }
22566 fi
22567
22568
22569
22570 echo ""
22571 echo "Libtiff is now configured for ${host}"
22572 echo ""
22573 echo " Installation directory: ${prefix}"
22574 echo " Documentation directory: ${LIBTIFF_DOCDIR}"
22575 echo " C compiler: ${CC} ${CFLAGS}"
22576 echo " C++ compiler: ${CXX} ${CXXFLAGS}"
22577 echo " Enable runtime linker paths: ${HAVE_RPATH}"
22578 echo " Support Microsoft Document Imaging: ${HAVE_MDI}"
22579 echo ""
22580 echo " Support for internal codecs:"
22581 echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}"
22582 echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}"
22583 echo " LZW algorithm: ${HAVE_LZW}"
22584 echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}"
22585 echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}"
22586 echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}"
22587 echo ""
22588 echo " Support for external codecs:"
22589 echo " ZLIB support: ${HAVE_ZLIB}"
22590 echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}"
22591 echo " JPEG support: ${HAVE_JPEG}"
22592 echo " Old JPEG support: ${HAVE_OJPEG}"
22593 echo ""
22594 echo " C++ support: ${HAVE_CXX}"
22595 echo ""
22596 echo " OpenGL support: ${HAVE_OPENGL}"
22597 echo ""
22598