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

Contents of /code/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


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