/[pcre]/code/trunk/configure
ViewVC logotype

Contents of /code/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 67 - (show annotations) (download)
Sat Feb 24 21:40:13 2007 UTC (7 years, 5 months ago) by nigel
File size: 270375 byte(s)
Load pcre-4.2 into code/trunk.

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Find the correct PATH separator. Usually this is `:', but
244 # DJGPP uses `;' like DOS.
245 if test "X${PATH_SEPARATOR+set}" != Xset; then
246 UNAME=${UNAME-`uname 2>/dev/null`}
247 case X$UNAME in
248 *-DOS) lt_cv_sys_path_separator=';' ;;
249 *) lt_cv_sys_path_separator=':' ;;
250 esac
251 fi
252
253
254 # Check that we are running under the correct shell.
255 SHELL=${CONFIG_SHELL-/bin/sh}
256
257 case X$ECHO in
258 X*--fallback-echo)
259 # Remove one level of quotation (which was required for Make).
260 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261 ;;
262 esac
263
264 echo=${ECHO-echo}
265 if test "X$1" = X--no-reexec; then
266 # Discard the --no-reexec flag, and continue.
267 shift
268 elif test "X$1" = X--fallback-echo; then
269 # Avoid inline document here, it may be left over
270 :
271 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
272 # Yippee, $echo works!
273 :
274 else
275 # Restart under the correct shell.
276 exec $SHELL "$0" --no-reexec ${1+"$@"}
277 fi
278
279 if test "X$1" = X--fallback-echo; then
280 # used as fallback echo
281 shift
282 cat <<EOF
283
284 EOF
285 exit 0
286 fi
287
288 # The HP-UX ksh and POSIX shell print the target directory to stdout
289 # if CDPATH is set.
290 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
291
292 if test -z "$ECHO"; then
293 if test "X${echo_test_string+set}" != Xset; then
294 # find a string as large as possible, as long as the shell can cope with it
295 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
298 echo_test_string="`eval $cmd`" &&
299 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300 then
301 break
302 fi
303 done
304 fi
305
306 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308 test "X$echo_testing_string" = "X$echo_test_string"; then
309 :
310 else
311 # The Solaris, AIX, and Digital Unix default echo programs unquote
312 # backslashes. This makes it impossible to quote backslashes using
313 # echo "$something" | sed 's/\\/\\\\/g'
314 #
315 # So, first we look for a working echo in the user's PATH.
316
317 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
318 for dir in $PATH /usr/ucb; do
319 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322 test "X$echo_testing_string" = "X$echo_test_string"; then
323 echo="$dir/echo"
324 break
325 fi
326 done
327 IFS="$save_ifs"
328
329 if test "X$echo" = Xecho; then
330 # We didn't find a better echo, so look for alternatives.
331 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333 test "X$echo_testing_string" = "X$echo_test_string"; then
334 # This shell has a builtin print -r that does the trick.
335 echo='print -r'
336 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337 test "X$CONFIG_SHELL" != X/bin/ksh; then
338 # If we have ksh, try running configure again with it.
339 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340 export ORIGINAL_CONFIG_SHELL
341 CONFIG_SHELL=/bin/ksh
342 export CONFIG_SHELL
343 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344 else
345 # Try using printf.
346 echo='printf %s\n'
347 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 # Cool, printf works
351 :
352 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357 export CONFIG_SHELL
358 SHELL="$CONFIG_SHELL"
359 export SHELL
360 echo="$CONFIG_SHELL $0 --fallback-echo"
361 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362 test "X$echo_testing_string" = 'X\t' &&
363 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364 test "X$echo_testing_string" = "X$echo_test_string"; then
365 echo="$CONFIG_SHELL $0 --fallback-echo"
366 else
367 # maybe with a smaller string...
368 prev=:
369
370 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 then
373 break
374 fi
375 prev="$cmd"
376 done
377
378 if test "$prev" != 'sed 50q "$0"'; then
379 echo_test_string=`eval $prev`
380 export echo_test_string
381 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382 else
383 # Oops. We lost completely, so just stick with echo.
384 echo=echo
385 fi
386 fi
387 fi
388 fi
389 fi
390 fi
391
392 # Copy echo and quote the copy suitably for passing to libtool from
393 # the Makefile, instead of quoting the original, which is used later.
394 ECHO=$echo
395 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 fi
398
399
400
401 # Name of the host.
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406 exec 6>&1
407
408 #
409 # Initializations.
410 #
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
413 cross_compiling=no
414 subdirs=
415 MFLAGS=
416 MAKEFLAGS=
417 SHELL=${CONFIG_SHELL-/bin/sh}
418
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete. It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
423
424 # Identity of this package.
425 PACKAGE_NAME=
426 PACKAGE_TARNAME=
427 PACKAGE_VERSION=
428 PACKAGE_STRING=
429 PACKAGE_BUGREPORT=
430
431 ac_unique_file="dftables.c"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 # include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 # include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 # include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CFLAGS_FOR_BUILD HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT NEWLINE PCRE_MAJOR PCRE_MINOR PCRE_DATE PCRE_VERSION PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION POSIX_MALLOC_THRESHOLD UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case $ac_option in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
742
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
755
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
782
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
786 ;;
787
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
798 *)
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 ;;
805
806 esac
807 done
808
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
829 do
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882 else
883 ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
892 fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
911 ac_env_CC_value=$CC
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930
931 #
932 # Report the --help message.
933 #
934 if test "$ac_init_help" = "long"; then
935 # Omit some internal or obsolete options to make the list less imposing.
936 # The list generated by autoconf has been trimmed to remove many
937 # options that are totally irrelevant to PCRE (e.g. relating to X),
938 # or are not supported by its Makefile.
939 # The list generated by autoconf has been trimmed to remove many
940 # options that are totally irrelevant to PCRE (e.g. relating to X),
941 # or are not supported by its Makefile.
942 # The list generated by autoconf has been trimmed to remove many
943 # options that are totally irrelevant to PCRE (e.g. relating to X),
944 # or are not supported by its Makefile.
945 # The list generated by autoconf has been trimmed to remove many
946 # options that are totally irrelevant to PCRE (e.g. relating to X),
947 # or are not supported by its Makefile.
948 # This message is too long to be a string in the A/UX 3.1 sh.
949 cat <<_ACEOF
950 \`configure' configures this package to adapt to many kinds of systems.
951
952 Usage: $0 [OPTION]... [VAR=VALUE]...
953
954 To assign environment variables (e.g., CC, CFLAGS...), specify them as
955 VAR=VALUE. See below for descriptions of some of the useful variables.
956
957 Defaults for the options are specified in brackets.
958
959 Configuration:
960 -h, --help display this help and exit
961 --help=short display options specific to this package
962 --help=recursive display the short help of all the included packages
963 -V, --version display version information and exit
964 -q, --quiet, --silent do not print \`checking...' messages
965 --cache-file=FILE cache test results in FILE [disabled]
966 -C, --config-cache alias for \`--cache-file=config.cache'
967 -n, --no-create do not create output files
968 --srcdir=DIR find the sources in DIR [configure dir or \`..']
969
970 _ACEOF
971
972 cat <<_ACEOF
973 Installation directories:
974 --prefix=PREFIX install architecture-independent files in PREFIX
975 [$ac_default_prefix]
976 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
977 [PREFIX]
978
979 By default, \`make install' will install all the files in
980 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
981 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
982 for instance \`--prefix=\$HOME'.
983
984 For better control, use the options below.
985
986 Fine tuning of the installation directories:
987 --bindir=DIR user executables [EPREFIX/bin]
988 --libdir=DIR object code libraries [EPREFIX/lib]
989 --includedir=DIR C header files [PREFIX/include]
990 --mandir=DIR man documentation [PREFIX/man]
991 _ACEOF
992
993 cat <<\_ACEOF
994
995 _ACEOF
996 fi
997
998 if test -n "$ac_init_help"; then
999
1000 cat <<\_ACEOF
1001
1002 Optional Features:
1003 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1004 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1005 --enable-shared build shared libraries default=yes
1006 --enable-static build static libraries default=yes
1007 --enable-fast-install optimize for fast installation default=yes
1008 --disable-libtool-lock avoid locking (might break parallel builds)
1009 --enable-utf8 enable UTF8 support
1010 --enable-newline-is-cr use CR as the newline character
1011 --enable-newline-is-lf use LF as the newline character
1012
1013 Optional Packages:
1014 --with-gnu-ld assume the C compiler uses GNU ld default=no
1015 --with-pic try to use only PIC/non-PIC objects default=use both
1016 --with-posix-malloc-threshold=5 threshold for POSIX malloc usage
1017 --with-link-size=2 internal link size (2, 3, or 4 allowed)
1018 --with-match-limit=10000000 default limit on internal looping)
1019
1020 Some influential environment variables:
1021 CC C compiler command
1022 CFLAGS C compiler flags
1023 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1024 nonstandard directory <lib dir>
1025 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1026 headers in a nonstandard directory <include dir>
1027 CPP C preprocessor
1028
1029 Use these variables to override the choices made by `configure' or to help
1030 it to find libraries and programs with nonstandard names/locations.
1031
1032 _ACEOF
1033 fi
1034
1035 if test "$ac_init_help" = "recursive"; then
1036 # If there are subdirs, report their specific --help.
1037 ac_popdir=`pwd`
1038 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1039 test -d $ac_dir || continue
1040 ac_builddir=.
1041
1042 if test "$ac_dir" != .; then
1043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1044 # A "../" for each directory in $ac_dir_suffix.
1045 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1046 else
1047 ac_dir_suffix= ac_top_builddir=
1048 fi
1049
1050 case $srcdir in
1051 .) # No --srcdir option. We are building in place.
1052 ac_srcdir=.
1053 if test -z "$ac_top_builddir"; then
1054 ac_top_srcdir=.
1055 else
1056 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1057 fi ;;
1058 [\\/]* | ?:[\\/]* ) # Absolute path.
1059 ac_srcdir=$srcdir$ac_dir_suffix;
1060 ac_top_srcdir=$srcdir ;;
1061 *) # Relative path.
1062 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1063 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1064 esac
1065 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1066 # absolute.
1067 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1068 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1069 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1070 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1071
1072 cd $ac_dir
1073 # Check for guested configure; otherwise get Cygnus style configure.
1074 if test -f $ac_srcdir/configure.gnu; then
1075 echo
1076 $SHELL $ac_srcdir/configure.gnu --help=recursive
1077 elif test -f $ac_srcdir/configure; then
1078 echo
1079 $SHELL $ac_srcdir/configure --help=recursive
1080 elif test -f $ac_srcdir/configure.ac ||
1081 test -f $ac_srcdir/configure.in; then
1082 echo
1083 $ac_configure --help
1084 else
1085 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1086 fi
1087 cd $ac_popdir
1088 done
1089 fi
1090
1091 test -n "$ac_init_help" && exit 0
1092 if $ac_init_version; then
1093 cat <<\_ACEOF
1094
1095 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1096 Free Software Foundation, Inc.
1097 This configure script is free software; the Free Software Foundation
1098 gives unlimited permission to copy, distribute and modify it.
1099 _ACEOF
1100 exit 0
1101 fi
1102 exec 5>config.log
1103 cat >&5 <<_ACEOF
1104 This file contains any messages produced by compilers while
1105 running configure, to aid debugging if configure makes a mistake.
1106
1107 It was created by $as_me, which was
1108 generated by GNU Autoconf 2.57. Invocation command line was
1109
1110 $ $0 $@
1111
1112 _ACEOF
1113 {
1114 cat <<_ASUNAME
1115 ## --------- ##
1116 ## Platform. ##
1117 ## --------- ##
1118
1119 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1120 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1121 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1122 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1123 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1124
1125 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1126 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1127
1128 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1129 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1130 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1131 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1132 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1133 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1134 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1135
1136 _ASUNAME
1137
1138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1139 for as_dir in $PATH
1140 do
1141 IFS=$as_save_IFS
1142 test -z "$as_dir" && as_dir=.
1143 echo "PATH: $as_dir"
1144 done
1145
1146 } >&5
1147
1148 cat >&5 <<_ACEOF
1149
1150
1151 ## ----------- ##
1152 ## Core tests. ##
1153 ## ----------- ##
1154
1155 _ACEOF
1156
1157
1158 # Keep a trace of the command line.
1159 # Strip out --no-create and --no-recursion so they do not pile up.
1160 # Strip out --silent because we don't want to record it for future runs.
1161 # Also quote any args containing shell meta-characters.
1162 # Make two passes to allow for proper duplicate-argument suppression.
1163 ac_configure_args=
1164 ac_configure_args0=
1165 ac_configure_args1=
1166 ac_sep=
1167 ac_must_keep_next=false
1168 for ac_pass in 1 2
1169 do
1170 for ac_arg
1171 do
1172 case $ac_arg in
1173 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1176 continue ;;
1177 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1178 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1179 esac
1180 case $ac_pass in
1181 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1182 2)
1183 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1184 if test $ac_must_keep_next = true; then
1185 ac_must_keep_next=false # Got value, back to normal.
1186 else
1187 case $ac_arg in
1188 *=* | --config-cache | -C | -disable-* | --disable-* \
1189 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1190 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1191 | -with-* | --with-* | -without-* | --without-* | --x)
1192 case "$ac_configure_args0 " in
1193 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1194 esac
1195 ;;
1196 -* ) ac_must_keep_next=true ;;
1197 esac
1198 fi
1199 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1200 # Get rid of the leading space.
1201 ac_sep=" "
1202 ;;
1203 esac
1204 done
1205 done
1206 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1207 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1208
1209 # When interrupted or exit'd, cleanup temporary files, and complete
1210 # config.log. We remove comments because anyway the quotes in there
1211 # would cause problems or look ugly.
1212 # WARNING: Be sure not to use single quotes in there, as some shells,
1213 # such as our DU 5.0 friend, will then `close' the trap.
1214 trap 'exit_status=$?
1215 # Save into config.log some information that might help in debugging.
1216 {
1217 echo
1218
1219 cat <<\_ASBOX
1220 ## ---------------- ##
1221 ## Cache variables. ##
1222 ## ---------------- ##
1223 _ASBOX
1224 echo
1225 # The following way of writing the cache mishandles newlines in values,
1226 {
1227 (set) 2>&1 |
1228 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1229 *ac_space=\ *)
1230 sed -n \
1231 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1233 ;;
1234 *)
1235 sed -n \
1236 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1237 ;;
1238 esac;
1239 }
1240 echo
1241
1242 cat <<\_ASBOX
1243 ## ----------------- ##
1244 ## Output variables. ##
1245 ## ----------------- ##
1246 _ASBOX
1247 echo
1248 for ac_var in $ac_subst_vars
1249 do
1250 eval ac_val=$`echo $ac_var`
1251 echo "$ac_var='"'"'$ac_val'"'"'"
1252 done | sort
1253 echo
1254
1255 if test -n "$ac_subst_files"; then
1256 cat <<\_ASBOX
1257 ## ------------- ##
1258 ## Output files. ##
1259 ## ------------- ##
1260 _ASBOX
1261 echo
1262 for ac_var in $ac_subst_files
1263 do
1264 eval ac_val=$`echo $ac_var`
1265 echo "$ac_var='"'"'$ac_val'"'"'"
1266 done | sort
1267 echo
1268 fi
1269
1270 if test -s confdefs.h; then
1271 cat <<\_ASBOX
1272 ## ----------- ##
1273 ## confdefs.h. ##
1274 ## ----------- ##
1275 _ASBOX
1276 echo
1277 sed "/^$/d" confdefs.h | sort
1278 echo
1279 fi
1280 test "$ac_signal" != 0 &&
1281 echo "$as_me: caught signal $ac_signal"
1282 echo "$as_me: exit $exit_status"
1283 } >&5
1284 rm -f core core.* *.core &&
1285 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1286 exit $exit_status
1287 ' 0
1288 for ac_signal in 1 2 13 15; do
1289 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1290 done
1291 ac_signal=0
1292
1293 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1294 rm -rf conftest* confdefs.h
1295 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1296 echo >confdefs.h
1297
1298 # Predefined preprocessor variables.
1299
1300 cat >>confdefs.h <<_ACEOF
1301 #define PACKAGE_NAME "$PACKAGE_NAME"
1302 _ACEOF
1303
1304
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1307 _ACEOF
1308
1309
1310 cat >>confdefs.h <<_ACEOF
1311 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1312 _ACEOF
1313
1314
1315 cat >>confdefs.h <<_ACEOF
1316 #define PACKAGE_STRING "$PACKAGE_STRING"
1317 _ACEOF
1318
1319
1320 cat >>confdefs.h <<_ACEOF
1321 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1322 _ACEOF
1323
1324
1325 # Let the site file select an alternate cache file if it wants to.
1326 # Prefer explicitly selected file to automatically selected ones.
1327 if test -z "$CONFIG_SITE"; then
1328 if test "x$prefix" != xNONE; then
1329 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1330 else
1331 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1332 fi
1333 fi
1334 for ac_site_file in $CONFIG_SITE; do
1335 if test -r "$ac_site_file"; then
1336 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1337 echo "$as_me: loading site script $ac_site_file" >&6;}
1338 sed 's/^/| /' "$ac_site_file" >&5
1339 . "$ac_site_file"
1340 fi
1341 done
1342
1343 if test -r "$cache_file"; then
1344 # Some versions of bash will fail to source /dev/null (special
1345 # files actually), so we avoid doing that.
1346 if test -f "$cache_file"; then
1347 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1348 echo "$as_me: loading cache $cache_file" >&6;}
1349 case $cache_file in
1350 [\\/]* | ?:[\\/]* ) . $cache_file;;
1351 *) . ./$cache_file;;
1352 esac
1353 fi
1354 else
1355 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1356 echo "$as_me: creating cache $cache_file" >&6;}
1357 >$cache_file
1358 fi
1359
1360 # Check that the precious variables saved in the cache have kept the same
1361 # value.
1362 ac_cache_corrupted=false
1363 for ac_var in `(set) 2>&1 |
1364 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1365 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1366 eval ac_new_set=\$ac_env_${ac_var}_set
1367 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1368 eval ac_new_val="\$ac_env_${ac_var}_value"
1369 case $ac_old_set,$ac_new_set in
1370 set,)
1371 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1372 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1373 ac_cache_corrupted=: ;;
1374 ,set)
1375 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1376 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1377 ac_cache_corrupted=: ;;
1378 ,);;
1379 *)
1380 if test "x$ac_old_val" != "x$ac_new_val"; then
1381 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1382 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1383 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1384 echo "$as_me: former value: $ac_old_val" >&2;}
1385 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1386 echo "$as_me: current value: $ac_new_val" >&2;}
1387 ac_cache_corrupted=:
1388 fi;;
1389 esac
1390 # Pass precious variables to config.status.
1391 if test "$ac_new_set" = set; then
1392 case $ac_new_val in
1393 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1394 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1395 *) ac_arg=$ac_var=$ac_new_val ;;
1396 esac
1397 case " $ac_configure_args " in
1398 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1399 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1400 esac
1401 fi
1402 done
1403 if $ac_cache_corrupted; then
1404 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1405 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1406 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1407 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1408 { (exit 1); exit 1; }; }
1409 fi
1410
1411 ac_ext=c
1412 ac_cpp='$CPP $CPPFLAGS'
1413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439 ac_config_headers="$ac_config_headers config.h:config.in"
1440
1441
1442
1443 PCRE_MAJOR=4
1444 PCRE_MINOR=2
1445 PCRE_DATE=14-Apr-2003
1446 PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
1447
1448
1449 POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=10
1450
1451
1452 PCRE_LIB_VERSION=0:1:0
1453 PCRE_POSIXLIB_VERSION=0:0:0
1454
1455
1456 ac_ext=c
1457 ac_cpp='$CPP $CPPFLAGS'
1458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1461 if test -n "$ac_tool_prefix"; then
1462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1463 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1464 echo "$as_me:$LINENO: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1471 else
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1474 do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 break 2
1482 fi
1483 done
1484 done
1485
1486 fi
1487 fi
1488 CC=$ac_cv_prog_CC
1489 if test -n "$CC"; then
1490 echo "$as_me:$LINENO: result: $CC" >&5
1491 echo "${ECHO_T}$CC" >&6
1492 else
1493 echo "$as_me:$LINENO: result: no" >&5
1494 echo "${ECHO_T}no" >&6
1495 fi
1496
1497 fi
1498 if test -z "$ac_cv_prog_CC"; then
1499 ac_ct_CC=$CC
1500 # Extract the first word of "gcc", so it can be a program name with args.
1501 set dummy gcc; ac_word=$2
1502 echo "$as_me:$LINENO: checking for $ac_word" >&5
1503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507 if test -n "$ac_ct_CC"; then
1508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509 else
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 for as_dir in $PATH
1512 do
1513 IFS=$as_save_IFS
1514 test -z "$as_dir" && as_dir=.
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_prog_ac_ct_CC="gcc"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 break 2
1520 fi
1521 done
1522 done
1523
1524 fi
1525 fi
1526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527 if test -n "$ac_ct_CC"; then
1528 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1529 echo "${ECHO_T}$ac_ct_CC" >&6
1530 else
1531 echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1533 fi
1534
1535 CC=$ac_ct_CC
1536 else
1537 CC="$ac_cv_prog_CC"
1538 fi
1539
1540 if test -z "$CC"; then
1541 if test -n "$ac_tool_prefix"; then
1542 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1543 set dummy ${ac_tool_prefix}cc; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549 if test -n "$CC"; then
1550 ac_cv_prog_CC="$CC" # Let the user override the test.
1551 else
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 for as_dir in $PATH
1554 do
1555 IFS=$as_save_IFS
1556 test -z "$as_dir" && as_dir=.
1557 for ac_exec_ext in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_CC="${ac_tool_prefix}cc"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561 break 2
1562 fi
1563 done
1564 done
1565
1566 fi
1567 fi
1568 CC=$ac_cv_prog_CC
1569 if test -n "$CC"; then
1570 echo "$as_me:$LINENO: result: $CC" >&5
1571 echo "${ECHO_T}$CC" >&6
1572 else
1573 echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1575 fi
1576
1577 fi
1578 if test -z "$ac_cv_prog_CC"; then
1579 ac_ct_CC=$CC
1580 # Extract the first word of "cc", so it can be a program name with args.
1581 set dummy cc; ac_word=$2
1582 echo "$as_me:$LINENO: checking for $ac_word" >&5
1583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 else
1587 if test -n "$ac_ct_CC"; then
1588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1589 else
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1592 do
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 for ac_exec_ext in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 ac_cv_prog_ac_ct_CC="cc"
1598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 break 2
1600 fi
1601 done
1602 done
1603
1604 fi
1605 fi
1606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1607 if test -n "$ac_ct_CC"; then
1608 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1609 echo "${ECHO_T}$ac_ct_CC" >&6
1610 else
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1613 fi
1614
1615 CC=$ac_ct_CC
1616 else
1617 CC="$ac_cv_prog_CC"
1618 fi
1619
1620 fi
1621 if test -z "$CC"; then
1622 # Extract the first word of "cc", so it can be a program name with args.
1623 set dummy cc; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC="$CC" # Let the user override the test.
1631 else
1632 ac_prog_rejected=no
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 for as_dir in $PATH
1635 do
1636 IFS=$as_save_IFS
1637 test -z "$as_dir" && as_dir=.
1638 for ac_exec_ext in '' $ac_executable_extensions; do
1639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1641 ac_prog_rejected=yes
1642 continue
1643 fi
1644 ac_cv_prog_CC="cc"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 break 2
1647 fi
1648 done
1649 done
1650
1651 if test $ac_prog_rejected = yes; then
1652 # We found a bogon in the path, so make sure we never use it.
1653 set dummy $ac_cv_prog_CC
1654 shift
1655 if test $# != 0; then
1656 # We chose a different compiler from the bogus one.
1657 # However, it has the same basename, so the bogon will be chosen
1658 # first if we set CC to just the basename; use the full file name.
1659 shift
1660 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1661 fi
1662 fi
1663 fi
1664 fi
1665 CC=$ac_cv_prog_CC
1666 if test -n "$CC"; then
1667 echo "$as_me:$LINENO: result: $CC" >&5
1668 echo "${ECHO_T}$CC" >&6
1669 else
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1672 fi
1673
1674 fi
1675 if test -z "$CC"; then
1676 if test -n "$ac_tool_prefix"; then
1677 for ac_prog in cl
1678 do
1679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_CC+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686 if test -n "$CC"; then
1687 ac_cv_prog_CC="$CC" # Let the user override the test.
1688 else
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692 IFS=$as_save_IFS
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698 break 2
1699 fi
1700 done
1701 done
1702
1703 fi
1704 fi
1705 CC=$ac_cv_prog_CC
1706 if test -n "$CC"; then
1707 echo "$as_me:$LINENO: result: $CC" >&5
1708 echo "${ECHO_T}$CC" >&6
1709 else
1710 echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1712 fi
1713
1714 test -n "$CC" && break
1715 done
1716 fi
1717 if test -z "$CC"; then
1718 ac_ct_CC=$CC
1719 for ac_prog in cl
1720 do
1721 # Extract the first word of "$ac_prog", so it can be a program name with args.
1722 set dummy $ac_prog; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 else
1728 if test -n "$ac_ct_CC"; then
1729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1730 else
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1733 do
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_ac_ct_CC="$ac_prog"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 break 2
1741 fi
1742 done
1743 done
1744
1745 fi
1746 fi
1747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1748 if test -n "$ac_ct_CC"; then
1749 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1750 echo "${ECHO_T}$ac_ct_CC" >&6
1751 else
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1754 fi
1755
1756 test -n "$ac_ct_CC" && break
1757 done
1758
1759 CC=$ac_ct_CC
1760 fi
1761
1762 fi
1763
1764
1765 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1766 See \`config.log' for more details." >&5
1767 echo "$as_me: error: no acceptable C compiler found in \$PATH
1768 See \`config.log' for more details." >&2;}
1769 { (exit 1); exit 1; }; }
1770
1771 # Provide some information about the compiler.
1772 echo "$as_me:$LINENO:" \
1773 "checking for C compiler version" >&5
1774 ac_compiler=`set X $ac_compile; echo $2`
1775 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1776 (eval $ac_compiler --version </dev/null >&5) 2>&5
1777 ac_status=$?
1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779 (exit $ac_status); }
1780 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1781 (eval $ac_compiler -v </dev/null >&5) 2>&5
1782 ac_status=$?
1783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1784 (exit $ac_status); }
1785 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1786 (eval $ac_compiler -V </dev/null >&5) 2>&5
1787 ac_status=$?
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }
1790
1791 cat >conftest.$ac_ext <<_ACEOF
1792 #line $LINENO "configure"
1793 /* confdefs.h. */
1794 _ACEOF
1795 cat confdefs.h >>conftest.$ac_ext
1796 cat >>conftest.$ac_ext <<_ACEOF
1797 /* end confdefs.h. */
1798
1799 int
1800 main ()
1801 {
1802
1803 ;
1804 return 0;
1805 }
1806 _ACEOF
1807 ac_clean_files_save=$ac_clean_files
1808 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1809 # Try to create an executable without -o first, disregard a.out.
1810 # It will help us diagnose broken compilers, and finding out an intuition
1811 # of exeext.
1812 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1813 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1814 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1815 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1816 (eval $ac_link_default) 2>&5
1817 ac_status=$?
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }; then
1820 # Find the output, starting from the most likely. This scheme is
1821 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1822 # resort.
1823
1824 # Be careful to initialize this variable, since it used to be cached.
1825 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1826 ac_cv_exeext=
1827 # b.out is created by i960 compilers.
1828 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1829 do
1830 test -f "$ac_file" || continue
1831 case $ac_file in
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1833 ;;
1834 conftest.$ac_ext )
1835 # This is the source file.
1836 ;;
1837 [ab].out )
1838 # We found the default executable, but exeext='' is most
1839 # certainly right.
1840 break;;
1841 *.* )
1842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1843 # FIXME: I believe we export ac_cv_exeext for Libtool,
1844 # but it would be cool to find out if it's true. Does anybody
1845 # maintain Libtool? --akim.
1846 export ac_cv_exeext
1847 break;;
1848 * )
1849 break;;
1850 esac
1851 done
1852 else
1853 echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1857 See \`config.log' for more details." >&5
1858 echo "$as_me: error: C compiler cannot create executables
1859 See \`config.log' for more details." >&2;}
1860 { (exit 77); exit 77; }; }
1861 fi
1862
1863 ac_exeext=$ac_cv_exeext
1864 echo "$as_me:$LINENO: result: $ac_file" >&5
1865 echo "${ECHO_T}$ac_file" >&6
1866
1867 # Check the compiler produces executables we can run. If not, either
1868 # the compiler is broken, or we cross compile.
1869 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1870 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1871 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1872 # If not cross compiling, check that we can run a simple program.
1873 if test "$cross_compiling" != yes; then
1874 if { ac_try='./$ac_file'
1875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1876 (eval $ac_try) 2>&5
1877 ac_status=$?
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }; }; then
1880 cross_compiling=no
1881 else
1882 if test "$cross_compiling" = maybe; then
1883 cross_compiling=yes
1884 else
1885 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1886 If you meant to cross compile, use \`--host'.
1887 See \`config.log' for more details." >&5
1888 echo "$as_me: error: cannot run C compiled programs.
1889 If you meant to cross compile, use \`--host'.
1890 See \`config.log' for more details." >&2;}
1891 { (exit 1); exit 1; }; }
1892 fi
1893 fi
1894 fi
1895 echo "$as_me:$LINENO: result: yes" >&5
1896 echo "${ECHO_T}yes" >&6
1897
1898 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1899 ac_clean_files=$ac_clean_files_save
1900 # Check the compiler produces executables we can run. If not, either
1901 # the compiler is broken, or we cross compile.
1902 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1903 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1904 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1905 echo "${ECHO_T}$cross_compiling" >&6
1906
1907 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1908 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1910 (eval $ac_link) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1915 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1916 # work properly (i.e., refer to `conftest.exe'), while it won't with
1917 # `rm'.
1918 for ac_file in conftest.exe conftest conftest.*; do
1919 test -f "$ac_file" || continue
1920 case $ac_file in
1921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1922 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1923 export ac_cv_exeext
1924 break;;
1925 * ) break;;
1926 esac
1927 done
1928 else
1929 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1930 See \`config.log' for more details." >&5
1931 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1932 See \`config.log' for more details." >&2;}
1933 { (exit 1); exit 1; }; }
1934 fi
1935
1936 rm -f conftest$ac_cv_exeext
1937 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1938 echo "${ECHO_T}$ac_cv_exeext" >&6
1939
1940 rm -f conftest.$ac_ext
1941 EXEEXT=$ac_cv_exeext
1942 ac_exeext=$EXEEXT
1943 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1944 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1945 if test "${ac_cv_objext+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948 cat >conftest.$ac_ext <<_ACEOF
1949 #line $LINENO "configure"
1950 /* confdefs.h. */
1951 _ACEOF
1952 cat confdefs.h >>conftest.$ac_ext
1953 cat >>conftest.$ac_ext <<_ACEOF
1954 /* end confdefs.h. */
1955
1956 int
1957 main ()
1958 {
1959
1960 ;
1961 return 0;
1962 }
1963 _ACEOF
1964 rm -f conftest.o conftest.obj
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; then
1970 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1971 case $ac_file in
1972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1974 break;;
1975 esac
1976 done
1977 else
1978 echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1982 See \`config.log' for more details." >&5
1983 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&2;}
1985 { (exit 1); exit 1; }; }
1986 fi
1987
1988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1989 fi
1990 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1991 echo "${ECHO_T}$ac_cv_objext" >&6
1992 OBJEXT=$ac_cv_objext
1993 ac_objext=$OBJEXT
1994 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1995 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1996 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 cat >conftest.$ac_ext <<_ACEOF
2000 #line $LINENO "configure"
2001 /* confdefs.h. */
2002 _ACEOF
2003 cat confdefs.h >>conftest.$ac_ext
2004 cat >>conftest.$ac_ext <<_ACEOF
2005 /* end confdefs.h. */
2006
2007 int
2008 main ()
2009 {
2010 #ifndef __GNUC__
2011 choke me
2012 #endif
2013
2014 ;
2015 return 0;
2016 }
2017 _ACEOF
2018 rm -f conftest.$ac_objext
2019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2020 (eval $ac_compile) 2>&5
2021 ac_status=$?
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); } &&
2024 { ac_try='test -s conftest.$ac_objext'
2025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2026 (eval $ac_try) 2>&5
2027 ac_status=$?
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; }; then
2030 ac_compiler_gnu=yes
2031 else
2032 echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2034
2035 ac_compiler_gnu=no
2036 fi
2037 rm -f conftest.$ac_objext conftest.$ac_ext
2038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2039
2040 fi
2041 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2042 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2043 GCC=`test $ac_compiler_gnu = yes && echo yes`
2044 ac_test_CFLAGS=${CFLAGS+set}
2045 ac_save_CFLAGS=$CFLAGS
2046 CFLAGS="-g"
2047 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2048 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2049 if test "${ac_cv_prog_cc_g+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052 cat >conftest.$ac_ext <<_ACEOF
2053 #line $LINENO "configure"
2054 /* confdefs.h. */
2055 _ACEOF
2056 cat confdefs.h >>conftest.$ac_ext
2057 cat >>conftest.$ac_ext <<_ACEOF
2058 /* end confdefs.h. */
2059
2060 int
2061 main ()
2062 {
2063
2064 ;
2065 return 0;
2066 }
2067 _ACEOF
2068 rm -f conftest.$ac_objext
2069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2070 (eval $ac_compile) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); } &&
2074 { ac_try='test -s conftest.$ac_objext'
2075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2076 (eval $ac_try) 2>&5
2077 ac_status=$?
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; }; then
2080 ac_cv_prog_cc_g=yes
2081 else
2082 echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2084
2085 ac_cv_prog_cc_g=no
2086 fi
2087 rm -f conftest.$ac_objext conftest.$ac_ext
2088 fi
2089 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2090 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2091 if test "$ac_test_CFLAGS" = set; then
2092 CFLAGS=$ac_save_CFLAGS
2093 elif test $ac_cv_prog_cc_g = yes; then
2094 if test "$GCC" = yes; then
2095 CFLAGS="-g -O2"
2096 else
2097 CFLAGS="-g"
2098 fi
2099 else
2100 if test "$GCC" = yes; then
2101 CFLAGS="-O2"
2102 else
2103 CFLAGS=
2104 fi
2105 fi
2106 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2107 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2108 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 ac_cv_prog_cc_stdc=no
2112 ac_save_CC=$CC
2113 cat >conftest.$ac_ext <<_ACEOF
2114 #line $LINENO "configure"
2115 /* confdefs.h. */
2116 _ACEOF
2117 cat confdefs.h >>conftest.$ac_ext
2118 cat >>conftest.$ac_ext <<_ACEOF
2119 /* end confdefs.h. */
2120 #include <stdarg.h>
2121 #include <stdio.h>
2122 #include <sys/types.h>
2123 #include <sys/stat.h>
2124 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2125 struct buf { int x; };
2126 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2127 static char *e (p, i)
2128 char **p;
2129 int i;
2130 {
2131 return p[i];
2132 }
2133 static char *f (char * (*g) (char **, int), char **p, ...)
2134 {
2135 char *s;
2136 va_list v;
2137 va_start (v,p);
2138 s = g (p, va_arg (v,int));
2139 va_end (v);
2140 return s;
2141 }
2142 int test (int i, double x);
2143 struct s1 {int (*f) (int a);};
2144 struct s2 {int (*f) (double a);};
2145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2146 int argc;
2147 char **argv;
2148 int
2149 main ()
2150 {
2151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 # Don't try gcc -ansi; that turns off useful extensions and
2157 # breaks some systems' header files.
2158 # AIX -qlanglvl=ansi
2159 # Ultrix and OSF/1 -std1
2160 # HP-UX 10.20 and later -Ae
2161 # HP-UX older versions -Aa -D_HPUX_SOURCE
2162 # SVR4 -Xc -D__EXTENSIONS__
2163 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2164 do
2165 CC="$ac_save_CC $ac_arg"
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); } &&
2172 { ac_try='test -s conftest.$ac_objext'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 (eval $ac_try) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; }; then
2178 ac_cv_prog_cc_stdc=$ac_arg
2179 break
2180 else
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2183
2184 fi
2185 rm -f conftest.$ac_objext
2186 done
2187 rm -f conftest.$ac_ext conftest.$ac_objext
2188 CC=$ac_save_CC
2189
2190 fi
2191
2192 case "x$ac_cv_prog_cc_stdc" in
2193 x|xno)
2194 echo "$as_me:$LINENO: result: none needed" >&5
2195 echo "${ECHO_T}none needed" >&6 ;;
2196 *)
2197 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2198 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2199 CC="$CC $ac_cv_prog_cc_stdc" ;;
2200 esac
2201
2202 # Some people use a C++ compiler to compile C. Since we use `exit',
2203 # in C++ we need to declare it. In case someone uses the same compiler
2204 # for both compiling C and C++ we need to have the C++ compiler decide
2205 # the declaration of exit, since it's the most demanding environment.
2206 cat >conftest.$ac_ext <<_ACEOF
2207 #ifndef __cplusplus
2208 choke me
2209 #endif
2210 _ACEOF
2211 rm -f conftest.$ac_objext
2212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213 (eval $ac_compile) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); } &&
2217 { ac_try='test -s conftest.$ac_objext'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2223 for ac_declaration in \
2224 ''\
2225 '#include <stdlib.h>' \
2226 'extern "C" void std::exit (int) throw (); using std::exit;' \
2227 'extern "C" void std::exit (int); using std::exit;' \
2228 'extern "C" void exit (int) throw ();' \
2229 'extern "C" void exit (int);' \
2230 'void exit (int);'
2231 do
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #line $LINENO "configure"
2234 /* confdefs.h. */
2235 _ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2239 #include <stdlib.h>
2240 $ac_declaration
2241 int
2242 main ()
2243 {
2244 exit (42);
2245 ;
2246 return 0;
2247 }
2248 _ACEOF
2249 rm -f conftest.$ac_objext
2250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2251 (eval $ac_compile) 2>&5
2252 ac_status=$?
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); } &&
2255 { ac_try='test -s conftest.$ac_objext'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 (eval $ac_try) 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2261 :
2262 else
2263 echo "$as_me: failed program was:" >&5
2264 sed 's/^/| /' conftest.$ac_ext >&5
2265
2266 continue
2267 fi
2268 rm -f conftest.$ac_objext conftest.$ac_ext
2269 cat >conftest.$ac_ext <<_ACEOF
2270 #line $LINENO "configure"
2271 /* confdefs.h. */
2272 _ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2276 $ac_declaration
2277 int
2278 main ()
2279 {
2280 exit (42);
2281 ;
2282 return 0;
2283 }
2284 _ACEOF
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); } &&
2291 { ac_try='test -s conftest.$ac_objext'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 (eval $ac_try) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; }; then
2297 break
2298 else
2299 echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2301
2302 fi
2303 rm -f conftest.$ac_objext conftest.$ac_ext
2304 done
2305 rm -f conftest*
2306 if test -n "$ac_declaration"; then
2307 echo '#ifdef __cplusplus' >>confdefs.h
2308 echo $ac_declaration >>confdefs.h
2309 echo '#endif' >>confdefs.h
2310 fi
2311
2312 else
2313 echo "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2315
2316 fi
2317 rm -f conftest.$ac_objext conftest.$ac_ext
2318 ac_ext=c
2319 ac_cpp='$CPP $CPPFLAGS'
2320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323
2324 ac_aux_dir=
2325 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2326 if test -f $ac_dir/install-sh; then
2327 ac_aux_dir=$ac_dir
2328 ac_install_sh="$ac_aux_dir/install-sh -c"
2329 break
2330 elif test -f $ac_dir/install.sh; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install.sh -c"
2333 break
2334 elif test -f $ac_dir/shtool; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/shtool install -c"
2337 break
2338 fi
2339 done
2340 if test -z "$ac_aux_dir"; then
2341 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2342 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2343 { (exit 1); exit 1; }; }
2344 fi
2345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2347 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2348
2349 # Find a good install program. We prefer a C program (faster),
2350 # so one script is as good as another. But avoid the broken or
2351 # incompatible versions:
2352 # SysV /etc/install, /usr/sbin/install
2353 # SunOS /usr/etc/install
2354 # IRIX /sbin/install
2355 # AIX /bin/install
2356 # AmigaOS /C/install, which installs bootblocks on floppy discs
2357 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2358 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2359 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2360 # ./install, which can be erroneously created by make from ./install.sh.
2361 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2362 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2363 if test -z "$INSTALL"; then
2364 if test "${ac_cv_path_install+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 # Account for people who put trailing slashes in PATH elements.
2373 case $as_dir/ in
2374 ./ | .// | /cC/* | \
2375 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2376 /usr/ucb/* ) ;;
2377 *)
2378 # OSF1 and SCO ODT 3.0 have their own names for install.
2379 # Don't use installbsd from OSF since it installs stuff as root
2380 # by default.
2381 for ac_prog in ginstall scoinst install; do
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2384 if test $ac_prog = install &&
2385 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386 # AIX install. It has an incompatible calling convention.
2387 :
2388 elif test $ac_prog = install &&
2389 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2390 # program-specific install script used by HP pwplus--don't use.
2391 :
2392 else
2393 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2394 break 3
2395 fi
2396 fi
2397 done
2398 done
2399 ;;
2400 esac
2401 done
2402
2403
2404 fi
2405 if test "${ac_cv_path_install+set}" = set; then
2406 INSTALL=$ac_cv_path_install
2407 else
2408 # As a last resort, use the slow shell script. We don't cache a
2409 # path for INSTALL within a source directory, because that will
2410 # break other packages using the cache if that directory is
2411 # removed, or if the path is relative.
2412 INSTALL=$ac_install_sh
2413 fi
2414 fi
2415 echo "$as_me:$LINENO: result: $INSTALL" >&5
2416 echo "${ECHO_T}$INSTALL" >&6
2417
2418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2419 # It thinks the first close brace ends the variable substitution.
2420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2421
2422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2423
2424 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2425
2426
2427 # Check whether --enable-shared or --disable-shared was given.
2428 if test "${enable_shared+set}" = set; then
2429 enableval="$enable_shared"
2430 p=${PACKAGE-default}
2431 case $enableval in
2432 yes) enable_shared=yes ;;
2433 no) enable_shared=no ;;
2434 *)
2435 enable_shared=no
2436 # Look at the argument we got. We use all the common list separators.
2437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2438 for pkg in $enableval; do
2439 if test "X$pkg" = "X$p"; then
2440 enable_shared=yes
2441 fi
2442 done
2443 IFS="$ac_save_ifs"
2444 ;;
2445 esac
2446 else
2447 enable_shared=yes
2448 fi;
2449 # Check whether --enable-static or --disable-static was given.
2450 if test "${enable_static+set}" = set; then
2451 enableval="$enable_static"
2452 p=${PACKAGE-default}
2453 case $enableval in
2454 yes) enable_static=yes ;;
2455 no) enable_static=no ;;
2456 *)
2457 enable_static=no
2458 # Look at the argument we got. We use all the common list separators.
2459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2460 for pkg in $enableval; do
2461 if test "X$pkg" = "X$p"; then
2462 enable_static=yes
2463 fi
2464 done
2465 IFS="$ac_save_ifs"
2466 ;;
2467 esac
2468 else
2469 enable_static=yes
2470 fi;
2471 # Check whether --enable-fast-install or --disable-fast-install was given.
2472 if test "${enable_fast_install+set}" = set; then
2473 enableval="$enable_fast_install"
2474 p=${PACKAGE-default}
2475 case $enableval in
2476 yes) enable_fast_install=yes ;;
2477 no) enable_fast_install=no ;;
2478 *)
2479 enable_fast_install=no
2480 # Look at the argument we got. We use all the common list separators.
2481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2482 for pkg in $enableval; do
2483 if test "X$pkg" = "X$p"; then
2484 enable_fast_install=yes
2485 fi
2486 done
2487 IFS="$ac_save_ifs"
2488 ;;
2489 esac
2490 else
2491 enable_fast_install=yes
2492 fi;
2493 # Make sure we can run config.sub.
2494 $ac_config_sub sun4 >/dev/null 2>&1 ||
2495 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2496 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2497 { (exit 1); exit 1; }; }
2498
2499 echo "$as_me:$LINENO: checking build system type" >&5
2500 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2501 if test "${ac_cv_build+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504 ac_cv_build_alias=$build_alias
2505 test -z "$ac_cv_build_alias" &&
2506 ac_cv_build_alias=`$ac_config_guess`
2507 test -z "$ac_cv_build_alias" &&
2508 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2509 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2510 { (exit 1); exit 1; }; }
2511 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2513 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2514 { (exit 1); exit 1; }; }
2515
2516 fi
2517 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2518 echo "${ECHO_T}$ac_cv_build" >&6
2519 build=$ac_cv_build
2520 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2521 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2522 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2523
2524
2525 echo "$as_me:$LINENO: checking host system type" >&5
2526 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2527 if test "${ac_cv_host+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530 ac_cv_host_alias=$host_alias
2531 test -z "$ac_cv_host_alias" &&
2532 ac_cv_host_alias=$ac_cv_build_alias
2533 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2535 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2536 { (exit 1); exit 1; }; }
2537
2538 fi
2539 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2540 echo "${ECHO_T}$ac_cv_host" >&6
2541 host=$ac_cv_host
2542 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2543 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2544 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2545
2546
2547
2548 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2549 if test "${with_gnu_ld+set}" = set; then
2550 withval="$with_gnu_ld"
2551 test "$withval" = no || with_gnu_ld=yes
2552 else
2553 with_gnu_ld=no
2554 fi;
2555 ac_prog=ld
2556 if test "$GCC" = yes; then
2557 # Check if gcc -print-prog-name=ld gives a path.
2558 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2559 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2560 case $host in
2561 *-*-mingw*)
2562 # gcc leaves a trailing carriage return which upsets mingw
2563 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2564 *)
2565 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2566 esac
2567 case $ac_prog in
2568 # Accept absolute paths.
2569 [\\/]* | [A-Za-z]:[\\/]*)
2570 re_direlt='/[^/][^/]*/\.\./'
2571 # Canonicalize the path of ld
2572 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2573 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2574 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2575 done
2576 test -z "$LD" && LD="$ac_prog"
2577 ;;
2578 "")
2579 # If it fails, then pretend we aren't using GCC.
2580 ac_prog=ld
2581 ;;
2582 *)
2583 # If it is relative, then search for the first ld in PATH.
2584 with_gnu_ld=unknown
2585 ;;
2586 esac
2587 elif test "$with_gnu_ld" = yes; then
2588 echo "$as_me:$LINENO: checking for GNU ld" >&5
2589 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2590 else
2591 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2592 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2593 fi
2594 if test "${lt_cv_path_LD+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 else
2597 if test -z "$LD"; then
2598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2599 for ac_dir in $PATH; do
2600 test -z "$ac_dir" && ac_dir=.
2601 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2602 lt_cv_path_LD="$ac_dir/$ac_prog"
2603 # Check to see if the program is GNU ld. I'd rather use --version,
2604 # but apparently some GNU ld's only accept -v.
2605 # Break only if it was the GNU/non-GNU ld that we prefer.
2606 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2607 test "$with_gnu_ld" != no && break
2608 else
2609 test "$with_gnu_ld" != yes && break
2610 fi
2611 fi
2612 done
2613 IFS="$ac_save_ifs"
2614 else
2615 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2616 fi
2617 fi
2618
2619 LD="$lt_cv_path_LD"
2620 if test -n "$LD"; then
2621 echo "$as_me:$LINENO: result: $LD" >&5
2622 echo "${ECHO_T}$LD" >&6
2623 else
2624 echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6
2626 fi
2627 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2628 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2629 { (exit 1); exit 1; }; }
2630 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2631 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2632 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2636 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2637 lt_cv_prog_gnu_ld=yes
2638 else
2639 lt_cv_prog_gnu_ld=no
2640 fi
2641 fi
2642 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2643 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2644 with_gnu_ld=$lt_cv_prog_gnu_ld
2645
2646
2647 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2648 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2649 if test "${lt_cv_ld_reload_flag+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 else
2652 lt_cv_ld_reload_flag='-r'
2653 fi
2654 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2655 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2656 reload_flag=$lt_cv_ld_reload_flag
2657 test -n "$reload_flag" && reload_flag=" $reload_flag"
2658
2659 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2660 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2661 if test "${lt_cv_path_NM+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664 if test -n "$NM"; then
2665 # Let the user override the test.
2666 lt_cv_path_NM="$NM"
2667 else
2668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2669 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2670 test -z "$ac_dir" && ac_dir=.
2671 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2672 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2673 # Check to see if the nm accepts a BSD-compat flag.
2674 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2675 # nm: unknown option "B" ignored
2676 # Tru64's nm complains that /dev/null is an invalid object file
2677 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2678 lt_cv_path_NM="$tmp_nm -B"
2679 break
2680 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2681 lt_cv_path_NM="$tmp_nm -p"
2682 break
2683 else
2684 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2685 continue # so that we can try to find one that supports BSD flags
2686 fi
2687 fi
2688 done
2689 IFS="$ac_save_ifs"
2690 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2691 fi
2692 fi
2693
2694 NM="$lt_cv_path_NM"
2695 echo "$as_me:$LINENO: result: $NM" >&5
2696 echo "${ECHO_T}$NM" >&6
2697
2698 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2699 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2700 LN_S=$as_ln_s
2701 if test "$LN_S" = "ln -s"; then
2702 echo "$as_me:$LINENO: result: yes" >&5
2703 echo "${ECHO_T}yes" >&6
2704 else
2705 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2706 echo "${ECHO_T}no, using $LN_S" >&6
2707 fi
2708
2709 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2710 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2711 if test "${lt_cv_deplibs_check_method+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714 lt_cv_file_magic_cmd='$MAGIC_CMD'
2715 lt_cv_file_magic_test_file=
2716 lt_cv_deplibs_check_method='unknown'
2717 # Need to set the preceding variable on all platforms that support
2718 # interlibrary dependencies.
2719 # 'none' -- dependencies not supported.
2720 # `unknown' -- same as none, but documents that we really don't know.
2721 # 'pass_all' -- all dependencies passed with no checks.
2722 # 'test_compile' -- check by making test program.
2723 # ['file_magic [regex]'] -- check by looking for files in library path
2724 # which responds to the $file_magic_cmd with a given egrep regex.
2725 # If you have `file' or equivalent on your system and you're not sure
2726 # whether `pass_all' will *always* work, you probably want this one.
2727
2728 case $host_os in
2729 aix4* | aix5*)
2730 lt_cv_deplibs_check_method=pass_all
2731 ;;
2732
2733 beos*)
2734 lt_cv_deplibs_check_method=pass_all
2735 ;;
2736
2737 bsdi4*)
2738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2739 lt_cv_file_magic_cmd='/usr/bin/file -L'
2740 lt_cv_file_magic_test_file=/shlib/libc.so
2741 ;;
2742
2743 cygwin* | mingw* | pw32*)
2744 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2745 lt_cv_file_magic_cmd='$OBJDUMP -f'
2746 ;;
2747
2748 darwin* | rhapsody*)
2749 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2750 lt_cv_file_magic_cmd='/usr/bin/file -L'
2751 case "$host_os" in
2752 rhapsody* | darwin1.012)
2753 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2754 ;;
2755 *) # Darwin 1.3 on
2756 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2757 ;;
2758 esac
2759 ;;
2760
2761 freebsd*)
2762 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2763 case $host_cpu in
2764 i*86 )
2765 # Not sure whether the presence of OpenBSD here was a mistake.
2766 # Let's accept both of them until this is cleared up.
2767 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2768 lt_cv_file_magic_cmd=/usr/bin/file
2769 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2770 ;;
2771 esac
2772 else
2773 lt_cv_deplibs_check_method=pass_all
2774 fi
2775 ;;
2776
2777 gnu*)
2778 lt_cv_deplibs_check_method=pass_all
2779 ;;
2780
2781 hpux10.20*|hpux11*)
2782 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2783 lt_cv_file_magic_cmd=/usr/bin/file
2784 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2785 ;;
2786
2787 irix5* | irix6*)
2788 case $host_os in
2789 irix5*)
2790 # this will be overridden with pass_all, but let us keep it just in case
2791 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2792 ;;
2793 *)
2794 case $LD in
2795 *-32|*"-32 ") libmagic=32-bit;;
2796 *-n32|*"-n32 ") libmagic=N32;;
2797 *-64|*"-64 ") libmagic=64-bit;;
2798 *) libmagic=never-match;;
2799 esac
2800 # this will be overridden with pass_all, but let us keep it just in case
2801 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2802 ;;
2803 esac
2804 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2805 lt_cv_deplibs_check_method=pass_all
2806 ;;
2807
2808 # This must be Linux ELF.
2809 linux-gnu*)
2810 case $host_cpu in
2811 alpha* | i*86 | powerpc* | sparc* | ia64* )
2812 lt_cv_deplibs_check_method=pass_all ;;
2813 *)
2814 # glibc up to 2.1.1 does not perform some relocations on ARM
2815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2816 esac
2817 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2818 ;;
2819
2820 netbsd*)
2821 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2822 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2823 else
2824 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2825 fi
2826 ;;
2827
2828 newos6*)
2829 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2830 lt_cv_file_magic_cmd=/usr/bin/file
2831 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2832 ;;
2833
2834 osf3* | osf4* | osf5*)
2835 # this will be overridden with pass_all, but let us keep it just in case
2836 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2837 lt_cv_file_magic_test_file=/shlib/libc.so
2838 lt_cv_deplibs_check_method=pass_all
2839 ;;
2840
2841 sco3.2v5*)
2842 lt_cv_deplibs_check_method=pass_all
2843 ;;
2844
2845 solaris*)
2846 lt_cv_deplibs_check_method=pass_all
2847 lt_cv_file_magic_test_file=/lib/libc.so
2848 ;;
2849
2850 sysv5uw[78]* | sysv4*uw2*)
2851 lt_cv_deplibs_check_method=pass_all
2852 ;;
2853
2854 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2855 case $host_vendor in
2856 motorola)
2857 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]'
2858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2859 ;;
2860 ncr)
2861 lt_cv_deplibs_check_method=pass_all
2862 ;;
2863 sequent)
2864 lt_cv_file_magic_cmd='/bin/file'
2865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2866 ;;
2867 sni)
2868 lt_cv_file_magic_cmd='/bin/file'
2869 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2870 lt_cv_file_magic_test_file=/lib/libc.so
2871 ;;
2872 esac
2873 ;;
2874 esac
2875
2876 fi
2877 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2878 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2879 file_magic_cmd=$lt_cv_file_magic_cmd
2880 deplibs_check_method=$lt_cv_deplibs_check_method
2881
2882
2883
2884
2885
2886
2887
2888
2889 # Check for command to grab the raw symbol name followed by C symbol from nm.
2890 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
2891 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2892 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895
2896 # These are sane defaults that work on at least a few old systems.
2897 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2898
2899 # Character class describing NM global symbol codes.
2900 symcode='[BCDEGRST]'
2901
2902 # Regexp to match symbols that can be accessed directly from C.
2903 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2904
2905 # Transform the above into a raw symbol and a C symbol.
2906 symxfrm='\1 \2\3 \3'
2907
2908 # Transform an extracted symbol line into a proper C declaration
2909 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2910
2911 # Define system-specific variables.
2912 case $host_os in
2913 aix*)
2914 symcode='[BCDT]'
2915 ;;
2916 cygwin* | mingw* | pw32*)
2917 symcode='[ABCDGISTW]'
2918 ;;
2919 hpux*) # Its linker distinguishes data from code symbols
2920 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2921 ;;
2922 irix*)
2923 symcode='[BCDEGRST]'
2924 ;;
2925 solaris* | sysv5*)
2926 symcode='[BDT]'
2927 ;;
2928 sysv4)
2929 symcode='[DFNSTU]'
2930 ;;
2931 esac
2932
2933 # Handle CRLF in mingw tool chain
2934 opt_cr=
2935 case $host_os in
2936 mingw*)
2937 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2938 ;;
2939 esac
2940
2941 # If we're using GNU nm, then use its standard symbol codes.
2942 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2943 symcode='[ABCDGISTW]'
2944 fi
2945
2946 # Try without a prefix undercore, then with it.
2947 for ac_symprfx in "" "_"; do
2948
2949 # Write the raw and C identifiers.
2950 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2951
2952 # Check to see that the pipe works correctly.
2953 pipe_works=no
2954 rm -f conftest*
2955 cat > conftest.$ac_ext <<EOF
2956 #ifdef __cplusplus
2957 extern "C" {
2958 #endif
2959 char nm_test_var;
2960 void nm_test_func(){}
2961 #ifdef __cplusplus
2962 }
2963 #endif
2964 int main(){nm_test_var='a';nm_test_func();return(0);}
2965 EOF
2966
2967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2968 (eval $ac_compile) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; then
2972 # Now try to grab the symbols.
2973 nlist=conftest.nm
2974 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2975 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } && test -s "$nlist"; then
2979 # Try sorting and uniquifying the output.
2980 if sort "$nlist" | uniq > "$nlist"T; then
2981 mv -f "$nlist"T "$nlist"
2982 else
2983 rm -f "$nlist"T
2984 fi
2985
2986 # Make sure that we snagged all the symbols we need.
2987 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2988 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2989 cat <<EOF > conftest.$ac_ext
2990 #ifdef __cplusplus
2991 extern "C" {
2992 #endif
2993
2994 EOF
2995 # Now generate the symbol file.
2996 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2997
2998 cat <<EOF >> conftest.$ac_ext
2999 #if defined (__STDC__) && __STDC__
3000 # define lt_ptr_t void *
3001 #else
3002 # define lt_ptr_t char *
3003 # define const
3004 #endif
3005
3006 /* The mapping between symbol names and symbols. */
3007 const struct {
3008 const char *name;
3009 lt_ptr_t address;
3010 }
3011 lt_preloaded_symbols[] =
3012 {
3013 EOF
3014 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
3015 cat <<\EOF >> conftest.$ac_ext
3016 {0, (lt_ptr_t) 0}
3017 };
3018
3019 #ifdef __cplusplus
3020 }
3021 #endif
3022 EOF
3023 # Now try linking the two files.
3024 mv conftest.$ac_objext conftstm.$ac_objext
3025 save_LIBS="$LIBS"
3026 save_CFLAGS="$CFLAGS"
3027 LIBS="conftstm.$ac_objext"
3028 CFLAGS="$CFLAGS$no_builtin_flag"
3029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3030 (eval $ac_link) 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } && test -s conftest; then
3034 pipe_works=yes
3035 fi
3036 LIBS="$save_LIBS"
3037 CFLAGS="$save_CFLAGS"
3038 else
3039 echo "cannot find nm_test_func in $nlist" >&5
3040 fi
3041 else
3042 echo "cannot find nm_test_var in $nlist" >&5
3043 fi
3044 else
3045 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3046 fi
3047 else
3048 echo "$progname: failed program was:" >&5
3049 cat conftest.$ac_ext >&5
3050 fi
3051 rm -f conftest* conftst*
3052
3053 # Do not use the global_symbol_pipe unless it works.
3054 if test "$pipe_works" = yes; then
3055 break
3056 else
3057 lt_cv_sys_global_symbol_pipe=
3058 fi
3059 done
3060
3061 fi
3062
3063 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3064 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3065 global_symbol_to_cdecl=
3066 else
3067 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3068 fi
3069 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
3070 echo "$as_me:$LINENO: result: failed" >&5
3071 echo "${ECHO_T}failed" >&6
3072 else
3073 echo "$as_me:$LINENO: result: ok" >&5
3074 echo "${ECHO_T}ok" >&6
3075 fi
3076
3077 ac_ext=c
3078 ac_cpp='$CPP $CPPFLAGS'
3079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3082 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3083 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3084 # On Suns, sometimes $CPP names a directory.
3085 if test -n "$CPP" && test -d "$CPP"; then
3086 CPP=
3087 fi
3088 if test -z "$CPP"; then
3089 if test "${ac_cv_prog_CPP+set}" = set; then
3090 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 else
3092 # Double quotes because CPP needs to be expanded
3093 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3094 do
3095 ac_preproc_ok=false
3096 for ac_c_preproc_warn_flag in '' yes
3097 do
3098 # Use a header file that comes with gcc, so configuring glibc
3099 # with a fresh cross-compiler works.
3100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3101 # <limits.h> exists even on freestanding compilers.
3102 # On the NeXT, cc -E runs the code through the compiler's parser,
3103 # not just through cpp. "Syntax error" is here to catch this case.
3104 cat >conftest.$ac_ext <<_ACEOF
3105 #line $LINENO "configure"
3106 /* confdefs.h. */
3107 _ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h. */
3111 #ifdef __STDC__
3112 # include <limits.h>
3113 #else
3114 # include <assert.h>
3115 #endif
3116 Syntax error
3117 _ACEOF
3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } >/dev/null; then
3126 if test -s conftest.err; then
3127 ac_cpp_err=$ac_c_preproc_warn_flag
3128 else
3129 ac_cpp_err=
3130 fi
3131 else
3132 ac_cpp_err=yes
3133 fi
3134 if test -z "$ac_cpp_err"; then
3135 :
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 # Broken: fails on valid input.
3141 continue
3142 fi
3143 rm -f conftest.err conftest.$ac_ext
3144
3145 # OK, works on sane cases. Now check whether non-existent headers
3146 # can be detected and how.
3147 cat >conftest.$ac_ext <<_ACEOF
3148 #line $LINENO "configure"
3149 /* confdefs.h. */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3154 #include <ac_nonexistent.h>
3155 _ACEOF
3156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } >/dev/null; then
3164 if test -s conftest.err; then
3165 ac_cpp_err=$ac_c_preproc_warn_flag
3166 else
3167 ac_cpp_err=
3168 fi
3169 else
3170 ac_cpp_err=yes
3171 fi
3172 if test -z "$ac_cpp_err"; then
3173 # Broken: success on invalid input.
3174 continue
3175 else
3176 echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 # Passes both tests.
3180 ac_preproc_ok=:
3181 break
3182 fi
3183 rm -f conftest.err conftest.$ac_ext
3184
3185 done
3186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3187 rm -f conftest.err conftest.$ac_ext
3188 if $ac_preproc_ok; then
3189 break
3190 fi
3191
3192 done
3193 ac_cv_prog_CPP=$CPP
3194
3195 fi
3196 CPP=$ac_cv_prog_CPP
3197 else
3198 ac_cv_prog_CPP=$CPP
3199 fi
3200 echo "$as_me:$LINENO: result: $CPP" >&5
3201 echo "${ECHO_T}$CPP" >&6
3202 ac_preproc_ok=false
3203 for ac_c_preproc_warn_flag in '' yes
3204 do
3205 # Use a header file that comes with gcc, so configuring glibc
3206 # with a fresh cross-compiler works.
3207 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3208 # <limits.h> exists even on freestanding compilers.
3209 # On the NeXT, cc -E runs the code through the compiler's parser,
3210 # not just through cpp. "Syntax error" is here to catch this case.
3211 cat >conftest.$ac_ext <<_ACEOF
3212 #line $LINENO "configure"
3213 /* confdefs.h. */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3218 #ifdef __STDC__
3219 # include <limits.h>
3220 #else
3221 # include <assert.h>
3222 #endif
3223 Syntax error
3224 _ACEOF
3225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3227 ac_status=$?
3228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } >/dev/null; then
3233 if test -s conftest.err; then
3234 ac_cpp_err=$ac_c_preproc_warn_flag
3235 else
3236 ac_cpp_err=
3237 fi
3238 else
3239 ac_cpp_err=yes
3240 fi
3241 if test -z "$ac_cpp_err"; then
3242 :
3243 else
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247 # Broken: fails on valid input.
3248 continue
3249 fi
3250 rm -f conftest.err conftest.$ac_ext
3251
3252 # OK, works on sane cases. Now check whether non-existent headers
3253 # can be detected and how.
3254 cat >conftest.$ac_ext <<_ACEOF
3255 #line $LINENO "configure"
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3261 #include <ac_nonexistent.h>
3262 _ACEOF
3263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3265 ac_status=$?
3266 grep -v '^ *+' conftest.er1 >conftest.err
3267 rm -f conftest.er1
3268 cat conftest.err >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } >/dev/null; then
3271 if test -s conftest.err; then
3272 ac_cpp_err=$ac_c_preproc_warn_flag
3273 else
3274 ac_cpp_err=
3275 fi
3276 else
3277 ac_cpp_err=yes
3278 fi
3279 if test -z "$ac_cpp_err"; then
3280 # Broken: success on invalid input.
3281 continue
3282 else
3283 echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3285
3286 # Passes both tests.
3287 ac_preproc_ok=:
3288 break
3289 fi
3290 rm -f conftest.err conftest.$ac_ext
3291
3292 done
3293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3294 rm -f conftest.err conftest.$ac_ext
3295 if $ac_preproc_ok; then
3296 :
3297 else
3298 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3299 See \`config.log' for more details." >&5
3300 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3301 See \`config.log' for more details." >&2;}
3302 { (exit 1); exit 1; }; }
3303 fi
3304
3305 ac_ext=c
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310
3311
3312 echo "$as_me:$LINENO: checking for egrep" >&5
3313 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3314 if test "${ac_cv_prog_egrep+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3318 then ac_cv_prog_egrep='grep -E'
3319 else ac_cv_prog_egrep='egrep'
3320 fi
3321 fi
3322 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3323 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3324 EGREP=$ac_cv_prog_egrep
3325
3326
3327 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3328 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3329 if test "${ac_cv_header_stdc+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 cat >conftest.$ac_ext <<_ACEOF
3333 #line $LINENO "configure"
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <stdlib.h>
3340 #include <stdarg.h>
3341 #include <string.h>
3342 #include <float.h>
3343
3344 int
3345 main ()
3346 {
3347
3348 ;
3349 return 0;
3350 }
3351 _ACEOF
3352 rm -f conftest.$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354 (eval $ac_compile) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 ac_cv_header_stdc=yes
3365 else
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3368
3369 ac_cv_header_stdc=no
3370 fi
3371 rm -f conftest.$ac_objext conftest.$ac_ext
3372
3373 if test $ac_cv_header_stdc = yes; then
3374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3375 cat >conftest.$ac_ext <<_ACEOF
3376 #line $LINENO "configure"
3377 /* confdefs.h. */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3382 #include <string.h>
3383
3384 _ACEOF
3385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3386 $EGREP "memchr" >/dev/null 2>&1; then
3387 :
3388 else
3389 ac_cv_header_stdc=no
3390 fi
3391 rm -f conftest*
3392
3393 fi
3394
3395 if test $ac_cv_header_stdc = yes; then
3396 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3397 cat >conftest.$ac_ext <<_ACEOF
3398 #line $LINENO "configure"
3399 /* confdefs.h. */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3404 #include <stdlib.h>
3405
3406 _ACEOF
3407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3408 $EGREP "free" >/dev/null 2>&1; then
3409 :
3410 else
3411 ac_cv_header_stdc=no
3412 fi
3413 rm -f conftest*
3414
3415 fi
3416
3417 if test $ac_cv_header_stdc = yes; then
3418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3419 if test "$cross_compiling" = yes; then
3420 :
3421 else
3422 cat >conftest.$ac_ext <<_ACEOF
3423 #line $LINENO "configure"
3424 /* confdefs.h. */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3429 #include <ctype.h>
3430 #if ((' ' & 0x0FF) == 0x020)
3431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3433 #else
3434 # define ISLOWER(c) \
3435 (('a' <= (c) && (c) <= 'i') \
3436 || ('j' <= (c) && (c) <= 'r') \
3437 || ('s' <= (c) && (c) <= 'z'))
3438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3439 #endif
3440
3441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3442 int
3443 main ()
3444 {
3445 int i;
3446 for (i = 0; i < 256; i++)
3447 if (XOR (islower (i), ISLOWER (i))
3448 || toupper (i) != TOUPPER (i))
3449 exit(2);
3450 exit (0);
3451 }
3452 _ACEOF
3453 rm -f conftest$ac_exeext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3455 (eval $ac_link) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 :
3465 else
3466 echo "$as_me: program exited with status $ac_status" >&5
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 ( exit $ac_status )
3471 ac_cv_header_stdc=no
3472 fi
3473 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3474 fi
3475 fi
3476 fi
3477 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3478 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3479 if test $ac_cv_header_stdc = yes; then
3480
3481 cat >>confdefs.h <<\_ACEOF
3482 #define STDC_HEADERS 1
3483 _ACEOF
3484
3485 fi
3486
3487 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3498 inttypes.h stdint.h unistd.h
3499 do
3500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3501 echo "$as_me:$LINENO: checking for $ac_header" >&5
3502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506 cat >conftest.$ac_ext <<_ACEOF
3507 #line $LINENO "configure"
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 $ac_includes_default
3514
3515 #include <$ac_header>
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519 (eval $ac_compile) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 eval "$as_ac_Header=yes"
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534 eval "$as_ac_Header=no"
3535 fi
3536 rm -f conftest.$ac_objext conftest.$ac_ext
3537 fi
3538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3541 cat >>confdefs.h <<_ACEOF
3542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3543 _ACEOF
3544
3545 fi
3546
3547 done
3548
3549
3550
3551 for ac_header in dlfcn.h
3552 do
3553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3555 echo "$as_me:$LINENO: checking for $ac_header" >&5
3556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 fi
3560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3562 else
3563 # Is the header compilable?
3564 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3566 cat >conftest.$ac_ext <<_ACEOF
3567 #line $LINENO "configure"
3568 /* confdefs.h. */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 $ac_includes_default
3574 #include <$ac_header>
3575 _ACEOF
3576 rm -f conftest.$ac_objext
3577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3578 (eval $ac_compile) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 ac_header_compiler=yes
3589 else
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 ac_header_compiler=no
3594 fi
3595 rm -f conftest.$ac_objext conftest.$ac_ext
3596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3597 echo "${ECHO_T}$ac_header_compiler" >&6
3598
3599 # Is the header present?
3600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3602 cat >conftest.$ac_ext <<_ACEOF
3603 #line $LINENO "configure"
3604 /* confdefs.h. */
3605 _ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3609 #include <$ac_header>
3610 _ACEOF
3611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } >/dev/null; then
3619 if test -s conftest.err; then
3620 ac_cpp_err=$ac_c_preproc_warn_flag
3621 else
3622 ac_cpp_err=
3623 fi
3624 else
3625 ac_cpp_err=yes
3626 fi
3627 if test -z "$ac_cpp_err"; then
3628 ac_header_preproc=yes
3629 else
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633 ac_header_preproc=no
3634 fi
3635 rm -f conftest.err conftest.$ac_ext
3636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3637 echo "${ECHO_T}$ac_header_preproc" >&6
3638
3639 # So? What about this header?
3640 case $ac_header_compiler:$ac_header_preproc in
3641 yes:no )
3642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3646 (
3647 cat <<\_ASBOX
3648 ## ------------------------------------ ##
3649 ## Report this to bug-autoconf@gnu.org. ##
3650 ## ------------------------------------ ##
3651 _ASBOX
3652 ) |
3653 sed "s/^/$as_me: WARNING: /" >&2
3654 ;;
3655 no:yes )
3656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3662 (
3663 cat <<\_ASBOX
3664 ## ------------------------------------ ##
3665 ## Report this to bug-autoconf@gnu.org. ##
3666 ## ------------------------------------ ##
3667 _ASBOX
3668 ) |
3669 sed "s/^/$as_me: WARNING: /" >&2
3670 ;;
3671 esac
3672 echo "$as_me:$LINENO: checking for $ac_header" >&5
3673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 eval "$as_ac_Header=$ac_header_preproc"
3678 fi
3679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3681
3682 fi
3683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3684 cat >>confdefs.h <<_ACEOF
3685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3686 _ACEOF
3687
3688 fi
3689
3690 done
3691
3692
3693
3694
3695
3696 # Only perform the check for file, if the check method requires it
3697 case $deplibs_check_method in
3698 file_magic*)
3699 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3700 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3701 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3702 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705 case $MAGIC_CMD in
3706 /*)
3707 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3708 ;;
3709 ?:/*)
3710 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3711 ;;
3712 *)
3713 ac_save_MAGIC_CMD="$MAGIC_CMD"
3714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3715 ac_dummy="/usr/bin:$PATH"
3716 for ac_dir in $ac_dummy; do
3717 test -z "$ac_dir" && ac_dir=.
3718 if test -f $ac_dir/${ac_tool_prefix}file; then
3719 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3720 if test -n "$file_magic_test_file"; then
3721 case $deplibs_check_method in
3722 "file_magic "*)
3723 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3725 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3726 egrep "$file_magic_regex" > /dev/null; then
3727 :
3728 else
3729 cat <<EOF 1>&2
3730
3731 *** Warning: the command libtool uses to detect shared libraries,
3732 *** $file_magic_cmd, produces output that libtool cannot recognize.
3733 *** The result is that libtool may fail to recognize shared libraries
3734 *** as such. This will affect the creation of libtool libraries that
3735 *** depend on shared libraries, but programs linked with such libtool
3736 *** libraries will work regardless of this problem. Nevertheless, you
3737 *** may want to report the problem to your system manager and/or to
3738 *** bug-libtool@gnu.org
3739
3740 EOF
3741 fi ;;
3742 esac
3743 fi
3744 break
3745 fi
3746 done
3747 IFS="$ac_save_ifs"
3748 MAGIC_CMD="$ac_save_MAGIC_CMD"
3749 ;;
3750 esac
3751 fi
3752
3753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3754 if test -n "$MAGIC_CMD"; then
3755 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3756 echo "${ECHO_T}$MAGIC_CMD" >&6
3757 else
3758 echo "$as_me:$LINENO: result: no" >&5
3759 echo "${ECHO_T}no" >&6
3760 fi
3761
3762 if test -z "$lt_cv_path_MAGIC_CMD"; then
3763 if test -n "$ac_tool_prefix"; then
3764 echo "$as_me:$LINENO: checking for file" >&5
3765 echo $ECHO_N "checking for file... $ECHO_C" >&6
3766 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 case $MAGIC_CMD in
3770 /*)
3771 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3772 ;;
3773 ?:/*)
3774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3775 ;;
3776 *)
3777 ac_save_MAGIC_CMD="$MAGIC_CMD"
3778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3779 ac_dummy="/usr/bin:$PATH"
3780 for ac_dir in $ac_dummy; do
3781 test -z "$ac_dir" && ac_dir=.
3782 if test -f $ac_dir/file; then
3783 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3784 if test -n "$file_magic_test_file"; then
3785 case $deplibs_check_method in
3786 "file_magic "*)
3787 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3789 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3790 egrep "$file_magic_regex" > /dev/null; then
3791 :
3792 else
3793 cat <<EOF 1>&2
3794
3795 *** Warning: the command libtool uses to detect shared libraries,
3796 *** $file_magic_cmd, produces output that libtool cannot recognize.
3797 *** The result is that libtool may fail to recognize shared libraries
3798 *** as such. This will affect the creation of libtool libraries that
3799 *** depend on shared libraries, but programs linked with such libtool
3800 *** libraries will work regardless of this problem. Nevertheless, you
3801 *** may want to report the problem to your system manager and/or to
3802 *** bug-libtool@gnu.org
3803
3804 EOF
3805 fi ;;
3806 esac
3807 fi
3808 break
3809 fi
3810 done
3811 IFS="$ac_save_ifs"
3812 MAGIC_CMD="$ac_save_MAGIC_CMD"
3813 ;;
3814 esac
3815 fi
3816
3817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3818 if test -n "$MAGIC_CMD"; then
3819 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3820 echo "${ECHO_T}$MAGIC_CMD" >&6
3821 else
3822 echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3824 fi
3825
3826 else
3827 MAGIC_CMD=:
3828 fi
3829 fi
3830
3831 fi
3832 ;;
3833 esac
3834
3835 if test -n "$ac_tool_prefix"; then
3836 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3837 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3838 echo "$as_me:$LINENO: checking for $ac_word" >&5
3839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3840 if test "${ac_cv_prog_RANLIB+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843 if test -n "$RANLIB"; then
3844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857 done
3858 done
3859
3860 fi
3861 fi
3862 RANLIB=$ac_cv_prog_RANLIB
3863 if test -n "$RANLIB"; then
3864 echo "$as_me:$LINENO: result: $RANLIB" >&5
3865 echo "${ECHO_T}$RANLIB" >&6
3866 else
3867 echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3869 fi
3870
3871 fi
3872 if test -z "$ac_cv_prog_RANLIB"; then
3873 ac_ct_RANLIB=$RANLIB
3874 # Extract the first word of "ranlib", so it can be a program name with args.
3875 set dummy ranlib; ac_word=$2
3876 echo "$as_me:$LINENO: checking for $ac_word" >&5
3877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3878 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 if test -n "$ac_ct_RANLIB"; then
3882 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891 ac_cv_prog_ac_ct_RANLIB="ranlib"
3892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 break 2
3894 fi
3895 done
3896 done
3897
3898 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3899 fi
3900 fi
3901 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3902 if test -n "$ac_ct_RANLIB"; then
3903 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3904 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3905 else
3906 echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3908 fi
3909
3910 RANLIB=$ac_ct_RANLIB
3911 else
3912 RANLIB="$ac_cv_prog_RANLIB"
3913 fi
3914
3915 if test -n "$ac_tool_prefix"; then
3916 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3917 set dummy ${ac_tool_prefix}strip; ac_word=$2
3918 echo "$as_me:$LINENO: checking for $ac_word" >&5
3919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3920 if test "${ac_cv_prog_STRIP+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923 if test -n "$STRIP"; then
3924 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3936 fi
3937 done
3938 done
3939
3940 fi
3941 fi
3942 STRIP=$ac_cv_prog_STRIP
3943 if test -n "$STRIP"; then
3944 echo "$as_me:$LINENO: result: $STRIP" >&5
3945 echo "${ECHO_T}$STRIP" >&6
3946 else
3947 echo "$as_me:$LINENO: result: no" >&5
3948 echo "${ECHO_T}no" >&6
3949 fi
3950
3951 fi
3952 if test -z "$ac_cv_prog_STRIP"; then
3953 ac_ct_STRIP=$STRIP
3954 # Extract the first word of "strip", so it can be a program name with args.
3955 set dummy strip; ac_word=$2
3956 echo "$as_me:$LINENO: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 if test -n "$ac_ct_STRIP"; then
3962 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_ac_ct_STRIP="strip"
3972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975 done
3976 done
3977
3978 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3979 fi
3980 fi
3981 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3982 if test -n "$ac_ct_STRIP"; then
3983 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3984 echo "${ECHO_T}$ac_ct_STRIP" >&6
3985 else
3986 echo "$as_me:$LINENO: result: no" >&5
3987 echo "${ECHO_T}no" >&6
3988 fi
3989
3990 STRIP=$ac_ct_STRIP
3991 else
3992 STRIP="$ac_cv_prog_STRIP"
3993 fi
3994
3995
3996 enable_dlopen=no
3997 enable_win32_dll=no
3998
3999 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4000 if test "${enable_libtool_lock+set}" = set; then
4001 enableval="$enable_libtool_lock"
4002
4003 fi;
4004 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4005
4006 # Some flags need to be propagated to the compiler or linker for good
4007 # libtool support.
4008 case $host in
4009 *-*-irix6*)
4010 # Find out which ABI we are using.
4011 echo '#line 4012 "configure"' > conftest.$ac_ext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; then
4017 case `/usr/bin/file conftest.$ac_objext` in
4018 *32-bit*)
4019 LD="${LD-ld} -32"
4020 ;;
4021 *N32*)
4022 LD="${LD-ld} -n32"
4023 ;;
4024 *64-bit*)
4025 LD="${LD-ld} -64"
4026 ;;
4027 esac
4028 fi
4029 rm -rf conftest*
4030 ;;
4031
4032 *-*-sco3.2v5*)
4033 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4034 SAVE_CFLAGS="$CFLAGS"
4035 CFLAGS="$CFLAGS -belf"
4036 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4037 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4038 if test "${lt_cv_cc_needs_belf+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041
4042
4043 ac_ext=c
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048
4049 cat >conftest.$ac_ext <<_ACEOF
4050 #line $LINENO "configure"
4051 /* confdefs.h. */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056
4057 int
4058 main ()
4059 {
4060
4061 ;
4062 return 0;
4063 }
4064 _ACEOF
4065 rm -f conftest.$ac_objext conftest$ac_exeext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4067 (eval $ac_link) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -s conftest$ac_exeext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4077 lt_cv_cc_needs_belf=yes
4078 else
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4081
4082 lt_cv_cc_needs_belf=no
4083 fi
4084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4085 ac_ext=c
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090
4091 fi
4092 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4093 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4094 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4095 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4096 CFLAGS="$SAVE_CFLAGS"
4097 fi
4098 ;;
4099
4100
4101 esac
4102
4103 # Sed substitution that helps us do robust quoting. It backslashifies
4104 # metacharacters that are still active within double-quoted strings.
4105 Xsed='sed -e s/^X//'
4106 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4107
4108 # Same as above, but do not quote variable references.
4109 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4110
4111 # Sed substitution to delay expansion of an escaped shell variable in a
4112 # double_quote_subst'ed string.
4113 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4114
4115 # Constants:
4116 rm="rm -f"
4117
4118 # Global variables:
4119 default_ofile=libtool
4120 can_build_shared=yes
4121
4122 # All known linkers require a `.a' archive for static linking (except M$VC,
4123 # which needs '.lib').
4124 libext=a
4125 ltmain="$ac_aux_dir/ltmain.sh"
4126 ofile="$default_ofile"
4127 with_gnu_ld="$lt_cv_prog_gnu_ld"
4128 need_locks="$enable_libtool_lock"
4129
4130 old_CC="$CC"
4131 old_CFLAGS="$CFLAGS"
4132
4133 # Set sane defaults for various variables
4134 test -z "$AR" && AR=ar
4135 test -z "$AR_FLAGS" && AR_FLAGS=cru
4136 test -z "$AS" && AS=as
4137 test -z "$CC" && CC=cc
4138 test -z "$DLLTOOL" && DLLTOOL=dlltool
4139 test -z "$LD" && LD=ld
4140 test -z "$LN_S" && LN_S="ln -s"
4141 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4142 test -z "$NM" && NM=nm
4143 test -z "$OBJDUMP" && OBJDUMP=objdump
4144 test -z "$RANLIB" && RANLIB=:
4145 test -z "$STRIP" && STRIP=:
4146 test -z "$ac_objext" && ac_objext=o
4147
4148 if test x"$host" != x"$build"; then
4149 ac_tool_prefix=${host_alias}-
4150 else
4151 ac_tool_prefix=
4152 fi
4153
4154 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4155 case $host_os in
4156 linux-gnu*) ;;
4157 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4158 esac
4159
4160 case $host_os in
4161 aix3*)
4162 # AIX sometimes has problems with the GCC collect2 program. For some
4163 # reason, if we set the COLLECT_NAMES environment variable, the problems
4164 # vanish in a puff of smoke.
4165 if test "X${COLLECT_NAMES+set}" != Xset; then
4166 COLLECT_NAMES=
4167 export COLLECT_NAMES
4168 fi
4169 ;;
4170 esac
4171
4172 # Determine commands to create old-style static archives.
4173 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4174 old_postinstall_cmds='chmod 644 $oldlib'
4175 old_postuninstall_cmds=
4176
4177 if test -n "$RANLIB"; then
4178 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4179 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4180 fi
4181
4182 # Allow CC to be a program name with arguments.
4183 set dummy $CC
4184 compiler="$2"
4185
4186 ## FIXME: this should be a separate macro
4187 ##
4188 echo "$as_me:$LINENO: checking for objdir" >&5
4189 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4190 rm -f .libs 2>/dev/null
4191 mkdir .libs 2>/dev/null
4192 if test -d .libs; then
4193 objdir=.libs
4194 else
4195 # MS-DOS does not allow filenames that begin with a dot.
4196 objdir=_libs
4197 fi
4198 rmdir .libs 2>/dev/null
4199 echo "$as_me:$LINENO: result: $objdir" >&5
4200 echo "${ECHO_T}$objdir" >&6
4201 ##
4202 ## END FIXME
4203
4204
4205 ## FIXME: this should be a separate macro
4206 ##
4207
4208 # Check whether --with-pic or --without-pic was given.
4209 if test "${with_pic+set}" = set; then
4210 withval="$with_pic"
4211 pic_mode="$withval"
4212 else
4213 pic_mode=default
4214 fi;
4215 test -z "$pic_mode" && pic_mode=default
4216
4217 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4218 # in isolation, and that seeing it set (from the cache) indicates that
4219 # the associated values are set (in the cache) correctly too.
4220 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4221 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4222 if test "${lt_cv_prog_cc_pic+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225 lt_cv_prog_cc_pic=
4226 lt_cv_prog_cc_shlib=
4227 lt_cv_prog_cc_wl=
4228 lt_cv_prog_cc_static=
4229 lt_cv_prog_cc_no_builtin=
4230 lt_cv_prog_cc_can_build_shared=$can_build_shared
4231
4232 if test "$GCC" = yes; then
4233 lt_cv_prog_cc_wl='-Wl,'
4234 lt_cv_prog_cc_static='-static'
4235
4236 case $host_os in
4237 aix*)
4238 # Below there is a dirty hack to force normal static linking with -ldl
4239 # The problem is because libdl dynamically linked with both libc and
4240 # libC (AIX C++ library), which obviously doesn't included in libraries
4241 # list by gcc. This cause undefined symbols with -static flags.
4242 # This hack allows C programs to be linked with "-static -ldl", but
4243 # we not sure about C++ programs.
4244 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4245 ;;
4246 amigaos*)
4247 # FIXME: we need at least 68020 code to build shared libraries, but
4248 # adding the `-m68020' flag to GCC prevents building anything better,
4249 # like `-m68040'.
4250 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4251 ;;
4252 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4253 # PIC is the default for these OSes.
4254 ;;
4255 darwin* | rhapsody*)
4256 # PIC is the default on this platform
4257 # Common symbols not allowed in MH_DYLIB files
4258 lt_cv_prog_cc_pic='-fno-common'
4259 ;;
4260 cygwin* | mingw* | pw32* | os2*)
4261 # This hack is so that the source file can tell whether it is being
4262 # built for inclusion in a dll (and should export symbols for example).
4263 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4264 ;;
4265 sysv4*MP*)
4266 if test -d /usr/nec; then
4267 lt_cv_prog_cc_pic=-Kconform_pic
4268 fi
4269 ;;
4270 *)
4271 lt_cv_prog_cc_pic='-fPIC'
4272 ;;
4273 esac
4274 else
4275 # PORTME Check for PIC flags for the system compiler.
4276 case $host_os in
4277 aix3* | aix4* | aix5*)
4278 # All AIX code is PIC.
4279 if test "$host_cpu" = ia64; then
4280 # AIX 5 now supports IA64 processor
4281 lt_cv_prog_cc_static='-Bstatic'
4282 lt_cv_prog_cc_wl='-Wl,'
4283 else
4284 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4285 fi
4286 ;;
4287
4288 hpux9* | hpux10* | hpux11*)
4289 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4290 lt_cv_prog_cc_wl='-Wl,'
4291 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4292 lt_cv_prog_cc_pic='+Z'
4293 ;;
4294
4295 irix5* | irix6*)
4296 lt_cv_prog_cc_wl='-Wl,'
4297 lt_cv_prog_cc_static='-non_shared'
4298 # PIC (with -KPIC) is the default.
4299 ;;
4300
4301 cygwin* | mingw* | pw32* | os2*)
4302 # This hack is so that the source file can tell whether it is being
4303 # built for inclusion in a dll (and should export symbols for example).
4304 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4305 ;;
4306
4307 newsos6)
4308 lt_cv_prog_cc_pic='-KPIC'
4309 lt_cv_prog_cc_static='-Bstatic'
4310 ;;
4311
4312 osf3* | osf4* | osf5*)
4313 # All OSF/1 code is PIC.
4314 lt_cv_prog_cc_wl='-Wl,'
4315 lt_cv_prog_cc_static='-non_shared'
4316 ;;
4317
4318 sco3.2v5*)
4319 lt_cv_prog_cc_pic='-Kpic'
4320 lt_cv_prog_cc_static='-dn'
4321 lt_cv_prog_cc_shlib='-belf'
4322 ;;
4323
4324 solaris*)
4325 lt_cv_prog_cc_pic='-KPIC'
4326 lt_cv_prog_cc_static='-Bstatic'
4327 lt_cv_prog_cc_wl='-Wl,'
4328 ;;
4329
4330 sunos4*)
4331 lt_cv_prog_cc_pic='-PIC'
4332 lt_cv_prog_cc_static='-Bstatic'
4333 lt_cv_prog_cc_wl='-Qoption ld '
4334 ;;
4335
4336 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4337 lt_cv_prog_cc_pic='-KPIC'
4338 lt_cv_prog_cc_static='-Bstatic'
4339 if test "x$host_vendor" = xsni; then
4340 lt_cv_prog_cc_wl='-LD'
4341 else
4342 lt_cv_prog_cc_wl='-Wl,'
4343 fi
4344 ;;
4345
4346 uts4*)
4347 lt_cv_prog_cc_pic='-pic'
4348 lt_cv_prog_cc_static='-Bstatic'
4349 ;;
4350
4351 sysv4*MP*)
4352 if test -d /usr/nec ;then
4353 lt_cv_prog_cc_pic='-Kconform_pic'
4354 lt_cv_prog_cc_static='-Bstatic'
4355 fi
4356 ;;
4357
4358 *)
4359 lt_cv_prog_cc_can_build_shared=no
4360 ;;
4361 esac
4362 fi
4363
4364 fi
4365
4366 if test -z "$lt_cv_prog_cc_pic"; then
4367 echo "$as_me:$LINENO: result: none" >&5
4368 echo "${ECHO_T}none" >&6
4369 else
4370 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4371 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4372
4373 # Check to make sure the pic_flag actually works.
4374 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4375 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4376 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 save_CFLAGS="$CFLAGS"
4380 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4381 cat >conftest.$ac_ext <<_ACEOF
4382 #line $LINENO "configure"
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388
4389 int
4390 main ()
4391 {
4392
4393 ;
4394 return 0;
4395 }
4396 _ACEOF
4397 rm -f conftest.$ac_objext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399 (eval $ac_compile) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } &&
4403 { ac_try='test -s conftest.$ac_objext'
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 (eval $ac_try) 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
4409 case $host_os in
4410 hpux9* | hpux10* | hpux11*)
4411 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4412 # they create non-PIC objects. So, if there were any warnings, we
4413 # assume that PIC is not supported.
4414 if test -s conftest.err; then
4415 lt_cv_prog_cc_pic_works=no
4416 else
4417 lt_cv_prog_cc_pic_works=yes
4418 fi
4419 ;;
4420 *)
4421 lt_cv_prog_cc_pic_works=yes
4422 ;;
4423 esac
4424
4425 else
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4428
4429 lt_cv_prog_cc_pic_works=no
4430
4431 fi
4432 rm -f conftest.$ac_objext conftest.$ac_ext
4433 CFLAGS="$save_CFLAGS"
4434
4435 fi
4436
4437
4438 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4439 lt_cv_prog_cc_pic=
4440 lt_cv_prog_cc_can_build_shared=no
4441 else
4442 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4443 fi
4444
4445 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4446 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4447 fi
4448 ##
4449 ## END FIXME
4450
4451 # Check for any special shared library compilation flags.
4452 if test -n "$lt_cv_prog_cc_shlib"; then
4453 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4454 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4455 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4456 else
4457 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4458 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4459 lt_cv_prog_cc_can_build_shared=no
4460 fi
4461 fi
4462
4463 ## FIXME: this should be a separate macro
4464 ##
4465 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4466 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4467 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470 lt_cv_prog_cc_static_works=no
4471 save_LDFLAGS="$LDFLAGS"
4472 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4473 cat >conftest.$ac_ext <<_ACEOF
4474 #line $LINENO "configure"
4475 /* confdefs.h. */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4480
4481 int
4482 main ()
4483 {
4484
4485 ;
4486 return 0;
4487 }
4488 _ACEOF
4489 rm -f conftest.$ac_objext conftest$ac_exeext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491 (eval $ac_link) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -s conftest$ac_exeext'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 (eval $ac_try) 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 lt_cv_prog_cc_static_works=yes
4502 else
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4505
4506 fi
4507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4508 LDFLAGS="$save_LDFLAGS"
4509
4510 fi
4511
4512
4513 # Belt *and* braces to stop my trousers falling down:
4514 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4515 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4516 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4517
4518 pic_flag="$lt_cv_prog_cc_pic"
4519 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4520 wl="$lt_cv_prog_cc_wl"
4521 link_static_flag="$lt_cv_prog_cc_static"
4522 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4523 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4524 ##
4525 ## END FIXME
4526
4527
4528 ## FIXME: this should be a separate macro
4529 ##
4530 # Check to see if options -o and -c are simultaneously supported by compiler
4531 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4532 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4533 if test "${lt_cv_compiler_c_o+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536
4537 $rm -r conftest 2>/dev/null
4538 mkdir conftest
4539 cd conftest
4540 echo "int some_variable = 0;" > conftest.$ac_ext
4541 mkdir out
4542 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4543 # that will create temporary files in the current directory regardless of
4544 # the output directory. Thus, making CWD read-only will cause this test
4545 # to fail, enabling locking or at least warning the user not to do parallel
4546 # builds.
4547 chmod -w .
4548 save_CFLAGS="$CFLAGS"
4549 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4550 compiler_c_o=no
4551 if { (eval echo configure:4552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4552 # The compiler can only warn and ignore the option if not recognized
4553 # So say no if there are warnings
4554 if test -s out/conftest.err; then
4555 lt_cv_compiler_c_o=no
4556 else
4557 lt_cv_compiler_c_o=yes
4558 fi
4559 else
4560 # Append any errors to the config.log.
4561 cat out/conftest.err 1>&5
4562 lt_cv_compiler_c_o=no
4563 fi
4564 CFLAGS="$save_CFLAGS"
4565 chmod u+w .
4566 $rm conftest* out/*
4567 rmdir out
4568 cd ..
4569 rmdir conftest
4570 $rm -r conftest 2>/dev/null
4571
4572 fi
4573
4574 compiler_c_o=$lt_cv_compiler_c_o
4575 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4576 echo "${ECHO_T}$compiler_c_o" >&6
4577
4578 if test x"$compiler_c_o" = x"yes"; then
4579 # Check to see if we can write to a .lo
4580 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4581 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4582 if test "${lt_cv_compiler_o_lo+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585
4586 lt_cv_compiler_o_lo=no
4587 save_CFLAGS="$CFLAGS"
4588 CFLAGS="$CFLAGS -c -o conftest.lo"
4589 cat >conftest.$ac_ext <<_ACEOF
4590 #line $LINENO "configure"
4591 /* confdefs.h. */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596
4597 int
4598 main ()
4599 {
4600 int some_variable = 0;
4601 ;
4602 return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 # The compiler can only warn and ignore the option if not recognized
4618 # So say no if there are warnings
4619 if test -s conftest.err; then
4620 lt_cv_compiler_o_lo=no
4621 else
4622 lt_cv_compiler_o_lo=yes
4623 fi
4624
4625 else
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 fi
4630 rm -f conftest.$ac_objext conftest.$ac_ext
4631 CFLAGS="$save_CFLAGS"
4632
4633 fi
4634
4635 compiler_o_lo=$lt_cv_compiler_o_lo
4636 echo "$as_me:$LINENO: result: $compiler_c_lo" >&5
4637 echo "${ECHO_T}$compiler_c_lo" >&6
4638 else
4639 compiler_o_lo=no
4640 fi
4641 ##
4642 ## END FIXME
4643
4644 ## FIXME: this should be a separate macro
4645 ##
4646 # Check to see if we can do hard links to lock some files if needed
4647 hard_links="nottested"
4648 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4649 # do not overwrite the value of need_locks provided by the user
4650 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4651 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4652 hard_links=yes
4653 $rm conftest*
4654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4655 touch conftest.a
4656 ln conftest.a conftest.b 2>&5 || hard_links=no
4657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4658 echo "$as_me:$LINENO: result: $hard_links" >&5
4659 echo "${ECHO_T}$hard_links" >&6
4660 if test "$hard_links" = no; then
4661 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4662 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4663 need_locks=warn
4664 fi
4665 else
4666 need_locks=no
4667 fi
4668 ##
4669 ## END FIXME
4670
4671 ## FIXME: this should be a separate macro
4672 ##
4673 if test "$GCC" = yes; then
4674 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4675 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4676 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4677 echo "int some_variable = 0;" > conftest.$ac_ext
4678 save_CFLAGS="$CFLAGS"
4679 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4680 compiler_rtti_exceptions=no
4681 cat >conftest.$ac_ext <<_ACEOF
4682 #line $LINENO "configure"
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688
4689 int
4690 main ()
4691 {
4692 int some_variable = 0;
4693 ;
4694 return 0;
4695 }
4696 _ACEOF
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699 (eval $ac_compile) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } &&
4703 { ac_try='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 (eval $ac_try) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 # The compiler can only warn and ignore the option if not recognized
4710 # So say no if there are warnings
4711 if test -s conftest.err; then
4712 compiler_rtti_exceptions=no
4713 else
4714 compiler_rtti_exceptions=yes
4715 fi
4716
4717 else
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4720
4721 fi
4722 rm -f conftest.$ac_objext conftest.$ac_ext
4723 CFLAGS="$save_CFLAGS"
4724 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4725 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4726
4727 if test "$compiler_rtti_exceptions" = "yes"; then
4728 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4729 else
4730 no_builtin_flag=' -fno-builtin'
4731 fi
4732 fi
4733 ##
4734 ## END FIXME
4735
4736 ## FIXME: this should be a separate macro
4737 ##
4738 # See if the linker supports building shared libraries.
4739 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4740 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4741
4742 allow_undefined_flag=
4743 no_undefined_flag=
4744 need_lib_prefix=unknown
4745 need_version=unknown
4746 # when you set need_version to no, make sure it does not cause -set_version
4747 # flags to be left without arguments
4748 archive_cmds=
4749 archive_expsym_cmds=
4750 old_archive_from_new_cmds=
4751 old_archive_from_expsyms_cmds=
4752 export_dynamic_flag_spec=
4753 whole_archive_flag_spec=
4754 thread_safe_flag_spec=
4755 hardcode_into_libs=no
4756 hardcode_libdir_flag_spec=
4757 hardcode_libdir_separator=
4758 hardcode_direct=no
4759 hardcode_minus_L=no
4760 hardcode_shlibpath_var=unsupported
4761 runpath_var=
4762 link_all_deplibs=unknown
4763 always_export_symbols=no
4764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4765 # include_expsyms should be a list of space-separated symbols to be *always*
4766 # included in the symbol list
4767 include_expsyms=
4768 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4769 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4770 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4771 # as well as any symbol that contains `d'.
4772 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4773 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4774 # platforms (ab)use it in PIC code, but their linkers get confused if
4775 # the symbol is explicitly referenced. Since portable code cannot
4776 # rely on this symbol name, it's probably fine to never include it in
4777 # preloaded symbol tables.
4778 extract_expsyms_cmds=
4779
4780 case $host_os in
4781 cygwin* | mingw* | pw32* )
4782 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4783 # When not using gcc, we currently assume that we are using
4784 # Microsoft Visual C++.
4785 if test "$GCC" != yes; then
4786 with_gnu_ld=no
4787 fi
4788 ;;
4789
4790 esac
4791
4792 ld_shlibs=yes
4793 if test "$with_gnu_ld" = yes; then
4794 # If archive_cmds runs LD, not CC, wlarc should be empty
4795 wlarc='${wl}'
4796
4797 # See if GNU ld supports shared libraries.
4798 case $host_os in
4799 aix3* | aix4* | aix5*)
4800 # On AIX, the GNU linker is very broken
4801 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4802 ld_shlibs=no
4803 cat <<EOF 1>&2
4804
4805 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4806 *** to be unable to reliably create shared libraries on AIX.
4807 *** Therefore, libtool is disabling shared libraries support. If you
4808 *** really care for shared libraries, you may want to modify your PATH
4809 *** so that a non-GNU linker is found, and then restart.
4810
4811 EOF
4812 ;;
4813
4814 amigaos*)
4815 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)'
4816 hardcode_libdir_flag_spec='-L$libdir'
4817 hardcode_minus_L=yes
4818
4819 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4820 # that the semantics of dynamic libraries on AmigaOS, at least up
4821 # to version 4, is to share data among multiple programs linked
4822 # with the same dynamic library. Since this doesn't match the
4823 # behavior of shared libraries on other platforms, we can use
4824 # them.
4825 ld_shlibs=no
4826 ;;
4827
4828 beos*)
4829 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4830 allow_undefined_flag=unsupported
4831 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4832 # support --undefined. This deserves some investigation. FIXME
4833 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4834 else
4835 ld_shlibs=no
4836 fi
4837 ;;
4838
4839 cygwin* | mingw* | pw32*)
4840 # hardcode_libdir_flag_spec is actually meaningless, as there is
4841 # no search path for DLLs.
4842 hardcode_libdir_flag_spec='-L$libdir'
4843 allow_undefined_flag=unsupported
4844 always_export_symbols=yes
4845
4846 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4847 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4848 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4849 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4850 else $CC -o impgen impgen.c ; fi)~
4851 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4852
4853 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4854
4855 # cygwin and mingw dlls have different entry points and sets of symbols
4856 # to exclude.
4857 # FIXME: what about values for MSVC?
4858 dll_entry=__cygwin_dll_entry@12
4859 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4860 case $host_os in
4861 mingw*)
4862 # mingw values
4863 dll_entry=_DllMainCRTStartup@12
4864 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4865 ;;
4866 esac
4867
4868 # mingw and cygwin differ, and it's simplest to just exclude the union
4869 # of the two symbol sets.
4870 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4871
4872 # recent cygwin and mingw systems supply a stub DllMain which the user
4873 # can override, but on older systems we have to supply one (in ltdll.c)
4874 if test "x$lt_cv_need_dllmain" = "xyes"; then
4875 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4876 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
4877 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4878 else
4879 ltdll_obj=
4880 ltdll_cmds=
4881 fi
4882
4883 # Extract the symbol export list from an `--export-all' def file,
4884 # then regenerate the def file from the symbol export list, so that
4885 # the compiled dll only exports the symbol export list.
4886 # Be careful not to strip the DATA tag left be newer dlltools.
4887 export_symbols_cmds="$ltdll_cmds"'
4888 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4889 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4890
4891 # If the export-symbols file already is a .def file (1st line
4892 # is EXPORTS), use it as is.
4893 # If DATA tags from a recent dlltool are present, honour them!
4894 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4895 cp $export_symbols $output_objdir/$soname-def;
4896 else
4897 echo EXPORTS > $output_objdir/$soname-def;
4898 _lt_hint=1;
4899 cat $export_symbols | while read symbol; do
4900 set dummy \$symbol;
4901 case \$# in
4902 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4903 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4904 esac;
4905 _lt_hint=`expr 1 + \$_lt_hint`;
4906 done;
4907 fi~
4908 '"$ltdll_cmds"'
4909 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4910 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4911 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4912 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4913 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4914 ;;
4915
4916 netbsd*)
4917 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4918 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4919 wlarc=
4920 else
4921 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4922 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4923 fi
4924 ;;
4925
4926 solaris* | sysv5*)
4927 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4928 ld_shlibs=no
4929 cat <<EOF 1>&2
4930
4931 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4932 *** create shared libraries on Solaris systems. Therefore, libtool
4933 *** is disabling shared libraries support. We urge you to upgrade GNU
4934 *** binutils to release 2.9.1 or newer. Another option is to modify
4935 *** your PATH or compiler configuration so that the native linker is
4936 *** used, and then restart.
4937
4938 EOF
4939 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4941 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4942 else
4943 ld_shlibs=no
4944 fi
4945 ;;
4946
4947 sunos4*)
4948 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4949 wlarc=
4950 hardcode_direct=yes
4951 hardcode_shlibpath_var=no
4952 ;;
4953
4954 *)
4955 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4958 else
4959 ld_shlibs=no
4960 fi
4961 ;;
4962 esac
4963
4964 if test "$ld_shlibs" = yes; then
4965 runpath_var=LD_RUN_PATH
4966 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4967 export_dynamic_flag_spec='${wl}--export-dynamic'
4968 case $host_os in
4969 cygwin* | mingw* | pw32*)
4970 # dlltool doesn't understand --whole-archive et. al.
4971 whole_archive_flag_spec=
4972 ;;
4973 *)
4974 # ancient GNU ld didn't support --whole-archive et. al.
4975 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4976 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4977 else
4978 whole_archive_flag_spec=
4979 fi
4980 ;;
4981 esac
4982 fi
4983 else
4984 # PORTME fill in a description of your system's linker (not GNU ld)
4985 case $host_os in
4986 aix3*)
4987 allow_undefined_flag=unsupported
4988 always_export_symbols=yes
4989 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'
4990 # Note: this linker hardcodes the directories in LIBPATH if there
4991 # are no directories specified by -L.
4992 hardcode_minus_L=yes
4993 if test "$GCC" = yes && test -z "$link_static_flag"; then
4994 # Neither direct hardcoding nor static linking is supported with a
4995 # broken collect2.
4996 hardcode_direct=unsupported
4997 fi
4998 ;;
4999
5000 aix4* | aix5*)
5001 # When large executables or shared objects are built, AIX ld can
5002 # have problems creating the table of contents. If linking a library
5003 # or program results in "error TOC overflow" add -mminimal-toc to
5004 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5005 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5006
5007 archive_cmds=''
5008 hardcode_libdir_separator=':'
5009 if test "$GCC" = yes; then
5010 collect2name=`${CC} -print-prog-name=collect2`
5011 if test -f "$collect2name" && \
5012 strings "$collect2name" | grep resolve_lib_name >/dev/null
5013 then
5014 # We have reworked collect2
5015 hardcode_direct=yes
5016 else
5017 # We have old collect2
5018 hardcode_direct=unsupported
5019 # It fails to find uninstalled libraries when the uninstalled
5020 # path is not listed in the libpath. Setting hardcode_minus_L
5021 # to unsupported forces relinking
5022 hardcode_minus_L=yes
5023 hardcode_libdir_flag_spec='-L$libdir'
5024 hardcode_libdir_separator=
5025 fi
5026 shared_flag='-shared'
5027 else
5028 if test "$host_cpu" = ia64; then
5029 shared_flag='-G'
5030 else
5031 shared_flag='${wl}-bM:SRE'
5032 fi
5033 hardcode_direct=yes
5034 fi
5035
5036 if test "$host_cpu" = ia64; then
5037 # On IA64, the linker does run time linking by default, so we don't
5038 # have to do anything special.
5039 aix_use_runtimelinking=no
5040 exp_sym_flag='-Bexport'
5041 no_entry_flag=""
5042 else
5043 # Test if we are trying to use run time linking, or normal AIX style linking.
5044 # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
5045 aix_use_runtimelinking=no
5046 for ld_flag in $LDFLAGS; do
5047 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
5048 aix_use_runtimelinking=yes
5049 break
5050 fi
5051 done
5052 exp_sym_flag='-bexport'
5053 no_entry_flag='-bnoentry'
5054 fi
5055 # It seems that -bexpall can do strange things, so it is better to
5056 # generate a list of symbols to export.
5057 always_export_symbols=yes
5058 if test "$aix_use_runtimelinking" = yes; then
5059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5060 allow_undefined_flag=' -Wl,-G'
5061 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5062 else
5063 if test "$host_cpu" = ia64; then
5064 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5065 allow_undefined_flag="-znodefs"
5066 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5067 else
5068 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5069 # Warning - without using the other run time loading flags, -berok will
5070 # link without error, but may produce a broken library.
5071 allow_undefined_flag='${wl}-berok"
5072 # This is a bit strange, but is similar to how AIX traditionally builds
5073 # it's shared libraries.
5074 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5075 fi
5076 fi
5077 ;;
5078
5079 amigaos*)
5080 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)'
5081 hardcode_libdir_flag_spec='-L$libdir'
5082 hardcode_minus_L=yes
5083 # see comment about different semantics on the GNU ld section
5084 ld_shlibs=no
5085 ;;
5086
5087 cygwin* | mingw* | pw32*)
5088 # When not using gcc, we currently assume that we are using
5089 # Microsoft Visual C++.
5090 # hardcode_libdir_flag_spec is actually meaningless, as there is
5091 # no search path for DLLs.
5092 hardcode_libdir_flag_spec=' '
5093 allow_undefined_flag=unsupported
5094 # Tell ltmain to make .lib files, not .a files.
5095 libext=lib
5096 # FIXME: Setting linknames here is a bad hack.
5097 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5098 # The linker will automatically build a .lib file if we build a DLL.
5099 old_archive_from_new_cmds='true'
5100 # FIXME: Should let the user specify the lib program.
5101 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5102 fix_srcfile_path='`cygpath -w "$srcfile"`'
5103 ;;
5104
5105 darwin* | rhapsody*)
5106 # This patch put in by hand by PH (12-Mar-2003) for Darwin 1.3.
5107 case "$host_os" in
5108 rhapsody* | darwin1.[[012]])
5109 allow_undefined_flag='-undefined suppress'
5110 ;;
5111 *) # Darwin 1.3 on
5112 allow_undefined_flag='-flat_namespace -undefined suppress'
5113 ;;
5114 esac
5115 # End of hand-inserted patch
5116
5117 # FIXME: Relying on posixy $() will cause problems for
5118 # cross-compilation, but unfortunately the echo tests do not
5119 # yet detect zsh echo's removal of \ escapes.
5120 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
5121 # We need to add '_' to the symbols in $export_symbols first
5122 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5123 hardcode_direct=yes
5124 hardcode_shlibpath_var=no
5125 whole_archive_flag_spec='-all_load $convenience'
5126 ;;
5127
5128 freebsd1*)
5129 ld_shlibs=no
5130 ;;
5131
5132 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5133 # support. Future versions do this automatically, but an explicit c++rt0.o
5134 # does not break anything, and helps significantly (at the cost of a little
5135 # extra space).
5136 freebsd2.2*)
5137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5138 hardcode_libdir_flag_spec='-R$libdir'
5139 hardcode_direct=yes
5140 hardcode_shlibpath_var=no
5141 ;;
5142
5143 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5144 freebsd2*)
5145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5146 hardcode_direct=yes
5147 hardcode_minus_L=yes
5148 hardcode_shlibpath_var=no
5149 ;;
5150
5151 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5152 freebsd*)
5153 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5154 hardcode_libdir_flag_spec='-R$libdir'
5155 hardcode_direct=yes
5156 hardcode_shlibpath_var=no
5157 ;;
5158
5159 hpux9* | hpux10* | hpux11*)
5160 case $host_os in
5161 hpux9*) 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' ;;
5162 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5163 esac
5164 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5165 hardcode_libdir_separator=:
5166 hardcode_direct=yes
5167 hardcode_minus_L=yes # Not in the search PATH, but as the default
5168 # location of the library.
5169 export_dynamic_flag_spec='${wl}-E'
5170 ;;
5171
5172 irix5* | irix6*)
5173 if test "$GCC" = yes; then
5174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5175 else
5176 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5177 fi
5178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5179 hardcode_libdir_separator=:
5180 link_all_deplibs=yes
5181 ;;
5182
5183 netbsd*)
5184 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5185 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5186 else
5187 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5188 fi
5189 hardcode_libdir_flag_spec='-R$libdir'
5190 hardcode_direct=yes
5191 hardcode_shlibpath_var=no
5192 ;;
5193
5194 newsos6)
5195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
5196 hardcode_direct=yes
5197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5198 hardcode_libdir_separator=:
5199 hardcode_shlibpath_var=no
5200 ;;
5201
5202 openbsd*)
5203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5204 hardcode_libdir_flag_spec='-R$libdir'
5205 hardcode_direct=yes
5206 hardcode_shlibpath_var=no
5207 ;;
5208
5209 os2*)
5210 hardcode_libdir_flag_spec='-L$libdir'
5211 hardcode_minus_L=yes
5212 allow_undefined_flag=unsupported
5213 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'
5214 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5215 ;;
5216
5217 osf3*)
5218 if test "$GCC" = yes; then
5219 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5220 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5221 else
5222 allow_undefined_flag=' -expect_unresolved \*'
5223 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5224 fi
5225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5226 hardcode_libdir_separator=:
5227 ;;
5228
5229 osf4* | osf5*) # as osf3* with the addition of -msym flag
5230 if test "$GCC" = yes; then
5231 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5232 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5234 else
5235 allow_undefined_flag=' -expect_unresolved \*'
5236 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5237 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5238 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5239
5240 #Both c and cxx compiler support -rpath directly
5241 hardcode_libdir_flag_spec='-rpath $libdir'
5242 fi
5243 hardcode_libdir_separator=:
5244 ;;
5245
5246 sco3.2v5*)
5247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5248 hardcode_shlibpath_var=no
5249 runpath_var=LD_RUN_PATH
5250 hardcode_runpath_var=yes
5251 ;;
5252
5253 solaris*)
5254 no_undefined_flag=' -z defs'
5255 # $CC -shared without GNU ld will not create a library from C++
5256 # object files and a static libstdc++, better avoid it by now
5257 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5258 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5259 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5260 hardcode_libdir_flag_spec='-R$libdir'
5261 hardcode_shlibpath_var=no
5262 case $host_os in
5263 solaris2.[0-5] | solaris2.[0-5].*) ;;
5264 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5265 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5266 esac
5267 link_all_deplibs=yes
5268 ;;
5269
5270 sunos4*)
5271 if test "x$host_vendor" = xsequent; then
5272 # Use $CC to link under sequent, because it throws in some extra .o
5273 # files that make .init and .fini sections work.
5274 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5275 else
5276 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5277 fi
5278 hardcode_libdir_flag_spec='-L$libdir'
5279 hardcode_direct=yes
5280 hardcode_minus_L=yes
5281 hardcode_shlibpath_var=no
5282 ;;
5283
5284 sysv4)
5285 if test "x$host_vendor" = xsno; then
5286 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
5287 hardcode_direct=yes # is this really true???
5288 else
5289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5290 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5291 fi
5292 runpath_var='LD_RUN_PATH'
5293 hardcode_shlibpath_var=no
5294 ;;
5295
5296 sysv4.3*)
5297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5298 hardcode_shlibpath_var=no
5299 export_dynamic_flag_spec='-Bexport'
5300 ;;
5301
5302 sysv5*)
5303 no_undefined_flag=' -z text'
5304 # $CC -shared without GNU ld will not create a library from C++
5305 # object files and a static libstdc++, better avoid it by now
5306 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5307 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5308 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5309 hardcode_libdir_flag_spec=
5310 hardcode_shlibpath_var=no
5311 runpath_var='LD_RUN_PATH'
5312 ;;
5313
5314 uts4*)
5315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5316 hardcode_libdir_flag_spec='-L$libdir'
5317 hardcode_shlibpath_var=no
5318 ;;
5319
5320 dgux*)
5321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5322 hardcode_libdir_flag_spec='-L$libdir'
5323 hardcode_shlibpath_var=no
5324 ;;
5325
5326 sysv4*MP*)
5327 if test -d /usr/nec; then
5328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5329 hardcode_shlibpath_var=no
5330 runpath_var=LD_RUN_PATH
5331 hardcode_runpath_var=yes
5332 ld_shlibs=yes
5333 fi
5334 ;;
5335
5336 sysv4.2uw2*)
5337 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5338 hardcode_direct=yes
5339 hardcode_minus_L=no
5340 hardcode_shlibpath_var=no
5341 hardcode_runpath_var=yes
5342 runpath_var=LD_RUN_PATH
5343 ;;
5344
5345 sysv5uw7* | unixware7*)
5346 no_undefined_flag='${wl}-z ${wl}text'
5347 if test "$GCC" = yes; then
5348 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5349 else
5350 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5351 fi
5352 runpath_var='LD_RUN_PATH'
5353 hardcode_shlibpath_var=no
5354 ;;
5355
5356 *)
5357 ld_shlibs=no
5358 ;;
5359 esac
5360 fi
5361 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5362 echo "${ECHO_T}$ld_shlibs" >&6
5363 test "$ld_shlibs" = no && can_build_shared=no
5364 ##
5365 ## END FIXME
5366
5367 ## FIXME: this should be a separate macro
5368 ##
5369 # Check hardcoding attributes.
5370 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5371 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5372 hardcode_action=
5373 if test -n "$hardcode_libdir_flag_spec" || \
5374 test -n "$runpath_var"; then
5375
5376 # We can hardcode non-existant directories.
5377 if test "$hardcode_direct" != no &&
5378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5379 # have to relink, otherwise we might link with an installed library
5380 # when we should be linking with a yet-to-be-installed one
5381 ## test "$hardcode_shlibpath_var" != no &&
5382 test "$hardcode_minus_L" != no; then
5383 # Linking always hardcodes the temporary library directory.
5384 hardcode_action=relink
5385 else
5386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5387 hardcode_action=immediate
5388 fi
5389 else
5390 # We cannot hardcode anything, or else we can only hardcode existing
5391 # directories.
5392 hardcode_action=unsupported
5393 fi
5394 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5395 echo "${ECHO_T}$hardcode_action" >&6
5396 ##
5397 ## END FIXME
5398
5399 ## FIXME: this should be a separate macro
5400 ##
5401 striplib=
5402 old_striplib=
5403 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5404 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5405 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5406 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5407 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5408 echo "$as_me:$LINENO: result: yes" >&5
5409 echo "${ECHO_T}yes" >&6
5410 else
5411 echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6
5413 fi
5414 ##
5415 ## END FIXME
5416
5417 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5418 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5419
5420 ## FIXME: this should be a separate macro
5421 ##
5422 # PORTME Fill in your ld.so characteristics
5423 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5424 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5425 library_names_spec=
5426 libname_spec='lib$name'
5427 soname_spec=
5428 postinstall_cmds=
5429 postuninstall_cmds=
5430 finish_cmds=
5431 finish_eval=
5432 shlibpath_var=
5433 shlibpath_overrides_runpath=unknown
5434 version_type=none
5435 dynamic_linker="$host_os ld.so"
5436 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5437 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5438
5439 case $host_os in
5440 aix3*)
5441 version_type=linux
5442 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5443 shlibpath_var=LIBPATH
5444
5445 # AIX has no versioning support, so we append a major version to the name.
5446 soname_spec='${libname}${release}.so$major'
5447 ;;
5448
5449 aix4* | aix5*)
5450 version_type=linux
5451 if test "$host_cpu" = ia64; then
5452 # AIX 5 supports IA64
5453 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5454 shlibpath_var=LD_LIBRARY_PATH
5455 else
5456 # With GCC up to 2.95.x, collect2 would create an import file
5457 # for dependence libraries. The import file would start with
5458 # the line `#! .'. This would cause the generated library to
5459 # depend on `.', always an invalid library. This was fixed in
5460 # development snapshots of GCC prior to 3.0.
5461 case $host_os in
5462 aix4 | aix4.[01] | aix4.[01].*)
5463 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5464 echo ' yes '
5465 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5466 :
5467 else
5468 can_build_shared=no
5469 fi
5470 ;;
5471 esac
5472 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5473 # soname into executable. Probably we can add versioning support to
5474 # collect2, so additional links can be useful in future.
5475 if test "$aix_use_runtimelinking" = yes; then
5476 # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
5477 # lib<name>.a to let people know that these are not typical AIX shared libraries.
5478 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5479 else
5480 # We preserve .a as extension for shared libraries through AIX4.2
5481 # and later when we are not doing run time linking.
5482 library_names_spec='${libname}${release}.a $libname.a'
5483 soname_spec='${libname}${release}.so$major'
5484 fi
5485 shlibpath_var=LIBPATH
5486 deplibs_check_method=pass_all
5487 fi
5488 ;;
5489
5490 amigaos*)
5491 library_names_spec='$libname.ixlibrary $libname.a'
5492 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5493 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'
5494 ;;
5495
5496 beos*)
5497 library_names_spec='${libname}.so'
5498 dynamic_linker="$host_os ld.so"
5499 shlibpath_var=LIBRARY_PATH
5500 ;;
5501
5502 bsdi4*)
5503 version_type=linux
5504 need_version=no
5505 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5506 soname_spec='${libname}${release}.so$major'
5507 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5508 shlibpath_var=LD_LIBRARY_PATH
5509 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5510 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5511 export_dynamic_flag_spec=-rdynamic
5512 # the default ld.so.conf also contains /usr/contrib/lib and
5513 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5514 # libtool to hard-code these into programs
5515 ;;
5516
5517 cygwin* | mingw* | pw32*)
5518 version_type=windows
5519 need_version=no
5520 need_lib_prefix=no
5521 case $GCC,$host_os in
5522 yes,cygwin*)
5523 library_names_spec='$libname.dll.a'
5524 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5525 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5526 dldir=$destdir/`dirname \$dlpath`~
5527 test -d \$dldir || mkdir -p \$dldir~
5528 $install_prog .libs/$dlname \$dldir/$dlname'
5529 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5530 dlpath=$dir/\$dldll~
5531 $rm \$dlpath'
5532 ;;
5533 yes,mingw*)
5534 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5535 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5536 ;;
5537 yes,pw32*)
5538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5539 ;;
5540 *)
5541 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5542 ;;
5543 esac
5544 dynamic_linker='Win32 ld.exe'
5545 # FIXME: first we should search . and the directory the executable is in
5546 shlibpath_var=PATH
5547 ;;
5548
5549 darwin* | rhapsody*)
5550 dynamic_linker="$host_os dyld"
5551 version_type=darwin
5552 need_lib_prefix=no
5553 need_version=no
5554 # FIXME: Relying on posixy $() will cause problems for
5555 # cross-compilation, but unfortunately the echo tests do not
5556 # yet detect zsh echo's removal of \ escapes.
5557 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5558 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5559 shlibpath_overrides_runpath=yes
5560 shlibpath_var=DYLD_LIBRARY_PATH
5561 ;;
5562
5563 freebsd1*)
5564 dynamic_linker=no
5565 ;;
5566
5567 freebsd*)
5568 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5569 version_type=freebsd-$objformat
5570 case $version_type in
5571 freebsd-elf*)
5572 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5573 need_version=no
5574 need_lib_prefix=no
5575 ;;
5576 freebsd-*)
5577 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5578 need_version=yes
5579 ;;
5580 esac
5581 shlibpath_var=LD_LIBRARY_PATH
5582 case $host_os in
5583 freebsd2*)
5584 shlibpath_overrides_runpath=yes
5585 ;;
5586 *)
5587 shlibpath_overrides_runpath=no
5588 hardcode_into_libs=yes
5589 ;;
5590 esac
5591 ;;
5592
5593 gnu*)
5594 version_type=linux
5595 need_lib_prefix=no
5596 need_version=no
5597 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5598 soname_spec='${libname}${release}.so$major'
5599 shlibpath_var=LD_LIBRARY_PATH
5600 hardcode_into_libs=yes
5601 ;;
5602
5603 hpux9* | hpux10* | hpux11*)
5604 # Give a soname corresponding to the major version so that dld.sl refuses to
5605 # link against other versions.
5606 dynamic_linker="$host_os dld.sl"
5607 version_type=sunos
5608 need_lib_prefix=no
5609 need_version=no
5610 shlibpath_var=SHLIB_PATH
5611 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5612 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5613 soname_spec='${libname}${release}.sl$major'
5614 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5615 postinstall_cmds='chmod 555 $lib'
5616 ;;
5617
5618 irix5* | irix6*)
5619 version_type=irix
5620 need_lib_prefix=no
5621 need_version=no
5622 soname_spec='${libname}${release}.so$major'
5623 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5624 case $host_os in
5625 irix5*)
5626 libsuff= shlibsuff=
5627 ;;
5628 *)
5629 case $LD in # libtool.m4 will add one of these switches to LD
5630 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5631 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5632 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5633 *) libsuff= shlibsuff= libmagic=never-match;;
5634 esac
5635 ;;
5636 esac
5637 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5638 shlibpath_overrides_runpath=no
5639 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5640 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5641 ;;
5642
5643 # No shared lib support for Linux oldld, aout, or coff.
5644 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5645 dynamic_linker=no
5646 ;;
5647
5648 # This must be Linux ELF.
5649 linux-gnu*)
5650 version_type=linux
5651 need_lib_prefix=no
5652 need_version=no
5653 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5654 soname_spec='${libname}${release}.so$major'
5655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5656 shlibpath_var=LD_LIBRARY_PATH
5657 shlibpath_overrides_runpath=no
5658 # This implies no fast_install, which is unacceptable.
5659 # Some rework will be needed to allow for fast_install
5660 # before this can be enabled.
5661 hardcode_into_libs=yes
5662
5663 # We used to test for /lib/ld.so.1 and disable shared libraries on
5664 # powerpc, because MkLinux only supported shared libraries with the
5665 # GNU dynamic linker. Since this was broken with cross compilers,
5666 # most powerpc-linux boxes support dynamic linking these days and
5667 # people can always --disable-shared, the test was removed, and we
5668 # assume the GNU/Linux dynamic linker is in use.
5669 dynamic_linker='GNU/Linux ld.so'
5670 ;;
5671
5672 netbsd*)
5673 version_type=sunos
5674 need_lib_prefix=no
5675 need_version=no
5676 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5677 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5679 dynamic_linker='NetBSD (a.out) ld.so'
5680 else
5681 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5682 soname_spec='${libname}${release}.so$major'
5683 dynamic_linker='NetBSD ld.elf_so'
5684 fi
5685 shlibpath_var=LD_LIBRARY_PATH
5686 shlibpath_overrides_runpath=yes
5687 hardcode_into_libs=yes
5688 ;;
5689
5690 newsos6)
5691 version_type=linux
5692 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5693 shlibpath_var=LD_LIBRARY_PATH
5694 shlibpath_overrides_runpath=yes
5695 ;;
5696
5697 openbsd*)
5698 version_type=sunos
5699 if test "$with_gnu_ld" = yes; then
5700 need_lib_prefix=no
5701 need_version=no
5702 fi
5703 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5705 shlibpath_var=LD_LIBRARY_PATH
5706 ;;
5707
5708 os2*)
5709 libname_spec='$name'
5710 need_lib_prefix=no
5711 library_names_spec='$libname.dll $libname.a'
5712 dynamic_linker='OS/2 ld.exe'
5713 shlibpath_var=LIBPATH
5714 ;;
5715
5716 osf3* | osf4* | osf5*)
5717 version_type=osf
5718 need_version=no
5719 soname_spec='${libname}${release}.so'
5720 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5721 shlibpath_var=LD_LIBRARY_PATH
5722 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5723 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5724 ;;
5725
5726 sco3.2v5*)
5727 version_type=osf
5728 soname_spec='${libname}${release}.so$major'
5729 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5730 shlibpath_var=LD_LIBRARY_PATH
5731 ;;
5732
5733 solaris*)
5734 version_type=linux
5735 need_lib_prefix=no
5736 need_version=no
5737 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5738 soname_spec='${libname}${release}.so$major'
5739 shlibpath_var=LD_LIBRARY_PATH
5740 shlibpath_overrides_runpath=yes
5741 hardcode_into_libs=yes
5742 # ldd complains unless libraries are executable
5743 postinstall_cmds='chmod +x $lib'
5744 ;;
5745
5746 sunos4*)
5747 version_type=sunos
5748 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5749 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5750 shlibpath_var=LD_LIBRARY_PATH
5751 shlibpath_overrides_runpath=yes
5752 if test "$with_gnu_ld" = yes; then
5753 need_lib_prefix=no
5754 fi
5755 need_version=yes
5756 ;;
5757
5758 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5759 version_type=linux
5760 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5761 soname_spec='${libname}${release}.so$major'
5762 shlibpath_var=LD_LIBRARY_PATH
5763 case $host_vendor in
5764 sni)
5765 shlibpath_overrides_runpath=no
5766 ;;
5767 motorola)
5768 need_lib_prefix=no
5769 need_version=no
5770 shlibpath_overrides_runpath=no
5771 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5772 ;;
5773 esac
5774 ;;
5775
5776 uts4*)
5777 version_type=linux
5778 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5779 soname_spec='${libname}${release}.so$major'
5780 shlibpath_var=LD_LIBRARY_PATH
5781 ;;
5782
5783 dgux*)
5784 version_type=linux
5785 need_lib_prefix=no
5786 need_version=no
5787 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5788 soname_spec='${libname}${release}.so$major'
5789 shlibpath_var=LD_LIBRARY_PATH
5790 ;;
5791
5792 sysv4*MP*)
5793 if test -d /usr/nec ;then
5794 version_type=linux
5795 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5796 soname_spec='$libname.so.$major'
5797 shlibpath_var=LD_LIBRARY_PATH
5798 fi
5799 ;;
5800
5801 *)
5802 dynamic_linker=no
5803 ;;
5804 esac
5805 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5806 echo "${ECHO_T}$dynamic_linker" >&6
5807 test "$dynamic_linker" = no && can_build_shared=no
5808 ##
5809 ## END FIXME
5810
5811 ## FIXME: this should be a separate macro
5812 ##
5813 # Report the final consequences.
5814 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5815 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5816 echo "$as_me:$LINENO: result: $can_build_shared" >&5
5817 echo "${ECHO_T}$can_build_shared" >&6
5818 ##
5819 ## END FIXME
5820
5821 if test "$hardcode_action" = relink; then
5822 # Fast installation is not supported
5823 enable_fast_install=no
5824 elif test "$shlibpath_overrides_runpath" = yes ||
5825 test "$enable_shared" = no; then
5826 # Fast installation is not necessary
5827 enable_fast_install=needless
5828 fi
5829
5830 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5831 if test "$GCC" = yes; then
5832 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5833 fi
5834
5835 if test "x$enable_dlopen" != xyes; then
5836 enable_dlopen=unknown
5837 enable_dlopen_self=unknown
5838 enable_dlopen_self_static=unknown
5839 else
5840 lt_cv_dlopen=no
5841 lt_cv_dlopen_libs=
5842
5843 case $host_os in
5844 beos*)
5845 lt_cv_dlopen="load_add_on"
5846 lt_cv_dlopen_libs=
5847 lt_cv_dlopen_self=yes
5848 ;;
5849
5850 cygwin* | mingw* | pw32*)
5851 lt_cv_dlopen="LoadLibrary"
5852 lt_cv_dlopen_libs=
5853 ;;
5854
5855 *)
5856 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5857 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5858 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861 ac_check_lib_save_LIBS=$LIBS
5862 LIBS="-ldl $LIBS"
5863 cat >conftest.$ac_ext <<_ACEOF
5864 #line $LINENO "configure"
5865 /* confdefs.h. */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870
5871 /* Override any gcc2 internal prototype to avoid an error. */
5872 #ifdef __cplusplus
5873 extern "C"
5874 #endif
5875 /* We use char because int might match the return type of a gcc2
5876 builtin and then its argument prototype would still apply. */
5877 char dlopen ();
5878 int
5879 main ()
5880 {
5881 dlopen ();
5882 ;
5883 return 0;
5884 }
5885 _ACEOF
5886 rm -f conftest.$ac_objext conftest$ac_exeext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5888 (eval $ac_link) 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -s conftest$ac_exeext'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 (eval $ac_try) 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 ac_cv_lib_dl_dlopen=yes
5899 else
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903 ac_cv_lib_dl_dlopen=no
5904 fi
5905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5906 LIBS=$ac_check_lib_save_LIBS
5907 fi
5908 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5909 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5910 if test $ac_cv_lib_dl_dlopen = yes; then
5911 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5912 else
5913 echo "$as_me:$LINENO: checking for dlopen" >&5
5914 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5915 if test "${ac_cv_func_dlopen+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918 cat >conftest.$ac_ext <<_ACEOF
5919 #line $LINENO "configure"
5920 /* confdefs.h. */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 /* System header to define __stub macros and hopefully few prototypes,
5926 which can conflict with char dlopen (); below.
5927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5928 <limits.h> exists even on freestanding compilers. */
5929 #ifdef __STDC__
5930 # include <limits.h>
5931 #else
5932 # include <assert.h>
5933 #endif
5934 /* Override any gcc2 internal prototype to avoid an error. */
5935 #ifdef __cplusplus
5936 extern "C"
5937 {
5938 #endif
5939 /* We use char because int might match the return type of a gcc2
5940 builtin and then its argument prototype would still apply. */
5941 char dlopen ();
5942 /* The GNU C library defines this for functions which it implements
5943 to always fail with ENOSYS. Some functions are actually named
5944 something starting with __ and the normal name is an alias. */
5945 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5946 choke me
5947 #else
5948 char (*f) () = dlopen;
5949 #endif
5950 #ifdef __cplusplus
5951 }
5952 #endif
5953
5954 int
5955 main ()
5956 {
5957 return f != dlopen;
5958 ;
5959 return 0;
5960 }
5961 _ACEOF
5962 rm -f conftest.$ac_objext conftest$ac_exeext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5964 (eval $ac_link) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } &&
5968 { ac_try='test -s conftest$ac_exeext'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 (eval $ac_try) 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5974 ac_cv_func_dlopen=yes
5975 else
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5978
5979 ac_cv_func_dlopen=no
5980 fi
5981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5982 fi
5983 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5984 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5985 if test $ac_cv_func_dlopen = yes; then
5986 lt_cv_dlopen="dlopen"
5987 else
5988 echo "$as_me:$LINENO: checking for shl_load" >&5
5989 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5990 if test "${ac_cv_func_shl_load+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 cat >conftest.$ac_ext <<_ACEOF
5994 #line $LINENO "configure"
5995 /* confdefs.h. */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 /* System header to define __stub macros and hopefully few prototypes,
6001 which can conflict with char shl_load (); below.
6002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6003 <limits.h> exists even on freestanding compilers. */
6004 #ifdef __STDC__
6005 # include <limits.h>
6006 #else
6007 # include <assert.h>
6008 #endif
6009 /* Override any gcc2 internal prototype to avoid an error. */
6010 #ifdef __cplusplus
6011 extern "C"
6012 {
6013 #endif
6014 /* We use char because int might match the return type of a gcc2
6015 builtin and then its argument prototype would still apply. */
6016 char shl_load ();
6017 /* The GNU C library defines this for functions which it implements
6018 to always fail with ENOSYS. Some functions are actually named
6019 something starting with __ and the normal name is an alias. */
6020 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6021 choke me
6022 #else
6023 char (*f) () = shl_load;
6024 #endif
6025 #ifdef __cplusplus
6026 }
6027 #endif
6028
6029 int
6030 main ()
6031 {
6032 return f != shl_load;
6033 ;
6034 return 0;
6035 }
6036 _ACEOF
6037 rm -f conftest.$ac_objext conftest$ac_exeext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6039 (eval $ac_link) 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } &&
6043 { ac_try='test -s conftest$ac_exeext'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 (eval $ac_try) 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6049 ac_cv_func_shl_load=yes
6050 else
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6053
6054 ac_cv_func_shl_load=no
6055 fi
6056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057 fi
6058 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6059 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6060 if test $ac_cv_func_shl_load = yes; then
6061 lt_cv_dlopen="shl_load"
6062 else
6063 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6064 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6065 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068 ac_check_lib_save_LIBS=$LIBS
6069 LIBS="-lsvld $LIBS"
6070 cat >conftest.$ac_ext <<_ACEOF
6071 #line $LINENO "configure"
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077
6078 /* Override any gcc2 internal prototype to avoid an error. */
6079 #ifdef __cplusplus
6080 extern "C"
6081 #endif
6082 /* We use char because int might match the return type of a gcc2
6083 builtin and then its argument prototype would still apply. */
6084 char dlopen ();
6085 int
6086 main ()
6087 {
6088 dlopen ();
6089 ;
6090 return 0;
6091 }
6092 _ACEOF
6093 rm -f conftest.$ac_objext conftest$ac_exeext
6094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6095 (eval $ac_link) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } &&
6099 { ac_try='test -s conftest$ac_exeext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_lib_svld_dlopen=yes
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6109
6110 ac_cv_lib_svld_dlopen=no
6111 fi
6112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6113 LIBS=$ac_check_lib_save_LIBS
6114 fi
6115 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6116 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6117 if test $ac_cv_lib_svld_dlopen = yes; then
6118 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6119 else
6120 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6121 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6122 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125 ac_check_lib_save_LIBS=$LIBS
6126 LIBS="-ldld $LIBS"
6127 cat >conftest.$ac_ext <<_ACEOF
6128 #line $LINENO "configure"
6129 /* confdefs.h. */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134
6135 /* Override any gcc2 internal prototype to avoid an error. */
6136 #ifdef __cplusplus
6137 extern "C"
6138 #endif
6139 /* We use char because int might match the return type of a gcc2
6140 builtin and then its argument prototype would still apply. */
6141 char shl_load ();
6142 int
6143 main ()
6144 {
6145 shl_load ();
6146 ;
6147 return 0;
6148 }
6149 _ACEOF
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try='test -s conftest$ac_exeext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_lib_dld_shl_load=yes
6163 else
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 ac_cv_lib_dld_shl_load=no
6168 fi
6169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6170 LIBS=$ac_check_lib_save_LIBS
6171 fi
6172 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6173 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6174 if test $ac_cv_lib_dld_shl_load = yes; then
6175 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6176 fi
6177
6178
6179 fi
6180
6181
6182 fi
6183
6184
6185 fi
6186
6187
6188 fi
6189
6190 ;;
6191 esac
6192
6193 if test "x$lt_cv_dlopen" != xno; then
6194 enable_dlopen=yes
6195 else
6196 enable_dlopen=no
6197 fi
6198
6199 case $lt_cv_dlopen in
6200 dlopen)
6201 save_CPPFLAGS="$CPPFLAGS"
6202 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6203
6204 save_LDFLAGS="$LDFLAGS"
6205 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6206
6207 save_LIBS="$LIBS"
6208 LIBS="$lt_cv_dlopen_libs $LIBS"
6209
6210 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6211 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6212 if test "${lt_cv_dlopen_self+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215 if test "$cross_compiling" = yes; then :
6216 lt_cv_dlopen_self=cross
6217 else
6218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6219 lt_status=$lt_dlunknown
6220 cat > conftest.$ac_ext <<EOF
6221 #line 6212 "configure"
6222 #include "confdefs.h"
6223
6224 #if HAVE_DLFCN_H
6225 #include <dlfcn.h>
6226 #endif
6227
6228 #include <stdio.h>
6229
6230 #ifdef RTLD_GLOBAL
6231 # define LT_DLGLOBAL RTLD_GLOBAL
6232 #else
6233 # ifdef DL_GLOBAL
6234 # define LT_DLGLOBAL DL_GLOBAL
6235 # else
6236 # define LT_DLGLOBAL 0
6237 # endif
6238 #endif
6239
6240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6241 find out it does not work in some platform. */
6242 #ifndef LT_DLLAZY_OR_NOW
6243 # ifdef RTLD_LAZY
6244 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6245 # else
6246 # ifdef DL_LAZY
6247 # define LT_DLLAZY_OR_NOW DL_LAZY
6248 # else
6249 # ifdef RTLD_NOW
6250 # define LT_DLLAZY_OR_NOW RTLD_NOW
6251 # else
6252 # ifdef DL_NOW
6253 # define LT_DLLAZY_OR_NOW DL_NOW
6254 # else
6255 # define LT_DLLAZY_OR_NOW 0
6256 # endif
6257 # endif
6258 # endif
6259 # endif
6260 #endif
6261
6262 #ifdef __cplusplus
6263 extern "C" void exit (int);
6264 #endif
6265
6266 void fnord() { int i=42;}
6267 int main ()
6268 {
6269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6270 int status = $lt_dlunknown;
6271
6272 if (self)
6273 {
6274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6275 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6276 /* dlclose (self); */
6277 }
6278
6279 exit (status);
6280 }
6281 EOF
6282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283 (eval $ac_link) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6287 (./conftest; exit; ) 2>/dev/null
6288 lt_status=$?
6289 case x$lt_status in
6290 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6291 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6292 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6293 esac
6294 else :
6295 # compilation failed
6296 lt_cv_dlopen_self=no
6297 fi
6298 fi
6299 rm -fr conftest*
6300
6301
6302 fi
6303 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6304 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6305
6306 if test "x$lt_cv_dlopen_self" = xyes; then
6307 LDFLAGS="$LDFLAGS $link_static_flag"
6308 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6309 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6310 if test "${lt_cv_dlopen_self_static+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313 if test "$cross_compiling" = yes; then :
6314 lt_cv_dlopen_self_static=cross
6315 else
6316 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6317 lt_status=$lt_dlunknown
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6310 "configure"
6320 #include "confdefs.h"
6321
6322 #if HAVE_DLFCN_H
6323 #include <dlfcn.h>
6324 #endif
6325
6326 #include <stdio.h>
6327
6328 #ifdef RTLD_GLOBAL
6329 # define LT_DLGLOBAL RTLD_GLOBAL
6330 #else
6331 # ifdef DL_GLOBAL
6332 # define LT_DLGLOBAL DL_GLOBAL
6333 # else
6334 # define LT_DLGLOBAL 0
6335 # endif
6336 #endif
6337
6338 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6339 find out it does not work in some platform. */
6340 #ifndef LT_DLLAZY_OR_NOW
6341 # ifdef RTLD_LAZY
6342 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6343 # else
6344 # ifdef DL_LAZY
6345 # define LT_DLLAZY_OR_NOW DL_LAZY
6346 # else
6347 # ifdef RTLD_NOW
6348 # define LT_DLLAZY_OR_NOW RTLD_NOW
6349 # else
6350 # ifdef DL_NOW
6351 # define LT_DLLAZY_OR_NOW DL_NOW
6352 # else
6353 # define LT_DLLAZY_OR_NOW 0
6354 # endif
6355 # endif
6356 # endif
6357 # endif
6358 #endif
6359
6360 #ifdef __cplusplus
6361 extern "C" void exit (int);
6362 #endif
6363
6364 void fnord() { int i=42;}
6365 int main ()
6366 {
6367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6368 int status = $lt_dlunknown;
6369
6370 if (self)
6371 {
6372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6374 /* dlclose (self); */
6375 }
6376
6377 exit (status);
6378 }
6379 EOF
6380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6381 (eval $ac_link) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6385 (./conftest; exit; ) 2>/dev/null
6386 lt_status=$?
6387 case x$lt_status in
6388 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6389 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6390 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6391 esac
6392 else :
6393 # compilation failed
6394 lt_cv_dlopen_self_static=no
6395 fi
6396 fi
6397 rm -fr conftest*
6398
6399
6400 fi
6401 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6402 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6403 fi
6404
6405 CPPFLAGS="$save_CPPFLAGS"
6406 LDFLAGS="$save_LDFLAGS"
6407 LIBS="$save_LIBS"
6408 ;;
6409 esac
6410
6411 case $lt_cv_dlopen_self in
6412 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6413 *) enable_dlopen_self=unknown ;;
6414 esac
6415
6416 case $lt_cv_dlopen_self_static in
6417 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6418 *) enable_dlopen_self_static=unknown ;;
6419 esac
6420 fi
6421
6422
6423 ## FIXME: this should be a separate macro
6424 ##
6425 if test "$enable_shared" = yes && test "$GCC" = yes; then
6426 case $archive_cmds in
6427 *'~'*)
6428 # FIXME: we may have to deal with multi-command sequences.
6429 ;;
6430 '$CC '*)
6431 # Test whether the compiler implicitly links with -lc since on some
6432 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6433 # to ld, don't add -lc before -lgcc.
6434 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6435 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6436 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439 $rm conftest*
6440 echo 'static int dummy;' > conftest.$ac_ext
6441
6442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443 (eval $ac_compile) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; then
6447 soname=conftest
6448 lib=conftest
6449 libobjs=conftest.$ac_objext
6450 deplibs=
6451 wl=$lt_cv_prog_cc_wl
6452 compiler_flags=-v
6453 linker_flags=-v
6454 verstring=
6455 output_objdir=.
6456 libname=conftest
6457 save_allow_undefined_flag=$allow_undefined_flag
6458 allow_undefined_flag=
6459 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6460 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }
6464 then
6465 lt_cv_archive_cmds_need_lc=no
6466 else
6467 lt_cv_archive_cmds_need_lc=yes
6468 fi
6469 allow_undefined_flag=$save_allow_undefined_flag
6470 else
6471 cat conftest.err 1>&5
6472 fi
6473 fi
6474
6475 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6476 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6477 ;;
6478 esac
6479 fi
6480 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6481 ##
6482 ## END FIXME
6483
6484 ## FIXME: this should be a separate macro
6485 ##
6486 # The second clause should only fire when bootstrapping the
6487 # libtool distribution, otherwise you forgot to ship ltmain.sh
6488 # with your package, and you will get complaints that there are
6489 # no rules to generate ltmain.sh.
6490 if test -f "$ltmain"; then
6491 :
6492 else
6493 # If there is no Makefile yet, we rely on a make rule to execute
6494 # `config.status --recheck' to rerun these tests and create the
6495 # libtool script then.
6496 test -f Makefile && make "$ltmain"
6497 fi
6498
6499 if test -f "$ltmain"; then
6500 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6501 $rm -f "${ofile}T"
6502
6503 echo creating $ofile
6504
6505 # Now quote all the things that may contain metacharacters while being
6506 # careful not to overquote the AC_SUBSTed values. We take copies of the
6507 # variables and quote the copies for generation of the libtool script.
6508 for var in echo old_CC old_CFLAGS \
6509 AR AR_FLAGS CC LD LN_S NM SHELL \
6510 reload_flag reload_cmds wl \
6511 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6512 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6513 library_names_spec soname_spec \
6514 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6515 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6516 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6517 old_striplib striplib file_magic_cmd export_symbols_cmds \
6518 deplibs_check_method allow_undefined_flag no_undefined_flag \
6519 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6520 hardcode_libdir_flag_spec hardcode_libdir_separator \
6521 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6522 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6523
6524 case $var in
6525 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6526 old_postinstall_cmds | old_postuninstall_cmds | \
6527 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6528 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6529 postinstall_cmds | postuninstall_cmds | \
6530 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6531 # Double-quote double-evaled strings.
6532 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6533 ;;
6534 *)
6535 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6536 ;;
6537 esac
6538 done
6539
6540 cat <<__EOF__ > "${ofile}T"
6541 #! $SHELL
6542
6543 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6544 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6545 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6546 #
6547 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6548 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6549 #
6550 # This program is free software; you can redistribute it and/or modify
6551 # it under the terms of the GNU General Public License as published by
6552 # the Free Software Foundation; either version 2 of the License, or
6553 # (at your option) any later version.
6554 #
6555 # This program is distributed in the hope that it will be useful, but
6556 # WITHOUT ANY WARRANTY; without even the implied warranty of
6557 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6558 # General Public License for more details.
6559 #
6560 # You should have received a copy of the GNU General Public License
6561 # along with this program; if not, write to the Free Software
6562 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6563 #
6564 # As a special exception to the GNU General Public License, if you
6565 # distribute this file as part of a program that contains a
6566 # configuration script generated by Autoconf, you may include it under
6567 # the same distribution terms that you use for the rest of that program.
6568
6569 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6570 Xsed="sed -e s/^X//"
6571
6572 # The HP-UX ksh and POSIX shell print the target directory to stdout
6573 # if CDPATH is set.
6574 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6575
6576 # ### BEGIN LIBTOOL CONFIG
6577
6578 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6579
6580 # Shell to use when invoking shell scripts.
6581 SHELL=$lt_SHELL
6582
6583 # Whether or not to build shared libraries.
6584 build_libtool_libs=$enable_shared
6585
6586 # Whether or not to add -lc for building shared libraries.
6587 build_libtool_need_lc=$need_lc
6588
6589 # Whether or not to build static libraries.
6590 build_old_libs=$enable_static
6591
6592 # Whether or not to optimize for fast installation.
6593 fast_install=$enable_fast_install
6594