/[pcre]/code/tags/pcre-6.1/configure
ViewVC logotype

Diff of /code/tags/pcre-6.1/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 49 by nigel, Sat Feb 24 21:39:33 2007 UTC revision 55 by nigel, Sat Feb 24 21:39:46 2007 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
   
2  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
3  # Generated automatically using autoconf version 2.13  # Generated by Autoconf 2.50.
 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.  
4  #  #
5    # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6    # Free Software Foundation, Inc.
7  # This configure script is free software; the Free Software Foundation  # This configure script is free software; the Free Software Foundation
8  # gives unlimited permission to copy, distribute and modify it.  # gives unlimited permission to copy, distribute and modify it.
9    
10  # Defaults:  # Find the correct PATH separator.  Usually this is `:', but
11  ac_help=  # DJGPP uses `;' like DOS.
12    if test "X${PATH_SEPARATOR+set}" != Xset; then
13      UNAME=${UNAME-`uname 2>/dev/null`}
14      case X$UNAME in
15        *-DOS) lt_cv_sys_path_separator=';' ;;
16        *)     lt_cv_sys_path_separator=':' ;;
17      esac
18    fi
19    
20    # Check that we are running under the correct shell.
21    SHELL=${CONFIG_SHELL-/bin/sh}
22    
23    case X$ECHO in
24    X*--fallback-echo)
25      # Remove one level of quotation (which was required for Make).
26      ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
27      ;;
28    esac
29    
30    echo=${ECHO-echo}
31    if test "X$1" = X--no-reexec; then
32      # Discard the --no-reexec flag, and continue.
33      shift
34    elif test "X$1" = X--fallback-echo; then
35      # Avoid inline document here, it may be left over
36      :
37    elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38      # Yippee, $echo works!
39      :
40    else
41      # Restart under the correct shell.
42      exec $SHELL "$0" --no-reexec ${1+"$@"}
43    fi
44    
45    if test "X$1" = X--fallback-echo; then
46      # used as fallback echo
47      shift
48      cat <<EOF
49    
50    EOF
51      exit 0
52    fi
53    
54    # The HP-UX ksh and POSIX shell print the target directory to stdout
55    # if CDPATH is set.
56    if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
57    
58    if test -z "$ECHO"; then
59    if test "X${echo_test_string+set}" != Xset; then
60    # find a string as large as possible, as long as the shell can cope with it
61      for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62        # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63        if (echo_test_string="`eval $cmd`") 2>/dev/null &&
64           echo_test_string="`eval $cmd`" &&
65           (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
66        then
67          break
68        fi
69      done
70    fi
71    
72    if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73       echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
74       test "X$echo_testing_string" = "X$echo_test_string"; then
75      :
76    else
77      # The Solaris, AIX, and Digital Unix default echo programs unquote
78      # backslashes.  This makes it impossible to quote backslashes using
79      #   echo "$something" | sed 's/\\/\\\\/g'
80      #
81      # So, first we look for a working echo in the user's PATH.
82    
83      IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84      for dir in $PATH /usr/ucb; do
85        if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
86           test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
87           echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
88           test "X$echo_testing_string" = "X$echo_test_string"; then
89          echo="$dir/echo"
90          break
91        fi
92      done
93      IFS="$save_ifs"
94    
95      if test "X$echo" = Xecho; then
96        # We didn't find a better echo, so look for alternatives.
97        if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
98           echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
99           test "X$echo_testing_string" = "X$echo_test_string"; then
100          # This shell has a builtin print -r that does the trick.
101          echo='print -r'
102        elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
103             test "X$CONFIG_SHELL" != X/bin/ksh; then
104          # If we have ksh, try running configure again with it.
105          ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
106          export ORIGINAL_CONFIG_SHELL
107          CONFIG_SHELL=/bin/ksh
108          export CONFIG_SHELL
109          exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
110        else
111          # Try using printf.
112          echo='printf %s\n'
113          if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
114             echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
115             test "X$echo_testing_string" = "X$echo_test_string"; then
116            # Cool, printf works
117            :
118          elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
119               test "X$echo_testing_string" = 'X\t' &&
120               echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
121               test "X$echo_testing_string" = "X$echo_test_string"; then
122            CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
123            export CONFIG_SHELL
124            SHELL="$CONFIG_SHELL"
125            export SHELL
126            echo="$CONFIG_SHELL $0 --fallback-echo"
127          elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
128               test "X$echo_testing_string" = 'X\t' &&
129               echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
130               test "X$echo_testing_string" = "X$echo_test_string"; then
131            echo="$CONFIG_SHELL $0 --fallback-echo"
132          else
133            # maybe with a smaller string...
134            prev=:
135    
136            for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
137              if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
138              then
139                break
140              fi
141              prev="$cmd"
142            done
143    
144            if test "$prev" != 'sed 50q "$0"'; then
145              echo_test_string=`eval $prev`
146              export echo_test_string
147              exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
148            else
149              # Oops.  We lost completely, so just stick with echo.
150              echo=echo
151            fi
152          fi
153        fi
154      fi
155    fi
156    fi
157    
158    # Copy echo and quote the copy suitably for passing to libtool from
159    # the Makefile, instead of quoting the original, which is used later.
160    ECHO=$echo
161    if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
162       ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
163    fi
164    
165    # Be Bourne compatible
166    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
167      emulate sh
168      NULLCMD=:
169    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
170      set -o posix
171    fi
172    
173    # Name of the executable.
174    as_me=`echo "$0" |sed 's,.*[\\/],,'`
175    
176    if expr a : '\(a\)' >/dev/null 2>&1; then
177      as_expr=expr
178    else
179      as_expr=false
180    fi
181    
182    rm -f conf$$ conf$$.exe conf$$.file
183    echo >conf$$.file
184    if ln -s conf$$.file conf$$ 2>/dev/null; then
185      # We could just check for DJGPP; but this test a) works b) is more generic
186      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
187      if test -f conf$$.exe; then
188        # Don't use ln at all; we don't have any links
189        as_ln_s='cp -p'
190      else
191        as_ln_s='ln -s'
192      fi
193    elif ln conf$$.file conf$$ 2>/dev/null; then
194      as_ln_s=ln
195    else
196      as_ln_s='cp -p'
197    fi
198    rm -f conf$$ conf$$.exe conf$$.file
199    
200    as_executable_p="test -f"
201    
202    # Support unset when possible.
203    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
204      as_unset=unset
205    else
206      as_unset=false
207    fi
208    
209    # NLS nuisances.
210    $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
211    $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
212    $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
213    $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
214    $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
215    $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
216    $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
217    $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
218    
219    # IFS
220    # We need space, tab and new line, in precisely that order.
221    as_nl='
222    '
223    IFS="   $as_nl"
224    
225    # CDPATH.
226    $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
227    
228    # Name of the host.
229    # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
230    # so uname gets run too.
231    ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
232    
233    exec 6>&1
234    
235    #
236    # Initializations.
237    #
238  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
239  # Any additions from configure.in:  cross_compiling=no
240  ac_help="$ac_help  subdirs=
241    --disable-shared        build PCRE as a static library"  MFLAGS= MAKEFLAGS=
242  ac_help="$ac_help  SHELL=${CONFIG_SHELL-/bin/sh}
243    --enable-utf8           enable UTF8 support (incomplete)"  
244    # Maximum number of lines to put in a shell here document.
245    # This variable seems obsolete.  It should probably be removed, and
246    # only ac_max_sed_lines should be used.
247    : ${ac_max_here_lines=38}
248    
249    # Avoid depending upon Character Ranges.
250    ac_cr_az='abcdefghijklmnopqrstuvwxyz'
251    ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
252    ac_cr_09='0123456789'
253    ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
254    
255    # Sed expression to map a string onto a valid sh and CPP variable names.
256    ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
257    ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
258    
259    ac_unique_file="dftables.c"
260    # Factoring default headers for most tests.
261    ac_includes_default="\
262    #include <stdio.h>
263    #include <sys/types.h>
264    #include <sys/stat.h>
265    #if STDC_HEADERS
266    # include <stdlib.h>
267    # include <stddef.h>
268    #else
269    # if HAVE_STDLIB_H
270    #  include <stdlib.h>
271    # endif
272    #endif
273    #if HAVE_STRING_H
274    # if !STDC_HEADERS && HAVE_MEMORY_H
275    #  include <memory.h>
276    # endif
277    # include <string.h>
278    #else
279    # if HAVE_STRINGS_H
280    #  include <strings.h>
281    # endif
282    #endif
283    #if HAVE_INTTYPES_H
284    # include <inttypes.h>
285    #endif
286    #if HAVE_UNISTD_H
287    # include <unistd.h>
288    #endif"
289    
290  # Initialize some variables set by options.  # Initialize some variables set by options.
291    ac_init_help=
292    ac_init_version=false
293  # The variables have the same names as the options, with  # The variables have the same names as the options, with
294  # dashes changed to underlines.  # dashes changed to underlines.
295  build=NONE  cache_file=/dev/null
 cache_file=./config.cache  
296  exec_prefix=NONE  exec_prefix=NONE
 host=NONE  
297  no_create=  no_create=
 nonopt=NONE  
298  no_recursion=  no_recursion=
299  prefix=NONE  prefix=NONE
300  program_prefix=NONE  program_prefix=NONE
# Line 33  program_transform_name=s,x,x, Line 303  program_transform_name=s,x,x,
303  silent=  silent=
304  site=  site=
305  srcdir=  srcdir=
 target=NONE  
306  verbose=  verbose=
307  x_includes=NONE  x_includes=NONE
308  x_libraries=NONE  x_libraries=NONE
309    
310    # Installation directory options.
311    # These are left unexpanded so users can "make install exec_prefix=/foo"
312    # and all the variables that are supposed to be based on exec_prefix
313    # by default will actually change.
314    # Use braces instead of parens because sh, perl, etc. also accept them.
315  bindir='${exec_prefix}/bin'  bindir='${exec_prefix}/bin'
316  sbindir='${exec_prefix}/sbin'  sbindir='${exec_prefix}/sbin'
317  libexecdir='${exec_prefix}/libexec'  libexecdir='${exec_prefix}/libexec'
# Line 50  oldincludedir='/usr/include' Line 325  oldincludedir='/usr/include'
325  infodir='${prefix}/info'  infodir='${prefix}/info'
326  mandir='${prefix}/man'  mandir='${prefix}/man'
327    
328  # Initialize some other variables.  # Identity of this package.
329  subdirs=  PACKAGE_NAME=
330  MFLAGS= MAKEFLAGS=  PACKAGE_TARNAME=
331  SHELL=${CONFIG_SHELL-/bin/sh}  PACKAGE_VERSION=
332  # Maximum number of lines to put in a shell here document.  PACKAGE_STRING=
333  ac_max_here_lines=12  PACKAGE_BUGREPORT=
334    
335  ac_prev=  ac_prev=
336  for ac_option  for ac_option
337  do  do
   
338    # If the previous option needs an argument, assign it.    # If the previous option needs an argument, assign it.
339    if test -n "$ac_prev"; then    if test -n "$ac_prev"; then
340      eval "$ac_prev=\$ac_option"      eval "$ac_prev=\$ac_option"
# Line 68  do Line 342  do
342      continue      continue
343    fi    fi
344    
345    case "$ac_option" in    ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;  
   *) ac_optarg= ;;  
   esac  
346    
347    # Accept the important Cygnus configure options, so we can diagnose typos.    # Accept the important Cygnus configure options, so we can diagnose typos.
348    
349    case "$ac_option" in    case $ac_option in
350    
351    -bindir | --bindir | --bindi | --bind | --bin | --bi)    -bindir | --bindir | --bindi | --bind | --bin | --bi)
352      ac_prev=bindir ;;      ac_prev=bindir ;;
353    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
354      bindir="$ac_optarg" ;;      bindir=$ac_optarg ;;
355    
356    -build | --build | --buil | --bui | --bu)    -build | --build | --buil | --bui | --bu)
357      ac_prev=build ;;      ac_prev=build_alias ;;
358    -build=* | --build=* | --buil=* | --bui=* | --bu=*)    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
359      build="$ac_optarg" ;;      build_alias=$ac_optarg ;;
360    
361    -cache-file | --cache-file | --cache-fil | --cache-fi \    -cache-file | --cache-file | --cache-fil | --cache-fi \
362    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
363      ac_prev=cache_file ;;      ac_prev=cache_file ;;
364    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
365    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
366      cache_file="$ac_optarg" ;;      cache_file=$ac_optarg ;;
367    
368      --config-cache | -C)
369        cache_file=config.cache ;;
370    
371    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
372      ac_prev=datadir ;;      ac_prev=datadir ;;
373    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
374    | --da=*)    | --da=*)
375      datadir="$ac_optarg" ;;      datadir=$ac_optarg ;;
376    
377    -disable-* | --disable-*)    -disable-* | --disable-*)
378      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
379      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
380      if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
381        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
382      fi     { (exit 1); exit 1; }; }
383      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
384      eval "enable_${ac_feature}=no" ;;      eval "enable_$ac_feature=no" ;;
385    
386    -enable-* | --enable-*)    -enable-* | --enable-*)
387      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
388      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
389      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
390        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
391      fi     { (exit 1); exit 1; }; }
392      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
393      case "$ac_option" in      case $ac_option in
394        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
395        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
396      esac      esac
397      eval "enable_${ac_feature}='$ac_optarg'" ;;      eval "enable_$ac_feature='$ac_optarg'" ;;
398    
399    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
400    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 129  do Line 403  do
403    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
404    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
405    | --exec=* | --exe=* | --ex=*)    | --exec=* | --exe=* | --ex=*)
406      exec_prefix="$ac_optarg" ;;      exec_prefix=$ac_optarg ;;
407    
408    -gas | --gas | --ga | --g)    -gas | --gas | --ga | --g)
409      # Obsolete; use --with-gas.      # Obsolete; use --with-gas.
410      with_gas=yes ;;      with_gas=yes ;;
411    
412    -help | --help | --hel | --he)    -help | --help | --hel | --he | -h)
413      # Omit some internal or obsolete options to make the list less imposing.      ac_init_help=long ;;
414      # The list generated by autoconf has been trimmed to remove many    -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
415      # options that are totally irrelevant to PCRE (e.g. relating to X),      ac_init_help=recursive ;;
416      # or are not supported by its Makefile.    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
417      # The list generated by autoconf has been trimmed to remove many      ac_init_help=short ;;
     # options that are totally irrelevant to PCRE (e.g. relating to X),  
     # or are not supported by its Makefile.  
     # The list generated by autoconf has been trimmed to remove many  
     # options that are totally irrelevant to PCRE (e.g. relating to X),  
     # or are not supported by its Makefile.  
     # This message is too long to be a string in the A/UX 3.1 sh.  
     cat << EOF  
 Usage: ./configure [options]  
 Options: [defaults in brackets after descriptions]  
 Configuration:  
   --cache-file=FILE       cache test results in FILE  
   --help                  print this message  
   --no-create             do not create output files  
   --quiet, --silent       do not print \`checking...' messages  
   --version               print the version of autoconf that created configure  
 Directory and file names:  
   --prefix=PREFIX         install architecture-independent files in PREFIX  
                           [$ac_default_prefix]  
   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX  
                           [same as prefix]  
   --bindir=DIR            user executables in DIR [EPREFIX/bin]  
   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]  
   --includedir=DIR        C header files in DIR [PREFIX/include]  
   --mandir=DIR            man documentation in DIR [PREFIX/man]  
 EOF  
     cat << EOF  
 EOF  
     if test -n "$ac_help"; then  
       echo "--enable and --with options recognized:$ac_help"  
     fi  
     exit 0 ;;  
418    
419    -host | --host | --hos | --ho)    -host | --host | --hos | --ho)
420      ac_prev=host ;;      ac_prev=host_alias ;;
421    -host=* | --host=* | --hos=* | --ho=*)    -host=* | --host=* | --hos=* | --ho=*)
422      host="$ac_optarg" ;;      host_alias=$ac_optarg ;;
423    
424    -includedir | --includedir | --includedi | --included | --include \    -includedir | --includedir | --includedi | --included | --include \
425    | --includ | --inclu | --incl | --inc)    | --includ | --inclu | --incl | --inc)
426      ac_prev=includedir ;;      ac_prev=includedir ;;
427    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
428    | --includ=* | --inclu=* | --incl=* | --inc=*)    | --includ=* | --inclu=* | --incl=* | --inc=*)
429      includedir="$ac_optarg" ;;      includedir=$ac_optarg ;;
430    
431    -infodir | --infodir | --infodi | --infod | --info | --inf)    -infodir | --infodir | --infodi | --infod | --info | --inf)
432      ac_prev=infodir ;;      ac_prev=infodir ;;
433    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
434      infodir="$ac_optarg" ;;      infodir=$ac_optarg ;;
435    
436    -libdir | --libdir | --libdi | --libd)    -libdir | --libdir | --libdi | --libd)
437      ac_prev=libdir ;;      ac_prev=libdir ;;
438    -libdir=* | --libdir=* | --libdi=* | --libd=*)    -libdir=* | --libdir=* | --libdi=* | --libd=*)
439      libdir="$ac_optarg" ;;      libdir=$ac_optarg ;;
440    
441    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
442    | --libexe | --libex | --libe)    | --libexe | --libex | --libe)
443      ac_prev=libexecdir ;;      ac_prev=libexecdir ;;
444    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
445    | --libexe=* | --libex=* | --libe=*)    | --libexe=* | --libex=* | --libe=*)
446      libexecdir="$ac_optarg" ;;      libexecdir=$ac_optarg ;;
447    
448    -localstatedir | --localstatedir | --localstatedi | --localstated \    -localstatedir | --localstatedir | --localstatedi | --localstated \
449    | --localstate | --localstat | --localsta | --localst \    | --localstate | --localstat | --localsta | --localst \
# Line 209  EOF Line 452  EOF
452    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
453    | --localstate=* | --localstat=* | --localsta=* | --localst=* \    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
454    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
455      localstatedir="$ac_optarg" ;;      localstatedir=$ac_optarg ;;
456    
457    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
458      ac_prev=mandir ;;      ac_prev=mandir ;;
459    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
460      mandir="$ac_optarg" ;;      mandir=$ac_optarg ;;
461    
462    -nfp | --nfp | --nf)    -nfp | --nfp | --nf)
463      # Obsolete; use --without-fp.      # Obsolete; use --without-fp.
# Line 235  EOF Line 478  EOF
478    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
479    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
480    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
481      oldincludedir="$ac_optarg" ;;      oldincludedir=$ac_optarg ;;
482    
483    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
484      ac_prev=prefix ;;      ac_prev=prefix ;;
485    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
486      prefix="$ac_optarg" ;;      prefix=$ac_optarg ;;
487    
488    -program-prefix | --program-prefix | --program-prefi | --program-pref \    -program-prefix | --program-prefix | --program-prefi | --program-pref \
489    | --program-pre | --program-pr | --program-p)    | --program-pre | --program-pr | --program-p)
490      ac_prev=program_prefix ;;      ac_prev=program_prefix ;;
491    -program-prefix=* | --program-prefix=* | --program-prefi=* \    -program-prefix=* | --program-prefix=* | --program-prefi=* \
492    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
493      program_prefix="$ac_optarg" ;;      program_prefix=$ac_optarg ;;
494    
495    -program-suffix | --program-suffix | --program-suffi | --program-suff \    -program-suffix | --program-suffix | --program-suffi | --program-suff \
496    | --program-suf | --program-su | --program-s)    | --program-suf | --program-su | --program-s)
497      ac_prev=program_suffix ;;      ac_prev=program_suffix ;;
498    -program-suffix=* | --program-suffix=* | --program-suffi=* \    -program-suffix=* | --program-suffix=* | --program-suffi=* \
499    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
500      program_suffix="$ac_optarg" ;;      program_suffix=$ac_optarg ;;
501    
502    -program-transform-name | --program-transform-name \    -program-transform-name | --program-transform-name \
503    | --program-transform-nam | --program-transform-na \    | --program-transform-nam | --program-transform-na \
# Line 271  EOF Line 514  EOF
514    | --program-transfo=* | --program-transf=* \    | --program-transfo=* | --program-transf=* \
515    | --program-trans=* | --program-tran=* \    | --program-trans=* | --program-tran=* \
516    | --progr-tra=* | --program-tr=* | --program-t=*)    | --progr-tra=* | --program-tr=* | --program-t=*)
517      program_transform_name="$ac_optarg" ;;      program_transform_name=$ac_optarg ;;
518    
519    -q | -quiet | --quiet | --quie | --qui | --qu | --q \    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
520    | -silent | --silent | --silen | --sile | --sil)    | -silent | --silent | --silen | --sile | --sil)
# Line 281  EOF Line 524  EOF
524      ac_prev=sbindir ;;      ac_prev=sbindir ;;
525    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
526    | --sbi=* | --sb=*)    | --sbi=* | --sb=*)
527      sbindir="$ac_optarg" ;;      sbindir=$ac_optarg ;;
528    
529    -sharedstatedir | --sharedstatedir | --sharedstatedi \    -sharedstatedir | --sharedstatedir | --sharedstatedi \
530    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
# Line 292  EOF Line 535  EOF
535    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
536    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
537    | --sha=* | --sh=*)    | --sha=* | --sh=*)
538      sharedstatedir="$ac_optarg" ;;      sharedstatedir=$ac_optarg ;;
539    
540    -site | --site | --sit)    -site | --site | --sit)
541      ac_prev=site ;;      ac_prev=site ;;
542    -site=* | --site=* | --sit=*)    -site=* | --site=* | --sit=*)
543      site="$ac_optarg" ;;      site=$ac_optarg ;;
544    
545    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
546      ac_prev=srcdir ;;      ac_prev=srcdir ;;
547    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
548      srcdir="$ac_optarg" ;;      srcdir=$ac_optarg ;;
549    
550    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
551    | --syscon | --sysco | --sysc | --sys | --sy)    | --syscon | --sysco | --sysc | --sys | --sy)
552      ac_prev=sysconfdir ;;      ac_prev=sysconfdir ;;
553    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
554    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
555      sysconfdir="$ac_optarg" ;;      sysconfdir=$ac_optarg ;;
556    
557    -target | --target | --targe | --targ | --tar | --ta | --t)    -target | --target | --targe | --targ | --tar | --ta | --t)
558      ac_prev=target ;;      ac_prev=target_alias ;;
559    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
560      target="$ac_optarg" ;;      target_alias=$ac_optarg ;;
561    
562    -v | -verbose | --verbose | --verbos | --verbo | --verb)    -v | -verbose | --verbose | --verbos | --verbo | --verb)
563      verbose=yes ;;      verbose=yes ;;
564    
565    -version | --version | --versio | --versi | --vers)    -version | --version | --versio | --versi | --vers | -V)
566      echo "configure generated by autoconf version 2.13"      ac_init_version=: ;;
     exit 0 ;;  
567    
568    -with-* | --with-*)    -with-* | --with-*)
569      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
570      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
571      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
572        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
573      fi     { (exit 1); exit 1; }; }
574      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
575      case "$ac_option" in      case $ac_option in
576        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
578      esac      esac
579      eval "with_${ac_package}='$ac_optarg'" ;;      eval "with_$ac_package='$ac_optarg'" ;;
580    
581    -without-* | --without-*)    -without-* | --without-*)
582      ac_package=`echo $ac_option|sed -e 's/-*without-//'`      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
583      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
584      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
585        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
586      fi     { (exit 1); exit 1; }; }
587      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package | sed 's/-/_/g'`
588      eval "with_${ac_package}=no" ;;      eval "with_$ac_package=no" ;;
589    
590    --x)    --x)
591      # Obsolete; use --with-x.      # Obsolete; use --with-x.
# Line 354  EOF Line 596  EOF
596      ac_prev=x_includes ;;      ac_prev=x_includes ;;
597    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
598    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
599      x_includes="$ac_optarg" ;;      x_includes=$ac_optarg ;;
600    
601    -x-libraries | --x-libraries | --x-librarie | --x-librari \    -x-libraries | --x-libraries | --x-librarie | --x-librari \
602    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
603      ac_prev=x_libraries ;;      ac_prev=x_libraries ;;
604    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
605    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
606      x_libraries="$ac_optarg" ;;      x_libraries=$ac_optarg ;;
607    
608    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }    -*) { echo "$as_me: error: unrecognized option: $ac_option
609    Try \`$0 --help' for more information." >&2
610       { (exit 1); exit 1; }; }
611      ;;      ;;
612    
613      *=*)
614        ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
615        # Reject names that are not valid shell variable names.
616        expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
617          { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
618       { (exit 1); exit 1; }; }
619        ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
620        eval "$ac_envvar='$ac_optarg'"
621        export $ac_envvar ;;
622    
623    *)    *)
624      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then      # FIXME: should be removed in autoconf 3.0.
625        echo "configure: warning: $ac_option: invalid host type" 1>&2      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
626      fi      expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
627      if test "x$nonopt" != xNONE; then        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
628        { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     fi  
     nonopt="$ac_option"  
629      ;;      ;;
630    
631    esac    esac
632  done  done
633    
634  if test -n "$ac_prev"; then  if test -n "$ac_prev"; then
635    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
636  fi    { echo "$as_me: error: missing argument to $ac_option" >&2
637       { (exit 1); exit 1; }; }
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
 # File descriptor usage:  
 # 0 standard input  
 # 1 file creation  
 # 2 errors and warnings  
 # 3 some systems may open it to /dev/tty  
 # 4 used on the Kubota Titan  
 # 6 checking for... messages and results  
 # 5 compiler messages saved in config.log  
 if test "$silent" = yes; then  
   exec 6>/dev/null  
 else  
   exec 6>&1  
638  fi  fi
 exec 5>./config.log  
   
 echo "\  
 This file contains any messages produced by compilers while  
 running configure, to aid debugging if configure makes a mistake.  
 " 1>&5  
639    
640  # Strip out --no-create and --no-recursion so they do not pile up.  # Be sure to have absolute paths.
641  # Also quote any args containing shell metacharacters.  for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
642  ac_configure_args=                localstatedir libdir includedir oldincludedir infodir mandir \
643  for ac_arg                exec_prefix prefix
644  do  do
645    case "$ac_arg" in    eval ac_val=$`echo $ac_var`
646    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    case $ac_val in
647    | --no-cr | --no-c) ;;      [\\/$]* | ?:[\\/]* ) ;;
648    -no-recursion | --no-recursion | --no-recursio | --no-recursi \      NONE ) ;;
649    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;      *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
650    *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)     { (exit 1); exit 1; }; };;
   ac_configure_args="$ac_configure_args '$ac_arg'" ;;  
   *) ac_configure_args="$ac_configure_args $ac_arg" ;;  
651    esac    esac
652  done  done
653    
654  # NLS nuisances.  # There might be people who depend on the old broken behavior: `$host'
655  # Only set these to C if already set.  These must not be set unconditionally  # used to hold the argument of --host etc.
656  # because not all systems understand e.g. LANG=C (notably SCO).  build=$build_alias
657  # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!  host=$host_alias
658  # Non-C LC_CTYPE values break the ctype check.  target=$target_alias
659  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi  
660  if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi  # FIXME: should be removed in autoconf 3.0.
661  if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi  if test "x$host_alias" != x; then
662  if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi    if test "x$build_alias" = x; then
663        cross_compiling=maybe
664        echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
665        If a cross compiler is detected then cross compile mode will be used." >&2
666      elif test "x$build_alias" != "x$host_alias"; then
667        cross_compiling=yes
668      fi
669    fi
670    
671  # confdefs.h avoids OS command line length limits that DEFS can exceed.  ac_tool_prefix=
672  rm -rf conftest* confdefs.h  test -n "$host_alias" && ac_tool_prefix=$host_alias-
 # AIX cpp loses on an empty file, so make sure it contains at least a newline.  
 echo > confdefs.h  
673    
674  # A filename unique to this package, relative to the directory that  test "$silent" = yes && exec 6>/dev/null
 # configure is in, which we can look for to find out if srcdir is correct.  
 ac_unique_file=dftables.c  
675    
676  # Find the source files, if location was not specified.  # Find the source files, if location was not specified.
677  if test -z "$srcdir"; then  if test -z "$srcdir"; then
678    ac_srcdir_defaulted=yes    ac_srcdir_defaulted=yes
679    # Try the directory containing this script, then its parent.    # Try the directory containing this script, then its parent.
680    ac_prog=$0    ac_prog=$0
681    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`    ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
682    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
683    srcdir=$ac_confdir    srcdir=$ac_confdir
684    if test ! -r $srcdir/$ac_unique_file; then    if test ! -r $srcdir/$ac_unique_file; then
# Line 456  else Line 689  else
689  fi  fi
690  if test ! -r $srcdir/$ac_unique_file; then  if test ! -r $srcdir/$ac_unique_file; then
691    if test "$ac_srcdir_defaulted" = yes; then    if test "$ac_srcdir_defaulted" = yes; then
692      { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
693       { (exit 1); exit 1; }; }
694    else    else
695      { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources in $srcdir" >&2
696       { (exit 1); exit 1; }; }
697    fi    fi
698  fi  fi
699  srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`  srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
700    ac_env_build_alias_set=${build_alias+set}
701    ac_env_build_alias_value=$build_alias
702    ac_cv_env_build_alias_set=${build_alias+set}
703    ac_cv_env_build_alias_value=$build_alias
704    ac_env_host_alias_set=${host_alias+set}
705    ac_env_host_alias_value=$host_alias
706    ac_cv_env_host_alias_set=${host_alias+set}
707    ac_cv_env_host_alias_value=$host_alias
708    ac_env_target_alias_set=${target_alias+set}
709    ac_env_target_alias_value=$target_alias
710    ac_cv_env_target_alias_set=${target_alias+set}
711    ac_cv_env_target_alias_value=$target_alias
712    ac_env_CC_set=${CC+set}
713    ac_env_CC_value=$CC
714    ac_cv_env_CC_set=${CC+set}
715    ac_cv_env_CC_value=$CC
716    ac_env_CFLAGS_set=${CFLAGS+set}
717    ac_env_CFLAGS_value=$CFLAGS
718    ac_cv_env_CFLAGS_set=${CFLAGS+set}
719    ac_cv_env_CFLAGS_value=$CFLAGS
720    ac_env_LDFLAGS_set=${LDFLAGS+set}
721    ac_env_LDFLAGS_value=$LDFLAGS
722    ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
723    ac_cv_env_LDFLAGS_value=$LDFLAGS
724    ac_env_CPPFLAGS_set=${CPPFLAGS+set}
725    ac_env_CPPFLAGS_value=$CPPFLAGS
726    ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
727    ac_cv_env_CPPFLAGS_value=$CPPFLAGS
728    ac_env_CPP_set=${CPP+set}
729    ac_env_CPP_value=$CPP
730    ac_cv_env_CPP_set=${CPP+set}
731    ac_cv_env_CPP_value=$CPP
732    
733    #
734    # Report the --help message.
735    #
736    if test "$ac_init_help" = "long"; then
737      # Omit some internal or obsolete options to make the list less imposing.
738        # The list generated by autoconf has been trimmed to remove many
739        # options that are totally irrelevant to PCRE (e.g. relating to X),
740        # or are not supported by its Makefile.
741      # This message is too long to be a string in the A/UX 3.1 sh.
742      cat <<EOF
743    \`configure' configures this package to adapt to many kinds of systems.
744    
745    Usage: $0 [OPTION]... [VAR=VALUE]...
746    
747    To assign environment variables (e.g., CC, CFLAGS...), specify them as
748    VAR=VALUE.  See below for descriptions of some of the useful variables.
749    
750    Defaults for the options are specified in brackets.
751    
752    Configuration:
753      -h, --help              display this help and exit
754          --help=short        display options specific to this package
755          --help=recursive    display the short help of all the included packages
756      -V, --version           display version information and exit
757      -q, --quiet, --silent   do not print \`checking...' messages
758          --cache-file=FILE   cache test results in FILE [disabled]
759      -C, --config-cache      alias for \`--cache-file=config.cache'
760      -n, --no-create         do not create output files
761          --srcdir=DIR        find the sources in DIR [configure dir or \`..']
762    
763    EOF
764    
765      cat <<EOF
766    Installation directories:
767      --prefix=PREFIX         install architecture-independent files in PREFIX
768                              [$ac_default_prefix]
769      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
770                              [PREFIX]
771    
772    By default, \`make install' will install all the files in
773    \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
774    an installation prefix other than \`$ac_default_prefix' using \`--prefix',
775    for instance \`--prefix=\$HOME'.
776    
777    For better control, use the options below.
778    
779    Fine tuning of the installation directories:
780      --bindir=DIR           user executables [EPREFIX/bin]
781      --libdir=DIR           object code libraries [EPREFIX/lib]
782      --includedir=DIR       C header files [PREFIX/include]
783      --mandir=DIR           man documentation [PREFIX/man]
784    EOF
785    
786      cat <<\EOF
787    
788    EOF
789    fi
790    
791    if test -n "$ac_init_help"; then
792    
793      cat <<\EOF
794    
795    Optional Features:
796      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
797      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
798      --enable-utf8           enable UTF8 support (incomplete)
799      --enable-newline-is-cr  use CR as the newline character
800      --enable-newline-is-lf  use LF as the newline character
801      --enable-shared       build shared libraries default=yes
802      --enable-static       build static libraries default=yes
803      --enable-fast-install       optimize for fast installation default=yes
804      --disable-libtool-lock  avoid locking (might break parallel builds)
805    
806    Optional Packages:
807      --with-gnu-ld           assume the C compiler uses GNU ld default=no
808      --with-pic              try to use only PIC/non-PIC objects default=use both
809    
810    Some influential environment variables:
811      CC          C compiler command
812      CFLAGS      C compiler flags
813      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
814                  nonstandard directory <lib dir>
815      CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
816                  headers in a nonstandard directory <include dir>
817      CPP         C preprocessor
818    
819    Use these variables to override the choices made by `configure' or to help
820    it to find libraries and programs with nonstandard names/locations.
821    
822    EOF
823    fi
824    
825    if test "$ac_init_help" = "recursive"; then
826      # If there are subdirs, report their specific --help.
827      ac_popdir=`pwd`
828      for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
829        cd $ac_subdir
830        # A "../" for each directory in /$ac_subdir.
831        ac_dots=`echo $ac_subdir |
832                 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
833    
834        case $srcdir in
835        .) # No --srcdir option.  We are building in place.
836          ac_sub_srcdir=$srcdir ;;
837        [\\/]* | ?:[\\/]* ) # Absolute path.
838          ac_sub_srcdir=$srcdir/$ac_subdir ;;
839        *) # Relative path.
840          ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
841        esac
842    
843        # Check for guested configure; otherwise get Cygnus style configure.
844        if test -f $ac_sub_srcdir/configure.gnu; then
845          echo
846          $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
847        elif test -f $ac_sub_srcdir/configure; then
848          echo
849          $SHELL $ac_sub_srcdir/configure  --help=recursive
850        elif test -f $ac_sub_srcdir/configure.ac ||
851               test -f $ac_sub_srcdir/configure.in; then
852          echo
853          $ac_configure --help
854        else
855          echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
856        fi
857        cd $ac_popdir
858      done
859    fi
860    
861    test -n "$ac_init_help" && exit 0
862    if $ac_init_version; then
863      cat <<\EOF
864    
865    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
866    Free Software Foundation, Inc.
867    This configure script is free software; the Free Software Foundation
868    gives unlimited permission to copy, distribute and modify it.
869    EOF
870      exit 0
871    fi
872    exec 5>config.log
873    cat >&5 <<EOF
874    This file contains any messages produced by compilers while
875    running configure, to aid debugging if configure makes a mistake.
876    
877    It was created by $as_me, which was
878    generated by GNU Autoconf 2.50.  Invocation command line was
879    
880      $ $0 $@
881    
882    EOF
883    {
884    cat <<_ASUNAME
885    ## ---------- ##
886    ## Platform.  ##
887    ## ---------- ##
888    
889    hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
890    uname -m = `(uname -m) 2>/dev/null || echo unknown`
891    uname -r = `(uname -r) 2>/dev/null || echo unknown`
892    uname -s = `(uname -s) 2>/dev/null || echo unknown`
893    uname -v = `(uname -v) 2>/dev/null || echo unknown`
894    
895    /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
896    /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
897    
898    /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
899    /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
900    /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
901    hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
902    /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
903    /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
904    /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
905    
906    PATH = $PATH
907    
908    _ASUNAME
909    } >&5
910    
911    cat >&5 <<EOF
912    ## ------------ ##
913    ## Core tests.  ##
914    ## ------------ ##
915    
916    EOF
917    
918    # Keep a trace of the command line.
919    # Strip out --no-create and --no-recursion so they do not pile up.
920    # Also quote any args containing shell meta-characters.
921    ac_configure_args=
922    ac_sep=
923    for ac_arg
924    do
925      case $ac_arg in
926      -no-create | --no-create | --no-creat | --no-crea | --no-cre \
927      | --no-cr | --no-c) ;;
928      -no-recursion | --no-recursion | --no-recursio | --no-recursi \
929      | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
930      *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
931        ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
932        ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
933        ac_sep=" " ;;
934      *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
935         ac_sep=" " ;;
936      esac
937      # Get rid of the leading space.
938    done
939    
940    # When interrupted or exit'd, cleanup temporary files, and complete
941    # config.log.  We remove comments because anyway the quotes in there
942    # would cause problems or look ugly.
943    trap 'exit_status=$?
944      # Save into config.log some information that might help in debugging.
945      echo >&5
946      echo "## ----------------- ##" >&5
947      echo "## Cache variables.  ##" >&5
948      echo "## ----------------- ##" >&5
949      echo >&5
950      # The following way of writing the cache mishandles newlines in values,
951    {
952      (set) 2>&1 |
953        case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
954        *ac_space=\ *)
955          sed -n \
956            "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
957              s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
958          ;;
959        *)
960          sed -n \
961            "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
962          ;;
963        esac;
964    } >&5
965      sed "/^$/d" confdefs.h >conftest.log
966      if test -s conftest.log; then
967        echo >&5
968        echo "## ------------ ##" >&5
969        echo "## confdefs.h.  ##" >&5
970        echo "## ------------ ##" >&5
971        echo >&5
972        cat conftest.log >&5
973      fi
974      (echo; echo) >&5
975      test "$ac_signal" != 0 &&
976        echo "$as_me: caught signal $ac_signal" >&5
977      echo "$as_me: exit $exit_status" >&5
978      rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
979        exit $exit_status
980         ' 0
981    for ac_signal in 1 2 13 15; do
982      trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
983    done
984    ac_signal=0
985    
986    # confdefs.h avoids OS command line length limits that DEFS can exceed.
987    rm -rf conftest* confdefs.h
988    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
989    echo >confdefs.h
990    
991    # Let the site file select an alternate cache file if it wants to.
992  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
993  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
994    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 473  if test -z "$CONFIG_SITE"; then Line 999  if test -z "$CONFIG_SITE"; then
999  fi  fi
1000  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
1001    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
1002      echo "loading site script $ac_site_file"      { echo "$as_me:1012: loading site script $ac_site_file" >&5
1003    echo "$as_me: loading site script $ac_site_file" >&6;}
1004        cat "$ac_site_file" >&5
1005      . "$ac_site_file"      . "$ac_site_file"
1006    fi    fi
1007  done  done
1008    
1009  if test -r "$cache_file"; then  if test -r "$cache_file"; then
1010    echo "loading cache $cache_file"    # Some versions of bash will fail to source /dev/null (special
1011    . $cache_file    # files actually), so we avoid doing that.
1012      if test -f "$cache_file"; then
1013        { echo "$as_me:1023: loading cache $cache_file" >&5
1014    echo "$as_me: loading cache $cache_file" >&6;}
1015        case $cache_file in
1016          [\\/]* | ?:[\\/]* ) . $cache_file;;
1017          *)                      . ./$cache_file;;
1018        esac
1019      fi
1020  else  else
1021    echo "creating cache $cache_file"    { echo "$as_me:1031: creating cache $cache_file" >&5
1022    > $cache_file  echo "$as_me: creating cache $cache_file" >&6;}
1023      >$cache_file
1024    fi
1025    
1026    # Check that the precious variables saved in the cache have kept the same
1027    # value.
1028    ac_suggest_removing_cache=false
1029    for ac_var in `(set) 2>&1 |
1030                   sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1031      eval ac_old_set=\$ac_cv_env_${ac_var}_set
1032      eval ac_new_set=\$ac_env_${ac_var}_set
1033      eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1034      eval ac_new_val="\$ac_env_${ac_var}_value"
1035      case $ac_old_set,$ac_new_set in
1036        set,)
1037          { echo "$as_me:1047: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1038    echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1039          ac_suggest_removing_cache=: ;;
1040        ,set)
1041          { echo "$as_me:1051: WARNING: \`$ac_var' was not set in the previous run" >&5
1042    echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1043          ac_suggest_removing_cache=: ;;
1044        ,);;
1045        *)
1046          if test "x$ac_old_val" != "x$ac_new_val"; then
1047            { echo "$as_me:1057: WARNING: \`$ac_var' has changed since the previous run:" >&5
1048    echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1049            { echo "$as_me:1059: WARNING:   former value:  $ac_old_val" >&5
1050    echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
1051            { echo "$as_me:1061: WARNING:   current value: $ac_new_val" >&5
1052    echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
1053            ac_suggest_removing_cache=:
1054          fi;;
1055      esac
1056    done
1057    if $ac_suggest_removing_cache; then
1058      { echo "$as_me:1068: WARNING: changes in the environment can compromise the build" >&5
1059    echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1060      { echo "$as_me:1070: WARNING: consider removing $cache_file and starting over" >&5
1061    echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1062  fi  fi
1063    
1064  ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
1065  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
1066  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1067  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1068  cross_compiling=$ac_cv_prog_cc_cross  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1069    
1070  ac_exeext=  case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1071  ac_objext=o    *c*,-n*) ECHO_N= ECHO_C='
1072  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  ' ECHO_T='      ' ;;
1073    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.    *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1074    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then    *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1075      ac_n= ac_c='  esac
1076  ' ac_t='        '  echo "#! $SHELL" >conftest.sh
1077    else  echo  "exit 0"   >>conftest.sh
1078      ac_n=-n ac_c= ac_t=  chmod +x conftest.sh
1079    fi  if { (echo "$as_me:1089: PATH=\".;.\"; conftest.sh") >&5
1080      (PATH=".;."; conftest.sh) 2>&5
1081      ac_status=$?
1082      echo "$as_me:1092: \$? = $ac_status" >&5
1083      (exit $ac_status); }; then
1084      ac_path_separator=';'
1085  else  else
1086    ac_n= ac_c='\c' ac_t=    ac_path_separator=:
1087  fi  fi
1088    PATH_SEPARATOR="$ac_path_separator"
1089    rm -f conftest.sh
1090    
1091    ac_config_headers="$ac_config_headers config.h:config.in"
   
   
   
1092    
1093  PCRE_MAJOR=3  PCRE_MAJOR=3
1094  PCRE_MINOR=3  PCRE_MINOR=6
1095  PCRE_DATE=01-Aug-2000  PCRE_DATE=23-Oct-2001
1096  PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}  PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
1097    
   
1098  PCRE_LIB_VERSION=0:1:0  PCRE_LIB_VERSION=0:1:0
1099  PCRE_POSIXLIB_VERSION=0:0:0  PCRE_POSIXLIB_VERSION=0:0:0
1100    
1101    ac_ext=c
1102    ac_cpp='$CPP $CPPFLAGS'
1103    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1104    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1105    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1106    if test -n "$ac_tool_prefix"; then
1107      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1108    set dummy ${ac_tool_prefix}gcc; ac_word=$2
1109    echo "$as_me:1119: checking for $ac_word" >&5
1110    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1111    if test "${ac_cv_prog_CC+set}" = set; then
1112      echo $ECHO_N "(cached) $ECHO_C" >&6
1113    else
1114      if test -n "$CC"; then
1115      ac_cv_prog_CC="$CC" # Let the user override the test.
1116    else
1117      ac_save_IFS=$IFS; IFS=$ac_path_separator
1118    ac_dummy="$PATH"
1119    for ac_dir in $ac_dummy; do
1120      IFS=$ac_save_IFS
1121      test -z "$ac_dir" && ac_dir=.
1122      $as_executable_p "$ac_dir/$ac_word" || continue
1123    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1124    echo "$as_me:1134: found $ac_dir/$ac_word" >&5
1125    break
1126    done
1127    
1128    fi
1129    fi
1130    CC=$ac_cv_prog_CC
1131    if test -n "$CC"; then
1132      echo "$as_me:1142: result: $CC" >&5
1133    echo "${ECHO_T}$CC" >&6
1134    else
1135      echo "$as_me:1145: result: no" >&5
1136    echo "${ECHO_T}no" >&6
1137    fi
1138    
1139  # Extract the first word of "gcc", so it can be a program name with args.  fi
1140    if test -z "$ac_cv_prog_CC"; then
1141      ac_ct_CC=$CC
1142      # Extract the first word of "gcc", so it can be a program name with args.
1143  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1144  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:1154: checking for $ac_word" >&5
1145  echo "configure:546: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1146  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1147    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1148    else
1149      if test -n "$ac_ct_CC"; then
1150      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1151    else
1152      ac_save_IFS=$IFS; IFS=$ac_path_separator
1153    ac_dummy="$PATH"
1154    for ac_dir in $ac_dummy; do
1155      IFS=$ac_save_IFS
1156      test -z "$ac_dir" && ac_dir=.
1157      $as_executable_p "$ac_dir/$ac_word" || continue
1158    ac_cv_prog_ac_ct_CC="gcc"
1159    echo "$as_me:1169: found $ac_dir/$ac_word" >&5
1160    break
1161    done
1162    
1163    fi
1164    fi
1165    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1166    if test -n "$ac_ct_CC"; then
1167      echo "$as_me:1177: result: $ac_ct_CC" >&5
1168    echo "${ECHO_T}$ac_ct_CC" >&6
1169    else
1170      echo "$as_me:1180: result: no" >&5
1171    echo "${ECHO_T}no" >&6
1172    fi
1173    
1174      CC=$ac_ct_CC
1175    else
1176      CC="$ac_cv_prog_CC"
1177    fi
1178    
1179    if test -z "$CC"; then
1180      if test -n "$ac_tool_prefix"; then
1181      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1182    set dummy ${ac_tool_prefix}cc; ac_word=$2
1183    echo "$as_me:1193: checking for $ac_word" >&5
1184    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1185    if test "${ac_cv_prog_CC+set}" = set; then
1186      echo $ECHO_N "(cached) $ECHO_C" >&6
1187  else  else
1188    if test -n "$CC"; then    if test -n "$CC"; then
1189    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1190  else  else
1191    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1192    ac_dummy="$PATH"  ac_dummy="$PATH"
1193    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
1194      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
1195      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
1196        ac_cv_prog_CC="gcc"    $as_executable_p "$ac_dir/$ac_word" || continue
1197        break  ac_cv_prog_CC="${ac_tool_prefix}cc"
1198      fi  echo "$as_me:1208: found $ac_dir/$ac_word" >&5
1199    done  break
1200    IFS="$ac_save_ifs"  done
1201    
1202  fi  fi
1203  fi  fi
1204  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1205  if test -n "$CC"; then  if test -n "$CC"; then
1206    echo "$ac_t""$CC" 1>&6    echo "$as_me:1216: result: $CC" >&5
1207    echo "${ECHO_T}$CC" >&6
1208  else  else
1209    echo "$ac_t""no" 1>&6    echo "$as_me:1219: result: no" >&5
1210    echo "${ECHO_T}no" >&6
1211  fi  fi
1212    
1213    fi
1214    if test -z "$ac_cv_prog_CC"; then
1215      ac_ct_CC=$CC
1216      # Extract the first word of "cc", so it can be a program name with args.
1217    set dummy cc; ac_word=$2
1218    echo "$as_me:1228: checking for $ac_word" >&5
1219    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1220    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1221      echo $ECHO_N "(cached) $ECHO_C" >&6
1222    else
1223      if test -n "$ac_ct_CC"; then
1224      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1225    else
1226      ac_save_IFS=$IFS; IFS=$ac_path_separator
1227    ac_dummy="$PATH"
1228    for ac_dir in $ac_dummy; do
1229      IFS=$ac_save_IFS
1230      test -z "$ac_dir" && ac_dir=.
1231      $as_executable_p "$ac_dir/$ac_word" || continue
1232    ac_cv_prog_ac_ct_CC="cc"
1233    echo "$as_me:1243: found $ac_dir/$ac_word" >&5
1234    break
1235    done
1236    
1237    fi
1238    fi
1239    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1240    if test -n "$ac_ct_CC"; then
1241      echo "$as_me:1251: result: $ac_ct_CC" >&5
1242    echo "${ECHO_T}$ac_ct_CC" >&6
1243    else
1244      echo "$as_me:1254: result: no" >&5
1245    echo "${ECHO_T}no" >&6
1246    fi
1247    
1248      CC=$ac_ct_CC
1249    else
1250      CC="$ac_cv_prog_CC"
1251    fi
1252    
1253    fi
1254  if test -z "$CC"; then  if test -z "$CC"; then
1255    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
1256  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1257  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:1267: checking for $ac_word" >&5
1258  echo "configure:576: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1259  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_CC+set}" = set; then
1260    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1261  else  else
1262    if test -n "$CC"; then    if test -n "$CC"; then
1263    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1264  else  else
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
1265    ac_prog_rejected=no    ac_prog_rejected=no
1266    ac_dummy="$PATH"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1267    for ac_dir in $ac_dummy; do  ac_dummy="$PATH"
1268      test -z "$ac_dir" && ac_dir=.  for ac_dir in $ac_dummy; do
1269      if test -f $ac_dir/$ac_word; then    IFS=$ac_save_IFS
1270        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    test -z "$ac_dir" && ac_dir=.
1271          ac_prog_rejected=yes    $as_executable_p "$ac_dir/$ac_word" || continue
1272          continue  if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1273        fi    ac_prog_rejected=yes
1274        ac_cv_prog_CC="cc"    continue
1275        break  fi
1276      fi  ac_cv_prog_CC="cc"
1277    done  echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1278    IFS="$ac_save_ifs"  break
1279    done
1280    
1281  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
1282    # We found a bogon in the path, so make sure we never use it.    # We found a bogon in the path, so make sure we never use it.
1283    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
1284    shift    shift
1285    if test $# -gt 0; then    if test $# != 0; then
1286      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
1287      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
1288      # first if we set CC to just the basename; use the full file name.      # first if we set CC to just the basename; use the full file name.
1289      shift      shift
1290      set dummy "$ac_dir/$ac_word" "$@"      set dummy "$ac_dir/$ac_word" ${1+"$@"}
1291      shift      shift
1292      ac_cv_prog_CC="$@"      ac_cv_prog_CC="$@"
1293    fi    fi
1294  fi  fi
1295  fi  fi
1296  fi  fi
1297  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1298  if test -n "$CC"; then  if test -n "$CC"; then
1299    echo "$ac_t""$CC" 1>&6    echo "$as_me:1309: result: $CC" >&5
1300    echo "${ECHO_T}$CC" >&6
1301  else  else
1302    echo "$ac_t""no" 1>&6    echo "$as_me:1312: result: no" >&5
1303    echo "${ECHO_T}no" >&6
1304  fi  fi
1305    
1306    if test -z "$CC"; then  fi
1307      case "`uname -s`" in  if test -z "$CC"; then
1308      *win32* | *WIN32*)    if test -n "$ac_tool_prefix"; then
1309        # Extract the first word of "cl", so it can be a program name with args.    for ac_prog in cl
1310  set dummy cl; ac_word=$2    do
1311  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1312  echo "configure:627: checking for $ac_word" >&5  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1313  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:1323: checking for $ac_word" >&5
1314    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1315    if test "${ac_cv_prog_CC+set}" = set; then
1316      echo $ECHO_N "(cached) $ECHO_C" >&6
1317  else  else
1318    if test -n "$CC"; then    if test -n "$CC"; then
1319    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1320  else  else
1321    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1322    ac_dummy="$PATH"  ac_dummy="$PATH"
1323    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
1324      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
1325      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
1326        ac_cv_prog_CC="cl"    $as_executable_p "$ac_dir/$ac_word" || continue
1327        break  ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1328      fi  echo "$as_me:1338: found $ac_dir/$ac_word" >&5
1329    done  break
1330    IFS="$ac_save_ifs"  done
1331  fi  
1332  fi  fi
1333  CC="$ac_cv_prog_CC"  fi
1334    CC=$ac_cv_prog_CC
1335  if test -n "$CC"; then  if test -n "$CC"; then
1336    echo "$ac_t""$CC" 1>&6    echo "$as_me:1346: result: $CC" >&5
1337    echo "${ECHO_T}$CC" >&6
1338  else  else
1339    echo "$ac_t""no" 1>&6    echo "$as_me:1349: result: no" >&5
1340    echo "${ECHO_T}no" >&6
1341  fi  fi
1342   ;;  
1343      esac      test -n "$CC" && break
1344    fi    done
   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }  
1345  fi  fi
1346    if test -z "$CC"; then
1347      ac_ct_CC=$CC
1348      for ac_prog in cl
1349    do
1350      # Extract the first word of "$ac_prog", so it can be a program name with args.
1351    set dummy $ac_prog; ac_word=$2
1352    echo "$as_me:1362: checking for $ac_word" >&5
1353    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1354    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1355      echo $ECHO_N "(cached) $ECHO_C" >&6
1356    else
1357      if test -n "$ac_ct_CC"; then
1358      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1359    else
1360      ac_save_IFS=$IFS; IFS=$ac_path_separator
1361    ac_dummy="$PATH"
1362    for ac_dir in $ac_dummy; do
1363      IFS=$ac_save_IFS
1364      test -z "$ac_dir" && ac_dir=.
1365      $as_executable_p "$ac_dir/$ac_word" || continue
1366    ac_cv_prog_ac_ct_CC="$ac_prog"
1367    echo "$as_me:1377: found $ac_dir/$ac_word" >&5
1368    break
1369    done
1370    
1371  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  fi
1372  echo "configure:659: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  fi
1373    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1374    if test -n "$ac_ct_CC"; then
1375      echo "$as_me:1385: result: $ac_ct_CC" >&5
1376    echo "${ECHO_T}$ac_ct_CC" >&6
1377    else
1378      echo "$as_me:1388: result: no" >&5
1379    echo "${ECHO_T}no" >&6
1380    fi
1381    
1382  ac_ext=c    test -n "$ac_ct_CC" && break
1383  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  done
1384  ac_cpp='$CPP $CPPFLAGS'  
1385  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'    CC=$ac_ct_CC
1386  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  fi
1387  cross_compiling=$ac_cv_prog_cc_cross  
1388    fi
1389    
1390  cat > conftest.$ac_ext << EOF  test -z "$CC" && { { echo "$as_me:1400: error: no acceptable cc found in \$PATH" >&5
1391    echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1392       { (exit 1); exit 1; }; }
1393    
1394  #line 670 "configure"  cat >conftest.$ac_ext <<_ACEOF
1395    #line 1405 "configure"
1396  #include "confdefs.h"  #include "confdefs.h"
1397    
1398  main(){return(0);}  int
1399  EOF  main ()
1400  if { (eval echo configure:675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
1401    ac_cv_prog_cc_works=yes  
1402    # If we can't run a trivial program, we are probably using a cross compiler.    ;
1403    if (./conftest; exit) 2>/dev/null; then    return 0;
1404      ac_cv_prog_cc_cross=no  }
1405    _ACEOF
1406    ac_clean_files_save=$ac_clean_files
1407    ac_clean_files="$ac_clean_files a.out a.exe"
1408    # Try to create an executable without -o first, disregard a.out.
1409    # It will help us diagnose broken compiler, and finding out an intuition
1410    # of exeext.
1411    echo "$as_me:1421: checking for C compiler default output" >&5
1412    echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1413    ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1414    if { (eval echo "$as_me:1424: \"$ac_link_default\"") >&5
1415      (eval $ac_link_default) 2>&5
1416      ac_status=$?
1417      echo "$as_me:1427: \$? = $ac_status" >&5
1418      (exit $ac_status); }; then
1419      for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1420      case $ac_file in
1421        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1422        a.out ) # We found the default executable, but exeext='' is most
1423                # certainly right.
1424                break;;
1425        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1426              export ac_cv_exeext
1427              break;;
1428        * ) break;;
1429      esac
1430    done
1431    else
1432      echo "$as_me: failed program was:" >&5
1433    cat conftest.$ac_ext >&5
1434    { { echo "$as_me:1444: error: C compiler cannot create executables" >&5
1435    echo "$as_me: error: C compiler cannot create executables" >&2;}
1436       { (exit 77); exit 77; }; }
1437    fi
1438    
1439    ac_exeext=$ac_cv_exeext
1440    echo "$as_me:1450: result: $ac_file" >&5
1441    echo "${ECHO_T}$ac_file" >&6
1442    
1443    # Check the compiler produces executables we can run.  If not, either
1444    # the compiler is broken, or we cross compile.
1445    echo "$as_me:1455: checking whether the C compiler works" >&5
1446    echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1447    # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1448    # If not cross compiling, check that we can run a simple program.
1449    if test "$cross_compiling" != yes; then
1450      if { ac_try='./$ac_file'
1451      { (eval echo "$as_me:1461: \"$ac_try\"") >&5
1452      (eval $ac_try) 2>&5
1453      ac_status=$?
1454      echo "$as_me:1464: \$? = $ac_status" >&5
1455      (exit $ac_status); }; }; then
1456        cross_compiling=no
1457    else    else
1458      ac_cv_prog_cc_cross=yes      if test "$cross_compiling" = maybe; then
1459            cross_compiling=yes
1460        else
1461            { { echo "$as_me:1471: error: cannot run C compiled programs.
1462    If you meant to cross compile, use \`--host'." >&5
1463    echo "$as_me: error: cannot run C compiled programs.
1464    If you meant to cross compile, use \`--host'." >&2;}
1465       { (exit 1); exit 1; }; }
1466        fi
1467    fi    fi
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   ac_cv_prog_cc_works=no  
 fi  
 rm -fr conftest*  
 ac_ext=c  
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  
 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  
 cross_compiling=$ac_cv_prog_cc_cross  
   
 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6  
 if test $ac_cv_prog_cc_works = no; then  
   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }  
1468  fi  fi
1469  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo "$as_me:1479: result: yes" >&5
1470  echo "configure:701: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "${ECHO_T}yes" >&6
 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  
 cross_compiling=$ac_cv_prog_cc_cross  
1471    
1472  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  rm -f a.out a.exe conftest$ac_cv_exeext
1473  echo "configure:706: checking whether we are using GNU C" >&5  ac_clean_files=$ac_clean_files_save
1474  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  # Check the compiler produces executables we can run.  If not, either
1475    echo $ac_n "(cached) $ac_c" 1>&6  # the compiler is broken, or we cross compile.
1476    echo "$as_me:1486: checking whether we are cross compiling" >&5
1477    echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1478    echo "$as_me:1488: result: $cross_compiling" >&5
1479    echo "${ECHO_T}$cross_compiling" >&6
1480    
1481    echo "$as_me:1491: checking for executable suffix" >&5
1482    echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1483    if { (eval echo "$as_me:1493: \"$ac_link\"") >&5
1484      (eval $ac_link) 2>&5
1485      ac_status=$?
1486      echo "$as_me:1496: \$? = $ac_status" >&5
1487      (exit $ac_status); }; then
1488      # If both `conftest.exe' and `conftest' are `present' (well, observable)
1489    # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1490    # work properly (i.e., refer to `conftest.exe'), while it won't with
1491    # `rm'.
1492    for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1493      case $ac_file in
1494        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1495        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1496              export ac_cv_exeext
1497              break;;
1498        * ) break;;
1499      esac
1500    done
1501  else  else
1502    cat > conftest.c <<EOF    { { echo "$as_me:1512: error: cannot compute EXEEXT: cannot compile and link" >&5
1503  #ifdef __GNUC__  echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1504    yes;     { (exit 1); exit 1; }; }
1505  #endif  fi
1506  EOF  
1507  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  rm -f conftest$ac_cv_exeext
1508    ac_cv_prog_gcc=yes  echo "$as_me:1518: result: $ac_cv_exeext" >&5
1509    echo "${ECHO_T}$ac_cv_exeext" >&6
1510    
1511    rm -f conftest.$ac_ext
1512    EXEEXT=$ac_cv_exeext
1513    ac_exeext=$EXEEXT
1514    echo "$as_me:1524: checking for object suffix" >&5
1515    echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1516    if test "${ac_cv_objext+set}" = set; then
1517      echo $ECHO_N "(cached) $ECHO_C" >&6
1518  else  else
1519    ac_cv_prog_gcc=no    cat >conftest.$ac_ext <<_ACEOF
1520  fi  #line 1530 "configure"
1521  fi  #include "confdefs.h"
1522    
1523  echo "$ac_t""$ac_cv_prog_gcc" 1>&6  int
1524    main ()
1525    {
1526    
1527  if test $ac_cv_prog_gcc = yes; then    ;
1528    GCC=yes    return 0;
1529    }
1530    _ACEOF
1531    rm -f conftest.o conftest.obj
1532    if { (eval echo "$as_me:1542: \"$ac_compile\"") >&5
1533      (eval $ac_compile) 2>&5
1534      ac_status=$?
1535      echo "$as_me:1545: \$? = $ac_status" >&5
1536      (exit $ac_status); }; then
1537      for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1538      case $ac_file in
1539        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1540        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1541           break;;
1542      esac
1543    done
1544  else  else
1545    GCC=    echo "$as_me: failed program was:" >&5
1546  fi  cat conftest.$ac_ext >&5
1547    { { echo "$as_me:1557: error: cannot compute OBJEXT: cannot compile" >&5
1548    echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1549       { (exit 1); exit 1; }; }
1550    fi
1551    
1552    rm -f conftest.$ac_cv_objext conftest.$ac_ext
1553    fi
1554    echo "$as_me:1564: result: $ac_cv_objext" >&5
1555    echo "${ECHO_T}$ac_cv_objext" >&6
1556    OBJEXT=$ac_cv_objext
1557    ac_objext=$OBJEXT
1558    echo "$as_me:1568: checking whether we are using the GNU C compiler" >&5
1559    echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1560    if test "${ac_cv_c_compiler_gnu+set}" = set; then
1561      echo $ECHO_N "(cached) $ECHO_C" >&6
1562    else
1563      cat >conftest.$ac_ext <<_ACEOF
1564    #line 1574 "configure"
1565    #include "confdefs.h"
1566    
1567    int
1568    main ()
1569    {
1570    #ifndef __GNUC__
1571           choke me
1572    #endif
1573    
1574  ac_test_CFLAGS="${CFLAGS+set}"    ;
1575  ac_save_CFLAGS="$CFLAGS"    return 0;
1576  CFLAGS=  }
1577  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  _ACEOF
1578  echo "configure:734: checking whether ${CC-cc} accepts -g" >&5  rm -f conftest.$ac_objext
1579  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if { (eval echo "$as_me:1589: \"$ac_compile\"") >&5
1580    echo $ac_n "(cached) $ac_c" 1>&6    (eval $ac_compile) 2>&5
1581      ac_status=$?
1582      echo "$as_me:1592: \$? = $ac_status" >&5
1583      (exit $ac_status); } &&
1584             { ac_try='test -s conftest.$ac_objext'
1585      { (eval echo "$as_me:1595: \"$ac_try\"") >&5
1586      (eval $ac_try) 2>&5
1587      ac_status=$?
1588      echo "$as_me:1598: \$? = $ac_status" >&5
1589      (exit $ac_status); }; }; then
1590      ac_compiler_gnu=yes
1591    else
1592      echo "$as_me: failed program was:" >&5
1593    cat conftest.$ac_ext >&5
1594    ac_compiler_gnu=no
1595    fi
1596    rm -f conftest.$ac_objext conftest.$ac_ext
1597    ac_cv_c_compiler_gnu=$ac_compiler_gnu
1598    
1599    fi
1600    echo "$as_me:1610: result: $ac_cv_c_compiler_gnu" >&5
1601    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1602    GCC=`test $ac_compiler_gnu = yes && echo yes`
1603    ac_test_CFLAGS=${CFLAGS+set}
1604    ac_save_CFLAGS=$CFLAGS
1605    CFLAGS="-g"
1606    echo "$as_me:1616: checking whether $CC accepts -g" >&5
1607    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1608    if test "${ac_cv_prog_cc_g+set}" = set; then
1609      echo $ECHO_N "(cached) $ECHO_C" >&6
1610  else  else
1611    echo 'void f(){}' > conftest.c    cat >conftest.$ac_ext <<_ACEOF
1612  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  #line 1622 "configure"
1613    #include "confdefs.h"
1614    
1615    int
1616    main ()
1617    {
1618    
1619      ;
1620      return 0;
1621    }
1622    _ACEOF
1623    rm -f conftest.$ac_objext
1624    if { (eval echo "$as_me:1634: \"$ac_compile\"") >&5
1625      (eval $ac_compile) 2>&5
1626      ac_status=$?
1627      echo "$as_me:1637: \$? = $ac_status" >&5
1628      (exit $ac_status); } &&
1629             { ac_try='test -s conftest.$ac_objext'
1630      { (eval echo "$as_me:1640: \"$ac_try\"") >&5
1631      (eval $ac_try) 2>&5
1632      ac_status=$?
1633      echo "$as_me:1643: \$? = $ac_status" >&5
1634      (exit $ac_status); }; }; then
1635    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
1636  else  else
1637    ac_cv_prog_cc_g=no    echo "$as_me: failed program was:" >&5
1638    cat conftest.$ac_ext >&5
1639    ac_cv_prog_cc_g=no
1640  fi  fi
1641  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
   
1642  fi  fi
1643    echo "$as_me:1653: result: $ac_cv_prog_cc_g" >&5
1644  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1645  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
1646    CFLAGS="$ac_save_CFLAGS"    CFLAGS=$ac_save_CFLAGS
1647  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
1648    if test "$GCC" = yes; then    if test "$GCC" = yes; then
1649      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 743  else Line 1657  else
1657      CFLAGS=      CFLAGS=
1658    fi    fi
1659  fi  fi
1660    # Some people use a C++ compiler to compile C.  Since we use `exit',
1661    # in C++ we need to declare it.  In case someone uses the same compiler
1662    # for both compiling C and C++ we need to have the C++ compiler decide
1663    # the declaration of exit, since it's the most demanding environment.
1664    cat >conftest.$ac_ext <<_ACEOF
1665    #ifndef __cplusplus
1666      choke me
1667    #endif
1668    _ACEOF
1669    rm -f conftest.$ac_objext
1670    if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
1671      (eval $ac_compile) 2>&5
1672      ac_status=$?
1673      echo "$as_me:1683: \$? = $ac_status" >&5
1674      (exit $ac_status); } &&
1675             { ac_try='test -s conftest.$ac_objext'
1676      { (eval echo "$as_me:1686: \"$ac_try\"") >&5
1677      (eval $ac_try) 2>&5
1678      ac_status=$?
1679      echo "$as_me:1689: \$? = $ac_status" >&5
1680      (exit $ac_status); }; }; then
1681      for ac_declaration in \
1682       ''\
1683       '#include <stdlib.h>' \
1684       'extern "C" void std::exit (int) throw (); using std::exit;' \
1685       'extern "C" void std::exit (int); using std::exit;' \
1686       'extern "C" void exit (int) throw ();' \
1687       'extern "C" void exit (int);' \
1688       'void exit (int);'
1689    do
1690      cat >conftest.$ac_ext <<_ACEOF
1691    #line 1701 "configure"
1692    #include "confdefs.h"
1693    #include <stdlib.h>
1694    $ac_declaration
1695    int
1696    main ()
1697    {
1698    exit (42);
1699      ;
1700      return 0;
1701    }
1702    _ACEOF
1703    rm -f conftest.$ac_objext
1704    if { (eval echo "$as_me:1714: \"$ac_compile\"") >&5
1705      (eval $ac_compile) 2>&5
1706      ac_status=$?
1707      echo "$as_me:1717: \$? = $ac_status" >&5
1708      (exit $ac_status); } &&
1709             { ac_try='test -s conftest.$ac_objext'
1710      { (eval echo "$as_me:1720: \"$ac_try\"") >&5
1711      (eval $ac_try) 2>&5
1712      ac_status=$?
1713      echo "$as_me:1723: \$? = $ac_status" >&5
1714      (exit $ac_status); }; }; then
1715      :
1716    else
1717      echo "$as_me: failed program was:" >&5
1718    cat conftest.$ac_ext >&5
1719    continue
1720    fi
1721    rm -f conftest.$ac_objext conftest.$ac_ext
1722      cat >conftest.$ac_ext <<_ACEOF
1723    #line 1733 "configure"
1724    #include "confdefs.h"
1725    $ac_declaration
1726    int
1727    main ()
1728    {
1729    exit (42);
1730      ;
1731      return 0;
1732    }
1733    _ACEOF
1734    rm -f conftest.$ac_objext
1735    if { (eval echo "$as_me:1745: \"$ac_compile\"") >&5
1736      (eval $ac_compile) 2>&5
1737      ac_status=$?
1738      echo "$as_me:1748: \$? = $ac_status" >&5
1739      (exit $ac_status); } &&
1740             { ac_try='test -s conftest.$ac_objext'
1741      { (eval echo "$as_me:1751: \"$ac_try\"") >&5
1742      (eval $ac_try) 2>&5
1743      ac_status=$?
1744      echo "$as_me:1754: \$? = $ac_status" >&5
1745      (exit $ac_status); }; }; then
1746      break
1747    else
1748      echo "$as_me: failed program was:" >&5
1749    cat conftest.$ac_ext >&5
1750    fi
1751    rm -f conftest.$ac_objext conftest.$ac_ext
1752    done
1753    echo '#ifdef __cplusplus' >>confdefs.h
1754    echo $ac_declaration      >>confdefs.h
1755    echo '#endif'             >>confdefs.h
1756    
1757    else
1758      echo "$as_me: failed program was:" >&5
1759    cat conftest.$ac_ext >&5
1760    fi
1761    rm -f conftest.$ac_objext conftest.$ac_ext
1762    ac_ext=c
1763    ac_cpp='$CPP $CPPFLAGS'
1764    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1767    
1768    ac_aux_dir=
1769    for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1770      if test -f $ac_dir/install-sh; then
1771        ac_aux_dir=$ac_dir
1772        ac_install_sh="$ac_aux_dir/install-sh -c"
1773        break
1774      elif test -f $ac_dir/install.sh; then
1775        ac_aux_dir=$ac_dir
1776        ac_install_sh="$ac_aux_dir/install.sh -c"
1777        break
1778      elif test -f $ac_dir/shtool; then
1779        ac_aux_dir=$ac_dir
1780        ac_install_sh="$ac_aux_dir/shtool install -c"
1781        break
1782      fi
1783    done
1784    if test -z "$ac_aux_dir"; then
1785      { { echo "$as_me:1795: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1786    echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1787       { (exit 1); exit 1; }; }
1788    fi
1789    ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1790    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1791    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1792    
1793    # Find a good install program.  We prefer a C program (faster),
1794    # so one script is as good as another.  But avoid the broken or
1795    # incompatible versions:
1796    # SysV /etc/install, /usr/sbin/install
1797    # SunOS /usr/etc/install
1798    # IRIX /sbin/install
1799    # AIX /bin/install
1800    # AmigaOS /C/install, which installs bootblocks on floppy discs
1801    # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1802    # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1803    # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1804    # ./install, which can be erroneously created by make from ./install.sh.
1805    echo "$as_me:1815: checking for a BSD compatible install" >&5
1806    echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1807    if test -z "$INSTALL"; then
1808    if test "${ac_cv_path_install+set}" = set; then
1809      echo $ECHO_N "(cached) $ECHO_C" >&6
1810    else
1811        ac_save_IFS=$IFS; IFS=$ac_path_separator
1812      for ac_dir in $PATH; do
1813        IFS=$ac_save_IFS
1814        # Account for people who put trailing slashes in PATH elements.
1815        case $ac_dir/ in
1816        / | ./ | .// | /cC/* \
1817        | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1818        | /usr/ucb/* ) ;;
1819        *)
1820          # OSF1 and SCO ODT 3.0 have their own names for install.
1821          # Don't use installbsd from OSF since it installs stuff as root
1822          # by default.
1823          for ac_prog in ginstall scoinst install; do
1824            if $as_executable_p "$ac_dir/$ac_prog"; then
1825              if test $ac_prog = install &&
1826                grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1827                # AIX install.  It has an incompatible calling convention.
1828                :
1829              elif test $ac_prog = install &&
1830                grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1831                # program-specific install script used by HP pwplus--don't use.
1832                :
1833              else
1834                ac_cv_path_install="$ac_dir/$ac_prog -c"
1835                break 2
1836              fi
1837            fi
1838          done
1839          ;;
1840        esac
1841      done
1842    
1843    fi
1844      if test "${ac_cv_path_install+set}" = set; then
1845        INSTALL=$ac_cv_path_install
1846      else
1847        # As a last resort, use the slow shell script.  We don't cache a
1848        # path for INSTALL within a source directory, because that will
1849        # break other packages using the cache if that directory is
1850        # removed, or if the path is relative.
1851        INSTALL=$ac_install_sh
1852      fi
1853    fi
1854    echo "$as_me:1864: result: $INSTALL" >&5
1855    echo "${ECHO_T}$INSTALL" >&6
1856    
1857  # Extract the first word of "ranlib", so it can be a program name with args.  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1858  set dummy ranlib; ac_word=$2  # It thinks the first close brace ends the variable substitution.
1859  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1860  echo "configure:768: checking for $ac_word" >&5  
1861  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1862    echo $ac_n "(cached) $ac_c" 1>&6  
1863    test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1864    
1865    if test -n "$ac_tool_prefix"; then
1866      # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1867    set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1868    echo "$as_me:1878: checking for $ac_word" >&5
1869    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870    if test "${ac_cv_prog_RANLIB+set}" = set; then
1871      echo $ECHO_N "(cached) $ECHO_C" >&6
1872  else  else
1873    if test -n "$RANLIB"; then    if test -n "$RANLIB"; then
1874    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1875  else  else
1876    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1877    ac_dummy="$PATH"  ac_dummy="$PATH"
1878    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
1879      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
1880      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
1881        ac_cv_prog_RANLIB="ranlib"    $as_executable_p "$ac_dir/$ac_word" || continue
1882        break  ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1883      fi  echo "$as_me:1893: found $ac_dir/$ac_word" >&5
1884    done  break
1885    IFS="$ac_save_ifs"  done
1886    test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"  
1887  fi  fi
1888  fi  fi
1889  RANLIB="$ac_cv_prog_RANLIB"  RANLIB=$ac_cv_prog_RANLIB
1890  if test -n "$RANLIB"; then  if test -n "$RANLIB"; then
1891    echo "$ac_t""$RANLIB" 1>&6    echo "$as_me:1901: result: $RANLIB" >&5
1892    echo "${ECHO_T}$RANLIB" >&6
1893  else  else
1894    echo "$ac_t""no" 1>&6    echo "$as_me:1904: result: no" >&5
1895    echo "${ECHO_T}no" >&6
1896    fi
1897    
1898  fi  fi
1899    if test -z "$ac_cv_prog_RANLIB"; then
1900      ac_ct_RANLIB=$RANLIB
1901      # Extract the first word of "ranlib", so it can be a program name with args.
1902    set dummy ranlib; ac_word=$2
1903    echo "$as_me:1913: checking for $ac_word" >&5
1904    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905    if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1906      echo $ECHO_N "(cached) $ECHO_C" >&6
1907    else
1908      if test -n "$ac_ct_RANLIB"; then
1909      ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1910    else
1911      ac_save_IFS=$IFS; IFS=$ac_path_separator
1912    ac_dummy="$PATH"
1913    for ac_dir in $ac_dummy; do
1914      IFS=$ac_save_IFS
1915      test -z "$ac_dir" && ac_dir=.
1916      $as_executable_p "$ac_dir/$ac_word" || continue
1917    ac_cv_prog_ac_ct_RANLIB="ranlib"
1918    echo "$as_me:1928: found $ac_dir/$ac_word" >&5
1919    break
1920    done
1921    
1922      test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1923    fi
1924    fi
1925    ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1926    if test -n "$ac_ct_RANLIB"; then
1927      echo "$as_me:1937: result: $ac_ct_RANLIB" >&5
1928    echo "${ECHO_T}$ac_ct_RANLIB" >&6
1929    else
1930      echo "$as_me:1940: result: no" >&5
1931    echo "${ECHO_T}no" >&6
1932    fi
1933    
1934      RANLIB=$ac_ct_RANLIB
1935    else
1936      RANLIB="$ac_cv_prog_RANLIB"
1937    fi
1938    
1939  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  ac_ext=c
1940  echo "configure:798: checking how to run the C preprocessor" >&5  ac_cpp='$CPP $CPPFLAGS'
1941    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944    echo "$as_me:1954: checking how to run the C preprocessor" >&5
1945    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1946  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1947  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1948    CPP=    CPP=
1949  fi  fi
1950  if test -z "$CPP"; then  if test -z "$CPP"; then
1951  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then    if test "${ac_cv_prog_CPP+set}" = set; then
1952    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1953  else  else
1954      # This must be in double quotes, not single quotes, because CPP may get        # Double quotes because CPP needs to be expanded
1955    # substituted into the Makefile and "${CC-cc}" will confuse make.      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1956    CPP="${CC-cc} -E"      do
1957          # break 2 since there is a loop in there.
1958          ac_preproc_ok=false
1959    for ac_c_preproc_warn_flag in '' yes
1960    do
1961      # Use a header file that comes with gcc, so configuring glibc
1962      # with a fresh cross-compiler works.
1963    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
1964    # not just through cpp.    # not just through cpp. "Syntax error" is here to catch this case.
1965    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
1966  #line 813 "configure"  #line 1976 "configure"
1967  #include "confdefs.h"  #include "confdefs.h"
1968  #include <assert.h>  #include <assert.h>
1969  Syntax Error                       Syntax error
1970  EOF  _ACEOF
1971  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:1981: \"$ac_cpp conftest.$ac_ext\"") >&5
1972  { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1973  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
1974  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
1975      rm -f conftest.er1
1976      cat conftest.err >&5
1977      echo "$as_me:1987: \$? = $ac_status" >&5
1978      (exit $ac_status); } >/dev/null; then
1979      if test -s conftest.err; then
1980        ac_cpp_err=$ac_c_preproc_warn_flag
1981      else
1982        ac_cpp_err=
1983      fi
1984    else
1985      ac_cpp_err=yes
1986    fi
1987    if test -z "$ac_cpp_err"; then
1988    :    :
1989  else  else
1990    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
1991    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
1992    rm -rf conftest*    # Broken: fails on valid input.
1993    CPP="${CC-cc} -E -traditional-cpp"  continue
1994    cat > conftest.$ac_ext <<EOF  fi
1995  #line 830 "configure"  rm -f conftest.err conftest.$ac_ext
1996    
1997      # OK, works on sane cases.  Now check whether non-existent headers
1998      # can be detected and how.
1999      cat >conftest.$ac_ext <<_ACEOF
2000    #line 2010 "configure"
2001  #include "confdefs.h"  #include "confdefs.h"
2002  #include <assert.h>  #include <ac_nonexistent.h>
2003  Syntax Error  _ACEOF
2004  EOF  if { (eval echo "$as_me:2014: \"$ac_cpp conftest.$ac_ext\"") >&5
2005  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2006  { (eval echo configure:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    ac_status=$?
2007  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    egrep -v '^ *\+' conftest.er1 >conftest.err
2008  if test -z "$ac_err"; then    rm -f conftest.er1
2009    :    cat conftest.err >&5
2010      echo "$as_me:2020: \$? = $ac_status" >&5
2011      (exit $ac_status); } >/dev/null; then
2012      if test -s conftest.err; then
2013        ac_cpp_err=$ac_c_preproc_warn_flag
2014      else
2015        ac_cpp_err=
2016      fi
2017    else
2018      ac_cpp_err=yes
2019    fi
2020    if test -z "$ac_cpp_err"; then
2021      # Broken: success on invalid input.
2022    continue
2023  else  else
2024    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2025    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2026    rm -rf conftest*    # Passes both tests.
2027    CPP="${CC-cc} -nologo -E"  ac_preproc_ok=:
2028    cat > conftest.$ac_ext <<EOF  break
2029  #line 847 "configure"  fi
2030    rm -f conftest.err conftest.$ac_ext
2031    
2032    done
2033    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2034    rm -f conftest.err conftest.$ac_ext
2035    if $ac_preproc_ok; then
2036      break 2
2037    fi
2038    
2039        done
2040        ac_cv_prog_CPP=$CPP
2041    
2042    fi
2043      CPP=$ac_cv_prog_CPP
2044    else
2045      ac_cv_prog_CPP=$CPP
2046    fi
2047    echo "$as_me:2057: result: $CPP" >&5
2048    echo "${ECHO_T}$CPP" >&6
2049    ac_preproc_ok=false
2050    for ac_c_preproc_warn_flag in '' yes
2051    do
2052      # Use a header file that comes with gcc, so configuring glibc
2053      # with a fresh cross-compiler works.
2054      # On the NeXT, cc -E runs the code through the compiler's parser,
2055      # not just through cpp. "Syntax error" is here to catch this case.
2056      cat >conftest.$ac_ext <<_ACEOF
2057    #line 2067 "configure"
2058  #include "confdefs.h"  #include "confdefs.h"
2059  #include <assert.h>  #include <assert.h>
2060  Syntax Error                       Syntax error
2061  EOF  _ACEOF
2062  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:2072: \"$ac_cpp conftest.$ac_ext\"") >&5
2063  { (eval echo configure:853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2064  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2065  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2066      rm -f conftest.er1
2067      cat conftest.err >&5
2068      echo "$as_me:2078: \$? = $ac_status" >&5
2069      (exit $ac_status); } >/dev/null; then
2070      if test -s conftest.err; then
2071        ac_cpp_err=$ac_c_preproc_warn_flag
2072      else
2073        ac_cpp_err=
2074      fi
2075    else
2076      ac_cpp_err=yes
2077    fi
2078    if test -z "$ac_cpp_err"; then
2079    :    :
2080  else  else
2081    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2082    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2083    rm -rf conftest*    # Broken: fails on valid input.
2084    CPP=/lib/cpp  continue
 fi  
 rm -f conftest*  
2085  fi  fi
2086  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2087    
2088      # OK, works on sane cases.  Now check whether non-existent headers
2089      # can be detected and how.
2090      cat >conftest.$ac_ext <<_ACEOF
2091    #line 2101 "configure"
2092    #include "confdefs.h"
2093    #include <ac_nonexistent.h>
2094    _ACEOF
2095    if { (eval echo "$as_me:2105: \"$ac_cpp conftest.$ac_ext\"") >&5
2096      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2097      ac_status=$?
2098      egrep -v '^ *\+' conftest.er1 >conftest.err
2099      rm -f conftest.er1
2100      cat conftest.err >&5
2101      echo "$as_me:2111: \$? = $ac_status" >&5
2102      (exit $ac_status); } >/dev/null; then
2103      if test -s conftest.err; then
2104        ac_cpp_err=$ac_c_preproc_warn_flag
2105      else
2106        ac_cpp_err=
2107      fi
2108    else
2109      ac_cpp_err=yes
2110  fi  fi
2111  rm -f conftest*  if test -z "$ac_cpp_err"; then
2112    ac_cv_prog_CPP="$CPP"    # Broken: success on invalid input.
2113    continue
2114    else
2115      echo "$as_me: failed program was:" >&5
2116      cat conftest.$ac_ext >&5
2117      # Passes both tests.
2118    ac_preproc_ok=:
2119    break
2120  fi  fi
2121    CPP="$ac_cv_prog_CPP"  rm -f conftest.err conftest.$ac_ext
2122    
2123    done
2124    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2125    rm -f conftest.err conftest.$ac_ext
2126    if $ac_preproc_ok; then
2127      :
2128  else  else
2129    ac_cv_prog_CPP="$CPP"    { { echo "$as_me:2139: error: C preprocessor \"$CPP\" fails sanity check" >&5
2130    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2131       { (exit 1); exit 1; }; }
2132  fi  fi
 echo "$ac_t""$CPP" 1>&6  
2133    
2134  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6  ac_ext=c
2135  echo "configure:878: checking for ANSI C header files" >&5  ac_cpp='$CPP $CPPFLAGS'
2136  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137    echo $ac_n "(cached) $ac_c" 1>&6  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139    
2140    echo "$as_me:2150: checking for ANSI C header files" >&5
2141    echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2142    if test "${ac_cv_header_stdc+set}" = set; then
2143      echo $ECHO_N "(cached) $ECHO_C" >&6
2144  else  else
2145    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2146  #line 883 "configure"  #line 2156 "configure"
2147  #include "confdefs.h"  #include "confdefs.h"
2148  #include <stdlib.h>  #include <stdlib.h>
2149  #include <stdarg.h>  #include <stdarg.h>
2150  #include <string.h>  #include <string.h>
2151  #include <float.h>  #include <float.h>
2152  EOF  
2153  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  _ACEOF
2154  { (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
2155  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2156  if test -z "$ac_err"; then    ac_status=$?
2157    rm -rf conftest*    egrep -v '^ *\+' conftest.er1 >conftest.err
2158      rm -f conftest.er1
2159      cat conftest.err >&5
2160      echo "$as_me:2170: \$? = $ac_status" >&5
2161      (exit $ac_status); } >/dev/null; then
2162      if test -s conftest.err; then
2163        ac_cpp_err=$ac_c_preproc_warn_flag
2164      else
2165        ac_cpp_err=
2166      fi
2167    else
2168      ac_cpp_err=yes
2169    fi
2170    if test -z "$ac_cpp_err"; then
2171    ac_cv_header_stdc=yes    ac_cv_header_stdc=yes
2172  else  else
2173    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2174    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
   rm -rf conftest*  
2175    ac_cv_header_stdc=no    ac_cv_header_stdc=no
2176  fi  fi
2177  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2178    
2179  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
2180    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2181  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2182  #line 908 "configure"  #line 2192 "configure"
2183  #include "confdefs.h"  #include "confdefs.h"
2184  #include <string.h>  #include <string.h>
2185  EOF  
2186    _ACEOF
2187  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2188    egrep "memchr" >/dev/null 2>&1; then    egrep "memchr" >/dev/null 2>&1; then
2189    :    :
2190  else  else
   rm -rf conftest*  
2191    ac_cv_header_stdc=no    ac_cv_header_stdc=no
2192  fi  fi
2193  rm -f conftest*  rm -f conftest*
# Line 904  fi Line 2196  fi
2196    
2197  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
2198    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2199  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2200  #line 926 "configure"  #line 2210 "configure"
2201  #include "confdefs.h"  #include "confdefs.h"
2202  #include <stdlib.h>  #include <stdlib.h>
2203  EOF  
2204    _ACEOF
2205  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2206    egrep "free" >/dev/null 2>&1; then    egrep "free" >/dev/null 2>&1; then
2207    :    :
2208  else  else
   rm -rf conftest*  
2209    ac_cv_header_stdc=no    ac_cv_header_stdc=no
2210  fi  fi
2211  rm -f conftest*  rm -f conftest*
# Line 922  fi Line 2214  fi
2214    
2215  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
2216    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2217  if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
2218    :    :
2219  else  else
2220    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2221  #line 947 "configure"  #line 2231 "configure"
2222  #include "confdefs.h"  #include "confdefs.h"
2223  #include <ctype.h>  #include <ctype.h>
2224  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')  #if ((' ' & 0x0FF) == 0x020)
2225  #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2226  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2227  int main () { int i; for (i = 0; i < 256; i++)  #else
2228  if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);  # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2229  exit (0); }                       || ('j' <= (c) && (c) <= 'r') \
2230                         || ('s' <= (c) && (c) <= 'z'))
2231    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2232    #endif
2233    
2234  EOF  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2235  if { (eval echo configure:958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  int
2236  then  main ()
2237    {
2238      int i;
2239      for (i = 0; i < 256; i++)
2240        if (XOR (islower (i), ISLOWER (i))
2241            || toupper (i) != TOUPPER (i))
2242          exit(2);
2243      exit (0);
2244    }
2245    _ACEOF
2246    rm -f conftest$ac_exeext
2247    if { (eval echo "$as_me:2257: \"$ac_link\"") >&5
2248      (eval $ac_link) 2>&5
2249      ac_status=$?
2250      echo "$as_me:2260: \$? = $ac_status" >&5
2251      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2252      { (eval echo "$as_me:2262: \"$ac_try\"") >&5
2253      (eval $ac_try) 2>&5
2254      ac_status=$?
2255      echo "$as_me:2265: \$? = $ac_status" >&5
2256      (exit $ac_status); }; }; then
2257    :    :
2258  else  else
2259    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
2260    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
2261    rm -fr conftest*  cat conftest.$ac_ext >&5
2262    ac_cv_header_stdc=no  ac_cv_header_stdc=no
2263  fi  fi
2264  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
2265  fi  fi
   
2266  fi  fi
2267  fi  fi
2268    echo "$as_me:2278: result: $ac_cv_header_stdc" >&5
2269  echo "$ac_t""$ac_cv_header_stdc" 1>&6  echo "${ECHO_T}$ac_cv_header_stdc" >&6
2270  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
2271    cat >> confdefs.h <<\EOF  
2272    cat >>confdefs.h <<\EOF
2273  #define STDC_HEADERS 1  #define STDC_HEADERS 1
2274  EOF  EOF
2275    
2276  fi  fi
2277    
2278  for ac_hdr in limits.h  for ac_header in limits.h
2279  do  do
2280  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2281  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo "$as_me:2291: checking for $ac_header" >&5
2282  echo "configure:985: checking for $ac_hdr" >&5  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2283  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2284    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2285  else  else
2286    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2287  #line 990 "configure"  #line 2297 "configure"
2288  #include "confdefs.h"  #include "confdefs.h"
2289  #include <$ac_hdr>  #include <$ac_header>
2290  EOF  _ACEOF
2291  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:2301: \"$ac_cpp conftest.$ac_ext\"") >&5
2292  { (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2293  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2294  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2295    rm -rf conftest*    rm -f conftest.er1
2296    eval "ac_cv_header_$ac_safe=yes"    cat conftest.err >&5
2297      echo "$as_me:2307: \$? = $ac_status" >&5
2298      (exit $ac_status); } >/dev/null; then
2299      if test -s conftest.err; then
2300        ac_cpp_err=$ac_c_preproc_warn_flag
2301      else
2302        ac_cpp_err=
2303      fi
2304    else
2305      ac_cpp_err=yes
2306    fi
2307    if test -z "$ac_cpp_err"; then
2308      eval "$ac_ac_Header=yes"
2309  else  else
2310    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2311    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2312    rm -rf conftest*    eval "$ac_ac_Header=no"
   eval "ac_cv_header_$ac_safe=no"  
2313  fi  fi
2314  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2315  fi  fi
2316  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$as_me:2326: result: `eval echo '${'$ac_ac_Header'}'`" >&5
2317    echo "$ac_t""yes" 1>&6  echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
2318      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  if test `eval echo '${'$ac_ac_Header'}'` = yes; then
2319    cat >> confdefs.h <<EOF    cat >>confdefs.h <<EOF
2320  #define $ac_tr_hdr 1  #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
2321  EOF  EOF
2322    
 else  
   echo "$ac_t""no" 1>&6  
2323  fi  fi
2324  done  done
2325    
2326    echo "$as_me:2336: checking for $CC option to accept ANSI C" >&5
2327    echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2328    if test "${ac_cv_prog_cc_stdc+set}" = set; then
2329      echo $ECHO_N "(cached) $ECHO_C" >&6
2330    else
2331      ac_cv_prog_cc_stdc=no
2332    ac_save_CC=$CC
2333    cat >conftest.$ac_ext <<_ACEOF
2334    #line 2344 "configure"
2335    #include "confdefs.h"
2336    #include <stdarg.h>
2337    #include <stdio.h>
2338    #include <sys/types.h>
2339    #include <sys/stat.h>
2340    /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2341    struct buf { int x; };
2342    FILE * (*rcsopen) (struct buf *, struct stat *, int);
2343    static char *e (p, i)
2344         char **p;
2345         int i;
2346    {
2347      return p[i];
2348    }
2349    static char *f (char * (*g) (char **, int), char **p, ...)
2350    {
2351      char *s;
2352      va_list v;
2353      va_start (v,p);
2354      s = g (p, va_arg (v,int));
2355      va_end (v);
2356      return s;
2357    }
2358    int test (int i, double x);
2359    struct s1 {int (*f) (int a);};
2360    struct s2 {int (*f) (double a);};
2361    int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2362    int argc;
2363    char **argv;
2364    int
2365    main ()
2366    {
2367    return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2368      ;
2369      return 0;
2370    }
2371    _ACEOF
2372    # Don't try gcc -ansi; that turns off useful extensions and
2373    # breaks some systems' header files.
2374    # AIX                   -qlanglvl=ansi
2375    # Ultrix and OSF/1      -std1
2376    # HP-UX 10.20 and later -Ae
2377    # HP-UX older versions  -Aa -D_HPUX_SOURCE
2378    # SVR4                  -Xc -D__EXTENSIONS__
2379    for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2380    do
2381      CC="$ac_save_CC $ac_arg"
2382      rm -f conftest.$ac_objext
2383    if { (eval echo "$as_me:2393: \"$ac_compile\"") >&5
2384      (eval $ac_compile) 2>&5
2385      ac_status=$?
2386      echo "$as_me:2396: \$? = $ac_status" >&5
2387      (exit $ac_status); } &&
2388             { ac_try='test -s conftest.$ac_objext'
2389      { (eval echo "$as_me:2399: \"$ac_try\"") >&5
2390      (eval $ac_try) 2>&5
2391      ac_status=$?
2392      echo "$as_me:2402: \$? = $ac_status" >&5
2393      (exit $ac_status); }; }; then
2394      ac_cv_prog_cc_stdc=$ac_arg
2395    break
2396    else
2397      echo "$as_me: failed program was:" >&5
2398    cat conftest.$ac_ext >&5
2399    fi
2400    rm -f conftest.$ac_objext
2401    done
2402    rm -f conftest.$ac_ext conftest.$ac_objext
2403    CC=$ac_save_CC
2404    
2405    fi
2406    
2407  echo $ac_n "checking for working const""... $ac_c" 1>&6  case "x$ac_cv_prog_cc_stdc" in
2408  echo "configure:1024: checking for working const" >&5    x|xno)
2409  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then      echo "$as_me:2419: result: none needed" >&5
2410    echo $ac_n "(cached) $ac_c" 1>&6  echo "${ECHO_T}none needed" >&6 ;;
2411      *)
2412        echo "$as_me:2422: result: $ac_cv_prog_cc_stdc" >&5
2413    echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2414        CC="$CC $ac_cv_prog_cc_stdc" ;;
2415    esac
2416    
2417    echo "$as_me:2427: checking for an ANSI C-conforming const" >&5
2418    echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2419    if test "${ac_cv_c_const+set}" = set; then
2420      echo $ECHO_N "(cached) $ECHO_C" >&6
2421  else  else
2422    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2423  #line 1029 "configure"  #line 2433 "configure"
2424  #include "confdefs.h"  #include "confdefs.h"
2425    
2426  int main() {  int
2427    main ()
2428    {
2429    /* FIXME: Include the comments suggested by Paul. */
2430    #ifndef __cplusplus
2431      /* Ultrix mips cc rejects this.  */
2432      typedef int charset[2];
2433      const charset x;
2434      /* SunOS 4.1.1 cc rejects this.  */
2435      char const *const *ccp;
2436      char **p;
2437      /* NEC SVR4.0.2 mips cc rejects this.  */
2438      struct point {int x, y;};
2439      static struct point const zero = {0,0};
2440      /* AIX XL C 1.02.0.0 rejects this.
2441         It does not let you subtract one const X* pointer from another in
2442         an arm of an if-expression whose if-part is not a constant
2443         expression */
2444      const char *g = "string";
2445      ccp = &g + (g ? g-g : 0);
2446      /* HPUX 7.0 cc rejects these. */
2447      ++ccp;
2448      p = (char**) ccp;
2449      ccp = (char const *const *) p;
2450      { /* SCO 3.2v4 cc rejects this.  */
2451        char *t;
2452        char const *s = 0 ? (char *) 0 : (char const *) 0;
2453    
2454        *t++ = 0;
2455      }
2456      { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2457        int x[] = {25, 17};
2458        const int *foo = &x[0];
2459        ++foo;
2460      }
2461      { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2462        typedef const int *iptr;
2463        iptr p = 0;
2464        ++p;
2465      }
2466      { /* AIX XL C 1.02.0.0 rejects this saying
2467           "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2468        struct s { int j; const int *ap[3]; };
2469        struct s *b; b->j = 5;
2470      }
2471      { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2472        const int foo = 10;
2473      }
2474    #endif
2475    
2476  /* Ultrix mips cc rejects this.  */    ;
2477  typedef int charset[2]; const charset x;    return 0;
 /* SunOS 4.1.1 cc rejects this.  */  
 char const *const *ccp;  
 char **p;  
 /* NEC SVR4.0.2 mips cc rejects this.  */  
 struct point {int x, y;};  
 static struct point const zero = {0,0};  
 /* AIX XL C 1.02.0.0 rejects this.  
    It does not let you subtract one const X* pointer from another in an arm  
    of an if-expression whose if-part is not a constant expression */  
 const char *g = "string";  
 ccp = &g + (g ? g-g : 0);  
 /* HPUX 7.0 cc rejects these. */  
 ++ccp;  
 p = (char**) ccp;  
 ccp = (char const *const *) p;  
 { /* SCO 3.2v4 cc rejects this.  */  
   char *t;  
   char const *s = 0 ? (char *) 0 : (char const *) 0;  
   
   *t++ = 0;  
 }  
 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */  
   int x[] = {25, 17};  
   const int *foo = &x[0];  
   ++foo;  
 }  
 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */  
   typedef const int *iptr;  
   iptr p = 0;  
   ++p;  
 }  
 { /* AIX XL C 1.02.0.0 rejects this saying  
      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */  
   struct s { int j; const int *ap[3]; };  
   struct s *b; b->j = 5;  
 }  
 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */  
   const int foo = 10;  
2478  }  }
2479    _ACEOF
2480  ; return 0; }  rm -f conftest.$ac_objext
2481  EOF  if { (eval echo "$as_me:2491: \"$ac_compile\"") >&5
2482  if { (eval echo configure:1078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then    (eval $ac_compile) 2>&5
2483    rm -rf conftest*    ac_status=$?
2484      echo "$as_me:2494: \$? = $ac_status" >&5
2485      (exit $ac_status); } &&
2486             { ac_try='test -s conftest.$ac_objext'
2487      { (eval echo "$as_me:2497: \"$ac_try\"") >&5
2488      (eval $ac_try) 2>&5
2489      ac_status=$?
2490      echo "$as_me:2500: \$? = $ac_status" >&5
2491      (exit $ac_status); }; }; then
2492    ac_cv_c_const=yes    ac_cv_c_const=yes
2493  else  else
2494    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
2495    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
2496    rm -rf conftest*  ac_cv_c_const=no
   ac_cv_c_const=no  
2497  fi  fi
2498  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
2499  fi  fi
2500    echo "$as_me:2510: result: $ac_cv_c_const" >&5
2501  echo "$ac_t""$ac_cv_c_const" 1>&6  echo "${ECHO_T}$ac_cv_c_const" >&6
2502  if test $ac_cv_c_const = no; then  if test $ac_cv_c_const = no; then
2503    cat >> confdefs.h <<\EOF  
2504  #define const  cat >>confdefs.h <<\EOF
2505    #define const
2506  EOF  EOF
2507    
2508  fi  fi
2509    
2510  echo $ac_n "checking for size_t""... $ac_c" 1>&6  for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
2511  echo "configure:1099: checking for size_t" >&5  do
2512  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then  ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2513    echo $ac_n "(cached) $ac_c" 1>&6  echo "$as_me:2523: checking for $ac_header" >&5
2514    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2515    if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2516      echo $ECHO_N "(cached) $ECHO_C" >&6
2517  else  else
2518    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2519  #line 1104 "configure"  #line 2529 "configure"
2520  #include "confdefs.h"  #include "confdefs.h"
2521  #include <sys/types.h>  #include <$ac_header>
2522  #if STDC_HEADERS  _ACEOF
2523  #include <stdlib.h>  if { (eval echo "$as_me:2533: \"$ac_cpp conftest.$ac_ext\"") >&5
2524  #include <stddef.h>    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2525  #endif    ac_status=$?
2526  EOF    egrep -v '^ *\+' conftest.er1 >conftest.err
2527  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |    rm -f conftest.er1
2528    egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then    cat conftest.err >&5
2529    rm -rf conftest*    echo "$as_me:2539: \$? = $ac_status" >&5
2530    ac_cv_type_size_t=yes    (exit $ac_status); } >/dev/null; then
2531      if test -s conftest.err; then
2532        ac_cpp_err=$ac_c_preproc_warn_flag
2533      else
2534        ac_cpp_err=
2535      fi
2536  else  else
2537    rm -rf conftest*    ac_cpp_err=yes
   ac_cv_type_size_t=no  
2538  fi  fi
2539  rm -f conftest*  if test -z "$ac_cpp_err"; then
2540      eval "$ac_ac_Header=yes"
2541    else
2542      echo "$as_me: failed program was:" >&5
2543      cat conftest.$ac_ext >&5
2544      eval "$ac_ac_Header=no"
2545  fi  fi
2546  echo "$ac_t""$ac_cv_type_size_t" 1>&6  rm -f conftest.err conftest.$ac_ext
2547  if test $ac_cv_type_size_t = no; then  fi
2548    cat >> confdefs.h <<\EOF  echo "$as_me:2558: result: `eval echo '${'$ac_ac_Header'}'`" >&5
2549  #define size_t unsigned  echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
2550    if test `eval echo '${'$ac_ac_Header'}'` = yes; then
2551      cat >>confdefs.h <<EOF
2552    #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
2553  EOF  EOF
2554    
2555  fi  fi
2556    done
2557    
2558    echo "$as_me:2568: checking for size_t" >&5
2559    echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2560    if test "${ac_cv_type_size_t+set}" = set; then
2561      echo $ECHO_N "(cached) $ECHO_C" >&6
2562    else
2563      cat >conftest.$ac_ext <<_ACEOF
2564    #line 2574 "configure"
2565    #include "confdefs.h"
2566    $ac_includes_default
2567    int
2568    main ()
2569    {
2570    if ((size_t *) 0)
2571      return 0;
2572    if (sizeof (size_t))
2573      return 0;
2574      ;
2575      return 0;
2576    }
2577    _ACEOF
2578    rm -f conftest.$ac_objext
2579    if { (eval echo "$as_me:2589: \"$ac_compile\"") >&5
2580      (eval $ac_compile) 2>&5
2581      ac_status=$?
2582      echo "$as_me:2592: \$? = $ac_status" >&5
2583      (exit $ac_status); } &&
2584             { ac_try='test -s conftest.$ac_objext'
2585      { (eval echo "$as_me:2595: \"$ac_try\"") >&5
2586      (eval $ac_try) 2>&5
2587      ac_status=$?
2588      echo "$as_me:2598: \$? = $ac_status" >&5
2589      (exit $ac_status); }; }; then
2590      ac_cv_type_size_t=yes
2591    else
2592      echo "$as_me: failed program was:" >&5
2593    cat conftest.$ac_ext >&5
2594    ac_cv_type_size_t=no
2595    fi
2596    rm -f conftest.$ac_objext conftest.$ac_ext
2597    fi
2598    echo "$as_me:2608: result: $ac_cv_type_size_t" >&5
2599    echo "${ECHO_T}$ac_cv_type_size_t" >&6
2600    if test $ac_cv_type_size_t = yes; then
2601      :
2602    else
2603    
2604    cat >>confdefs.h <<EOF
2605    #define size_t unsigned
2606    EOF
2607    
2608    fi
2609    
2610  for ac_func in bcopy memmove strerror  for ac_func in bcopy memmove strerror
2611  do  do
2612  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
2613  echo "configure:1136: checking for $ac_func" >&5  echo "$as_me:2623: checking for $ac_func" >&5
2614  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2615    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$ac_ac_var+set}\" = set"; then
2616      echo $ECHO_N "(cached) $ECHO_C" >&6
2617  else  else
2618    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2619  #line 1141 "configure"  #line 2629 "configure"
2620  #include "confdefs.h"  #include "confdefs.h"
2621  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2622      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
2623  #include <assert.h>  #include <assert.h>
2624  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2625    #ifdef __cplusplus
2626    extern "C"
2627    #endif
2628  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
2629      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
2630  char $ac_func();  char $ac_func ();
2631    char (*f) ();
2632  int main() {  
2633    int
2634    main ()
2635    {
2636    /* The GNU C library defines this for functions which it implements
2637        to always fail with ENOSYS.  Some functions are actually named
2638        something starting with __ and the normal name is an alias.  */
2639    #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2640    choke me
2641    #else
2642    f = $ac_func;
2643    #endif
2644    
2645      ;
2646      return 0;
2647    }
2648    _ACEOF
2649    rm -f conftest.$ac_objext conftest$ac_exeext
2650    if { (eval echo "$as_me:2660: \"$ac_link\"") >&5
2651      (eval $ac_link) 2>&5
2652      ac_status=$?
2653      echo "$as_me:2663: \$? = $ac_status" >&5
2654      (exit $ac_status); } &&
2655             { ac_try='test -s conftest$ac_exeext'
2656      { (eval echo "$as_me:2666: \"$ac_try\"") >&5
2657      (eval $ac_try) 2>&5
2658      ac_status=$?
2659      echo "$as_me:2669: \$? = $ac_status" >&5
2660      (exit $ac_status); }; }; then
2661      eval "$ac_ac_var=yes"
2662    else
2663      echo "$as_me: failed program was:" >&5
2664    cat conftest.$ac_ext >&5
2665    eval "$ac_ac_var=no"
2666    fi
2667    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2668    fi
2669    echo "$as_me:2679: result: `eval echo '${'$ac_ac_var'}'`" >&5
2670    echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
2671    if test `eval echo '${'$ac_ac_var'}'` = yes; then
2672      cat >>confdefs.h <<EOF
2673    #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
2674    EOF
2675    
2676    fi
2677    done
2678    
2679    # Check whether --enable-utf8 or --disable-utf8 was given.
2680    if test "${enable_utf8+set}" = set; then
2681      enableval="$enable_utf8"
2682      if test "$enableval" = "yes"; then
2683      UTF8=-DSUPPORT_UTF8
2684    fi
2685    
2686    fi;
2687    
2688    # Check whether --enable-newline-is-cr or --disable-newline-is-cr was given.
2689    if test "${enable_newline_is_cr+set}" = set; then
2690      enableval="$enable_newline_is_cr"
2691      if test "$enableval" = "yes"; then
2692      NEWLINE=-DNEWLINE=13
2693    fi
2694    
2695    fi;
2696    
2697    # Check whether --enable-newline-is-lf or --disable-newline-is-lf was given.
2698    if test "${enable_newline_is_lf+set}" = set; then
2699      enableval="$enable_newline_is_lf"
2700      if test "$enableval" = "yes"; then
2701      NEWLINE=-DNEWLINE=10
2702    fi
2703    
2704    fi;
2705    
2706    # Check whether --enable-shared or --disable-shared was given.
2707    if test "${enable_shared+set}" = set; then
2708      enableval="$enable_shared"
2709      p=${PACKAGE-default}
2710    case $enableval in
2711    yes) enable_shared=yes ;;
2712    no) enable_shared=no ;;
2713    *)
2714      enable_shared=no
2715      # Look at the argument we got.  We use all the common list separators.
2716      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2717      for pkg in $enableval; do
2718        if test "X$pkg" = "X$p"; then
2719          enable_shared=yes
2720        fi
2721      done
2722      IFS="$ac_save_ifs"
2723      ;;
2724    esac
2725    else
2726      enable_shared=yes
2727    fi;
2728    # Check whether --enable-static or --disable-static was given.
2729    if test "${enable_static+set}" = set; then
2730      enableval="$enable_static"
2731      p=${PACKAGE-default}
2732    case $enableval in
2733    yes) enable_static=yes ;;
2734    no) enable_static=no ;;
2735    *)
2736      enable_static=no
2737      # Look at the argument we got.  We use all the common list separators.
2738      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2739      for pkg in $enableval; do
2740        if test "X$pkg" = "X$p"; then
2741          enable_static=yes
2742        fi
2743      done
2744      IFS="$ac_save_ifs"
2745      ;;
2746    esac
2747    else
2748      enable_static=yes
2749    fi;
2750    # Check whether --enable-fast-install or --disable-fast-install was given.
2751    if test "${enable_fast_install+set}" = set; then
2752      enableval="$enable_fast_install"
2753      p=${PACKAGE-default}
2754    case $enableval in
2755    yes) enable_fast_install=yes ;;
2756    no) enable_fast_install=no ;;
2757    *)
2758      enable_fast_install=no
2759      # Look at the argument we got.  We use all the common list separators.
2760      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2761      for pkg in $enableval; do
2762        if test "X$pkg" = "X$p"; then
2763          enable_fast_install=yes
2764        fi
2765      done
2766      IFS="$ac_save_ifs"
2767      ;;
2768    esac
2769    else
2770      enable_fast_install=yes
2771    fi;
2772    # Make sure we can run config.sub.
2773    $ac_config_sub sun4 >/dev/null 2>&1 ||
2774      { { echo "$as_me:2784: error: cannot run $ac_config_sub" >&5
2775    echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2776       { (exit 1); exit 1; }; }
2777    
2778    echo "$as_me:2788: checking build system type" >&5
2779    echo $ECHO_N "checking build system type... $ECHO_C" >&6
2780    if test "${ac_cv_build+set}" = set; then
2781      echo $ECHO_N "(cached) $ECHO_C" >&6
2782    else
2783      ac_cv_build_alias=$build_alias
2784    test -z "$ac_cv_build_alias" &&
2785      ac_cv_build_alias=`$ac_config_guess`
2786    test -z "$ac_cv_build_alias" &&
2787      { { echo "$as_me:2797: error: cannot guess build type; you must specify one" >&5
2788    echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2789       { (exit 1); exit 1; }; }
2790    ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2791      { { echo "$as_me:2801: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2792    echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2793       { (exit 1); exit 1; }; }
2794    
2795    fi
2796    echo "$as_me:2806: result: $ac_cv_build" >&5
2797    echo "${ECHO_T}$ac_cv_build" >&6
2798    build=$ac_cv_build
2799    build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2800    build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2801    build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2802    
2803    echo "$as_me:2813: checking host system type" >&5
2804    echo $ECHO_N "checking host system type... $ECHO_C" >&6
2805    if test "${ac_cv_host+set}" = set; then
2806      echo $ECHO_N "(cached) $ECHO_C" >&6
2807    else
2808      ac_cv_host_alias=$host_alias
2809    test -z "$ac_cv_host_alias" &&
2810      ac_cv_host_alias=$ac_cv_build_alias
2811    ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2812      { { echo "$as_me:2822: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2813    echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2814       { (exit 1); exit 1; }; }
2815    
2816    fi
2817    echo "$as_me:2827: result: $ac_cv_host" >&5
2818    echo "${ECHO_T}$ac_cv_host" >&6
2819    host=$ac_cv_host
2820    host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2821    host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2822    host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2823    
2824    # Check whether --with-gnu-ld or --without-gnu-ld was given.
2825    if test "${with_gnu_ld+set}" = set; then
2826      withval="$with_gnu_ld"
2827      test "$withval" = no || with_gnu_ld=yes
2828    else
2829      with_gnu_ld=no
2830    fi;
2831    ac_prog=ld
2832    if test "$GCC" = yes; then
2833      # Check if gcc -print-prog-name=ld gives a path.
2834      echo "$as_me:2844: checking for ld used by GCC" >&5
2835    echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2836      case $host in
2837      *-*-mingw*)
2838        # gcc leaves a trailing carriage return which upsets mingw
2839        ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2840      *)
2841        ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2842      esac
2843      case $ac_prog in
2844        # Accept absolute paths.
2845        [\\/]* | [A-Za-z]:[\\/]*)
2846          re_direlt='/[^/][^/]*/\.\./'
2847          # Canonicalize the path of ld
2848          ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2849          while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2850            ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2851          done
2852          test -z "$LD" && LD="$ac_prog"
2853          ;;
2854      "")
2855        # If it fails, then pretend we aren't using GCC.
2856        ac_prog=ld
2857        ;;
2858      *)
2859        # If it is relative, then search for the first ld in PATH.
2860        with_gnu_ld=unknown
2861        ;;
2862      esac
2863    elif test "$with_gnu_ld" = yes; then
2864      echo "$as_me:2874: checking for GNU ld" >&5
2865    echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2866    else
2867      echo "$as_me:2877: checking for non-GNU ld" >&5
2868    echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2869    fi
2870    if test "${lt_cv_path_LD+set}" = set; then
2871      echo $ECHO_N "(cached) $ECHO_C" >&6
2872    else
2873      if test -z "$LD"; then
2874      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2875      for ac_dir in $PATH; do
2876        test -z "$ac_dir" && ac_dir=.
2877        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2878          lt_cv_path_LD="$ac_dir/$ac_prog"
2879          # Check to see if the program is GNU ld.  I'd rather use --version,
2880          # but apparently some GNU ld's only accept -v.
2881          # Break only if it was the GNU/non-GNU ld that we prefer.
2882          if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2883            test "$with_gnu_ld" != no && break
2884          else
2885            test "$with_gnu_ld" != yes && break
2886          fi
2887        fi
2888      done
2889      IFS="$ac_save_ifs"
2890    else
2891      lt_cv_path_LD="$LD" # Let the user override the test with a path.
2892    fi
2893    fi
2894    
2895    LD="$lt_cv_path_LD"
2896    if test -n "$LD"; then
2897      echo "$as_me:2907: result: $LD" >&5
2898    echo "${ECHO_T}$LD" >&6
2899    else
2900      echo "$as_me:2910: result: no" >&5
2901    echo "${ECHO_T}no" >&6
2902    fi
2903    test -z "$LD" && { { echo "$as_me:2913: error: no acceptable ld found in \$PATH" >&5
2904    echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2905       { (exit 1); exit 1; }; }
2906    echo "$as_me:2916: checking if the linker ($LD) is GNU ld" >&5
2907    echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2908    if test "${lt_cv_prog_gnu_ld+set}" = set; then
2909      echo $ECHO_N "(cached) $ECHO_C" >&6
2910    else
2911      # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2912    if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2913      lt_cv_prog_gnu_ld=yes
2914    else
2915      lt_cv_prog_gnu_ld=no
2916    fi
2917    fi
2918    echo "$as_me:2928: result: $lt_cv_prog_gnu_ld" >&5
2919    echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2920    with_gnu_ld=$lt_cv_prog_gnu_ld
2921    
2922    echo "$as_me:2932: checking for $LD option to reload object files" >&5
2923    echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2924    if test "${lt_cv_ld_reload_flag+set}" = set; then
2925      echo $ECHO_N "(cached) $ECHO_C" >&6
2926    else
2927      lt_cv_ld_reload_flag='-r'
2928    fi
2929    echo "$as_me:2939: result: $lt_cv_ld_reload_flag" >&5
2930    echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2931    reload_flag=$lt_cv_ld_reload_flag
2932    test -n "$reload_flag" && reload_flag=" $reload_flag"
2933    
2934    echo "$as_me:2944: checking for BSD-compatible nm" >&5
2935    echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2936    if test "${lt_cv_path_NM+set}" = set; then
2937      echo $ECHO_N "(cached) $ECHO_C" >&6
2938    else
2939      if test -n "$NM"; then
2940      # Let the user override the test.
2941      lt_cv_path_NM="$NM"
2942    else
2943      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2944      for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2945        test -z "$ac_dir" && ac_dir=.
2946        tmp_nm=$ac_dir/${ac_tool_prefix}nm
2947        if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2948          # Check to see if the nm accepts a BSD-compat flag.
2949          # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2950          #   nm: unknown option "B" ignored
2951          # Tru64's nm complains that /dev/null is an invalid object file
2952          if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2953            lt_cv_path_NM="$tmp_nm -B"
2954            break
2955          elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2956            lt_cv_path_NM="$tmp_nm -p"
2957            break
2958          else
2959            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2960            continue # so that we can try to find one that supports BSD flags
2961          fi
2962        fi
2963      done
2964      IFS="$ac_save_ifs"
2965      test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2966    fi
2967    fi
2968    
2969    NM="$lt_cv_path_NM"
2970    echo "$as_me:2980: result: $NM" >&5
2971    echo "${ECHO_T}$NM" >&6
2972    
2973    echo "$as_me:2983: checking whether ln -s works" >&5
2974    echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2975    LN_S=$as_ln_s
2976    if test "$LN_S" = "ln -s"; then
2977      echo "$as_me:2987: result: yes" >&5
2978    echo "${ECHO_T}yes" >&6
2979    else
2980      echo "$as_me:2990: result: no, using $LN_S" >&5
2981    echo "${ECHO_T}no, using $LN_S" >&6
2982    fi
2983    
2984    echo "$as_me:2994: checking how to recognise dependant libraries" >&5
2985    echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2986    if test "${lt_cv_deplibs_check_method+set}" = set; then
2987      echo $ECHO_N "(cached) $ECHO_C" >&6
2988    else
2989      lt_cv_file_magic_cmd='$MAGIC_CMD'
2990    lt_cv_file_magic_test_file=
2991    lt_cv_deplibs_check_method='unknown'
2992    # Need to set the preceding variable on all platforms that support
2993    # interlibrary dependencies.
2994    # 'none' -- dependencies not supported.
2995    # `unknown' -- same as none, but documents that we really don't know.
2996    # 'pass_all' -- all dependencies passed with no checks.
2997    # 'test_compile' -- check by making test program.
2998    # ['file_magic [regex]'] -- check by looking for files in library path
2999    # which responds to the $file_magic_cmd with a given egrep regex.
3000    # If you have `file' or equivalent on your system and you're not sure
3001    # whether `pass_all' will *always* work, you probably want this one.
3002    
3003    case $host_os in
3004    aix4* | aix5*)
3005      lt_cv_deplibs_check_method=pass_all
3006      ;;
3007    
3008    beos*)
3009      lt_cv_deplibs_check_method=pass_all
3010      ;;
3011    
3012    bsdi4*)
3013      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3014      lt_cv_file_magic_cmd='/usr/bin/file -L'
3015      lt_cv_file_magic_test_file=/shlib/libc.so
3016      ;;
3017    
3018    cygwin* | mingw* | pw32*)
3019      lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3020      lt_cv_file_magic_cmd='$OBJDUMP -f'
3021      ;;
3022    
3023    darwin* | rhapsody*)
3024      lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3025      lt_cv_file_magic_cmd='/usr/bin/file -L'
3026      case "$host_os" in
3027      rhapsody* | darwin1.012)
3028        lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3029        ;;
3030      *) # Darwin 1.3 on
3031        lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3032        ;;
3033      esac
3034      ;;
3035    
3036    freebsd*)
3037      if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3038        case $host_cpu in
3039        i*86 )
3040          # Not sure whether the presence of OpenBSD here was a mistake.
3041          # Let's accept both of them until this is cleared up.
3042          lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3043          lt_cv_file_magic_cmd=/usr/bin/file
3044          lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3045          ;;
3046        esac
3047      else
3048        lt_cv_deplibs_check_method=pass_all
3049      fi
3050      ;;
3051    
3052    gnu*)
3053      lt_cv_deplibs_check_method=pass_all
3054      ;;
3055    
3056    hpux10.20*|hpux11*)
3057      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3058      lt_cv_file_magic_cmd=/usr/bin/file
3059      lt_cv_file_magic_test_file=/usr/lib/libc.sl
3060      ;;
3061    
3062    irix5* | irix6*)
3063      case $host_os in
3064      irix5*)
3065        # this will be overridden with pass_all, but let us keep it just in case
3066        lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3067        ;;
3068      *)
3069        case $LD in
3070        *-32|*"-32 ") libmagic=32-bit;;
3071        *-n32|*"-n32 ") libmagic=N32;;
3072        *-64|*"-64 ") libmagic=64-bit;;
3073        *) libmagic=never-match;;
3074        esac
3075        # this will be overridden with pass_all, but let us keep it just in case
3076        lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3077        ;;
3078      esac
3079      lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3080      lt_cv_deplibs_check_method=pass_all
3081      ;;
3082    
3083    # This must be Linux ELF.
3084    linux-gnu*)
3085      case $host_cpu in
3086      alpha* | i*86 | powerpc* | sparc* | ia64* )
3087        lt_cv_deplibs_check_method=pass_all ;;
3088      *)
3089        # glibc up to 2.1.1 does not perform some relocations on ARM
3090        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3091      esac
3092      lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3093      ;;
3094    
3095    netbsd*)
3096      if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3097        lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3098      else
3099        lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3100      fi
3101      ;;
3102    
3103    newos6*)
3104      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3105      lt_cv_file_magic_cmd=/usr/bin/file
3106      lt_cv_file_magic_test_file=/usr/lib/libnls.so
3107      ;;
3108    
3109    osf3* | osf4* | osf5*)
3110      # this will be overridden with pass_all, but let us keep it just in case
3111      lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3112      lt_cv_file_magic_test_file=/shlib/libc.so
3113      lt_cv_deplibs_check_method=pass_all
3114      ;;
3115    
3116    sco3.2v5*)
3117      lt_cv_deplibs_check_method=pass_all
3118      ;;
3119    
3120    solaris*)
3121      lt_cv_deplibs_check_method=pass_all
3122      lt_cv_file_magic_test_file=/lib/libc.so
3123      ;;
3124    
3125    sysv5uw[78]* | sysv4*uw2*)
3126      lt_cv_deplibs_check_method=pass_all
3127      ;;
3128    
3129    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3130      case $host_vendor in
3131      motorola)
3132        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]'
3133        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3134        ;;
3135      ncr)
3136        lt_cv_deplibs_check_method=pass_all
3137        ;;
3138      sequent)
3139        lt_cv_file_magic_cmd='/bin/file'
3140        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3141        ;;
3142      sni)
3143        lt_cv_file_magic_cmd='/bin/file'
3144        lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3145        lt_cv_file_magic_test_file=/lib/libc.so
3146        ;;
3147      esac
3148      ;;
3149    esac
3150    
3151    fi
3152    echo "$as_me:3162: result: $lt_cv_deplibs_check_method" >&5
3153    echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3154    file_magic_cmd=$lt_cv_file_magic_cmd
3155    deplibs_check_method=$lt_cv_deplibs_check_method
3156    
3157    # Check for command to grab the raw symbol name followed by C symbol from nm.
3158    echo "$as_me:3168: checking command to parse $NM output" >&5
3159    echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3160    if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3161      echo $ECHO_N "(cached) $ECHO_C" >&6
3162    else
3163    
3164    # These are sane defaults that work on at least a few old systems.
3165    # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3166    
3167    # Character class describing NM global symbol codes.
3168    symcode='[BCDEGRST]'
3169    
3170    # Regexp to match symbols that can be accessed directly from C.
3171    sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3172    
3173    # Transform the above into a raw symbol and a C symbol.
3174    symxfrm='\1 \2\3 \3'
3175    
3176    # Transform an extracted symbol line into a proper C declaration
3177    lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3178    
3179    # Define system-specific variables.
3180    case $host_os in
3181    aix*)
3182      symcode='[BCDT]'
3183      ;;
3184    cygwin* | mingw* | pw32*)
3185      symcode='[ABCDGISTW]'
3186      ;;
3187    hpux*) # Its linker distinguishes data from code symbols
3188      lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3189      ;;
3190    irix*)
3191      symcode='[BCDEGRST]'
3192      ;;
3193    solaris* | sysv5*)
3194      symcode='[BDT]'
3195      ;;
3196    sysv4)
3197      symcode='[DFNSTU]'
3198      ;;
3199    esac
3200    
3201    # Handle CRLF in mingw tool chain
3202    opt_cr=
3203    case $host_os in
3204    mingw*)
3205      opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3206      ;;
3207    esac
3208    
3209    # If we're using GNU nm, then use its standard symbol codes.
3210    if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3211      symcode='[ABCDGISTW]'
3212    fi
3213    
3214    # Try without a prefix undercore, then with it.
3215    for ac_symprfx in "" "_"; do
3216    
3217      # Write the raw and C identifiers.
3218    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3219    
3220      # Check to see that the pipe works correctly.
3221      pipe_works=no
3222      rm -f conftest*
3223      cat > conftest.$ac_ext <<EOF
3224    #ifdef __cplusplus
3225    extern "C" {
3226    #endif
3227    char nm_test_var;
3228    void nm_test_func(){}
3229    #ifdef __cplusplus
3230    }
3231    #endif
3232    int main(){nm_test_var='a';nm_test_func();return(0);}
3233    EOF
3234    
3235      if { (eval echo "$as_me:3245: \"$ac_compile\"") >&5
3236      (eval $ac_compile) 2>&5
3237      ac_status=$?
3238      echo "$as_me:3248: \$? = $ac_status" >&5
3239      (exit $ac_status); }; then
3240        # Now try to grab the symbols.
3241        nlist=conftest.nm
3242        if { (eval echo "$as_me:3252: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3243      (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3244      ac_status=$?
3245      echo "$as_me:3255: \$? = $ac_status" >&5
3246      (exit $ac_status); } && test -s "$nlist"; then
3247          # Try sorting and uniquifying the output.
3248          if sort "$nlist" | uniq > "$nlist"T; then
3249            mv -f "$nlist"T "$nlist"
3250          else
3251            rm -f "$nlist"T
3252          fi
3253    
3254          # Make sure that we snagged all the symbols we need.
3255          if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3256            if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3257              cat <<EOF > conftest.$ac_ext
3258    #ifdef __cplusplus
3259    extern "C" {
3260    #endif
3261    
3262    EOF
3263              # Now generate the symbol file.
3264              eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3265    
3266              cat <<EOF >> conftest.$ac_ext
3267    #if defined (__STDC__) && __STDC__
3268    # define lt_ptr_t void *
3269    #else
3270    # define lt_ptr_t char *
3271    # define const
3272    #endif
3273    
3274    /* The mapping between symbol names and symbols. */
3275    const struct {
3276      const char *name;
3277      lt_ptr_t address;
3278    }
3279    lt_preloaded_symbols[] =
3280    {
3281    EOF
3282              sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
3283              cat <<\EOF >> conftest.$ac_ext
3284      {0, (lt_ptr_t) 0}
3285    };
3286    
3287    #ifdef __cplusplus
3288    }
3289    #endif
3290    EOF
3291              # Now try linking the two files.
3292              mv conftest.$ac_objext conftstm.$ac_objext
3293              save_LIBS="$LIBS"
3294              save_CFLAGS="$CFLAGS"
3295              LIBS="conftstm.$ac_objext"
3296              CFLAGS="$CFLAGS$no_builtin_flag"
3297              if { (eval echo "$as_me:3307: \"$ac_link\"") >&5
3298      (eval $ac_link) 2>&5
3299      ac_status=$?
3300      echo "$as_me:3310: \$? = $ac_status" >&5
3301      (exit $ac_status); } && test -s conftest; then
3302                pipe_works=yes
3303              fi
3304              LIBS="$save_LIBS"
3305              CFLAGS="$save_CFLAGS"
3306            else
3307              echo "cannot find nm_test_func in $nlist" >&5
3308            fi
3309          else
3310            echo "cannot find nm_test_var in $nlist" >&5
3311          fi
3312        else
3313          echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3314        fi
3315      else
3316        echo "$progname: failed program was:" >&5
3317        cat conftest.$ac_ext >&5
3318      fi
3319      rm -f conftest* conftst*
3320    
3321      # Do not use the global_symbol_pipe unless it works.
3322      if test "$pipe_works" = yes; then
3323        break
3324      else
3325        lt_cv_sys_global_symbol_pipe=
3326      fi
3327    done
3328    
3329    fi
3330    
3331    global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3332    if test -z "$lt_cv_sys_global_symbol_pipe"; then
3333      global_symbol_to_cdecl=
3334    else
3335      global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3336    fi
3337    if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
3338      echo "$as_me:3348: result: failed" >&5
3339    echo "${ECHO_T}failed" >&6
3340    else
3341      echo "$as_me:3351: result: ok" >&5
3342    echo "${ECHO_T}ok" >&6
3343    fi
3344    
3345    for ac_header in dlfcn.h
3346    do
3347    ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3348    echo "$as_me:3358: checking for $ac_header" >&5
3349    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3350    if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3351      echo $ECHO_N "(cached) $ECHO_C" >&6
3352    else
3353      cat >conftest.$ac_ext <<_ACEOF
3354    #line 3364 "configure"
3355    #include "confdefs.h"
3356    #include <$ac_header>
3357    _ACEOF
3358    if { (eval echo "$as_me:3368: \"$ac_cpp conftest.$ac_ext\"") >&5
3359      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360      ac_status=$?
3361      egrep -v '^ *\+' conftest.er1 >conftest.err
3362      rm -f conftest.er1
3363      cat conftest.err >&5
3364      echo "$as_me:3374: \$? = $ac_status" >&5
3365      (exit $ac_status); } >/dev/null; then
3366      if test -s conftest.err; then
3367        ac_cpp_err=$ac_c_preproc_warn_flag
3368      else
3369        ac_cpp_err=
3370      fi
3371    else
3372      ac_cpp_err=yes
3373    fi
3374    if test -z "$ac_cpp_err"; then
3375      eval "$ac_ac_Header=yes"
3376    else
3377      echo "$as_me: failed program was:" >&5
3378      cat conftest.$ac_ext >&5
3379      eval "$ac_ac_Header=no"
3380    fi
3381    rm -f conftest.err conftest.$ac_ext
3382    fi
3383    echo "$as_me:3393: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3384    echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3385    if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3386      cat >>confdefs.h <<EOF
3387    #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3388    EOF
3389    
3390    fi
3391    done
3392    
3393    # Only perform the check for file, if the check method requires it
3394    case $deplibs_check_method in
3395    file_magic*)
3396      if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3397        echo "$as_me:3407: checking for ${ac_tool_prefix}file" >&5
3398    echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3399    if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3400      echo $ECHO_N "(cached) $ECHO_C" >&6
3401    else
3402      case $MAGIC_CMD in
3403      /*)
3404      lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3405      ;;
3406      ?:/*)
3407      lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3408      ;;
3409      *)
3410      ac_save_MAGIC_CMD="$MAGIC_CMD"
3411      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3412      ac_dummy="/usr/bin:$PATH"
3413      for ac_dir in $ac_dummy; do
3414        test -z "$ac_dir" && ac_dir=.
3415        if test -f $ac_dir/${ac_tool_prefix}file; then
3416          lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3417          if test -n "$file_magic_test_file"; then
3418            case $deplibs_check_method in
3419            "file_magic "*)
3420              file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3421              MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3422              if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3423                egrep "$file_magic_regex" > /dev/null; then
3424                :
3425              else
3426                cat <<EOF 1>&2
3427    
3428    *** Warning: the command libtool uses to detect shared libraries,
3429    *** $file_magic_cmd, produces output that libtool cannot recognize.
3430    *** The result is that libtool may fail to recognize shared libraries
3431    *** as such.  This will affect the creation of libtool libraries that
3432    *** depend on shared libraries, but programs linked with such libtool
3433    *** libraries will work regardless of this problem.  Nevertheless, you
3434    *** may want to report the problem to your system manager and/or to
3435    *** bug-libtool@gnu.org
3436    
3437    EOF
3438              fi ;;
3439            esac
3440          fi
3441          break
3442        fi
3443      done
3444      IFS="$ac_save_ifs"
3445      MAGIC_CMD="$ac_save_MAGIC_CMD"
3446      ;;
3447    esac
3448    fi
3449    
3450    MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3451    if test -n "$MAGIC_CMD"; then
3452      echo "$as_me:3462: result: $MAGIC_CMD" >&5
3453    echo "${ECHO_T}$MAGIC_CMD" >&6
3454    else
3455      echo "$as_me:3465: result: no" >&5
3456    echo "${ECHO_T}no" >&6
3457    fi
3458    
3459    if test -z "$lt_cv_path_MAGIC_CMD"; then
3460      if test -n "$ac_tool_prefix"; then
3461        echo "$as_me:3471: checking for file" >&5
3462    echo $ECHO_N "checking for file... $ECHO_C" >&6
3463    if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3464      echo $ECHO_N "(cached) $ECHO_C" >&6
3465    else
3466      case $MAGIC_CMD in
3467      /*)
3468      lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3469      ;;
3470      ?:/*)
3471      lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3472      ;;
3473      *)