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

Contents of /code/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 81 - (hide annotations) (download)
Sat Feb 24 21:40:59 2007 UTC (6 years, 2 months ago) by nigel
File size: 686604 byte(s)
Load pcre-6.2 into code/trunk.

1 nigel 41 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 nigel 75 # Generated by GNU Autoconf 2.59.
4 nigel 41 #
5 nigel 75 # Copyright (C) 2003 Free Software Foundation, Inc.
6 nigel 41 # This configure script is free software; the Free Software Foundation
7     # gives unlimited permission to copy, distribute and modify it.
8 nigel 63 ## --------------------- ##
9     ## M4sh Initialization. ##
10     ## --------------------- ##
11 nigel 41
12 nigel 63 # Be Bourne compatible
13     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14     emulate sh
15     NULLCMD=:
16     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17     # is contrary to our usage. Disable this feature.
18     alias -g '${1+"$@"}'='"$@"'
19     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20     set -o posix
21     fi
22 nigel 75 DUALCASE=1; export DUALCASE # for MKS sh
23 nigel 63
24     # Support unset when possible.
25 nigel 75 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 nigel 63 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 nigel 75 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 nigel 63 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 nigel 75 test -d ./-p && rmdir ./-p
222 nigel 63 as_mkdir_p=false
223     fi
224    
225     as_executable_p="test -f"
226    
227     # Sed expression to map a string onto a valid CPP name.
228 nigel 75 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229 nigel 63
230     # Sed expression to map a string onto a valid variable name.
231 nigel 75 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232 nigel 63
233    
234     # IFS
235     # We need space, tab and new line, in precisely that order.
236     as_nl='
237     '
238     IFS=" $as_nl"
239    
240     # CDPATH.
241     $as_unset CDPATH
242    
243    
244 nigel 53
245     # Check that we are running under the correct shell.
246     SHELL=${CONFIG_SHELL-/bin/sh}
247    
248     case X$ECHO in
249     X*--fallback-echo)
250     # Remove one level of quotation (which was required for Make).
251     ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252     ;;
253     esac
254    
255     echo=${ECHO-echo}
256     if test "X$1" = X--no-reexec; then
257     # Discard the --no-reexec flag, and continue.
258     shift
259     elif test "X$1" = X--fallback-echo; then
260     # Avoid inline document here, it may be left over
261     :
262 nigel 75 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 nigel 53 # Yippee, $echo works!
264     :
265     else
266     # Restart under the correct shell.
267     exec $SHELL "$0" --no-reexec ${1+"$@"}
268     fi
269    
270     if test "X$1" = X--fallback-echo; then
271     # used as fallback echo
272     shift
273     cat <<EOF
274 nigel 75 $*
275 nigel 53 EOF
276     exit 0
277     fi
278    
279     # The HP-UX ksh and POSIX shell print the target directory to stdout
280     # if CDPATH is set.
281 nigel 75 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282 nigel 53
283     if test -z "$ECHO"; then
284     if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289     echo_test_string="`eval $cmd`" &&
290     (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292     break
293     fi
294     done
295     fi
296    
297     if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298     echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299     test "X$echo_testing_string" = "X$echo_test_string"; then
300     :
301     else
302     # The Solaris, AIX, and Digital Unix default echo programs unquote
303     # backslashes. This makes it impossible to quote backslashes using
304     # echo "$something" | sed 's/\\/\\\\/g'
305     #
306     # So, first we look for a working echo in the user's PATH.
307    
308 nigel 75 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 nigel 53 for dir in $PATH /usr/ucb; do
310 nigel 75 IFS="$lt_save_ifs"
311 nigel 53 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312     test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313     echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314     test "X$echo_testing_string" = "X$echo_test_string"; then
315     echo="$dir/echo"
316     break
317     fi
318     done
319 nigel 75 IFS="$lt_save_ifs"
320 nigel 53
321     if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324     echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325     test "X$echo_testing_string" = "X$echo_test_string"; then
326     # This shell has a builtin print -r that does the trick.
327     echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329     test "X$CONFIG_SHELL" != X/bin/ksh; then
330     # If we have ksh, try running configure again with it.
331     ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332     export ORIGINAL_CONFIG_SHELL
333     CONFIG_SHELL=/bin/ksh
334     export CONFIG_SHELL
335     exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337     # Try using printf.
338     echo='printf %s\n'
339     if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340     echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341     test "X$echo_testing_string" = "X$echo_test_string"; then
342     # Cool, printf works
343     :
344     elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345     test "X$echo_testing_string" = 'X\t' &&
346     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347     test "X$echo_testing_string" = "X$echo_test_string"; then
348     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349     export CONFIG_SHELL
350     SHELL="$CONFIG_SHELL"
351     export SHELL
352     echo="$CONFIG_SHELL $0 --fallback-echo"
353     elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354     test "X$echo_testing_string" = 'X\t' &&
355     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356     test "X$echo_testing_string" = "X$echo_test_string"; then
357     echo="$CONFIG_SHELL $0 --fallback-echo"
358     else
359     # maybe with a smaller string...
360     prev=:
361    
362     for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363     if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364     then
365     break
366     fi
367     prev="$cmd"
368     done
369    
370     if test "$prev" != 'sed 50q "$0"'; then
371     echo_test_string=`eval $prev`
372     export echo_test_string
373     exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374     else
375     # Oops. We lost completely, so just stick with echo.
376     echo=echo
377     fi
378     fi
379     fi
380     fi
381     fi
382     fi
383    
384     # Copy echo and quote the copy suitably for passing to libtool from
385     # the Makefile, instead of quoting the original, which is used later.
386     ECHO=$echo
387     if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388     ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389     fi
390    
391    
392    
393 nigel 75
394     tagnames=${tagnames+${tagnames},}CXX
395    
396     tagnames=${tagnames+${tagnames},}F77
397    
398 nigel 53 # Name of the host.
399     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400     # so uname gets run too.
401     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402    
403     exec 6>&1
404    
405     #
406     # Initializations.
407     #
408 nigel 41 ac_default_prefix=/usr/local
409 nigel 63 ac_config_libobj_dir=.
410 nigel 53 cross_compiling=no
411     subdirs=
412 nigel 63 MFLAGS=
413     MAKEFLAGS=
414 nigel 53 SHELL=${CONFIG_SHELL-/bin/sh}
415 nigel 41
416 nigel 53 # Maximum number of lines to put in a shell here document.
417     # This variable seems obsolete. It should probably be removed, and
418     # only ac_max_sed_lines should be used.
419     : ${ac_max_here_lines=38}
420    
421 nigel 63 # Identity of this package.
422     PACKAGE_NAME=
423     PACKAGE_TARNAME=
424     PACKAGE_VERSION=
425     PACKAGE_STRING=
426     PACKAGE_BUGREPORT=
427 nigel 53
428     ac_unique_file="dftables.c"
429     # Factoring default headers for most tests.
430     ac_includes_default="\
431     #include <stdio.h>
432 nigel 63 #if HAVE_SYS_TYPES_H
433     # include <sys/types.h>
434     #endif
435     #if HAVE_SYS_STAT_H
436     # include <sys/stat.h>
437     #endif
438 nigel 53 #if STDC_HEADERS
439     # include <stdlib.h>
440     # include <stddef.h>
441     #else
442     # if HAVE_STDLIB_H
443     # include <stdlib.h>
444     # endif
445     #endif
446     #if HAVE_STRING_H
447     # if !STDC_HEADERS && HAVE_MEMORY_H
448     # include <memory.h>
449     # endif
450     # include <string.h>
451     #endif
452 nigel 63 #if HAVE_STRINGS_H
453     # include <strings.h>
454     #endif
455 nigel 53 #if HAVE_INTTYPES_H
456     # include <inttypes.h>
457 nigel 63 #else
458     # if HAVE_STDINT_H
459     # include <stdint.h>
460     # endif
461 nigel 53 #endif
462     #if HAVE_UNISTD_H
463     # include <unistd.h>
464     #endif"
465    
466 nigel 79 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 CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL pcre_has_bits_type_traits pcre_has_type_traits MAYBE_CPP_TARGETS pcre_has_long_long pcre_has_ulong_long BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD EBCDIC HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT NEWLINE NO_RECURSE PCRE_MAJOR PCRE_MINOR PCRE_DATE PCRE_VERSION PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION PCRE_CPPLIB_VERSION POSIX_MALLOC_THRESHOLD UCP UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS'
467 nigel 63 ac_subst_files=''
468    
469 nigel 41 # Initialize some variables set by options.
470 nigel 53 ac_init_help=
471     ac_init_version=false
472 nigel 41 # The variables have the same names as the options, with
473     # dashes changed to underlines.
474 nigel 53 cache_file=/dev/null
475 nigel 41 exec_prefix=NONE
476     no_create=
477     no_recursion=
478     prefix=NONE
479     program_prefix=NONE
480     program_suffix=NONE
481     program_transform_name=s,x,x,
482     silent=
483     site=
484     srcdir=
485     verbose=
486     x_includes=NONE
487     x_libraries=NONE
488 nigel 53
489     # Installation directory options.
490     # These are left unexpanded so users can "make install exec_prefix=/foo"
491     # and all the variables that are supposed to be based on exec_prefix
492     # by default will actually change.
493     # Use braces instead of parens because sh, perl, etc. also accept them.
494 nigel 41 bindir='${exec_prefix}/bin'
495     sbindir='${exec_prefix}/sbin'
496     libexecdir='${exec_prefix}/libexec'
497     datadir='${prefix}/share'
498     sysconfdir='${prefix}/etc'
499     sharedstatedir='${prefix}/com'
500     localstatedir='${prefix}/var'
501     libdir='${exec_prefix}/lib'
502     includedir='${prefix}/include'
503     oldincludedir='/usr/include'
504     infodir='${prefix}/info'
505     mandir='${prefix}/man'
506    
507     ac_prev=
508     for ac_option
509     do
510     # If the previous option needs an argument, assign it.
511     if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515     fi
516    
517 nigel 53 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518 nigel 41
519     # Accept the important Cygnus configure options, so we can diagnose typos.
520    
521 nigel 53 case $ac_option in
522 nigel 41
523     -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 nigel 53 bindir=$ac_optarg ;;
527 nigel 41
528     -build | --build | --buil | --bui | --bu)
529 nigel 53 ac_prev=build_alias ;;
530 nigel 41 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 nigel 53 build_alias=$ac_optarg ;;
532 nigel 41
533     -cache-file | --cache-file | --cache-fil | --cache-fi \
534     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 nigel 53 cache_file=$ac_optarg ;;
539 nigel 41
540 nigel 53 --config-cache | -C)
541     cache_file=config.cache ;;
542    
543 nigel 41 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546     | --da=*)
547 nigel 53 datadir=$ac_optarg ;;
548 nigel 41
549     -disable-* | --disable-*)
550 nigel 53 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 nigel 41 # Reject names that are not valid shell variable names.
552 nigel 63 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 nigel 53 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554     { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557 nigel 41
558     -enable-* | --enable-*)
559 nigel 53 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 nigel 41 # Reject names that are not valid shell variable names.
561 nigel 63 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 nigel 53 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563     { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 nigel 41 *) ac_optarg=yes ;;
568     esac
569 nigel 53 eval "enable_$ac_feature='$ac_optarg'" ;;
570 nigel 41
571     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573     | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577     | --exec=* | --exe=* | --ex=*)
578 nigel 53 exec_prefix=$ac_optarg ;;
579 nigel 41
580     -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583    
584 nigel 53 -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590 nigel 41
591     -host | --host | --hos | --ho)
592 nigel 53 ac_prev=host_alias ;;
593 nigel 41 -host=* | --host=* | --hos=* | --ho=*)
594 nigel 53 host_alias=$ac_optarg ;;
595 nigel 41
596     -includedir | --includedir | --includedi | --included | --include \
597     | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600     | --includ=* | --inclu=* | --incl=* | --inc=*)
601 nigel 53 includedir=$ac_optarg ;;
602 nigel 41
603     -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 nigel 53 infodir=$ac_optarg ;;
607 nigel 41
608     -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610     -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 nigel 53 libdir=$ac_optarg ;;
612 nigel 41
613     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614     | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617     | --libexe=* | --libex=* | --libe=*)
618 nigel 53 libexecdir=$ac_optarg ;;
619 nigel 41
620     -localstatedir | --localstatedir | --localstatedi | --localstated \
621     | --localstate | --localstat | --localsta | --localst \
622     | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 nigel 53 localstatedir=$ac_optarg ;;
628 nigel 41
629     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 nigel 53 mandir=$ac_optarg ;;
633 nigel 41
634     -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637    
638     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 nigel 63 | --no-cr | --no-c | -n)
640 nigel 41 no_create=yes ;;
641    
642     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645    
646     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648     | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 nigel 53 oldincludedir=$ac_optarg ;;
654 nigel 41
655     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 nigel 53 prefix=$ac_optarg ;;
659 nigel 41
660     -program-prefix | --program-prefix | --program-prefi | --program-pref \
661     | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663     -program-prefix=* | --program-prefix=* | --program-prefi=* \
664     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 nigel 53 program_prefix=$ac_optarg ;;
666 nigel 41
667     -program-suffix | --program-suffix | --program-suffi | --program-suff \
668     | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670     -program-suffix=* | --program-suffix=* | --program-suffi=* \
671     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 nigel 53 program_suffix=$ac_optarg ;;
673 nigel 41
674     -program-transform-name | --program-transform-name \
675     | --program-transform-nam | --program-transform-na \
676     | --program-transform-n | --program-transform- \
677     | --program-transform | --program-transfor \
678     | --program-transfo | --program-transf \
679     | --program-trans | --program-tran \
680     | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682     -program-transform-name=* | --program-transform-name=* \
683     | --program-transform-nam=* | --program-transform-na=* \
684     | --program-transform-n=* | --program-transform-=* \
685     | --program-transform=* | --program-transfor=* \
686     | --program-transfo=* | --program-transf=* \
687     | --program-trans=* | --program-tran=* \
688     | --progr-tra=* | --program-tr=* | --program-t=*)
689 nigel 53 program_transform_name=$ac_optarg ;;
690 nigel 41
691     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692     | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694    
695     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698     | --sbi=* | --sb=*)
699 nigel 53 sbindir=$ac_optarg ;;
700 nigel 41
701     -sharedstatedir | --sharedstatedir | --sharedstatedi \
702     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703     | --sharedst | --shareds | --shared | --share | --shar \
704     | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709     | --sha=* | --sh=*)
710 nigel 53 sharedstatedir=$ac_optarg ;;
711 nigel 41
712     -site | --site | --sit)
713     ac_prev=site ;;
714     -site=* | --site=* | --sit=*)
715 nigel 53 site=$ac_optarg ;;
716 nigel 41
717     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 nigel 53 srcdir=$ac_optarg ;;
721 nigel 41
722     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723     | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 nigel 53 sysconfdir=$ac_optarg ;;
728 nigel 41
729     -target | --target | --targe | --targ | --tar | --ta | --t)
730 nigel 53 ac_prev=target_alias ;;
731 nigel 41 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 nigel 53 target_alias=$ac_optarg ;;
733 nigel 41
734     -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736    
737 nigel 53 -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739 nigel 41
740     -with-* | --with-*)
741 nigel 53 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 nigel 41 # Reject names that are not valid shell variable names.
743 nigel 63 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 nigel 53 { echo "$as_me: error: invalid package name: $ac_package" >&2
745     { (exit 1); exit 1; }; }
746 nigel 41 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 nigel 53 case $ac_option in
748     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 nigel 41 *) ac_optarg=yes ;;
750     esac
751 nigel 53 eval "with_$ac_package='$ac_optarg'" ;;
752 nigel 41
753     -without-* | --without-*)
754 nigel 53 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 nigel 41 # Reject names that are not valid shell variable names.
756 nigel 63 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 nigel 53 { echo "$as_me: error: invalid package name: $ac_package" >&2
758     { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761 nigel 41
762     --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765    
766     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767     | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 nigel 53 x_includes=$ac_optarg ;;
772 nigel 41
773     -x-libraries | --x-libraries | --x-librarie | --x-librari \
774     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 nigel 53 x_libraries=$ac_optarg ;;
779 nigel 41
780 nigel 53 -*) { echo "$as_me: error: unrecognized option: $ac_option
781     Try \`$0 --help' for more information." >&2
782     { (exit 1); exit 1; }; }
783 nigel 41 ;;
784    
785 nigel 53 *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788 nigel 63 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 nigel 53 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790     { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794    
795 nigel 41 *)
796 nigel 53 # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 nigel 63 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 nigel 53 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 nigel 41 ;;
802    
803     esac
804     done
805    
806     if test -n "$ac_prev"; then
807 nigel 53 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808     { echo "$as_me: error: missing argument to $ac_option" >&2
809     { (exit 1); exit 1; }; }
810 nigel 41 fi
811    
812 nigel 53 # Be sure to have absolute paths.
813 nigel 63 for ac_var in exec_prefix prefix
814     do
815     eval ac_val=$`echo $ac_var`
816     case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819     { (exit 1); exit 1; }; };;
820     esac
821     done
822    
823     # Be sure to have absolute paths.
824 nigel 53 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 nigel 75 localstatedir libdir includedir oldincludedir infodir mandir
826 nigel 41 do
827 nigel 53 eval ac_val=$`echo $ac_var`
828     case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830 nigel 63 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 nigel 53 { (exit 1); exit 1; }; };;
832 nigel 41 esac
833     done
834    
835 nigel 53 # There might be people who depend on the old broken behavior: `$host'
836     # used to hold the argument of --host etc.
837 nigel 63 # FIXME: To remove some day.
838 nigel 53 build=$build_alias
839     host=$host_alias
840     target=$target_alias
841 nigel 41
842 nigel 63 # FIXME: To remove some day.
843 nigel 53 if test "x$host_alias" != x; then
844     if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848     elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850     fi
851     fi
852 nigel 41
853 nigel 53 ac_tool_prefix=
854     test -n "$host_alias" && ac_tool_prefix=$host_alias-
855 nigel 41
856 nigel 53 test "$silent" = yes && exec 6>/dev/null
857    
858 nigel 63
859 nigel 41 # Find the source files, if location was not specified.
860     if test -z "$srcdir"; then
861     ac_srcdir_defaulted=yes
862     # Try the directory containing this script, then its parent.
863 nigel 63 ac_confdir=`(dirname "$0") 2>/dev/null ||
864     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 nigel 75 X"$0" : 'X\(//\)[^/]' \| \
866     X"$0" : 'X\(//\)$' \| \
867     X"$0" : 'X\(/\)' \| \
868     . : '\(.\)' 2>/dev/null ||
869 nigel 63 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872     /^X\(\/\/\)$/{ s//\1/; q; }
873     /^X\(\/\).*/{ s//\1/; q; }
874     s/.*/./; q'`
875 nigel 41 srcdir=$ac_confdir
876     if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878     fi
879     else
880     ac_srcdir_defaulted=no
881     fi
882     if test ! -r $srcdir/$ac_unique_file; then
883     if test "$ac_srcdir_defaulted" = yes; then
884 nigel 63 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 nigel 53 { (exit 1); exit 1; }; }
886 nigel 41 else
887 nigel 63 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 nigel 53 { (exit 1); exit 1; }; }
889 nigel 41 fi
890     fi
891 nigel 63 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893     { (exit 1); exit 1; }; }
894 nigel 53 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895     ac_env_build_alias_set=${build_alias+set}
896     ac_env_build_alias_value=$build_alias
897     ac_cv_env_build_alias_set=${build_alias+set}
898     ac_cv_env_build_alias_value=$build_alias
899     ac_env_host_alias_set=${host_alias+set}
900     ac_env_host_alias_value=$host_alias
901     ac_cv_env_host_alias_set=${host_alias+set}
902     ac_cv_env_host_alias_value=$host_alias
903     ac_env_target_alias_set=${target_alias+set}
904     ac_env_target_alias_value=$target_alias
905     ac_cv_env_target_alias_set=${target_alias+set}
906     ac_cv_env_target_alias_value=$target_alias
907     ac_env_CC_set=${CC+set}
908     ac_env_CC_value=$CC
909     ac_cv_env_CC_set=${CC+set}
910     ac_cv_env_CC_value=$CC
911     ac_env_CFLAGS_set=${CFLAGS+set}
912     ac_env_CFLAGS_value=$CFLAGS
913     ac_cv_env_CFLAGS_set=${CFLAGS+set}
914     ac_cv_env_CFLAGS_value=$CFLAGS
915     ac_env_LDFLAGS_set=${LDFLAGS+set}
916     ac_env_LDFLAGS_value=$LDFLAGS
917     ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918     ac_cv_env_LDFLAGS_value=$LDFLAGS
919     ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920     ac_env_CPPFLAGS_value=$CPPFLAGS
921     ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922     ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 nigel 75 ac_env_CXX_set=${CXX+set}
924     ac_env_CXX_value=$CXX
925     ac_cv_env_CXX_set=${CXX+set}
926     ac_cv_env_CXX_value=$CXX
927     ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928     ac_env_CXXFLAGS_value=$CXXFLAGS
929     ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930     ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931 nigel 77 ac_env_CPP_set=${CPP+set}
932     ac_env_CPP_value=$CPP
933     ac_cv_env_CPP_set=${CPP+set}
934     ac_cv_env_CPP_value=$CPP
935 nigel 75 ac_env_CXXCPP_set=${CXXCPP+set}
936     ac_env_CXXCPP_value=$CXXCPP
937     ac_cv_env_CXXCPP_set=${CXXCPP+set}
938     ac_cv_env_CXXCPP_value=$CXXCPP
939     ac_env_F77_set=${F77+set}
940     ac_env_F77_value=$F77
941     ac_cv_env_F77_set=${F77+set}
942     ac_cv_env_F77_value=$F77
943     ac_env_FFLAGS_set=${FFLAGS+set}
944     ac_env_FFLAGS_value=$FFLAGS
945     ac_cv_env_FFLAGS_set=${FFLAGS+set}
946     ac_cv_env_FFLAGS_value=$FFLAGS
947 nigel 41
948 nigel 53 #
949     # Report the --help message.
950     #
951     if test "$ac_init_help" = "long"; then
952     # Omit some internal or obsolete options to make the list less imposing.
953     # This message is too long to be a string in the A/UX 3.1 sh.
954 nigel 63 cat <<_ACEOF
955 nigel 53 \`configure' configures this package to adapt to many kinds of systems.
956    
957     Usage: $0 [OPTION]... [VAR=VALUE]...
958    
959     To assign environment variables (e.g., CC, CFLAGS...), specify them as
960     VAR=VALUE. See below for descriptions of some of the useful variables.
961    
962     Defaults for the options are specified in brackets.
963    
964     Configuration:
965     -h, --help display this help and exit
966     --help=short display options specific to this package
967     --help=recursive display the short help of all the included packages
968     -V, --version display version information and exit
969     -q, --quiet, --silent do not print \`checking...' messages
970     --cache-file=FILE cache test results in FILE [disabled]
971     -C, --config-cache alias for \`--cache-file=config.cache'
972     -n, --no-create do not create output files
973     --srcdir=DIR find the sources in DIR [configure dir or \`..']
974    
975 nigel 63 _ACEOF
976 nigel 53
977 nigel 63 cat <<_ACEOF
978 nigel 53 Installation directories:
979     --prefix=PREFIX install architecture-independent files in PREFIX
980 nigel 75 [$ac_default_prefix]
981 nigel 53 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 nigel 75 [PREFIX]
983 nigel 53
984     By default, \`make install' will install all the files in
985     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987     for instance \`--prefix=\$HOME'.
988    
989     For better control, use the options below.
990    
991     Fine tuning of the installation directories:
992     --bindir=DIR user executables [EPREFIX/bin]
993 nigel 77 --sbindir=DIR system admin executables [EPREFIX/sbin]
994     --libexecdir=DIR program executables [EPREFIX/libexec]
995     --datadir=DIR read-only architecture-independent data [PREFIX/share]
996     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 nigel 53 --libdir=DIR object code libraries [EPREFIX/lib]
1000     --includedir=DIR C header files [PREFIX/include]
1001 nigel 77 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002     --infodir=DIR info documentation [PREFIX/info]
1003 nigel 53 --mandir=DIR man documentation [PREFIX/man]
1004 nigel 63 _ACEOF
1005 nigel 53
1006 nigel 63 cat <<\_ACEOF
1007 nigel 53
1008 nigel 77 System types:
1009     --build=BUILD configure for building on BUILD [guessed]
1010     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1011 nigel 63 _ACEOF
1012 nigel 53 fi
1013    
1014     if test -n "$ac_init_help"; then
1015    
1016 nigel 63 cat <<\_ACEOF
1017 nigel 53
1018     Optional Features:
1019     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1020     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1021 nigel 77 --enable-shared[=PKGS]
1022 nigel 75 build shared libraries [default=yes]
1023 nigel 77 --enable-static[=PKGS]
1024 nigel 75 build static libraries [default=yes]
1025 nigel 77 --enable-fast-install[=PKGS]
1026 nigel 75 optimize for fast installation [default=yes]
1027 nigel 53 --disable-libtool-lock avoid locking (might break parallel builds)
1028 nigel 63 --enable-utf8 enable UTF8 support
1029 nigel 75 --enable-unicode-properties enable Unicode properties support
1030 nigel 63 --enable-newline-is-cr use CR as the newline character
1031     --enable-newline-is-lf use LF as the newline character
1032 nigel 73 --enable-ebcdic assume EBCDIC coding rather than ASCII
1033     --disable-stack-for-recursion disable use of stack recursion when matching
1034 nigel 53
1035     Optional Packages:
1036 nigel 77 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1037     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1038 nigel 75 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1039     --with-pic try to use only PIC/non-PIC objects [default=use
1040     both]
1041     --with-tags[=TAGS]
1042     include additional configurations [automatic]
1043 nigel 63 --with-posix-malloc-threshold=5 threshold for POSIX malloc usage
1044     --with-link-size=2 internal link size (2, 3, or 4 allowed)
1045     --with-match-limit=10000000 default limit on internal looping)
1046 nigel 53
1047     Some influential environment variables:
1048     CC C compiler command
1049     CFLAGS C compiler flags
1050     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1051     nonstandard directory <lib dir>
1052     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1053     headers in a nonstandard directory <include dir>
1054 nigel 75 CXX C++ compiler command
1055     CXXFLAGS C++ compiler flags
1056 nigel 77 CPP C preprocessor
1057 nigel 75 CXXCPP C++ preprocessor
1058     F77 Fortran 77 compiler command
1059     FFLAGS Fortran 77 compiler flags
1060 nigel 53
1061     Use these variables to override the choices made by `configure' or to help
1062     it to find libraries and programs with nonstandard names/locations.
1063    
1064 nigel 63 _ACEOF
1065 nigel 53 fi
1066    
1067     if test "$ac_init_help" = "recursive"; then
1068     # If there are subdirs, report their specific --help.
1069     ac_popdir=`pwd`
1070 nigel 63 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1071     test -d $ac_dir || continue
1072     ac_builddir=.
1073 nigel 53
1074 nigel 63 if test "$ac_dir" != .; then
1075     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1076     # A "../" for each directory in $ac_dir_suffix.
1077     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078     else
1079     ac_dir_suffix= ac_top_builddir=
1080     fi
1081 nigel 53
1082 nigel 63 case $srcdir in
1083     .) # No --srcdir option. We are building in place.
1084     ac_srcdir=.
1085     if test -z "$ac_top_builddir"; then
1086     ac_top_srcdir=.
1087     else
1088     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089     fi ;;
1090     [\\/]* | ?:[\\/]* ) # Absolute path.
1091     ac_srcdir=$srcdir$ac_dir_suffix;
1092     ac_top_srcdir=$srcdir ;;
1093     *) # Relative path.
1094     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1095     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1096     esac
1097    
1098 nigel 75 # Do not use `cd foo && pwd` to compute absolute paths, because
1099     # the directories may not exist.
1100     case `pwd` in
1101     .) ac_abs_builddir="$ac_dir";;
1102     *)
1103     case "$ac_dir" in
1104     .) ac_abs_builddir=`pwd`;;
1105     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1106     *) ac_abs_builddir=`pwd`/"$ac_dir";;
1107     esac;;
1108     esac
1109     case $ac_abs_builddir in
1110     .) ac_abs_top_builddir=${ac_top_builddir}.;;
1111     *)
1112     case ${ac_top_builddir}. in
1113     .) ac_abs_top_builddir=$ac_abs_builddir;;
1114     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1115     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1116     esac;;
1117     esac
1118     case $ac_abs_builddir in
1119     .) ac_abs_srcdir=$ac_srcdir;;
1120     *)
1121     case $ac_srcdir in
1122     .) ac_abs_srcdir=$ac_abs_builddir;;
1123     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1124     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1125     esac;;
1126     esac
1127     case $ac_abs_builddir in
1128     .) ac_abs_top_srcdir=$ac_top_srcdir;;
1129     *)
1130     case $ac_top_srcdir in
1131     .) ac_abs_top_srcdir=$ac_abs_builddir;;
1132     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1133     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1134     esac;;
1135     esac
1136    
1137 nigel 63 cd $ac_dir
1138 nigel 53 # Check for guested configure; otherwise get Cygnus style configure.
1139 nigel 63 if test -f $ac_srcdir/configure.gnu; then
1140 nigel 53 echo
1141 nigel 63 $SHELL $ac_srcdir/configure.gnu --help=recursive
1142     elif test -f $ac_srcdir/configure; then
1143 nigel 53 echo
1144 nigel 63 $SHELL $ac_srcdir/configure --help=recursive
1145     elif test -f $ac_srcdir/configure.ac ||
1146 nigel 75 test -f $ac_srcdir/configure.in; then
1147 nigel 53 echo
1148     $ac_configure --help
1149     else
1150 nigel 63 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1151 nigel 53 fi
1152     cd $ac_popdir
1153     done
1154     fi
1155    
1156     test -n "$ac_init_help" && exit 0
1157     if $ac_init_version; then
1158 nigel 63 cat <<\_ACEOF
1159 nigel 53
1160 nigel 75 Copyright (C) 2003 Free Software Foundation, Inc.
1161 nigel 53 This configure script is free software; the Free Software Foundation
1162     gives unlimited permission to copy, distribute and modify it.
1163 nigel 63 _ACEOF
1164 nigel 53 exit 0
1165     fi
1166     exec 5>config.log
1167 nigel 63 cat >&5 <<_ACEOF
1168 nigel 53 This file contains any messages produced by compilers while
1169     running configure, to aid debugging if configure makes a mistake.
1170    
1171     It was created by $as_me, which was
1172 nigel 75 generated by GNU Autoconf 2.59. Invocation command line was
1173 nigel 53
1174     $ $0 $@
1175    
1176 nigel 63 _ACEOF
1177 nigel 53 {
1178     cat <<_ASUNAME
1179 nigel 63 ## --------- ##
1180     ## Platform. ##
1181     ## --------- ##
1182 nigel 53
1183     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1184     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1185     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1186     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1187     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188    
1189     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1190     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1191    
1192     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1193     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1194     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1195     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1196     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1197     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1198     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1199    
1200 nigel 63 _ASUNAME
1201 nigel 53
1202 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1203     for as_dir in $PATH
1204     do
1205     IFS=$as_save_IFS
1206     test -z "$as_dir" && as_dir=.
1207     echo "PATH: $as_dir"
1208     done
1209    
1210 nigel 53 } >&5
1211    
1212 nigel 63 cat >&5 <<_ACEOF
1213 nigel 53
1214    
1215 nigel 63 ## ----------- ##
1216     ## Core tests. ##
1217     ## ----------- ##
1218    
1219     _ACEOF
1220    
1221    
1222 nigel 53 # Keep a trace of the command line.
1223     # Strip out --no-create and --no-recursion so they do not pile up.
1224 nigel 63 # Strip out --silent because we don't want to record it for future runs.
1225 nigel 53 # Also quote any args containing shell meta-characters.
1226 nigel 63 # Make two passes to allow for proper duplicate-argument suppression.
1227 nigel 53 ac_configure_args=
1228 nigel 63 ac_configure_args0=
1229     ac_configure_args1=
1230 nigel 53 ac_sep=
1231 nigel 63 ac_must_keep_next=false
1232     for ac_pass in 1 2
1233 nigel 53 do
1234 nigel 63 for ac_arg
1235     do
1236     case $ac_arg in
1237     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1238     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239     | -silent | --silent | --silen | --sile | --sil)
1240     continue ;;
1241     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1242     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1243     esac
1244     case $ac_pass in
1245     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246     2)
1247     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1248     if test $ac_must_keep_next = true; then
1249 nigel 75 ac_must_keep_next=false # Got value, back to normal.
1250 nigel 63 else
1251 nigel 75 case $ac_arg in
1252     *=* | --config-cache | -C | -disable-* | --disable-* \
1253     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1254     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1255     | -with-* | --with-* | -without-* | --without-* | --x)
1256     case "$ac_configure_args0 " in
1257     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1258     esac
1259     ;;
1260     -* ) ac_must_keep_next=true ;;
1261     esac
1262 nigel 63 fi
1263     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1264     # Get rid of the leading space.
1265     ac_sep=" "
1266     ;;
1267     esac
1268     done
1269 nigel 53 done
1270 nigel 63 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1271     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272 nigel 53
1273     # When interrupted or exit'd, cleanup temporary files, and complete
1274     # config.log. We remove comments because anyway the quotes in there
1275     # would cause problems or look ugly.
1276 nigel 63 # WARNING: Be sure not to use single quotes in there, as some shells,
1277     # such as our DU 5.0 friend, will then `close' the trap.
1278 nigel 53 trap 'exit_status=$?
1279     # Save into config.log some information that might help in debugging.
1280 nigel 63 {
1281     echo
1282    
1283     cat <<\_ASBOX
1284     ## ---------------- ##
1285     ## Cache variables. ##
1286     ## ---------------- ##
1287     _ASBOX
1288     echo
1289     # The following way of writing the cache mishandles newlines in values,
1290 nigel 53 {
1291     (set) 2>&1 |
1292     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1293     *ac_space=\ *)
1294     sed -n \
1295 nigel 75 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1296     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1297 nigel 53 ;;
1298     *)
1299     sed -n \
1300 nigel 75 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1301 nigel 53 ;;
1302     esac;
1303 nigel 63 }
1304     echo
1305    
1306     cat <<\_ASBOX
1307     ## ----------------- ##
1308     ## Output variables. ##
1309     ## ----------------- ##
1310     _ASBOX
1311     echo
1312     for ac_var in $ac_subst_vars
1313     do
1314     eval ac_val=$`echo $ac_var`
1315     echo "$ac_var='"'"'$ac_val'"'"'"
1316     done | sort
1317     echo
1318    
1319     if test -n "$ac_subst_files"; then
1320     cat <<\_ASBOX
1321     ## ------------- ##
1322     ## Output files. ##
1323     ## ------------- ##
1324     _ASBOX
1325     echo
1326     for ac_var in $ac_subst_files
1327     do
1328     eval ac_val=$`echo $ac_var`
1329 nigel 75 echo "$ac_var='"'"'$ac_val'"'"'"
1330 nigel 63 done | sort
1331     echo
1332     fi
1333    
1334     if test -s confdefs.h; then
1335     cat <<\_ASBOX
1336     ## ----------- ##
1337     ## confdefs.h. ##
1338     ## ----------- ##
1339     _ASBOX
1340     echo
1341     sed "/^$/d" confdefs.h | sort
1342     echo
1343     fi
1344     test "$ac_signal" != 0 &&
1345     echo "$as_me: caught signal $ac_signal"
1346     echo "$as_me: exit $exit_status"
1347     } >&5
1348 nigel 75 rm -f core *.core &&
1349 nigel 63 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1350 nigel 53 exit $exit_status
1351     ' 0
1352     for ac_signal in 1 2 13 15; do
1353 nigel 63 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1354 nigel 53 done
1355     ac_signal=0
1356    
1357     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1358     rm -rf conftest* confdefs.h
1359     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1360     echo >confdefs.h
1361    
1362 nigel 63 # Predefined preprocessor variables.
1363    
1364     cat >>confdefs.h <<_ACEOF
1365     #define PACKAGE_NAME "$PACKAGE_NAME"
1366     _ACEOF
1367    
1368    
1369     cat >>confdefs.h <<_ACEOF
1370     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1371     _ACEOF
1372    
1373    
1374     cat >>confdefs.h <<_ACEOF
1375     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1376     _ACEOF
1377    
1378    
1379     cat >>confdefs.h <<_ACEOF
1380     #define PACKAGE_STRING "$PACKAGE_STRING"
1381     _ACEOF
1382    
1383    
1384     cat >>confdefs.h <<_ACEOF
1385     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1386     _ACEOF
1387    
1388    
1389 nigel 53 # Let the site file select an alternate cache file if it wants to.
1390 nigel 41 # Prefer explicitly selected file to automatically selected ones.
1391     if test -z "$CONFIG_SITE"; then
1392     if test "x$prefix" != xNONE; then
1393     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1394     else
1395     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1396     fi
1397     fi
1398     for ac_site_file in $CONFIG_SITE; do
1399     if test -r "$ac_site_file"; then
1400 nigel 63 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1401 nigel 53 echo "$as_me: loading site script $ac_site_file" >&6;}
1402 nigel 63 sed 's/^/| /' "$ac_site_file" >&5
1403 nigel 41 . "$ac_site_file"
1404     fi
1405     done
1406    
1407     if test -r "$cache_file"; then
1408 nigel 53 # Some versions of bash will fail to source /dev/null (special
1409     # files actually), so we avoid doing that.
1410     if test -f "$cache_file"; then
1411 nigel 63 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1412 nigel 53 echo "$as_me: loading cache $cache_file" >&6;}
1413     case $cache_file in
1414     [\\/]* | ?:[\\/]* ) . $cache_file;;
1415     *) . ./$cache_file;;
1416     esac
1417     fi
1418 nigel 41 else
1419 nigel 63 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1420 nigel 53 echo "$as_me: creating cache $cache_file" >&6;}
1421     >$cache_file
1422 nigel 41 fi
1423    
1424 nigel 53 # Check that the precious variables saved in the cache have kept the same
1425     # value.
1426 nigel 63 ac_cache_corrupted=false
1427 nigel 53 for ac_var in `(set) 2>&1 |
1428 nigel 75 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1429 nigel 53 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1430     eval ac_new_set=\$ac_env_${ac_var}_set
1431     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1432     eval ac_new_val="\$ac_env_${ac_var}_value"
1433     case $ac_old_set,$ac_new_set in
1434     set,)
1435 nigel 63 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1436     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1437     ac_cache_corrupted=: ;;
1438 nigel 53 ,set)
1439 nigel 63 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1440     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1441     ac_cache_corrupted=: ;;
1442 nigel 53 ,);;
1443     *)
1444     if test "x$ac_old_val" != "x$ac_new_val"; then
1445 nigel 75 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1446 nigel 63 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1447 nigel 75 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1448 nigel 63 echo "$as_me: former value: $ac_old_val" >&2;}
1449 nigel 75 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1450 nigel 63 echo "$as_me: current value: $ac_new_val" >&2;}
1451 nigel 75 ac_cache_corrupted=:
1452 nigel 53 fi;;
1453     esac
1454 nigel 63 # Pass precious variables to config.status.
1455     if test "$ac_new_set" = set; then
1456     case $ac_new_val in
1457     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1458     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1459     *) ac_arg=$ac_var=$ac_new_val ;;
1460     esac
1461     case " $ac_configure_args " in
1462     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1463     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1464     esac
1465     fi
1466 nigel 53 done
1467 nigel 63 if $ac_cache_corrupted; then
1468     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1469     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1470     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1471     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1472     { (exit 1); exit 1; }; }
1473 nigel 53 fi
1474    
1475 nigel 41 ac_ext=c
1476     ac_cpp='$CPP $CPPFLAGS'
1477 nigel 53 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1478     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1479     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1480 nigel 41
1481    
1482    
1483 nigel 63
1484    
1485    
1486    
1487    
1488    
1489    
1490    
1491    
1492    
1493    
1494    
1495    
1496    
1497    
1498    
1499    
1500 nigel 67
1501    
1502    
1503 nigel 63 ac_config_headers="$ac_config_headers config.h:config.in"
1504    
1505    
1506    
1507 nigel 77 PCRE_MAJOR=6
1508 nigel 81 PCRE_MINOR=2
1509     PCRE_DATE=01-Aug-2005
1510 nigel 43 PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
1511    
1512 nigel 63
1513     POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=10
1514    
1515    
1516 nigel 47 PCRE_LIB_VERSION=0:1:0
1517 nigel 43 PCRE_POSIXLIB_VERSION=0:0:0
1518 nigel 77 PCRE_CPPLIB_VERSION=0:0:0
1519 nigel 43
1520 nigel 63
1521 nigel 53 ac_ext=c
1522     ac_cpp='$CPP $CPPFLAGS'
1523     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526     if test -n "$ac_tool_prefix"; then
1527     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1528     set dummy ${ac_tool_prefix}gcc; ac_word=$2
1529 nigel 63 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 nigel 53 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531     if test "${ac_cv_prog_CC+set}" = set; then
1532     echo $ECHO_N "(cached) $ECHO_C" >&6
1533     else
1534     if test -n "$CC"; then
1535     ac_cv_prog_CC="$CC" # Let the user override the test.
1536     else
1537 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538     for as_dir in $PATH
1539     do
1540     IFS=$as_save_IFS
1541     test -z "$as_dir" && as_dir=.
1542     for ac_exec_ext in '' $ac_executable_extensions; do
1543     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546     break 2
1547     fi
1548 nigel 53 done
1549 nigel 63 done
1550 nigel 43
1551 nigel 53 fi
1552     fi
1553     CC=$ac_cv_prog_CC
1554     if test -n "$CC"; then
1555 nigel 63 echo "$as_me:$LINENO: result: $CC" >&5
1556 nigel 53 echo "${ECHO_T}$CC" >&6
1557     else
1558 nigel 63 echo "$as_me:$LINENO: result: no" >&5
1559 nigel 53 echo "${ECHO_T}no" >&6
1560     fi
1561    
1562     fi
1563     if test -z "$ac_cv_prog_CC"; then
1564     ac_ct_CC=$CC
1565     # Extract the first word of "gcc", so it can be a program name with args.
1566 nigel 41 set dummy gcc; ac_word=$2
1567 nigel 63 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 nigel 53 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570     echo $ECHO_N "(cached) $ECHO_C" >&6
1571 nigel 41 else
1572 nigel 53 if test -n "$ac_ct_CC"; then
1573     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574     else
1575 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576     for as_dir in $PATH
1577     do
1578     IFS=$as_save_IFS
1579     test -z "$as_dir" && as_dir=.
1580     for ac_exec_ext in '' $ac_executable_extensions; do
1581     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582     ac_cv_prog_ac_ct_CC="gcc"
1583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584     break 2
1585     fi
1586 nigel 53 done
1587 nigel 63 done
1588 nigel 53
1589     fi
1590     fi
1591     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592     if test -n "$ac_ct_CC"; then
1593 nigel 63 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594 nigel 53 echo "${ECHO_T}$ac_ct_CC" >&6
1595     else
1596 nigel 63 echo "$as_me:$LINENO: result: no" >&5
1597 nigel 53 echo "${ECHO_T}no" >&6
1598     fi
1599    
1600     CC=$ac_ct_CC
1601     else
1602     CC="$ac_cv_prog_CC"
1603     fi
1604    
1605     if test -z "$CC"; then
1606     if test -n "$ac_tool_prefix"; then
1607     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1608     set dummy ${ac_tool_prefix}cc; ac_word=$2
1609 nigel 63 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 nigel 53 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611     if test "${ac_cv_prog_CC+set}" = set; then
1612     echo $ECHO_N "(cached) $ECHO_C" >&6
1613     else
1614 nigel 41 if test -n "$CC"; then
1615     ac_cv_prog_CC="$CC" # Let the user override the test.
1616     else
1617 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618     for as_dir in $PATH
1619     do
1620     IFS=$as_save_IFS
1621     test -z "$as_dir" && as_dir=.
1622     for ac_exec_ext in '' $ac_executable_extensions; do
1623     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624     ac_cv_prog_CC="${ac_tool_prefix}cc"
1625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626     break 2
1627     fi
1628 nigel 53 done
1629 nigel 63 done
1630 nigel 53
1631 nigel 41 fi
1632     fi
1633 nigel 53 CC=$ac_cv_prog_CC
1634 nigel 41 if test -n "$CC"; then
1635 nigel 63 echo "$as_me:$LINENO: result: $CC" >&5
1636 nigel 53 echo "${ECHO_T}$CC" >&6
1637 nigel 41 else
1638 nigel 63 echo "$as_me:$LINENO: result: no" >&5
1639 nigel 53 echo "${ECHO_T}no" >&6
1640 nigel 41 fi
1641    
1642 nigel 53 fi
1643     if test -z "$ac_cv_prog_CC"; then
1644     ac_ct_CC=$CC
1645     # Extract the first word of "cc", so it can be a program name with args.
1646     set dummy cc; ac_word=$2
1647 nigel 63 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 nigel 53 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650     echo $ECHO_N "(cached) $ECHO_C" >&6
1651     else
1652     if test -n "$ac_ct_CC"; then
1653     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654     else
1655 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656     for as_dir in $PATH
1657     do
1658     IFS=$as_save_IFS
1659     test -z "$as_dir" && as_dir=.
1660     for ac_exec_ext in '' $ac_executable_extensions; do
1661     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662     ac_cv_prog_ac_ct_CC="cc"
1663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664     break 2
1665     fi
1666 nigel 53 done
1667 nigel 63 done
1668 nigel 53
1669     fi
1670     fi
1671     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672     if test -n "$ac_ct_CC"; then
1673 nigel 63 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674 nigel 53 echo "${ECHO_T}$ac_ct_CC" >&6
1675     else
1676 nigel 63 echo "$as_me:$LINENO: result: no" >&5
1677 nigel 53 echo "${ECHO_T}no" >&6
1678     fi
1679    
1680     CC=$ac_ct_CC
1681     else
1682     CC="$ac_cv_prog_CC"
1683     fi
1684    
1685     fi
1686 nigel 41 if test -z "$CC"; then
1687     # Extract the first word of "cc", so it can be a program name with args.
1688     set dummy cc; ac_word=$2
1689 nigel 63 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 nigel 53 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691     if test "${ac_cv_prog_CC+set}" = set; then
1692     echo $ECHO_N "(cached) $ECHO_C" >&6
1693 nigel 41 else
1694     if test -n "$CC"; then
1695     ac_cv_prog_CC="$CC" # Let the user override the test.
1696     else
1697     ac_prog_rejected=no
1698 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699     for as_dir in $PATH
1700     do
1701     IFS=$as_save_IFS
1702     test -z "$as_dir" && as_dir=.
1703     for ac_exec_ext in '' $ac_executable_extensions; do
1704     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1706     ac_prog_rejected=yes
1707     continue
1708     fi
1709     ac_cv_prog_CC="cc"
1710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711     break 2
1712     fi
1713 nigel 53 done
1714 nigel 63 done
1715 nigel 53
1716 nigel 41 if test $ac_prog_rejected = yes; then
1717     # We found a bogon in the path, so make sure we never use it.
1718     set dummy $ac_cv_prog_CC
1719     shift
1720 nigel 53 if test $# != 0; then
1721 nigel 41 # We chose a different compiler from the bogus one.
1722     # However, it has the same basename, so the bogon will be chosen
1723     # first if we set CC to just the basename; use the full file name.
1724     shift
1725 nigel 63 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1726 nigel 41 fi
1727     fi
1728     fi
1729     fi
1730 nigel 53 CC=$ac_cv_prog_CC
1731 nigel 41 if test -n "$CC"; then
1732 nigel 63 echo "$as_me:$LINENO: result: $CC" >&5
1733 nigel 53 echo "${ECHO_T}$CC" >&6
1734 nigel 41 else
1735 nigel 63 echo "$as_me:$LINENO: result: no" >&5
1736 nigel 53 echo "${ECHO_T}no" >&6
1737 nigel 41 fi
1738    
1739 nigel 53 fi
1740     if test -z "$CC"; then
1741     if test -n "$ac_tool_prefix"; then
1742     for ac_prog in cl
1743     do
1744     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1745     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1746 nigel 63 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 nigel 53 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748     if test "${ac_cv_prog_CC+set}" = set; then
1749     echo $ECHO_N "(cached) $ECHO_C" >&6
1750 nigel 41 else
1751     if test -n "$CC"; then
1752     ac_cv_prog_CC="$CC" # Let the user override the test.
1753     else
1754 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755     for as_dir in $PATH
1756     do
1757     IFS=$as_save_IFS
1758     test -z "$as_dir" && as_dir=.
1759     for ac_exec_ext in '' $ac_executable_extensions; do
1760     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763     break 2
1764     fi
1765 nigel 53 done
1766 nigel 63 done
1767 nigel 53
1768 nigel 41 fi
1769     fi
1770 nigel 53 CC=$ac_cv_prog_CC
1771 nigel 41 if test -n "$CC"; then
1772 nigel 63 echo "$as_me:$LINENO: result: $CC" >&5
1773 nigel 53 echo "${ECHO_T}$CC" >&6
1774 nigel 41 else
1775 nigel 63 echo "$as_me:$LINENO: result: no" >&5
1776 nigel 53 echo "${ECHO_T}no" >&6
1777 nigel 41 fi
1778 nigel 53
1779     test -n "$CC" && break
1780     done
1781 nigel 41 fi
1782 nigel 53 if test -z "$CC"; then
1783     ac_ct_CC=$CC
1784     for ac_prog in cl
1785     do
1786     # Extract the first word of "$ac_prog", so it can be a program name with args.
1787     set dummy $ac_prog; ac_word=$2
1788 nigel 63 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 nigel 53 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791     echo $ECHO_N "(cached) $ECHO_C" >&6
1792     else
1793     if test -n "$ac_ct_CC"; then
1794     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795     else
1796 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797     for as_dir in $PATH
1798     do
1799     IFS=$as_save_IFS
1800     test -z "$as_dir" && as_dir=.
1801     for ac_exec_ext in '' $ac_executable_extensions; do
1802     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803     ac_cv_prog_ac_ct_CC="$ac_prog"
1804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805     break 2
1806     fi
1807 nigel 53 done
1808 nigel 63 done
1809 nigel 41
1810 nigel 53 fi
1811     fi
1812     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813     if test -n "$ac_ct_CC"; then
1814 nigel 63 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815 nigel 53 echo "${ECHO_T}$ac_ct_CC" >&6
1816     else
1817 nigel 63 echo "$as_me:$LINENO: result: no" >&5
1818 nigel 53 echo "${ECHO_T}no" >&6
1819     fi
1820 nigel 41
1821 nigel 53 test -n "$ac_ct_CC" && break
1822     done
1823 nigel 41
1824 nigel 53 CC=$ac_ct_CC
1825     fi
1826 nigel 41
1827 nigel 53 fi
1828    
1829 nigel 63
1830     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1831     See \`config.log' for more details." >&5
1832     echo "$as_me: error: no acceptable C compiler found in \$PATH
1833     See \`config.log' for more details." >&2;}
1834 nigel 53 { (exit 1); exit 1; }; }
1835    
1836 nigel 63 # Provide some information about the compiler.
1837     echo "$as_me:$LINENO:" \
1838     "checking for C compiler version" >&5
1839     ac_compiler=`set X $ac_compile; echo $2`
1840     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1841     (eval $ac_compiler --version </dev/null >&5) 2>&5
1842     ac_status=$?
1843     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844     (exit $ac_status); }
1845     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1846     (eval $ac_compiler -v </dev/null >&5) 2>&5
1847     ac_status=$?
1848     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849     (exit $ac_status); }
1850     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1851     (eval $ac_compiler -V </dev/null >&5) 2>&5
1852     ac_status=$?
1853     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854     (exit $ac_status); }
1855    
1856 nigel 53 cat >conftest.$ac_ext <<_ACEOF
1857 nigel 63 /* confdefs.h. */
1858     _ACEOF
1859     cat confdefs.h >>conftest.$ac_ext
1860     cat >>conftest.$ac_ext <<_ACEOF
1861     /* end confdefs.h. */
1862 nigel 41
1863 nigel 53 int
1864     main ()
1865     {
1866    
1867     ;
1868     return 0;
1869     }
1870     _ACEOF
1871     ac_clean_files_save=$ac_clean_files
1872 nigel 63 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1873 nigel 53 # Try to create an executable without -o first, disregard a.out.
1874 nigel 63 # It will help us diagnose broken compilers, and finding out an intuition
1875 nigel 53 # of exeext.
1876 nigel 75 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1877     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1878 nigel 53 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1879 nigel 63 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1880 nigel 53 (eval $ac_link_default) 2>&5
1881     ac_status=$?
1882 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 nigel 53 (exit $ac_status); }; then
1884 nigel 63 # Find the output, starting from the most likely. This scheme is
1885     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1886     # resort.
1887    
1888     # Be careful to initialize this variable, since it used to be cached.
1889     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1890     ac_cv_exeext=
1891     # b.out is created by i960 compilers.
1892     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1893     do
1894     test -f "$ac_file" || continue
1895 nigel 53 case $ac_file in
1896 nigel 63 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1897 nigel 75 ;;
1898 nigel 63 conftest.$ac_ext )
1899 nigel 75 # This is the source file.
1900     ;;
1901 nigel 63 [ab].out )
1902 nigel 75 # We found the default executable, but exeext='' is most
1903     # certainly right.
1904     break;;
1905 nigel 63 *.* )
1906 nigel 75 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907     # FIXME: I believe we export ac_cv_exeext for Libtool,
1908     # but it would be cool to find out if it's true. Does anybody
1909     # maintain Libtool? --akim.
1910     export ac_cv_exeext
1911     break;;
1912 nigel 63 * )
1913 nigel 75 break;;
1914 nigel 53 esac
1915     done
1916     else
1917     echo "$as_me: failed program was:" >&5
1918 nigel 63 sed 's/^/| /' conftest.$ac_ext >&5
1919    
1920     { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1921     See \`config.log' for more details." >&5
1922     echo "$as_me: error: C compiler cannot create executables
1923     See \`config.log' for more details." >&2;}
1924 nigel 53 { (exit 77); exit 77; }; }
1925     fi
1926    
1927     ac_exeext=$ac_cv_exeext
1928 nigel 63 echo "$as_me:$LINENO: result: $ac_file" >&5
1929 nigel 53 echo "${ECHO_T}$ac_file" >&6
1930    
1931     # Check the compiler produces executables we can run. If not, either
1932     # the compiler is broken, or we cross compile.
1933 nigel 63 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1934 nigel 53 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1935     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1936     # If not cross compiling, check that we can run a simple program.
1937     if test "$cross_compiling" != yes; then
1938     if { ac_try='./$ac_file'
1939 nigel 63 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 nigel 53 (eval $ac_try) 2>&5
1941     ac_status=$?
1942 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 nigel 53 (exit $ac_status); }; }; then
1944     cross_compiling=no
1945 nigel 41 else
1946 nigel 53 if test "$cross_compiling" = maybe; then
1947     cross_compiling=yes
1948     else
1949 nigel 63 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1950     If you meant to cross compile, use \`--host'.
1951     See \`config.log' for more details." >&5
1952 nigel 53 echo "$as_me: error: cannot run C compiled programs.
1953 nigel 63 If you meant to cross compile, use \`--host'.
1954     See \`config.log' for more details." >&2;}
1955 nigel 53 { (exit 1); exit 1; }; }
1956     fi
1957 nigel 41 fi
1958     fi
1959 nigel 63 echo "$as_me:$LINENO: result: yes" >&5
1960 nigel 53 echo "${ECHO_T}yes" >&6
1961 nigel 41
1962 nigel 63 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1963 nigel 53 ac_clean_files=$ac_clean_files_save
1964     # Check the compiler produces executables we can run. If not, either
1965     # the compiler is broken, or we cross compile.
1966 nigel 63 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1967 nigel 53 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1968 nigel 63 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1969 nigel 53 echo "${ECHO_T}$cross_compiling" >&6
1970    
1971 nigel 63 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1972     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1973     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1974 nigel 53 (eval $ac_link) 2>&5
1975     ac_status=$?
1976 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 nigel 53 (exit $ac_status); }; then
1978     # If both `conftest.exe' and `conftest' are `present' (well, observable)
1979     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1980     # work properly (i.e., refer to `conftest.exe'), while it won't with
1981     # `rm'.
1982 nigel 63 for ac_file in conftest.exe conftest conftest.*; do
1983     test -f "$ac_file" || continue
1984 nigel 53 case $ac_file in
1985 nigel 63 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1986 nigel 53 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1987 nigel 75 export ac_cv_exeext
1988     break;;
1989 nigel 53 * ) break;;
1990     esac
1991     done
1992     else
1993 nigel 63 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1994     See \`config.log' for more details." >&5
1995     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1996     See \`config.log' for more details." >&2;}
1997 nigel 53 { (exit 1); exit 1; }; }
1998 nigel 41 fi
1999    
2000 nigel 53 rm -f conftest$ac_cv_exeext
2001 nigel 63 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2002 nigel 53 echo "${ECHO_T}$ac_cv_exeext" >&6
2003    
2004     rm -f conftest.$ac_ext
2005     EXEEXT=$ac_cv_exeext
2006     ac_exeext=$EXEEXT
2007 nigel 63 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2008     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2009 nigel 53 if test "${ac_cv_objext+set}" = set; then
2010     echo $ECHO_N "(cached) $ECHO_C" >&6
2011 nigel 41 else
2012 nigel 53 cat >conftest.$ac_ext <<_ACEOF
2013 nigel 63 /* confdefs.h. */
2014     _ACEOF
2015     cat confdefs.h >>conftest.$ac_ext
2016     cat >>conftest.$ac_ext <<_ACEOF
2017     /* end confdefs.h. */
2018 nigel 53
2019     int
2020     main ()
2021     {
2022    
2023     ;
2024     return 0;
2025     }
2026     _ACEOF
2027     rm -f conftest.o conftest.obj
2028 nigel 63 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 nigel 53 (eval $ac_compile) 2>&5
2030     ac_status=$?
2031 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 nigel 53 (exit $ac_status); }; then
2033     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2034     case $ac_file in
2035 nigel 63 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036 nigel 53 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2037     break;;
2038     esac
2039     done
2040 nigel 41 else
2041 nigel 53 echo "$as_me: failed program was:" >&5
2042 nigel 63 sed 's/^/| /' conftest.$ac_ext >&5
2043    
2044     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2045     See \`config.log' for more details." >&5
2046     echo "$as_me: error: cannot compute suffix of object files: cannot compile
2047     See \`config.log' for more details." >&2;}
2048 nigel 53 { (exit 1); exit 1; }; }
2049 nigel 41 fi
2050 nigel 53
2051     rm -f conftest.$ac_cv_objext conftest.$ac_ext
2052 nigel 41 fi
2053 nigel 63 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2054 nigel 53 echo "${ECHO_T}$ac_cv_objext" >&6
2055     OBJEXT=$ac_cv_objext
2056     ac_objext=$OBJEXT
2057 nigel 63 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2058 nigel 53 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2059     if test "${ac_cv_c_compiler_gnu+set}" = set; then
2060     echo $ECHO_N "(cached) $ECHO_C" >&6
2061     else
2062     cat >conftest.$ac_ext <<_ACEOF
2063 nigel 63 /* confdefs.h. */
2064     _ACEOF
2065     cat confdefs.h >>conftest.$ac_ext
2066     cat >>conftest.$ac_ext <<_ACEOF
2067     /* end confdefs.h. */
2068 nigel 41
2069 nigel 53 int
2070     main ()
2071     {
2072     #ifndef __GNUC__
2073     choke me
2074     #endif
2075 nigel 41
2076 nigel 53 ;
2077     return 0;
2078     }
2079     _ACEOF
2080     rm -f conftest.$ac_objext
2081 nigel 63 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 nigel 75 (eval $ac_compile) 2>conftest.er1
2083 nigel 53 ac_status=$?
2084 nigel 75 grep -v '^ *+' conftest.er1 >conftest.err
2085     rm -f conftest.er1
2086     cat conftest.err >&5
2087 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 nigel 53 (exit $ac_status); } &&
2089 nigel 75 { ac_try='test -z "$ac_c_werror_flag"
2090     || test ! -s conftest.err'
2091 nigel 63 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 nigel 53 (eval $ac_try) 2>&5
2093     ac_status=$?
2094 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 nigel 75 (exit $ac_status); }; } &&
2096     { ac_try='test -s conftest.$ac_objext'
2097     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098     (eval $ac_try) 2>&5
2099     ac_status=$?
2100     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 nigel 53 (exit $ac_status); }; }; then
2102     ac_compiler_gnu=yes
2103 nigel 41 else
2104 nigel 53 echo "$as_me: failed program was:" >&5
2105 nigel 63 sed 's/^/| /' conftest.$ac_ext >&5
2106    
2107 nigel 53 ac_compiler_gnu=no
2108 nigel 41 fi
2109 nigel 75 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2110 nigel 53 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2111 nigel 41
2112 nigel 53 fi
2113 nigel 63 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2114 nigel 53 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2115     GCC=`test $ac_compiler_gnu = yes && echo yes`
2116     ac_test_CFLAGS=${CFLAGS+set}
2117     ac_save_CFLAGS=$CFLAGS
2118     CFLAGS="-g"
2119 nigel 63 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2120 nigel 53 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2121     if test "${ac_cv_prog_cc_g+set}" = set; then
2122     echo $ECHO_N "(cached) $ECHO_C" >&6
2123 nigel 41 else
2124 nigel 53 cat >conftest.$ac_ext <<_ACEOF
2125 nigel 63 /* confdefs.h. */
2126     _ACEOF
2127     cat confdefs.h >>conftest.$ac_ext
2128     cat >>conftest.$ac_ext <<_ACEOF
2129     /* end confdefs.h. */
2130 nigel 53
2131     int
2132     main ()
2133     {
2134    
2135     ;
2136     return 0;
2137     }
2138     _ACEOF
2139     rm -f conftest.$ac_objext
2140 nigel 63 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 nigel 75 (eval $ac_compile) 2>conftest.er1
2142 nigel 53 ac_status=$?
2143 nigel 75 grep -v '^ *+' conftest.er1 >conftest.err
2144     rm -f conftest.er1
2145     cat conftest.err >&5
2146 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 nigel 53 (exit $ac_status); } &&
2148 nigel 75 { ac_try='test -z "$ac_c_werror_flag"
2149     || test ! -s conftest.err'
2150 nigel 63 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 nigel 53 (eval $ac_try) 2>&5
2152     ac_status=$?
2153 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 nigel 75 (exit $ac_status); }; } &&
2155     { ac_try='test -s conftest.$ac_objext'
2156     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157     (eval $ac_try) 2>&5
2158     ac_status=$?
2159     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 nigel 53 (exit $ac_status); }; }; then
2161 nigel 41 ac_cv_prog_cc_g=yes
2162     else
2163 nigel 53 echo "$as_me: failed program was:" >&5
2164 nigel 63 sed 's/^/| /' conftest.$ac_ext >&5
2165    
2166 nigel 53 ac_cv_prog_cc_g=no
2167 nigel 41 fi
2168 nigel 75 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2169 nigel 41 fi
2170 nigel 63 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171 nigel 53 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2172 nigel 41 if test "$ac_test_CFLAGS" = set; then
2173 nigel 53 CFLAGS=$ac_save_CFLAGS
2174 nigel 41 elif test $ac_cv_prog_cc_g = yes; then
2175     if test "$GCC" = yes; then
2176     CFLAGS="-g -O2"
2177     else
2178     CFLAGS="-g"
2179     fi
2180     else
2181     if test "$GCC" = yes; then
2182     CFLAGS="-O2"
2183     else
2184     CFLAGS=
2185     fi
2186     fi
2187 nigel 63 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2188     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2189     if test "${ac_cv_prog_cc_stdc+set}" = set; then
2190     echo $ECHO_N "(cached) $ECHO_C" >&6
2191     else
2192     ac_cv_prog_cc_stdc=no
2193     ac_save_CC=$CC
2194     cat >conftest.$ac_ext <<_ACEOF
2195     /* confdefs.h. */
2196     _ACEOF
2197     cat confdefs.h >>conftest.$ac_ext
2198     cat >>conftest.$ac_ext <<_ACEOF
2199     /* end confdefs.h. */
2200     #include <stdarg.h>
2201     #include <stdio.h>
2202     #include <sys/types.h>
2203     #include <sys/stat.h>
2204     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2205     struct buf { int x; };
2206     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2207     static char *e (p, i)
2208     char **p;
2209     int i;
2210     {
2211     return p[i];
2212     }
2213     static char *f (char * (*g) (char **, int), char **p, ...)
2214     {
2215     char *s;
2216     va_list v;
2217     va_start (v,p);
2218     s = g (p, va_arg (v,int));
2219     va_end (v);
2220     return s;
2221     }
2222 nigel 75
2223     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2224     function prototypes and stuff, but not '\xHH' hex character constants.
2225     These don't provoke an error unfortunately, instead are silently treated
2226     as 'x'. The following induces an error, until -std1 is added to get
2227     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2228     array size at least. It's necessary to write '\x00'==0 to get something
2229     that's true only with -std1. */
2230     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2231    
2232 nigel 63 int test (int i, double x);
2233     struct s1 {int (*f) (int a);};
2234     struct s2 {int (*f) (double a);};
2235     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236     int argc;
2237     char **argv;
2238     int
2239     main ()
2240     {
2241     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2242     ;
2243     return 0;
2244     }
2245     _ACEOF
2246     # Don't try gcc -ansi; that turns off useful extensions and
2247     # breaks some systems' header files.
2248     # AIX -qlanglvl=ansi
2249     # Ultrix and OSF/1 -std1
2250     # HP-UX 10.20 and later -Ae
2251     # HP-UX older versions -Aa -D_HPUX_SOURCE
2252     # SVR4 -Xc -D__EXTENSIONS__
2253     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2254     do
2255     CC="$ac_save_CC $ac_arg"
2256     rm -f conftest.$ac_objext
2257     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 nigel 75 (eval $ac_compile) 2>conftest.er1
2259 nigel 63 ac_status=$?
2260 nigel 75 grep -v '^ *+' conftest.er1 >conftest.err
2261     rm -f conftest.er1
2262     cat conftest.err >&5
2263 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264     (exit $ac_status); } &&
2265 nigel 75 { ac_try='test -z "$ac_c_werror_flag"
2266     || test ! -s conftest.err'
2267 nigel 63 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268     (eval $ac_try) 2>&5
2269     ac_status=$?
2270     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 nigel 75 (exit $ac_status); }; } &&
2272     { ac_try='test -s conftest.$ac_objext'
2273     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274     (eval $ac_try) 2>&5
2275     ac_status=$?
2276     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 nigel 63 (exit $ac_status); }; }; then
2278     ac_cv_prog_cc_stdc=$ac_arg
2279     break
2280     else
2281     echo "$as_me: failed program was:" >&5
2282     sed 's/^/| /' conftest.$ac_ext >&5
2283    
2284     fi
2285 nigel 75 rm -f conftest.err conftest.$ac_objext
2286 nigel 63 done
2287     rm -f conftest.$ac_ext conftest.$ac_objext
2288     CC=$ac_save_CC
2289    
2290     fi
2291    
2292     case "x$ac_cv_prog_cc_stdc" in
2293     x|xno)
2294     echo "$as_me:$LINENO: result: none needed" >&5
2295     echo "${ECHO_T}none needed" >&6 ;;
2296     *)
2297     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2298     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2299     CC="$CC $ac_cv_prog_cc_stdc" ;;
2300     esac
2301    
2302 nigel 53 # Some people use a C++ compiler to compile C. Since we use `exit',
2303     # in C++ we need to declare it. In case someone uses the same compiler
2304     # for both compiling C and C++ we need to have the C++ compiler decide
2305     # the declaration of exit, since it's the most demanding environment.
2306     cat >conftest.$ac_ext <<_ACEOF
2307     #ifndef __cplusplus
2308     choke me
2309     #endif
2310     _ACEOF
2311     rm -f conftest.$ac_objext
2312 nigel 63 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 nigel 75 (eval $ac_compile) 2>conftest.er1
2314 nigel 53 ac_status=$?
2315 nigel 75 grep -v '^ *+' conftest.er1 >conftest.err
2316     rm -f conftest.er1
2317     cat conftest.err >&5
2318 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 nigel 53 (exit $ac_status); } &&
2320 nigel 75 { ac_try='test -z "$ac_c_werror_flag"
2321     || test ! -s conftest.err'
2322 nigel 63 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 nigel 53 (eval $ac_try) 2>&5
2324     ac_status=$?
2325 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 nigel 75 (exit $ac_status); }; } &&
2327     { ac_try='test -s conftest.$ac_objext'
2328     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329     (eval $ac_try) 2>&5
2330     ac_status=$?
2331     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 nigel 53 (exit $ac_status); }; }; then
2333     for ac_declaration in \
2334 nigel 75 '' \
2335 nigel 53 'extern "C" void std::exit (int) throw (); using std::exit;' \
2336     'extern "C" void std::exit (int); using std::exit;' \
2337     'extern "C" void exit (int) throw ();' \
2338     'extern "C" void exit (int);' \
2339     'void exit (int);'
2340     do
2341     cat >conftest.$ac_ext <<_ACEOF
2342 nigel 63 /* confdefs.h. */
2343     _ACEOF
2344     cat confdefs.h >>conftest.$ac_ext
2345     cat >>conftest.$ac_ext <<_ACEOF
2346     /* end confdefs.h. */
2347 nigel 75 $ac_declaration
2348 nigel 53 #include <stdlib.h>
2349     int
2350     main ()
2351     {
2352     exit (42);
2353     ;
2354     return 0;
2355     }
2356     _ACEOF
2357     rm -f conftest.$ac_objext
2358 nigel 63 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 nigel 75 (eval $ac_compile) 2>conftest.er1
2360 nigel 53 ac_status=$?
2361 nigel 75 grep -v '^ *+' conftest.er1 >conftest.err
2362     rm -f conftest.er1
2363     cat conftest.err >&5
2364 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 nigel 53 (exit $ac_status); } &&
2366 nigel 75 { ac_try='test -z "$ac_c_werror_flag"
2367     || test ! -s conftest.err'
2368 nigel 63 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 nigel 53 (eval $ac_try) 2>&5
2370     ac_status=$?
2371 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 nigel 75 (exit $ac_status); }; } &&
2373     { ac_try='test -s conftest.$ac_objext'
2374     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375     (eval $ac_try) 2>&5
2376     ac_status=$?
2377     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 nigel 53 (exit $ac_status); }; }; then
2379     :
2380     else
2381     echo "$as_me: failed program was:" >&5
2382 nigel 63 sed 's/^/| /' conftest.$ac_ext >&5
2383    
2384 nigel 53 continue
2385     fi
2386 nigel 75 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387 nigel 53 cat >conftest.$ac_ext <<_ACEOF
2388 nigel 63 /* confdefs.h. */
2389     _ACEOF
2390     cat confdefs.h >>conftest.$ac_ext
2391     cat >>conftest.$ac_ext <<_ACEOF
2392     /* end confdefs.h. */
2393 nigel 53 $ac_declaration
2394     int
2395     main ()
2396     {
2397     exit (42);
2398     ;
2399     return 0;
2400     }
2401     _ACEOF
2402     rm -f conftest.$ac_objext
2403 nigel 63 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 nigel 75 (eval $ac_compile) 2>conftest.er1
2405 nigel 53 ac_status=$?
2406 nigel 75 grep -v '^ *+' conftest.er1 >conftest.err
2407     rm -f conftest.er1
2408     cat conftest.err >&5
2409 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 nigel 53 (exit $ac_status); } &&
2411 nigel 75 { ac_try='test -z "$ac_c_werror_flag"
2412     || test ! -s conftest.err'
2413 nigel 63 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 nigel 53 (eval $ac_try) 2>&5
2415     ac_status=$?
2416 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 nigel 75 (exit $ac_status); }; } &&
2418     { ac_try='test -s conftest.$ac_objext'
2419     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420     (eval $ac_try) 2>&5
2421     ac_status=$?
2422     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 nigel 53 (exit $ac_status); }; }; then
2424     break
2425     else
2426     echo "$as_me: failed program was:" >&5
2427 nigel 63 sed 's/^/| /' conftest.$ac_ext >&5
2428    
2429 nigel 53 fi
2430 nigel 75 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431 nigel 53 done
2432 nigel 63 rm -f conftest*
2433     if test -n "$ac_declaration"; then
2434     echo '#ifdef __cplusplus' >>confdefs.h
2435     echo $ac_declaration >>confdefs.h
2436     echo '#endif' >>confdefs.h
2437     fi
2438 nigel 41
2439     else
2440 nigel 53 echo "$as_me: failed program was:" >&5
2441 nigel 63 sed 's/^/| /' conftest.$ac_ext >&5
2442    
2443 nigel 53 fi
2444 nigel 75 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 nigel 53 ac_ext=c
2446     ac_cpp='$CPP $CPPFLAGS'
2447     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450    
2451 nigel 75
2452    
2453 nigel 77 ac_ext=cc
2454     ac_cpp='$CXXCPP $CPPFLAGS'
2455     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2458     if test -n "$ac_tool_prefix"; then
2459     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2460     do
2461     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463     echo "$as_me:$LINENO: checking for $ac_word" >&5
2464     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2465     if test "${ac_cv_prog_CXX+set}" = set; then
2466     echo $ECHO_N "(cached) $ECHO_C" >&6
2467     else
2468     if test -n "$CXX"; then
2469     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2470     else
2471     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472     for as_dir in $PATH
2473     do
2474     IFS=$as_save_IFS
2475     test -z "$as_dir" && as_dir=.
2476     for ac_exec_ext in '' $ac_executable_extensions; do
2477     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2478     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480     break 2
2481     fi
2482     done
2483     done
2484    
2485     fi
2486     fi
2487     CXX=$ac_cv_prog_CXX
2488     if test -n "$CXX"; then
2489     echo "$as_me:$LINENO: result: $CXX" >&5
2490     echo "${ECHO_T}$CXX" >&6
2491     else
2492     echo "$as_me:$LINENO: result: no" >&5
2493     echo "${ECHO_T}no" >&6
2494     fi
2495    
2496     test -n "$CXX" && break
2497     done
2498     fi
2499     if test -z "$CXX"; then
2500     ac_ct_CXX=$CXX
2501     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2502     do
2503     # Extract the first word of "$ac_prog", so it can be a program name with args.
2504     set dummy $ac_prog; ac_word=$2
2505     echo "$as_me:$LINENO: checking for $ac_word" >&5
2506     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507     if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2508     echo $ECHO_N "(cached) $ECHO_C" >&6
2509     else
2510     if test -n "$ac_ct_CXX"; then
2511     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2512     else
2513     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514     for as_dir in $PATH
2515     do
2516     IFS=$as_save_IFS
2517     test -z "$as_dir" && as_dir=.
2518     for ac_exec_ext in '' $ac_executable_extensions; do
2519     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520     ac_cv_prog_ac_ct_CXX="$ac_prog"
2521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523     fi
2524     done
2525     done
2526    
2527     fi
2528     fi
2529     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2530     if test -n "$ac_ct_CXX"; then
2531     echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2532     echo "${ECHO_T}$ac_ct_CXX" >&6
2533     else
2534     echo "$as_me:$LINENO: result: no" >&5
2535     echo "${ECHO_T}no" >&6
2536     fi
2537    
2538     test -n "$ac_ct_CXX" && break
2539     done
2540     test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2541    
2542     CXX=$ac_ct_CXX
2543     fi
2544    
2545    
2546     # Provide some information about the compiler.
2547     echo "$as_me:$LINENO:" \
2548     "checking for C++ compiler version" >&5
2549     ac_compiler=`set X $ac_compile; echo $2`
2550     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2551     (eval $ac_compiler --version </dev/null >&5) 2>&5
2552     ac_status=$?
2553     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554     (exit $ac_status); }
2555     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2556     (eval $ac_compiler -v </dev/null >&5) 2>&5
2557     ac_status=$?
2558     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559     (exit $ac_status); }
2560     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2561     (eval $ac_compiler -V </dev/null >&5) 2>&5
2562     ac_status=$?
2563     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564     (exit $ac_status); }
2565    
2566     echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2567     echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2568     if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2569     echo $ECHO_N "(cached) $ECHO_C" >&6
2570     else
2571     cat >conftest.$ac_ext <<_ACEOF
2572     /* confdefs.h. */
2573     _ACEOF
2574     cat confdefs.h >>conftest.$ac_ext
2575     cat >>conftest.$ac_ext <<_ACEOF
2576     /* end confdefs.h. */
2577    
2578     int
2579     main ()
2580     {
2581     #ifndef __GNUC__
2582     choke me
2583     #endif
2584    
2585     ;
2586     return 0;
2587     }
2588     _ACEOF
2589     rm -f conftest.$ac_objext
2590     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591     (eval $ac_compile) 2>conftest.er1
2592     ac_status=$?
2593     grep -v '^ *+' conftest.er1 >conftest.err
2594     rm -f conftest.er1
2595     cat conftest.err >&5
2596     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597     (exit $ac_status); } &&
2598     { ac_try='test -z "$ac_cxx_werror_flag"
2599     || test ! -s conftest.err'
2600     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601     (eval $ac_try) 2>&5
2602     ac_status=$?
2603     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604     (exit $ac_status); }; } &&
2605     { ac_try='test -s conftest.$ac_objext'
2606     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607     (eval $ac_try) 2>&5
2608     ac_status=$?
2609     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610     (exit $ac_status); }; }; then
2611     ac_compiler_gnu=yes
2612     else
2613     echo "$as_me: failed program was:" >&5
2614     sed 's/^/| /' conftest.$ac_ext >&5
2615    
2616     ac_compiler_gnu=no
2617     fi
2618     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2619     ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2620    
2621     fi
2622     echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2623     echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2624     GXX=`test $ac_compiler_gnu = yes && echo yes`
2625     ac_test_CXXFLAGS=${CXXFLAGS+set}
2626     ac_save_CXXFLAGS=$CXXFLAGS
2627     CXXFLAGS="-g"
2628     echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2629     echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2630     if test "${ac_cv_prog_cxx_g+set}" = set; then
2631     echo $ECHO_N "(cached) $ECHO_C" >&6
2632     else
2633     cat >conftest.$ac_ext <<_ACEOF
2634     /* confdefs.h. */
2635     _ACEOF
2636     cat confdefs.h >>conftest.$ac_ext
2637     cat >>conftest.$ac_ext <<_ACEOF
2638     /* end confdefs.h. */
2639    
2640     int
2641     main ()
2642     {
2643    
2644     ;
2645     return 0;
2646     }
2647     _ACEOF
2648     rm -f conftest.$ac_objext
2649     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650     (eval $ac_compile) 2>conftest.er1
2651     ac_status=$?
2652     grep -v '^ *+' conftest.er1 >conftest.err
2653     rm -f conftest.er1
2654     cat conftest.err >&5
2655     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656     (exit $ac_status); } &&
2657     { ac_try='test -z "$ac_cxx_werror_flag"
2658     || test ! -s conftest.err'
2659     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660     (eval $ac_try) 2>&5
2661     ac_status=$?
2662     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663     (exit $ac_status); }; } &&
2664     { ac_try='test -s conftest.$ac_objext'
2665     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666     (eval $ac_try) 2>&5
2667     ac_status=$?
2668     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669     (exit $ac_status); }; }; then
2670     ac_cv_prog_cxx_g=yes
2671     else
2672     echo "$as_me: failed program was:" >&5
2673     sed 's/^/| /' conftest.$ac_ext >&5
2674    
2675     ac_cv_prog_cxx_g=no
2676     fi
2677     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2678     fi
2679     echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2680     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2681     if test "$ac_test_CXXFLAGS" = set; then
2682     CXXFLAGS=$ac_save_CXXFLAGS
2683     elif test $ac_cv_prog_cxx_g = yes; then
2684     if test "$GXX" = yes; then
2685     CXXFLAGS="-g -O2"
2686     else
2687     CXXFLAGS="-g"
2688     fi
2689     else
2690     if test "$GXX" = yes; then
2691     CXXFLAGS="-O2"
2692     else
2693     CXXFLAGS=
2694     fi
2695     fi
2696     for ac_declaration in \
2697     '' \
2698     'extern "C" void std::exit (int) throw (); using std::exit;' \
2699     'extern "C" void std::exit (int); using std::exit;' \
2700     'extern "C" void exit (int) throw ();' \
2701     'extern "C" void exit (int);' \
2702     'void exit (int);'
2703     do
2704     cat >conftest.$ac_ext <<_ACEOF
2705     /* confdefs.h. */
2706     _ACEOF
2707     cat confdefs.h >>conftest.$ac_ext
2708     cat >>conftest.$ac_ext <<_ACEOF
2709     /* end confdefs.h. */
2710     $ac_declaration
2711     #include <stdlib.h>
2712     int
2713     main ()
2714     {
2715     exit (42);
2716     ;
2717     return 0;
2718     }
2719     _ACEOF
2720     rm -f conftest.$ac_objext
2721     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722     (eval $ac_compile) 2>conftest.er1
2723     ac_status=$?
2724     grep -v '^ *+' conftest.er1 >conftest.err
2725     rm -f conftest.er1
2726     cat conftest.err >&5
2727     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728     (exit $ac_status); } &&
2729     { ac_try='test -z "$ac_cxx_werror_flag"
2730     || test ! -s conftest.err'
2731     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732     (eval $ac_try) 2>&5
2733     ac_status=$?
2734     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735     (exit $ac_status); }; } &&
2736     { ac_try='test -s conftest.$ac_objext'
2737     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738     (eval $ac_try) 2>&5
2739     ac_status=$?
2740     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741     (exit $ac_status); }; }; then
2742     :
2743     else
2744     echo "$as_me: failed program was:" >&5
2745     sed 's/^/| /' conftest.$ac_ext >&5
2746    
2747     continue
2748     fi
2749     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750     cat >conftest.$ac_ext <<_ACEOF
2751     /* confdefs.h. */
2752     _ACEOF
2753     cat confdefs.h >>conftest.$ac_ext
2754     cat >>conftest.$ac_ext <<_ACEOF
2755     /* end confdefs.h. */
2756     $ac_declaration
2757     int
2758     main ()
2759     {
2760     exit (42);
2761     ;
2762     return 0;
2763     }
2764     _ACEOF
2765     rm -f conftest.$ac_objext
2766     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767     (eval $ac_compile) 2>conftest.er1
2768     ac_status=$?
2769     grep -v '^ *+' conftest.er1 >conftest.err
2770     rm -f conftest.er1
2771     cat conftest.err >&5
2772     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773     (exit $ac_status); } &&
2774     { ac_try='test -z "$ac_cxx_werror_flag"
2775     || test ! -s conftest.err'
2776     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777     (eval $ac_try) 2>&5
2778     ac_status=$?
2779     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780     (exit $ac_status); }; } &&
2781     { ac_try='test -s conftest.$ac_objext'
2782     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783     (eval $ac_try) 2>&5
2784     ac_status=$?
2785     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786     (exit $ac_status); }; }; then
2787     break
2788     else
2789     echo "$as_me: failed program was:" >&5
2790     sed 's/^/| /' conftest.$ac_ext >&5
2791    
2792     fi
2793     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794     done
2795     rm -f conftest*
2796     if test -n "$ac_declaration"; then
2797     echo '#ifdef __cplusplus' >>confdefs.h
2798     echo $ac_declaration >>confdefs.h
2799     echo '#endif' >>confdefs.h
2800     fi
2801    
2802     ac_ext=c
2803     ac_cpp='$CPP $CPPFLAGS'
2804     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807    
2808    
2809    
2810 nigel 53 ac_aux_dir=
2811     for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2812     if test -f $ac_dir/install-sh; then
2813     ac_aux_dir=$ac_dir
2814     ac_install_sh="$ac_aux_dir/install-sh -c"
2815     break
2816     elif test -f $ac_dir/install.sh; then
2817     ac_aux_dir=$ac_dir
2818     ac_install_sh="$ac_aux_dir/install.sh -c"
2819     break
2820     elif test -f $ac_dir/shtool; then
2821     ac_aux_dir=$ac_dir
2822     ac_install_sh="$ac_aux_dir/shtool install -c"
2823     break
2824     fi
2825     done
2826     if test -z "$ac_aux_dir"; then
2827 nigel 63 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2828 nigel 53 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2829     { (exit 1); exit 1; }; }
2830     fi
2831     ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2832     ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2833     ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2834    
2835     # Find a good install program. We prefer a C program (faster),
2836     # so one script is as good as another. But avoid the broken or
2837     # incompatible versions:
2838     # SysV /etc/install, /usr/sbin/install
2839     # SunOS /usr/etc/install
2840     # IRIX /sbin/install
2841     # AIX /bin/install
2842     # AmigaOS /C/install, which installs bootblocks on floppy discs
2843     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2844     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2845     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2846 nigel 75 # OS/2's system install, which has a completely different semantic
2847 nigel 53 # ./install, which can be erroneously created by make from ./install.sh.
2848 nigel 63 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2849     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2850 nigel 53 if test -z "$INSTALL"; then
2851     if test "${ac_cv_path_install+set}" = set; then
2852     echo $ECHO_N "(cached) $ECHO_C" >&6
2853     else
2854 nigel 63 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855     for as_dir in $PATH
2856     do
2857     IFS=$as_save_IFS
2858     test -z "$as_dir" && as_dir=.
2859     # Account for people who put trailing slashes in PATH elements.
2860     case $as_dir/ in
2861     ./ | .// | /cC/* | \
2862     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2863 nigel 75 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2864 nigel 63 /usr/ucb/* ) ;;
2865     *)
2866     # OSF1 and SCO ODT 3.0 have their own names for install.
2867     # Don't use installbsd from OSF since it installs stuff as root
2868     # by default.
2869     for ac_prog in ginstall scoinst install; do
2870     for ac_exec_ext in '' $ac_executable_extensions; do
2871 nigel 75 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2872     if test $ac_prog = install &&
2873     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2874     # AIX install. It has an incompatible calling convention.
2875     :
2876     elif test $ac_prog = install &&
2877     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2878     # program-specific install script used by HP pwplus--don't use.
2879     :
2880     else
2881     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2882     break 3
2883     fi
2884     fi
2885 nigel 53 done
2886 nigel 63 done
2887     ;;
2888     esac
2889     done
2890 nigel 53
2891 nigel 63
2892 nigel 53 fi
2893     if test "${ac_cv_path_install+set}" = set; then
2894     INSTALL=$ac_cv_path_install
2895     else
2896     # As a last resort, use the slow shell script. We don't cache a
2897     # path for INSTALL within a source directory, because that will
2898     # break other packages using the cache if that directory is
2899     # removed, or if the path is relative.
2900     INSTALL=$ac_install_sh
2901     fi
2902     fi
2903 nigel 63 echo "$as_me:$LINENO: result: $INSTALL" >&5
2904 nigel 53 echo "${ECHO_T}$INSTALL" >&6
2905    
2906     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2907     # It thinks the first close brace ends the variable substitution.
2908     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2909    
2910     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2911    
2912     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2913    
2914    
2915 nigel 75
2916 nigel 53 # Check whether --enable-shared or --disable-shared was given.
2917     if test "${enable_shared+set}" = set; then
2918     enableval="$enable_shared"
2919     p=${PACKAGE-default}
2920 nigel 75 case $enableval in
2921     yes) enable_shared=yes ;;
2922     no) enable_shared=no ;;
2923     *)
2924     enable_shared=no
2925     # Look at the argument we got. We use all the common list separators.
2926     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2927     for pkg in $enableval; do
2928     IFS="$lt_save_ifs"
2929     if test "X$pkg" = "X$p"; then
2930     enable_shared=yes
2931     fi
2932     done
2933     IFS="$lt_save_ifs"
2934     ;;
2935     esac
2936 nigel 53 else
2937     enable_shared=yes
2938     fi;
2939 nigel 75
2940 nigel 53 # Check whether --enable-static or --disable-static was given.
2941     if test "${enable_static+set}" = set; then
2942     enableval="$enable_static"
2943     p=${PACKAGE-default}
2944 nigel 75 case $enableval in
2945     yes) enable_static=yes ;;
2946     no) enable_static=no ;;
2947     *)
2948     enable_static=no
2949     # Look at the argument we got. We use all the common list separators.
2950     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2951     for pkg in $enableval; do
2952     IFS="$lt_save_ifs"
2953     if test "X$pkg" = "X$p"; then
2954     enable_static=yes
2955     fi
2956     done
2957     IFS="$lt_save_ifs"
2958     ;;
2959     esac
2960 nigel 53 else
2961     enable_static=yes
2962     fi;
2963 nigel 75
2964 nigel 53 # Check whether --enable-fast-install or --disable-fast-install was given.
2965     if test "${enable_fast_install+set}" = set; then
2966     enableval="$enable_fast_install"
2967     p=${PACKAGE-default}
2968 nigel 75 case $enableval in
2969     yes) enable_fast_install=yes ;;
2970     no) enable_fast_install=no ;;
2971     *)
2972     enable_fast_install=no
2973     # Look at the argument we got. We use all the common list separators.
2974     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2975     for pkg in $enableval; do
2976     IFS="$lt_save_ifs"
2977     if test "X$pkg" = "X$p"; then
2978     enable_fast_install=yes
2979     fi
2980     done
2981     IFS="$lt_save_ifs"
2982     ;;
2983     esac
2984 nigel 53 else
2985     enable_fast_install=yes
2986     fi;
2987 nigel 75
2988 nigel 53 # Make sure we can run config.sub.
2989     $ac_config_sub sun4 >/dev/null 2>&1 ||
2990 nigel 63 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2991 nigel 53 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2992     { (exit 1); exit 1; }; }
2993    
2994 nigel 63 echo "$as_me:$LINENO: checking build system type" >&5
2995 nigel 53 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2996     if test "${ac_cv_build+set}" = set; then
2997     echo $ECHO_N "(cached) $ECHO_C" >&6
2998     else
2999     ac_cv_build_alias=$build_alias
3000     test -z "$ac_cv_build_alias" &&
3001     ac_cv_build_alias=`$ac_config_guess`
3002     test -z "$ac_cv_build_alias" &&
3003 nigel 63 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3004 nigel 53 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3005     { (exit 1); exit 1; }; }
3006     ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3007 nigel 63 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3008     echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3009 nigel 53 { (exit 1); exit 1; }; }
3010    
3011     fi
3012 nigel 63 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3013 nigel 53 echo "${ECHO_T}$ac_cv_build" >&6
3014     build=$ac_cv_build
3015     build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3016     build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3017     build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3018    
3019 nigel 63
3020     echo "$as_me:$LINENO: checking host system type" >&5
3021 nigel 53 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3022     if test "${ac_cv_host+set}" = set; then
3023     echo $ECHO_N "(cached) $ECHO_C" >&6
3024     else
3025     ac_cv_host_alias=$host_alias
3026     test -z "$ac_cv_host_alias" &&
3027     ac_cv_host_alias=$ac_cv_build_alias
3028     ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3029 nigel 63 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3030 nigel 53 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3031     { (exit 1); exit 1; }; }
3032    
3033     fi
3034 nigel 63 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3035 nigel 53 echo "${ECHO_T}$ac_cv_host" >&6
3036     host=$ac_cv_host
3037     host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3038     host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3039     host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3040    
3041 nigel 63
3042 nigel 75 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3043     echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3044     if test "${lt_cv_path_SED+set}" = set; then
3045     echo $ECHO_N "(cached) $ECHO_C" >&6
3046     else
3047     # Loop through the user's path and test for sed and gsed.
3048     # Then use that list of sed's as ones to test for truncation.
3049     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050     for as_dir in $PATH
3051     do
3052     IFS=$as_save_IFS
3053     test -z "$as_dir" && as_dir=.
3054     for lt_ac_prog in sed gsed; do
3055     for ac_exec_ext in '' $ac_executable_extensions; do
3056     if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3057     lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3058     fi
3059     done
3060     done
3061     done
3062     lt_ac_max=0
3063     lt_ac_count=0
3064     # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3065     # along with /bin/sed that truncates output.
3066     for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3067     test ! -f $lt_ac_sed && break
3068     cat /dev/null > conftest.in
3069     lt_ac_count=0
3070     echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3071     # Check for GNU sed and select it if it is found.
3072     if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3073     lt_cv_path_SED=$lt_ac_sed
3074     break
3075     fi
3076     while true; do
3077     cat conftest.in conftest.in >conftest.tmp
3078     mv conftest.tmp conftest.in
3079     cp conftest.in conftest.nl
3080     echo >>conftest.nl
3081     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3082     cmp -s conftest.out conftest.nl || break
3083     # 10000 chars as input seems more than enough
3084     test $lt_ac_count -gt 10 && break
3085     lt_ac_count=`expr $lt_ac_count + 1`
3086     if test $lt_ac_count -gt $lt_ac_max; then
3087     lt_ac_max=$lt_ac_count
3088     lt_cv_path_SED=$lt_ac_sed
3089     fi
3090     done
3091     done
3092 nigel 63
3093 nigel 75 fi
3094    
3095     SED=$lt_cv_path_SED
3096     echo "$as_me:$LINENO: result: $SED" >&5
3097     echo "${ECHO_T}$SED" >&6
3098    
3099     echo "$as_me:$LINENO: checking for egrep" >&5
3100     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3101     if test "${ac_cv_prog_egrep+set}" = set; then
3102     echo $ECHO_N "(cached) $ECHO_C" >&6
3103     else
3104     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3105     then ac_cv_prog_egrep='grep -E'
3106     else ac_cv_prog_egrep='egrep'
3107     fi
3108     fi
3109     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3110     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3111     EGREP=$ac_cv_prog_egrep
3112    
3113    
3114    
3115 nigel 53 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3116     if test "${with_gnu_ld+set}" = set; then
3117     withval="$with_gnu_ld"
3118     test "$withval" = no || with_gnu_ld=yes
3119     else
3120     with_gnu_ld=no
3121     fi;
3122     ac_prog=ld
3123     if test "$GCC" = yes; then
3124     # Check if gcc -print-prog-name=ld gives a path.
3125 nigel 75 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3126     echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3127 nigel 53 case $host in
3128     *-*-mingw*)
3129     # gcc leaves a trailing carriage return which upsets mingw
3130     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3131     *)
3132     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3133     esac
3134     case $ac_prog in
3135     # Accept absolute paths.
3136 nigel 75 [\\/]* | ?:[\\/]*)
3137 nigel 53 re_direlt='/[^/][^/]*/\.\./'
3138 nigel 75 # Canonicalize the pathname of ld
3139     ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3140 nigel 53 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3141 nigel 75 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3142 nigel 53 done
3143     test -z "$LD" && LD="$ac_prog"
3144     ;;
3145     "")
3146     # If it fails, then pretend we aren't using GCC.
3147     ac_prog=ld
3148     ;;
3149     *)
3150     # If it is relative, then search for the first ld in PATH.
3151     with_gnu_ld=unknown
3152     ;;
3153     esac
3154     elif test "$with_gnu_ld" = yes; then
3155 nigel 63 echo "$as_me:$LINENO: checking for GNU ld" >&5
3156 nigel 53 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3157     else
3158 nigel 63 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3159 nigel 53 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3160     fi
3161     if test "${lt_cv_path_LD+set}" = set; then
3162     echo $ECHO_N "(cached) $ECHO_C" >&6
3163     else
3164     if test -z "$LD"; then
3165 nigel 75 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3166 nigel 53 for ac_dir in $PATH; do
3167 nigel 75 IFS="$lt_save_ifs"
3168 nigel 53 test -z "$ac_dir" && ac_dir=.
3169     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3170     lt_cv_path_LD="$ac_dir/$ac_prog"
3171     # Check to see if the program is GNU ld. I'd rather use --version,
3172     # but apparently some GNU ld's only accept -v.
3173     # Break only if it was the GNU/non-GNU ld that we prefer.
3174 nigel 75 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3175     *GNU* | *'with BFD'*)
3176 nigel 53 test "$with_gnu_ld" != no && break
3177 nigel 75 ;;
3178     *)
3179 nigel 53 test "$with_gnu_ld" != yes && break
3180 nigel 75 ;;
3181     esac
3182 nigel 53 fi
3183     done
3184 nigel 75 IFS="$lt_save_ifs"
3185 nigel 53 else
3186     lt_cv_path_LD="$LD" # Let the user override the test with a path.
3187     fi
3188     fi
3189    
3190     LD="$lt_cv_path_LD"
3191     if test -n "$LD"; then
3192 nigel 63 echo "$as_me:$LINENO: result: $LD" >&5
3193 nigel 53 echo "${ECHO_T}$LD" >&6
3194     else
3195 nigel 63 echo "$as_me:$LINENO: result: no" >&5
3196 nigel 53 echo "${ECHO_T}no" >&6
3197     fi
3198 nigel 63 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3199 nigel 53 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3200     { (exit 1); exit 1; }; }
3201 nigel 63 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3202 nigel 53 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3203     if test "${lt_cv_prog_gnu_ld+set}" = set; then
3204     echo $ECHO_N "(cached) $ECHO_C" >&6
3205     else
3206     # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3207 nigel 75 case `$LD -v 2>&1 </dev/null` in
3208     *GNU* | *'with BFD'*)
3209 nigel 53 lt_cv_prog_gnu_ld=yes
3210 nigel 75 ;;
3211     *)
3212 nigel 53 lt_cv_prog_gnu_ld=no
3213 nigel 75 ;;
3214     esac
3215 nigel 53 fi
3216 nigel 63 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3217 nigel 53 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3218     with_gnu_ld=$lt_cv_prog_gnu_ld
3219    
3220 nigel 63
3221     echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3222 nigel 53 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3223     if test "${lt_cv_ld_reload_flag+set}" = set; then
3224     echo $ECHO_N "(cached) $ECHO_C" >&6
3225     else
3226     lt_cv_ld_reload_flag='-r'
3227     fi
3228 nigel 63 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3229 nigel 53 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3230     reload_flag=$lt_cv_ld_reload_flag
3231 nigel 75 case $reload_flag in
3232     "" | " "*) ;;
3233     *) reload_flag=" $reload_flag" ;;
3234     esac
3235     reload_cmds='$LD$reload_flag -o $output$reload_objs'
3236     case $host_os in
3237     darwin*)
3238     if test "$GCC" = yes; then
3239     reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3240     else
3241     reload_cmds='$LD$reload_flag -o $output$reload_objs'
3242     fi
3243     ;;
3244     esac
3245 nigel 53
3246 nigel 63 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3247 nigel 53 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3248     if test "${lt_cv_path_NM+set}" = set; then
3249     echo $ECHO_N "(cached) $ECHO_C" >&6
3250     else
3251     if test -n "$NM"; then
3252     # Let the user override the test.
3253     lt_cv_path_NM="$NM"
3254     else
3255 nigel 75 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3256 nigel 53 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3257 nigel 75 IFS="$lt_save_ifs"
3258 nigel 53 test -z "$ac_dir" && ac_dir=.
3259 nigel 75 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3260     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3261 nigel 53 # Check to see if the nm accepts a BSD-compat flag.
3262     # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3263     # nm: unknown option "B" ignored
3264     # Tru64's nm complains that /dev/null is an invalid object file
3265 nigel 75 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3266     */dev/null* | *'Invalid file or object type'*)
3267 nigel 53 lt_cv_path_NM="$tmp_nm -B"
3268     break
3269 nigel 75 ;;
3270     *)
3271     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3272     */dev/null*)
3273     lt_cv_path_NM="$tmp_nm -p"
3274     break
3275     ;;
3276     *)
3277     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3278     continue # so that we can try to find one that supports BSD flags
3279     ;;
3280     esac
3281     esac
3282 nigel 53 fi
3283     done
3284 nigel 75 IFS="$lt_save_ifs"
3285 nigel 53 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3286     fi
3287     fi
3288 nigel 75 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3289     echo "${ECHO_T}$lt_cv_path_NM" >&6
3290 nigel 53 NM="$lt_cv_path_NM"
3291    
3292 nigel 63 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3293 nigel 53 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3294     LN_S=$as_ln_s
3295     if test "$LN_S" = "ln -s"; then
3296 nigel 63 echo "$as_me:$LINENO: result: yes" >&5
3297 nigel 53 echo "${ECHO_T}yes" >&6
3298     else
3299 nigel 63 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3300 nigel 53 echo "${ECHO_T}no, using $LN_S" >&6
3301     fi
3302    
3303 nigel 75 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3304     echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3305 nigel 53 if test "${lt_cv_deplibs_check_method+set}" = set; then
3306     echo $ECHO_N "(cached) $ECHO_C" >&6
3307     else
3308     lt_cv_file_magic_cmd='$MAGIC_CMD'
3309     lt_cv_file_magic_test_file=
3310     lt_cv_deplibs_check_method='unknown'
3311     # Need to set the preceding variable on all platforms that support
3312     # interlibrary dependencies.
3313     # 'none' -- dependencies not supported.
3314     # `unknown' -- same as none, but documents that we really don't know.
3315     # 'pass_all' -- all dependencies passed with no checks.
3316     # 'test_compile' -- check by making test program.
3317 nigel 75 # 'file_magic [[regex]]' -- check by looking for files in library path
3318     # which responds to the $file_magic_cmd with a given extended regex.
3319 nigel 53 # If you have `file' or equivalent on your system and you're not sure
3320     # whether `pass_all' will *always* work, you probably want this one.
3321    
3322     case $host_os in
3323     aix4* | aix5*)
3324     lt_cv_deplibs_check_method=pass_all
3325     ;;
3326    
3327     beos*)
3328     lt_cv_deplibs_check_method=pass_all
3329     ;;
3330    
3331 nigel 75 bsdi[45]*)
3332 nigel 53 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3333     lt_cv_file_magic_cmd='/usr/bin/file -L'
3334     lt_cv_file_magic_test_file=/shlib/libc.so
3335     ;;
3336    
3337 nigel 75 cygwin*)
3338     # func_win32_libid is a shell function defined in ltmain.sh
3339     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3340     lt_cv_file_magic_cmd='func_win32_libid'
3341     ;;
3342    
3343     mingw* | pw32*)
3344     # Base MSYS/MinGW do not provide the 'file' command needed by
3345     # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3346 nigel 53 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3347     lt_cv_file_magic_cmd='$OBJDUMP -f'
3348     ;;
3349    
3350     darwin* | rhapsody*)
3351 nigel 75 lt_cv_deplibs_check_method=pass_all
3352 nigel 53 ;;
3353    
3354 nigel 75 freebsd* | kfreebsd*-gnu)
3355 nigel 53 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3356     case $host_cpu in
3357     i*86 )
3358     # Not sure whether the presence of OpenBSD here was a mistake.
3359     # Let's accept both of them until this is cleared up.
3360     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3361     lt_cv_file_magic_cmd=/usr/bin/file
3362     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3363     ;;
3364     esac
3365     else
3366     lt_cv_deplibs_check_method=pass_all
3367     fi
3368     ;;
3369    
3370     gnu*)
3371     lt_cv_deplibs_check_method=pass_all
3372     ;;
3373    
3374 nigel 75 hpux10.20* | hpux11*)
3375 nigel 53 lt_cv_file_magic_cmd=/usr/bin/file
3376 nigel 75 case "$host_cpu" in
3377     ia64*)
3378     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3379     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3380 nigel 53 ;;
3381 nigel 75 hppa*64*)
3382     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3383     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3384     ;;
3385 nigel 53 *)
3386 nigel 75 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3387     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3388 nigel 53 ;;
3389     esac
3390 nigel 75 ;;
3391    
3392     irix5* | irix6* | nonstopux*)
3393     case $LD in
3394     *-32|*"-32 ") libmagic=32-bit;;
3395     *-n32|*"-n32 ") libmagic=N32;;
3396     *-64|*"-64 ") libmagic=64-bit;;
3397     *) libmagic=never-match;;
3398     esac
3399 nigel 53 lt_cv_deplibs_check_method=pass_all
3400     ;;
3401    
3402     # This must be Linux ELF.
3403 nigel 75 linux*)
3404 nigel 53 case $host_cpu in
3405 nigel 75 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3406 nigel 53 lt_cv_deplibs_check_method=pass_all ;;
3407     *)
3408     # glibc up to 2.1.1 does not perform some relocations on ARM
3409 nigel 75 # this will be overridden with pass_all, but let us keep it just in case
3410 nigel 53 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3411     esac
3412     lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3413 nigel 75 lt_cv_deplibs_check_method=pass_all
3414 nigel 53 ;;
3415    
3416     netbsd*)
3417     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3418 nigel 75 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3419 nigel 53 else
3420 nigel 75 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3421 nigel 53 fi
3422     ;;
3423    
3424     newos6*)
3425     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3426     lt_cv_file_magic_cmd=/usr/bin/file
3427     lt_cv_file_magic_test_file=/usr/lib/libnls.so
3428     ;;
3429    
3430 nigel 75 nto-qnx*)
3431     lt_cv_deplibs_check_method=unknown
3432     ;;
3433    
3434     openbsd*)
3435     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3436     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3437     else
3438     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3439     fi
3440     ;;
3441    
3442 nigel 53 osf3* | osf4* | osf5*)
3443     lt_cv_deplibs_check_method=pass_all
3444     ;;
3445    
3446     sco3.2v5*)
3447     lt_cv_deplibs_check_method=pass_all
3448     ;;
3449    
3450     solaris*)
3451     lt_cv_deplibs_check_method=pass_all
3452     ;;
3453    
3454     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3455     case $host_vendor in
3456     motorola)
3457     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]'
3458     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3459     ;;
3460     ncr)
3461     lt_cv_deplibs_check_method=pass_all
3462     ;;
3463     sequent)
3464     lt_cv_file_magic_cmd='/bin/file'
3465     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3466     ;;
3467     sni)
3468     lt_cv_file_magic_cmd='/bin/file'
3469     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3470     lt_cv_file_magic_test_file=/lib/libc.so
3471     ;;
3472 nigel 75 siemens)
3473     lt_cv_deplibs_check_method=pass_all
3474     ;;
3475 nigel 53 esac
3476     ;;
3477 nigel 75
3478     sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3479     lt_cv_deplibs_check_method=pass_all
3480     ;;
3481 nigel 53 esac
3482    
3483     fi
3484 nigel 63 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3485 nigel 53 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3486     file_magic_cmd=$lt_cv_file_magic_cmd
3487     deplibs_check_method=$lt_cv_deplibs_check_method
3488 nigel 75 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3489 nigel 53
3490 nigel 63
3491    
3492    
3493 nigel 75 # If no C compiler was specified, use CC.
3494     LTCC=${LTCC-"$CC"}
3495 nigel 63
3496 nigel 75 # Allow CC to be a program name with arguments.
3497     compiler=$CC
3498 nigel 63
3499    
3500 nigel 75 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3501     if test "${enable_libtool_lock+set}" = set; then
3502     enableval="$enable_libtool_lock"
3503 nigel 63
3504 nigel 75 fi;
3505     test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3506 nigel 53
3507 nigel 75 # Some flags need to be propagated to the compiler or linker for good
3508     # libtool support.
3509     case $host in
3510     ia64-*-hpux*)
3511     # Find out which ABI we are using.
3512     echo 'int i;' > conftest.$ac_ext
3513     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514     (eval $ac_compile) 2>&5
3515     ac_status=$?
3516     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517     (exit $ac_status); }; then
3518     case `/usr/bin/file conftest.$ac_objext` in
3519     *ELF-32*)
3520     HPUX_IA64_MODE="32"
3521     ;;
3522     *ELF-64*)
3523     HPUX_IA64_MODE="64"
3524     ;;
3525     esac
3526     fi
3527     rm -rf conftest*
3528 nigel 53 ;;
3529 nigel 75 *-*-irix6*)
3530     # Find out which ABI we are using.
3531 nigel 79 echo '#line 3531 "configure"' > conftest.$ac_ext
3532 nigel 75 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533     (eval $ac_compile) 2>&5
3534     ac_status=$?
3535     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536     (exit $ac_status); }; then
3537     if test "$lt_cv_prog_gnu_ld" = yes; then
3538     case `/usr/bin/file conftest.$ac_objext` in
3539     *32-bit*)
3540     LD="${LD-ld} -melf32bsmip"
3541     ;;
3542     *N32*)
3543     LD="${LD-ld} -melf32bmipn32"
3544     ;;
3545     *64-bit*)
3546     LD="${LD-ld} -melf64bmip"
3547     ;;
3548     esac
3549     else
3550     case `/usr/bin/file conftest.$ac_objext` in
3551     *32-bit*)
3552     LD="${LD-ld} -32"
3553     ;;
3554     *N32*)
3555     LD="${LD-ld} -n32"
3556     ;;
3557     *64-bit*)
3558     LD="${LD-ld} -64"
3559     ;;
3560     esac
3561     fi
3562     fi
3563     rm -rf conftest*
3564 nigel 53 ;;
3565    
3566 nigel 75 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3567     # Find out which ABI we are using.
3568     echo 'int i;' > conftest.$ac_ext
3569     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3570     (eval $ac_compile) 2>&5
3571     ac_status=$?
3572     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573     (exit $ac_status); }; then
3574     case "`/usr/bin/file conftest.o`" in
3575     *32-bit*)
3576     case $host in
3577     x86_64-*linux*)
3578     LD="${LD-ld} -m elf_i386"
3579     ;;
3580     ppc64-*linux*|powerpc64-*linux*)
3581     LD="${LD-ld} -m elf32ppclinux"
3582     ;;
3583     s390x-*linux*)
3584     LD="${LD-ld} -m elf_s390"
3585     ;;
3586     sparc64-*linux*)
3587     LD="${LD-ld} -m elf32_sparc"
3588     ;;
3589     esac
3590     ;;
3591     *64-bit*)
3592     case $host in
3593     x86_64-*linux*)
3594     LD="${LD-ld} -m elf_x86_64"
3595     ;;
3596     ppc*-*linux*|powerpc*-*linux*)
3597     LD="${LD-ld} -m elf64ppc"
3598     ;;
3599     s390*-*linux*)
3600     LD="${LD-ld} -m elf64_s390"
3601     ;;
3602     sparc*-*linux*)
3603     LD="${LD-ld} -m elf64_sparc"
3604     ;;
3605     esac
3606     ;;
3607     esac
3608     fi
3609     rm -rf conftest*
3610 nigel 53 ;;
3611    
3612 nigel 75 *-*-sco3.2v5*)
3613     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3614     SAVE_CFLAGS="$CFLAGS"
3615     CFLAGS="$CFLAGS -belf"
3616     echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3617     echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3618     if test "${lt_cv_cc_needs_belf+set}" = set; then
3619     echo $ECHO_N "(cached) $ECHO_C" >&6
3620     else
3621     ac_ext=c
3622     ac_cpp='$CPP $CPPFLAGS'
3623     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626 nigel 53
3627 nigel 75 cat >conftest.$ac_ext <<_ACEOF
3628     /* confdefs.h. */
3629     _ACEOF
3630     cat confdefs.h >>conftest.$ac_ext
3631     cat >>conftest.$ac_ext <<_ACEOF
3632     /* end confdefs.h. */
3633 nigel 53
3634 nigel 75 int
3635     main ()
3636     {
3637 nigel 53
3638 nigel 75 ;
3639     return 0;
3640 nigel 41 }
3641 nigel 75 _ACEOF
3642     rm -f conftest.$ac_objext conftest$ac_exeext
3643     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3644     (eval $ac_link) 2>conftest.er1
3645 nigel 53 ac_status=$?
3646 nigel 75 grep -v '^ *+' conftest.er1 >conftest.err
3647     rm -f conftest.er1
3648     cat conftest.err >&5
3649 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 nigel 75 (exit $ac_status); } &&
3651     { ac_try='test -z "$ac_c_werror_flag"
3652     || test ! -s conftest.err'
3653     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654     (eval $ac_try) 2>&5
3655 nigel 53 ac_status=$?
3656 nigel 63 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 nigel 75 (exit $ac_status); }; } &&
3658     { ac_try='test -s conftest$ac_exeext'
3659     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660     (eval $ac_try) 2>&5
3661     ac_status=$?
3662     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663     (exit $ac_status); }; }; then
3664     lt_cv_cc_needs_belf=yes
3665     else
3666     echo "$as_me: failed program was:" >&5
3667     sed 's/^/| /' conftest.$ac_ext >&5
3668 nigel 53
3669 nigel 75 lt_cv_cc_needs_belf=no
3670     fi
3671     rm -f conftest.err conftest.$ac_objext \
3672     conftest$ac_exeext conftest.$ac_ext
3673     ac_ext=c
3674     ac_cpp='$CPP $CPPFLAGS'
3675     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678 nigel 53
3679 nigel 75 fi
3680     echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3681     echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3682     if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3683     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3684     CFLAGS="$SAVE_CFLAGS"
3685     fi
3686     ;;
3687     *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3688     if test -n "$ac_tool_prefix"; then
3689     # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3690     set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3691     echo "$as_me:$LINENO: checking for $ac_word" >&5
3692     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693     if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3694     echo $ECHO_N "(cached) $ECHO_C" >&6
3695     else
3696     if test -n "$DLLTOOL"; then
3697     ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3698     else
3699     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700     for as_dir in $PATH
3701     do
3702     IFS=$as_save_IFS
3703     test -z "$as_dir" && as_dir=.
3704     for ac_exec_ext in '' $ac_executable_extensions; do
3705     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708     break 2
3709     fi
3710     done
3711     done
3712 nigel 53
3713 nigel 75 fi
3714     fi
3715     DLLTOOL=$ac_cv_prog_DLLTOOL
3716     if test -n "$DLLTOOL"; then
3717     echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3718     echo "${ECHO_T}$DLLTOOL" >&6
3719     else
3720     echo "$as_me:$LINENO: result: no" >&5
3721     echo "${ECHO_T}no" >&6
3722     fi
3723 nigel 53
3724 nigel 75 fi
3725     if test -z "$ac_cv_prog_DLLTOOL"; then
3726     ac_ct_DLLTOOL=$DLLTOOL
3727     # Extract the first word of "dlltool", so it can be a program name with args.
3728     set dummy dlltool; ac_word=$2
3729     echo "$as_me:$LINENO: checking for $ac_word" >&5
3730     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3731     if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3732     echo $ECHO_N "(cached) $ECHO_C" >&6
3733     else
3734     if test -n "$ac_ct_DLLTOOL"; then
3735     ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3736     else
3737     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738     for as_dir in $PATH
3739     do
3740     IFS=$as_save_IFS
3741     test -z "$as_dir" && as_dir=.
3742     for ac_exec_ext in '' $ac_executable_extensions; do
3743     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746     break 2
3747     fi
3748     done
3749     done
3750 nigel 41
3751 nigel 75 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3752     fi
3753     fi
3754     ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3755     if test -n "$ac_ct_DLLTOOL"; then
3756     echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3757     echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3758     else
3759     echo "$as_me:$LINENO: result: no" >&5
3760     echo "${ECHO_T}no" >&6
3761     fi
3762    
3763     DLLTOOL=$ac_ct_DLLTOOL
3764     else
3765     DLLTOOL="$ac_cv_prog_DLLTOOL"
3766     fi
3767    
3768     if test -n "$ac_tool_prefix"; then
3769     # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3770     set dummy ${ac_tool_prefix}as; ac_word=$2
3771     echo "$as_me:$LINENO: checking for $ac_word" >&5
3772     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773     if test "${ac_cv_prog_AS+set}" = set; then
3774     echo $ECHO_N "(cached) $ECHO_C" >&6
3775     else
3776     if test -n "$AS"; then
3777     ac_cv_prog_AS="$AS" # Let the user override the test.
3778     else
3779     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780     for as_dir in $PATH
3781     do
3782     IFS=$as_save_IFS
3783     test -z "$as_dir" && as_dir=.
3784     for ac_exec_ext in '' $ac_executable_extensions; do
3785     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786     ac_cv_prog_AS="${ac_tool_prefix}as"
3787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788     break 2
3789 nigel 53 fi
3790 nigel 75 done
3791     done
3792 nigel 53
3793 nigel 75 fi
3794     fi
3795     AS=$ac_cv_prog_AS
3796     if test -n "$AS"; then
3797     echo "$as_me:$LINENO: result: $AS" >&5
3798     echo "${ECHO_T}$AS" >&6
3799     else
3800     echo "$as_me:$LINENO: result: no" >&5
3801     echo "${ECHO_T}no" >&6
3802     fi
3803    
3804     fi
3805     if test -z "$ac_cv_prog_AS"; then
3806     ac_ct_AS=$AS
3807     # Extract the first word of "as", so it can be a program name with args.
3808     set dummy as; ac_word=$2
3809     echo "$as_me:$LINENO: checking for $ac_word" >&5
3810     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811     if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3812     echo $ECHO_N "(cached) $ECHO_C" >&6
3813     else
3814     if test -n "$ac_ct_AS"; then
3815     ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3816     else
3817     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818     for as_dir in $PATH
3819     do
3820     IFS=$as_save_IFS
3821     test -z "$as_dir" && as_dir=.
3822     for ac_exec_ext in '' $ac_executable_extensions; do
3823     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824     ac_cv_prog_ac_ct_AS="as"
3825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826     break 2
3827 nigel 53 fi
3828     done
3829 nigel 75 done
3830 nigel 53
3831 nigel 75 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3832 nigel 53 fi
3833 nigel 75 fi
3834     ac_ct_AS=$ac_cv_prog_ac_ct_AS
3835     if test -n "$ac_ct_AS"; then
3836     echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3837     echo "${ECHO_T}$ac_ct_AS" >&6
3838     else
3839     echo "$as_me:$LINENO: result: no" >&5
3840     echo "${ECHO_T}no" >&6
3841     fi
3842 nigel 53
3843 nigel 75 AS=$ac_ct_AS
3844 nigel 41 else
3845 nigel 75 AS="$ac_cv_prog_AS"
3846 nigel 53 fi
3847 nigel 75
3848     if test -n "$ac_tool_prefix"; then
3849     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3850     set dummy ${ac_tool_prefix}objdump; ac_word=$2
3851     echo "$as_me:$LINENO: checking for $ac_word" >&5
3852     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853     if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3854     echo $ECHO_N "(cached) $ECHO_C" >&6
3855 nigel 53 else
3856 nigel 75 if test -n "$OBJDUMP"; then
3857     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3858     else
3859     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860     for as_dir in $PATH
3861     do
3862     IFS=$as_save_IFS
3863     test -z "$as_dir" && as_dir=.
3864     for ac_exec_ext in '' $ac_executable_extensions; do
3865     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868     break 2
3869     fi
3870     done
3871     done
3872    
3873 nigel 53 fi
3874 nigel 75 fi
3875     OBJDUMP=$ac_cv_prog_OBJDUMP
3876     if test -n "$OBJDUMP"; then
3877     echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3878     echo "${ECHO_T}$OBJDUMP" >&6
3879     else
3880     echo "$as_me:$LINENO: result: no" >&5
3881     echo "${ECHO_T}no" >&6
3882     fi
3883 nigel 53
3884 nigel 75 fi
3885     if test -z "$ac_cv_prog_OBJDUMP"; then
3886     ac_ct_OBJDUMP=$OBJDUMP
3887     # Extract the first word of "objdump", so it can be a program name with args.
3888     set dummy objdump; ac_word=$2
3889     echo "$as_me:$LINENO: checking for $ac_word" >&5
3890     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891     if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3892     echo $ECHO_N "(cached) $ECHO_C" >&6
3893     else
3894     if test -n "$ac_ct_OBJDUMP"; then
3895     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3896     else
3897     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898     for as_dir in $PATH
3899     do
3900     IFS=$as_save_IFS
3901     test -z "$as_dir" && as_dir=.
3902     for ac_exec_ext in '' $ac_executable_extensions; do
3903     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904     ac_cv_prog_ac_ct_OBJDUMP="objdump"
3905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906     break 2
3907     fi
3908     done
3909     done
3910    
3911     test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3912     fi
3913     fi
3914     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3915     if test -n "$ac_ct_OBJDUMP"; then
3916     echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3917     echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3918     else
3919     echo "$as_me:$LINENO: result: no" >&5
3920     echo "${ECHO_T}no" >&6
3921     fi
3922    
3923     OBJDUMP=$ac_ct_OBJDUMP
3924     else
3925     OBJDUMP="$ac_cv_prog_OBJDUMP"
3926     fi
3927    
3928     ;;
3929    
3930     esac
3931    
3932     need_locks="$enable_libtool_lock"
3933    
3934    
3935 nigel 63 ac_ext=c
3936     ac_cpp='$CPP $CPPFLAGS'
3937     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940     echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3941     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3942     # On Suns, sometimes $CPP names a directory.
3943     if test -n "$CPP" && test -d "$CPP"; then
3944     CPP=
3945     fi
3946     if test -z "$CPP"; then
3947     if test "${ac_cv_prog_CPP+set}" = set; then
3948     echo $ECHO_N "(cached) $ECHO_C" >&6
3949     else
3950     # Double quotes because CPP needs to be expanded
3951     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3952